Read the file.
(path string)
| 125 | |
| 126 | // Read the file. |
| 127 | func (f *TempDirFixture) ReadFile(path string) string { |
| 128 | fullPath := f.JoinPath(path) |
| 129 | contents, err := os.ReadFile(fullPath) |
| 130 | if err != nil { |
| 131 | f.t.Fatal(err) |
| 132 | } |
| 133 | return string(contents) |
| 134 | } |
| 135 | |
| 136 | func (f *TempDirFixture) WriteSymlink(linkContents, destPath string) { |
| 137 | fullDestPath := f.JoinPath(destPath) |