(name string)
| 65 | } |
| 66 | |
| 67 | func (d *TempDir) NewDeterministicDir(name string) (*TempDir, error) { |
| 68 | d2 := filepath.Join(d.dir, name) |
| 69 | err := os.Mkdir(d2, 0o700) |
| 70 | if os.IsExist(err) { |
| 71 | return nil, err |
| 72 | } else if err != nil { |
| 73 | return nil, err |
| 74 | } |
| 75 | return &TempDir{d2}, nil |
| 76 | } |
| 77 | |
| 78 | func (d *TempDir) TearDown() error { |
| 79 | return os.RemoveAll(d.dir) |
nothing calls this directly
no outgoing calls
no test coverage detected