MCPcopy
hub / github.com/grpc/grpc-go / TestRegisteredCompressors

Function TestRegisteredCompressors

internal/grpcutil/compressor_test.go:25–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23)
24
25func 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}

Callers

nothing calls this directly

Calls 2

RegisteredCompressorsFunction · 0.85
FatalfMethod · 0.65

Tested by

no test coverage detected