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

Struct mockStream

pkg/runtime/runtime_test.go:99–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97func (b *blockingStartToolSet) Tools(context.Context) ([]tools.Tool, error) { return nil, nil }
98
99type mockStream struct {
100 responses []chat.MessageStreamResponse
101 idx int
102 closed bool
103}
104
105func (m *mockStream) Recv() (chat.MessageStreamResponse, error) {
106 if m.idx >= len(m.responses) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected