MCPcopy Create free account
hub / github.com/go-git/go-git / EncodedObject

Method EncodedObject

plumbing/storer/object_test.go:155–162  ·  view source on GitHub ↗
(t plumbing.ObjectType, h plumbing.Hash)

Source from the content-addressed store, hash-verified

153}
154
155func (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
164func (o *MockObjectStorage) IterEncodedObjects(t plumbing.ObjectType) (EncodedObjectIter, error) {
165 return nil, nil

Callers

nothing calls this directly

Calls 1

HashMethod · 0.65

Tested by

no test coverage detected