code.vegaprotocol.io/vega@v0.79.0/core/blockchain/nullchain/mocks/mocks.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/core/blockchain/nullchain (interfaces: TimeService,ApplicationService) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 reflect "reflect" 10 time "time" 11 12 types "github.com/cometbft/cometbft/abci/types" 13 gomock "github.com/golang/mock/gomock" 14 ) 15 16 // MockTimeService is a mock of TimeService interface. 17 type MockTimeService struct { 18 ctrl *gomock.Controller 19 recorder *MockTimeServiceMockRecorder 20 } 21 22 // MockTimeServiceMockRecorder is the mock recorder for MockTimeService. 23 type MockTimeServiceMockRecorder struct { 24 mock *MockTimeService 25 } 26 27 // NewMockTimeService creates a new mock instance. 28 func NewMockTimeService(ctrl *gomock.Controller) *MockTimeService { 29 mock := &MockTimeService{ctrl: ctrl} 30 mock.recorder = &MockTimeServiceMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockTimeService) EXPECT() *MockTimeServiceMockRecorder { 36 return m.recorder 37 } 38 39 // GetTimeNow mocks base method. 40 func (m *MockTimeService) GetTimeNow() time.Time { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "GetTimeNow") 43 ret0, _ := ret[0].(time.Time) 44 return ret0 45 } 46 47 // GetTimeNow indicates an expected call of GetTimeNow. 48 func (mr *MockTimeServiceMockRecorder) GetTimeNow() *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTimeNow", reflect.TypeOf((*MockTimeService)(nil).GetTimeNow)) 51 } 52 53 // MockApplicationService is a mock of ApplicationService interface. 54 type MockApplicationService struct { 55 ctrl *gomock.Controller 56 recorder *MockApplicationServiceMockRecorder 57 } 58 59 // MockApplicationServiceMockRecorder is the mock recorder for MockApplicationService. 60 type MockApplicationServiceMockRecorder struct { 61 mock *MockApplicationService 62 } 63 64 // NewMockApplicationService creates a new mock instance. 65 func NewMockApplicationService(ctrl *gomock.Controller) *MockApplicationService { 66 mock := &MockApplicationService{ctrl: ctrl} 67 mock.recorder = &MockApplicationServiceMockRecorder{mock} 68 return mock 69 } 70 71 // EXPECT returns an object that allows the caller to indicate expected use. 72 func (m *MockApplicationService) EXPECT() *MockApplicationServiceMockRecorder { 73 return m.recorder 74 } 75 76 // Commit mocks base method. 77 func (m *MockApplicationService) Commit(arg0 context.Context, arg1 *types.RequestCommit) (*types.ResponseCommit, error) { 78 m.ctrl.T.Helper() 79 ret := m.ctrl.Call(m, "Commit", arg0, arg1) 80 ret0, _ := ret[0].(*types.ResponseCommit) 81 ret1, _ := ret[1].(error) 82 return ret0, ret1 83 } 84 85 // Commit indicates an expected call of Commit. 86 func (mr *MockApplicationServiceMockRecorder) Commit(arg0, arg1 interface{}) *gomock.Call { 87 mr.mock.ctrl.T.Helper() 88 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockApplicationService)(nil).Commit), arg0, arg1) 89 } 90 91 // FinalizeBlock mocks base method. 92 func (m *MockApplicationService) FinalizeBlock(arg0 context.Context, arg1 *types.RequestFinalizeBlock) (*types.ResponseFinalizeBlock, error) { 93 m.ctrl.T.Helper() 94 ret := m.ctrl.Call(m, "FinalizeBlock", arg0, arg1) 95 ret0, _ := ret[0].(*types.ResponseFinalizeBlock) 96 ret1, _ := ret[1].(error) 97 return ret0, ret1 98 } 99 100 // FinalizeBlock indicates an expected call of FinalizeBlock. 101 func (mr *MockApplicationServiceMockRecorder) FinalizeBlock(arg0, arg1 interface{}) *gomock.Call { 102 mr.mock.ctrl.T.Helper() 103 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FinalizeBlock", reflect.TypeOf((*MockApplicationService)(nil).FinalizeBlock), arg0, arg1) 104 } 105 106 // Info mocks base method. 107 func (m *MockApplicationService) Info(arg0 context.Context, arg1 *types.RequestInfo) (*types.ResponseInfo, error) { 108 m.ctrl.T.Helper() 109 ret := m.ctrl.Call(m, "Info", arg0, arg1) 110 ret0, _ := ret[0].(*types.ResponseInfo) 111 ret1, _ := ret[1].(error) 112 return ret0, ret1 113 } 114 115 // Info indicates an expected call of Info. 116 func (mr *MockApplicationServiceMockRecorder) Info(arg0, arg1 interface{}) *gomock.Call { 117 mr.mock.ctrl.T.Helper() 118 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Info", reflect.TypeOf((*MockApplicationService)(nil).Info), arg0, arg1) 119 } 120 121 // InitChain mocks base method. 122 func (m *MockApplicationService) InitChain(arg0 context.Context, arg1 *types.RequestInitChain) (*types.ResponseInitChain, error) { 123 m.ctrl.T.Helper() 124 ret := m.ctrl.Call(m, "InitChain", arg0, arg1) 125 ret0, _ := ret[0].(*types.ResponseInitChain) 126 ret1, _ := ret[1].(error) 127 return ret0, ret1 128 } 129 130 // InitChain indicates an expected call of InitChain. 131 func (mr *MockApplicationServiceMockRecorder) InitChain(arg0, arg1 interface{}) *gomock.Call { 132 mr.mock.ctrl.T.Helper() 133 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitChain", reflect.TypeOf((*MockApplicationService)(nil).InitChain), arg0, arg1) 134 } 135 136 // PrepareProposal mocks base method. 137 func (m *MockApplicationService) PrepareProposal(arg0 context.Context, arg1 *types.RequestPrepareProposal) (*types.ResponsePrepareProposal, error) { 138 m.ctrl.T.Helper() 139 ret := m.ctrl.Call(m, "PrepareProposal", arg0, arg1) 140 ret0, _ := ret[0].(*types.ResponsePrepareProposal) 141 ret1, _ := ret[1].(error) 142 return ret0, ret1 143 } 144 145 // PrepareProposal indicates an expected call of PrepareProposal. 146 func (mr *MockApplicationServiceMockRecorder) PrepareProposal(arg0, arg1 interface{}) *gomock.Call { 147 mr.mock.ctrl.T.Helper() 148 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareProposal", reflect.TypeOf((*MockApplicationService)(nil).PrepareProposal), arg0, arg1) 149 }