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