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

Function TestElectLeadersRequest

protocol/electleaders/electleaders_test.go:15–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func TestElectLeadersRequest(t *testing.T) {
16 prototest.TestRequest(t, v0, &electleaders.Request{
17 TimeoutMs: 500,
18 TopicPartitions: []electleaders.RequestTopicPartitions{
19 {
20 Topic: "foo",
21 PartitionIDs: []int32{100, 101, 102},
22 },
23 },
24 })
25
26 prototest.TestRequest(t, v1, &electleaders.Request{
27 ElectionType: 1,
28 TimeoutMs: 500,
29 TopicPartitions: []electleaders.RequestTopicPartitions{
30 {
31 Topic: "foo",
32 PartitionIDs: []int32{100, 101, 102},
33 },
34 },
35 })
36}
37
38func TestElectLeadersResponse(t *testing.T) {
39 prototest.TestResponse(t, v0, &electleaders.Response{

Callers

nothing calls this directly

Calls 1

TestRequestFunction · 0.92

Tested by

no test coverage detected