(t *testing.T)
| 136 | } |
| 137 | |
| 138 | func TestCompressedMessages(t *testing.T) { |
| 139 | testCompressedMessages(t, new(gzip.Codec)) |
| 140 | testCompressedMessages(t, new(snappy.Codec)) |
| 141 | testCompressedMessages(t, new(lz4.Codec)) |
| 142 | |
| 143 | if ktesting.KafkaIsAtLeast("2.1.0") { |
| 144 | testCompressedMessages(t, new(zstd.Codec)) |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | func testCompressedMessages(t *testing.T, codec pkg.Codec) { |
| 149 | t.Run(codec.Name(), func(t *testing.T) { |
nothing calls this directly
no test coverage detected