Files
config/test/require/error.go
andrey d864996848
Some checks failed
continuous-integration/drone/push Build is failing
update go mod
2024-01-25 20:08:57 +03:00

24 lines
330 B
Go

package require
import (
"testing"
)
func NoError(t *testing.T, err error, msgAndArgs ...interface{}) {
t.Helper()
if err != nil {
t.Error(msgAndArgs...)
t.FailNow()
}
}
func NoErrorf(t *testing.T, err error, msg string, args ...interface{}) {
t.Helper()
if err != nil {
t.Errorf(msg, args...)
t.FailNow()
}
}