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

Method TestPlainOpenNotBare

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

Source from the content-addressed store, hash-verified

731}
732
733func (s *RepositorySuite) TestPlainOpenNotBare(c *C) {
734 dir := c.MkDir()
735
736 r, err := PlainInit(dir, false)
737 c.Assert(err, IsNil)
738 c.Assert(r, NotNil)
739
740 r, err = PlainOpen(filepath.Join(dir, ".git"))
741 c.Assert(err, IsNil)
742 c.Assert(r, NotNil)
743}
744
745func (s *RepositorySuite) testPlainOpenGitFile(c *C, f func(string, string) string) {
746 fs := s.TemporalFilesystem(c)

Callers

nothing calls this directly

Calls 3

PlainInitFunction · 0.85
PlainOpenFunction · 0.85
JoinMethod · 0.80

Tested by

no test coverage detected