update go mod
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-01-25 20:08:57 +03:00
parent e2a2db01bb
commit d864996848
9 changed files with 89 additions and 65 deletions

23
test/require/error.go Normal file
View File

@@ -0,0 +1,23 @@
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()
}
}