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

Method TestStatus

worktree_test.go:1047–1059  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

1045}
1046
1047func (s *WorktreeSuite) TestStatus(c *C) {
1048 fs := memfs.New()
1049 w := &Worktree{
1050 r: s.Repository,
1051 Filesystem: fs,
1052 }
1053
1054 status, err := w.Status()
1055 c.Assert(err, IsNil)
1056
1057 c.Assert(status.IsClean(), Equals, false)
1058 c.Assert(status, HasLen, 9)
1059}
1060
1061func (s *WorktreeSuite) TestStatusEmpty(c *C) {
1062 fs := memfs.New()

Callers

nothing calls this directly

Calls 2

StatusMethod · 0.95
IsCleanMethod · 0.45

Tested by

no test coverage detected