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

Function TestResolveCommand_SimpleCommand

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

Source from the content-addressed store, hash-verified

97}
98
99func TestResolveCommand_SimpleCommand(t *testing.T) {
100 t.Parallel()
101
102 rt := &mockRuntime{
103 commands: types.Commands{
104 "test": types.Command{Instruction: "This is the test instruction"},
105 },
106 }
107
108 result := ResolveCommand(t.Context(), rt, "/test")
109 assert.Equal(t, "This is the test instruction", result)
110}
111
112func TestResolveCommand_CommandNotFound(t *testing.T) {
113 t.Parallel()

Callers

nothing calls this directly

Calls 2

ResolveCommandFunction · 0.85
ContextMethod · 0.80

Tested by

no test coverage detected