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

Method TestRefSpecReverse

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

Source from the content-addressed store, hash-verified

183}
184
185func (s *RefSpecSuite) TestRefSpecReverse(c *C) {
186 spec := RefSpec("refs/heads/*:refs/remotes/origin/*")
187 c.Assert(
188 spec.Reverse(), Equals,
189 RefSpec("refs/remotes/origin/*:refs/heads/*"),
190 )
191}
192
193func (s *RefSpecSuite) TestMatchAny(c *C) {
194 specs := []RefSpec{

Callers

nothing calls this directly

Calls 2

RefSpecTypeAlias · 0.85
ReverseMethod · 0.80

Tested by

no test coverage detected