- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for expectNoDiff (0.17 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go
} return } if err != nil { t.Fatalf("Get failed: %v", err) } if tt.expectedAlternatives == nil { expectNoDiff(t, fmt.Sprintf("%s: incorrect pod", tt.name), tt.expectedOut, out) } else { ExpectContains(t, fmt.Sprintf("%s: incorrect pod", tt.name), toInterfaceSlice(tt.expectedAlternatives), out) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 12:45:33 UTC 2024 - 91.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/testing/utils.go
} setOutput := &example.Pod{} if err := store.Create(ctx, key, obj, setOutput, 0); err != nil { t.Fatalf("Set failed: %v", err) } return key, setOutput } func expectNoDiff(t *testing.T, msg string, expected, actual interface{}) { t.Helper() if !reflect.DeepEqual(expected, actual) { if diff := cmp.Diff(expected, actual); diff != "" { t.Errorf("%s: %s", msg, diff) } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 22 07:26:55 UTC 2024 - 10.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go
Status: metav1.StatusFailure, Code: http.StatusInternalServerError, Reason: metav1.StatusReasonInternalError, } testCheckResultFunc(t, tooOldWatcher, func(actualEvent watch.Event) { expectNoDiff(t, "incorrect event type", watch.Error, actualEvent.Type) if !apiequality.Semantic.DeepDerivative(&expiredError, actualEvent.Object) && !apiequality.Semantic.DeepDerivative(&internalError, actualEvent.Object) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 63.8K bytes - Viewed (0)