(c *C)
| 63 | } |
| 64 | |
| 65 | func (s *ObjectSuite) TestObjectLookupIter(c *C) { |
| 66 | var count int |
| 67 | |
| 68 | storage := &MockObjectStorage{s.Objects} |
| 69 | i := NewEncodedObjectLookupIter(storage, plumbing.CommitObject, s.Hash) |
| 70 | err := i.ForEach(func(o plumbing.EncodedObject) error { |
| 71 | c.Assert(o, NotNil) |
| 72 | c.Assert(o.Hash().String(), Equals, s.Hash[count].String()) |
| 73 | count++ |
| 74 | return nil |
| 75 | }) |
| 76 | |
| 77 | c.Assert(err, IsNil) |
| 78 | i.Close() |
| 79 | } |
| 80 | |
| 81 | func (s *ObjectSuite) TestObjectSliceIter(c *C) { |
| 82 | var count int |
nothing calls this directly
no test coverage detected