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

Method Compress

encoding/compressor_test.go:48–51  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

46}
47
48func (wc *wrapCompressor) Compress(w io.Writer) (io.WriteCloser, error) {
49 atomic.AddInt32(&wc.compressInvokes, 1)
50 return wc.Compressor.Compress(w)
51}
52
53func setupGzipWrapCompressor(t *testing.T) *wrapCompressor {
54 regFn := internal.RegisterCompressorForTesting.(func(encoding.Compressor) func())

Callers

nothing calls this directly

Calls 1

CompressMethod · 0.65

Tested by

no test coverage detected