(t *testing.T)
| 60 | } |
| 61 | |
| 62 | func 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 | |
| 79 | func TestCodexProvider_ParseLine(t *testing.T) { |
| 80 | p := NewCodexProvider("") |
nothing calls this directly
no test coverage detected