mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 17:34:21 +00:00
PR comments
This commit is contained in:
@@ -182,6 +182,10 @@ func TestDeepCopy(t *testing.T) {
|
||||
|
||||
rm2 := rm1.DeepCopy()
|
||||
|
||||
if &rm1 == &rm2 {
|
||||
t.Fatalf("DeepCopy returned a reference to itself instead of a copy")
|
||||
}
|
||||
|
||||
if !reflect.DeepEqual(rm1, rm2) {
|
||||
t.Fatalf("%v doesn't equal it's deep copy %v", rm1, rm2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user