github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/worker/filenotifywatcher/clock_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/clock (interfaces: Clock,Timer) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package filenotifywatcher -destination clock_mock_test.go github.com/juju/clock Clock,Timer 7 // 8 9 // Package filenotifywatcher is a generated GoMock package. 10 package filenotifywatcher 11 12 import ( 13 reflect "reflect" 14 time "time" 15 16 clock "github.com/juju/clock" 17 gomock "go.uber.org/mock/gomock" 18 ) 19 20 // MockClock is a mock of Clock interface. 21 type MockClock struct { 22 ctrl *gomock.Controller 23 recorder *MockClockMockRecorder 24 } 25 26 // MockClockMockRecorder is the mock recorder for MockClock. 27 type MockClockMockRecorder struct { 28 mock *MockClock 29 } 30 31 // NewMockClock creates a new mock instance. 32 func NewMockClock(ctrl *gomock.Controller) *MockClock { 33 mock := &MockClock{ctrl: ctrl} 34 mock.recorder = &MockClockMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use. 39 func (m *MockClock) EXPECT() *MockClockMockRecorder { 40 return m.recorder 41 } 42 43 // After mocks base method. 44 func (m *MockClock) After(arg0 time.Duration) <-chan time.Time { 45 m.ctrl.T.Helper() 46 ret := m.ctrl.Call(m, "After", arg0) 47 ret0, _ := ret[0].(<-chan time.Time) 48 return ret0 49 } 50 51 // After indicates an expected call of After. 52 func (mr *MockClockMockRecorder) After(arg0 any) *gomock.Call { 53 mr.mock.ctrl.T.Helper() 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "After", reflect.TypeOf((*MockClock)(nil).After), arg0) 55 } 56 57 // AfterFunc mocks base method. 58 func (m *MockClock) AfterFunc(arg0 time.Duration, arg1 func()) clock.Timer { 59 m.ctrl.T.Helper() 60 ret := m.ctrl.Call(m, "AfterFunc", arg0, arg1) 61 ret0, _ := ret[0].(clock.Timer) 62 return ret0 63 } 64 65 // AfterFunc indicates an expected call of AfterFunc. 66 func (mr *MockClockMockRecorder) AfterFunc(arg0, arg1 any) *gomock.Call { 67 mr.mock.ctrl.T.Helper() 68 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AfterFunc", reflect.TypeOf((*MockClock)(nil).AfterFunc), arg0, arg1) 69 } 70 71 // NewTimer mocks base method. 72 func (m *MockClock) NewTimer(arg0 time.Duration) clock.Timer { 73 m.ctrl.T.Helper() 74 ret := m.ctrl.Call(m, "NewTimer", arg0) 75 ret0, _ := ret[0].(clock.Timer) 76 return ret0 77 } 78 79 // NewTimer indicates an expected call of NewTimer. 80 func (mr *MockClockMockRecorder) NewTimer(arg0 any) *gomock.Call { 81 mr.mock.ctrl.T.Helper() 82 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewTimer", reflect.TypeOf((*MockClock)(nil).NewTimer), arg0) 83 } 84 85 // Now mocks base method. 86 func (m *MockClock) Now() time.Time { 87 m.ctrl.T.Helper() 88 ret := m.ctrl.Call(m, "Now") 89 ret0, _ := ret[0].(time.Time) 90 return ret0 91 } 92 93 // Now indicates an expected call of Now. 94 func (mr *MockClockMockRecorder) Now() *gomock.Call { 95 mr.mock.ctrl.T.Helper() 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Now", reflect.TypeOf((*MockClock)(nil).Now)) 97 } 98 99 // MockTimer is a mock of Timer interface. 100 type MockTimer struct { 101 ctrl *gomock.Controller 102 recorder *MockTimerMockRecorder 103 } 104 105 // MockTimerMockRecorder is the mock recorder for MockTimer. 106 type MockTimerMockRecorder struct { 107 mock *MockTimer 108 } 109 110 // NewMockTimer creates a new mock instance. 111 func NewMockTimer(ctrl *gomock.Controller) *MockTimer { 112 mock := &MockTimer{ctrl: ctrl} 113 mock.recorder = &MockTimerMockRecorder{mock} 114 return mock 115 } 116 117 // EXPECT returns an object that allows the caller to indicate expected use. 118 func (m *MockTimer) EXPECT() *MockTimerMockRecorder { 119 return m.recorder 120 } 121 122 // Chan mocks base method. 123 func (m *MockTimer) Chan() <-chan time.Time { 124 m.ctrl.T.Helper() 125 ret := m.ctrl.Call(m, "Chan") 126 ret0, _ := ret[0].(<-chan time.Time) 127 return ret0 128 } 129 130 // Chan indicates an expected call of Chan. 131 func (mr *MockTimerMockRecorder) Chan() *gomock.Call { 132 mr.mock.ctrl.T.Helper() 133 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Chan", reflect.TypeOf((*MockTimer)(nil).Chan)) 134 } 135 136 // Reset mocks base method. 137 func (m *MockTimer) Reset(arg0 time.Duration) bool { 138 m.ctrl.T.Helper() 139 ret := m.ctrl.Call(m, "Reset", arg0) 140 ret0, _ := ret[0].(bool) 141 return ret0 142 } 143 144 // Reset indicates an expected call of Reset. 145 func (mr *MockTimerMockRecorder) Reset(arg0 any) *gomock.Call { 146 mr.mock.ctrl.T.Helper() 147 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockTimer)(nil).Reset), arg0) 148 } 149 150 // Stop mocks base method. 151 func (m *MockTimer) Stop() bool { 152 m.ctrl.T.Helper() 153 ret := m.ctrl.Call(m, "Stop") 154 ret0, _ := ret[0].(bool) 155 return ret0 156 } 157 158 // Stop indicates an expected call of Stop. 159 func (mr *MockTimerMockRecorder) Stop() *gomock.Call { 160 mr.mock.ctrl.T.Helper() 161 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockTimer)(nil).Stop)) 162 }