(path string)
| 20 | } |
| 21 | |
| 22 | func (io testFileIO) ReadFile(path string) (data []byte, err error) { |
| 23 | io.t.Helper() |
| 24 | defer func() { |
| 25 | io.t.Helper() |
| 26 | io.t.Logf("ReadFile(%s) => (%d bytes, %v)", path, len(data), err) |
| 27 | }() |
| 28 | return io.fileIO.ReadFile(path) |
| 29 | } |
| 30 | |
| 31 | func (io testFileIO) WriteFile(path string, data []byte) (err error) { |
| 32 | io.t.Helper() |