type testObject … func (d *testObject) GetObjectKind() schema.ObjectKind { … } func (d *testObject) SetGroupVersionKind(gvk schema.GroupVersionKind) { … } func (d *testObject) GroupVersionKind() schema.GroupVersionKind { … } func (d *testObject) DeepCopyObject() runtime.Object { … } type testMarshalable … func (d *testMarshalable) Marshal() ([]byte, error) { … } func (d *testMarshalable) DeepCopyObject() runtime.Object { … } type testBufferedMarshalable … func (d *testBufferedMarshalable) Marshal() ([]byte, error) { … } func (d *testBufferedMarshalable) MarshalTo(data []byte) (int, error) { … } func (d *testBufferedMarshalable) Size() int { … } func (d *testBufferedMarshalable) DeepCopyObject() runtime.Object { … } func TestRecognize(t *testing.T) { … } func TestEncode(t *testing.T) { … } func TestProtobufDecode(t *testing.T) { … } func TestDecodeObjects(t *testing.T) { … }