MCPcopy Create free account

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

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

FunctionBenchmarkCountThresholdEarlyMatch
Benchmark: count > 100 with early match (element 101 matches early)
optimizer/count_threshold_test.go:177
FunctionBenchmarkCountThresholdGteEarlyMatch
Benchmark: count >= 50 with early match
optimizer/count_threshold_test.go:190
FunctionBenchmarkCountThresholdLargeEarlyMatch
Benchmark: Large threshold with early match
optimizer/count_threshold_test.go:216
FunctionBenchmarkCountThresholdLtEarlyExit
Benchmark: count < N with early exit (result is false)
optimizer/count_threshold_test.go:229
FunctionBenchmarkCountThresholdLtNoEarlyExit
Benchmark: count < N without early exit (result is true)
optimizer/count_threshold_test.go:255
FunctionBenchmarkCountThresholdLteEarlyExit
Benchmark: count <= N with early exit (result is false)
optimizer/count_threshold_test.go:242
FunctionBenchmarkCountThresholdLteNoEarlyExit
Benchmark: count <= N without early exit (result is true)
optimizer/count_threshold_test.go:268
FunctionBenchmarkCountThresholdNoEarlyExit
Benchmark: count > 100 with no early exit (not enough matches)
optimizer/count_threshold_test.go:203
FunctionBenchmarkEqual
(b *testing.B)
vm/runtime/helpers_test.go:50
FunctionBenchmarkNotNil
(b *testing.B)
internal/testify/assert/assertions_test.go:2514
FunctionBenchmarkParser
(b *testing.B)
parser/bench_test.go:5
FunctionBenchmarkReduceRangeSum_Optimized
(b *testing.B)
optimizer/sum_range_test.go:263
FunctionBenchmarkSplitLines100
(b *testing.B)
internal/difflib/difflib_test.go:420
FunctionBenchmarkSplitLines10000
(b *testing.B)
internal/difflib/difflib_test.go:424
FunctionBenchmarkSumArray
(b *testing.B)
optimizer/sum_array_test.go:16
FunctionBenchmarkSumRange_Optimized
(b *testing.B)
optimizer/sum_range_test.go:249
FunctionBenchmarkSumRange_Unoptimized
(b *testing.B)
optimizer/sum_range_test.go:277
FunctionBenchmarkVM
(b *testing.B)
vm/vm_bench_test.go:14
FunctionBenchmark_arrayIndex
(b *testing.B)
bench_test.go:223
FunctionBenchmark_callConstExpr
(b *testing.B)
bench_test.go:416
FunctionBenchmark_callFast
(b *testing.B)
bench_test.go:393
FunctionBenchmark_callField
(b *testing.B)
bench_test.go:372
FunctionBenchmark_callFunc
(b *testing.B)
bench_test.go:338
FunctionBenchmark_callMethod
(b *testing.B)
bench_test.go:355
FunctionBenchmark_envMap
(b *testing.B)
bench_test.go:293
FunctionBenchmark_envStruct
(b *testing.B)
bench_test.go:245
FunctionBenchmark_envStruct_noEnv
(b *testing.B)
bench_test.go:269
FunctionBenchmark_expr
(b *testing.B)
bench_test.go:12
FunctionBenchmark_expr_eval
(b *testing.B)
bench_test.go:34
FunctionBenchmark_expr_reuseVm
(b *testing.B)
bench_test.go:54
FunctionBenchmark_filter
(b *testing.B)
bench_test.go:96
FunctionBenchmark_filterFirst
(b *testing.B)
bench_test.go:146
FunctionBenchmark_filterLast
(b *testing.B)
bench_test.go:171
FunctionBenchmark_filterLen
(b *testing.B)
bench_test.go:121
FunctionBenchmark_filterMap
(b *testing.B)
bench_test.go:197
FunctionBenchmark_groupBy
(b *testing.B)
bench_test.go:547
FunctionBenchmark_largeNestedArrayAccess
(b *testing.B)
bench_test.go:480
FunctionBenchmark_largeNestedStructAccess
(b *testing.B)
bench_test.go:455
FunctionBenchmark_largeStructAccess
(b *testing.B)
bench_test.go:433
FunctionBenchmark_len
(b *testing.B)
bench_test.go:77
FunctionBenchmark_max
(b *testing.B)
bench_test.go:592
FunctionBenchmark_mean
(b *testing.B)
bench_test.go:609
FunctionBenchmark_median
(b *testing.B)
bench_test.go:626
FunctionBenchmark_min
(b *testing.B)
bench_test.go:575
FunctionBenchmark_reduce
(b *testing.B)
bench_test.go:561
FunctionBenchmark_sort
(b *testing.B)
bench_test.go:502
FunctionBenchmark_sortBy
(b *testing.B)
bench_test.go:521
FunctionBenchmark_valueAdd
(b *testing.B)
patcher/value/bench_test.go:12
FunctionBenchmark_valueTypedAdd
(b *testing.B)
patcher/value/bench_test.go:54
FunctionBenchmark_valueUntypedAdd
(b *testing.B)
patcher/value/bench_test.go:33
FunctionCeil
(x any)
builtin/lib.go:118
MethodCheck
()
conf/config.go:91
MethodCheck
()
patcher/operator_override.go:111
MethodClass
()
test/coredns/coredns.go:113
MethodCondition
Condition uses a Comparison to assert a complex condition.
internal/testify/require/require_forward.go:14
MethodConditionf
Conditionf uses a Comparison to assert a complex condition.
internal/testify/assert/assertion_forward.go:20
MethodConditionf
Conditionf uses a Comparison to assert a complex condition.
internal/testify/require/require_forward.go:22
MethodContainsf
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
MethodContainsf
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
MethodDate2
(ctx context.Context)
test/issues/823/issue_test.go:69
MethodDecisionsOrErr
()
test/crowdsec/crowdsec.go:105
MethodDirExists
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
MethodDirExists
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
MethodDirExistsf
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
MethodDirExistsf
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
MethodDo
()
test/coredns/coredns.go:79
MethodDo
(line []rune, pos int)
repl/repl.go:109
MethodElementsMatch
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
MethodElementsMatch
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
MethodElementsMatchf
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
MethodElementsMatchf
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
MethodEmbedMethod
(_ int)
test/mock/mock.go:150
MethodEmbedPointerEmbedMethod
(_ int)
test/mock/mock.go:158
MethodEmbedPointerEmbedPointerReceiverMethod
(_ int)
test/mock/mock.go:162
MethodEmptyf
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
MethodEmptyf
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
FunctionEnv
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
FunctionEnv
Env returns the Nature of the given environment. Deprecated: use EnvWithCache instead.
conf/env.go:15
MethodEqual
(t Type)
types/types.go:50
MethodEqual
(t Type)
types/types.go:64
MethodEqual
(t Type)
types/types.go:83
MethodEqual
(t Type)
types/types.go:121
MethodEqual
(t Type)
types/types.go:168
MethodEqual
(other Post)
test/playground/env.go:65
MethodEqual
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
MethodEqual
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
MethodEqualErrorf
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
MethodEqualErrorf
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
MethodEqualExportedValues
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
MethodEqualExportedValues
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
MethodEqualExportedValuesf
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
MethodEqualExportedValuesf
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
MethodEqualValues
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
MethodEqualValuesf
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
MethodEqualValuesf
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
MethodEqualf
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
MethodEqualf
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
MethodError
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
MethodErrorAs
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
MethodErrorAs
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
← previousnext →1,001–1,100 of 2,191, ranked by callers