func makeGVR(group, version, resource string) schema.GroupVersionResource { … } func makeGVK(group, version, kind string) schema.GroupVersionKind { … } func TestMain(m *testing.M) { … } func TestScaleSubresources(t *testing.T) { … } var replicas … var podStub … var rcStub … var rsStub … var deploymentStub … var ssStub … func setupWithOptions(t *testing.T, instanceOptions *apitesting.TestServerInstanceOptions, flags []string) (client kubernetes.Interface, tearDown func()) { … }