MCPcopy
hub / github.com/go-git/go-git / TemporalFilesystem

Method TemporalFilesystem

common_test.go:159–172  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

157}
158
159func (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
174type SuiteCommon struct{}
175

Calls 1

ChrootMethod · 0.45

Tested by

no test coverage detected