(t *testing.T)
| 646 | } |
| 647 | |
| 648 | func TestLookupCommand_AgentTarget(t *testing.T) { |
| 649 | t.Parallel() |
| 650 | |
| 651 | rt := &mockRuntime{ |
| 652 | commands: types.Commands{ |
| 653 | "plan": types.Command{ |
| 654 | Description: "Hand off to the planner", |
| 655 | Agent: "planner", |
| 656 | }, |
| 657 | }, |
| 658 | } |
| 659 | |
| 660 | cmd, rest, ok := LookupCommand(t.Context(), rt, "/plan add a logout button") |
| 661 | assert.True(t, ok) |
| 662 | assert.Equal(t, "planner", cmd.Agent) |
| 663 | assert.Empty(t, cmd.Instruction) |
| 664 | assert.Equal(t, "add a logout button", rest) |
| 665 | } |
| 666 | |
| 667 | func TestLookupCommand_URLTarget(t *testing.T) { |
| 668 | t.Parallel() |
nothing calls this directly
no test coverage detected