(c *C)
| 178 | } |
| 179 | |
| 180 | func (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 | |
| 195 | func (s *SubmoduleSuite) TestGitSubmodulesSymlink(c *C) { |
| 196 | // Plant the malicious symlink directly on the inner filesystem. |
nothing calls this directly
no test coverage detected