(t *testing.T, buf Buffer, size int64)
| 523 | } |
| 524 | |
| 525 | func buildOutputs(t *testing.T, buf Buffer, size int64) (wrote []byte, read []byte) { |
| 526 | r := io.LimitReader(rand.Reader, size) |
| 527 | tee := io.TeeReader(r, buf) |
| 528 | |
| 529 | wrote, _ = ioutil.ReadAll(tee) |
| 530 | read, _ = ioutil.ReadAll(buf) |
| 531 | |
| 532 | return wrote, read |
| 533 | } |
| 534 | |
| 535 | func isPerfectMatch(t *testing.T, buf Buffer, size int64) { |
| 536 | wrote, read := buildOutputs(t, buf, size) |
no outgoing calls
no test coverage detected
searching dependent graphs…