MCPcopy Create free account

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

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

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:440
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:451
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:452
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:464
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:475
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:476
MethodHTTPSuccess
HTTPSuccess asserts that a specified handler returns a success status code. a.HTTPSuccess(myHandler, "POST", "http://www.google.com", nil) Returns w
internal/testify/require/require_forward.go:488
MethodHTTPSuccessf
HTTPSuccessf asserts that a specified handler returns a success status code. a.HTTPSuccessf(myHandler, "POST", "http://www.google.com", nil, "error m
internal/testify/assert/assertion_forward.go:499
MethodHTTPSuccessf
HTTPSuccessf asserts that a specified handler returns a success status code. a.HTTPSuccessf(myHandler, "POST", "http://www.google.com", nil, "error m
internal/testify/require/require_forward.go:500
MethodHeader
Header DEPRECATED: We recommend you use http://golang.org/pkg/net/http/httptest instead.
internal/testify/http/test_response_writer.go:21
MethodHelper
()
internal/testify/mock/mock.go:916
MethodHelper
()
internal/testify/assert/assertions.go:1559
MethodImplementsf
Implementsf asserts that an object is implemented by the specified interface. a.Implementsf((*MyInterface, "error message %s", "formatted")(nil), new
internal/testify/assert/assertion_forward.go:519
MethodImplementsf
Implementsf asserts that an object is implemented by the specified interface. a.Implementsf((*MyInterface, "error message %s", "formatted")(nil), new
internal/testify/require/require_forward.go:520
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:537
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:538
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:545
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:546
MethodInDeltaSlice
InDeltaSlice is the same as InDelta, except it compares two slices.
internal/testify/assert/assertion_forward.go:553
MethodInDeltaSlice
InDeltaSlice is the same as InDelta, except it compares two slices.
internal/testify/require/require_forward.go:554
MethodInDeltaSlicef
InDeltaSlicef is the same as InDelta, except it compares two slices.
internal/testify/assert/assertion_forward.go:561
MethodInDeltaSlicef
InDeltaSlicef is the same as InDelta, except it compares two slices.
internal/testify/require/require_forward.go:562
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:571
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:572
MethodInEpsilon
InEpsilon asserts that expected and actual have a relative error less than epsilon
internal/testify/require/require_forward.go:580
MethodInEpsilonSlice
InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
internal/testify/assert/assertion_forward.go:587
MethodInEpsilonSlice
InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
internal/testify/require/require_forward.go:588
MethodInEpsilonSlicef
InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
internal/testify/assert/assertion_forward.go:595
MethodInEpsilonSlicef
InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
internal/testify/require/require_forward.go:596
MethodInEpsilonf
InEpsilonf asserts that expected and actual have a relative error less than epsilon
internal/testify/assert/assertion_forward.go:603
MethodInEpsilonf
InEpsilonf asserts that expected and actual have a relative error less than epsilon
internal/testify/require/require_forward.go:604
MethodIsTypef
IsTypef asserts that the specified objects are of the same type.
internal/testify/assert/assertion_forward.go:619
MethodIsTypef
IsTypef asserts that the specified objects are of the same type.
internal/testify/require/require_forward.go:620
MethodJSONEqf
JSONEqf asserts that two JSON strings are equivalent. a.JSONEqf(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "error messag
internal/testify/assert/assertion_forward.go:639
MethodJSONEqf
JSONEqf asserts that two JSON strings are equivalent. a.JSONEqf(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "error messag
internal/testify/require/require_forward.go:640
MethodLen
()
functions.go:50
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, "error
internal/testify/assert/assertion_forward.go:661
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, "error
internal/testify/require/require_forward.go:662
MethodLess
(i, j int)
functions.go:56
MethodLess
(i, j int)
functions.go:95
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:673
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:674
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.Less
internal/testify/assert/assertion_forward.go:686
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.Less
internal/testify/require/require_forward.go:687
MethodLessOrEqualf
LessOrEqualf asserts that the first element is less than or equal to the second a.LessOrEqualf(1, 2, "error message %s", "formatted") a.LessOrEqualf(
internal/testify/assert/assertion_forward.go:699
MethodLessOrEqualf
LessOrEqualf asserts that the first element is less than or equal to the second a.LessOrEqualf(1, 2, "error message %s", "formatted") a.LessOrEqualf(
internal/testify/require/require_forward.go:700
MethodLessf
Lessf asserts that the first element is less than the second a.Lessf(1, 2, "error message %s", "formatted") a.Lessf(float64(1, "error message %s", "f
internal/testify/assert/assertion_forward.go:711
MethodLessf
Lessf asserts that the first element is less than the second a.Lessf(1, 2, "error message %s", "formatted") a.Lessf(float64(1, "error message %s", "f
internal/testify/require/require_forward.go:712
MethodLogf
(string, ...interface{})
internal/testify/mock/mock_test.go:103
MethodLogf
(format string, args ...interface{})
internal/testify/mock/mock_test.go:1423
MethodName
()
internal/testify/assert/assertions_test.go:1984
MethodNever
Never asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. a.Never(func() bool { re
internal/testify/assert/assertion_forward.go:722
MethodNever
Never asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. a.Never(func() bool { re
internal/testify/require/require_forward.go:723
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:733
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:734
MethodNilf
Nilf asserts that the specified object is nil. a.Nilf(err, "error message %s", "formatted")
internal/testify/assert/assertion_forward.go:753
MethodNilf
Nilf asserts that the specified object is nil. a.Nilf(err, "error message %s", "formatted")
internal/testify/require/require_forward.go:754
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:762
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:763
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:771
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:772
MethodNoErrorf
NoErrorf asserts that a function returned no error (i.e. `nil`). actualObj, err := SomeFunction() if a.NoErrorf(err, "error message %s", "formatted")
internal/testify/assert/assertion_forward.go:797
MethodNoErrorf
NoErrorf asserts that a function returned no error (i.e. `nil`). actualObj, err := SomeFunction() if a.NoErrorf(err, "error message %s", "formatted")
internal/testify/require/require_forward.go:798
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:806
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:807
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:815
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:816
MethodNonTestMethod
NonTestMethod does not begin with "Test", so it will not be run by testify as a test in the suite. This is useful for creating helper methods for you
internal/testify/suite/suite_test.go:230
MethodNonTestMethod
()
internal/testify/suite/suite_test.go:363
MethodNotContainsf
NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element. a.NotContainsf("Hel
internal/testify/assert/assertion_forward.go:841
MethodNotContainsf
NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element. a.NotContainsf("Hel
internal/testify/require/require_forward.go:842
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(ob
internal/testify/assert/assertion_forward.go:867
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(ob
internal/testify/require/require_forward.go:868
MethodNotEqualf
NotEqualf asserts that the specified values are NOT equal. a.NotEqualf(obj1, obj2, "error message %s", "formatted") Pointer variable equality is det
internal/testify/assert/assertion_forward.go:893
MethodNotEqualf
NotEqualf asserts that the specified values are NOT equal. a.NotEqualf(obj1, obj2, "error message %s", "formatted") Pointer variable equality is det
internal/testify/require/require_forward.go:894
MethodNotNilf
NotNilf asserts that the specified object is not nil. a.NotNilf(err, "error message %s", "formatted")
internal/testify/assert/assertion_forward.go:913
MethodNotNilf
NotNilf asserts that the specified object is not nil. a.NotNilf(err, "error message %s", "formatted")
internal/testify/require/require_forward.go:914
MethodNotPanicsf
NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. a.NotPanicsf(func(){ RemainCalm() }, "error message %s", "formatt
internal/testify/assert/assertion_forward.go:933
MethodNotPanicsf
NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. a.NotPanicsf(func(){ RemainCalm() }, "error message %s", "formatt
internal/testify/require/require_forward.go:934
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:945
MethodNotRegexpf
NotRegexpf asserts that a specified regexp does not match a string. a.NotRegexpf(regexp.MustCompile("starts", "error message %s", "formatted"), "it's
internal/testify/assert/assertion_forward.go:955
MethodNotRegexpf
NotRegexpf asserts that a specified regexp does not match a string. a.NotRegexpf(regexp.MustCompile("starts", "error message %s", "formatted"), "it's
internal/testify/require/require_forward.go:956
MethodNotSame
NotSame asserts that two pointers do not reference the same object. a.NotSame(ptr1, ptr2) Both arguments must be pointer variables. Pointer variable
internal/testify/assert/assertion_forward.go:968
MethodNotSame
NotSame asserts that two pointers do not reference the same object. a.NotSame(ptr1, ptr2) Both arguments must be pointer variables. Pointer variable
internal/testify/require/require_forward.go:969
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:981
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:982
MethodNotSubset
NotSubset asserts that the specified list(array, slice...) contains not all elements given in the specified subset(array, slice...). a.NotSubset([1,
internal/testify/assert/assertion_forward.go:992
MethodNotSubset
NotSubset asserts that the specified list(array, slice...) contains not all elements given in the specified subset(array, slice...). a.NotSubset([1,
internal/testify/require/require_forward.go:993
MethodNotSubsetf
NotSubsetf asserts that the specified list(array, slice...) contains not all elements given in the specified subset(array, slice...). a.NotSubsetf([1
internal/testify/assert/assertion_forward.go:1003
MethodNotSubsetf
NotSubsetf asserts that the specified list(array, slice...) contains not all elements given in the specified subset(array, slice...). a.NotSubsetf([1
internal/testify/require/require_forward.go:1004
MethodNotZerof
NotZerof asserts that i is not the zero value for its type.
internal/testify/assert/assertion_forward.go:1019
MethodNotZerof
NotZerof asserts that i is not the zero value for its type.
internal/testify/require/require_forward.go:1020
MethodPanicsWithError
PanicsWithError asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value is an error that satisfies the Equ
internal/testify/assert/assertion_forward.go:1041
MethodPanicsWithError
PanicsWithError asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value is an error that satisfies the Equ
internal/testify/require/require_forward.go:1042
MethodPanicsWithErrorf
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_forward.go:1053
MethodPanicsWithErrorf
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/require/require_forward.go:1054
MethodPanicsWithValue
PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value.
internal/testify/assert/assertion_forward.go:1064
MethodPanicsWithValue
PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value.
internal/testify/require/require_forward.go:1065
MethodPanicsWithValuef
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_forward.go:1075
MethodPanicsWithValuef
PanicsWithValuef asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value.
internal/testify/require/require_forward.go:1076
← previousnext →601–700 of 1,151, ranked by callers