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

Function TestResolveCommand_ArgsPlaceholderEmpty

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

Source from the content-addressed store, hash-verified

186}
187
188func TestResolveCommand_ArgsPlaceholderEmpty(t *testing.T) {
189 t.Parallel()
190
191 rt := &mockRuntime{
192 commands: types.Commands{
193 "run": types.Command{Instruction: `Run command with args: ${args.join(" ")}`},
194 },
195 }
196
197 result := ResolveCommand(t.Context(), rt, "/run")
198 assert.Equal(t, "Run command with args: ", result)
199}
200
201func TestResolveCommand_ArgsPlaceholderWithPositional(t *testing.T) {
202 t.Parallel()

Callers

nothing calls this directly

Calls 2

ResolveCommandFunction · 0.85
ContextMethod · 0.80

Tested by

no test coverage detected