Documentation
¶
Overview ¶
Package wrapt wraps a *testing.T and adds functionality such as RunFatal, and Run with its own extended features.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type T ¶
type T struct {
// T is embedded so borrow all of the functionality for it, only
// patching over in cases like Run, when necessary.
*testing.T
// A allows for assertions with a test error. The source of these
// assertions is testify.
A *assert.Assertions
// A allows for requirements with a test failure. The source of
// these assertions is also testify.
R *require.Assertions
// FatalHandler is a function that can be set to handle any failure
// of a test where it is called, mainly in RunFatal.
FatalHandler func(t *T, success bool, msgAndArgs ...interface{})
}
T is simply a wrap of *testing.T.
func WrapT ¶
WrapT takes a *testing.T and returns the equivalent *T from it. This is the entry point into all functionality, and should be done at the top of any *testing.T test to impart the new functionality.
func (*T) LogResponseBody ¶ added in v0.0.3
Directories
¶
| Path | Synopsis |
|---|---|
|
Package assert is a wrapper over testify's assert package.
|
Package assert is a wrapper over testify's assert package. |
|
assertfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
|
Package require is a wrapper over testify's require package.
|
Package require is a wrapper over testify's require package. |
|
requirefakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.