type mockCodecs … type mockCodec … func (p mockCodec) Encode(obj runtime.Object, w io.Writer) error { … } func (s *mockCodecs) EncoderForVersion(encoder runtime.Encoder, gv runtime.GroupVersioner) runtime.Encoder { … } func TestDeleteResourceAuditLogRequestObject(t *testing.T) { … } func TestDeleteCollection(t *testing.T) { … } func TestDeleteCollectionWithNoContextDeadlineEnforced(t *testing.T) { … } type fakeCollectionDeleterFunc … func (f fakeCollectionDeleterFunc) DeleteCollection(ctx context.Context, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions, listOptions *metainternalversion.ListOptions) (runtime.Object, error) { … } type fakeSerializer … func (n *fakeSerializer) SupportedMediaTypes() []runtime.SerializerInfo { … } func (n *fakeSerializer) EncoderForVersion(serializer runtime.Encoder, gv runtime.GroupVersioner) runtime.Encoder { … } func (n *fakeSerializer) DecoderToVersion(serializer runtime.Decoder, gv runtime.GroupVersioner) runtime.Decoder { … }