func TestRecognizesData(t *testing.T) { … }
type stubWriter …
func (w stubWriter) Write([]byte) (int, error) { … }
type anyObject …
func (p anyObject) GetObjectKind() schema.ObjectKind { … }
func (anyObject) DeepCopyObject() runtime.Object { … }
func (p anyObject) MarshalCBOR() ([]byte, error) { … }
func (p *anyObject) UnmarshalCBOR(in []byte) error { … }
type structWithRawFields …
func (structWithRawFields) GetObjectKind() schema.ObjectKind { … }
func (structWithRawFields) DeepCopyObject() runtime.Object { … }
type structWithEmbeddedMetas …
func (structWithEmbeddedMetas) DeepCopyObject() runtime.Object { … }
func TestEncode(t *testing.T) { … }
func TestDecode(t *testing.T) { … }
type textMarshalerObject …
func (p textMarshalerObject) GetObjectKind() schema.ObjectKind { … }
func (textMarshalerObject) DeepCopyObject() runtime.Object { … }
func (textMarshalerObject) MarshalText() ([]byte, error) { … }
func TestMetaFactoryInterpret(t *testing.T) { … }
type stubTyper …
func (t stubTyper) ObjectKinds(obj runtime.Object) ([]schema.GroupVersionKind, bool, error) { … }
func (stubTyper) Recognizes(schema.GroupVersionKind) bool { … }
type stubCreater …
func (c stubCreater) New(gvk schema.GroupVersionKind) (runtime.Object, error) { … }
type notRegisteredTyper …
func (notRegisteredTyper) ObjectKinds(obj runtime.Object) ([]schema.GroupVersionKind, bool, error) { … }
func (notRegisteredTyper) Recognizes(schema.GroupVersionKind) bool { … }
type stubMetaFactory …
func (mf stubMetaFactory) Interpret([]byte) (*schema.GroupVersionKind, error) { … }
type oneMapField …
func (o oneMapField) DeepCopyObject() runtime.Object { … }
func (o oneMapField) GetObjectKind() schema.ObjectKind { … }
type eightStringFields …
func (o eightStringFields) DeepCopyObject() runtime.Object { … }
func (o eightStringFields) GetObjectKind() schema.ObjectKind { … }
func TestEncodeNondeterministic(t *testing.T) { … }