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

Method TestStatusAfterCheckout

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

Source from the content-addressed store, hash-verified

1444}
1445
1446func (s *WorktreeSuite) TestStatusAfterCheckout(c *C) {
1447 fs := memfs.New()
1448 w := &Worktree{
1449 r: s.Repository,
1450 Filesystem: fs,
1451 }
1452
1453 err := w.Checkout(&CheckoutOptions{Force: true})
1454 c.Assert(err, IsNil)
1455
1456 status, err := w.Status()
1457 c.Assert(err, IsNil)
1458 c.Assert(status.IsClean(), Equals, true)
1459}
1460
1461func (s *WorktreeSuite) TestStatusAfterSparseCheckout(c *C) {
1462 fs := memfs.New()

Callers

nothing calls this directly

Calls 3

CheckoutMethod · 0.95
StatusMethod · 0.95
IsCleanMethod · 0.45

Tested by

no test coverage detected