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

Method TestUpdateWithRecursion

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

Source from the content-addressed store, hash-verified

121}
122
123func (s *SubmoduleSuite) TestUpdateWithRecursion(c *C) {
124 if testing.Short() {
125 c.Skip("skipping test in short mode.")
126 }
127
128 sm, err := s.Worktree.Submodule("itself")
129 c.Assert(err, IsNil)
130
131 err = sm.Update(&SubmoduleUpdateOptions{
132 Init: true,
133 RecurseSubmodules: 2,
134 })
135
136 c.Assert(err, IsNil)
137
138 fs := s.Worktree.Filesystem
139 _, err = fs.Stat(fs.Join("itself", "basic", "LICENSE"))
140 c.Assert(err, IsNil)
141}
142
143func (s *SubmoduleSuite) TestUpdateWithInitAndUpdate(c *C) {
144 if testing.Short() {

Callers

nothing calls this directly

Calls 6

ShortMethod · 0.80
SubmoduleMethod · 0.80
StatMethod · 0.80
JoinMethod · 0.80
SkipMethod · 0.65
UpdateMethod · 0.45

Tested by

no test coverage detected