Implement new Codec that uses mem.BufferSlice
instead of []byte
#7356
86.82% of diff hit (target 81.95%)
View this Pull Request on Codecov
86.82% of diff hit (target 81.95%)
Annotations
Check warning on line 49 in codec.go
codecov / codecov/patch
codec.go#L49
Added line #L49 was not covered by tests
Check warning on line 56 in codec.go
codecov / codecov/patch
codec.go#L55-L56
Added lines #L55 - L56 were not covered by tests
Check warning on line 763 in dialoptions.go
codecov / codecov/patch
dialoptions.go#L763
Added line #L763 was not covered by tests
Check warning on line 765 in dialoptions.go
codecov / codecov/patch
dialoptions.go#L765
Added line #L765 was not covered by tests
Check warning on line 67 in encoding/encoding_v2.go
codecov / codecov/patch
encoding/encoding_v2.go#L67
Added line #L67 was not covered by tests
Check warning on line 70 in encoding/encoding_v2.go
codecov / codecov/patch
encoding/encoding_v2.go#L70
Added line #L70 was not covered by tests
Check warning on line 42 in encoding/proto/proto_v2.go
codecov / codecov/patch
encoding/proto/proto_v2.go#L42
Added line #L42 was not covered by tests
Check warning on line 49 in encoding/proto/proto_v2.go
codecov / codecov/patch
encoding/proto/proto_v2.go#L49
Added line #L49 was not covered by tests
Check warning on line 57 in encoding/proto/proto_v2.go
codecov / codecov/patch
encoding/proto/proto_v2.go#L56-L57
Added lines #L56 - L57 were not covered by tests
Check warning on line 68 in encoding/proto/proto_v2.go
codecov / codecov/patch
encoding/proto/proto_v2.go#L68
Added line #L68 was not covered by tests
Check warning on line 47 in experimental/experimental.go
codecov / codecov/patch
experimental/experimental.go#L46-L47
Added lines #L46 - L47 were not covered by tests
Check warning on line 63 in experimental/experimental.go
codecov / codecov/patch
experimental/experimental.go#L62-L63
Added lines #L62 - L63 were not covered by tests
Check warning on line 42 in internal/grpctest/grpctest.go
codecov / codecov/patch
internal/grpctest/grpctest.go#L42
Added line #L42 was not covered by tests
Check warning on line 71 in internal/grpctest/grpctest.go
codecov / codecov/patch
internal/grpctest/grpctest.go#L71
Added line #L71 was not covered by tests
Check warning on line 128 in internal/leakcheck/leakcheck.go
codecov / codecov/patch
internal/leakcheck/leakcheck.go#L128
Added line #L128 was not covered by tests
Check warning on line 177 in internal/leakcheck/leakcheck.go
codecov / codecov/patch
internal/leakcheck/leakcheck.go#L177
Added line #L177 was not covered by tests
Check warning on line 286 in internal/leakcheck/leakcheck.go
codecov / codecov/patch
internal/leakcheck/leakcheck.go#L284-L286
Added lines #L284 - L286 were not covered by tests
Check warning on line 299 in internal/leakcheck/leakcheck.go
codecov / codecov/patch
internal/leakcheck/leakcheck.go#L297-L299
Added lines #L297 - L299 were not covered by tests
Check warning on line 158 in internal/transport/transport.go
codecov / codecov/patch
internal/transport/transport.go#L158
Added line #L158 was not covered by tests
Check warning on line 253 in internal/transport/transport.go
codecov / codecov/patch
internal/transport/transport.go#L253
Added line #L253 was not covered by tests
Check warning on line 564 in internal/transport/transport.go
codecov / codecov/patch
internal/transport/transport.go#L564
Added line #L564 was not covered by tests
Check warning on line 591 in internal/transport/transport.go
codecov / codecov/patch
internal/transport/transport.go#L591
Added line #L591 was not covered by tests
Check warning on line 189 in mem/buffer_slice.go
codecov / codecov/patch
mem/buffer_slice.go#L189
Added line #L189 was not covered by tests
Check warning on line 157 in mem/buffers.go
codecov / codecov/patch
mem/buffers.go#L156-L157
Added lines #L156 - L157 were not covered by tests
Check warning on line 184 in mem/buffers.go
codecov / codecov/patch
mem/buffers.go#L184
Added line #L184 was not covered by tests