(topic string, partition int32, offset int64)
| 330 | } |
| 331 | |
| 332 | func (mfr *MockFetchResponse) SetHighWaterMark(topic string, partition int32, offset int64) *MockFetchResponse { |
| 333 | partitions := mfr.highWaterMarks[topic] |
| 334 | if partitions == nil { |
| 335 | partitions = make(map[int32]int64) |
| 336 | mfr.highWaterMarks[topic] = partitions |
| 337 | } |
| 338 | partitions[partition] = offset |
| 339 | return mfr |
| 340 | } |
| 341 | |
| 342 | func (mfr *MockFetchResponse) For(reqBody versionedDecoder) encoderWithHeader { |
| 343 | fetchRequest := reqBody.(*FetchRequest) |
no outgoing calls