MCPcopy Create free account
hub / github.com/IBM/sarama / assertMessageOffset

Function assertMessageOffset

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

Source from the content-addressed store, hash-verified

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

Calls 2

HelperMethod · 0.80
FatalfMethod · 0.80

Tested by

no test coverage detected