MCPcopy
hub / github.com/docker/docker-agent / mockRuntime

Struct mockRuntime

pkg/runtime/commands_test.go:19–22  ·  view source on GitHub ↗

mockRuntime implements Runtime interface for testing

Source from the content-addressed store, hash-verified

17
18// mockRuntime implements Runtime interface for testing
19type mockRuntime struct {
20 commands types.Commands
21 tools []tools.Tool
22}
23
24func (m *mockRuntime) CurrentAgentTools(context.Context) ([]tools.Tool, error) {
25 return m.tools, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected