- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for DeepEqualWithNilDifferentFromEmpty (0.73 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/equality.go
// this check fails, the if statement will short circuit. If the check // succeeds the slow path is taken which compares entire objects. if !equalities.DeepEqualWithNilDifferentFromEmpty(oldManagedFields, newManagedFields) { return newObj, nil } if equalities.DeepEqualWithNilDifferentFromEmpty(newObj, oldObj) { // Remove any changed timestamps, so that timestamp is not the only // change seen by etcd. //
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 28 14:56:34 UTC 2022 - 5.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal_test.go
t.Errorf("Expected (%+v == %+v) == %v, but got %v", item.a, item.b, e, a) } } for _, item := range implicitTable { if e, a := !item.equal, e.DeepEqualWithNilDifferentFromEmpty(item.a, item.b); e != a { t.Errorf("Expected (%+v == %+v) == %v, but got %v", item.a, item.b, e, a) } } } func TestDerivatives(t *testing.T) { e := Equalities{} type Bar struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 14 18:55:26 UTC 2022 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/third_party/forked/golang/reflect/deep_equal.go
// function for these types. func (e Equalities) DeepEqual(a1, a2 interface{}) bool { return e.deepEqual(a1, a2, true) } func (e Equalities) DeepEqualWithNilDifferentFromEmpty(a1, a2 interface{}) bool { return e.deepEqual(a1, a2, false) } func (e Equalities) deepEqual(a1, a2 interface{}, equateNilAndEmpty bool) bool { if a1 == nil || a2 == nil { return a1 == a2 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 20 17:18:42 UTC 2022 - 10.8K bytes - Viewed (0)