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

Method HasEncodedObject

plumbing/storer/object_test.go:136–143  ·  view source on GitHub ↗
(h plumbing.Hash)

Source from the content-addressed store, hash-verified

134}
135
136func (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
145func (o *MockObjectStorage) EncodedObjectSize(h plumbing.Hash) (
146 size int64, err error) {

Callers

nothing calls this directly

Calls 1

HashMethod · 0.65

Tested by

no test coverage detected