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

Function TestCodecs

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

Source from the content-addressed store, hash-verified

32}
33
34func TestCodecs(t *testing.T) {
35 for i, c := range pkg.Codecs {
36 if c != nil {
37 if code := c.Code(); int8(code) != int8(i) {
38 t.Fatal("default compression codec table is misconfigured for", c.Name())
39 }
40 }
41 }
42}
43
44func TestCompression(t *testing.T) {
45 msg := kafka.Message{

Callers

nothing calls this directly

Calls 2

CodeMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected