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

Function TestClientRawProduceNilRecords

rawproduce_test.go:83–97  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

81}
82
83func TestClientRawProduceNilRecords(t *testing.T) {
84 client, topic, shutdown := newLocalClientAndTopic()
85 defer shutdown()
86
87 _, err := client.RawProduce(context.Background(), &RawProduceRequest{
88 Topic: topic,
89 Partition: 0,
90 RequiredAcks: -1,
91 RawRecords: protocol.RawRecordSet{Reader: nil},
92 })
93
94 if err != nil {
95 t.Fatal(err)
96 }
97}
98
99func TestClientRawProduceEmptyRecords(t *testing.T) {
100 client, topic, shutdown := newLocalClientAndTopic()

Callers

nothing calls this directly

Calls 2

RawProduceMethod · 0.80
newLocalClientAndTopicFunction · 0.70

Tested by

no test coverage detected