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

Function runPerfectSeries

buffer_test.go:490–500  ·  view source on GitHub ↗
(t *testing.T, buf Buffer)

Source from the content-addressed store, hash-verified

488}
489
490func runPerfectSeries(t *testing.T, buf Buffer) {
491 checkEmpty(t, buf)
492 simple(t, buf)
493
494 max := int64(1024)
495 isPerfectMatch(t, buf, 0)
496 for i := int64(1); i < max; i *= 2 {
497 isPerfectMatch(t, buf, i)
498 }
499 isPerfectMatch(t, buf, max)
500}
501
502func simple(t *testing.T, buf Buffer) {
503 buf.Write([]byte("hello world"))

Callers 8

TestFileFunction · 0.85
TestMemFunction · 0.85
TestFilePartitionFunction · 0.85
TestMultiFunction · 0.85
TestMulti2Function · 0.85
TestSwapFunction · 0.85
TestPartitionAtFunction · 0.85
TestPartitionAt2Function · 0.85

Calls 3

checkEmptyFunction · 0.85
simpleFunction · 0.85
isPerfectMatchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…