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

Function TestCodexProvider_InteractiveCommand

internal/agent/codex_test.go:62–77  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

60}
61
62func TestCodexProvider_InteractiveCommand(t *testing.T) {
63 p := NewCodexProvider("codex")
64 cmd := p.InteractiveCommand("/work", "my prompt")
65 if cmd.Dir != "/work" {
66 t.Errorf("InteractiveCommand Dir = %q, want /work", cmd.Dir)
67 }
68 wantInteractiveArgs := []string{"codex", "my prompt"}
69 if len(cmd.Args) != len(wantInteractiveArgs) {
70 t.Fatalf("InteractiveCommand Args len = %d, want %d: %v", len(cmd.Args), len(wantInteractiveArgs), cmd.Args)
71 }
72 for i, w := range wantInteractiveArgs {
73 if cmd.Args[i] != w {
74 t.Errorf("InteractiveCommand Args[%d] = %q, want %q", i, cmd.Args[i], w)
75 }
76 }
77}
78
79func TestCodexProvider_ParseLine(t *testing.T) {
80 p := NewCodexProvider("")

Callers

nothing calls this directly

Calls 2

InteractiveCommandMethod · 0.95
NewCodexProviderFunction · 0.85

Tested by

no test coverage detected