code.vegaprotocol.io/vega@v0.79.0/core/evtforward/mocks/witness_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/core/datasource/external/ethverifier (interfaces: Witness) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 time "time" 10 11 validators "code.vegaprotocol.io/vega/core/validators" 12 gomock "github.com/golang/mock/gomock" 13 ) 14 15 // MockWitness is a mock of Witness interface. 16 type MockWitness struct { 17 ctrl *gomock.Controller 18 recorder *MockWitnessMockRecorder 19 } 20 21 // MockWitnessMockRecorder is the mock recorder for MockWitness. 22 type MockWitnessMockRecorder struct { 23 mock *MockWitness 24 } 25 26 // NewMockWitness creates a new mock instance. 27 func NewMockWitness(ctrl *gomock.Controller) *MockWitness { 28 mock := &MockWitness{ctrl: ctrl} 29 mock.recorder = &MockWitnessMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockWitness) EXPECT() *MockWitnessMockRecorder { 35 return m.recorder 36 } 37 38 // RestoreResource mocks base method. 39 func (m *MockWitness) RestoreResource(arg0 validators.Resource, arg1 func(interface{}, bool)) error { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "RestoreResource", arg0, arg1) 42 ret0, _ := ret[0].(error) 43 return ret0 44 } 45 46 // RestoreResource indicates an expected call of RestoreResource. 47 func (mr *MockWitnessMockRecorder) RestoreResource(arg0, arg1 interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestoreResource", reflect.TypeOf((*MockWitness)(nil).RestoreResource), arg0, arg1) 50 } 51 52 // StartCheckWithDelay mocks base method. 53 func (m *MockWitness) StartCheckWithDelay(arg0 validators.Resource, arg1 func(interface{}, bool), arg2 time.Time, arg3 int64) error { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "StartCheckWithDelay", arg0, arg1, arg2, arg3) 56 ret0, _ := ret[0].(error) 57 return ret0 58 } 59 60 // StartCheckWithDelay indicates an expected call of StartCheckWithDelay. 61 func (mr *MockWitnessMockRecorder) StartCheckWithDelay(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartCheckWithDelay", reflect.TypeOf((*MockWitness)(nil).StartCheckWithDelay), arg0, arg1, arg2, arg3) 64 }