Documentation
¶
Index ¶
- Variables
- func BeEmpty(actual interface{}, expected ...interface{}) error
- func BeFalse(actual interface{}, expected ...interface{}) error
- func BeNil(actual interface{}, expected ...interface{}) error
- func BeTrue(actual interface{}, expected ...interface{}) error
- func Equal(actual interface{}, EXPECTED ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExpectedCountInvalid = errors.New("expected count invalid") ErrTypeMismatch = errors.New("type mismatch") ErrKindMismatch = errors.New("kind mismatch") ErrAssertionFailure = errors.New("assertion failure") )
View Source
var NOT negated
NOT (a singleton) constrains all negated assertions to their own namespace.
Functions ¶
func BeEmpty ¶
func BeEmpty(actual interface{}, expected ...interface{}) error
BeEmpty uses reflection to verify that len(actual) == 0.
func BeFalse ¶
func BeFalse(actual interface{}, expected ...interface{}) error
BeFalse verifies that actual is the boolean false value.
func BeNil ¶
func BeNil(actual interface{}, expected ...interface{}) error
BeNil verifies that actual is the nil value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.