MCPcopy Create free account
hub / github.com/djherbis/buffer / buildOutputs

Function buildOutputs

buffer_test.go:525–533  ·  view source on GitHub ↗
(t *testing.T, buf Buffer, size int64)

Source from the content-addressed store, hash-verified

523}
524
525func 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
535func isPerfectMatch(t *testing.T, buf Buffer, size int64) {
536 wrote, read := buildOutputs(t, buf, size)

Callers 1

isPerfectMatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…