MCPcopy
hub / github.com/segmentio/kafka-go / TestCompressedMessages

Function TestCompressedMessages

compress/compress_test.go:138–146  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

136}
137
138func 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
148func testCompressedMessages(t *testing.T, codec pkg.Codec) {
149 t.Run(codec.Name(), func(t *testing.T) {

Callers

nothing calls this directly

Calls 1

testCompressedMessagesFunction · 0.85

Tested by

no test coverage detected