(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func 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 | |
| 99 | func TestClientRawProduceEmptyRecords(t *testing.T) { |
| 100 | client, topic, shutdown := newLocalClientAndTopic() |
nothing calls this directly
no test coverage detected