Method
EncodedObject
(t plumbing.ObjectType, h plumbing.Hash)
Source from the content-addressed store, hash-verified
| 153 | } |
| 154 | |
| 155 | func (o *MockObjectStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error) { |
| 156 | for _, o := range o.db { |
| 157 | if o.Hash() == h { |
| 158 | return o, nil |
| 159 | } |
| 160 | } |
| 161 | return nil, plumbing.ErrObjectNotFound |
| 162 | } |
| 163 | |
| 164 | func (o *MockObjectStorage) IterEncodedObjects(t plumbing.ObjectType) (EncodedObjectIter, error) { |
| 165 | return nil, nil |
Callers
nothing calls this directly
Tested by
no test coverage detected