(pathInRepo string)
| 160 | } |
| 161 | |
| 162 | func (f *TempDirFixture) Rm(pathInRepo string) { |
| 163 | fullPath := f.JoinPath(pathInRepo) |
| 164 | err := os.RemoveAll(fullPath) |
| 165 | if err != nil { |
| 166 | f.t.Fatal(err) |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | func (f *TempDirFixture) NewFile(prefix string) (*os.File, error) { |
| 171 | return os.CreateTemp(f.dir.Path(), prefix) |