(t *testing.T)
| 134 | } |
| 135 | |
| 136 | func TestResolveCommand_PositionalArgs(t *testing.T) { |
| 137 | t.Parallel() |
| 138 | |
| 139 | rt := &mockRuntime{ |
| 140 | commands: types.Commands{ |
| 141 | "fix": types.Command{Instruction: "Fix the file ${args[0]} with options ${args[1]}"}, |
| 142 | }, |
| 143 | } |
| 144 | |
| 145 | result := ResolveCommand(t.Context(), rt, "/fix main.go --verbose") |
| 146 | assert.Equal(t, "Fix the file main.go with options --verbose", result) |
| 147 | } |
| 148 | |
| 149 | func TestResolveCommand_PositionalArgsWithQuotes(t *testing.T) { |
| 150 | t.Parallel() |
nothing calls this directly
no test coverage detected