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) { … } // TestApplyStatus makes sure that applying the status works for all known types. func TestApplyStatusWithCBOR(t *testing.T) { … } func testApplyStatus(t *testing.T, reconfigureClient func(testing.TB, *rest.Config)) { … } func findManager(managedFields []metav1.ManagedFieldsEntry, manager string) bool { … }