read data from the string
(t *testing.T, fh *RWFileHandle, n int)
| 60 | |
| 61 | // read data from the string |
| 62 | func 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 | |
| 71 | func TestRWFileHandleMethodsRead(t *testing.T) { |
| 72 | _, _, fh := rwHandleCreateReadOnly(t) |
no test coverage detected
searching dependent graphs…