1234567891011121314151617181920212223242526272829303132 |
- package sarama
- import "testing"
- var (
- listPartitionReassignmentsResponse = []byte{
- 0, 0, 39, 16,
- 0, 0,
- 0,
- 2,
- 6, 116, 111, 112, 105, 99,
- 2,
- 0, 0, 0, 1,
- 3, 0, 0, 3, 232, 0, 0, 3, 233,
- 3, 0, 0, 3, 234, 0, 0, 3, 235,
- 3, 0, 0, 3, 236, 0, 0, 3, 237,
- 0, 0, 0,
- }
- )
- func TestListPartitionReassignmentResponse(t *testing.T) {
- var response *ListPartitionReassignmentsResponse
- response = &ListPartitionReassignmentsResponse{
- ThrottleTimeMs: int32(10000),
- Version: int16(0),
- }
- response.AddBlock("topic", 1, []int32{1000, 1001}, []int32{1002, 1003}, []int32{1004, 1005})
- testResponse(t, "one topic", response, listPartitionReassignmentsResponse)
- }
|