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

Method TestStatus

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

Source from the content-addressed store, hash-verified

958}
959
960func (s *WorktreeSuite) TestStatus(c *C) {
961 fs := memfs.New()
962 w := &Worktree{
963 r: s.Repository,
964 Filesystem: fs,
965 }
966
967 status, err := w.Status()
968 c.Assert(err, IsNil)
969
970 c.Assert(status.IsClean(), Equals, false)
971 c.Assert(status, HasLen, 9)
972}
973
974func (s *WorktreeSuite) TestStatusEmpty(c *C) {
975 fs := memfs.New()

Callers

nothing calls this directly

Calls 2

StatusMethod · 0.95
IsCleanMethod · 0.45

Tested by

no test coverage detected