diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-11-07 20:29:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-07 20:29:58 +0100 |
commit | 0ff9ef2b44c53e557c78bde0fd9c29847e5f0e23 (patch) | |
tree | b9c7485fe99e6e89fa736ceb0223aeb2ecddb77c /core/object_test.go | |
parent | f6ed7424cbf33c7013332d7e95b4262a4bc4a523 (diff) | |
download | go-git-0ff9ef2b44c53e557c78bde0fd9c29847e5f0e23.tar.gz |
global storage interface refactor (#112)
* core: ObjectStorage, ReferenceStorage renamed to ObjectStorer and
ReferenceStorer
* rebase
* general, changes request by @alcortes
* general, changes request by @alcortes
Diffstat (limited to 'core/object_test.go')
-rw-r--r-- | core/object_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/object_test.go b/core/object_test.go index d087aae..5ebf26a 100644 --- a/core/object_test.go +++ b/core/object_test.go @@ -159,18 +159,18 @@ func (o *MockObjectStorage) NewObject() Object { return nil } -func (o *MockObjectStorage) Set(obj Object) (Hash, error) { +func (o *MockObjectStorage) SetObject(obj Object) (Hash, error) { return ZeroHash, nil } -func (o *MockObjectStorage) Get(t ObjectType, h Hash) (Object, error) { +func (o *MockObjectStorage) Object(t ObjectType, h Hash) (Object, error) { return &MemoryObject{h: h}, nil } -func (o *MockObjectStorage) Iter(t ObjectType) (ObjectIter, error) { +func (o *MockObjectStorage) IterObjects(t ObjectType) (ObjectIter, error) { return nil, nil } -func (o *MockObjectStorage) Begin() TxObjectStorage { +func (o *MockObjectStorage) Begin() Transaction { return nil } |