(t *testing.T)
| 106 | } |
| 107 | |
| 108 | func TestValidateEmptyConfig(t *testing.T) { |
| 109 | config := clientcmdapi.NewConfig() |
| 110 | test := configValidationTest{ |
| 111 | config: config, |
| 112 | expectedErrorSubstring: []string{"invalid configuration: no configuration has been provided"}, |
| 113 | } |
| 114 | |
| 115 | test.testConfig(t) |
| 116 | } |
| 117 | |
| 118 | func TestValidateMissingCurrentContextConfig(t *testing.T) { |
| 119 | config := clientcmdapi.NewConfig() |
nothing calls this directly
no test coverage detected