MCPcopy Create free account

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

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

MethodFunc
()
test/mock/mock.go:60
MethodFuncFoo
(_ Foo)
test/mock/mock.go:56
MethodFuncInB
()
compiler/compiler_test.go:29
MethodFuncInt
(_ int)
test/mock/mock.go:68
MethodFuncInt16
(_ int16)
test/mock/mock.go:80
MethodFuncInt32
(_ int32)
test/mock/mock.go:84
MethodFuncInt64
(_ int64)
test/mock/mock.go:88
MethodFuncInt8
(_ float64)
test/mock/mock.go:76
MethodFuncTyped
(_ string)
test/mock/mock.go:64
MethodFuncUint
(_ uint)
test/mock/mock.go:72
MethodFuncUint16
(_ uint16)
test/mock/mock.go:96
MethodFuncUint32
(_ uint32)
test/mock/mock.go:100
MethodFuncUint64
(_ uint64)
test/mock/mock.go:104
MethodFuncUint8
(_ uint8)
test/mock/mock.go:92
FunctionFuzzExpr
(f *testing.F)
test/fuzz/fuzz_test.go:16
MethodGet
(c *Cache, name string)
checker/nature/nature.go:396
MethodGet
(s string)
test/interface/interface_test.go:16
MethodGetAsNumberName
()
test/crowdsec/crowdsec.go:90
MethodGetEventsCount
()
test/crowdsec/crowdsec.go:74
MethodGetInt
()
test/mock/mock.go:112
MethodGetMeta
(key string)
test/crowdsec/crowdsec.go:30
MethodGetMeta
(_ string)
test/crowdsec/crowdsec.go:78
MethodGetScenario
()
test/crowdsec/crowdsec.go:70
MethodGetScope
()
test/crowdsec/crowdsec.go:62
MethodGetScope
()
test/crowdsec/crowdsec.go:86
MethodGetSources
()
test/crowdsec/crowdsec.go:175
FunctionGetSpan
(program *Program)
vm/utils.go:57
MethodGetType
()
test/crowdsec/crowdsec.go:26
MethodGetValue
()
test/crowdsec/crowdsec.go:66
MethodGetValue
()
test/crowdsec/crowdsec.go:82
MethodGetValue
(a int)
patcher/with_context_test.go:93
MethodGreater
Greater asserts that the first element is greater than the second a.Greater(2, 1) a.Greater(float64(2), float64(1)) a.Greater("b", "a")
internal/testify/assert/assertion_forward.go:478
MethodGreater
Greater asserts that the first element is greater than the second a.Greater(2, 1) a.Greater(float64(2), float64(1)) a.Greater("b", "a")
internal/testify/require/require_forward.go:480
MethodGreaterOrEqual
GreaterOrEqual asserts that the first element is greater than or equal to the second a.GreaterOrEqual(2, 1) a.GreaterOrEqual(2, 2) a.GreaterOrEqua
internal/testify/assert/assertion_forward.go:491
MethodGreaterOrEqual
GreaterOrEqual asserts that the first element is greater than or equal to the second a.GreaterOrEqual(2, 1) a.GreaterOrEqual(2, 2) a.GreaterOrEqua
internal/testify/require/require_forward.go:493
MethodGreaterOrEqualf
GreaterOrEqualf asserts that the first element is greater than or equal to the second a.GreaterOrEqualf(2, 1, "error message %s", "formatted") a.Gr
internal/testify/assert/assertion_forward.go:504
MethodGreaterOrEqualf
GreaterOrEqualf asserts that the first element is greater than or equal to the second a.GreaterOrEqualf(2, 1, "error message %s", "formatted") a.Gr
internal/testify/require/require_forward.go:506
MethodGreaterf
Greaterf asserts that the first element is greater than the second a.Greaterf(2, 1, "error message %s", "formatted") a.Greaterf(float64(2), float64
internal/testify/assert/assertion_forward.go:516
MethodGreaterf
Greaterf asserts that the first element is greater than the second a.Greaterf(2, 1, "error message %s", "formatted") a.Greaterf(float64(2), float64
internal/testify/require/require_forward.go:518
MethodHTTPBodyContains
HTTPBodyContains asserts that a specified handler returns a body that contains a string. a.HTTPBodyContains(myHandler, "GET", "www.google.com", nil,
internal/testify/require/require_forward.go:531
MethodHTTPBodyContainsf
HTTPBodyContainsf asserts that a specified handler returns a body that contains a string. a.HTTPBodyContainsf(myHandler, "GET", "www.google.com", ni
internal/testify/assert/assertion_forward.go:542
MethodHTTPBodyContainsf
HTTPBodyContainsf asserts that a specified handler returns a body that contains a string. a.HTTPBodyContainsf(myHandler, "GET", "www.google.com", ni
internal/testify/require/require_forward.go:544
MethodHTTPBodyNotContains
HTTPBodyNotContains asserts that a specified handler returns a body that does not contain a string. a.HTTPBodyNotContains(myHandler, "GET", "www.goo
internal/testify/require/require_forward.go:557
MethodHTTPBodyNotContainsf
HTTPBodyNotContainsf asserts that a specified handler returns a body that does not contain a string. a.HTTPBodyNotContainsf(myHandler, "GET", "www.g
internal/testify/assert/assertion_forward.go:568
MethodHTTPBodyNotContainsf
HTTPBodyNotContainsf asserts that a specified handler returns a body that does not contain a string. a.HTTPBodyNotContainsf(myHandler, "GET", "www.g
internal/testify/require/require_forward.go:570
MethodHTTPError
HTTPError asserts that a specified handler returns an error status code. a.HTTPError(myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c"}
internal/testify/require/require_forward.go:582
MethodHTTPErrorf
HTTPErrorf asserts that a specified handler returns an error status code. a.HTTPErrorf(myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c
internal/testify/assert/assertion_forward.go:592
MethodHTTPErrorf
HTTPErrorf asserts that a specified handler returns an error status code. a.HTTPErrorf(myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c
internal/testify/require/require_forward.go:594
MethodHTTPRedirect
HTTPRedirect asserts that a specified handler returns a redirect status code. a.HTTPRedirect(myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b
internal/testify/require/require_forward.go:606
MethodHTTPRedirectf
HTTPRedirectf asserts that a specified handler returns a redirect status code. a.HTTPRedirectf(myHandler, "GET", "/a/b/c", url.Values{"a": []string{
internal/testify/assert/assertion_forward.go:616
MethodHTTPRedirectf
HTTPRedirectf asserts that a specified handler returns a redirect status code. a.HTTPRedirectf(myHandler, "GET", "/a/b/c", url.Values{"a": []string{
internal/testify/require/require_forward.go:618
MethodHTTPStatusCode
HTTPStatusCode asserts that a specified handler returns a specified status code. a.HTTPStatusCode(myHandler, "GET", "/notImplemented", nil, 501) Re
internal/testify/assert/assertion_forward.go:628
MethodHTTPStatusCode
HTTPStatusCode asserts that a specified handler returns a specified status code. a.HTTPStatusCode(myHandler, "GET", "/notImplemented", nil, 501) Re
internal/testify/require/require_forward.go:630
MethodHTTPStatusCodef
HTTPStatusCodef asserts that a specified handler returns a specified status code. a.HTTPStatusCodef(myHandler, "GET", "/notImplemented", nil, 501, "
internal/testify/assert/assertion_forward.go:640
MethodHTTPStatusCodef
HTTPStatusCodef asserts that a specified handler returns a specified status code. a.HTTPStatusCodef(myHandler, "GET", "/notImplemented", nil, 501, "
internal/testify/require/require_forward.go:642
MethodHTTPSuccess
HTTPSuccess asserts that a specified handler returns a success status code. a.HTTPSuccess(myHandler, "POST", "http://www.google.com", nil) Returns
internal/testify/require/require_forward.go:654
MethodHTTPSuccessf
HTTPSuccessf asserts that a specified handler returns a success status code. a.HTTPSuccessf(myHandler, "POST", "http://www.google.com", nil, "error
internal/testify/assert/assertion_forward.go:664
MethodHTTPSuccessf
HTTPSuccessf asserts that a specified handler returns a success status code. a.HTTPSuccessf(myHandler, "POST", "http://www.google.com", nil, "error
internal/testify/require/require_forward.go:666
MethodHasRemediation
()
test/crowdsec/crowdsec.go:58
MethodHasTag
(post Post, tag string)
test/playground/env.go:147
MethodHeader
()
test/coredns/coredns.go:158
MethodHelloCtx
(ctx context.Context, text string)
test/issues/756/issue_test.go:13
MethodHelper
()
internal/testify/assert/internal/unsafetests/unsafetests_test.go:15
MethodHijack
()
test/coredns/coredns.go:178
MethodIP
()
test/coredns/coredns.go:51
MethodImplementsf
Implementsf asserts that an object is implemented by the specified interface. a.Implementsf((*MyInterface)(nil), new(MyObject), "error message %s",
internal/testify/assert/assertion_forward.go:684
MethodImplementsf
Implementsf asserts that an object is implemented by the specified interface. a.Implementsf((*MyInterface)(nil), new(MyObject), "error message %s",
internal/testify/require/require_forward.go:686
MethodInDeltaMapValues
InDeltaMapValues is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
internal/testify/assert/assertion_forward.go:702
MethodInDeltaMapValues
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_forward.go:704
MethodInDeltaMapValuesf
InDeltaMapValuesf is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
internal/testify/assert/assertion_forward.go:710
MethodInDeltaMapValuesf
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_forward.go:712
MethodInDeltaSlice
InDeltaSlice is the same as InDelta, except it compares two slices.
internal/testify/assert/assertion_forward.go:718
MethodInDeltaSlice
InDeltaSlice is the same as InDelta, except it compares two slices.
internal/testify/require/require_forward.go:720
MethodInDeltaSlicef
InDeltaSlicef is the same as InDelta, except it compares two slices.
internal/testify/assert/assertion_forward.go:726
MethodInDeltaSlicef
InDeltaSlicef is the same as InDelta, except it compares two slices.
internal/testify/require/require_forward.go:728
MethodInDeltaf
InDeltaf asserts that the two numerals are within delta of each other. a.InDeltaf(math.Pi, 22/7.0, 0.01, "error message %s", "formatted")
internal/testify/assert/assertion_forward.go:736
MethodInDeltaf
InDeltaf asserts that the two numerals are within delta of each other. a.InDeltaf(math.Pi, 22/7.0, 0.01, "error message %s", "formatted")
internal/testify/require/require_forward.go:738
MethodInEpsilon
InEpsilon asserts that expected and actual have a relative error less than epsilon
internal/testify/require/require_forward.go:746
MethodInEpsilonSlice
InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
internal/testify/assert/assertion_forward.go:752
MethodInEpsilonSlice
InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
internal/testify/require/require_forward.go:754
MethodInEpsilonSlicef
InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
internal/testify/assert/assertion_forward.go:760
MethodInEpsilonSlicef
InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
internal/testify/require/require_forward.go:762
MethodInEpsilonf
InEpsilonf asserts that expected and actual have a relative error less than epsilon
internal/testify/assert/assertion_forward.go:768
MethodInEpsilonf
InEpsilonf asserts that expected and actual have a relative error less than epsilon
internal/testify/require/require_forward.go:770
MethodIncludesAny
(s ...string)
test/issues/888/issue_test.go:15
FunctionInt
(x any)
builtin/lib.go:154
MethodIsAdmin
()
test/playground/env.go:29
MethodIsAdmin
(author Author)
test/playground/env.go:156
MethodIsDecreasing
IsDecreasing asserts that the collection is decreasing a.IsDecreasing([]int{2, 1, 0}) a.IsDecreasing([]float{2, 1}) a.IsDecreasing([]string{"b", "
internal/testify/assert/assertion_forward.go:780
MethodIsDecreasing
IsDecreasing asserts that the collection is decreasing a.IsDecreasing([]int{2, 1, 0}) a.IsDecreasing([]float{2, 1}) a.IsDecreasing([]string{"b", "
internal/testify/require/require_forward.go:782
MethodIsDecreasingf
IsDecreasingf asserts that the collection is decreasing a.IsDecreasingf([]int{2, 1, 0}, "error message %s", "formatted") a.IsDecreasingf([]float{2,
internal/testify/assert/assertion_forward.go:792
MethodIsDecreasingf
IsDecreasingf asserts that the collection is decreasing a.IsDecreasingf([]int{2, 1, 0}, "error message %s", "formatted") a.IsDecreasingf([]float{2,
internal/testify/require/require_forward.go:794
MethodIsIncreasing
IsIncreasing asserts that the collection is increasing a.IsIncreasing([]int{1, 2, 3}) a.IsIncreasing([]float{1, 2}) a.IsIncreasing([]string{"a", "
internal/testify/assert/assertion_forward.go:804
MethodIsIncreasing
IsIncreasing asserts that the collection is increasing a.IsIncreasing([]int{1, 2, 3}) a.IsIncreasing([]float{1, 2}) a.IsIncreasing([]string{"a", "
internal/testify/require/require_forward.go:806
MethodIsIncreasingf
IsIncreasingf asserts that the collection is increasing a.IsIncreasingf([]int{1, 2, 3}, "error message %s", "formatted") a.IsIncreasingf([]float{1,
internal/testify/assert/assertion_forward.go:816
MethodIsIncreasingf
IsIncreasingf asserts that the collection is increasing a.IsIncreasingf([]int{1, 2, 3}, "error message %s", "formatted") a.IsIncreasingf([]float{1,
internal/testify/require/require_forward.go:818
MethodIsNonDecreasing
IsNonDecreasing asserts that the collection is not decreasing a.IsNonDecreasing([]int{1, 1, 2}) a.IsNonDecreasing([]float{1, 2}) a.IsNonDecreasing
internal/testify/assert/assertion_forward.go:828
MethodIsNonDecreasing
IsNonDecreasing asserts that the collection is not decreasing a.IsNonDecreasing([]int{1, 1, 2}) a.IsNonDecreasing([]float{1, 2}) a.IsNonDecreasing
internal/testify/require/require_forward.go:830
MethodIsNonDecreasingf
IsNonDecreasingf asserts that the collection is not decreasing a.IsNonDecreasingf([]int{1, 1, 2}, "error message %s", "formatted") a.IsNonDecreasin
internal/testify/assert/assertion_forward.go:840
MethodIsNonDecreasingf
IsNonDecreasingf asserts that the collection is not decreasing a.IsNonDecreasingf([]int{1, 1, 2}, "error message %s", "formatted") a.IsNonDecreasin
internal/testify/require/require_forward.go:842
← previousnext →1,201–1,300 of 2,191, ranked by callers