1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-24 08:36:46 +00:00

chore: remove unused code (#12325)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2025-03-07 11:21:49 +01:00 committed by GitHub
parent f8441701e3
commit c55354d5a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 12 deletions

View file

@ -30,12 +30,3 @@ func ConvertObjectToUnstructured(obj any) (*unstructured.Unstructured, error) {
}
return &unstructured.Unstructured{Object: ret}, nil
}
func ConvertBytesToUnstructuredList(b []byte) (*unstructured.UnstructuredList, error) {
list := &unstructured.UnstructuredList{}
err := list.UnmarshalJSON(b)
if err != nil {
return nil, err
}
return list, nil
}

View file

@ -78,9 +78,7 @@ func TestConvertObjectToUnstructured(t *testing.T) {
"status": map[string]any{},
},
},
},
// TODO: Add test cases.
}
}}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got, err := ConvertObjectToUnstructured(tt.obj)