MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestCheckInstalled_notFound

Function TestCheckInstalled_notFound

internal/agent/resolve_test.go:163–173  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

161}
162
163func 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
175func TestCheckInstalled_found(t *testing.T) {
176 // Go test binary is in PATH

Callers

nothing calls this directly

Calls 2

NewCodexProviderFunction · 0.85
CheckInstalledFunction · 0.85

Tested by

no test coverage detected