mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
apimachinery: remove dead code from roundtrip tester
This commit is contained in:
parent
722cb7a758
commit
ce14bdfc7c
@ -277,12 +277,6 @@ func roundTrip(t *testing.T, scheme *runtime.Scheme, codec runtime.Codec, object
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// catch deepcopy errors early
|
|
||||||
if !apiequality.Semantic.DeepEqual(original, object) {
|
|
||||||
t.Errorf("%v: DeepCopy did not lead to equal object, diff: %v", name, diff.ObjectReflectDiff(original, object))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// encode (serialize) the deep copy using the provided codec
|
// encode (serialize) the deep copy using the provided codec
|
||||||
data, err := runtime.Encode(codec, object)
|
data, err := runtime.Encode(codec, object)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user