read data from the string
(t *testing.T, fh *ReadFileHandle, n int)
| 28 | |
| 29 | // read data from the string |
| 30 | func 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 | |
| 39 | func TestReadFileHandleMethods(t *testing.T) { |
| 40 | _, _, fh := readHandleCreate(t) |
no test coverage detected
searching dependent graphs…