diff options
author | Jeremy Stribling <strib@alum.mit.edu> | 2017-11-29 14:15:32 -0800 |
---|---|---|
committer | Jeremy Stribling <strib@alum.mit.edu> | 2017-11-29 14:29:19 -0800 |
commit | 4c1569511db5e1d26e42e9cd8dadb9e65ccafb20 (patch) | |
tree | 38e12de7c82d8c36d215775c13d17d3e566b2069 /plumbing/storer/object_test.go | |
parent | b18457df6a1f75283d95999fde5c162ba1a19651 (diff) | |
download | go-git-4c1569511db5e1d26e42e9cd8dadb9e65ccafb20.tar.gz |
storer: separate loose and packed object mgmt into optional ifaces
Suggested by mcuadros.
Diffstat (limited to 'plumbing/storer/object_test.go')
-rw-r--r-- | plumbing/storer/object_test.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/plumbing/storer/object_test.go b/plumbing/storer/object_test.go index 9a6959d..6b4fe0f 100644 --- a/plumbing/storer/object_test.go +++ b/plumbing/storer/object_test.go @@ -3,7 +3,6 @@ package storer import ( "fmt" "testing" - "time" . "gopkg.in/check.v1" "gopkg.in/src-d/go-git.v4/plumbing" @@ -158,23 +157,3 @@ func (o *MockObjectStorage) IterEncodedObjects(t plumbing.ObjectType) (EncodedOb func (o *MockObjectStorage) Begin() Transaction { return nil } - -func (o *MockObjectStorage) ForEachObjectHash(fun func(plumbing.Hash) error) error { - return nil -} - -func (o *MockObjectStorage) LooseObjectTime(plumbing.Hash) (time.Time, error) { - return time.Time{}, plumbing.ErrObjectNotFound -} - -func (o *MockObjectStorage) DeleteLooseObject(plumbing.Hash) error { - return plumbing.ErrObjectNotFound -} - -func (o *MockObjectStorage) ObjectPacks() ([]plumbing.Hash, error) { - return nil, nil -} - -func (o *MockObjectStorage) DeleteOldObjectPackAndIndex(plumbing.Hash, time.Time) error { - return plumbing.ErrObjectNotFound -} |