(t *testing.T, msg *ConsumerMessage, expectedKey Encoder)
| 2054 | } |
| 2055 | |
| 2056 | func assertMessageKey(t *testing.T, msg *ConsumerMessage, expectedKey Encoder) { |
| 2057 | t.Helper() |
| 2058 | |
| 2059 | wantKey, _ := expectedKey.Encode() |
| 2060 | if !bytes.Equal(msg.Key, wantKey) { |
| 2061 | t.Fatalf("Incorrect key for message. expected=%s, actual=%s", expectedKey, msg.Key) |
| 2062 | } |
| 2063 | } |
| 2064 | |
| 2065 | func assertMessageValue(t *testing.T, msg *ConsumerMessage, expectedValue Encoder) { |
| 2066 | t.Helper() |
no test coverage detected