repositorypackage
1.2.0
Repository: https://github.com/avakarev/go-testutil.git
Documentation: pkg.go.dev
# README
testutil
Utilities around cmp to help testing go code
Install
go get github.com/avakarev/go-testutil
Usage
package hello_test
import (
"fmt"
"testing"
"github.com/avakarev/go-testutil"
)
func Hello() (string, error) {
return "Hello World", nil
}
func TestHello(t *testing.T) {
s, err := Hello()
testutil.MustNoErr(err, t)
testutil.Diff("Hello World", s, t)
}
License
go-testutil
is licensed under MIT license. (see LICENSE)