Method
Send
modules/frontend/search_handlers_test.go:97–104
· modules/frontend/search_handlers_test.go::mockGRPCStreaming[T].Send
(r T)
Source from the content-addressed store, hash-verified
| 95 | } |
| 96 | |
| 97 | func (m *mockGRPCStreaming[T]) Send(r T) error { |
| 98 | m.lastResponse.Store(&r) |
| 99 | m.responses.Inc() |
| 100 | if m.cb != nil { |
| 101 | m.cb(int(m.responses.Load()), r) |
| 102 | } |
| 103 | return nil |
| 104 | } |
| 105 | |
| 106 | func (m *mockGRPCStreaming[T]) Context() context.Context { return m.ctx } |
| 107 | func (m *mockGRPCStreaming[T]) SendHeader(metadata.MD) error { return nil } |
Callers
nothing calls this directly
Tested by
no test coverage detected