(t *testing.T, msg *ConsumerMessage, expectedOffset int64)
| 2072 | } |
| 2073 | |
| 2074 | func assertMessageOffset(t *testing.T, msg *ConsumerMessage, expectedOffset int64) { |
| 2075 | t.Helper() |
| 2076 | if msg.Offset != expectedOffset { |
| 2077 | t.Fatalf("Incorrect message offset: expected=%d, actual=%d", expectedOffset, msg.Offset) |
| 2078 | } |
| 2079 | } |
| 2080 | |
| 2081 | // This example shows how to use the consumer to read messages |
| 2082 | // from a single partition. |
no test coverage detected