func testKubeletConfigMap(contents string) *v1.ConfigMap { … } func TestKubeletDefault(t *testing.T) { … } // runKubeletFromTest holds common test case data and evaluation code for kubeletHandler.From* functions func runKubeletFromTest(t *testing.T, perform func(gvk schema.GroupVersionKind, yaml string) (kubeadmapi.ComponentConfig, error)) { … } func TestKubeletFromDocumentMap(t *testing.T) { … } func TestKubeletFromCluster(t *testing.T) { … }