func gv(group, version string) schema.GroupVersion { … } func gvk(group, version, kind string) schema.GroupVersionKind { … } func gk(group, kind string) schema.GroupKind { … } func TestCoercingMultiGroupVersioner(t *testing.T) { … } type mockEncoder … func (m *mockEncoder) Encode(obj runtime.Object, w io.Writer) error { … } func (m *mockEncoder) Identifier() runtime.Identifier { … } func TestCacheableObject(t *testing.T) { … }