MCPcopy Create free account

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

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

↓ 1 callersFunctionInDeltaMapValues
InDeltaMapValues is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
internal/testify/require/require.go:881
↓ 1 callersFunctionInDeltaMapValuesf
InDeltaMapValuesf is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
internal/testify/require/require.go:892
↓ 1 callersFunctionInDeltaSlice
InDeltaSlice is the same as InDelta, except it compares two slices.
internal/testify/require/require.go:903
↓ 1 callersFunctionInDeltaSlicef
InDeltaSlicef is the same as InDelta, except it compares two slices.
internal/testify/require/require.go:914
↓ 1 callersFunctionInDeltaf
InDeltaf asserts that the two numerals are within delta of each other. assert.InDeltaf(t, math.Pi, 22/7.0, 0.01, "error message %s", "formatted")
internal/testify/require/require.go:927
↓ 1 callersMethodInElem
(c *Cache, i int)
checker/nature/nature.go:315
↓ 1 callersFunctionInEpsilon
InEpsilon asserts that expected and actual have a relative error less than epsilon
internal/testify/require/require.go:938
↓ 1 callersFunctionInEpsilonSlice
InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
internal/testify/require/require.go:949
↓ 1 callersFunctionInEpsilonSlicef
InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
internal/testify/require/require.go:960
↓ 1 callersFunctionInEpsilonf
InEpsilonf asserts that expected and actual have a relative error less than epsilon
internal/testify/require/require.go:971
↓ 1 callersMethodIntegerNode
(node *ast.IntegerNode)
compiler/compiler.go:332
↓ 1 callersMethodIsAny
(c *Cache)
checker/nature/nature.go:215
↓ 1 callersMethodIsByteSlice
()
checker/nature/nature.go:506
↓ 1 callersFunctionIsDecreasing
IsDecreasing asserts that the collection is decreasing assert.IsDecreasing(t, []int{2, 1, 0}) assert.IsDecreasing(t, []float{2, 1}) assert.IsDecre
internal/testify/require/require.go:986
↓ 1 callersFunctionIsDecreasingf
IsDecreasingf asserts that the collection is decreasing assert.IsDecreasingf(t, []int{2, 1, 0}, "error message %s", "formatted") assert.IsDecreasin
internal/testify/require/require.go:1001
↓ 1 callersFunctionIsFastFunc
(fn reflect.Type, method bool)
checker/info.go:104
↓ 1 callersMethodIsFastMap
()
checker/nature/nature.go:389
↓ 1 callersFunctionIsIncreasing
IsIncreasing asserts that the collection is increasing assert.IsIncreasing(t, []int{1, 2, 3}) assert.IsIncreasing(t, []float{1, 2}) assert.IsIncre
internal/testify/require/require.go:1016
↓ 1 callersFunctionIsIncreasingf
IsIncreasingf asserts that the collection is increasing assert.IsIncreasingf(t, []int{1, 2, 3}, "error message %s", "formatted") assert.IsIncreasin
internal/testify/require/require.go:1031
↓ 1 callersFunctionIsNonDecreasing
IsNonDecreasing asserts that the collection is not decreasing assert.IsNonDecreasing(t, []int{1, 1, 2}) assert.IsNonDecreasing(t, []float{1, 2}) a
internal/testify/require/require.go:1046
↓ 1 callersFunctionIsNonDecreasingf
IsNonDecreasingf asserts that the collection is not decreasing assert.IsNonDecreasingf(t, []int{1, 1, 2}, "error message %s", "formatted") assert.I
internal/testify/require/require.go:1061
↓ 1 callersFunctionIsNonIncreasing
IsNonIncreasing asserts that the collection is not increasing assert.IsNonIncreasing(t, []int{2, 1, 1}) assert.IsNonIncreasing(t, []float{2, 1}) a
internal/testify/require/require.go:1076
↓ 1 callersFunctionIsNonIncreasingf
IsNonIncreasingf asserts that the collection is not increasing assert.IsNonIncreasingf(t, []int{2, 1, 1}, "error message %s", "formatted") assert.I
internal/testify/require/require.go:1091
↓ 1 callersMethodIsOverridden
(name string)
conf/config.go:99
↓ 1 callersMethodIsPointer
()
checker/nature/nature.go:526
↓ 1 callersFunctionIsSpace
(r rune)
parser/utils/utils.go:24
↓ 1 callersMethodIsStruct
()
checker/nature/nature.go:518
↓ 1 callersFunctionIsTypef
IsTypef asserts that the specified objects are of the same type.
internal/testify/require/require.go:1113
↓ 1 callersFunctionJSONEqf
JSONEqf asserts that two JSON strings are equivalent. assert.JSONEqf(t, `{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "err
internal/testify/require/require.go:1139
↓ 1 callersFunctionLen
(a any)
vm/runtime/runtime.go:266
↓ 1 callersFunctionLenf
Lenf asserts that the specified object has specific length. Lenf also fails if the object has a type that len() not accept. assert.Lenf(t, mySlice,
internal/testify/require/require.go:1167
↓ 1 callersFunctionLess
Less asserts that the first element is less than the second assert.Less(t, 1, 2) assert.Less(t, float64(1), float64(2)) assert.Less(t, "a", "b")
internal/testify/require/require.go:1182
↓ 1 callersFunctionLessOrEqual
LessOrEqual asserts that the first element is less than or equal to the second assert.LessOrEqual(t, 1, 2) assert.LessOrEqual(t, 2, 2) assert.Less
internal/testify/require/require.go:1198
↓ 1 callersFunctionLessOrEqual
(a, b interface{})
vm/runtime/helpers[generated].go:1392
↓ 1 callersFunctionLessOrEqualf
LessOrEqualf asserts that the first element is less than or equal to the second assert.LessOrEqualf(t, 1, 2, "error message %s", "formatted") asser
internal/testify/require/require.go:1214
↓ 1 callersFunctionLessf
Lessf asserts that the first element is less than the second assert.Lessf(t, 1, 2, "error message %s", "formatted") assert.Lessf(t, float64(1), flo
internal/testify/require/require.go:1229
↓ 1 callersMethodLocalAddr
()
test/coredns/coredns.go:171
↓ 1 callersFunctionMakeRange
(min, max int)
vm/runtime/runtime.go:311
↓ 1 callersMethodMapNode
(node *ast.MapNode)
compiler/compiler.go:1301
↓ 1 callersMethodMemberNode
(node *ast.MemberNode)
compiler/compiler.go:682
↓ 1 callersFunctionModulo
(a, b interface{})
vm/runtime/helpers[generated].go:3484
↓ 1 callersFunctionMore
(a, b interface{})
vm/runtime/helpers[generated].go:1047
↓ 1 callersFunctionMoreOrEqual
(a, b interface{})
vm/runtime/helpers[generated].go:1737
↓ 1 callersFunctionMultiply
(a, b interface{})
vm/runtime/helpers[generated].go:2771
↓ 1 callersFunctionNegate
(i any)
vm/runtime/runtime.go:276
↓ 1 callersFunctionNegative
Negative asserts that the specified element is negative assert.Negative(t, -1) assert.Negative(t, -1.23)
internal/testify/require/require.go:1243
↓ 1 callersFunctionNegativef
Negativef asserts that the specified element is negative assert.Negativef(t, -1, "error message %s", "formatted") assert.Negativef(t, -1.23, "error
internal/testify/require/require.go:1257
↓ 1 callersFunctionNever
Never asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. assert.Never(t, func()
internal/testify/require/require.go:1271
↓ 1 callersFunctionNeverf
Neverf asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. assert.Neverf(t, func(
internal/testify/require/require.go:1285
↓ 1 callersFunctionNewFormatter
* NewFormatter returns a custom formatter that satisfies the fmt.Formatter interface. As a result, it integrates cleanly with standard fmt package pr
internal/spew/format.go:417
↓ 1 callersMethodNewFormatter
* NewFormatter returns a custom formatter that satisfies the fmt.Formatter interface. As a result, it integrates cleanly with standard fmt package pr
internal/spew/config.go:240
↓ 1 callersMethodNilNode
(_ *ast.NilNode)
compiler/compiler.go:296
↓ 1 callersFunctionNilf
Nilf asserts that the specified object is nil. assert.Nilf(t, err, "error message %s", "formatted")
internal/testify/require/require.go:1311
↓ 1 callersFunctionNoDirExists
NoDirExists checks whether a directory does not exist in the given path. It fails if the path points to an existing _directory_ only.
internal/testify/require/require.go:1323
↓ 1 callersFunctionNoDirExistsf
NoDirExistsf checks whether a directory does not exist in the given path. It fails if the path points to an existing _directory_ only.
internal/testify/require/require.go:1335
↓ 1 callersFunctionNoErrorf
NoErrorf asserts that a function returned no error (i.e. `nil`). actualObj, err := SomeFunction() if assert.NoErrorf(t, err, "error message %s"
internal/testify/require/require.go:1367
↓ 1 callersFunctionNoFileExists
NoFileExists checks whether a file does not exist in a given path. It fails if the path points to an existing _file_ only.
internal/testify/require/require.go:1379
↓ 1 callersFunctionNoFileExistsf
NoFileExistsf checks whether a file does not exist in a given path. It fails if the path points to an existing _file_ only.
internal/testify/require/require.go:1391
↓ 1 callersFunctionNotContainsf
NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element. assert.NotContains
internal/testify/require/require.go:1423
↓ 1 callersFunctionNotEmptyf
NotEmptyf asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either a slice or a channel with len == 0. if assert.NotEmp
internal/testify/require/require.go:1455
↓ 1 callersFunctionNotEqualValues
NotEqualValues asserts that two objects are not equal even when converted to the same type assert.NotEqualValues(t, obj1, obj2)
internal/testify/require/require.go:1484
↓ 1 callersFunctionNotEqualValuesf
NotEqualValuesf asserts that two objects are not equal even when converted to the same type assert.NotEqualValuesf(t, obj1, obj2, "error message %s"
internal/testify/require/require.go:1497
↓ 1 callersFunctionNotEqualf
NotEqualf asserts that the specified values are NOT equal. assert.NotEqualf(t, obj1, obj2, "error message %s", "formatted") Pointer variable equali
internal/testify/require/require.go:1513
↓ 1 callersFunctionNotErrorIs
NotErrorIs asserts that at none of the errors in err's chain matches target. This is a wrapper for errors.Is.
internal/testify/require/require.go:1525
↓ 1 callersFunctionNotErrorIsf
NotErrorIsf asserts that at none of the errors in err's chain matches target. This is a wrapper for errors.Is.
internal/testify/require/require.go:1537
↓ 1 callersFunctionNotImplements
NotImplements asserts that an object does not implement the specified interface. assert.NotImplements(t, (*MyInterface)(nil), new(MyObject))
internal/testify/require/require.go:1550
↓ 1 callersFunctionNotImplementsf
NotImplementsf asserts that an object does not implement the specified interface. assert.NotImplementsf(t, (*MyInterface)(nil), new(MyObject), "erro
internal/testify/require/require.go:1563
↓ 1 callersFunctionNotNilf
NotNilf asserts that the specified object is not nil. assert.NotNilf(t, err, "error message %s", "formatted")
internal/testify/require/require.go:1589
↓ 1 callersFunctionNotPanicsf
NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. assert.NotPanicsf(t, func(){ RemainCalm() }, "error message %s",
internal/testify/require/require.go:1615
↓ 1 callersFunctionNotRegexp
NotRegexp asserts that a specified regexp does not match a string. assert.NotRegexp(t, regexp.MustCompile("starts"), "it's starting") assert.NotReg
internal/testify/require/require.go:1629
↓ 1 callersFunctionNotRegexpf
NotRegexpf asserts that a specified regexp does not match a string. assert.NotRegexpf(t, regexp.MustCompile("starts"), "it's starting", "error messa
internal/testify/require/require.go:1643
↓ 1 callersFunctionNotSame
NotSame asserts that two pointers do not reference the same object. assert.NotSame(t, ptr1, ptr2) Both arguments must be pointer variables. Pointer
internal/testify/require/require.go:1659
↓ 1 callersFunctionNotSamef
NotSamef asserts that two pointers do not reference the same object. assert.NotSamef(t, ptr1, ptr2, "error message %s", "formatted") Both arguments
internal/testify/require/require.go:1675
↓ 1 callersFunctionNotSubset
NotSubset asserts that the specified list(array, slice...) or map does NOT contain all elements given in the specified subset list(array, slice...) or
internal/testify/require/require.go:1691
↓ 1 callersFunctionNotSubsetf
NotSubsetf asserts that the specified list(array, slice...) or map does NOT contain all elements given in the specified subset list(array, slice...) o
internal/testify/require/require.go:1707
↓ 1 callersFunctionNotZerof
NotZerof asserts that i is not the zero value for its type.
internal/testify/require/require.go:1729
↓ 1 callersFunctionObjectsExportedFieldsAreEqual
ObjectsExportedFieldsAreEqual determines if the exported (public) fields of two objects are considered equal. This comparison of only exported fields
internal/testify/assert/assertions.go:154
↓ 1 callersMethodPairNode
(node *ast.PairNode)
compiler/compiler.go:1310
↓ 1 callersFunctionPanicsWithError
PanicsWithError asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value is an error that satisfies the Equ
internal/testify/require/require.go:1757
↓ 1 callersFunctionPanicsWithErrorf
PanicsWithErrorf asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value is an error that satisfies the Eq
internal/testify/require/require.go:1772
↓ 1 callersFunctionPanicsWithValue
PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value.
internal/testify/require/require.go:1786
↓ 1 callersFunctionPanicsWithValuef
PanicsWithValuef asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value.
internal/testify/require/require.go:1800
↓ 1 callersFunctionPanicsf
Panicsf asserts that the code inside the specified PanicTestFunc panics. assert.Panicsf(t, func(){ GoCrazy() }, "error message %s", "formatted")
internal/testify/require/require.go:1813
↓ 1 callersMethodPointerNode
(node *ast.PointerNode)
compiler/compiler.go:1228
↓ 1 callersFunctionPositive
Positive asserts that the specified element is positive assert.Positive(t, 1) assert.Positive(t, 1.23)
internal/testify/require/require.go:1827
↓ 1 callersFunctionPositivef
Positivef asserts that the specified element is positive assert.Positivef(t, 1, "error message %s", "formatted") assert.Positivef(t, 1.23, "error m
internal/testify/require/require.go:1841
↓ 1 callersMethodPrecision
()
internal/spew/internal_test.go:42
↓ 1 callersMethodPredicateNode
(node *ast.PredicateNode)
compiler/compiler.go:1224
↓ 1 callersFunctionPrint
Print is a wrapper for fmt.Print that treats each argument as if it were passed with a default Formatter interface returned by NewFormatter. It retur
internal/spew/spew.go:79
↓ 1 callersFunctionPrintln
Println is a wrapper for fmt.Println that treats each argument as if it were passed with a default Formatter interface returned by NewFormatter. It r
internal/spew/spew.go:103
↓ 1 callersMethodPublished
()
test/playground/env.go:44
↓ 1 callersFunctionRegexp
Regexp asserts that a specified regexp matches a string. assert.Regexp(t, regexp.MustCompile("start"), "it's starting") assert.Regexp(t, "start...$
internal/testify/require/require.go:1855
↓ 1 callersFunctionRegexpf
Regexpf asserts that a specified regexp matches a string. assert.Regexpf(t, regexp.MustCompile("start"), "it's starting", "error message %s", "forma
internal/testify/require/require.go:1869
↓ 1 callersMethodRemoteAddr
()
test/coredns/coredns.go:172
↓ 1 callersFunctionSame
Same asserts that two pointers reference the same object. assert.Same(t, ptr1, ptr2) Both arguments must be pointer variables. Pointer variable sam
internal/testify/require/require.go:1885
↓ 1 callersFunctionSamef
Samef asserts that two pointers reference the same object. assert.Samef(t, ptr1, ptr2, "error message %s", "formatted") Both arguments must be poin
internal/testify/require/require.go:1901
↓ 1 callersFunctionSdump
Sdump returns a string with the passed arguments formatted exactly the same as Dump.
internal/spew/dump.go:478
↓ 1 callersMethodSequenceNode
(node *ast.SequenceNode)
compiler/compiler.go:1250
↓ 1 callersMethodSetSeq1
Set the first sequence to be compared. The second sequence to be compared is not changed. SequenceMatcher computes and caches detailed information ab
internal/difflib/difflib.go:129
↓ 1 callersMethodSetSeq2
Set the second sequence to be compared. The first sequence to be compared is not changed.
internal/difflib/difflib.go:140
← previousnext →701–800 of 2,191, ranked by callers