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

Function TestOffsetCommitResponseWithThrottleTime

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

Source from the content-addressed store, hash-verified

118}
119
120func TestOffsetCommitResponseWithThrottleTime(t *testing.T) {
121 for version := 3; version <= 4; version++ {
122 response := OffsetCommitResponse{
123 Version: int16(version),
124 ThrottleTimeMs: 123,
125 }
126 response.AddError("t", 0, ErrNotLeaderForPartition)
127 response.Errors["m"] = make(map[int32]KError)
128 // The response encoded form cannot be checked for it varies due to
129 // unpredictable map traversal order.
130 testResponse(t, fmt.Sprintf("v%d with throttle time", version), &response, nil)
131 }
132}

Callers

nothing calls this directly

Calls 2

AddErrorMethod · 0.95
testResponseFunction · 0.85

Tested by

no test coverage detected