mirror of
https://github.com/ipfs/kubo.git
synced 2025-10-25 18:36:26 +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) {
|
||||
if err == nil {
|
||||
t.Fatal(msgs, "error:", err)
|
||||
|
||||
Reference in New Issue
Block a user