type ruleTest … type tests … func a(group, version, resource, subresource, name string, operation admission.Operation, operationOptions runtime.Object) admission.Attributes { … } func namespacedAttributes(group, version, resource, subresource, name string, operation admission.Operation, operationOptions runtime.Object) admission.Attributes { … } func clusterScopedAttributes(group, version, resource, subresource, name string, operation admission.Operation, operationOptions runtime.Object) admission.Attributes { … } func attrList(a ...admission.Attributes) []admission.Attributes { … } func TestGroup(t *testing.T) { … } func TestVersion(t *testing.T) { … } func TestOperation(t *testing.T) { … } func TestResource(t *testing.T) { … } func TestScope(t *testing.T) { … }