(t *testing.T)
| 47 | } |
| 48 | |
| 49 | func 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 | |
| 62 | func TestJoinGroupRequestDeprecatedEncode(t *testing.T) { |
| 63 | request := new(JoinGroupRequest) |
nothing calls this directly
no test coverage detected