(t *testing.T)
| 151 | } |
| 152 | |
| 153 | func TestResolve_unknownProvider(t *testing.T) { |
| 154 | _, err := Resolve("typo", "", nil) |
| 155 | if err == nil { |
| 156 | t.Fatal("Resolve(typo) expected error, got nil") |
| 157 | } |
| 158 | if !strings.Contains(err.Error(), "typo") { |
| 159 | t.Errorf("error should mention the bad provider name: %v", err) |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | func TestCheckInstalled_notFound(t *testing.T) { |
| 164 | // Use a path that does not exist |