MCPcopy Create free account
hub / github.com/go-git/go-git / ReadDir

Method ReadDir

storage/filesystem/dotgit/dotgit_test.go:1002–1008  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

1000}
1001
1002func (f *notExistsFS) ReadDir(path string) ([]os.FileInfo, error) {
1003 if f.matches(path) {
1004 return nil, os.ErrNotExist
1005 }
1006
1007 return f.Filesystem.ReadDir(path)
1008}
1009
1010func (s *SuiteDotGit) TestDeletedRefs(c *C) {
1011 fs, clean := s.TemporalFilesystem()

Callers 15

TestCloneSparseMethod · 0.45
TestCloneDeepMethod · 0.45
checkIfCleanupIsNeededFunction · 0.45
cleanUpDirFunction · 0.45
CleanMethod · 0.45
doCleanMethod · 0.45
removeDirIfEmptyFunction · 0.45
TestPullCheckoutMethod · 0.45
TestCheckoutMethod · 0.45

Calls 1

matchesMethod · 0.95

Tested by

no test coverage detected