MCPcopy Index your code
hub / github.com/rclone/rclone / readString

Function readString

vfs/read_test.go:30–37  ·  view source on GitHub ↗

read data from the string

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

Source from the content-addressed store, hash-verified

28
29// read data from the string
30func readString(t *testing.T, fh *ReadFileHandle, n int) string {
31 buf := make([]byte, n)
32 n, err := fh.Read(buf)
33 if err != io.EOF {
34 assert.NoError(t, err)
35 }
36 return string(buf[:n])
37}
38
39func TestReadFileHandleMethods(t *testing.T) {
40 _, _, fh := readHandleCreate(t)

Callers 2

TestReadFileHandleSeekFunction · 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…