(t *testing.T)
| 156 | } |
| 157 | |
| 158 | func Test_FailureToCreateClient(t *testing.T) { |
| 159 | t.Setenv("KUBECONFIG", "/nonexistant") |
| 160 | _, err := createK8SClient() |
| 161 | |
| 162 | assert.EqualError(t, err, "invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable") |
| 163 | } |
| 164 | |
| 165 | func Test_FetchSnapshot(t *testing.T) { |
| 166 | testCases := []struct { |
nothing calls this directly
no test coverage detected