MCPcopy
hub / github.com/go-git/go-git / TestUpdateWithRecursion

Method TestUpdateWithRecursion

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected