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

Method TestRefSpecIsForceUpdate

config/refspec_test.go:48–54  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

46}
47
48func (s *RefSpecSuite) TestRefSpecIsForceUpdate(c *C) {
49 spec := RefSpec("+refs/heads/*:refs/remotes/origin/*")
50 c.Assert(spec.IsForceUpdate(), Equals, true)
51
52 spec = RefSpec("refs/heads/*:refs/remotes/origin/*")
53 c.Assert(spec.IsForceUpdate(), Equals, false)
54}
55
56func (s *RefSpecSuite) TestRefSpecIsDelete(c *C) {
57 spec := RefSpec(":refs/heads/master")

Callers

nothing calls this directly

Calls 2

RefSpecTypeAlias · 0.85
IsForceUpdateMethod · 0.80

Tested by

no test coverage detected