aboutsummaryrefslogtreecommitdiffstats
path: root/commit_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-14 18:21:10 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-14 18:21:10 +0200
commitf6fe29c80d11662a169806dcf413ecdedcb28fa3 (patch)
tree9958034c27521f720f8c5d83c12120ada196f48a /commit_test.go
parent91bf16b2336e6f80f0742be729582fe5fbbada83 (diff)
downloadgo-git-f6fe29c80d11662a169806dcf413ecdedcb28fa3.tar.gz
core: Storage, removing err returning *Storages
Diffstat (limited to 'commit_test.go')
-rw-r--r--commit_test.go8
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)
}
}