package assert import "testing" func Nil(err error, t *testing.T, msgs ...string) { if err != nil { t.Fatal(msgs, "error:", err) } } func True(v bool, t *testing.T, msgs ...string) { if !v { t.Fatal(msgs) } } func Err(err error, t *testing.T, msgs ...string) { if err == nil { t.Fatal(msgs, "error:", err) } }