MCPcopy Index your code
hub / github.com/go-git/go-git / TestRepositoryWithoutInit

Method TestRepositoryWithoutInit

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

Source from the content-addressed store, hash-verified

89}
90
91func (s *SubmoduleSuite) TestRepositoryWithoutInit(c *C) {
92 sm, err := s.Worktree.Submodule("basic")
93 c.Assert(err, IsNil)
94
95 r, err := sm.Repository()
96 c.Assert(err, Equals, ErrSubmoduleNotInitialized)
97 c.Assert(r, IsNil)
98}
99
100func (s *SubmoduleSuite) TestUpdateWithoutInit(c *C) {
101 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