(t *testing.T, resp *Resp, expect []byte)
| 78 | } |
| 79 | |
| 80 | func testEncodeAndCheck(t *testing.T, resp *Resp, expect []byte) { |
| 81 | b, err := EncodeToBytes(resp) |
| 82 | assert.MustNoError(err) |
| 83 | assert.Must(bytes.Equal(b, expect)) |
| 84 | } |
| 85 | |
| 86 | func newBenchmarkEncoder(n int) *Encoder { |
| 87 | return NewEncoderSize(ioutil.Discard, 1024*128) |
no test coverage detected