()
| 9 | ) |
| 10 | |
| 11 | func makeProduceSet() (*asyncProducer, *produceSet) { |
| 12 | conf := NewTestConfig() |
| 13 | txnmgr, _ := newTransactionManager(conf, nil) |
| 14 | parent := &asyncProducer{ |
| 15 | conf: conf, |
| 16 | muter: newPartitionMuter(), |
| 17 | txnmgr: txnmgr, |
| 18 | } |
| 19 | return parent, newProduceSet(parent) |
| 20 | } |
| 21 | |
| 22 | func safeAddMessage(t *testing.T, ps *produceSet, msg *ProducerMessage) { |
| 23 | if err := ps.add(msg); err != nil { |
no test coverage detected