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

Function setupGzipWrapCompressor

encoding/compressor_test.go:53–59  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

51}
52
53func setupGzipWrapCompressor(t *testing.T) *wrapCompressor {
54 regFn := internal.RegisterCompressorForTesting.(func(encoding.Compressor) func())
55 c := &wrapCompressor{Compressor: encoding.GetCompressor("gzip")}
56 unreg := regFn(c)
57 t.Cleanup(unreg)
58 return c
59}
60
61func (s) TestSetSendCompressorSuccess(t *testing.T) {
62 for _, tt := range []struct {

Calls 1

GetCompressorFunction · 0.92

Tested by

no test coverage detected