(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func testWriteListOffsetRequestV1(t *testing.T) { |
| 87 | const time = -1 |
| 88 | testWriteOptimization(t, |
| 89 | requestHeader{ |
| 90 | ApiKey: int16(listOffsets), |
| 91 | ApiVersion: int16(v1), |
| 92 | CorrelationID: testCorrelationID, |
| 93 | ClientID: testClientID, |
| 94 | }, |
| 95 | listOffsetRequestV1{ |
| 96 | ReplicaID: -1, |
| 97 | Topics: []listOffsetRequestTopicV1{{ |
| 98 | TopicName: testTopic, |
| 99 | Partitions: []listOffsetRequestPartitionV1{{ |
| 100 | Partition: testPartition, |
| 101 | Time: time, |
| 102 | }}, |
| 103 | }}, |
| 104 | }, |
| 105 | func(w *writeBuffer) { |
| 106 | w.writeListOffsetRequestV1(testCorrelationID, testClientID, testTopic, testPartition, time) |
| 107 | }, |
| 108 | ) |
| 109 | } |
| 110 | |
| 111 | func testWriteProduceRequestV2(t *testing.T) { |
| 112 | key := []byte(nil) |
nothing calls this directly
no test coverage detected