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

Method TestSubmodulesUpdateContext

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

Source from the content-addressed store, hash-verified

227}
228
229func (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
244func (s *SubmoduleSuite) TestSubmodulesFetchDepth(c *C) {
245 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