MCPcopy Create free account

hub / github.com/stretchr/testify / types & classes

Types & classes122 in github.com/stretchr/testify

↓ 19 callersTypeAliasArguments
* Arguments */ Arguments holds an array of method arguments or return values.
mock/mock.go:774
↓ 1 callersTypeAliasTString
assert/assertions_test.go:1699
↓ 1 callersTypeAliasanythingOfTypeArgument
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 callersTypeAliascompareResult
assert/assertion_compare.go:13
↓ 1 callersTypeAliascustomBytes
assert/assertion_compare_test.go:28
↓ 1 callersTypeAliascustomFloat32
assert/assertion_compare_test.go:24
↓ 1 callersTypeAliascustomFloat64
assert/assertion_compare_test.go:25
↓ 1 callersTypeAliascustomInt
assert/assertion_compare_test.go:14
↓ 1 callersTypeAliascustomInt16
assert/assertion_compare_test.go:16
↓ 1 callersTypeAliascustomInt32
assert/assertion_compare_test.go:17
↓ 1 callersTypeAliascustomInt64
assert/assertion_compare_test.go:18
↓ 1 callersTypeAliascustomInt8
assert/assertion_compare_test.go:15
↓ 1 callersTypeAliascustomString
assert/assertion_compare_test.go:13
↓ 1 callersTypeAliascustomTime
assert/assertion_compare_test.go:27
↓ 1 callersTypeAliascustomUInt
assert/assertion_compare_test.go:19
↓ 1 callersTypeAliascustomUInt16
assert/assertion_compare_test.go:21
↓ 1 callersTypeAliascustomUInt32
assert/assertion_compare_test.go:22
↓ 1 callersTypeAliascustomUInt64
assert/assertion_compare_test.go:23
↓ 1 callersTypeAliascustomUInt8
assert/assertion_compare_test.go:20
↓ 1 callersTypeAliascustomUintptr
assert/assertion_compare_test.go:26
↓ 1 callersTypeAliasmyType
assert/assertions_test.go:568
StructA
assert/assertions_test.go:990
InterfaceAfterTest
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
StructAssertionTesterConformingObject
AssertionTesterConformingObject is an object that conforms to the AssertionTesterInterface interface
assert/assertions_test.go:94
StructAssertionTesterConformingObject
AssertionTesterConformingObject is an object that conforms to the AssertionTesterInterface interface
require/requirements_test.go:18
InterfaceAssertionTesterInterface
AssertionTesterInterface defines an interface to be used for testing assertion methods
assert/assertions_test.go:89
InterfaceAssertionTesterInterface
AssertionTesterInterface defines an interface to be used for testing assertion methods
require/requirements_test.go:13
StructAssertionTesterNonConformingObject
AssertionTesterNonConformingObject is an object that does not conform to the AssertionTesterInterface interface
assert/assertions_test.go:101
StructAssertionTesterNonConformingObject
AssertionTesterNonConformingObject is an object that does not conform to the AssertionTesterInterface interface
require/requirements_test.go:25
StructAssertions
Assertions provides assertion methods around the TestingT interface.
assert/forward_assertions.go:5
StructAssertions
Assertions provides assertion methods around the TestingT interface.
require/forward_requirements.go:5
InterfaceBeforeTest
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
FuncTypeBoolAssertionFunc
BoolAssertionFunc is a common function prototype when validating a bool value. Can be useful for table driven tests.
assert/assertions.go:44
FuncTypeBoolAssertionFunc
BoolAssertionFunc is a common function prototype when validating a bool value. Can be useful for table driven tests.
require/requirements.go:23
StructCall
* Call */ Call represents a method call and is used for setting expectations, as well as recording activity.
mock/mock.go:37
StructCallOrderSuite
suite/suite_test.go:476
StructCollectT
CollectT implements the TestingT interface and collects all errors.
assert/assertions.go:1960
StructCompareStruct
assert/assertion_compare_test.go:404
FuncTypeComparison
Comparison is a custom function that returns true on success and false on failure
assert/assertions.go:55
FuncTypeComparisonAssertionFunc
ComparisonAssertionFunc is a common function prototype when comparing two values. Can be useful for table driven tests.
assert/assertions.go:36
FuncTypeComparisonAssertionFunc
ComparisonAssertionFunc is a common function prototype when comparing two values. Can be useful for table driven tests.
require/requirements.go:15
FuncTypeErrorAssertionFunc
ErrorAssertionFunc is a common function prototype when validating an error value. Can be useful for table driven tests.
assert/assertions.go:48
FuncTypeErrorAssertionFunc
ErrorAssertionFunc is a common function prototype when validating an error value. Can be useful for table driven tests.
require/requirements.go:27
FuncTypeExampleFuncType
func(string) error
mock/mock_test.go:123
InterfaceExampleInterface
* Test objects */ ExampleInterface represents an example interface.
mock/mock_test.go:21
StructExampleType
mock/mock_test.go:74
StructFailfastSuite
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
StructFunctionalOptionsArgument
FunctionalOptionsArgument contains a list of functional options arguments expected for use when matching a list of arguments.
mock/mock.go:832
StructIsTypeArgument
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
StructMock
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
StructMockT
require/requirements_test.go:28
StructMockTestingT
MockTestingT mocks a test struct
mock/mock_test.go:131
StructNested
assert/assertions_test.go:176
FuncTypeOptionFn
func(*options)
mock/mock_test.go:40
FuncTypePanicTestFunc
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
StructS
assert/assertions_test.go:181
StructS2
assert/assertions_test.go:188
StructS3
assert/assertions_test.go:192
StructS4
assert/assertions_test.go:197
StructS5
assert/assertions_test.go:201
StructS6
assert/assertions_test.go:205
InterfaceSetupAllSuite
SetupAllSuite has a SetupSuite method, which will run before the tests in the suite are run.
suite/interfaces.go:15
InterfaceSetupSubTest
SetupSubTest has a SetupSubTest method, which will run before each subtest in the suite.
suite/interfaces.go:58
InterfaceSetupTestSuite
SetupTestSuite has a SetupTest method, which will run before each test in the suite.
suite/interfaces.go:21
StructStdoutCapture
suite/suite_test.go:427
StructSuite
Suite is a basic testing suite with methods for storing and retrieving the current *testing.T context.
suite/suite.go:23
StructSuiteInformation
SuiteInformation stats stores stats for the whole suite execution.
suite/stats.go:6
StructSuiteLoggingTester
suite/suite_test.go:414
StructSuiteRequireTwice
SuiteRequireTwice is intended to test the usage of suite.Require in two different tests
suite/suite_test.go:21
StructSuiteSetupSkipTester
This suite has no Test... methods. It's setup and teardown must be skipped.
suite/suite_test.go:379
StructSuiteSkipTester
suite/suite_test.go:273
StructSuiteTester
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
StructTStruct
assert/assertions_test.go:1700
InterfaceTearDownAllSuite
TearDownAllSuite has a TearDownSuite method, which will run after all the tests in the suite have been run.
suite/interfaces.go:27
InterfaceTearDownSubTest
TearDownSubTest has a TearDownSubTest method, which will run after each subtest in the suite have been run.
suite/interfaces.go:64
InterfaceTearDownTestSuite
TearDownTestSuite has a TearDownTest method, which will run after each test in the suite.
suite/interfaces.go:33
StructTestExampleImplementation
TestExampleImplementation is a test implementation of ExampleInterface
mock/mock_test.go:26
StructTestInformation
TestInformation stores information about the execution of each test.
suite/stats.go:12
StructTestResponseWriter
Deprecated: Use [net/http/httptest] instead.
http/test_response_writer.go:8
StructTestRoundTripper
Deprecated: Use [net/http/httptest] instead.
http/test_round_tripper.go:10
InterfaceTestingSuite
TestingSuite can store and return the current *testing.T context generated by 'go test'.
suite/interfaces.go:7
InterfaceTestingT
TestingT is an interface wrapper around *testing.T
mock/mock.go:25
InterfaceTestingT
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
InterfaceTestingT
TestingT is an interface wrapper around *testing.T
require/requirements.go:4
FuncTypeValueAssertionFunc
ValueAssertionFunc is a common function prototype when validating a single value. Can be useful for table driven tests.
assert/assertions.go:40
FuncTypeValueAssertionFunc
ValueAssertionFunc is a common function prototype when validating a single value. Can be useful for table driven tests.
require/requirements.go:19
InterfaceWithStats
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
Structargs
assert/assertions_test.go:653
Structargs
require/requirements_test.go:497
StructargumentMatcher
argumentMatcher performs custom argument matching, returning whether or not the argument is matched by the expectation fixture function.
mock/mock.go:860
InterfaceassertExpectationiser
* Assertions */
mock/mock.go:584
StructbufferT
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
Interfacecaller
mock/mock_test.go:2240
StructcaptureTestingT
assert/assertions_test.go:3177
StructcustomError
assert/assertions_test.go:1591
StructdiffTestingStruct
assert/assertions_test.go:2453
StructerrorsCapturingT
errorsCapturingT is a mock implementation of TestingT that captures errors reported with Errorf.
assert/assertions_test.go:2980
InterfacefailNower
assert/assertions.go:322
Interfaceiface
assert/assertions_test.go:2755
Interfaceiface
require/requirements_test.go:521
next →1–100 of 122, ranked by callers