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

Function isPerfectMatch

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

Source from the content-addressed store, hash-verified

533}
534
535func isPerfectMatch(t *testing.T, buf Buffer, size int64) {
536 wrote, read := buildOutputs(t, buf, size)
537 if !bytes.Equal(wrote, read) {
538 t.Error("Buffer should have matched")
539 }
540}
541
542func checkEmpty(t *testing.T, buf Buffer) {
543 if !Empty(buf) {

Callers 3

TestMultiFunction · 0.85
TestMulti2Function · 0.85
runPerfectSeriesFunction · 0.85

Calls 1

buildOutputsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…