package
1.3.4
Repository: https://github.com/avakarev/go-util.git
Documentation: pkg.go.dev

# README

testutil

Utility helpers for testing, based on go-cmp

Install

go get github.com/avakarev/go-util/testutil

Usage

package hello_test

import (
	"fmt"
	"testing"

	"github.com/avakarev/go-util/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)