(t *testing.T)
| 127 | } |
| 128 | |
| 129 | func TestIsContextNotFound(t *testing.T) { |
| 130 | config := clientcmdapi.NewConfig() |
| 131 | config.CurrentContext = "anything" |
| 132 | |
| 133 | err := Validate(*config) |
| 134 | if !IsContextNotFound(err) { |
| 135 | t.Errorf("Expected context not found, but got %v", err) |
| 136 | } |
| 137 | if !IsConfigurationInvalid(err) { |
| 138 | t.Errorf("Expected configuration invalid, but got %v", err) |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | func TestIsEmptyConfig(t *testing.T) { |
| 143 | config := clientcmdapi.NewConfig() |
nothing calls this directly
no test coverage detected