MCPcopy Create free account
hub / github.com/IBM/sarama / TestOffsetCommitRequestV1

Function TestOffsetCommitRequestV1

offset_commit_request_test.go:79–89  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

77}
78
79func TestOffsetCommitRequestV1(t *testing.T) {
80 request := new(OffsetCommitRequest)
81 request.ConsumerGroup = "foobar"
82 request.ConsumerID = "cons"
83 request.ConsumerGroupGeneration = 0x1122
84 request.Version = 1
85 testRequest(t, "no blocks v1", request, offsetCommitRequestNoBlocksV1)
86
87 request.AddBlock("topic", 0x5221, 0xDEADBEEF, ReceiveTime, "metadata")
88 testRequest(t, "one block v1", request, offsetCommitRequestOneBlockV1)
89}
90
91func TestOffsetCommitRequestV2ToV4(t *testing.T) {
92 for version := 2; version <= 4; version++ {

Callers

nothing calls this directly

Calls 2

testRequestFunction · 0.85
AddBlockMethod · 0.45

Tested by

no test coverage detected