(t *testing.T)
| 118 | } |
| 119 | |
| 120 | func 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 | } |
nothing calls this directly
no test coverage detected