MCPcopy Index your code
hub / github.com/docker/docker-agent / TestResolveCommand_PositionalArgs

Function TestResolveCommand_PositionalArgs

pkg/runtime/commands_test.go:136–147  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

134}
135
136func 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
149func TestResolveCommand_PositionalArgsWithQuotes(t *testing.T) {
150 t.Parallel()

Callers

nothing calls this directly

Calls 2

ResolveCommandFunction · 0.85
ContextMethod · 0.80

Tested by

no test coverage detected