MCPcopy
hub / github.com/segmentio/kafka-go / TestFetchRequest

Function TestFetchRequest

protocol/fetch/fetch_test.go:17–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15)
16
17func TestFetchRequest(t *testing.T) {
18 prototest.TestRequest(t, v0, &fetch.Request{
19 ReplicaID: -1,
20 MaxWaitTime: 500,
21 MinBytes: 1024,
22 Topics: []fetch.RequestTopic{
23 {
24 Topic: "topic-1",
25 Partitions: []fetch.RequestPartition{
26 {
27 Partition: 1,
28 FetchOffset: 2,
29 PartitionMaxBytes: 1024,
30 },
31 },
32 },
33 },
34 })
35}
36
37func TestFetchResponse(t *testing.T) {
38 t0 := time.Now().Truncate(time.Millisecond)

Callers

nothing calls this directly

Calls 1

TestRequestFunction · 0.92

Tested by

no test coverage detected