MCPcopy Create free account

hub / github.com/stretchr/testify / functions

Functions1,305 in github.com/stretchr/testify

MethodErrorf
Implements TestingT
assert/assertion_compare_test.go:103
MethodErrorf
Errorf asserts that a function returned an error (i.e. not `nil`). actualObj, err := SomeFunction() if a.Errorf(err, "error message %s", "forma
assert/assertion_forward.go:304
MethodErrorf
(format string, args ...interface{})
assert/internal/unsafetests/unsafetests_test.go:17
MethodErrorf
Errorf asserts that a function returned an error (i.e. not `nil`). actualObj, err := SomeFunction() if a.Errorf(err, "error message %s", "forma
require/require_forward.go:305
MethodErrorf
(format string, args ...interface{})
require/requirements_test.go:36
MethodEventually
Eventually asserts that given condition will be met in waitFor time, periodically checking target function each tick. a.Eventually(func() bool { ret
assert/assertion_forward.go:315
MethodEventually
Eventually asserts that given condition will be met in waitFor time, periodically checking target function each tick. a.Eventually(func() bool { ret
require/require_forward.go:316
MethodEventuallyWithT
EventuallyWithT asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually,
assert/assertion_forward.go:340
MethodEventuallyWithT
EventuallyWithT asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually,
require/require_forward.go:341
MethodEventuallyWithTf
EventuallyWithTf asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually,
assert/assertion_forward.go:365
MethodEventuallyWithTf
EventuallyWithTf asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually,
require/require_forward.go:366
MethodEventuallyf
Eventuallyf asserts that given condition will be met in waitFor time, periodically checking target function each tick. a.Eventuallyf(func() bool { r
assert/assertion_forward.go:376
MethodEventuallyf
Eventuallyf asserts that given condition will be met in waitFor time, periodically checking target function each tick. a.Eventuallyf(func() bool { r
require/require_forward.go:377
MethodExactlyf
Exactlyf asserts that two objects are equal in value and type. a.Exactlyf(int32(123), int64(123), "error message %s", "formatted")
assert/assertion_forward.go:396
MethodExactlyf
Exactlyf asserts that two objects are equal in value and type. a.Exactlyf(int32(123), int64(123), "error message %s", "formatted")
require/require_forward.go:397
FunctionExampleBoolAssertionFunc
()
assert/assertions_test.go:2836
FunctionExampleBoolAssertionFunc
()
require/requirements_test.go:602
FunctionExampleComparisonAssertionFunc
()
assert/assertions_test.go:2724
FunctionExampleComparisonAssertionFunc
()
require/requirements_test.go:490
FunctionExampleErrorAssertionFunc
()
assert/assertions_test.go:2878
FunctionExampleErrorAssertionFunc
()
require/requirements_test.go:644
FunctionExamplePanicAssertionFunc
()
assert/assertions_test.go:2921
FunctionExampleValueAssertionFunc
()
assert/assertions_test.go:2787
FunctionExampleValueAssertionFunc
()
require/requirements_test.go:553
MethodFail
Fail reports a failure through
assert/assertion_forward.go:404
MethodFailNow
()
mock/mock.go:28
MethodFailNow
FailNow mocks the FailNow call. It panics in order to mimic the FailNow behavior in the sense that the execution stops. When expecting this method, th
mock/mock_test.go:151
MethodFailNow
()
mock/mock_test.go:2045
MethodFailNow
()
assert/assertions_test.go:2679
MethodFailNow
FailNow stops execution by calling runtime.Goexit.
assert/assertions.go:1973
MethodFailNow
FailNow fails test
assert/assertion_forward.go:412
MethodFailNow
FailNow fails test
require/require_forward.go:413
MethodFailNow
()
require/requirements_test.go:32
MethodFailNowf
FailNowf fails test
assert/assertion_forward.go:420
MethodFailNowf
FailNowf fails test
require/require_forward.go:421
MethodFailf
Failf reports a failure through
assert/assertion_forward.go:428
MethodFailf
Failf reports a failure through
require/require_forward.go:429
MethodFalsef
Falsef asserts that the specified value is false. a.Falsef(myBool, "error message %s", "formatted")
assert/assertion_forward.go:448
MethodFalsef
Falsef asserts that the specified value is false. a.Falsef(myBool, "error message %s", "formatted")
require/require_forward.go:449
MethodFileExists
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
assert/assertion_forward.go:457
MethodFileExists
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
require/require_forward.go:458
MethodFileExistsf
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
assert/assertion_forward.go:466
MethodFileExistsf
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
require/require_forward.go:467
MethodForwardedParamsFormat
()
_codegen/main.go:280
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")
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")
require/require_forward.go:479
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
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
require/require_forward.go:492
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
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
require/require_forward.go:505
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
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
require/require_forward.go:517
MethodHTTPBodyContains
HTTPBodyContains asserts that a specified handler returns a body that contains a string. a.HTTPBodyContains(myHandler, "GET", "www.google.com", nil,
require/require_forward.go:530
MethodHTTPBodyContainsf
HTTPBodyContainsf asserts that a specified handler returns a body that contains a string. a.HTTPBodyContainsf(myHandler, "GET", "www.google.com", ni
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
require/require_forward.go:543
MethodHTTPBodyNotContains
HTTPBodyNotContains asserts that a specified handler returns a body that does not contain a string. a.HTTPBodyNotContains(myHandler, "GET", "www.goo
require/require_forward.go:556
MethodHTTPBodyNotContainsf
HTTPBodyNotContainsf asserts that a specified handler returns a body that does not contain a string. a.HTTPBodyNotContainsf(myHandler, "GET", "www.g
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
require/require_forward.go:569
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"}
require/require_forward.go:581
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
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
require/require_forward.go:593
MethodHTTPRedirect
HTTPRedirect asserts that a specified handler returns a redirect status code. a.HTTPRedirect(myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b
require/require_forward.go:605
MethodHTTPRedirectf
HTTPRedirectf asserts that a specified handler returns a redirect status code. a.HTTPRedirectf(myHandler, "GET", "/a/b/c", url.Values{"a": []string{
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{
require/require_forward.go:617
MethodHTTPStatusCode
HTTPStatusCode asserts that a specified handler returns a specified status code. a.HTTPStatusCode(myHandler, "GET", "/notImplemented", nil, 501) Re
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
require/require_forward.go:629
MethodHTTPStatusCodef
HTTPStatusCodef asserts that a specified handler returns a specified status code. a.HTTPStatusCodef(myHandler, "GET", "/notImplemented", nil, 501, "
assert/assertion_forward.go:640
MethodHTTPStatusCodef
HTTPStatusCodef asserts that a specified handler returns a specified status code. a.HTTPStatusCodef(myHandler, "GET", "/notImplemented", nil, 501, "
require/require_forward.go:641
MethodHTTPSuccess
HTTPSuccess asserts that a specified handler returns a success status code. a.HTTPSuccess(myHandler, "POST", "http://www.google.com", nil) Returns
require/require_forward.go:653
MethodHTTPSuccessf
HTTPSuccessf asserts that a specified handler returns a success status code. a.HTTPSuccessf(myHandler, "POST", "http://www.google.com", nil, "error
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
require/require_forward.go:665
MethodHandleStats
(suiteName string, stats *SuiteInformation)
suite/suite_test.go:539
MethodHeader
Deprecated: Use [net/http/httptest] instead.
http/test_response_writer.go:21
MethodHelper
()
suite/suite_test.go:619
MethodHelper
()
assert/assertions_test.go:2988
MethodHelper
()
assert/assertion_compare_test.go:108
MethodHelper
()
assert/internal/unsafetests/unsafetests_test.go:15
MethodImplementsf
Implementsf asserts that an object is implemented by the specified interface. a.Implementsf((*MyInterface)(nil), new(MyObject), "error message %s",
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",
require/require_forward.go:685
MethodInDeltaMapValues
InDeltaMapValues is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
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.
require/require_forward.go:703
MethodInDeltaMapValuesf
InDeltaMapValuesf is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
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.
require/require_forward.go:711
MethodInDeltaSlice
InDeltaSlice is the same as InDelta, except it compares two slices.
assert/assertion_forward.go:718
MethodInDeltaSlice
InDeltaSlice is the same as InDelta, except it compares two slices.
require/require_forward.go:719
MethodInDeltaSlicef
InDeltaSlicef is the same as InDelta, except it compares two slices.
assert/assertion_forward.go:726
MethodInDeltaSlicef
InDeltaSlicef is the same as InDelta, except it compares two slices.
require/require_forward.go:727
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")
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")
require/require_forward.go:737
MethodInEpsilon
InEpsilon asserts that expected and actual have a relative error less than epsilon
require/require_forward.go:745
MethodInEpsilonSlice
InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
assert/assertion_forward.go:752
MethodInEpsilonSlice
InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
require/require_forward.go:753
MethodInEpsilonSlicef
InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
assert/assertion_forward.go:760
MethodInEpsilonSlicef
InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
require/require_forward.go:761
MethodInEpsilonf
InEpsilonf asserts that expected and actual have a relative error less than epsilon
assert/assertion_forward.go:768
MethodInEpsilonf
InEpsilonf asserts that expected and actual have a relative error less than epsilon
require/require_forward.go:769
MethodIsDecreasing
IsDecreasing asserts that the collection is decreasing a.IsDecreasing([]int{2, 1, 0}) a.IsDecreasing([]float{2, 1}) a.IsDecreasing([]string{"b", "
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", "
require/require_forward.go:781
MethodIsDecreasingf
IsDecreasingf asserts that the collection is decreasing a.IsDecreasingf([]int{2, 1, 0}, "error message %s", "formatted") a.IsDecreasingf([]float{2,
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,
require/require_forward.go:793
← previousnext →601–700 of 1,305, ranked by callers