MCPcopy Create free account
hub / github.com/Shopify/goose / TestLargeByteReads

Function TestLargeByteReads

syncio/buffer_test.go:217–224  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

215}
216
217func TestLargeByteReads(t *testing.T) {
218 var buf Buffer
219 for i := 3; i < 30; i += 3 {
220 s := fillBytes(t, "TestLargeReads (1)", &buf, "", 5, testBytes[0:len(testBytes)/i])
221 empty(t, "TestLargeReads (2)", &buf, s, make([]byte, len(testString)))
222 }
223 check(t, "TestLargeByteReads (3)", &buf, "")
224}
225
226func TestMixedReadsAndWrites(t *testing.T) {
227 var buf Buffer

Callers

nothing calls this directly

Calls 3

fillBytesFunction · 0.85
emptyFunction · 0.85
checkFunction · 0.85

Tested by

no test coverage detected