(t *testing.T)
| 103 | } |
| 104 | |
| 105 | func TestClientProduceNilRecords(t *testing.T) { |
| 106 | client, topic, shutdown := newLocalClientAndTopic() |
| 107 | defer shutdown() |
| 108 | |
| 109 | _, err := client.Produce(context.Background(), &ProduceRequest{ |
| 110 | Topic: topic, |
| 111 | Partition: 0, |
| 112 | RequiredAcks: -1, |
| 113 | Records: nil, |
| 114 | }) |
| 115 | |
| 116 | if err != nil { |
| 117 | t.Fatal(err) |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | func TestClientProduceEmptyRecords(t *testing.T) { |
| 122 | client, topic, shutdown := newLocalClientAndTopic() |
nothing calls this directly
no test coverage detected