Documentation ¶
Overview ¶
Assert provides useful utilities for writing unit tests.
Assert wraps the standard testing.T type to implement its utilities on that type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type T ¶
func (*T) Equals ¶
func (t *T) Equals(a interface{}, b interface{})
Asserts that A and B are Equal.
Example:
(*assert.T)(t).Equals(10, 10)
func (*T) Nil ¶
func (t *T) Nil(a interface{})
Asserts that A is Nil
Example:
(*assert.T)(t).Nil(nil)
Click to show internal directories.
Click to hide internal directories.