func testKubeProxyConfigMap(contents string) *v1.ConfigMap { … } func TestKubeProxyDefault(t *testing.T) { … } // runKubeProxyFromTest holds common test case data and evaluation code for kubeProxyHandler.From* functions func runKubeProxyFromTest(t *testing.T, perform func(gvk schema.GroupVersionKind, yaml string) (kubeadmapi.ComponentConfig, error)) { … } func TestKubeProxyFromDocumentMap(t *testing.T) { … } func TestKubeProxyFromCluster(t *testing.T) { … }