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

Function TestNormalOffsetCommitResponse

offset_commit_response_test.go:111–118  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

109}
110
111func TestNormalOffsetCommitResponse(t *testing.T) {
112 response := OffsetCommitResponse{}
113 response.AddError("t", 0, ErrNotLeaderForPartition)
114 response.Errors["m"] = make(map[int32]KError)
115 // The response encoded form cannot be checked for it varies due to
116 // unpredictable map traversal order.
117 testResponse(t, "normal", &response, nil)
118}
119
120func TestOffsetCommitResponseWithThrottleTime(t *testing.T) {
121 for version := 3; version <= 4; version++ {

Callers

nothing calls this directly

Calls 2

AddErrorMethod · 0.95
testResponseFunction · 0.85

Tested by

no test coverage detected