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

Method TestSubmodulesInit

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

Source from the content-addressed store, hash-verified

178}
179
180func (s *SubmoduleSuite) TestSubmodulesInit(c *C) {
181 sm, err := s.Worktree.Submodules()
182 c.Assert(err, IsNil)
183
184 err = sm.Init()
185 c.Assert(err, IsNil)
186
187 sm, err = s.Worktree.Submodules()
188 c.Assert(err, IsNil)
189
190 for _, m := range sm {
191 c.Assert(m.initialized, Equals, true)
192 }
193}
194
195func (s *SubmoduleSuite) TestGitSubmodulesSymlink(c *C) {
196 // Plant the malicious symlink directly on the inner filesystem.

Callers

nothing calls this directly

Calls 2

SubmodulesMethod · 0.80
InitMethod · 0.65

Tested by

no test coverage detected