code.vegaprotocol.io/vega@v0.79.0/core/vegatime/mocks/time_service_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: code.vegaprotocol.io/vega/core/vegatime (interfaces: TimeService) 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 gomock "github.com/golang/mock/gomock" 13 ) 14 15 // MockTimeService is a mock of TimeService interface. 16 type MockTimeService struct { 17 ctrl *gomock.Controller 18 recorder *MockTimeServiceMockRecorder 19 } 20 21 // MockTimeServiceMockRecorder is the mock recorder for MockTimeService. 22 type MockTimeServiceMockRecorder struct { 23 mock *MockTimeService 24 } 25 26 // NewMockTimeService creates a new mock instance. 27 func NewMockTimeService(ctrl *gomock.Controller) *MockTimeService { 28 mock := &MockTimeService{ctrl: ctrl} 29 mock.recorder = &MockTimeServiceMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockTimeService) EXPECT() *MockTimeServiceMockRecorder { 35 return m.recorder 36 } 37 38 // GetTimeNow mocks base method. 39 func (m *MockTimeService) GetTimeNow() time.Time { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "GetTimeNow") 42 ret0, _ := ret[0].(time.Time) 43 return ret0 44 } 45 46 // GetTimeNow indicates an expected call of GetTimeNow. 47 func (mr *MockTimeServiceMockRecorder) GetTimeNow() *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTimeNow", reflect.TypeOf((*MockTimeService)(nil).GetTimeNow)) 50 } 51 52 // NotifyOnTick mocks base method. 53 func (m *MockTimeService) NotifyOnTick(arg0 ...func(context.Context, time.Time)) { 54 m.ctrl.T.Helper() 55 varargs := []interface{}{} 56 for _, a := range arg0 { 57 varargs = append(varargs, a) 58 } 59 m.ctrl.Call(m, "NotifyOnTick", varargs...) 60 } 61 62 // NotifyOnTick indicates an expected call of NotifyOnTick. 63 func (mr *MockTimeServiceMockRecorder) NotifyOnTick(arg0 ...interface{}) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyOnTick", reflect.TypeOf((*MockTimeService)(nil).NotifyOnTick), arg0...) 66 }