MCPcopy
hub / github.com/CodisLabs/codis / newReader

Function newReader

pkg/utils/bufio2/bufio_test.go:16–18  ·  view source on GitHub ↗
(n int, input string)

Source from the content-addressed store, hash-verified

14)
15
16func newReader(n int, input string) *Reader {
17 return &Reader{rd: strings.NewReader(input), buf: make([]byte, n)}
18}
19
20func TestRead(t *testing.T) {
21 var b bytes.Buffer

Callers 4

TestReadFunction · 0.85
TestReadByteFunction · 0.85
TestReadBytesFunction · 0.85
TestReadFullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected