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

Function TestReadFrom

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

Source from the content-addressed store, hash-verified

267}
268
269func TestReadFrom(t *testing.T) {
270 var buf Buffer
271 for i := 3; i < 30; i += 3 {
272 s := fillBytes(t, "TestReadFrom (1)", &buf, "", 5, testBytes[0:len(testBytes)/i])
273 var b Buffer
274 b.ReadFrom(&buf)
275 empty(t, "TestReadFrom (2)", &b, s, make([]byte, len(testString)))
276 }
277}
278
279func TestReadFromNegativeReader(t *testing.T) {
280 var b Buffer

Callers

nothing calls this directly

Calls 3

ReadFromMethod · 0.95
fillBytesFunction · 0.85
emptyFunction · 0.85

Tested by

no test coverage detected