github.com/bartle-stripe/trillian@v1.2.1/storage/cache/mock_node_storage.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/google/trillian/storage/cache (interfaces: NodeStorage) 3 4 // Package cache is a generated GoMock package. 5 package cache 6 7 import ( 8 gomock "github.com/golang/mock/gomock" 9 storage "github.com/google/trillian/storage" 10 storagepb "github.com/google/trillian/storage/storagepb" 11 reflect "reflect" 12 ) 13 14 // MockNodeStorage is a mock of NodeStorage interface 15 type MockNodeStorage struct { 16 ctrl *gomock.Controller 17 recorder *MockNodeStorageMockRecorder 18 } 19 20 // MockNodeStorageMockRecorder is the mock recorder for MockNodeStorage 21 type MockNodeStorageMockRecorder struct { 22 mock *MockNodeStorage 23 } 24 25 // NewMockNodeStorage creates a new mock instance 26 func NewMockNodeStorage(ctrl *gomock.Controller) *MockNodeStorage { 27 mock := &MockNodeStorage{ctrl: ctrl} 28 mock.recorder = &MockNodeStorageMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MockNodeStorage) EXPECT() *MockNodeStorageMockRecorder { 34 return m.recorder 35 } 36 37 // GetSubtree mocks base method 38 func (m *MockNodeStorage) GetSubtree(arg0 storage.NodeID) (*storagepb.SubtreeProto, error) { 39 ret := m.ctrl.Call(m, "GetSubtree", arg0) 40 ret0, _ := ret[0].(*storagepb.SubtreeProto) 41 ret1, _ := ret[1].(error) 42 return ret0, ret1 43 } 44 45 // GetSubtree indicates an expected call of GetSubtree 46 func (mr *MockNodeStorageMockRecorder) GetSubtree(arg0 interface{}) *gomock.Call { 47 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubtree", reflect.TypeOf((*MockNodeStorage)(nil).GetSubtree), arg0) 48 } 49 50 // SetSubtrees mocks base method 51 func (m *MockNodeStorage) SetSubtrees(arg0 []*storagepb.SubtreeProto) error { 52 ret := m.ctrl.Call(m, "SetSubtrees", arg0) 53 ret0, _ := ret[0].(error) 54 return ret0 55 } 56 57 // SetSubtrees indicates an expected call of SetSubtrees 58 func (mr *MockNodeStorageMockRecorder) SetSubtrees(arg0 interface{}) *gomock.Call { 59 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSubtrees", reflect.TypeOf((*MockNodeStorage)(nil).SetSubtrees), arg0) 60 }