github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/worker/charmdownloader/mocks/mock_watcher.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/core/watcher (interfaces: StringsWatcher) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package mocks -destination mocks/mock_watcher.go github.com/juju/juju/core/watcher StringsWatcher 7 // 8 9 // Package mocks is a generated GoMock package. 10 package mocks 11 12 import ( 13 reflect "reflect" 14 15 watcher "github.com/juju/juju/core/watcher" 16 gomock "go.uber.org/mock/gomock" 17 ) 18 19 // MockStringsWatcher is a mock of StringsWatcher interface. 20 type MockStringsWatcher struct { 21 ctrl *gomock.Controller 22 recorder *MockStringsWatcherMockRecorder 23 } 24 25 // MockStringsWatcherMockRecorder is the mock recorder for MockStringsWatcher. 26 type MockStringsWatcherMockRecorder struct { 27 mock *MockStringsWatcher 28 } 29 30 // NewMockStringsWatcher creates a new mock instance. 31 func NewMockStringsWatcher(ctrl *gomock.Controller) *MockStringsWatcher { 32 mock := &MockStringsWatcher{ctrl: ctrl} 33 mock.recorder = &MockStringsWatcherMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use. 38 func (m *MockStringsWatcher) EXPECT() *MockStringsWatcherMockRecorder { 39 return m.recorder 40 } 41 42 // Changes mocks base method. 43 func (m *MockStringsWatcher) Changes() watcher.StringsChannel { 44 m.ctrl.T.Helper() 45 ret := m.ctrl.Call(m, "Changes") 46 ret0, _ := ret[0].(watcher.StringsChannel) 47 return ret0 48 } 49 50 // Changes indicates an expected call of Changes. 51 func (mr *MockStringsWatcherMockRecorder) Changes() *gomock.Call { 52 mr.mock.ctrl.T.Helper() 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Changes", reflect.TypeOf((*MockStringsWatcher)(nil).Changes)) 54 } 55 56 // Kill mocks base method. 57 func (m *MockStringsWatcher) Kill() { 58 m.ctrl.T.Helper() 59 m.ctrl.Call(m, "Kill") 60 } 61 62 // Kill indicates an expected call of Kill. 63 func (mr *MockStringsWatcherMockRecorder) Kill() *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kill", reflect.TypeOf((*MockStringsWatcher)(nil).Kill)) 66 } 67 68 // Wait mocks base method. 69 func (m *MockStringsWatcher) Wait() error { 70 m.ctrl.T.Helper() 71 ret := m.ctrl.Call(m, "Wait") 72 ret0, _ := ret[0].(error) 73 return ret0 74 } 75 76 // Wait indicates an expected call of Wait. 77 func (mr *MockStringsWatcherMockRecorder) Wait() *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Wait", reflect.TypeOf((*MockStringsWatcher)(nil).Wait)) 80 }