MCPcopy Create free account

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

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

↓ 7 callersFunctioncompare
(obj1, obj2 interface{}, kind reflect.Kind)
internal/testify/assert/assertion_order.go:8
↓ 7 callersFunctionerrMsg
(msg string, a ...interface{})
cmd/jpgo/main.go:32
↓ 7 callersFunctionformatUnequalValues
formatUnequalValues takes two values of arbitrary types and returns string representations appropriate to be presented to the user. If the values are
internal/testify/assert/assertions.go:430
↓ 7 callersFunctionisSliceType
(v interface{})
util.go:180
↓ 7 callersFunctionptr
(i int)
internal/testify/assert/assertions_test.go:226
↓ 7 callersMethodsyntaxError
(msg string)
parser.go:586
↓ 6 callersMethodAfter
After sets how long to block until the call returns Mock.On("MyMethod", arg1, arg2).After(time.Second)
internal/testify/mock/mock.go:142
↓ 6 callersMethodEqual
Equal asserts that two objects are equal. a.Equal(123, 123) Pointer variable equality is determined based on the equality of the referenced values (
internal/testify/require/require_forward.go:128
↓ 6 callersFunctionEventually
Eventually asserts that given condition will be met in waitFor time, periodically checking target function each tick. assert.Eventually(t, func() boo
internal/testify/assert/assertions.go:1566
↓ 6 callersFunctionGreater
Greater asserts that the first element is greater than the second assert.Greater(t, 2, 1) assert.Greater(t, float64(2), float64(1)) assert.Greater(t,
internal/testify/assert/assertion_order.go:202
↓ 6 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) as
internal/testify/assert/assertion_order.go:231
↓ 6 callersFunctionHTTPBodyContains
HTTPBodyContains asserts that a specified handler returns a body that contains a string. assert.HTTPBodyContains(t, myHandler, "GET", "www.google.com
internal/testify/assert/http_assertions.go:111
↓ 6 callersFunctionHTTPBodyNotContains
HTTPBodyNotContains asserts that a specified handler returns a body that does not contain a string. assert.HTTPBodyNotContains(t, myHandler, "GET", "
internal/testify/assert/http_assertions.go:131
↓ 6 callersFunctionHTTPError
HTTPError asserts that a specified handler returns an error status code. assert.HTTPError(t, myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b
internal/testify/assert/http_assertions.go:75
↓ 6 callersFunctionHTTPRedirect
HTTPRedirect asserts that a specified handler returns a redirect status code. assert.HTTPRedirect(t, myHandler, "GET", "/a/b/c", url.Values{"a": []st
internal/testify/assert/http_assertions.go:52
↓ 6 callersFunctionImplements
Implements asserts that an object is implemented by the specified interface. assert.Implements(t, (*MyInterface)(nil), new(MyObject))
internal/testify/assert/assertions.go:298
↓ 6 callersFunctionInEpsilon
InEpsilon asserts that expected and actual have a relative error less than epsilon
internal/testify/assert/assertions.go:1208
↓ 6 callersFunctionInEpsilonSlice
InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
internal/testify/assert/assertions.go:1225
↓ 6 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/assert/assertion_order.go:259
↓ 6 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.LessOrE
internal/testify/assert/assertion_order.go:288
↓ 6 callersFunctionNoError
* Errors */ NoError asserts that a function returned no error (i.e. `nil`). actualObj, err := SomeFunction() if assert.NoError(t, err) { assert.
internal/testify/assert/assertions.go:1258
↓ 6 callersFunctionNotZero
NotZero asserts that i is not the zero value for its type.
internal/testify/assert/assertions.go:1372
↓ 6 callersMethodString
()
parser.go:46
↓ 6 callersMethodWriteHeader
WriteHeader DEPRECATED: We recommend you use http://golang.org/pkg/net/http/httptest instead.
internal/testify/http/test_response_writer.go:47
↓ 6 callersMethodcall
(method string)
internal/testify/suite/suite_test.go:454
↓ 6 callersMethodlock
()
internal/testify/mock/mock.go:83
↓ 6 callersMethodlookaheadToken
(number int)
parser.go:569
↓ 6 callersMethodmatchOrElse
Checks for a two char token, otherwise matches a single character token. This is used whenever a two char token overlaps a single char token, e.g. "||
lexer.go:307
↓ 6 callersMethodunlock
()
internal/testify/mock/mock.go:87
↓ 5 callersFunctionAssertExpectationsForObjects
AssertExpectationsForObjects asserts that everything specified with On and Return of the specified objects was in fact called as expected. Calls may
internal/testify/mock/mock.go:422
↓ 5 callersFunctionCondition
Condition uses a Comparison to assert a complex condition.
internal/testify/assert/assertions.go:929
↓ 5 callersMethodExactly
Exactly asserts that two objects are equal in value and type. a.Exactly(int32(123), int64(123))
internal/testify/assert/assertion_forward.go:245
↓ 5 callersFunctionFailNow
FailNow fails test
internal/testify/assert/assertions.go:220
↓ 5 callersFunctionIsType
IsType asserts that the specified objects are of the same type.
internal/testify/assert/assertions.go:315
↓ 5 callersMethodLen
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:651
↓ 5 callersFunctionNever
Never asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. assert.Never(t, func() b
internal/testify/assert/assertions.go:1599
↓ 5 callersFunctionNewLexer
NewLexer creates a new JMESPath lexer.
lexer.go:117
↓ 5 callersMethodNotEqual
NotEqual asserts that the specified values are NOT equal. a.NotEqual(obj1, obj2) Pointer variable equality is determined based on the equality of th
internal/testify/assert/assertion_forward.go:880
↓ 5 callersMethodParams
()
internal/testify/_codegen/main.go:228
↓ 5 callersMethodTheExampleMethod3
(et *ExampleType)
internal/testify/mock/mock_test.go:44
↓ 5 callersMethodTimes
Times indicates that that the mock should only return the indicated number of times. Mock.On("MyMethod", arg1, arg2).Return(returnArg1, returnArg2).T
internal/testify/mock/mock.go:121
↓ 5 callersFunctionZero
Zero asserts that i is the zero value for its type.
internal/testify/assert/assertions.go:1361
↓ 5 callersMethodZero
Zero asserts that i is the zero value for its type.
internal/testify/assert/assertion_forward.go:1219
↓ 5 callersMethodback
()
lexer.go:133
↓ 5 callersFunctioncallString
(method string, arguments Arguments, includeArgumentValues bool)
internal/testify/mock/mock.go:303
↓ 5 callersMethodfindExpectedCall
* Recording and responding to activity */
internal/testify/mock/mock.go:264
↓ 5 callersFunctionnewInterpreter
()
interpreter.go:18
↓ 5 callersFunctiontoArrayNum
ToArrayNum converts an empty interface type to a slice of float64. If any element in the array cannot be converted, then nil is returned along with a
util.go:143
↓ 5 callersMethodtokenize
tokenize takes an expression and returns corresponding tokens.
lexer.go:144
↓ 5 callersFunctionvalidateEqualArgs
validateEqualArgs checks whether provided arguments can be safely used in the Equal/NotEqual functions.
internal/testify/assert/assertions.go:357
↓ 4 callersMethodBool
Bool gets the argument at the specified index. Panics if there is no argument, or if the argument is of the wrong type.
internal/testify/mock/mock.go:840
↓ 4 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/assert/assertions.go:1148
↓ 4 callersFunctionNoError
NoError asserts that a function returned no error (i.e. `nil`). actualObj, err := SomeFunction() if assert.NoError(t, err) { assert.Equal(t, expe
internal/testify/require/require.go:1001
↓ 4 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/assert/assertion_forward.go:828
↓ 4 callersFunctionNotEmpty
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 assert.NotEmpty
internal/testify/require/require.go:1089
↓ 4 callersMethodNotEqual
NotEqual asserts that the specified values are NOT equal. a.NotEqual(obj1, obj2) Pointer variable equality is determined based on the equality of th
internal/testify/require/require_forward.go:881
↓ 4 callersFunctionNotPanics
NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic. assert.NotPanics(t, func(){ RemainCalm() })
internal/testify/require/require.go:1176
↓ 4 callersMethodNotRegexp
NotRegexp asserts that a specified regexp does not match a string. a.NotRegexp(regexp.MustCompile("starts"), "it's starting") a.NotRegexp("^start", "
internal/testify/assert/assertion_forward.go:944
↓ 4 callersFunctionObjectsAreEqualValues
ObjectsAreEqualValues gets whether two objects are equal, or if their values are equal.
internal/testify/assert/assertions.go:80
↓ 4 callersMethodRegexp
Regexp asserts that a specified regexp matches a string. a.Regexp(regexp.MustCompile("start"), "it's starting") a.Regexp("start...$", "it's not start
internal/testify/assert/assertion_forward.go:1096
↓ 4 callersMethodRequire
Require returns a require context for suite.
internal/testify/suite/suite.go:41
↓ 4 callersMethodSetT
(*testing.T)
internal/testify/suite/interfaces.go:9
↓ 4 callersMethodTheExampleMethodFunc
(fn func(string) error)
internal/testify/mock/mock_test.go:69
↓ 4 callersMethodTheExampleMethodVariadicInterface
(a ...interface{})
internal/testify/mock/mock_test.go:79
↓ 4 callersFunctionTrue
True asserts that the specified value is true. assert.True(t, myBool)
internal/testify/require/require.go:1484
↓ 4 callersFunctioncleanUpTempFiles
(paths []string)
internal/testify/assert/assertions_test.go:1548
↓ 4 callersMethodlookahead
(number int)
parser.go:561
↓ 4 callersFunctiontoArrayStr
ToArrayStr converts an empty interface type to a slice of strings. If any element in the array cannot be converted, then nil is returned along with a
util.go:164
↓ 4 callersFunctiontoFloat
(x interface{})
internal/testify/assert/assertions.go:1056
↓ 3 callersFunctionCompile
Compile parses a JMESPath expression and returns, if successful, a JMESPath object that can be used to match against data.
api.go:14
↓ 3 callersFunctionContains
Contains asserts that the specified string, list(array, slice...) or map contains the specified substring or element. assert.Contains(t, "Hello World
internal/testify/require/require.go:43
↓ 3 callersFunctionEmpty
Empty asserts that the specified object is empty. I.e. nil, "", false, 0 or either a slice or a channel with len == 0. assert.Empty(t, obj)
internal/testify/require/require.go:127
↓ 3 callersFunctionEqualError
EqualError asserts that a function returned an error (i.e. not `nil`) and that it is equal to the provided error. actualObj, err := SomeFunction() as
internal/testify/require/require.go:173
↓ 3 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/assert/assertion_forward.go:139
↓ 3 callersFunctionEqualValues
EqualValues asserts that two objects are equal or convertable to the same types and equal. assert.EqualValues(t, uint32(123), int32(123))
internal/testify/assert/assertions.go:446
↓ 3 callersFunctionError
Error asserts that a function returned an error (i.e. not `nil`). actualObj, err := SomeFunction() if assert.Error(t, err) { assert.Equal(t, expe
internal/testify/require/require.go:249
↓ 3 callersMethodError
()
lexer.go:38
↓ 3 callersFunctionErrorf
Errorf asserts that a function returned an error (i.e. not `nil`). actualObj, err := SomeFunction() if assert.Errorf(t, err, "error message %s", "for
internal/testify/assert/assertion_format.go:110
↓ 3 callersFunctionExactly
Exactly asserts that two objects are equal in value and type. assert.Exactly(t, int32(123), int64(123))
internal/testify/require/require.go:306
↓ 3 callersMethodFailNow
()
internal/testify/assert/assertions.go:216
↓ 3 callersFunctionFalse
False asserts that the specified value is false. assert.False(t, myBool)
internal/testify/require/require.go:376
↓ 3 callersMethodGetTime
(i int)
internal/testify/mock/mock_test.go:1413
↓ 3 callersMethodHTTPBodyContains
HTTPBodyContains asserts that a specified handler returns a body that contains a string. a.HTTPBodyContains(myHandler, "GET", "www.google.com", nil,
internal/testify/assert/assertion_forward.go:388
↓ 3 callersMethodHTTPBodyNotContains
HTTPBodyNotContains asserts that a specified handler returns a body that does not contain a string. a.HTTPBodyNotContains(myHandler, "GET", "www.goog
internal/testify/assert/assertion_forward.go:414
↓ 3 callersMethodHTTPError
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/assert/assertion_forward.go:439
↓ 3 callersMethodHTTPRedirect
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/assert/assertion_forward.go:463
↓ 3 callersMethodHTTPSuccess
HTTPSuccess asserts that a specified handler returns a success status code. a.HTTPSuccess(myHandler, "POST", "http://www.google.com", nil) Returns w
internal/testify/assert/assertion_forward.go:487
↓ 3 callersFunctionImplements
Implements asserts that an object is implemented by the specified interface. assert.Implements(t, (*MyInterface)(nil), new(MyObject))
internal/testify/require/require.go:642
↓ 3 callersMethodImplements
Implements asserts that an object is implemented by the specified interface. a.Implements((*MyInterface)(nil), new(MyObject))
internal/testify/assert/assertion_forward.go:509
↓ 3 callersMethodImplements
Implements asserts that an object is implemented by the specified interface. a.Implements((*MyInterface)(nil), new(MyObject))
internal/testify/require/require_forward.go:510
↓ 3 callersFunctionInDelta
InDelta asserts that the two numerals are within delta of each other. assert.InDelta(t, math.Pi, 22/7.0, 0.01)
internal/testify/require/require.go:668
↓ 3 callersFunctionIsType
IsType asserts that the specified objects are of the same type.
internal/testify/require/require.go:780
↓ 3 callersFunctionNil
Nil asserts that the specified object is nil. assert.Nil(t, err)
internal/testify/require/require.go:948
↓ 3 callersFunctionNotContains
NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element. assert.NotContains(t
internal/testify/require/require.go:1057
↓ 3 callersFunctionNotEqual
NotEqual asserts that the specified values are NOT equal. assert.NotEqual(t, obj1, obj2) Pointer variable equality is determined based on the equali
internal/testify/require/require.go:1121
↓ 3 callersFunctionNotNil
NotNil asserts that the specified object is not nil. assert.NotNil(t, err)
internal/testify/require/require.go:1150
↓ 3 callersFunctionNotZero
NotZero asserts that i is not the zero value for its type.
internal/testify/require/require.go:1288
↓ 3 callersFunctionPanics
Panics asserts that the code inside the specified PanicTestFunc panics. assert.Panics(t, func(){ GoCrazy() })
internal/testify/require/require.go:1312
↓ 3 callersMethodPrettyPrint
PrettyPrint will pretty print the parsed AST. The AST is an implementation detail and this pretty print function is provided as a convenience method t
parser.go:55
↓ 3 callersMethodString
()
lexer.go:111
← previousnext →101–200 of 1,151, ranked by callers