MCPcopy
hub / github.com/IBM/sarama / TestJoinGroupRequestV0_OneProtocol

Function TestJoinGroupRequestV0_OneProtocol

join_group_request_test.go:49–60  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47}
48
49func TestJoinGroupRequestV0_OneProtocol(t *testing.T) {
50 request := new(JoinGroupRequest)
51 request.GroupId = "TestGroup"
52 request.SessionTimeout = 100
53 request.MemberId = "OneProtocol"
54 request.ProtocolType = "consumer"
55 request.AddGroupProtocol("one", []byte{0x01, 0x02, 0x03})
56 packet := testRequestEncode(t, "V0: one protocol", request, joinGroupRequestV0_OneProtocol)
57 request.GroupProtocols = make(map[string][]byte)
58 request.GroupProtocols["one"] = []byte{0x01, 0x02, 0x03}
59 testRequestDecode(t, "V0: one protocol", request, packet)
60}
61
62func TestJoinGroupRequestDeprecatedEncode(t *testing.T) {
63 request := new(JoinGroupRequest)

Callers

nothing calls this directly

Calls 3

testRequestEncodeFunction · 0.85
testRequestDecodeFunction · 0.85
AddGroupProtocolMethod · 0.80

Tested by

no test coverage detected