(t *testing.T)
| 16 | ) |
| 17 | |
| 18 | func 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 | |
| 40 | func testCompress(name string, t *testing.T) { |
| 41 | c := encoding.GetCompressor(name) |
nothing calls this directly
no test coverage detected