Skip to content

This package provides a simple assert extension by using reflect kungfu.

License

Notifications You must be signed in to change notification settings

andygeiss/assert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

assert

Go Report Card

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)
}

About

This package provides a simple assert extension by using reflect kungfu.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages