MCPcopy Create free account

hub / github.com/expr-lang/expr / functions

Functions2,191 in github.com/expr-lang/expr

MethodErrorAsf
ErrorAsf asserts that at least one of the errors in err's chain matches target, and if so, sets target to that error value. This is a wrapper for erro
internal/testify/assert/assertion_forward.go:249
MethodErrorAsf
ErrorAsf asserts that at least one of the errors in err's chain matches target, and if so, sets target to that error value. This is a wrapper for erro
internal/testify/require/require_forward.go:251
MethodErrorContainsf
ErrorContainsf asserts that a function returned an error (i.e. not `nil`) and that the error contains the specified substring. actualObj, err := Som
internal/testify/assert/assertion_forward.go:273
MethodErrorContainsf
ErrorContainsf asserts that a function returned an error (i.e. not `nil`) and that the error contains the specified substring. actualObj, err := Som
internal/testify/require/require_forward.go:275
MethodErrorIs
ErrorIs asserts that at least one of the errors in err's chain matches target. This is a wrapper for errors.Is.
internal/testify/assert/assertion_forward.go:282
MethodErrorIs
ErrorIs asserts that at least one of the errors in err's chain matches target. This is a wrapper for errors.Is.
internal/testify/require/require_forward.go:284
MethodErrorIsf
ErrorIsf asserts that at least one of the errors in err's chain matches target. This is a wrapper for errors.Is.
internal/testify/assert/assertion_forward.go:291
MethodErrorIsf
ErrorIsf asserts that at least one of the errors in err's chain matches target. This is a wrapper for errors.Is.
internal/testify/require/require_forward.go:293
MethodErrorf
(format string, args ...interface{})
internal/testify/assert/assertions_test.go:651
MethodErrorf
(format string, args ...interface{})
internal/testify/assert/assertions_test.go:2453
MethodErrorf
(format string, args ...interface{})
internal/testify/assert/assertions_test.go:2473
MethodErrorf
(format string, args ...interface{})
internal/testify/assert/assertions_test.go:2780
MethodErrorf
(format string, args ...interface{})
internal/testify/assert/assertions_test.go:2967
MethodErrorf
(format string, args ...interface{})
internal/testify/assert/assertions.go:29
MethodErrorf
Errorf collects the error.
internal/testify/assert/assertions.go:1904
MethodErrorf
Implements TestingT
internal/testify/assert/assertion_compare_test.go:103
MethodErrorf
Errorf asserts that a function returned an error (i.e. not `nil`). actualObj, err := SomeFunction() if a.Errorf(err, "error message %s", "forma
internal/testify/assert/assertion_forward.go:304
MethodErrorf
(format string, args ...interface{})
internal/testify/assert/internal/unsafetests/unsafetests_test.go:17
MethodErrorf
Errorf asserts that a function returned an error (i.e. not `nil`). actualObj, err := SomeFunction() if a.Errorf(err, "error message %s", "forma
internal/testify/require/require_forward.go:306
MethodErrorf
(format string, args ...interface{})
internal/testify/require/requirements_test.go:34
MethodErrorf
Errorf is a wrapper for fmt.Errorf that treats each argument as if it were passed with a Formatter interface returned by c.NewFormatter. It returns t
internal/spew/config.go:115
MethodEventsOrErr
()
test/crowdsec/crowdsec.go:109
MethodEventually
Eventually asserts that given condition will be met in waitFor time, periodically checking target function each tick. a.Eventually(func() bool { ret
internal/testify/assert/assertion_forward.go:315
MethodEventually
Eventually asserts that given condition will be met in waitFor time, periodically checking target function each tick. a.Eventually(func() bool { ret
internal/testify/require/require_forward.go:317
MethodEventuallyWithT
EventuallyWithT asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually,
internal/testify/assert/assertion_forward.go:340
MethodEventuallyWithT
EventuallyWithT asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually,
internal/testify/require/require_forward.go:342
MethodEventuallyWithTf
EventuallyWithTf asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually,
internal/testify/assert/assertion_forward.go:365
MethodEventuallyWithTf
EventuallyWithTf asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually,
internal/testify/require/require_forward.go:367
MethodEventuallyf
Eventuallyf asserts that given condition will be met in waitFor time, periodically checking target function each tick. a.Eventuallyf(func() bool { r
internal/testify/assert/assertion_forward.go:376
MethodEventuallyf
Eventuallyf asserts that given condition will be met in waitFor time, periodically checking target function each tick. a.Eventuallyf(func() bool { r
internal/testify/require/require_forward.go:378
MethodExactlyf
Exactlyf asserts that two objects are equal in value and type. a.Exactlyf(int32(123), int64(123), "error message %s", "formatted")
internal/testify/assert/assertion_forward.go:396
MethodExactlyf
Exactlyf asserts that two objects are equal in value and type. a.Exactlyf(int32(123), int64(123), "error message %s", "formatted")
internal/testify/require/require_forward.go:398
FunctionExampleAllowUndefinedVariables
()
expr_test.go:502
FunctionExampleAllowUndefinedVariables_zero_value
()
expr_test.go:540
FunctionExampleAllowUndefinedVariables_zero_value_functions
()
expr_test.go:573
FunctionExampleAnyValuer
()
patcher/value/value_example_test.go:23
FunctionExampleAsBool
()
expr_test.go:267
FunctionExampleAsBool_error
()
expr_test.go:289
FunctionExampleAsFloat64
()
expr_test.go:341
FunctionExampleAsFloat64_error
()
expr_test.go:359
FunctionExampleAsInt
()
expr_test.go:301
FunctionExampleAsInt64
()
expr_test.go:319
FunctionExampleAsKind
()
expr_test.go:249
FunctionExampleBoolAssertionFunc
()
internal/testify/assert/assertions_test.go:2632
FunctionExampleBoolAssertionFunc
()
internal/testify/require/requirements_test.go:495
FunctionExampleComparisonAssertionFunc
()
internal/testify/assert/assertions_test.go:2520
FunctionExampleComparisonAssertionFunc
()
internal/testify/require/requirements_test.go:383
FunctionExampleCompile
()
expr_test.go:50
FunctionExampleConfigState
This example demonstrates how to use a ConfigState.
internal/spew/example_test.go:145
FunctionExampleConfigState_Dump
This example demonstrates how to use ConfigState.Dump to dump variables to stdout
internal/spew/example_test.go:164
FunctionExampleConfigState_Printf
This example demonstrates how to use ConfigState.Printf to display a variable with a format string and inline formatting.
internal/spew/example_test.go:202
FunctionExampleConstExpr
()
expr_test.go:469
FunctionExampleData
()
test/playground/data.go:8
FunctionExampleDump
This example demonstrates how to use Dump to dump variables to stdout.
internal/spew/example_test.go:54
FunctionExampleEnv
()
expr_test.go:97
FunctionExampleEnv_hidden_tagged_field_names
()
expr_test.go:170
FunctionExampleEnv_tagged_field_names
()
expr_test.go:148
FunctionExampleErrorAssertionFunc
()
internal/testify/assert/assertions_test.go:2674
FunctionExampleErrorAssertionFunc
()
internal/testify/require/requirements_test.go:537
FunctionExampleEval
()
expr_test.go:26
FunctionExampleEval_bytes_literal
()
expr_test.go:73
FunctionExampleEval_runtime_error
()
expr_test.go:41
FunctionExampleGetContextDiffString
()
internal/difflib/difflib_test.go:138
FunctionExampleGetContextDiffString_second
()
internal/difflib/difflib_test.go:175
FunctionExampleGetUnifiedDiffString
()
internal/difflib/difflib_test.go:105
FunctionExampleOperator
()
expr_test.go:378
FunctionExampleOperator_with_decimal
()
expr_test.go:421
FunctionExamplePanicAssertionFunc
()
internal/testify/assert/assertions_test.go:2717
FunctionExamplePatch
()
expr_test.go:612
FunctionExamplePrintf
This example demonstrates how to use Printf to display a variable with a format string and inline formatting.
internal/spew/example_test.go:121
FunctionExampleTimezone
()
expr_test.go:680
FunctionExampleValueAssertionFunc
()
internal/testify/assert/assertions_test.go:2583
FunctionExampleValueAssertionFunc
()
internal/testify/require/requirements_test.go:446
FunctionExampleWarnOnAny
()
expr_test.go:367
FunctionExampleWithContext
()
expr_test.go:639
MethodFail
Fail reports a failure through
internal/testify/assert/assertion_forward.go:404
MethodFail
Fail reports a failure through
internal/testify/require/require_forward.go:406
MethodFailNow
()
internal/testify/assert/assertions_test.go:2475
MethodFailNow
FailNow panics.
internal/testify/assert/assertions.go:1909
MethodFailNow
FailNow fails test
internal/testify/assert/assertion_forward.go:412
MethodFailNow
FailNow fails test
internal/testify/require/require_forward.go:414
MethodFailNow
()
internal/testify/require/requirements_test.go:30
MethodFailNowf
FailNowf fails test
internal/testify/assert/assertion_forward.go:420
MethodFailNowf
FailNowf fails test
internal/testify/require/require_forward.go:422
MethodFailf
Failf reports a failure through
internal/testify/assert/assertion_forward.go:428
MethodFailf
Failf reports a failure through
internal/testify/require/require_forward.go:430
MethodFalsef
Falsef asserts that the specified value is false. a.Falsef(myBool, "error message %s", "formatted")
internal/testify/assert/assertion_forward.go:448
MethodFalsef
Falsef asserts that the specified value is false. a.Falsef(myBool, "error message %s", "formatted")
internal/testify/require/require_forward.go:450
MethodFamily
()
test/coredns/coredns.go:75
MethodFileExists
FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check t
internal/testify/assert/assertion_forward.go:457
MethodFileExists
FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check t
internal/testify/require/require_forward.go:459
MethodFileExistsf
FileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check
internal/testify/assert/assertion_forward.go:466
MethodFileExistsf
FileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check
internal/testify/require/require_forward.go:468
FunctionFloor
(x any)
builtin/lib.go:130
MethodFn
(ctx context.Context, a int)
patcher/with_context_test.go:69
MethodFoo
()
test/interface/interface_method_test.go:18
MethodFoo
()
test/operator/issues584/issues584_test.go:16
MethodFullName
()
test/playground/env.go:25
MethodFunc
()
bench_test.go:324
MethodFunc
()
compiler/compiler_test.go:47
← previousnext →1,101–1,200 of 2,191, ranked by callers