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

Function checkCap

buffer_test.go:548–552  ·  view source on GitHub ↗
(t *testing.T, buf Buffer, correctCap int64)

Source from the content-addressed store, hash-verified

546}
547
548func checkCap(t *testing.T, buf Buffer, correctCap int64) {
549 if buf.Cap() != correctCap {
550 t.Error("Buffer cap is incorrect", buf.Cap(), correctCap)
551 }
552}
553
554type bigBuffer struct{}
555

Callers 7

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

Calls 1

CapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…