github.com/ChainSafe/chainbridge-core@v1.4.2/chains/evm/cli/bridge/mock/vote-proposal.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ./chains/evm/cli/bridge/vote-proposal.go 3 4 // Package mock_bridge is a generated GoMock package. 5 package mock_bridge 6 7 import ( 8 reflect "reflect" 9 10 transactor "github.com/ChainSafe/chainbridge-core/chains/evm/calls/transactor" 11 proposal "github.com/ChainSafe/chainbridge-core/chains/evm/executor/proposal" 12 common "github.com/ethereum/go-ethereum/common" 13 gomock "github.com/golang/mock/gomock" 14 ) 15 16 // MockVoter is a mock of Voter interface. 17 type MockVoter struct { 18 ctrl *gomock.Controller 19 recorder *MockVoterMockRecorder 20 } 21 22 // MockVoterMockRecorder is the mock recorder for MockVoter. 23 type MockVoterMockRecorder struct { 24 mock *MockVoter 25 } 26 27 // NewMockVoter creates a new mock instance. 28 func NewMockVoter(ctrl *gomock.Controller) *MockVoter { 29 mock := &MockVoter{ctrl: ctrl} 30 mock.recorder = &MockVoterMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockVoter) EXPECT() *MockVoterMockRecorder { 36 return m.recorder 37 } 38 39 // SimulateVoteProposal mocks base method. 40 func (m *MockVoter) SimulateVoteProposal(proposal *proposal.Proposal) error { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "SimulateVoteProposal", proposal) 43 ret0, _ := ret[0].(error) 44 return ret0 45 } 46 47 // SimulateVoteProposal indicates an expected call of SimulateVoteProposal. 48 func (mr *MockVoterMockRecorder) SimulateVoteProposal(proposal interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulateVoteProposal", reflect.TypeOf((*MockVoter)(nil).SimulateVoteProposal), proposal) 51 } 52 53 // VoteProposal mocks base method. 54 func (m *MockVoter) VoteProposal(proposal *proposal.Proposal, opts transactor.TransactOptions) (*common.Hash, error) { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "VoteProposal", proposal, opts) 57 ret0, _ := ret[0].(*common.Hash) 58 ret1, _ := ret[1].(error) 59 return ret0, ret1 60 } 61 62 // VoteProposal indicates an expected call of VoteProposal. 63 func (mr *MockVoterMockRecorder) VoteProposal(proposal, opts interface{}) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VoteProposal", reflect.TypeOf((*MockVoter)(nil).VoteProposal), proposal, opts) 66 }