1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-10-26 02:45:48 +08:00

add False method

This commit is contained in:
Brian Tiger Chow
2015-01-21 23:21:35 -08:00
parent c4f9a92e55
commit 05afd9622b

View File

@ -14,6 +14,10 @@ func True(v bool, t *testing.T, msgs ...string) {
} }
} }
func False(v bool, t *testing.T, msgs ...string) {
True(!v, t, msgs...)
}
func Err(err error, t *testing.T, msgs ...string) { func Err(err error, t *testing.T, msgs ...string) {
if err == nil { if err == nil {
t.Fatal(msgs, "error:", err) t.Fatal(msgs, "error:", err)