Documentation ¶
Overview ¶
Package require is a wrapper over testify's require package. We can expand it with additional functionality with a minimum of code, so long as we don't collide with their definitions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assertions ¶
type Assertions struct { // Embedding this to pass through to all functionality we don't add. *require.Assertions // contains filtered or unexported fields }
Assertions adds assertions to testify's require lib.
func New ¶
func New(tt require.TestingT) *Assertions
New creates a new Assertions type wrapping testify with additional functions.
func (*Assertions) WantError ¶
func (a *Assertions) WantError(wantErr bool, err error, msgAndArgs ...interface{})
WantError is a that a function returned an error (i.e. not `nil`).
Click to show internal directories.
Click to hide internal directories.