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

Method TestStatusEmpty

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

Source from the content-addressed store, hash-verified

1059}
1060
1061func (s *WorktreeSuite) TestStatusEmpty(c *C) {
1062 fs := memfs.New()
1063 storage := memory.NewStorage()
1064
1065 r, err := Init(storage, fs)
1066 c.Assert(err, IsNil)
1067
1068 w, err := r.Worktree()
1069 c.Assert(err, IsNil)
1070
1071 status, err := w.Status()
1072 c.Assert(err, IsNil)
1073 c.Assert(status.IsClean(), Equals, true)
1074 c.Assert(status, NotNil)
1075}
1076
1077func (s *WorktreeSuite) TestStatusCheckedInBeforeIgnored(c *C) {
1078 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