Documentation ¶
Overview ¶
Package assert provides tiny asserting functions for testing. Inspired by github.com/stretchr/testify/assert and https://github.com/benbjohnson/testing
Index ¶
- func IsNil(object interface{}) bool
- func ObjectsAreEqual(expected, actual interface{}) bool
- type Assert
- func (a *Assert) Equal(expected, actual interface{}, msg string)
- func (a *Assert) Nil(obj interface{}, msg string)
- func (a *Assert) NoError(err error, msg string)
- func (a *Assert) NotEqual(expected, actual interface{}, msg string)
- func (a *Assert) NotNil(obj interface{}, msg string)
- func (a *Assert) True(cond bool, msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNil ¶
func IsNil(object interface{}) bool
IsNil checks an interface{} with the reflect package.
func ObjectsAreEqual ¶
func ObjectsAreEqual(expected, actual interface{}) bool
ObjectsAreEqual checks two interfaces with reflect.DeepEqual.
Types ¶
Click to show internal directories.
Click to hide internal directories.