(t *testing.T)
| 140 | } |
| 141 | |
| 142 | func TestIsEmptyConfig(t *testing.T) { |
| 143 | config := clientcmdapi.NewConfig() |
| 144 | |
| 145 | err := Validate(*config) |
| 146 | if !IsEmptyConfig(err) { |
| 147 | t.Errorf("Expected context not found, but got %v", err) |
| 148 | } |
| 149 | if !IsConfigurationInvalid(err) { |
| 150 | t.Errorf("Expected configuration invalid, but got %v", err) |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | func TestIsConfigurationInvalid(t *testing.T) { |
| 155 | if newErrConfigurationInvalid([]error{}) != nil { |
nothing calls this directly
no test coverage detected