diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-08-02 13:00:31 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-08-02 13:00:31 +0200 |
commit | 171b3a73e7ab7015f9eb8e98965e36dfb8ea9599 (patch) | |
tree | 4cfecae09aa5f2193da7c9e2710a08ceb1720cd0 /plumbing/reference_test.go | |
parent | 8ddbecf782c2e340fd85bb4ba4d00dc73d749f87 (diff) | |
download | go-git-171b3a73e7ab7015f9eb8e98965e36dfb8ea9599.tar.gz |
plumbing: moved `Reference.Is*` methods to `ReferenceName.Is*`
Diffstat (limited to 'plumbing/reference_test.go')
-rw-r--r-- | plumbing/reference_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plumbing/reference_test.go b/plumbing/reference_test.go index 97c8772..47919ef 100644 --- a/plumbing/reference_test.go +++ b/plumbing/reference_test.go @@ -55,21 +55,21 @@ func (s *ReferenceSuite) TestNewHashReference(c *C) { } func (s *ReferenceSuite) TestIsBranch(c *C) { - r := NewHashReference(ExampleReferenceName, ZeroHash) + r := ExampleReferenceName c.Assert(r.IsBranch(), Equals, true) } func (s *ReferenceSuite) TestIsNote(c *C) { - r := NewHashReference(ReferenceName("refs/notes/foo"), ZeroHash) + r := ReferenceName("refs/notes/foo") c.Assert(r.IsNote(), Equals, true) } func (s *ReferenceSuite) TestIsRemote(c *C) { - r := NewHashReference(ReferenceName("refs/remotes/origin/master"), ZeroHash) + r := ReferenceName("refs/remotes/origin/master") c.Assert(r.IsRemote(), Equals, true) } func (s *ReferenceSuite) TestIsTag(c *C) { - r := NewHashReference(ReferenceName("refs/tags/v3.1."), ZeroHash) + r := ReferenceName("refs/tags/v3.1.") c.Assert(r.IsTag(), Equals, true) } |