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

Method TestSubmodulesStatus

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

Source from the content-addressed store, hash-verified

218}
219
220func (s *SubmoduleSuite) TestSubmodulesStatus(c *C) {
221 sm, err := s.Worktree.Submodules()
222 c.Assert(err, IsNil)
223
224 status, err := sm.Status()
225 c.Assert(err, IsNil)
226 c.Assert(status, HasLen, 2)
227}
228
229func (s *SubmoduleSuite) TestSubmodulesUpdateContext(c *C) {
230 if testing.Short() {

Callers

nothing calls this directly

Calls 2

SubmodulesMethod · 0.80
StatusMethod · 0.45

Tested by

no test coverage detected