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

Function TestResolveCommand_CommandNotFound

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

Source from the content-addressed store, hash-verified

110}
111
112func TestResolveCommand_CommandNotFound(t *testing.T) {
113 t.Parallel()
114
115 rt := &mockRuntime{
116 commands: types.Commands{},
117 }
118
119 result := ResolveCommand(t.Context(), rt, "/unknown")
120 assert.Equal(t, "/unknown", result)
121}
122
123func TestResolveCommand_NotACommand(t *testing.T) {
124 t.Parallel()

Callers

nothing calls this directly

Calls 2

ResolveCommandFunction · 0.85
ContextMethod · 0.80

Tested by

no test coverage detected