MCPcopy Create free account

hub / github.com/jmespath/go-jmespath / functions

Functions1,151 in github.com/jmespath/go-jmespath

↓ 3 callersMethodT
T retrieves the current *testing.T context.
internal/testify/suite/suite.go:29
↓ 3 callersMethodTestData
TestData holds any data that might be useful for testing. Testify ignores this data completely allowing you to do whatever you like with it.
internal/testify/mock/mock.go:208
↓ 3 callersMethodTheExampleMethod
(a, b, c int)
internal/testify/mock/mock_test.go:30
↓ 3 callersMethodTwice
Twice indicates that that the mock should only return the value twice. Mock.On("MyMethod", arg1, arg2).Return(returnArg1, returnArg2).Twice()
internal/testify/mock/mock.go:113
↓ 3 callersMethodWaitUntil
WaitUntil sets the channel that will block the mock's return until its closed or a message is received. Mock.On("MyMethod", arg1, arg2).WaitUntil(tim
internal/testify/mock/mock.go:132
↓ 3 callersFunctionWithinDuration
WithinDuration asserts that the two times are within duration delta of each other. assert.WithinDuration(t, time.Now(), time.Now(), 10*time.Second)
internal/testify/require/require.go:1510
↓ 3 callersFunctionZero
Zero asserts that i is the zero value for its type.
internal/testify/require/require.go:1556
↓ 3 callersMethodcalls
()
internal/testify/mock/mock.go:551
↓ 3 callersMethodfail
fail fails the current test with the given formatted format and args. In case that a test was defined, it uses the test APIs for failing a test, other
internal/testify/mock/mock.go:231
↓ 3 callersFunctiongetLen
getLen try to get length of object. return (false, 0) if impossible.
internal/testify/assert/assertions.go:609
↓ 3 callersFunctionhttpCode
httpCode is a helper that returns HTTP code of the response. It returns -1 and an error if building a new request fails.
internal/testify/assert/http_assertions.go:13
↓ 3 callersFunctionisTest
Stolen from the `go test` tool. isTest tells whether name looks like a test (or benchmark, according to prefix). It is a Test (say) if there is a char
internal/testify/assert/assertions.go:168
↓ 3 callersMethodmethodWasCalled
(methodName string, expected []interface{})
internal/testify/mock/mock.go:530
↓ 3 callersMethodpeek
()
lexer.go:137
↓ 3 callersFunctionsamePointers
samePointers compares two generic interface objects and returns whether they point to the same object
internal/testify/assert/assertions.go:409
↓ 3 callersFunctionslice
Slice supports [start:stop:step] style slicing that's supported in JMESPath.
util.go:63
↓ 3 callersMethodsyntaxErrorToken
Create a SyntaxError based on the provided token. This differs from syntaxError() which creates a SyntaxError based on the current lookahead token.
parser.go:597
↓ 2 callersMethodAssert
Assert returns an assert context for suite. Normally, you can call `suite.NoError(expected, actual)`, but for situations where the embedded methods a
internal/testify/suite/suite.go:53
↓ 2 callersMethodAssertNumberOfCalls
AssertNumberOfCalls asserts that the method was called expectedCalls times.
internal/testify/mock/mock.go:477
↓ 2 callersMethodComment
()
internal/testify/_codegen/main.go:282
↓ 2 callersMethodCondition
Condition uses a Comparison to assert a complex condition.
internal/testify/assert/assertion_forward.go:15
↓ 2 callersFunctionConditionf
Conditionf uses a Comparison to assert a complex condition.
internal/testify/assert/assertion_format.go:15
↓ 2 callersMethodContains
Contains asserts that the specified string, list(array, slice...) or map contains the specified substring or element. a.Contains("Hello World", "Worl
internal/testify/require/require_forward.go:37
↓ 2 callersFunctionContainsf
Containsf asserts that the specified string, list(array, slice...) or map contains the specified substring or element. assert.Containsf(t, "Hello Wor
internal/testify/assert/assertion_format.go:28
↓ 2 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/assert/assertion_format.go:37
↓ 2 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/assert/assertion_format.go:49
↓ 2 callersMethodEmpty
Empty asserts that the specified object is empty. I.e. nil, "", false, 0 or either a slice or a channel with len == 0. a.Empty(obj)
internal/testify/require/require_forward.go:103
↓ 2 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, "error
internal/testify/assert/assertion_format.go:60
↓ 2 callersMethodEqualError
EqualError asserts that a function returned an error (i.e. not `nil`) and that it is equal to the provided error. actualObj, err := SomeFunction() a.
internal/testify/require/require_forward.go:140
↓ 2 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() a
internal/testify/assert/assertion_format.go:86
↓ 2 callersFunctionEqualValuesf
EqualValuesf asserts that two objects are equal or convertable to the same types and equal. assert.EqualValuesf(t, uint32(123, "error message %s", "f
internal/testify/assert/assertion_format.go:97
↓ 2 callersFunctionEqualf
Equalf asserts that two objects are equal. assert.Equalf(t, 123, 123, "error message %s", "formatted") Pointer variable equality is determined based
internal/testify/assert/assertion_format.go:74
↓ 2 callersFunctionEventuallyf
Eventuallyf asserts that given condition will be met in waitFor time, periodically checking target function each tick. assert.Eventuallyf(t, func() b
internal/testify/assert/assertion_format.go:121
↓ 2 callersMethodExactly
Exactly asserts that two objects are equal in value and type. a.Exactly(int32(123), int64(123))
internal/testify/require/require_forward.go:246
↓ 2 callersFunctionExactlyf
Exactlyf asserts that two objects are equal in value and type. assert.Exactlyf(t, int32(123, "error message %s", "formatted"), int64(123))
internal/testify/assert/assertion_format.go:131
↓ 2 callersMethodFail
Fail reports a failure through
internal/testify/assert/assertion_forward.go:263
↓ 2 callersFunctionFailNowf
FailNowf fails test
internal/testify/assert/assertion_format.go:147
↓ 2 callersFunctionFailf
Failf reports a failure through
internal/testify/assert/assertion_format.go:139
↓ 2 callersMethodFalse
False asserts that the specified value is false. a.False(myBool)
internal/testify/require/require_forward.go:298
↓ 2 callersFunctionFalsef
Falsef asserts that the specified value is false. assert.Falsef(t, myBool, "error message %s", "formatted")
internal/testify/assert/assertion_format.go:157
↓ 2 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/assert/assertion_format.go:166
↓ 2 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/assert/assertion_format.go:191
↓ 2 callersFunctionGreaterf
Greaterf asserts that the first element is greater than the second assert.Greaterf(t, 2, 1, "error message %s", "formatted") assert.Greaterf(t, float
internal/testify/assert/assertion_format.go:178
↓ 2 callersFunctionHTTPBody
HTTPBody is a helper that returns HTTP body of the response. It returns empty string if building a new request fails.
internal/testify/assert/http_assertions.go:95
↓ 2 callersFunctionHTTPBodyContainsf
HTTPBodyContainsf asserts that a specified handler returns a body that contains a string. assert.HTTPBodyContainsf(t, myHandler, "GET", "www.google.c
internal/testify/assert/assertion_format.go:204
↓ 2 callersFunctionHTTPBodyNotContainsf
HTTPBodyNotContainsf asserts that a specified handler returns a body that does not contain a string. assert.HTTPBodyNotContainsf(t, myHandler, "GET",
internal/testify/assert/assertion_format.go:217
↓ 2 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/assert/assertion_format.go:229
↓ 2 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/assert/assertion_format.go:241
↓ 2 callersFunctionHTTPSuccessf
HTTPSuccessf asserts that a specified handler returns a success status code. assert.HTTPSuccessf(t, myHandler, "POST", "http://www.google.com", nil,
internal/testify/assert/assertion_format.go:253
↓ 2 callersFunctionImplementsf
Implementsf asserts that an object is implemented by the specified interface. assert.Implementsf(t, (*MyInterface, "error message %s", "formatted")(n
internal/testify/assert/assertion_format.go:263
↓ 2 callersMethodInDelta
InDelta asserts that the two numerals are within delta of each other. a.InDelta(math.Pi, 22/7.0, 0.01)
internal/testify/require/require_forward.go:530
↓ 2 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/assert/assertion_format.go:281
↓ 2 callersFunctionInDeltaSlicef
InDeltaSlicef is the same as InDelta, except it compares two slices.
internal/testify/assert/assertion_format.go:289
↓ 2 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/assert/assertion_format.go:273
↓ 2 callersMethodInEpsilon
InEpsilon asserts that expected and actual have a relative error less than epsilon
internal/testify/assert/assertion_forward.go:579
↓ 2 callersFunctionInEpsilonSlicef
InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
internal/testify/assert/assertion_format.go:305
↓ 2 callersFunctionInEpsilonf
InEpsilonf asserts that expected and actual have a relative error less than epsilon
internal/testify/assert/assertion_format.go:297
↓ 2 callersMethodIs
Is gets whether the objects match the arguments specified.
internal/testify/mock/mock.go:671
↓ 2 callersFunctionIsType
IsType returns an IsTypeArgument object containing the type to check for. You can provide a zero-value of the type to check. This is an alternative t
internal/testify/mock/mock.go:594
↓ 2 callersMethodIsType
IsType asserts that the specified objects are of the same type.
internal/testify/assert/assertion_forward.go:611
↓ 2 callersMethodIsType
IsType asserts that the specified objects are of the same type.
internal/testify/require/require_forward.go:612
↓ 2 callersFunctionIsTypef
IsTypef asserts that the specified objects are of the same type.
internal/testify/assert/assertion_format.go:313
↓ 2 callersFunctionJSONEqf
JSONEqf asserts that two JSON strings are equivalent. assert.JSONEqf(t, `{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "erro
internal/testify/assert/assertion_format.go:323
↓ 2 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, 3
internal/testify/assert/assertion_format.go:334
↓ 2 callersFunctionLessOrEqualf
LessOrEqualf asserts that the first element is less than or equal to the second assert.LessOrEqualf(t, 1, 2, "error message %s", "formatted") assert.
internal/testify/assert/assertion_format.go:359
↓ 2 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, "error
internal/testify/assert/assertion_format.go:346
↓ 2 callersMethodMaybe
Maybe allows the method call to be optional. Not calling an optional method will not cause an error while asserting expectations
internal/testify/mock/mock.go:166
↓ 2 callersMethodMethodCalled
MethodCalled tells the mock object that the given method has been called, and gets an array of arguments to return. Panics if the call is unexpected (
internal/testify/mock/mock.go:345
↓ 2 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/assert/assertion_format.go:370
↓ 2 callersMethodNil
Nil asserts that the specified object is nil. a.Nil(err)
internal/testify/assert/assertion_forward.go:743
↓ 2 callersMethodNil
Nil asserts that the specified object is nil. a.Nil(err)
internal/testify/require/require_forward.go:744
↓ 2 callersFunctionNilf
Nilf asserts that the specified object is nil. assert.Nilf(t, err, "error message %s", "formatted")
internal/testify/assert/assertion_format.go:380
↓ 2 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/assert/assertion_format.go:389
↓ 2 callersMethodNoError
NoError asserts that a function returned no error (i.e. `nil`). actualObj, err := SomeFunction() if a.NoError(err) { assert.Equal(t, expectedObj,
internal/testify/assert/assertion_forward.go:784
↓ 2 callersMethodNoError
NoError asserts that a function returned no error (i.e. `nil`). actualObj, err := SomeFunction() if a.NoError(err) { assert.Equal(t, expectedObj,
internal/testify/require/require_forward.go:785
↓ 2 callersFunctionNoErrorf
NoErrorf asserts that a function returned no error (i.e. `nil`). actualObj, err := SomeFunction() if assert.NoErrorf(t, err, "error message %s", "for
internal/testify/assert/assertion_format.go:402
↓ 2 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/assert/assertion_format.go:411
↓ 2 callersMethodNotContains
NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element. a.NotContains("Hello
internal/testify/require/require_forward.go:829
↓ 2 callersFunctionNotContainsf
NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element. assert.NotContainsf
internal/testify/assert/assertion_format.go:424
↓ 2 callersMethodNotEmpty
NotEmpty 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.NotEmpty(obj)
internal/testify/require/require_forward.go:855
↓ 2 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.NotEmpt
internal/testify/assert/assertion_format.go:437
↓ 2 callersFunctionNotEqualf
NotEqualf asserts that the specified values are NOT equal. assert.NotEqualf(t, obj1, obj2, "error message %s", "formatted") Pointer variable equalit
internal/testify/assert/assertion_format.go:450
↓ 2 callersMethodNotNil
NotNil asserts that the specified object is not nil. a.NotNil(err)
internal/testify/assert/assertion_forward.go:903
↓ 2 callersMethodNotNil
NotNil asserts that the specified object is not nil. a.NotNil(err)
internal/testify/require/require_forward.go:904
↓ 2 callersFunctionNotNilf
NotNilf asserts that the specified object is not nil. assert.NotNilf(t, err, "error message %s", "formatted")
internal/testify/assert/assertion_format.go:460
↓ 2 callersMethodNotPanics
NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic. a.NotPanics(func(){ RemainCalm() })
internal/testify/assert/assertion_forward.go:923
↓ 2 callersMethodNotPanics
NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic. a.NotPanics(func(){ RemainCalm() })
internal/testify/require/require_forward.go:924
↓ 2 callersFunctionNotPanicsf
NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. assert.NotPanicsf(t, func(){ RemainCalm() }, "error message %s",
internal/testify/assert/assertion_format.go:470
↓ 2 callersFunctionNotRegexpf
NotRegexpf asserts that a specified regexp does not match a string. assert.NotRegexpf(t, regexp.MustCompile("starts", "error message %s", "formatted"
internal/testify/assert/assertion_format.go:481
↓ 2 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/assert/assertion_format.go:494
↓ 2 callersFunctionNotSubsetf
NotSubsetf asserts that the specified list(array, slice...) contains not all elements given in the specified subset(array, slice...). assert.NotSubse
internal/testify/assert/assertion_format.go:505
↓ 2 callersMethodNotZero
NotZero asserts that i is not the zero value for its type.
internal/testify/assert/assertion_forward.go:1011
↓ 2 callersMethodNotZero
NotZero asserts that i is not the zero value for its type.
internal/testify/require/require_forward.go:1012
↓ 2 callersFunctionNotZerof
NotZerof asserts that i is not the zero value for its type.
internal/testify/assert/assertion_format.go:513
↓ 2 callersMethodPanics
Panics asserts that the code inside the specified PanicTestFunc panics. a.Panics(func(){ GoCrazy() })
internal/testify/assert/assertion_forward.go:1029
↓ 2 callersMethodPanics
Panics asserts that the code inside the specified PanicTestFunc panics. a.Panics(func(){ GoCrazy() })
internal/testify/require/require_forward.go:1030
↓ 2 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/assert/assertion_format.go:535
↓ 2 callersFunctionPanicsWithValuef
PanicsWithValuef asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value.
internal/testify/assert/assertion_format.go:546
↓ 2 callersFunctionPanicsf
Panicsf asserts that the code inside the specified PanicTestFunc panics. assert.Panicsf(t, func(){ GoCrazy() }, "error message %s", "formatted")
internal/testify/assert/assertion_format.go:523
↓ 2 callersFunctionRegexpf
Regexpf asserts that a specified regexp matches a string. assert.Regexpf(t, regexp.MustCompile("start", "error message %s", "formatted"), "it's start
internal/testify/assert/assertion_format.go:557
← previousnext →201–300 of 1,151, ranked by callers