type testKubeConfigSpec … func generateTestKubeConfig(spec testKubeConfigSpec) *clientcmdapi.Config { … } func generateValidKubeConfig() *clientcmdapi.Config { … } func generateMissingCAKubeConfig() *clientcmdapi.Config { … } func generateInvalidFilePathKubeConfig() *clientcmdapi.Config { … } func generateInvalidCAKubeConfig() *clientcmdapi.Config { … } func TestGetJoinCommand(t *testing.T) { … }