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

28
test/require/equal.go Normal file
View File

@@ -0,0 +1,28 @@
package require
import (
"reflect"
"testing"
)
func Equal(t *testing.T, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
t.Helper()
if reflect.DeepEqual(expected, actual) {
return
}
t.Error(msgAndArgs...)
t.FailNow()
}
func Equalf(t *testing.T, expected interface{}, actual interface{}, msg string, args ...interface{}) {
t.Helper()
if reflect.DeepEqual(expected, actual) {
return
}
t.Errorf(msg, args...)
t.FailNow()
}