MCPcopy
hub / github.com/IBM/sarama / makeProduceSet

Function makeProduceSet

produce_set_test.go:11–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func 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
22func safeAddMessage(t *testing.T, ps *produceSet, msg *ProducerMessage) {
23 if err := ps.add(msg); err != nil {

Calls 4

newTransactionManagerFunction · 0.85
newPartitionMuterFunction · 0.85
newProduceSetFunction · 0.85
NewTestConfigFunction · 0.70

Tested by

no test coverage detected