(c *C)
| 219 | } |
| 220 | |
| 221 | func (s *SubmoduleSuite) TestSubmodulesUpdateContext(c *C) { |
| 222 | if testing.Short() { |
| 223 | c.Skip("skipping test in short mode.") |
| 224 | } |
| 225 | |
| 226 | sm, err := s.Worktree.Submodules() |
| 227 | c.Assert(err, IsNil) |
| 228 | |
| 229 | ctx, cancel := context.WithCancel(context.Background()) |
| 230 | cancel() |
| 231 | |
| 232 | err = sm.UpdateContext(ctx, &SubmoduleUpdateOptions{Init: true}) |
| 233 | c.Assert(err, NotNil) |
| 234 | } |
| 235 | |
| 236 | func (s *SubmoduleSuite) TestSubmodulesFetchDepth(c *C) { |
| 237 | if testing.Short() { |
nothing calls this directly
no test coverage detected