OpenStream calls OpenStreamFunc.
(ctx context.Context, id string)
| 253 | |
| 254 | // OpenStream calls OpenStreamFunc. |
| 255 | func (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: |
nothing calls this directly
no outgoing calls
no test coverage detected