Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/stretchr/testify
/ types & classes
Types & classes
122 in github.com/stretchr/testify
⨍
Functions
1,305
◇
Types & classes
122
↓ 19 callers
TypeAlias
Arguments
* Arguments */ Arguments holds an array of method arguments or return values.
mock/mock.go:774
↓ 1 callers
TypeAlias
TString
assert/assertions_test.go:1699
↓ 1 callers
TypeAlias
anythingOfTypeArgument
anythingOfTypeArgument is a string that contains the type of an argument for use when type checking. Used in Diff and Assert.
mock/mock.go:798
↓ 1 callers
TypeAlias
compareResult
assert/assertion_compare.go:13
↓ 1 callers
TypeAlias
customBytes
assert/assertion_compare_test.go:28
↓ 1 callers
TypeAlias
customFloat32
assert/assertion_compare_test.go:24
↓ 1 callers
TypeAlias
customFloat64
assert/assertion_compare_test.go:25
↓ 1 callers
TypeAlias
customInt
assert/assertion_compare_test.go:14
↓ 1 callers
TypeAlias
customInt16
assert/assertion_compare_test.go:16
↓ 1 callers
TypeAlias
customInt32
assert/assertion_compare_test.go:17
↓ 1 callers
TypeAlias
customInt64
assert/assertion_compare_test.go:18
↓ 1 callers
TypeAlias
customInt8
assert/assertion_compare_test.go:15
↓ 1 callers
TypeAlias
customString
assert/assertion_compare_test.go:13
↓ 1 callers
TypeAlias
customTime
assert/assertion_compare_test.go:27
↓ 1 callers
TypeAlias
customUInt
assert/assertion_compare_test.go:19
↓ 1 callers
TypeAlias
customUInt16
assert/assertion_compare_test.go:21
↓ 1 callers
TypeAlias
customUInt32
assert/assertion_compare_test.go:22
↓ 1 callers
TypeAlias
customUInt64
assert/assertion_compare_test.go:23
↓ 1 callers
TypeAlias
customUInt8
assert/assertion_compare_test.go:20
↓ 1 callers
TypeAlias
customUintptr
assert/assertion_compare_test.go:26
↓ 1 callers
TypeAlias
myType
assert/assertions_test.go:568
Struct
A
assert/assertions_test.go:990
Interface
AfterTest
AfterTest has a function to be executed right after the test finishes and receives the suite and test names as input
suite/interfaces.go:45
Struct
AssertionTesterConformingObject
AssertionTesterConformingObject is an object that conforms to the AssertionTesterInterface interface
assert/assertions_test.go:94
Struct
AssertionTesterConformingObject
AssertionTesterConformingObject is an object that conforms to the AssertionTesterInterface interface
require/requirements_test.go:18
Interface
AssertionTesterInterface
AssertionTesterInterface defines an interface to be used for testing assertion methods
assert/assertions_test.go:89
Interface
AssertionTesterInterface
AssertionTesterInterface defines an interface to be used for testing assertion methods
require/requirements_test.go:13
Struct
AssertionTesterNonConformingObject
AssertionTesterNonConformingObject is an object that does not conform to the AssertionTesterInterface interface
assert/assertions_test.go:101
Struct
AssertionTesterNonConformingObject
AssertionTesterNonConformingObject is an object that does not conform to the AssertionTesterInterface interface
require/requirements_test.go:25
Struct
Assertions
Assertions provides assertion methods around the TestingT interface.
assert/forward_assertions.go:5
Struct
Assertions
Assertions provides assertion methods around the TestingT interface.
require/forward_requirements.go:5
Interface
BeforeTest
BeforeTest has a function to be executed right before the test starts and receives the suite and test names as input
suite/interfaces.go:39
FuncType
BoolAssertionFunc
BoolAssertionFunc is a common function prototype when validating a bool value. Can be useful for table driven tests.
assert/assertions.go:44
FuncType
BoolAssertionFunc
BoolAssertionFunc is a common function prototype when validating a bool value. Can be useful for table driven tests.
require/requirements.go:23
Struct
Call
* Call */ Call represents a method call and is used for setting expectations, as well as recording activity.
mock/mock.go:37
Struct
CallOrderSuite
suite/suite_test.go:476
Struct
CollectT
CollectT implements the TestingT interface and collects all errors.
assert/assertions.go:1960
Struct
CompareStruct
assert/assertion_compare_test.go:404
FuncType
Comparison
Comparison is a custom function that returns true on success and false on failure
assert/assertions.go:55
FuncType
ComparisonAssertionFunc
ComparisonAssertionFunc is a common function prototype when comparing two values. Can be useful for table driven tests.
assert/assertions.go:36
FuncType
ComparisonAssertionFunc
ComparisonAssertionFunc is a common function prototype when comparing two values. Can be useful for table driven tests.
require/requirements.go:15
FuncType
ErrorAssertionFunc
ErrorAssertionFunc is a common function prototype when validating an error value. Can be useful for table driven tests.
assert/assertions.go:48
FuncType
ErrorAssertionFunc
ErrorAssertionFunc is a common function prototype when validating an error value. Can be useful for table driven tests.
require/requirements.go:27
FuncType
ExampleFuncType
func(string) error
mock/mock_test.go:123
Interface
ExampleInterface
* Test objects */ ExampleInterface represents an example interface.
mock/mock_test.go:21
Struct
ExampleType
mock/mock_test.go:74
Struct
FailfastSuite
FailfastSuite will test the behavior when running with the failfast flag It logs calls in the callOrder slice which we then use to assert the correct
suite/suite_test.go:583
Struct
FunctionalOptionsArgument
FunctionalOptionsArgument contains a list of functional options arguments expected for use when matching a list of arguments.
mock/mock.go:832
Struct
IsTypeArgument
IsTypeArgument is a struct that contains the type of an argument for use when type checking. This is an alternative to [AnythingOfType]. Used in [Arg
mock/mock.go:815
Struct
Mock
Mock is the workhorse used to track activity on another object. For an example of its usage, refer to the "Example Usage" section at the top of this d
mock/mock.go:293
Struct
MockT
require/requirements_test.go:28
Struct
MockTestingT
MockTestingT mocks a test struct
mock/mock_test.go:131
Struct
Nested
assert/assertions_test.go:176
FuncType
OptionFn
func(*options)
mock/mock_test.go:40
FuncType
PanicTestFunc
PanicTestFunc defines a func that should be passed to the assert.Panics and assert.NotPanics methods, and represents a simple func that takes no argum
assert/assertions.go:1225
Struct
S
assert/assertions_test.go:181
Struct
S2
assert/assertions_test.go:188
Struct
S3
assert/assertions_test.go:192
Struct
S4
assert/assertions_test.go:197
Struct
S5
assert/assertions_test.go:201
Struct
S6
assert/assertions_test.go:205
Interface
SetupAllSuite
SetupAllSuite has a SetupSuite method, which will run before the tests in the suite are run.
suite/interfaces.go:15
Interface
SetupSubTest
SetupSubTest has a SetupSubTest method, which will run before each subtest in the suite.
suite/interfaces.go:58
Interface
SetupTestSuite
SetupTestSuite has a SetupTest method, which will run before each test in the suite.
suite/interfaces.go:21
Struct
StdoutCapture
suite/suite_test.go:427
Struct
Suite
Suite is a basic testing suite with methods for storing and retrieving the current *testing.T context.
suite/suite.go:23
Struct
SuiteInformation
SuiteInformation stats stores stats for the whole suite execution.
suite/stats.go:6
Struct
SuiteLoggingTester
suite/suite_test.go:414
Struct
SuiteRequireTwice
SuiteRequireTwice is intended to test the usage of suite.Require in two different tests
suite/suite_test.go:21
Struct
SuiteSetupSkipTester
This suite has no Test... methods. It's setup and teardown must be skipped.
suite/suite_test.go:379
Struct
SuiteSkipTester
suite/suite_test.go:273
Struct
SuiteTester
This suite is intended to store values to make sure that only testing-suite-related methods are run. It's also a fully functional example of a testin
suite/suite_test.go:149
Struct
TStruct
assert/assertions_test.go:1700
Interface
TearDownAllSuite
TearDownAllSuite has a TearDownSuite method, which will run after all the tests in the suite have been run.
suite/interfaces.go:27
Interface
TearDownSubTest
TearDownSubTest has a TearDownSubTest method, which will run after each subtest in the suite have been run.
suite/interfaces.go:64
Interface
TearDownTestSuite
TearDownTestSuite has a TearDownTest method, which will run after each test in the suite.
suite/interfaces.go:33
Struct
TestExampleImplementation
TestExampleImplementation is a test implementation of ExampleInterface
mock/mock_test.go:26
Struct
TestInformation
TestInformation stores information about the execution of each test.
suite/stats.go:12
Struct
TestResponseWriter
Deprecated: Use [net/http/httptest] instead.
http/test_response_writer.go:8
Struct
TestRoundTripper
Deprecated: Use [net/http/httptest] instead.
http/test_round_tripper.go:10
Interface
TestingSuite
TestingSuite can store and return the current *testing.T context generated by 'go test'.
suite/interfaces.go:7
Interface
TestingT
TestingT is an interface wrapper around *testing.T
mock/mock.go:25
Interface
TestingT
go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_format.go.tmpl" TestingT is a
assert/assertions.go:30
Interface
TestingT
TestingT is an interface wrapper around *testing.T
require/requirements.go:4
FuncType
ValueAssertionFunc
ValueAssertionFunc is a common function prototype when validating a single value. Can be useful for table driven tests.
assert/assertions.go:40
FuncType
ValueAssertionFunc
ValueAssertionFunc is a common function prototype when validating a single value. Can be useful for table driven tests.
require/requirements.go:19
Interface
WithStats
WithStats implements HandleStats, a function that will be executed when a test suite is finished. The stats contain information about the execution of
suite/interfaces.go:52
Struct
args
assert/assertions_test.go:653
Struct
args
require/requirements_test.go:497
Struct
argumentMatcher
argumentMatcher performs custom argument matching, returning whether or not the argument is matched by the expectation fixture function.
mock/mock.go:860
Interface
assertExpectationiser
* Assertions */
mock/mock.go:584
Struct
bufferT
bufferT implements TestingT. Its implementation of Errorf writes the output that would be produced by testing.T.Errorf to an internal bytes.Buffer.
assert/assertions_test.go:717
Interface
caller
mock/mock_test.go:2240
Struct
captureTestingT
assert/assertions_test.go:3177
Struct
customError
assert/assertions_test.go:1591
Struct
diffTestingStruct
assert/assertions_test.go:2453
Struct
errorsCapturingT
errorsCapturingT is a mock implementation of TestingT that captures errors reported with Errorf.
assert/assertions_test.go:2980
Interface
failNower
assert/assertions.go:322
Interface
iface
assert/assertions_test.go:2755
Interface
iface
require/requirements_test.go:521
next →
1–100 of 122, ranked by callers