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

Method TestPlainOpen

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

Source from the content-addressed store, hash-verified

684}
685
686func (s *RepositorySuite) TestPlainOpen(c *C) {
687 dir := c.MkDir()
688
689 r, err := PlainInit(dir, false)
690 c.Assert(err, IsNil)
691 c.Assert(r, NotNil)
692
693 r, err = PlainOpen(dir)
694 c.Assert(err, IsNil)
695 c.Assert(r, NotNil)
696}
697
698func (s *RepositorySuite) TestPlainOpenTildePath(c *C) {
699 dir, clean := s.TemporalHomeDir()

Callers

nothing calls this directly

Calls 2

PlainInitFunction · 0.85
PlainOpenFunction · 0.85

Tested by

no test coverage detected