(t *testing.T)
| 161 | } |
| 162 | |
| 163 | func TestCheckInstalled_notFound(t *testing.T) { |
| 164 | // Use a path that does not exist |
| 165 | p := NewCodexProvider("/nonexistent/codex-binary-that-does-not-exist") |
| 166 | err := CheckInstalled(p) |
| 167 | if err == nil { |
| 168 | t.Error("CheckInstalled(nonexistent) expected error, got nil") |
| 169 | } |
| 170 | if err != nil && !strings.Contains(err.Error(), "Codex") { |
| 171 | t.Errorf("CheckInstalled error should mention Codex: %v", err) |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | func TestCheckInstalled_found(t *testing.T) { |
| 176 | // Go test binary is in PATH |
nothing calls this directly
no test coverage detected