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

Function safeAddMessage

produce_set_test.go:22–26  ·  view source on GitHub ↗
(t *testing.T, ps *produceSet, msg *ProducerMessage)

Source from the content-addressed store, hash-verified

20}
21
22func safeAddMessage(t *testing.T, ps *produceSet, msg *ProducerMessage) {
23 if err := ps.add(msg); err != nil {
24 t.Error(err)
25 }
26}
27
28func TestProduceSetInitial(t *testing.T) {
29 _, ps := makeProduceSet()

Calls 2

addMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected