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

Method TestPlainInitAlreadyExists

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

Source from the content-addressed store, hash-verified

672}
673
674func (s *RepositorySuite) TestPlainInitAlreadyExists(c *C) {
675 dir := c.MkDir()
676
677 r, err := PlainInit(dir, true)
678 c.Assert(err, IsNil)
679 c.Assert(r, NotNil)
680
681 r, err = PlainInit(dir, true)
682 c.Assert(err, Equals, ErrRepositoryAlreadyExists)
683 c.Assert(r, IsNil)
684}
685
686func (s *RepositorySuite) TestPlainOpen(c *C) {
687 dir := c.MkDir()

Callers

nothing calls this directly

Calls 1

PlainInitFunction · 0.85

Tested by

no test coverage detected