MCPcopy
hub / github.com/rclone/rclone / rwReadString

Function rwReadString

vfs/read_write_test.go:62–69  ·  view source on GitHub ↗

read data from the string

(t *testing.T, fh *RWFileHandle, n int)

Source from the content-addressed store, hash-verified

60
61// read data from the string
62func rwReadString(t *testing.T, fh *RWFileHandle, n int) string {
63 buf := make([]byte, n)
64 n, err := fh.Read(buf)
65 if err != io.EOF {
66 assert.NoError(t, err)
67 }
68 return string(buf[:n])
69}
70
71func TestRWFileHandleMethodsRead(t *testing.T) {
72 _, _, fh := rwHandleCreateReadOnly(t)

Callers 2

TestRWFileHandleSeekFunction · 0.85

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…