(c *C)
| 227 | } |
| 228 | |
| 229 | func (s *SubmoduleSuite) TestSubmodulesUpdateContext(c *C) { |
| 230 | if testing.Short() { |
| 231 | c.Skip("skipping test in short mode.") |
| 232 | } |
| 233 | |
| 234 | sm, err := s.Worktree.Submodules() |
| 235 | c.Assert(err, IsNil) |
| 236 | |
| 237 | ctx, cancel := context.WithCancel(context.Background()) |
| 238 | cancel() |
| 239 | |
| 240 | err = sm.UpdateContext(ctx, &SubmoduleUpdateOptions{Init: true}) |
| 241 | c.Assert(err, NotNil) |
| 242 | } |
| 243 | |
| 244 | func (s *SubmoduleSuite) TestSubmodulesFetchDepth(c *C) { |
| 245 | if testing.Short() { |
nothing calls this directly
no test coverage detected