| 13 | ) |
| 14 | |
| 15 | type MockReporter struct { |
| 16 | err error |
| 17 | batchesEmitted []*thrift.Batch |
| 18 | // We need the lock to control concurrent accesses to batchesEmitted |
| 19 | m sync.Mutex |
| 20 | } |
| 21 | |
| 22 | func (r *MockReporter) EmitBatch(_ context.Context, b *thrift.Batch) error { |
| 23 | if r.err == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected