diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-14 18:21:10 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-14 18:21:10 +0200 |
commit | f6fe29c80d11662a169806dcf413ecdedcb28fa3 (patch) | |
tree | 9958034c27521f720f8c5d83c12120ada196f48a /commit_test.go | |
parent | 91bf16b2336e6f80f0742be729582fe5fbbada83 (diff) | |
download | go-git-f6fe29c80d11662a169806dcf413ecdedcb28fa3.tar.gz |
core: Storage, removing err returning *Storages
Diffstat (limited to 'commit_test.go')
-rw-r--r-- | commit_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/commit_test.go b/commit_test.go index 5d009e0..c9a17c0 100644 --- a/commit_test.go +++ b/commit_test.go @@ -42,7 +42,7 @@ var commitIterTests = []struct { func (s *SuiteCommit) TestIterSlice(c *C) { for i, t := range commitIterTests { r := s.repos[t.repo] - iter := NewCommitIter(r, core.NewObjectSliceIter(makeObjectSlice(t.commits, r.os))) + iter := NewCommitIter(r, core.NewObjectSliceIter(makeObjectSlice(t.commits, r.s.ObjectStorage()))) s.checkIter(c, r, i, iter, t.commits) } } @@ -50,7 +50,7 @@ func (s *SuiteCommit) TestIterSlice(c *C) { func (s *SuiteCommit) TestIterLookup(c *C) { for i, t := range commitIterTests { r := s.repos[t.repo] - iter := NewCommitIter(r, core.NewObjectLookupIter(r.os, makeHashSlice(t.commits))) + iter := NewCommitIter(r, core.NewObjectLookupIter(r.s.ObjectStorage(), makeHashSlice(t.commits))) s.checkIter(c, r, i, iter, t.commits) } } @@ -68,7 +68,7 @@ func (s *SuiteCommit) checkIter(c *C, r *Repository, subtest int, iter *CommitIt func (s *SuiteCommit) TestIterSliceClose(c *C) { for i, t := range commitIterTests { r := s.repos[t.repo] - iter := NewCommitIter(r, core.NewObjectSliceIter(makeObjectSlice(t.commits, r.os))) + iter := NewCommitIter(r, core.NewObjectSliceIter(makeObjectSlice(t.commits, r.s.ObjectStorage()))) s.checkIterClose(c, i, iter) } } @@ -76,7 +76,7 @@ func (s *SuiteCommit) TestIterSliceClose(c *C) { func (s *SuiteCommit) TestIterLookupClose(c *C) { for i, t := range commitIterTests { r := s.repos[t.repo] - iter := NewCommitIter(r, core.NewObjectLookupIter(r.os, makeHashSlice(t.commits))) + iter := NewCommitIter(r, core.NewObjectLookupIter(r.s.ObjectStorage(), makeHashSlice(t.commits))) s.checkIterClose(c, i, iter) } } |