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

Method TestUpdateWithoutInit

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

Source from the content-addressed store, hash-verified

98}
99
100func (s *SubmoduleSuite) TestUpdateWithoutInit(c *C) {
101 sm, err := s.Worktree.Submodule("basic")
102 c.Assert(err, IsNil)
103
104 err = sm.Update(&SubmoduleUpdateOptions{})
105 c.Assert(err, Equals, ErrSubmoduleNotInitialized)
106}
107
108func (s *SubmoduleSuite) TestUpdateWithNotFetch(c *C) {
109 sm, err := s.Worktree.Submodule("basic")

Callers

nothing calls this directly

Calls 2

SubmoduleMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected