MCPcopy Create free account
hub / github.com/go-git/go-git / TestRepositoryWithoutInit

Method TestRepositoryWithoutInit

submodule_test.go:93–100  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

91}
92
93func (s *SubmoduleSuite) TestRepositoryWithoutInit(c *C) {
94 sm, err := s.Worktree.Submodule("basic")
95 c.Assert(err, IsNil)
96
97 r, err := sm.Repository()
98 c.Assert(err, Equals, ErrSubmoduleNotInitialized)
99 c.Assert(r, IsNil)
100}
101
102func (s *SubmoduleSuite) TestUpdateWithoutInit(c *C) {
103 sm, err := s.Worktree.Submodule("basic")

Callers

nothing calls this directly

Calls 2

SubmoduleMethod · 0.80
RepositoryMethod · 0.80

Tested by

no test coverage detected