github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/state/mocks/watcher_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/state/watcher (interfaces: BaseWatcher)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/watcher_mock.go github.com/juju/juju/state/watcher BaseWatcher
     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/state/watcher"
    16  	gomock "go.uber.org/mock/gomock"
    17  )
    18  
    19  // MockBaseWatcher is a mock of BaseWatcher interface.
    20  type MockBaseWatcher struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockBaseWatcherMockRecorder
    23  }
    24  
    25  // MockBaseWatcherMockRecorder is the mock recorder for MockBaseWatcher.
    26  type MockBaseWatcherMockRecorder struct {
    27  	mock *MockBaseWatcher
    28  }
    29  
    30  // NewMockBaseWatcher creates a new mock instance.
    31  func NewMockBaseWatcher(ctrl *gomock.Controller) *MockBaseWatcher {
    32  	mock := &MockBaseWatcher{ctrl: ctrl}
    33  	mock.recorder = &MockBaseWatcherMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockBaseWatcher) EXPECT() *MockBaseWatcherMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // Dead mocks base method.
    43  func (m *MockBaseWatcher) Dead() <-chan struct{} {
    44  	m.ctrl.T.Helper()
    45  	ret := m.ctrl.Call(m, "Dead")
    46  	ret0, _ := ret[0].(<-chan struct{})
    47  	return ret0
    48  }
    49  
    50  // Dead indicates an expected call of Dead.
    51  func (mr *MockBaseWatcherMockRecorder) Dead() *gomock.Call {
    52  	mr.mock.ctrl.T.Helper()
    53  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Dead", reflect.TypeOf((*MockBaseWatcher)(nil).Dead))
    54  }
    55  
    56  // Err mocks base method.
    57  func (m *MockBaseWatcher) Err() error {
    58  	m.ctrl.T.Helper()
    59  	ret := m.ctrl.Call(m, "Err")
    60  	ret0, _ := ret[0].(error)
    61  	return ret0
    62  }
    63  
    64  // Err indicates an expected call of Err.
    65  func (mr *MockBaseWatcherMockRecorder) Err() *gomock.Call {
    66  	mr.mock.ctrl.T.Helper()
    67  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockBaseWatcher)(nil).Err))
    68  }
    69  
    70  // Kill mocks base method.
    71  func (m *MockBaseWatcher) Kill() {
    72  	m.ctrl.T.Helper()
    73  	m.ctrl.Call(m, "Kill")
    74  }
    75  
    76  // Kill indicates an expected call of Kill.
    77  func (mr *MockBaseWatcherMockRecorder) Kill() *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Kill", reflect.TypeOf((*MockBaseWatcher)(nil).Kill))
    80  }
    81  
    82  // Unwatch mocks base method.
    83  func (m *MockBaseWatcher) Unwatch(arg0 string, arg1 any, arg2 chan<- watcher.Change) {
    84  	m.ctrl.T.Helper()
    85  	m.ctrl.Call(m, "Unwatch", arg0, arg1, arg2)
    86  }
    87  
    88  // Unwatch indicates an expected call of Unwatch.
    89  func (mr *MockBaseWatcherMockRecorder) Unwatch(arg0, arg1, arg2 any) *gomock.Call {
    90  	mr.mock.ctrl.T.Helper()
    91  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unwatch", reflect.TypeOf((*MockBaseWatcher)(nil).Unwatch), arg0, arg1, arg2)
    92  }
    93  
    94  // UnwatchCollection mocks base method.
    95  func (m *MockBaseWatcher) UnwatchCollection(arg0 string, arg1 chan<- watcher.Change) {
    96  	m.ctrl.T.Helper()
    97  	m.ctrl.Call(m, "UnwatchCollection", arg0, arg1)
    98  }
    99  
   100  // UnwatchCollection indicates an expected call of UnwatchCollection.
   101  func (mr *MockBaseWatcherMockRecorder) UnwatchCollection(arg0, arg1 any) *gomock.Call {
   102  	mr.mock.ctrl.T.Helper()
   103  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnwatchCollection", reflect.TypeOf((*MockBaseWatcher)(nil).UnwatchCollection), arg0, arg1)
   104  }
   105  
   106  // Wait mocks base method.
   107  func (m *MockBaseWatcher) Wait() error {
   108  	m.ctrl.T.Helper()
   109  	ret := m.ctrl.Call(m, "Wait")
   110  	ret0, _ := ret[0].(error)
   111  	return ret0
   112  }
   113  
   114  // Wait indicates an expected call of Wait.
   115  func (mr *MockBaseWatcherMockRecorder) Wait() *gomock.Call {
   116  	mr.mock.ctrl.T.Helper()
   117  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Wait", reflect.TypeOf((*MockBaseWatcher)(nil).Wait))
   118  }
   119  
   120  // Watch mocks base method.
   121  func (m *MockBaseWatcher) Watch(arg0 string, arg1 any, arg2 chan<- watcher.Change) {
   122  	m.ctrl.T.Helper()
   123  	m.ctrl.Call(m, "Watch", arg0, arg1, arg2)
   124  }
   125  
   126  // Watch indicates an expected call of Watch.
   127  func (mr *MockBaseWatcherMockRecorder) Watch(arg0, arg1, arg2 any) *gomock.Call {
   128  	mr.mock.ctrl.T.Helper()
   129  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockBaseWatcher)(nil).Watch), arg0, arg1, arg2)
   130  }
   131  
   132  // WatchCollection mocks base method.
   133  func (m *MockBaseWatcher) WatchCollection(arg0 string, arg1 chan<- watcher.Change) {
   134  	m.ctrl.T.Helper()
   135  	m.ctrl.Call(m, "WatchCollection", arg0, arg1)
   136  }
   137  
   138  // WatchCollection indicates an expected call of WatchCollection.
   139  func (mr *MockBaseWatcherMockRecorder) WatchCollection(arg0, arg1 any) *gomock.Call {
   140  	mr.mock.ctrl.T.Helper()
   141  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchCollection", reflect.TypeOf((*MockBaseWatcher)(nil).WatchCollection), arg0, arg1)
   142  }
   143  
   144  // WatchCollectionWithFilter mocks base method.
   145  func (m *MockBaseWatcher) WatchCollectionWithFilter(arg0 string, arg1 chan<- watcher.Change, arg2 func(any) bool) {
   146  	m.ctrl.T.Helper()
   147  	m.ctrl.Call(m, "WatchCollectionWithFilter", arg0, arg1, arg2)
   148  }
   149  
   150  // WatchCollectionWithFilter indicates an expected call of WatchCollectionWithFilter.
   151  func (mr *MockBaseWatcherMockRecorder) WatchCollectionWithFilter(arg0, arg1, arg2 any) *gomock.Call {
   152  	mr.mock.ctrl.T.Helper()
   153  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchCollectionWithFilter", reflect.TypeOf((*MockBaseWatcher)(nil).WatchCollectionWithFilter), arg0, arg1, arg2)
   154  }
   155  
   156  // WatchMulti mocks base method.
   157  func (m *MockBaseWatcher) WatchMulti(arg0 string, arg1 []any, arg2 chan<- watcher.Change) error {
   158  	m.ctrl.T.Helper()
   159  	ret := m.ctrl.Call(m, "WatchMulti", arg0, arg1, arg2)
   160  	ret0, _ := ret[0].(error)
   161  	return ret0
   162  }
   163  
   164  // WatchMulti indicates an expected call of WatchMulti.
   165  func (mr *MockBaseWatcherMockRecorder) WatchMulti(arg0, arg1, arg2 any) *gomock.Call {
   166  	mr.mock.ctrl.T.Helper()
   167  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchMulti", reflect.TypeOf((*MockBaseWatcher)(nil).WatchMulti), arg0, arg1, arg2)
   168  }