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

Method TestUpdateWithoutInit

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

Source from the content-addressed store, hash-verified

100}
101
102func (s *SubmoduleSuite) TestUpdateWithoutInit(c *C) {
103 sm, err := s.Worktree.Submodule("basic")
104 c.Assert(err, IsNil)
105
106 err = sm.Update(&SubmoduleUpdateOptions{})
107 c.Assert(err, Equals, ErrSubmoduleNotInitialized)
108}
109
110func (s *SubmoduleSuite) TestUpdateWithNotFetch(c *C) {
111 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