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

Method TestStatusEmpty

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

Source from the content-addressed store, hash-verified

972}
973
974func (s *WorktreeSuite) TestStatusEmpty(c *C) {
975 fs := memfs.New()
976 storage := memory.NewStorage()
977
978 r, err := Init(storage, fs)
979 c.Assert(err, IsNil)
980
981 w, err := r.Worktree()
982 c.Assert(err, IsNil)
983
984 status, err := w.Status()
985 c.Assert(err, IsNil)
986 c.Assert(status.IsClean(), Equals, true)
987 c.Assert(status, NotNil)
988}
989
990func (s *WorktreeSuite) TestStatusCheckedInBeforeIgnored(c *C) {
991 fs := memfs.New()

Callers

nothing calls this directly

Calls 5

NewStorageFunction · 0.92
InitFunction · 0.85
WorktreeMethod · 0.80
StatusMethod · 0.45
IsCleanMethod · 0.45

Tested by

no test coverage detected