code.vegaprotocol.io/vega@v0.79.0/datanode/api/mocks/asset_service_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/datanode/api (interfaces: AssetService) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 entities "code.vegaprotocol.io/vega/datanode/entities" 12 gomock "github.com/golang/mock/gomock" 13 ) 14 15 // MockAssetService is a mock of AssetService interface. 16 type MockAssetService struct { 17 ctrl *gomock.Controller 18 recorder *MockAssetServiceMockRecorder 19 } 20 21 // MockAssetServiceMockRecorder is the mock recorder for MockAssetService. 22 type MockAssetServiceMockRecorder struct { 23 mock *MockAssetService 24 } 25 26 // NewMockAssetService creates a new mock instance. 27 func NewMockAssetService(ctrl *gomock.Controller) *MockAssetService { 28 mock := &MockAssetService{ctrl: ctrl} 29 mock.recorder = &MockAssetServiceMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockAssetService) EXPECT() *MockAssetServiceMockRecorder { 35 return m.recorder 36 } 37 38 // GetAll mocks base method. 39 func (m *MockAssetService) GetAll(arg0 context.Context) ([]entities.Asset, error) { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "GetAll", arg0) 42 ret0, _ := ret[0].([]entities.Asset) 43 ret1, _ := ret[1].(error) 44 return ret0, ret1 45 } 46 47 // GetAll indicates an expected call of GetAll. 48 func (mr *MockAssetServiceMockRecorder) GetAll(arg0 interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAll", reflect.TypeOf((*MockAssetService)(nil).GetAll), arg0) 51 } 52 53 // GetAllWithCursorPagination mocks base method. 54 func (m *MockAssetService) GetAllWithCursorPagination(arg0 context.Context, arg1 entities.CursorPagination) ([]entities.Asset, entities.PageInfo, error) { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "GetAllWithCursorPagination", arg0, arg1) 57 ret0, _ := ret[0].([]entities.Asset) 58 ret1, _ := ret[1].(entities.PageInfo) 59 ret2, _ := ret[2].(error) 60 return ret0, ret1, ret2 61 } 62 63 // GetAllWithCursorPagination indicates an expected call of GetAllWithCursorPagination. 64 func (mr *MockAssetServiceMockRecorder) GetAllWithCursorPagination(arg0, arg1 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllWithCursorPagination", reflect.TypeOf((*MockAssetService)(nil).GetAllWithCursorPagination), arg0, arg1) 67 } 68 69 // GetByID mocks base method. 70 func (m *MockAssetService) GetByID(arg0 context.Context, arg1 string) (entities.Asset, error) { 71 m.ctrl.T.Helper() 72 ret := m.ctrl.Call(m, "GetByID", arg0, arg1) 73 ret0, _ := ret[0].(entities.Asset) 74 ret1, _ := ret[1].(error) 75 return ret0, ret1 76 } 77 78 // GetByID indicates an expected call of GetByID. 79 func (mr *MockAssetServiceMockRecorder) GetByID(arg0, arg1 interface{}) *gomock.Call { 80 mr.mock.ctrl.T.Helper() 81 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByID", reflect.TypeOf((*MockAssetService)(nil).GetByID), arg0, arg1) 82 } 83 84 // GetByTxHash mocks base method. 85 func (m *MockAssetService) GetByTxHash(arg0 context.Context, arg1 entities.TxHash) ([]entities.Asset, error) { 86 m.ctrl.T.Helper() 87 ret := m.ctrl.Call(m, "GetByTxHash", arg0, arg1) 88 ret0, _ := ret[0].([]entities.Asset) 89 ret1, _ := ret[1].(error) 90 return ret0, ret1 91 } 92 93 // GetByTxHash indicates an expected call of GetByTxHash. 94 func (mr *MockAssetServiceMockRecorder) GetByTxHash(arg0, arg1 interface{}) *gomock.Call { 95 mr.mock.ctrl.T.Helper() 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByTxHash", reflect.TypeOf((*MockAssetService)(nil).GetByTxHash), arg0, arg1) 97 }