- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for assertIdenticalError (0.44 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode_test.go
into: struct{}{}, assertOnError: assertIdenticalError(&cbor.DupMapKeyError{Key: int64(-1), Index: 1}), }, { name: "reject duplicate negative int keys into map", in: hex("a220012002"), // {-1: 1, -1: 2} into: map[int64]interface{}{}, assertOnError: assertIdenticalError(&cbor.DupMapKeyError{Key: int64(-1), Index: 1}), }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 18:43:10 UTC 2024 - 25.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/modes_test.go
if got == nil { t.Error("expected non-nil error") return } if got.Error() != want { t.Errorf("got error %q, want %q", got.Error(), want) } } } func assertIdenticalError[E error](expected E) func(*testing.T, error) { return assertOnConcreteError(func(t *testing.T, actual E) { if diff := cmp.Diff(expected, actual); diff != "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 18:43:10 UTC 2024 - 2K bytes - Viewed (0)