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

Function TestLargeStringWrites

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

Source from the content-addressed store, hash-verified

180}
181
182func TestLargeStringWrites(t *testing.T) {
183 var buf Buffer
184 limit := 30
185 if testing.Short() {
186 limit = 9
187 }
188 for i := 3; i < limit; i += 3 {
189 s := fillString(t, "TestLargeWrites (1)", &buf, "", 5, testString)
190 empty(t, "TestLargeStringWrites (2)", &buf, s, make([]byte, len(testString)/i))
191 }
192 check(t, "TestLargeStringWrites (3)", &buf, "")
193}
194
195func TestLargeByteWrites(t *testing.T) {
196 var buf Buffer

Callers

nothing calls this directly

Calls 3

fillStringFunction · 0.85
emptyFunction · 0.85
checkFunction · 0.85

Tested by

no test coverage detected