2018-10-02 02:48:11 +01:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: storj.io/storj/pkg/storage/segments (interfaces: Store)
|
|
|
|
|
|
|
|
// Package segments is a generated GoMock package.
|
|
|
|
package segments
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
io "io"
|
|
|
|
reflect "reflect"
|
|
|
|
time "time"
|
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
2018-10-16 12:43:44 +01:00
|
|
|
|
2018-10-02 02:48:11 +01:00
|
|
|
ranger "storj.io/storj/pkg/ranger"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockStore is a mock of Store interface
|
|
|
|
type MockStore struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockStoreMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockStoreMockRecorder is the mock recorder for MockStore
|
|
|
|
type MockStoreMockRecorder struct {
|
|
|
|
mock *MockStore
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockStore creates a new mock instance
|
|
|
|
func NewMockStore(ctrl *gomock.Controller) *MockStore {
|
|
|
|
mock := &MockStore{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockStoreMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockStore) EXPECT() *MockStoreMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2018-10-03 14:05:40 +01:00
|
|
|
// Delete mocks base method
|
2018-10-25 21:28:16 +01:00
|
|
|
func (m *MockStore) Delete(arg0 context.Context, arg1 string) error {
|
2018-10-03 14:05:40 +01:00
|
|
|
ret := m.ctrl.Call(m, "Delete", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
2018-10-02 02:48:11 +01:00
|
|
|
}
|
|
|
|
|
2018-10-03 14:05:40 +01:00
|
|
|
// Delete indicates an expected call of Delete
|
|
|
|
func (mr *MockStoreMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockStore)(nil).Delete), arg0, arg1)
|
2018-10-02 02:48:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Get mocks base method
|
2018-10-25 21:28:16 +01:00
|
|
|
func (m *MockStore) Get(arg0 context.Context, arg1 string) (ranger.Ranger, Meta, error) {
|
2018-10-03 14:05:40 +01:00
|
|
|
ret := m.ctrl.Call(m, "Get", arg0, arg1)
|
2018-10-02 02:48:11 +01:00
|
|
|
ret0, _ := ret[0].(ranger.Ranger)
|
|
|
|
ret1, _ := ret[1].(Meta)
|
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get indicates an expected call of Get
|
2018-10-03 14:05:40 +01:00
|
|
|
func (mr *MockStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockStore)(nil).Get), arg0, arg1)
|
2018-10-02 02:48:11 +01:00
|
|
|
}
|
|
|
|
|
2018-10-03 14:05:40 +01:00
|
|
|
// List mocks base method
|
2018-10-25 21:28:16 +01:00
|
|
|
func (m *MockStore) List(arg0 context.Context, arg1, arg2, arg3 string, arg4 bool, arg5 int, arg6 uint32) ([]ListItem, bool, error) {
|
2018-10-03 14:05:40 +01:00
|
|
|
ret := m.ctrl.Call(m, "List", arg0, arg1, arg2, arg3, arg4, arg5, arg6)
|
|
|
|
ret0, _ := ret[0].([]ListItem)
|
|
|
|
ret1, _ := ret[1].(bool)
|
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
2018-10-02 02:48:11 +01:00
|
|
|
}
|
|
|
|
|
2018-10-03 14:05:40 +01:00
|
|
|
// List indicates an expected call of List
|
|
|
|
func (mr *MockStoreMockRecorder) List(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockStore)(nil).List), arg0, arg1, arg2, arg3, arg4, arg5, arg6)
|
2018-10-02 02:48:11 +01:00
|
|
|
}
|
|
|
|
|
2018-10-03 14:05:40 +01:00
|
|
|
// Meta mocks base method
|
2018-10-25 21:28:16 +01:00
|
|
|
func (m *MockStore) Meta(arg0 context.Context, arg1 string) (Meta, error) {
|
2018-10-03 14:05:40 +01:00
|
|
|
ret := m.ctrl.Call(m, "Meta", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(Meta)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2018-10-02 02:48:11 +01:00
|
|
|
}
|
|
|
|
|
2018-10-03 14:05:40 +01:00
|
|
|
// Meta indicates an expected call of Meta
|
|
|
|
func (mr *MockStoreMockRecorder) Meta(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Meta", reflect.TypeOf((*MockStore)(nil).Meta), arg0, arg1)
|
2018-10-02 02:48:11 +01:00
|
|
|
}
|
|
|
|
|
2018-10-03 14:05:40 +01:00
|
|
|
// Put mocks base method
|
2018-10-25 21:28:16 +01:00
|
|
|
func (m *MockStore) Put(arg0 context.Context, arg1 io.Reader, arg2 time.Time, arg3 func() (string, []byte, error)) (Meta, error) {
|
2018-10-03 14:05:40 +01:00
|
|
|
ret := m.ctrl.Call(m, "Put", arg0, arg1, arg2, arg3)
|
|
|
|
ret0, _ := ret[0].(Meta)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2018-10-02 02:48:11 +01:00
|
|
|
}
|
|
|
|
|
2018-10-03 14:05:40 +01:00
|
|
|
// Put indicates an expected call of Put
|
|
|
|
func (mr *MockStoreMockRecorder) Put(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockStore)(nil).Put), arg0, arg1, arg2, arg3)
|
2018-10-02 02:48:11 +01:00
|
|
|
}
|