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

Struct mockStream

pkg/sessiontitle/generator_test.go:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43type mockStream struct {
44 responses []chat.MessageStreamResponse
45 i int
46
47 errAt int
48 err error
49}
50
51func (s *mockStream) Recv() (chat.MessageStreamResponse, error) {
52 if s.errAt >= 0 && s.i == s.errAt {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected