MCPcopy
hub / github.com/IBM/sarama / assertMessageOffset

Function assertMessageOffset

consumer_test.go:2074–2079  ·  view source on GitHub ↗
(t *testing.T, msg *ConsumerMessage, expectedOffset int64)

Source from the content-addressed store, hash-verified

2072}
2073
2074func 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.

Calls 2

HelperMethod · 0.80
FatalfMethod · 0.80

Tested by

no test coverage detected