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

Function TestApiversionsResponse

protocol/apiversions/apiversions_test.go:24–59  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22}
23
24func TestApiversionsResponse(t *testing.T) {
25 prototest.TestResponse(t, v0, &apiversions.Response{
26 ErrorCode: 0,
27 ApiKeys: []apiversions.ApiKeyResponse{
28 {
29 ApiKey: 0,
30 MinVersion: 0,
31 MaxVersion: 2,
32 },
33 },
34 })
35
36 prototest.TestResponse(t, v1, &apiversions.Response{
37 ErrorCode: 0,
38 ApiKeys: []apiversions.ApiKeyResponse{
39 {
40 ApiKey: 0,
41 MinVersion: 0,
42 MaxVersion: 2,
43 },
44 },
45 ThrottleTimeMs: 10,
46 })
47
48 prototest.TestResponse(t, v2, &apiversions.Response{
49 ErrorCode: 0,
50 ApiKeys: []apiversions.ApiKeyResponse{
51 {
52 ApiKey: 0,
53 MinVersion: 0,
54 MaxVersion: 2,
55 },
56 },
57 ThrottleTimeMs: 50,
58 })
59}

Callers

nothing calls this directly

Calls 1

TestResponseFunction · 0.92

Tested by

no test coverage detected