func buildUnstructuredDecodable(gvk schema.GroupVersionKind) runtime.Object { … } func buildUnstructuredListDecodable(gvk schema.GroupVersionKind) runtime.Object { … } func TestEncodeUnstructured(t *testing.T) { … } type errNotRecognizedGVK … func (e errNotRecognizedGVK) Error() string { … } type mockUnstructuredNopConvertor … func (c *mockUnstructuredNopConvertor) recognizeGVK(gvkToCheck schema.GroupVersionKind) error { … } func (c *mockUnstructuredNopConvertor) Convert(in, out, context interface{ … } func (c *mockUnstructuredNopConvertor) ConvertToVersion(in runtime.Object, outVersion runtime.GroupVersioner) (runtime.Object, error) { … } func (c *mockUnstructuredNopConvertor) ConvertFieldLabel(gvk schema.GroupVersionKind, label, value string) (string, string, error) { … } func TestDecodeUnstructured(t *testing.T) { … }