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

Method TestPlainOpenBareRelativeGitDirFile

repository_test.go:782–788  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

780}
781
782func (s *RepositorySuite) TestPlainOpenBareRelativeGitDirFile(c *C) {
783 s.testPlainOpenGitFile(c, func(dir, altDir string) string {
784 dir, err := filepath.Rel(altDir, dir)
785 c.Assert(err, IsNil)
786 return fmt.Sprintf("gitdir: %s\n", dir)
787 })
788}
789
790func (s *RepositorySuite) TestPlainOpenBareRelativeGitDirFileNoEOL(c *C) {
791 s.testPlainOpenGitFile(c, func(dir, altDir string) string {

Callers

nothing calls this directly

Calls 1

testPlainOpenGitFileMethod · 0.95

Tested by

no test coverage detected