Documentation ¶
Index ¶
- func AssertDeepEqual(t TestingT, exp, act interface{}, format string, args ...interface{}) bool
- func DeepEqual(a, b interface{}) bool
- func RequireDeepEqual(t TestingT, exp, act interface{}, format string, args ...interface{}) bool
- func Value(v interface{}) interface{}
- type Differ
- type TestMock
- type TestResults
- type TestingT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDeepEqual ¶
AssertDeepEqual verifies underlying values are deep equal and prints a diff if not
func RequireDeepEqual ¶
RequireDeepEqual verifies underlying values are deep equal and prints a diff if not
Types ¶
type TestMock ¶
type TestMock struct {
// contains filtered or unexported fields
}
TestMock capture the output normally sent to *testing.T and os.Stdout
func (*TestMock) FailNow ¶
func (t *TestMock) FailNow()
FailNow marks the test as failed and stops execution
func (*TestMock) Results ¶
func (t *TestMock) Results() *TestResults
Results detaches from stdout and returns the TestResults that capture the info normally sent to testing.T and stdout
type TestResults ¶
TestResults contains the output normally sent to *testing.T and os.Stdout
Click to show internal directories.
Click to hide internal directories.