MCPcopy Create free account
hub / github.com/cortexproject/cortex / TestCompressors

Function TestCompressors

pkg/util/grpcencoding/encoding_test.go:18–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16)
17
18func TestCompressors(t *testing.T) {
19 testCases := []struct {
20 name string
21 }{
22 {
23 name: snappy.Name,
24 },
25 {
26 name: snappyblock.Name,
27 },
28 {
29 name: zstd.Name,
30 },
31 }
32
33 for _, tc := range testCases {
34 t.Run(tc.name, func(t *testing.T) {
35 testCompress(tc.name, t)
36 })
37 }
38}
39
40func testCompress(name string, t *testing.T) {
41 c := encoding.GetCompressor(name)

Callers

nothing calls this directly

Calls 2

testCompressFunction · 0.85
RunMethod · 0.65

Tested by

no test coverage detected