(c *C)
| 191 | } |
| 192 | |
| 193 | func (s *RefSpecSuite) TestMatchAny(c *C) { |
| 194 | specs := []RefSpec{ |
| 195 | "refs/heads/bar:refs/remotes/origin/foo", |
| 196 | "refs/heads/foo:refs/remotes/origin/bar", |
| 197 | } |
| 198 | |
| 199 | c.Assert(MatchAny(specs, plumbing.ReferenceName("refs/heads/foo")), Equals, true) |
| 200 | c.Assert(MatchAny(specs, plumbing.ReferenceName("refs/heads/bar")), Equals, true) |
| 201 | c.Assert(MatchAny(specs, plumbing.ReferenceName("refs/heads/master")), Equals, false) |
| 202 | } |
nothing calls this directly
no test coverage detected