MCPcopy Create free account

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

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

MethodIsNonIncreasing
IsNonIncreasing asserts that the collection is not increasing a.IsNonIncreasing([]int{2, 1, 1}) a.IsNonIncreasing([]float{2, 1}) a.IsNonIncreasing
internal/testify/assert/assertion_forward.go:852
MethodIsNonIncreasing
IsNonIncreasing asserts that the collection is not increasing a.IsNonIncreasing([]int{2, 1, 1}) a.IsNonIncreasing([]float{2, 1}) a.IsNonIncreasing
internal/testify/require/require_forward.go:854
MethodIsNonIncreasingf
IsNonIncreasingf asserts that the collection is not increasing a.IsNonIncreasingf([]int{2, 1, 1}, "error message %s", "formatted") a.IsNonIncreasin
internal/testify/assert/assertion_forward.go:864
MethodIsNonIncreasingf
IsNonIncreasingf asserts that the collection is not increasing a.IsNonIncreasingf([]int{2, 1, 1}, "error message %s", "formatted") a.IsNonIncreasin
internal/testify/require/require_forward.go:866
MethodIsTypef
IsTypef asserts that the specified objects are of the same type.
internal/testify/assert/assertion_forward.go:880
MethodIsTypef
IsTypef asserts that the specified objects are of the same type.
internal/testify/require/require_forward.go:882
MethodIsZero
(post Post)
test/playground/env.go:160
MethodJSONEqf
JSONEqf asserts that two JSON strings are equivalent. a.JSONEqf(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "error messa
internal/testify/assert/assertion_forward.go:900
MethodJSONEqf
JSONEqf asserts that two JSON strings are equivalent. a.JSONEqf(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "error messa
internal/testify/require/require_forward.go:902
FunctionLen
(x any)
builtin/lib.go:14
MethodLen
()
expr_test.go:2005
MethodLen
()
test/coredns/coredns.go:83
MethodLen
Len asserts that the specified object has specific length. Len also fails if the object has a type that len() not accept. a.Len(mySlice, 3)
internal/testify/require/require_forward.go:913
MethodLen
()
vm/runtime/sort.go:9
MethodLenf
Lenf asserts that the specified object has specific length. Lenf also fails if the object has a type that len() not accept. a.Lenf(mySlice, 3, "erro
internal/testify/assert/assertion_forward.go:922
MethodLenf
Lenf asserts that the specified object has specific length. Lenf also fails if the object has a type that len() not accept. a.Lenf(mySlice, 3, "erro
internal/testify/require/require_forward.go:924
MethodLess
Less asserts that the first element is less than the second a.Less(1, 2) a.Less(float64(1), float64(2)) a.Less("a", "b")
internal/testify/assert/assertion_forward.go:934
MethodLess
Less asserts that the first element is less than the second a.Less(1, 2) a.Less(float64(1), float64(2)) a.Less("a", "b")
internal/testify/require/require_forward.go:936
MethodLess
Less returns whether the value at index i should sort before the value at index j. It is part of the sort.Interface implementation.
internal/spew/common.go:326
MethodLess
(i, j int)
vm/runtime/sort.go:18
MethodLess
(i, j int)
vm/runtime/sort.go:39
MethodLessOrEqual
LessOrEqual asserts that the first element is less than or equal to the second a.LessOrEqual(1, 2) a.LessOrEqual(2, 2) a.LessOrEqual("a", "b") a.
internal/testify/assert/assertion_forward.go:947
MethodLessOrEqual
LessOrEqual asserts that the first element is less than or equal to the second a.LessOrEqual(1, 2) a.LessOrEqual(2, 2) a.LessOrEqual("a", "b") a.
internal/testify/require/require_forward.go:949
MethodLessOrEqualf
LessOrEqualf asserts that the first element is less than or equal to the second a.LessOrEqualf(1, 2, "error message %s", "formatted") a.LessOrEqual
internal/testify/assert/assertion_forward.go:960
MethodLessOrEqualf
LessOrEqualf asserts that the first element is less than or equal to the second a.LessOrEqualf(1, 2, "error message %s", "formatted") a.LessOrEqual
internal/testify/require/require_forward.go:962
MethodLessf
Lessf asserts that the first element is less than the second a.Lessf(1, 2, "error message %s", "formatted") a.Lessf(float64(1), float64(2), "error
internal/testify/assert/assertion_forward.go:972
MethodLessf
Lessf asserts that the first element is less than the second a.Lessf(1, 2, "error message %s", "formatted") a.Lessf(float64(1), float64(2), "error
internal/testify/require/require_forward.go:974
MethodLocalAddr
()
test/coredns/coredns.go:69
MethodLocalIP
()
test/coredns/coredns.go:55
MethodLocalPort
()
test/coredns/coredns.go:63
MethodLocation
Location returns the location of the node in the source code.
ast/node.go:40
MethodLocations
Locations returns a slice of bytecode's locations.
vm/program.go:71
MethodMetasOrErr
()
test/crowdsec/crowdsec.go:113
MethodMethod
()
bench_test.go:334
MethodMethod
()
test/mock/mock.go:175
MethodMethodWithArgs
(prefix string)
test/mock/mock.go:181
MethodName
()
test/coredns/coredns.go:105
MethodName
()
internal/testify/assert/assertions_test.go:2552
MethodNature
()
types/types.go:46
MethodNature
()
types/types.go:60
MethodNature
()
types/types.go:79
MethodNature
()
types/types.go:102
MethodNature
()
types/types.go:157
MethodNature
Nature returns the nature of the node.
ast/node.go:50
MethodNegative
Negative asserts that the specified element is negative a.Negative(-1) a.Negative(-1.23)
internal/testify/assert/assertion_forward.go:983
MethodNegative
Negative asserts that the specified element is negative a.Negative(-1) a.Negative(-1.23)
internal/testify/require/require_forward.go:985
MethodNegativef
Negativef asserts that the specified element is negative a.Negativef(-1, "error message %s", "formatted") a.Negativef(-1.23, "error message %s", "f
internal/testify/assert/assertion_forward.go:994
MethodNegativef
Negativef asserts that the specified element is negative a.Negativef(-1, "error message %s", "formatted") a.Negativef(-1.23, "error message %s", "f
internal/testify/require/require_forward.go:996
MethodNever
Never asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. a.Never(func() bool { r
internal/testify/assert/assertion_forward.go:1005
MethodNever
Never asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. a.Never(func() bool { r
internal/testify/require/require_forward.go:1007
MethodNeverf
Neverf asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. a.Neverf(func() bool {
internal/testify/assert/assertion_forward.go:1016
MethodNeverf
Neverf asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. a.Neverf(func() bool {
internal/testify/require/require_forward.go:1018
FunctionNew
(chunkSize int)
internal/ring/ring.go:12
MethodNewWithQuestion
(name string, typ uint16)
test/coredns/coredns.go:47
MethodNil
(a any)
test/mock/mock.go:232
MethodNilf
Nilf asserts that the specified object is nil. a.Nilf(err, "error message %s", "formatted")
internal/testify/assert/assertion_forward.go:1036
MethodNilf
Nilf asserts that the specified object is nil. a.Nilf(err, "error message %s", "formatted")
internal/testify/require/require_forward.go:1038
MethodNoDirExists
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/assert/assertion_forward.go:1045
MethodNoDirExists
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_forward.go:1047
MethodNoDirExistsf
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/assert/assertion_forward.go:1054
MethodNoDirExistsf
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_forward.go:1056
MethodNoErrorf
NoErrorf asserts that a function returned no error (i.e. `nil`). actualObj, err := SomeFunction() if a.NoErrorf(err, "error message %s", "forma
internal/testify/assert/assertion_forward.go:1080
MethodNoErrorf
NoErrorf asserts that a function returned no error (i.e. `nil`). actualObj, err := SomeFunction() if a.NoErrorf(err, "error message %s", "forma
internal/testify/require/require_forward.go:1082
MethodNoFileExists
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/assert/assertion_forward.go:1089
MethodNoFileExists
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_forward.go:1091
MethodNoFileExistsf
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/assert/assertion_forward.go:1098
MethodNoFileExistsf
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_forward.go:1100
MethodNotContainsf
NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element. a.NotContainsf("He
internal/testify/assert/assertion_forward.go:1124
MethodNotContainsf
NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element. a.NotContainsf("He
internal/testify/require/require_forward.go:1126
MethodNotEmptyf
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 a.NotEmptyf(o
internal/testify/assert/assertion_forward.go:1150
MethodNotEmptyf
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 a.NotEmptyf(o
internal/testify/require/require_forward.go:1152
MethodNotEqualValues
NotEqualValues asserts that two objects are not equal even when converted to the same type a.NotEqualValues(obj1, obj2)
internal/testify/require/require_forward.go:1175
MethodNotEqualValuesf
NotEqualValuesf asserts that two objects are not equal even when converted to the same type a.NotEqualValuesf(obj1, obj2, "error message %s", "forma
internal/testify/assert/assertion_forward.go:1183
MethodNotEqualValuesf
NotEqualValuesf asserts that two objects are not equal even when converted to the same type a.NotEqualValuesf(obj1, obj2, "error message %s", "forma
internal/testify/require/require_forward.go:1185
MethodNotEqualf
NotEqualf asserts that the specified values are NOT equal. a.NotEqualf(obj1, obj2, "error message %s", "formatted") Pointer variable equality is de
internal/testify/assert/assertion_forward.go:1196
MethodNotEqualf
NotEqualf asserts that the specified values are NOT equal. a.NotEqualf(obj1, obj2, "error message %s", "formatted") Pointer variable equality is de
internal/testify/require/require_forward.go:1198
MethodNotErrorIs
NotErrorIs asserts that at none of the errors in err's chain matches target. This is a wrapper for errors.Is.
internal/testify/assert/assertion_forward.go:1205
MethodNotErrorIs
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_forward.go:1207
MethodNotErrorIsf
NotErrorIsf asserts that at none of the errors in err's chain matches target. This is a wrapper for errors.Is.
internal/testify/assert/assertion_forward.go:1214
MethodNotErrorIsf
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_forward.go:1216
MethodNotImplements
NotImplements asserts that an object does not implement the specified interface. a.NotImplements((*MyInterface)(nil), new(MyObject))
internal/testify/assert/assertion_forward.go:1224
MethodNotImplements
NotImplements asserts that an object does not implement the specified interface. a.NotImplements((*MyInterface)(nil), new(MyObject))
internal/testify/require/require_forward.go:1226
MethodNotImplementsf
NotImplementsf asserts that an object does not implement the specified interface. a.NotImplementsf((*MyInterface)(nil), new(MyObject), "error messag
internal/testify/assert/assertion_forward.go:1234
MethodNotImplementsf
NotImplementsf asserts that an object does not implement the specified interface. a.NotImplementsf((*MyInterface)(nil), new(MyObject), "error messag
internal/testify/require/require_forward.go:1236
MethodNotNilf
NotNilf asserts that the specified object is not nil. a.NotNilf(err, "error message %s", "formatted")
internal/testify/assert/assertion_forward.go:1254
MethodNotNilf
NotNilf asserts that the specified object is not nil. a.NotNilf(err, "error message %s", "formatted")
internal/testify/require/require_forward.go:1256
MethodNotPanicsf
NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. a.NotPanicsf(func(){ RemainCalm() }, "error message %s", "format
internal/testify/assert/assertion_forward.go:1274
MethodNotPanicsf
NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. a.NotPanicsf(func(){ RemainCalm() }, "error message %s", "format
internal/testify/require/require_forward.go:1276
MethodNotRegexp
NotRegexp asserts that a specified regexp does not match a string. a.NotRegexp(regexp.MustCompile("starts"), "it's starting") a.NotRegexp("^start",
internal/testify/require/require_forward.go:1287
MethodNotRegexpf
NotRegexpf asserts that a specified regexp does not match a string. a.NotRegexpf(regexp.MustCompile("starts"), "it's starting", "error message %s",
internal/testify/assert/assertion_forward.go:1296
MethodNotRegexpf
NotRegexpf asserts that a specified regexp does not match a string. a.NotRegexpf(regexp.MustCompile("starts"), "it's starting", "error message %s",
internal/testify/require/require_forward.go:1298
MethodNotSame
NotSame asserts that two pointers do not reference the same object. a.NotSame(ptr1, ptr2) Both arguments must be pointer variables. Pointer variabl
internal/testify/assert/assertion_forward.go:1309
MethodNotSame
NotSame asserts that two pointers do not reference the same object. a.NotSame(ptr1, ptr2) Both arguments must be pointer variables. Pointer variabl
internal/testify/require/require_forward.go:1311
MethodNotSamef
NotSamef asserts that two pointers do not reference the same object. a.NotSamef(ptr1, ptr2, "error message %s", "formatted") Both arguments must be
internal/testify/assert/assertion_forward.go:1322
MethodNotSamef
NotSamef asserts that two pointers do not reference the same object. a.NotSamef(ptr1, ptr2, "error message %s", "formatted") Both arguments must be
internal/testify/require/require_forward.go:1324
MethodNotStringStringerEqual
(s string, f fmt.Stringer)
test/mock/mock.go:136
MethodNotStringerStringEqual
(f fmt.Stringer, s string)
test/mock/mock.go:132
MethodNotStringerStringerEqual
(f fmt.Stringer, g fmt.Stringer)
test/mock/mock.go:140
MethodNotSubset
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/assert/assertion_forward.go:1335
MethodNotSubset
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_forward.go:1337
← previousnext →1,301–1,400 of 2,191, ranked by callers