(t *testing.T)
| 97 | } |
| 98 | |
| 99 | func TestClientRawProduceEmptyRecords(t *testing.T) { |
| 100 | client, topic, shutdown := newLocalClientAndTopic() |
| 101 | defer shutdown() |
| 102 | |
| 103 | _, err := client.Produce(context.Background(), &ProduceRequest{ |
| 104 | Topic: topic, |
| 105 | Partition: 0, |
| 106 | RequiredAcks: -1, |
| 107 | Records: NewRecordReader(), |
| 108 | }) |
| 109 | |
| 110 | if err != nil { |
| 111 | t.Fatal(err) |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | func NewRawRecordSet(reader protocol.RecordReader, attr protocol.Attributes) protocol.RawRecordSet { |
| 116 | rs := protocol.RecordSet{Version: 2, Attributes: attr, Records: reader} |
nothing calls this directly
no test coverage detected