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
Function
BenchmarkCountThresholdEarlyMatch
Benchmark: count > 100 with early match (element 101 matches early)
optimizer/count_threshold_test.go:177
Function
BenchmarkCountThresholdGteEarlyMatch
Benchmark: count >= 50 with early match
optimizer/count_threshold_test.go:190
Function
BenchmarkCountThresholdLargeEarlyMatch
Benchmark: Large threshold with early match
optimizer/count_threshold_test.go:216
Function
BenchmarkCountThresholdLtEarlyExit
Benchmark: count < N with early exit (result is false)
optimizer/count_threshold_test.go:229
Function
BenchmarkCountThresholdLtNoEarlyExit
Benchmark: count < N without early exit (result is true)
optimizer/count_threshold_test.go:255
Function
BenchmarkCountThresholdLteEarlyExit
Benchmark: count <= N with early exit (result is false)
optimizer/count_threshold_test.go:242
Function
BenchmarkCountThresholdLteNoEarlyExit
Benchmark: count <= N without early exit (result is true)
optimizer/count_threshold_test.go:268
Function
BenchmarkCountThresholdNoEarlyExit
Benchmark: count > 100 with no early exit (not enough matches)
optimizer/count_threshold_test.go:203
Function
BenchmarkEqual
(b *testing.B)
vm/runtime/helpers_test.go:50
Function
BenchmarkNotNil
(b *testing.B)
internal/testify/assert/assertions_test.go:2514
Function
BenchmarkParser
(b *testing.B)
parser/bench_test.go:5
Function
BenchmarkReduceRangeSum_Optimized
(b *testing.B)
optimizer/sum_range_test.go:263
Function
BenchmarkSplitLines100
(b *testing.B)
internal/difflib/difflib_test.go:420
Function
BenchmarkSplitLines10000
(b *testing.B)
internal/difflib/difflib_test.go:424
Function
BenchmarkSumArray
(b *testing.B)
optimizer/sum_array_test.go:16
Function
BenchmarkSumRange_Optimized
(b *testing.B)
optimizer/sum_range_test.go:249
Function
BenchmarkSumRange_Unoptimized
(b *testing.B)
optimizer/sum_range_test.go:277
Function
BenchmarkVM
(b *testing.B)
vm/vm_bench_test.go:14
Function
Benchmark_arrayIndex
(b *testing.B)
bench_test.go:223
Function
Benchmark_callConstExpr
(b *testing.B)
bench_test.go:416
Function
Benchmark_callFast
(b *testing.B)
bench_test.go:393
Function
Benchmark_callField
(b *testing.B)
bench_test.go:372
Function
Benchmark_callFunc
(b *testing.B)
bench_test.go:338
Function
Benchmark_callMethod
(b *testing.B)
bench_test.go:355
Function
Benchmark_envMap
(b *testing.B)
bench_test.go:293
Function
Benchmark_envStruct
(b *testing.B)
bench_test.go:245
Function
Benchmark_envStruct_noEnv
(b *testing.B)
bench_test.go:269
Function
Benchmark_expr
(b *testing.B)
bench_test.go:12
Function
Benchmark_expr_eval
(b *testing.B)
bench_test.go:34
Function
Benchmark_expr_reuseVm
(b *testing.B)
bench_test.go:54
Function
Benchmark_filter
(b *testing.B)
bench_test.go:96
Function
Benchmark_filterFirst
(b *testing.B)
bench_test.go:146
Function
Benchmark_filterLast
(b *testing.B)
bench_test.go:171
Function
Benchmark_filterLen
(b *testing.B)
bench_test.go:121
Function
Benchmark_filterMap
(b *testing.B)
bench_test.go:197
Function
Benchmark_groupBy
(b *testing.B)
bench_test.go:547
Function
Benchmark_largeNestedArrayAccess
(b *testing.B)
bench_test.go:480
Function
Benchmark_largeNestedStructAccess
(b *testing.B)
bench_test.go:455
Function
Benchmark_largeStructAccess
(b *testing.B)
bench_test.go:433
Function
Benchmark_len
(b *testing.B)
bench_test.go:77
Function
Benchmark_max
(b *testing.B)
bench_test.go:592
Function
Benchmark_mean
(b *testing.B)
bench_test.go:609
Function
Benchmark_median
(b *testing.B)
bench_test.go:626
Function
Benchmark_min
(b *testing.B)
bench_test.go:575
Function
Benchmark_reduce
(b *testing.B)
bench_test.go:561
Function
Benchmark_sort
(b *testing.B)
bench_test.go:502
Function
Benchmark_sortBy
(b *testing.B)
bench_test.go:521
Function
Benchmark_valueAdd
(b *testing.B)
patcher/value/bench_test.go:12
Function
Benchmark_valueTypedAdd
(b *testing.B)
patcher/value/bench_test.go:54
Function
Benchmark_valueUntypedAdd
(b *testing.B)
patcher/value/bench_test.go:33
Function
Ceil
(x any)
builtin/lib.go:118
Method
Check
()
conf/config.go:91
Method
Check
()
patcher/operator_override.go:111
Method
Class
()
test/coredns/coredns.go:113
Method
Condition
Condition uses a Comparison to assert a complex condition.
internal/testify/require/require_forward.go:14
Method
Conditionf
Conditionf uses a Comparison to assert a complex condition.
internal/testify/assert/assertion_forward.go:20
Method
Conditionf
Conditionf uses a Comparison to assert a complex condition.
internal/testify/require/require_forward.go:22
Method
Containsf
Containsf asserts that the specified string, list(array, slice...) or map contains the specified substring or element. a.Containsf("Hello World", "W
internal/testify/assert/assertion_forward.go:46
Method
Containsf
Containsf asserts that the specified string, list(array, slice...) or map contains the specified substring or element. a.Containsf("Hello World", "W
internal/testify/require/require_forward.go:48
Method
Date2
(ctx context.Context)
test/issues/823/issue_test.go:69
Method
DecisionsOrErr
()
test/crowdsec/crowdsec.go:105
Method
DirExists
DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking wh
internal/testify/assert/assertion_forward.go:55
Method
DirExists
DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking wh
internal/testify/require/require_forward.go:57
Method
DirExistsf
DirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking w
internal/testify/assert/assertion_forward.go:64
Method
DirExistsf
DirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking w
internal/testify/require/require_forward.go:66
Method
Do
()
test/coredns/coredns.go:79
Method
Do
(line []rune, pos int)
repl/repl.go:109
Method
ElementsMatch
ElementsMatch asserts that the specified listA(array, slice...) is equal to specified listB(array, slice...) ignoring the order of the elements. If th
internal/testify/assert/assertion_forward.go:76
Method
ElementsMatch
ElementsMatch asserts that the specified listA(array, slice...) is equal to specified listB(array, slice...) ignoring the order of the elements. If th
internal/testify/require/require_forward.go:78
Method
ElementsMatchf
ElementsMatchf asserts that the specified listA(array, slice...) is equal to specified listB(array, slice...) ignoring the order of the elements. If t
internal/testify/assert/assertion_forward.go:88
Method
ElementsMatchf
ElementsMatchf asserts that the specified listA(array, slice...) is equal to specified listB(array, slice...) ignoring the order of the elements. If t
internal/testify/require/require_forward.go:90
Method
EmbedMethod
(_ int)
test/mock/mock.go:150
Method
EmbedPointerEmbedMethod
(_ int)
test/mock/mock.go:158
Method
EmbedPointerEmbedPointerReceiverMethod
(_ int)
test/mock/mock.go:162
Method
Emptyf
Emptyf asserts that the specified object is empty. I.e. nil, "", false, 0 or either a slice or a channel with len == 0. a.Emptyf(obj, "error messag
internal/testify/assert/assertion_forward.go:110
Method
Emptyf
Emptyf asserts that the specified object is empty. I.e. nil, "", false, 0 or either a slice or a channel with len == 0. a.Emptyf(obj, "error messag
internal/testify/require/require_forward.go:112
Function
Env
Env specifies expected input of env for type checks. If struct is passed, all fields will be treated as variables, as well as all fields of embedded s
expr.go:29
Function
Env
Env returns the Nature of the given environment. Deprecated: use EnvWithCache instead.
conf/env.go:15
Method
Equal
(t Type)
types/types.go:50
Method
Equal
(t Type)
types/types.go:64
Method
Equal
(t Type)
types/types.go:83
Method
Equal
(t Type)
types/types.go:121
Method
Equal
(t Type)
types/types.go:168
Method
Equal
(other Post)
test/playground/env.go:65
Method
Equal
Equal asserts that two objects are equal. a.Equal(123, 123) Pointer variable equality is determined based on the equality of the referenced values
internal/testify/assert/assertion_forward.go:124
Method
Equal
Equal asserts that two objects are equal. a.Equal(123, 123) Pointer variable equality is determined based on the equality of the referenced values
internal/testify/require/require_forward.go:126
Method
EqualErrorf
EqualErrorf asserts that a function returned an error (i.e. not `nil`) and that it is equal to the provided error. actualObj, err := SomeFunction()
internal/testify/assert/assertion_forward.go:148
Method
EqualErrorf
EqualErrorf asserts that a function returned an error (i.e. not `nil`) and that it is equal to the provided error. actualObj, err := SomeFunction()
internal/testify/require/require_forward.go:150
Method
EqualExportedValues
EqualExportedValues asserts that the types of two objects are equal and their public fields are also equal. This is useful for comparing structs that
internal/testify/assert/assertion_forward.go:165
Method
EqualExportedValues
EqualExportedValues asserts that the types of two objects are equal and their public fields are also equal. This is useful for comparing structs that
internal/testify/require/require_forward.go:167
Method
EqualExportedValuesf
EqualExportedValuesf asserts that the types of two objects are equal and their public fields are also equal. This is useful for comparing structs that
internal/testify/assert/assertion_forward.go:182
Method
EqualExportedValuesf
EqualExportedValuesf asserts that the types of two objects are equal and their public fields are also equal. This is useful for comparing structs that
internal/testify/require/require_forward.go:184
Method
EqualValues
EqualValues asserts that two objects are equal or convertible to the same types and equal. a.EqualValues(uint32(123), int32(123))
internal/testify/require/require_forward.go:195
Method
EqualValuesf
EqualValuesf asserts that two objects are equal or convertible to the same types and equal. a.EqualValuesf(uint32(123), int32(123), "error message %
internal/testify/assert/assertion_forward.go:204
Method
EqualValuesf
EqualValuesf asserts that two objects are equal or convertible to the same types and equal. a.EqualValuesf(uint32(123), int32(123), "error message %
internal/testify/require/require_forward.go:206
Method
Equalf
Equalf asserts that two objects are equal. a.Equalf(123, 123, "error message %s", "formatted") Pointer variable equality is determined based on the
internal/testify/assert/assertion_forward.go:218
Method
Equalf
Equalf asserts that two objects are equal. a.Equalf(123, 123, "error message %s", "formatted") Pointer variable equality is determined based on the
internal/testify/require/require_forward.go:220
Method
Error
Error asserts that a function returned an error (i.e. not `nil`). actualObj, err := SomeFunction() if a.Error(err) { assert.Equal(t, expec
internal/testify/assert/assertion_forward.go:231
Method
ErrorAs
ErrorAs 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 error
internal/testify/assert/assertion_forward.go:240
Method
ErrorAs
ErrorAs 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 error
internal/testify/require/require_forward.go:242
← previous
next →
1,001–1,100 of 2,191, ranked by callers