(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestCredentialsGetWithError(t *testing.T) { |
| 71 | c := New(&credProvider{err: errors.New("Custom error")}) |
| 72 | |
| 73 | _, err := c.GetWithContext(defaultCredContext) |
| 74 | if err != nil { |
| 75 | if err.Error() != "Custom error" { |
| 76 | t.Errorf("Expected \"Custom error\", got %s", err.Error()) |
| 77 | } |
| 78 | } |
| 79 | } |
nothing calls this directly
no test coverage detected