(t *testing.T)
| 23 | ) |
| 24 | |
| 25 | func TestRegisteredCompressors(t *testing.T) { |
| 26 | defer func(c []string) { RegisteredCompressorNames = c }(RegisteredCompressorNames) |
| 27 | RegisteredCompressorNames = []string{"gzip", "snappy"} |
| 28 | if got, want := RegisteredCompressors(), "gzip,snappy"; got != want { |
| 29 | t.Fatalf("Unexpected compressors got:%s, want:%s", got, want) |
| 30 | |
| 31 | } |
| 32 | } |
nothing calls this directly
no test coverage detected