update client

This commit is contained in:
2025-12-26 14:23:54 +03:00
parent f4962e54a3
commit a5659c5d02
75 changed files with 2436 additions and 288 deletions

View File

@@ -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,

View File

@@ -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()
}
}