func TestValidateDuplicateLabelsFailCases(t *testing.T) { … } func TestValidateDuplicateLabelsPassCases(t *testing.T) { … } type AlwaysInvalidSchema … // ValidateBytes always fails to validate. func (AlwaysInvalidSchema) ValidateBytes([]byte) error { … } func TestConjunctiveSchema(t *testing.T) { … } type mockVerifier … func (v *mockVerifier) HasSupport(gvk schema.GroupVersionKind) error { … } // TestParamVerifyingSchema tests that client-side schema validation // should be bypassed (and therefore validation succeeds) in all cases // except when the field validation is "Strict" and server-side validation is // unsupported. func TestParamVerifyingSchema(t *testing.T) { … }