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

Struct mockRuntime

pkg/cli/runner_test.go:24–31  ·  view source on GitHub ↗

mockRuntime implements runtime.Runtime for testing the CLI runner. It emits pre-configured events from RunStream and records Resume calls.

Source from the content-addressed store, hash-verified

22// mockRuntime implements runtime.Runtime for testing the CLI runner.
23// It emits pre-configured events from RunStream and records Resume calls.
24type mockRuntime struct {
25 events []runtime.Event
26
27 mu sync.Mutex
28 resumes []runtime.ResumeRequest
29 elicitationDeclines int
30 elicitationLastAction tools.ElicitationAction
31}
32
33// mockRuntimeWithOverrides extends mockRuntime to allow method overriding for testing
34type mockRuntimeWithOverrides struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected