Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/expr-lang/expr
/ functions
Functions
2,191 in github.com/expr-lang/expr
⨍
Functions
2,191
◇
Types & classes
379
Method
ErrorAsf
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
Method
ErrorAsf
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
Method
ErrorContainsf
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
Method
ErrorContainsf
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
Method
ErrorIs
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
Method
ErrorIs
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
Method
ErrorIsf
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
Method
ErrorIsf
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
Method
Errorf
(format string, args ...interface{})
internal/testify/assert/assertions_test.go:651
Method
Errorf
(format string, args ...interface{})
internal/testify/assert/assertions_test.go:2453
Method
Errorf
(format string, args ...interface{})
internal/testify/assert/assertions_test.go:2473
Method
Errorf
(format string, args ...interface{})
internal/testify/assert/assertions_test.go:2780
Method
Errorf
(format string, args ...interface{})
internal/testify/assert/assertions_test.go:2967
Method
Errorf
(format string, args ...interface{})
internal/testify/assert/assertions.go:29
Method
Errorf
Errorf collects the error.
internal/testify/assert/assertions.go:1904
Method
Errorf
Implements TestingT
internal/testify/assert/assertion_compare_test.go:103
Method
Errorf
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
Method
Errorf
(format string, args ...interface{})
internal/testify/assert/internal/unsafetests/unsafetests_test.go:17
Method
Errorf
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
Method
Errorf
(format string, args ...interface{})
internal/testify/require/requirements_test.go:34
Method
Errorf
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
Method
EventsOrErr
()
test/crowdsec/crowdsec.go:109
Method
Eventually
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
Method
Eventually
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
Method
EventuallyWithT
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
Method
EventuallyWithT
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
Method
EventuallyWithTf
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
Method
EventuallyWithTf
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
Method
Eventuallyf
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
Method
Eventuallyf
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
Method
Exactlyf
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
Method
Exactlyf
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
Function
ExampleAllowUndefinedVariables
()
expr_test.go:502
Function
ExampleAllowUndefinedVariables_zero_value
()
expr_test.go:540
Function
ExampleAllowUndefinedVariables_zero_value_functions
()
expr_test.go:573
Function
ExampleAnyValuer
()
patcher/value/value_example_test.go:23
Function
ExampleAsBool
()
expr_test.go:267
Function
ExampleAsBool_error
()
expr_test.go:289
Function
ExampleAsFloat64
()
expr_test.go:341
Function
ExampleAsFloat64_error
()
expr_test.go:359
Function
ExampleAsInt
()
expr_test.go:301
Function
ExampleAsInt64
()
expr_test.go:319
Function
ExampleAsKind
()
expr_test.go:249
Function
ExampleBoolAssertionFunc
()
internal/testify/assert/assertions_test.go:2632
Function
ExampleBoolAssertionFunc
()
internal/testify/require/requirements_test.go:495
Function
ExampleComparisonAssertionFunc
()
internal/testify/assert/assertions_test.go:2520
Function
ExampleComparisonAssertionFunc
()
internal/testify/require/requirements_test.go:383
Function
ExampleCompile
()
expr_test.go:50
Function
ExampleConfigState
This example demonstrates how to use a ConfigState.
internal/spew/example_test.go:145
Function
ExampleConfigState_Dump
This example demonstrates how to use ConfigState.Dump to dump variables to stdout
internal/spew/example_test.go:164
Function
ExampleConfigState_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
Function
ExampleConstExpr
()
expr_test.go:469
Function
ExampleData
()
test/playground/data.go:8
Function
ExampleDump
This example demonstrates how to use Dump to dump variables to stdout.
internal/spew/example_test.go:54
Function
ExampleEnv
()
expr_test.go:97
Function
ExampleEnv_hidden_tagged_field_names
()
expr_test.go:170
Function
ExampleEnv_tagged_field_names
()
expr_test.go:148
Function
ExampleErrorAssertionFunc
()
internal/testify/assert/assertions_test.go:2674
Function
ExampleErrorAssertionFunc
()
internal/testify/require/requirements_test.go:537
Function
ExampleEval
()
expr_test.go:26
Function
ExampleEval_bytes_literal
()
expr_test.go:73
Function
ExampleEval_runtime_error
()
expr_test.go:41
Function
ExampleGetContextDiffString
()
internal/difflib/difflib_test.go:138
Function
ExampleGetContextDiffString_second
()
internal/difflib/difflib_test.go:175
Function
ExampleGetUnifiedDiffString
()
internal/difflib/difflib_test.go:105
Function
ExampleOperator
()
expr_test.go:378
Function
ExampleOperator_with_decimal
()
expr_test.go:421
Function
ExamplePanicAssertionFunc
()
internal/testify/assert/assertions_test.go:2717
Function
ExamplePatch
()
expr_test.go:612
Function
ExamplePrintf
This example demonstrates how to use Printf to display a variable with a format string and inline formatting.
internal/spew/example_test.go:121
Function
ExampleTimezone
()
expr_test.go:680
Function
ExampleValueAssertionFunc
()
internal/testify/assert/assertions_test.go:2583
Function
ExampleValueAssertionFunc
()
internal/testify/require/requirements_test.go:446
Function
ExampleWarnOnAny
()
expr_test.go:367
Function
ExampleWithContext
()
expr_test.go:639
Method
Fail
Fail reports a failure through
internal/testify/assert/assertion_forward.go:404
Method
Fail
Fail reports a failure through
internal/testify/require/require_forward.go:406
Method
FailNow
()
internal/testify/assert/assertions_test.go:2475
Method
FailNow
FailNow panics.
internal/testify/assert/assertions.go:1909
Method
FailNow
FailNow fails test
internal/testify/assert/assertion_forward.go:412
Method
FailNow
FailNow fails test
internal/testify/require/require_forward.go:414
Method
FailNow
()
internal/testify/require/requirements_test.go:30
Method
FailNowf
FailNowf fails test
internal/testify/assert/assertion_forward.go:420
Method
FailNowf
FailNowf fails test
internal/testify/require/require_forward.go:422
Method
Failf
Failf reports a failure through
internal/testify/assert/assertion_forward.go:428
Method
Failf
Failf reports a failure through
internal/testify/require/require_forward.go:430
Method
Falsef
Falsef asserts that the specified value is false. a.Falsef(myBool, "error message %s", "formatted")
internal/testify/assert/assertion_forward.go:448
Method
Falsef
Falsef asserts that the specified value is false. a.Falsef(myBool, "error message %s", "formatted")
internal/testify/require/require_forward.go:450
Method
Family
()
test/coredns/coredns.go:75
Method
FileExists
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
Method
FileExists
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
Method
FileExistsf
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
Method
FileExistsf
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
Function
Floor
(x any)
builtin/lib.go:130
Method
Fn
(ctx context.Context, a int)
patcher/with_context_test.go:69
Method
Foo
()
test/interface/interface_method_test.go:18
Method
Foo
()
test/operator/issues584/issues584_test.go:16
Method
FullName
()
test/playground/env.go:25
Method
Func
()
bench_test.go:324
Method
Func
()
compiler/compiler_test.go:47
← previous
next →
1,101–1,200 of 2,191, ranked by callers