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

Method TestCheckoutCreateMissingBranch

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

Source from the content-addressed store, hash-verified

813}
814
815func (s *WorktreeSuite) TestCheckoutCreateMissingBranch(c *C) {
816 w := &Worktree{
817 r: s.Repository,
818 Filesystem: memfs.New(),
819 }
820
821 err := w.Checkout(&CheckoutOptions{
822 Create: true,
823 })
824
825 c.Assert(err, Equals, ErrCreateRequiresBranch)
826}
827
828func (s *WorktreeSuite) TestCheckoutCreateInvalidBranch(c *C) {
829 w := &Worktree{

Callers

nothing calls this directly

Calls 1

CheckoutMethod · 0.95

Tested by

no test coverage detected