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

Function TestWriteTo

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

Source from the content-addressed store, hash-verified

297}
298
299func TestWriteTo(t *testing.T) {
300 var buf Buffer
301 for i := 3; i < 30; i += 3 {
302 s := fillBytes(t, "TestWriteTo (1)", &buf, "", 5, testBytes[0:len(testBytes)/i])
303 var b Buffer
304 buf.WriteTo(&b)
305 empty(t, "TestWriteTo (2)", &b, s, make([]byte, len(testString)))
306 }
307}
308
309func TestRuneIO(t *testing.T) {
310 const NRune = 1000

Callers

nothing calls this directly

Calls 3

WriteToMethod · 0.95
fillBytesFunction · 0.85
emptyFunction · 0.85

Tested by

no test coverage detected