github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/apiserver/facades/controller/usersecrets/mocks/watcher.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/state (interfaces: StringsWatcher) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package mocks -destination mocks/watcher.go github.com/juju/juju/state StringsWatcher 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 // MockStringsWatcher is a mock of StringsWatcher interface. 19 type MockStringsWatcher struct { 20 ctrl *gomock.Controller 21 recorder *MockStringsWatcherMockRecorder 22 } 23 24 // MockStringsWatcherMockRecorder is the mock recorder for MockStringsWatcher. 25 type MockStringsWatcherMockRecorder struct { 26 mock *MockStringsWatcher 27 } 28 29 // NewMockStringsWatcher creates a new mock instance. 30 func NewMockStringsWatcher(ctrl *gomock.Controller) *MockStringsWatcher { 31 mock := &MockStringsWatcher{ctrl: ctrl} 32 mock.recorder = &MockStringsWatcherMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockStringsWatcher) EXPECT() *MockStringsWatcherMockRecorder { 38 return m.recorder 39 } 40 41 // Changes mocks base method. 42 func (m *MockStringsWatcher) Changes() <-chan []string { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "Changes") 45 ret0, _ := ret[0].(<-chan []string) 46 return ret0 47 } 48 49 // Changes indicates an expected call of Changes. 50 func (mr *MockStringsWatcherMockRecorder) Changes() *gomock.Call { 51 mr.mock.ctrl.T.Helper() 52 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Changes", reflect.TypeOf((*MockStringsWatcher)(nil).Changes)) 53 } 54 55 // Err mocks base method. 56 func (m *MockStringsWatcher) 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 *MockStringsWatcherMockRecorder) Err() *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockStringsWatcher)(nil).Err)) 67 } 68 69 // Kill mocks base method. 70 func (m *MockStringsWatcher) 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 *MockStringsWatcherMockRecorder) Kill() *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kill", reflect.TypeOf((*MockStringsWatcher)(nil).Kill)) 79 } 80 81 // Stop mocks base method. 82 func (m *MockStringsWatcher) 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 *MockStringsWatcherMockRecorder) Stop() *gomock.Call { 91 mr.mock.ctrl.T.Helper() 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockStringsWatcher)(nil).Stop)) 93 } 94 95 // Wait mocks base method. 96 func (m *MockStringsWatcher) 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 *MockStringsWatcherMockRecorder) Wait() *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Wait", reflect.TypeOf((*MockStringsWatcher)(nil).Wait)) 107 }