kubernetes/staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_test.go

type testDecodable

func (d *testDecodable) GetObjectKind() schema.ObjectKind                {}

func (d *testDecodable) SetGroupVersionKind(gvk schema.GroupVersionKind) {}

func (d *testDecodable) GroupVersionKind() schema.GroupVersionKind       {}

func (d *testDecodable) DeepCopyObject() runtime.Object {}

type testNestedDecodable

func (d *testNestedDecodable) GetObjectKind() schema.ObjectKind                {}

func (d *testNestedDecodable) SetGroupVersionKind(gvk schema.GroupVersionKind) {}

func (d *testNestedDecodable) GroupVersionKind() schema.GroupVersionKind       {}

func (d *testNestedDecodable) DeepCopyObject() runtime.Object {}

func (d *testNestedDecodable) EncodeNestedObjects(e runtime.Encoder) error {}

func (d *testNestedDecodable) DecodeNestedObjects(_ runtime.Decoder) error {}

func TestNestedDecode(t *testing.T) {}

func TestNestedDecodeStrictDecodingError(t *testing.T) {}

func TestNestedEncode(t *testing.T) {}

func TestNestedEncodeError(t *testing.T) {}

func TestDecode(t *testing.T) {}

type checkConvertor

func (c *checkConvertor) Convert(in, out, context interface{}

func (c *checkConvertor) ConvertToVersion(in runtime.Object, outVersion runtime.GroupVersioner) (out runtime.Object, err error) {}

func (c *checkConvertor) ConvertFieldLabel(gvk schema.GroupVersionKind, label, value string) (string, string, error) {}

type mockConvertor

func (c *mockConvertor) Convert(in, out, context interface{}

func (c *mockConvertor) ConvertToVersion(in runtime.Object, outVersion runtime.GroupVersioner) (out runtime.Object, err error) {}

func (c *mockConvertor) ConvertFieldLabel(gvk schema.GroupVersionKind, label, value string) (string, string, error) {}

type mockSerializer

func (s *mockSerializer) Decode(data []byte, defaults *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) {}

func (s *mockSerializer) Encode(obj runtime.Object, w io.Writer) error {}

func (s *mockSerializer) Identifier() runtime.Identifier {}

type mockTyper

func (t *mockTyper) ObjectKinds(obj runtime.Object) ([]schema.GroupVersionKind, bool, error) {}

func (t *mockTyper) Recognizes(_ schema.GroupVersionKind) bool {}

func TestDirectCodecEncode(t *testing.T) {}

func TestCacheableObject(t *testing.T) {}

func BenchmarkIdentifier(b *testing.B) {}