(c *C)
| 110 | } |
| 111 | |
| 112 | func (s *ObjectSuite) TestObjectSliceIterError(c *C) { |
| 113 | i := NewEncodedObjectSliceIter([]plumbing.EncodedObject{ |
| 114 | s.buildObject([]byte("foo")), |
| 115 | }) |
| 116 | |
| 117 | err := i.ForEach(func(plumbing.EncodedObject) error { |
| 118 | return fmt.Errorf("a random error") |
| 119 | }) |
| 120 | |
| 121 | c.Assert(err, NotNil) |
| 122 | } |
| 123 | |
| 124 | type MockObjectStorage struct { |
| 125 | db []plumbing.EncodedObject |
nothing calls this directly
no test coverage detected