update client
This commit is contained in:
@@ -67,8 +67,6 @@ func Time(value string) time.Time {
|
||||
}
|
||||
|
||||
// NewRead test data.
|
||||
//
|
||||
//nolint:cyclop
|
||||
func NewRead(expected any, key ...string) Read {
|
||||
return Read{
|
||||
Key: key,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package require
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -21,3 +22,12 @@ func NoErrorf(t *testing.T, err error, msg string, args ...any) {
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
||||
|
||||
func ErrorIs(t *testing.T, err, ex error, msgAndArgs ...any) {
|
||||
t.Helper()
|
||||
|
||||
if errors.Is(ex, err) {
|
||||
t.Error(msgAndArgs...)
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user