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

Method TestSubmodulesStatus

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

Source from the content-addressed store, hash-verified

210}
211
212func (s *SubmoduleSuite) TestSubmodulesStatus(c *C) {
213 sm, err := s.Worktree.Submodules()
214 c.Assert(err, IsNil)
215
216 status, err := sm.Status()
217 c.Assert(err, IsNil)
218 c.Assert(status, HasLen, 2)
219}
220
221func (s *SubmoduleSuite) TestSubmodulesUpdateContext(c *C) {
222 if testing.Short() {

Callers

nothing calls this directly

Calls 2

SubmodulesMethod · 0.80
StatusMethod · 0.45

Tested by

no test coverage detected