github.com/juju/juju@v0.0.0-20240327075706-a90865de2538/worker/filenotifywatcher/watcher_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/worker/filenotifywatcher (interfaces: FileNotifyWatcher,FileWatcher) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package filenotifywatcher -destination watcher_mock_test.go github.com/juju/juju/worker/filenotifywatcher FileNotifyWatcher,FileWatcher 7 // 8 9 // Package filenotifywatcher is a generated GoMock package. 10 package filenotifywatcher 11 12 import ( 13 reflect "reflect" 14 15 gomock "go.uber.org/mock/gomock" 16 ) 17 18 // MockFileNotifyWatcher is a mock of FileNotifyWatcher interface. 19 type MockFileNotifyWatcher struct { 20 ctrl *gomock.Controller 21 recorder *MockFileNotifyWatcherMockRecorder 22 } 23 24 // MockFileNotifyWatcherMockRecorder is the mock recorder for MockFileNotifyWatcher. 25 type MockFileNotifyWatcherMockRecorder struct { 26 mock *MockFileNotifyWatcher 27 } 28 29 // NewMockFileNotifyWatcher creates a new mock instance. 30 func NewMockFileNotifyWatcher(ctrl *gomock.Controller) *MockFileNotifyWatcher { 31 mock := &MockFileNotifyWatcher{ctrl: ctrl} 32 mock.recorder = &MockFileNotifyWatcherMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockFileNotifyWatcher) EXPECT() *MockFileNotifyWatcherMockRecorder { 38 return m.recorder 39 } 40 41 // Changes mocks base method. 42 func (m *MockFileNotifyWatcher) Changes(arg0 string) (<-chan bool, error) { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "Changes", arg0) 45 ret0, _ := ret[0].(<-chan bool) 46 ret1, _ := ret[1].(error) 47 return ret0, ret1 48 } 49 50 // Changes indicates an expected call of Changes. 51 func (mr *MockFileNotifyWatcherMockRecorder) Changes(arg0 any) *gomock.Call { 52 mr.mock.ctrl.T.Helper() 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Changes", reflect.TypeOf((*MockFileNotifyWatcher)(nil).Changes), arg0) 54 } 55 56 // MockFileWatcher is a mock of FileWatcher interface. 57 type MockFileWatcher struct { 58 ctrl *gomock.Controller 59 recorder *MockFileWatcherMockRecorder 60 } 61 62 // MockFileWatcherMockRecorder is the mock recorder for MockFileWatcher. 63 type MockFileWatcherMockRecorder struct { 64 mock *MockFileWatcher 65 } 66 67 // NewMockFileWatcher creates a new mock instance. 68 func NewMockFileWatcher(ctrl *gomock.Controller) *MockFileWatcher { 69 mock := &MockFileWatcher{ctrl: ctrl} 70 mock.recorder = &MockFileWatcherMockRecorder{mock} 71 return mock 72 } 73 74 // EXPECT returns an object that allows the caller to indicate expected use. 75 func (m *MockFileWatcher) EXPECT() *MockFileWatcherMockRecorder { 76 return m.recorder 77 } 78 79 // Changes mocks base method. 80 func (m *MockFileWatcher) Changes() <-chan bool { 81 m.ctrl.T.Helper() 82 ret := m.ctrl.Call(m, "Changes") 83 ret0, _ := ret[0].(<-chan bool) 84 return ret0 85 } 86 87 // Changes indicates an expected call of Changes. 88 func (mr *MockFileWatcherMockRecorder) Changes() *gomock.Call { 89 mr.mock.ctrl.T.Helper() 90 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Changes", reflect.TypeOf((*MockFileWatcher)(nil).Changes)) 91 } 92 93 // Kill mocks base method. 94 func (m *MockFileWatcher) Kill() { 95 m.ctrl.T.Helper() 96 m.ctrl.Call(m, "Kill") 97 } 98 99 // Kill indicates an expected call of Kill. 100 func (mr *MockFileWatcherMockRecorder) Kill() *gomock.Call { 101 mr.mock.ctrl.T.Helper() 102 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kill", reflect.TypeOf((*MockFileWatcher)(nil).Kill)) 103 } 104 105 // Wait mocks base method. 106 func (m *MockFileWatcher) Wait() error { 107 m.ctrl.T.Helper() 108 ret := m.ctrl.Call(m, "Wait") 109 ret0, _ := ret[0].(error) 110 return ret0 111 } 112 113 // Wait indicates an expected call of Wait. 114 func (mr *MockFileWatcherMockRecorder) Wait() *gomock.Call { 115 mr.mock.ctrl.T.Helper() 116 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Wait", reflect.TypeOf((*MockFileWatcher)(nil).Wait)) 117 }