Documentation ¶
Overview ¶
Package assert provides tiny asserting functions for testing. Inspired by github.com/stretchr/testify/assert and https://github.com/benbjohnson/testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var New = NewAssert
New is a func alias for NewAssert. The name NewAssert is reduncdant but kept for compatibility.
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 ¶
type Assert ¶
type Assert struct {
// contains filtered or unexported fields
}
Assert wraps a testing.TB for convenient asserting calls.
func (*Assert) Equal ¶
Equal tests if the two interfaces provided is equal and prints the msg for failure.
Click to show internal directories.
Click to hide internal directories.