(c *C)
| 157 | } |
| 158 | |
| 159 | func (s *BaseSuite) TemporalFilesystem(c *C) (fs billy.Filesystem) { |
| 160 | fs = osfs.New(c.MkDir()) |
| 161 | path, err := util.TempDir(fs, "", "") |
| 162 | if err != nil { |
| 163 | panic(err) |
| 164 | } |
| 165 | |
| 166 | fs, err = fs.Chroot(path) |
| 167 | if err != nil { |
| 168 | panic(err) |
| 169 | } |
| 170 | |
| 171 | return |
| 172 | } |
| 173 | |
| 174 | type SuiteCommon struct{} |
| 175 |
no test coverage detected