Files
config/test/require/true.go
2026-01-03 14:08:17 +03:00

25 lines
331 B
Go

package require
import (
"testing"
)
func Truef(t *testing.T, value bool, msg string, args ...any) {
t.Helper()
if !value {
t.Errorf(msg, args...)
t.FailNow()
}
}
func True(t *testing.T, value bool, args ...any) {
t.Helper()
if !value {
t.Errorf("require:true got:%v", value)
t.Error(args...)
t.FailNow()
}
}