- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestTimeEqual (0.1 sec)
-
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go
t.Fatalf("Failed to unmarshal output: '%v': %v", input, err) } if !reflect.DeepEqual(input, time) { t.Errorf("Marshal->Unmarshal is not idempotent: '%v' vs '%v'", input, time) } } } func TestTimeEqual(t *testing.T) { t1 := NewTime(time.Now()) cases := []struct { name string x *Time y *Time result bool }{ {"nil =? nil", nil, nil, true}, {"!nil =? !nil", &t1, &t1, true},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 9.4K bytes - Viewed (0)