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

Function TestResolveCommand_AllArgs

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

Source from the content-addressed store, hash-verified

160}
161
162func TestResolveCommand_AllArgs(t *testing.T) {
163 t.Parallel()
164
165 rt := &mockRuntime{
166 commands: types.Commands{
167 "run": types.Command{Instruction: `Run command with args: ${args.join(" ")}`},
168 },
169 }
170
171 result := ResolveCommand(t.Context(), rt, "/run arg1 arg2 arg3")
172 assert.Equal(t, "Run command with args: arg1 arg2 arg3", result)
173}
174
175func TestResolveCommand_ArgsPlaceholder(t *testing.T) {
176 t.Parallel()

Callers

nothing calls this directly

Calls 2

ResolveCommandFunction · 0.85
ContextMethod · 0.80

Tested by

no test coverage detected