assert
This package provides a simple assert extension by using reflect
kungfu.
Table of Contents
Installation
From Source
go get -u github.com/andygeiss/assert
Usage
func Test_Given_Nothing_When_Calling_Foo_Then_Return_42_And_No_Error(t *testing.T) {
res, err := foo()
assert.That(t, err, nil)
assert.That(t, res, 42)
}