(c *C)
| 46 | } |
| 47 | |
| 48 | func (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 | |
| 56 | func (s *RefSpecSuite) TestRefSpecIsDelete(c *C) { |
| 57 | spec := RefSpec(":refs/heads/master") |
nothing calls this directly
no test coverage detected