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

Function TestResolveCommand_NotACommand

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

Source from the content-addressed store, hash-verified

121}
122
123func TestResolveCommand_NotACommand(t *testing.T) {
124 t.Parallel()
125
126 rt := &mockRuntime{
127 commands: types.Commands{
128 "test": types.Command{Instruction: "instruction"},
129 },
130 }
131
132 result := ResolveCommand(t.Context(), rt, "regular message")
133 assert.Equal(t, "regular message", result)
134}
135
136func TestResolveCommand_PositionalArgs(t *testing.T) {
137 t.Parallel()

Callers

nothing calls this directly

Calls 2

ResolveCommandFunction · 0.85
ContextMethod · 0.80

Tested by

no test coverage detected