(t *testing.T)
| 67 | ) |
| 68 | |
| 69 | func TestOffsetCommitRequestV0(t *testing.T) { |
| 70 | request := new(OffsetCommitRequest) |
| 71 | request.Version = 0 |
| 72 | request.ConsumerGroup = "foobar" |
| 73 | testRequest(t, "no blocks v0", request, offsetCommitRequestNoBlocksV0) |
| 74 | |
| 75 | request.AddBlock("topic", 0x5221, 0xDEADBEEF, 0, "metadata") |
| 76 | testRequest(t, "one block v0", request, offsetCommitRequestOneBlockV0) |
| 77 | } |
| 78 | |
| 79 | func TestOffsetCommitRequestV1(t *testing.T) { |
| 80 | request := new(OffsetCommitRequest) |
nothing calls this directly
no test coverage detected