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

Method TemporalFilesystem

storage/filesystem/dotgit/dotgit_test.go:35–48  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

33var _ = Suite(&SuiteDotGit{})
34
35func (s *SuiteDotGit) TemporalFilesystem(c *C) (fs billy.Filesystem) {
36 fs = osfs.New(c.MkDir())
37 path, err := util.TempDir(fs, "", "")
38 if err != nil {
39 panic(err)
40 }
41
42 fs, err = fs.Chroot(path)
43 if err != nil {
44 panic(err)
45 }
46
47 return fs
48}
49
50func (s *SuiteDotGit) TestModuleRejectsEscapingNames(c *C) {
51 d := New(memfs.New())

Callers 15

TestInitializeMethod · 0.95
TestSetRefsMethod · 0.95
TestSetRefsNorwfsMethod · 0.95
TestNewObjectMethod · 0.95
TestObjectsNoFolderMethod · 0.95
TestPackRefsMethod · 0.95
TestDeletedRefsMethod · 0.95
TestSetPackedRefMethod · 0.95
TestNewObjectPackMethod · 0.95

Calls 1

ChrootMethod · 0.45

Tested by

no test coverage detected