MCPcopy Create free account

hub / github.com/stretchr/testify / functions

Functions1,305 in github.com/stretchr/testify

MethodPanicsWithValuef
PanicsWithValuef asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value.
require/require_forward.go:1473
MethodPanicsf
Panicsf asserts that the code inside the specified PanicTestFunc panics. a.Panicsf(func(){ GoCrazy() }, "error message %s", "formatted")
assert/assertion_forward.go:1482
MethodPanicsf
Panicsf asserts that the code inside the specified PanicTestFunc panics. a.Panicsf(func(){ GoCrazy() }, "error message %s", "formatted")
require/require_forward.go:1483
MethodParamsFormat
()
_codegen/main.go:276
MethodPositive
Positive asserts that the specified element is positive a.Positive(1) a.Positive(1.23)
assert/assertion_forward.go:1493
MethodPositive
Positive asserts that the specified element is positive a.Positive(1) a.Positive(1.23)
require/require_forward.go:1494
MethodPositivef
Positivef asserts that the specified element is positive a.Positivef(1, "error message %s", "formatted") a.Positivef(1.23, "error message %s", "for
assert/assertion_forward.go:1504
MethodPositivef
Positivef asserts that the specified element is positive a.Positivef(1, "error message %s", "formatted") a.Positivef(1.23, "error message %s", "for
require/require_forward.go:1505
MethodQualifier
(p *types.Package)
_codegen/main.go:223
MethodRegexp
Regexp asserts that a specified regexp matches a string. a.Regexp(regexp.MustCompile("start"), "it's starting") a.Regexp("start...$", "it's not sta
require/require_forward.go:1516
MethodRegexpf
Regexpf asserts that a specified regexp matches a string. a.Regexpf(regexp.MustCompile("start"), "it's starting", "error message %s", "formatted")
assert/assertion_forward.go:1526
MethodRegexpf
Regexpf asserts that a specified regexp matches a string. a.Regexpf(regexp.MustCompile("start"), "it's starting", "error message %s", "formatted")
require/require_forward.go:1527
MethodReset
Deprecated: That was a method for internal usage that should not have been published. Now just panics.
assert/assertions.go:1979
MethodRoundTrip
Deprecated: Use [net/http/httptest] instead.
http/test_round_tripper.go:15
MethodRun
Run provides suite functionality around golang subtests. It should be called in place of t.Run(name, func(t *testing.T)) in test suite code. The pass
suite/suite.go:98
MethodRun
Run sets a handler to be called before returning. It can be used when mocking a method (such as an unmarshaler) that takes a pointer to a struct and s
mock/mock.go:183
MethodSame
Same asserts that two pointers reference the same object. a.Same(ptr1, ptr2) Both arguments must be pointer variables. Pointer variable sameness is
assert/assertion_forward.go:1539
MethodSame
Same asserts that two pointers reference the same object. a.Same(ptr1, ptr2) Both arguments must be pointer variables. Pointer variable sameness is
require/require_forward.go:1540
MethodSamef
Samef asserts that two pointers reference the same object. a.Samef(ptr1, ptr2, "error message %s", "formatted") Both arguments must be pointer vari
assert/assertion_forward.go:1552
MethodSamef
Samef asserts that two pointers reference the same object. a.Samef(ptr1, ptr2, "error message %s", "formatted") Both arguments must be pointer vari
require/require_forward.go:1553
MethodSetS
SetS needs to set the current test suite as parent to get access to the parent methods
suite/suite.go:52
MethodSetupSubTest
()
suite/suite_test.go:268
MethodSetupSubTest
()
suite/suite_test.go:505
MethodSetupSuite
()
suite/suite_test.go:61
MethodSetupSuite
The SetupSuite method will be run by testify once, at the very start of the testing suite, before any tests are run.
suite/suite_test.go:180
MethodSetupSuite
()
suite/suite_test.go:282
MethodSetupSuite
()
suite/suite_test.go:386
MethodSetupSuite
()
suite/suite_test.go:489
MethodSetupSuite
()
suite/suite_test.go:658
MethodSetupTest
()
suite/suite_test.go:67
MethodSetupTest
The SetupTest method will be run before every test in the suite.
suite/suite_test.go:203
MethodSetupTest
()
suite/suite_test.go:497
MethodSetupTest
()
suite/suite_test.go:665
MethodString
String returns the string representation of FunctionalOptionsArgument
mock/mock.go:837
MethodString
()
mock/mock.go:891
MethodString
String gets the argument at the specified index. Panics if there is no argument, or if the argument is of the wrong type. If no index is provided, St
mock/mock.go:1075
MethodSubset
Subset asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map. a.S
assert/assertion_forward.go:1564
MethodSubset
Subset asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map. a.S
require/require_forward.go:1565
MethodSubsetf
Subsetf asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map. a.
assert/assertion_forward.go:1576
MethodSubsetf
Subsetf asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map. a.
require/require_forward.go:1577
MethodTearDownSubTest
()
suite/suite_test.go:263
MethodTearDownSubTest
()
suite/suite_test.go:509
MethodTearDownSubTest
()
suite/suite_test.go:698
MethodTearDownSuite
()
suite/suite_test.go:97
MethodTearDownSuite
The TearDownSuite method will be run by testify once, at the very end of the testing suite, after all tests have been run.
suite/suite_test.go:198
MethodTearDownSuite
()
suite/suite_test.go:293
MethodTearDownSuite
()
suite/suite_test.go:394
MethodTearDownSuite
()
suite/suite_test.go:493
MethodTearDownSuite
()
suite/suite_test.go:662
MethodTearDownSuite
()
suite/suite_test.go:690
MethodTearDownTest
()
suite/suite_test.go:91
MethodTearDownTest
The TearDownTest method will be run after every test in the suite.
suite/suite_test.go:208
MethodTearDownTest
()
suite/suite_test.go:501
MethodTearDownTest
()
suite/suite_test.go:669
MethodTearDownTest
()
suite/suite_test.go:694
MethodTest
()
suite/suite_test.go:79
FunctionTestAfterTotalWaitTimeWhileExecution
(t *testing.T)
mock/mock_test.go:2061
FunctionTestArgumentMatcherToPrintMismatch
(t *testing.T)
mock/mock_test.go:2085
FunctionTestArgumentMatcherToPrintMismatchWithReferenceType
(t *testing.T)
mock/mock_test.go:2102
FunctionTestBoolAssertionFunc
(t *testing.T)
assert/assertions_test.go:2861
FunctionTestBoolAssertionFunc
(t *testing.T)
require/requirements_test.go:627
FunctionTestBytesEqual
(t *testing.T)
assert/assertions_test.go:2689
FunctionTestCallerInfoWithAutogeneratedFunctions
(t *testing.T)
assert/assertions_test.go:2144
FunctionTestClosestCallFavorsFirstMock
(t *testing.T)
mock/mock_test.go:2134
FunctionTestClosestCallMismatchedArgumentInformationShowsTheClosest
(t *testing.T)
mock/mock_test.go:2119
FunctionTestClosestCallMismatchedArgumentValueInformation
(t *testing.T)
mock/mock_test.go:2170
FunctionTestClosestCallUsesRepeatabilityToFindClosest
(t *testing.T)
mock/mock_test.go:2150
FunctionTestCompare
(t *testing.T)
assert/assertion_compare_test.go:12
FunctionTestComparingMsgAndArgsForwarding
(t *testing.T)
assert/assertion_compare_test.go:456
FunctionTestComparisonAssertionFunc
(t *testing.T)
assert/assertions_test.go:2754
FunctionTestComparisonAssertionFunc
(t *testing.T)
require/requirements_test.go:520
FunctionTestConcurrentArgumentRead
(t *testing.T)
mock/mock_test.go:2219
FunctionTestCondition
(t *testing.T)
assert/assertions_test.go:1438
FunctionTestConditionWrapper
(t *testing.T)
assert/forward_assertions_test.go:223
FunctionTestContains
(t *testing.T)
require/requirements_test.go:143
FunctionTestContainsNotContains
(t *testing.T)
assert/assertions_test.go:988
FunctionTestContainsNotContainsFailMessage
(t *testing.T)
assert/assertions_test.go:1052
FunctionTestContainsNotContainsOnNilValue
(t *testing.T)
assert/assertions_test.go:1108
FunctionTestContainsWrapper
(t *testing.T)
assert/forward_assertions_test.go:181
FunctionTestContainsWrapper
(t *testing.T)
require/forward_requirements_test.go:123
FunctionTestCopyExportedFields
(t *testing.T)
assert/assertions_test.go:285
FunctionTestDidPanic
(t *testing.T)
assert/assertions_test.go:1451
FunctionTestDidPanicWrapper
(t *testing.T)
assert/forward_assertions_test.go:237
FunctionTestDiff
(t *testing.T)
assert/assertions_test.go:2462
FunctionTestDiffEmptyCases
(t *testing.T)
assert/assertions_test.go:2605
FunctionTestDiffLists
(t *testing.T)
assert/assertions_test.go:1308
FunctionTestDiffRace
Ensure there are no data races
assert/assertions_test.go:2615
FunctionTestDirExists
(t *testing.T)
assert/assertions_test.go:2259
FunctionTestElementsMatch
(t *testing.T)
assert/assertions_test.go:1267
FunctionTestEmpty
(t *testing.T)
assert/assertions_test.go:1686
FunctionTestEmpty
(t *testing.T)
require/requirements_test.go:235
FunctionTestEmptyWrapper
(t *testing.T)
assert/forward_assertions_test.go:354
FunctionTestEmptyWrapper
(t *testing.T)
require/forward_requirements_test.go:223
FunctionTestEqual
(t *testing.T)
assert/assertions_test.go:567
FunctionTestEqual
(t *testing.T)
require/requirements_test.go:62
FunctionTestEqualError
(t *testing.T)
assert/assertions_test.go:1625
FunctionTestEqualError
(t *testing.T)
require/requirements_test.go:224
FunctionTestEqualErrorWrapper
(t *testing.T)
assert/forward_assertions_test.go:337
FunctionTestEqualErrorWrapper
(t *testing.T)
require/forward_requirements_test.go:211
FunctionTestEqualExportedValues
(t *testing.T)
assert/assertions_test.go:368
← previousnext →801–900 of 1,305, ranked by callers