MCPcopy
hub / github.com/segmentio/kafka-go / TestClientProduceEmptyRecords

Function TestClientProduceEmptyRecords

produce_test.go:121–135  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

119}
120
121func TestClientProduceEmptyRecords(t *testing.T) {
122 client, topic, shutdown := newLocalClientAndTopic()
123 defer shutdown()
124
125 _, err := client.Produce(context.Background(), &ProduceRequest{
126 Topic: topic,
127 Partition: 0,
128 RequiredAcks: -1,
129 Records: NewRecordReader(),
130 })
131
132 if err != nil {
133 t.Fatal(err)
134 }
135}

Callers

nothing calls this directly

Calls 3

ProduceMethod · 0.80
newLocalClientAndTopicFunction · 0.70
NewRecordReaderFunction · 0.70

Tested by

no test coverage detected