MCPcopy Create free account

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

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

↓ 1 callersMethodAsAny
()
patcher/value/value.go:36
↓ 1 callersMethodAsArray
()
patcher/value/value.go:104
↓ 1 callersMethodAsBool
()
patcher/value/value.go:44
↓ 1 callersMethodAsDuration
()
patcher/value/value.go:100
↓ 1 callersMethodAsFloat32
()
patcher/value/value.go:84
↓ 1 callersMethodAsFloat64
()
patcher/value/value.go:88
↓ 1 callersMethodAsInt
()
patcher/value/value.go:40
↓ 1 callersMethodAsInt16
()
patcher/value/value.go:52
↓ 1 callersMethodAsInt32
()
patcher/value/value.go:56
↓ 1 callersMethodAsInt64
()
patcher/value/value.go:60
↓ 1 callersMethodAsInt8
()
patcher/value/value.go:48
↓ 1 callersMethodAsMap
()
patcher/value/value.go:108
↓ 1 callersMethodAsString
()
patcher/value/value.go:92
↓ 1 callersMethodAsTime
()
patcher/value/value.go:96
↓ 1 callersMethodAsUint
()
patcher/value/value.go:64
↓ 1 callersMethodAsUint16
()
patcher/value/value.go:72
↓ 1 callersMethodAsUint32
()
patcher/value/value.go:76
↓ 1 callersMethodAsUint64
()
patcher/value/value.go:80
↓ 1 callersMethodAsUint8
()
patcher/value/value.go:68
↓ 1 callersMethodBinaryNode
(node *ast.BinaryNode)
compiler/compiler.go:447
↓ 1 callersMethodBoolNode
(node *ast.BoolNode)
compiler/compiler.go:403
↓ 1 callersMethodBuiltinNode
(node *ast.BuiltinNode)
compiler/compiler.go:840
↓ 1 callersMethodBytesNode
(node *ast.BytesNode)
compiler/compiler.go:415
↓ 1 callersMethodCallNode
(node *ast.CallNode)
compiler/compiler.go:778
↓ 1 callersMethodChainNode
(node *ast.ChainNode)
compiler/compiler.go:660
↓ 1 callersFunctionCondition
Condition uses a Comparison to assert a complex condition.
internal/testify/require/require.go:14
↓ 1 callersMethodConditionalNode
(node *ast.ConditionalNode)
compiler/compiler.go:1276
↓ 1 callersFunctionConditionf
Conditionf uses a Comparison to assert a complex condition.
internal/testify/require/require.go:25
↓ 1 callersMethodConstantNode
(node *ast.ConstantNode)
compiler/compiler.go:419
↓ 1 callersFunctionContainsf
Containsf asserts that the specified string, list(array, slice...) or map contains the specified substring or element. assert.Containsf(t, "Hello Wo
internal/testify/require/require.go:57
↓ 1 callersMethodCopy
Deprecated: That was a method for internal usage that should not have been published. Now just panics.
internal/testify/assert/assertions.go:1919
↓ 1 callersFunctionDefaultEnv
(ctx context.Context, state *Request)
test/coredns/coredns.go:9
↓ 1 callersFunctionDirExists
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.go:69
↓ 1 callersFunctionDirExistsf
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.go:81
↓ 1 callersFunctionDisableIfOperator
DisableIfOperator disables the `if ... else ...` operator syntax so a custom function named `if(...)` can be used without conflicts.
expr.go:114
↓ 1 callersFunctionDisableShortCircuit
DisableShortCircuit turns short circuit off.
expr.go:138
↓ 1 callersFunctionDivide
(a, b interface{})
vm/runtime/helpers[generated].go:3154
↓ 1 callersFunctionDump
* Dump displays the passed parameters to standard out with newlines, customizable indentation, and additional debug information such as complete types
internal/spew/dump.go:507
↓ 1 callersFunctionElementsMatch
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.go:96
↓ 1 callersFunctionElementsMatchf
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.go:111
↓ 1 callersFunctionEmptyf
Emptyf asserts that the specified object is empty. I.e. nil, "", false, 0 or either a slice or a channel with len == 0. assert.Emptyf(t, obj, "erro
internal/testify/require/require.go:139
↓ 1 callersFunctionEqualErrorf
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.go:186
↓ 1 callersFunctionEqualExportedValues
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.go:206
↓ 1 callersFunctionEqualExportedValuesf
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.go:226
↓ 1 callersMethodEqualValues
EqualValues asserts that two objects are equal or convertible to the same types and equal. a.EqualValues(uint32(123), int32(123))
internal/testify/assert/assertion_forward.go:193
↓ 1 callersFunctionEqualValuesf
EqualValuesf asserts that two objects are equal or convertible to the same types and equal. assert.EqualValuesf(t, uint32(123), int32(123), "error m
internal/testify/require/require.go:254
↓ 1 callersFunctionEqualf
Equalf asserts that two objects are equal. assert.Equalf(t, 123, 123, "error message %s", "formatted") Pointer variable equality is determined base
internal/testify/require/require.go:271
↓ 1 callersFunctionErrorAs
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.go:299
↓ 1 callersFunctionErrorAsf
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.go:311
↓ 1 callersFunctionErrorContainsf
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.go:341
↓ 1 callersFunctionErrorIs
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.go:353
↓ 1 callersFunctionErrorIsf
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.go:365
↓ 1 callersFunctionErrorf
Errorf asserts that a function returned an error (i.e. not `nil`). actualObj, err := SomeFunction() if assert.Errorf(t, err, "error message %s"
internal/testify/require/require.go:381
↓ 1 callersFunctionErrorf
Errorf is a wrapper for fmt.Errorf that treats each argument as if it were passed with a default Formatter interface returned by NewFormatter. It ret
internal/spew/spew.go:32
↓ 1 callersFunctionEventually
Eventually asserts that given condition will be met in waitFor time, periodically checking target function each tick. assert.Eventually(t, func() bo
internal/testify/require/require.go:395
↓ 1 callersFunctionEventuallyWithT
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.go:423
↓ 1 callersFunctionEventuallyWithTf
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.go:451
↓ 1 callersFunctionEventuallyf
Eventuallyf asserts that given condition will be met in waitFor time, periodically checking target function each tick. assert.Eventuallyf(t, func()
internal/testify/require/require.go:465
↓ 1 callersFunctionExactlyf
Exactlyf asserts that two objects are equal in value and type. assert.Exactlyf(t, int32(123), int64(123), "error message %s", "formatted")
internal/testify/require/require.go:491
↓ 1 callersFunctionExponent
(a, b any)
vm/runtime/runtime.go:307
↓ 1 callersFunctionFail
Fail reports a failure through
internal/testify/require/require.go:502
↓ 1 callersFunctionFailNow
FailNow fails test
internal/testify/require/require.go:513
↓ 1 callersFunctionFailNowf
FailNowf fails test
internal/testify/require/require.go:524
↓ 1 callersFunctionFailf
Failf reports a failure through
internal/testify/require/require.go:535
↓ 1 callersFunctionFalsef
Falsef asserts that the specified value is false. assert.Falsef(t, myBool, "error message %s", "formatted")
internal/testify/require/require.go:561
↓ 1 callersFunctionFdump
Fdump formats and displays the passed arguments to io.Writer w. It formats exactly the same as Dump.
internal/spew/dump.go:472
↓ 1 callersMethodFdump
Fdump formats and displays the passed arguments to io.Writer w. It formats exactly the same as Dump.
internal/spew/config.go:246
↓ 1 callersFunctionFileExists
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.go:573
↓ 1 callersFunctionFileExistsf
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.go:585
↓ 1 callersMethodFindSuitableOperatorOverload
(l, r reflect.Type)
patcher/operator_override.go:56
↓ 1 callersMethodFloatNode
(node *ast.FloatNode)
compiler/compiler.go:392
↓ 1 callersFunctionFprint
Fprint is a wrapper for fmt.Fprint that treats each argument as if it were passed with a default Formatter interface returned by NewFormatter. It ret
internal/spew/spew.go:44
↓ 1 callersFunctionFprintf
Fprintf is a wrapper for fmt.Fprintf that treats each argument as if it were passed with a default Formatter interface returned by NewFormatter. It r
internal/spew/spew.go:56
↓ 1 callersFunctionFprintln
Fprintln is a wrapper for fmt.Fprintln that treats each argument as if it passed with a default Formatter interface returned by NewFormatter. See New
internal/spew/spew.go:67
↓ 1 callersFunctionGetCgoCharArray
GetCgoCharArray returns a char array via cgo and the array's len and cap. This is only used for tests.
internal/spew/testdata/dumpcgo.go:57
↓ 1 callersFunctionGetCgoCharPointer
GetCgoCharPointer returns a char pointer via cgo. This is only used for tests.
internal/spew/testdata/dumpcgo.go:51
↓ 1 callersFunctionGetCgoNullCharPointer
GetCgoNullCharPointer returns a null char pointer via cgo. This is only used for tests.
internal/spew/testdata/dumpcgo.go:45
↓ 1 callersFunctionGetCgoSignedCharArray
GetCgoSignedCharArray returns a signed char array via cgo and the array's len and cap. This is only used for tests.
internal/spew/testdata/dumpcgo.go:69
↓ 1 callersFunctionGetCgoTypedefedUnsignedCharArray
GetCgoTypedefedUnsignedCharArray returns a typedefed unsigned char array via cgo and the array's len and cap. This is only used for tests.
internal/spew/testdata/dumpcgo.go:81
↓ 1 callersFunctionGetCgoUint8tArray
GetCgoUint8tArray returns a uint8_t array via cgo and the array's len and cap. This is only used for tests.
internal/spew/testdata/dumpcgo.go:75
↓ 1 callersFunctionGetCgoUnsignedCharArray
GetCgoUnsignedCharArray returns an unsigned char array via cgo and the array's len and cap. This is only used for tests.
internal/spew/testdata/dumpcgo.go:63
↓ 1 callersFunctionGreaterOrEqual
GreaterOrEqual asserts that the first element is greater than or equal to the second assert.GreaterOrEqual(t, 2, 1) assert.GreaterOrEqual(t, 2, 2)
internal/testify/require/require.go:616
↓ 1 callersFunctionGreaterOrEqualf
GreaterOrEqualf asserts that the first element is greater than or equal to the second assert.GreaterOrEqualf(t, 2, 1, "error message %s", "formatted
internal/testify/require/require.go:632
↓ 1 callersFunctionGreaterf
Greaterf asserts that the first element is greater than the second assert.Greaterf(t, 2, 1, "error message %s", "formatted") assert.Greaterf(t, flo
internal/testify/require/require.go:647
↓ 1 callersFunctionHTTPBodyContains
HTTPBodyContains asserts that a specified handler returns a body that contains a string. assert.HTTPBodyContains(t, myHandler, "GET", "www.google.co
internal/testify/require/require.go:663
↓ 1 callersFunctionHTTPBodyContainsf
HTTPBodyContainsf asserts that a specified handler returns a body that contains a string. assert.HTTPBodyContainsf(t, myHandler, "GET", "www.google.
internal/testify/require/require.go:679
↓ 1 callersFunctionHTTPBodyNotContains
HTTPBodyNotContains asserts that a specified handler returns a body that does not contain a string. assert.HTTPBodyNotContains(t, myHandler, "GET",
internal/testify/require/require.go:695
↓ 1 callersFunctionHTTPBodyNotContainsf
HTTPBodyNotContainsf asserts that a specified handler returns a body that does not contain a string. assert.HTTPBodyNotContainsf(t, myHandler, "GET"
internal/testify/require/require.go:711
↓ 1 callersFunctionHTTPError
HTTPError asserts that a specified handler returns an error status code. assert.HTTPError(t, myHandler, "POST", "/a/b/c", url.Values{"a": []string{"
internal/testify/require/require.go:726
↓ 1 callersFunctionHTTPErrorf
HTTPErrorf asserts that a specified handler returns an error status code. assert.HTTPErrorf(t, myHandler, "POST", "/a/b/c", url.Values{"a": []string
internal/testify/require/require.go:741
↓ 1 callersFunctionHTTPRedirect
HTTPRedirect asserts that a specified handler returns a redirect status code. assert.HTTPRedirect(t, myHandler, "GET", "/a/b/c", url.Values{"a": []s
internal/testify/require/require.go:756
↓ 1 callersFunctionHTTPRedirectf
HTTPRedirectf asserts that a specified handler returns a redirect status code. assert.HTTPRedirectf(t, myHandler, "GET", "/a/b/c", url.Values{"a": [
internal/testify/require/require.go:771
↓ 1 callersFunctionHTTPStatusCode
HTTPStatusCode asserts that a specified handler returns a specified status code. assert.HTTPStatusCode(t, myHandler, "GET", "/notImplemented", nil,
internal/testify/require/require.go:786
↓ 1 callersFunctionHTTPStatusCodef
HTTPStatusCodef asserts that a specified handler returns a specified status code. assert.HTTPStatusCodef(t, myHandler, "GET", "/notImplemented", nil
internal/testify/require/require.go:801
↓ 1 callersFunctionHTTPSuccess
HTTPSuccess asserts that a specified handler returns a success status code. assert.HTTPSuccess(t, myHandler, "POST", "http://www.google.com", nil)
internal/testify/require/require.go:816
↓ 1 callersFunctionHTTPSuccessf
HTTPSuccessf asserts that a specified handler returns a success status code. assert.HTTPSuccessf(t, myHandler, "POST", "http://www.google.com", nil,
internal/testify/require/require.go:831
↓ 1 callersMethodHelper
()
internal/testify/assert/assertions_test.go:2784
↓ 1 callersMethodIdentifierNode
(node *ast.IdentifierNode)
compiler/compiler.go:300
↓ 1 callersFunctionImplementsf
Implementsf asserts that an object is implemented by the specified interface. assert.Implementsf(t, (*MyInterface)(nil), new(MyObject), "error messa
internal/testify/require/require.go:857
↓ 1 callersFunctionIn
(needle any, array any)
vm/runtime/runtime.go:209
← previousnext →601–700 of 2,191, ranked by callers