Utilities around cmp to help testing go code
NOTE: deprecated, merged into https://github.com/avakarev/go-util
Scheduled for deletion after 2023-09-01
go get github.com/avakarev/go-testutil
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)
}
go-testutil
is licensed under MIT license. (see LICENSE)