This commit is contained in:
14
test/require/true.go
Normal file
14
test/require/true.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package require
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Truef(t *testing.T, value bool, msg string, args ...interface{}) {
|
||||
t.Helper()
|
||||
|
||||
if !value {
|
||||
t.Errorf(msg, args...)
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user