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

Method TestRefSpecDst

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

Source from the content-addressed store, hash-verified

145}
146
147func (s *RefSpecSuite) TestRefSpecDst(c *C) {
148 spec := RefSpec("refs/heads/master:refs/remotes/origin/master")
149 c.Assert(
150 spec.Dst(plumbing.ReferenceName("refs/heads/master")).String(), Equals,
151 "refs/remotes/origin/master",
152 )
153}
154
155func (s *RefSpecSuite) TestRefSpecDstBlob(c *C) {
156 ref := "refs/heads/abc"

Callers

nothing calls this directly

Calls 4

ReferenceNameTypeAlias · 0.92
RefSpecTypeAlias · 0.85
DstMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected