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

Function TestOffsetCommitRequestV0

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

Source from the content-addressed store, hash-verified

67)
68
69func 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
79func TestOffsetCommitRequestV1(t *testing.T) {
80 request := new(OffsetCommitRequest)

Callers

nothing calls this directly

Calls 2

testRequestFunction · 0.85
AddBlockMethod · 0.45

Tested by

no test coverage detected