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

Function TestLargeByteWrites

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

Source from the content-addressed store, hash-verified

193}
194
195func TestLargeByteWrites(t *testing.T) {
196 var buf Buffer
197 limit := 30
198 if testing.Short() {
199 limit = 9
200 }
201 for i := 3; i < limit; i += 3 {
202 s := fillBytes(t, "TestLargeWrites (1)", &buf, "", 5, testBytes)
203 empty(t, "TestLargeByteWrites (2)", &buf, s, make([]byte, len(testString)/i))
204 }
205 check(t, "TestLargeByteWrites (3)", &buf, "")
206}
207
208func TestLargeStringReads(t *testing.T) {
209 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