(prefix string)
| 168 | } |
| 169 | |
| 170 | func (f *TempDirFixture) NewFile(prefix string) (*os.File, error) { |
| 171 | return os.CreateTemp(f.dir.Path(), prefix) |
| 172 | } |
| 173 | |
| 174 | func (f *TempDirFixture) TempDir(prefix string) string { |
| 175 | name, err := os.MkdirTemp(f.dir.Path(), prefix) |