(t *testing.T)
| 137 | } |
| 138 | |
| 139 | func TestResolve_cursor(t *testing.T) { |
| 140 | got := mustResolve(t, "cursor", "", nil) |
| 141 | if got.Name() != "Cursor" { |
| 142 | t.Errorf("Resolve(cursor) name = %q, want Cursor", got.Name()) |
| 143 | } |
| 144 | if got.CLIPath() != "agent" { |
| 145 | t.Errorf("Resolve(cursor) CLIPath = %q, want agent", got.CLIPath()) |
| 146 | } |
| 147 | got = mustResolve(t, "cursor", "/usr/local/bin/agent", nil) |
| 148 | if got.CLIPath() != "/usr/local/bin/agent" { |
| 149 | t.Errorf("Resolve(cursor, path) CLIPath = %q, want /usr/local/bin/agent", got.CLIPath()) |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | func TestResolve_unknownProvider(t *testing.T) { |
| 154 | _, err := Resolve("typo", "", nil) |
nothing calls this directly
no test coverage detected