MCPcopy Create free account
hub / github.com/cli/cli / OpenStream

Method OpenStream

pkg/cmd/event/client/client_mock.go:255–270  ·  view source on GitHub ↗

OpenStream calls OpenStreamFunc.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

253
254// OpenStream calls OpenStreamFunc.
255func (mock *EventClientMock) OpenStream(ctx context.Context, id string) (io.ReadCloser, error) {
256 if mock.OpenStreamFunc == nil {
257 panic("EventClientMock.OpenStreamFunc: method is nil but EventClient.OpenStream was just called")
258 }
259 callInfo := struct {
260 Ctx context.Context
261 ID string
262 }{
263 Ctx: ctx,
264 ID: id,
265 }
266 mock.lockOpenStream.Lock()
267 mock.calls.OpenStream = append(mock.calls.OpenStream, callInfo)
268 mock.lockOpenStream.Unlock()
269 return mock.OpenStreamFunc(ctx, id)
270}
271
272// OpenStreamCalls gets all the calls that were made to OpenStream.
273// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected