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

Struct fakeStream

pkg/telemetry/genai/genai_test.go:69–73  ·  view source on GitHub ↗

fakeStream produces a fixed sequence of chunks then EOF.

Source from the content-addressed store, hash-verified

67
68// fakeStream produces a fixed sequence of chunks then EOF.
69type fakeStream struct {
70 chunks []chat.MessageStreamResponse
71 idx int
72 closed bool
73}
74
75func (f *fakeStream) Recv() (chat.MessageStreamResponse, error) {
76 if f.idx >= len(f.chunks) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected