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:
4
thirdparty/assert/assert.go
vendored
4
thirdparty/assert/assert.go
vendored
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user