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

Function TestCursorProvider_InteractiveCommand

internal/agent/cursor_test.go:60–69  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

58}
59
60func TestCursorProvider_InteractiveCommand(t *testing.T) {
61 p := NewCursorProvider("/bin/agent")
62 cmd := p.InteractiveCommand("/work", "my prompt")
63 if cmd.Dir != "/work" {
64 t.Errorf("InteractiveCommand Dir = %q, want /work", cmd.Dir)
65 }
66 if len(cmd.Args) != 2 || cmd.Args[0] != "/bin/agent" || cmd.Args[1] != "my prompt" {
67 t.Errorf("InteractiveCommand Args = %v, want [/bin/agent my prompt]", cmd.Args)
68 }
69}
70
71func TestCursorProvider_ParseLine(t *testing.T) {
72 p := NewCursorProvider("")

Callers

nothing calls this directly

Calls 2

InteractiveCommandMethod · 0.95
NewCursorProviderFunction · 0.85

Tested by

no test coverage detected