(h plumbing.Hash)
| 134 | } |
| 135 | |
| 136 | func (o *MockObjectStorage) HasEncodedObject(h plumbing.Hash) error { |
| 137 | for _, o := range o.db { |
| 138 | if o.Hash() == h { |
| 139 | return nil |
| 140 | } |
| 141 | } |
| 142 | return plumbing.ErrObjectNotFound |
| 143 | } |
| 144 | |
| 145 | func (o *MockObjectStorage) EncodedObjectSize(h plumbing.Hash) ( |
| 146 | size int64, err error) { |