aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/commit_walker_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2020-03-10 01:41:19 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2020-03-10 01:41:19 +0100
commit2637279338ca9736c22b5e15fca916121ae8d089 (patch)
tree2273e55f2d2b68b9b6335924d6b00ddf3417e8e7 /plumbing/object/commit_walker_test.go
parent2bdfd91f04068220a72feeade31defc09f2a601e (diff)
downloadgo-git-2637279338ca9736c22b5e15fca916121ae8d089.tar.gz
*: migration from go-git-fixtures/v4 and go-git/gcfg
Diffstat (limited to 'plumbing/object/commit_walker_test.go')
-rw-r--r--plumbing/object/commit_walker_test.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/plumbing/object/commit_walker_test.go b/plumbing/object/commit_walker_test.go
index 628adaf..c47d68b 100644
--- a/plumbing/object/commit_walker_test.go
+++ b/plumbing/object/commit_walker_test.go
@@ -13,7 +13,7 @@ type CommitWalkerSuite struct {
var _ = Suite(&CommitWalkerSuite{})
func (s *CommitWalkerSuite) TestCommitPreIterator(c *C) {
- commit := s.commit(c, s.Fixture.Head)
+ commit := s.commit(c, plumbing.NewHash(s.Fixture.Head))
var commits []*Commit
NewCommitPreorderIter(commit, nil, nil).ForEach(func(c *Commit) error {
@@ -39,7 +39,7 @@ func (s *CommitWalkerSuite) TestCommitPreIterator(c *C) {
}
func (s *CommitWalkerSuite) TestCommitPreIteratorWithIgnore(c *C) {
- commit := s.commit(c, s.Fixture.Head)
+ commit := s.commit(c, plumbing.NewHash(s.Fixture.Head))
var commits []*Commit
NewCommitPreorderIter(commit, nil, []plumbing.Hash{
@@ -61,7 +61,7 @@ func (s *CommitWalkerSuite) TestCommitPreIteratorWithIgnore(c *C) {
}
func (s *CommitWalkerSuite) TestCommitPreIteratorWithSeenExternal(c *C) {
- commit := s.commit(c, s.Fixture.Head)
+ commit := s.commit(c, plumbing.NewHash(s.Fixture.Head))
var commits []*Commit
seenExternal := map[plumbing.Hash]bool{
@@ -85,7 +85,7 @@ func (s *CommitWalkerSuite) TestCommitPreIteratorWithSeenExternal(c *C) {
}
func (s *CommitWalkerSuite) TestCommitPostIterator(c *C) {
- commit := s.commit(c, s.Fixture.Head)
+ commit := s.commit(c, plumbing.NewHash(s.Fixture.Head))
var commits []*Commit
NewCommitPostorderIter(commit, nil).ForEach(func(c *Commit) error {
@@ -112,7 +112,7 @@ func (s *CommitWalkerSuite) TestCommitPostIterator(c *C) {
}
func (s *CommitWalkerSuite) TestCommitPostIteratorWithIgnore(c *C) {
- commit := s.commit(c, s.Fixture.Head)
+ commit := s.commit(c, plumbing.NewHash(s.Fixture.Head))
var commits []*Commit
NewCommitPostorderIter(commit, []plumbing.Hash{
@@ -134,7 +134,7 @@ func (s *CommitWalkerSuite) TestCommitPostIteratorWithIgnore(c *C) {
}
func (s *CommitWalkerSuite) TestCommitCTimeIterator(c *C) {
- commit := s.commit(c, s.Fixture.Head)
+ commit := s.commit(c, plumbing.NewHash(s.Fixture.Head))
var commits []*Commit
NewCommitIterCTime(commit, nil, nil).ForEach(func(c *Commit) error {
@@ -160,7 +160,7 @@ func (s *CommitWalkerSuite) TestCommitCTimeIterator(c *C) {
}
func (s *CommitWalkerSuite) TestCommitCTimeIteratorWithIgnore(c *C) {
- commit := s.commit(c, s.Fixture.Head)
+ commit := s.commit(c, plumbing.NewHash(s.Fixture.Head))
var commits []*Commit
NewCommitIterCTime(commit, nil, []plumbing.Hash{
@@ -182,7 +182,7 @@ func (s *CommitWalkerSuite) TestCommitCTimeIteratorWithIgnore(c *C) {
}
func (s *CommitWalkerSuite) TestCommitBSFIterator(c *C) {
- commit := s.commit(c, s.Fixture.Head)
+ commit := s.commit(c, plumbing.NewHash(s.Fixture.Head))
var commits []*Commit
NewCommitIterBSF(commit, nil, nil).ForEach(func(c *Commit) error {
@@ -208,7 +208,7 @@ func (s *CommitWalkerSuite) TestCommitBSFIterator(c *C) {
}
func (s *CommitWalkerSuite) TestCommitBSFIteratorWithIgnore(c *C) {
- commit := s.commit(c, s.Fixture.Head)
+ commit := s.commit(c, plumbing.NewHash(s.Fixture.Head))
var commits []*Commit
NewCommitIterBSF(commit, nil, []plumbing.Hash{