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

Method TestPlainOpenBare

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

Source from the content-addressed store, hash-verified

719}
720
721func (s *RepositorySuite) TestPlainOpenBare(c *C) {
722 dir := c.MkDir()
723
724 r, err := PlainInit(dir, true)
725 c.Assert(err, IsNil)
726 c.Assert(r, NotNil)
727
728 r, err = PlainOpen(dir)
729 c.Assert(err, IsNil)
730 c.Assert(r, NotNil)
731}
732
733func (s *RepositorySuite) TestPlainOpenNotBare(c *C) {
734 dir := c.MkDir()

Callers

nothing calls this directly

Calls 2

PlainInitFunction · 0.85
PlainOpenFunction · 0.85

Tested by

no test coverage detected