(t *testing.T)
| 41 | ) |
| 42 | |
| 43 | func TestEmptyOffsetCommitResponse(t *testing.T) { |
| 44 | // groupInstanceId := "gid" |
| 45 | tests := []struct { |
| 46 | CaseName string |
| 47 | Version int16 |
| 48 | MessageBytes []byte |
| 49 | Message *OffsetCommitResponse |
| 50 | }{ |
| 51 | { |
| 52 | "v0-empty", |
| 53 | 0, |
| 54 | emptyOffsetCommitResponseV0, |
| 55 | &OffsetCommitResponse{ |
| 56 | Version: 0, |
| 57 | }, |
| 58 | }, |
| 59 | { |
| 60 | "v0-two-partition", |
| 61 | 0, |
| 62 | noEmptyOffsetCommitResponseV0, |
| 63 | &OffsetCommitResponse{ |
| 64 | Version: 0, |
| 65 | Errors: map[string]map[int32]KError{ |
| 66 | "topic": { |
| 67 | 3: ErrNoError, |
| 68 | }, |
| 69 | }, |
| 70 | }, |
| 71 | }, |
| 72 | { |
| 73 | "v3", |
| 74 | 3, |
| 75 | noEmptyOffsetCommitResponseV3, |
| 76 | &OffsetCommitResponse{ |
| 77 | ThrottleTimeMs: 100, |
| 78 | Version: 3, |
| 79 | Errors: map[string]map[int32]KError{ |
| 80 | "topic": { |
| 81 | 3: ErrNoError, |
| 82 | }, |
| 83 | }, |
| 84 | }, |
| 85 | }, |
| 86 | { |
| 87 | "v8", |
| 88 | 8, |
| 89 | noEmptyOffsetCommitResponseV8, |
| 90 | &OffsetCommitResponse{ |
| 91 | ThrottleTimeMs: 100, |
| 92 | Version: 8, |
| 93 | Errors: map[string]map[int32]KError{ |
| 94 | "topic": { |
| 95 | 3: ErrNoError, |
| 96 | }, |
| 97 | }, |
| 98 | }, |
| 99 | }, |
| 100 | } |
nothing calls this directly
no test coverage detected