const testNamespace … var statusData … const statusDefault … func gvr(g, v, r string) schema.GroupVersionResource { … } func createMapping(groupVersion string, resource metav1.APIResource) (*meta.RESTMapping, error) { … } // TestApplyStatus makes sure that applying the status works for all known types. func TestApplyStatus(t *testing.T) { … } func findManager(managedFields []metav1.ManagedFieldsEntry, manager string) bool { … }