MCPcopy Create free account
hub / github.com/go-git/go-git / TestSubmodulesUpdateContext

Method TestSubmodulesUpdateContext

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

Source from the content-addressed store, hash-verified

219}
220
221func (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
236func (s *SubmoduleSuite) TestSubmodulesFetchDepth(c *C) {
237 if testing.Short() {

Callers

nothing calls this directly

Calls 4

ShortMethod · 0.80
SubmodulesMethod · 0.80
SkipMethod · 0.65
UpdateContextMethod · 0.45

Tested by

no test coverage detected