github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/aagent/machine/machine_mock_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: machine.go
     3  
     4  // Package machine is a generated GoMock package.
     5  package machine
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  	sync "sync"
    11  
    12  	gomock "github.com/golang/mock/gomock"
    13  )
    14  
    15  // MockWatcherManager is a mock of WatcherManager interface.
    16  type MockWatcherManager struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockWatcherManagerMockRecorder
    19  }
    20  
    21  // MockWatcherManagerMockRecorder is the mock recorder for MockWatcherManager.
    22  type MockWatcherManagerMockRecorder struct {
    23  	mock *MockWatcherManager
    24  }
    25  
    26  // NewMockWatcherManager creates a new mock instance.
    27  func NewMockWatcherManager(ctrl *gomock.Controller) *MockWatcherManager {
    28  	mock := &MockWatcherManager{ctrl: ctrl}
    29  	mock.recorder = &MockWatcherManagerMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockWatcherManager) EXPECT() *MockWatcherManagerMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // Delete mocks base method.
    39  func (m *MockWatcherManager) Delete() {
    40  	m.ctrl.T.Helper()
    41  	m.ctrl.Call(m, "Delete")
    42  }
    43  
    44  // Delete indicates an expected call of Delete.
    45  func (mr *MockWatcherManagerMockRecorder) Delete() *gomock.Call {
    46  	mr.mock.ctrl.T.Helper()
    47  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockWatcherManager)(nil).Delete))
    48  }
    49  
    50  // NotifyStateChance mocks base method.
    51  func (m *MockWatcherManager) NotifyStateChance() {
    52  	m.ctrl.T.Helper()
    53  	m.ctrl.Call(m, "NotifyStateChance")
    54  }
    55  
    56  // NotifyStateChance indicates an expected call of NotifyStateChance.
    57  func (mr *MockWatcherManagerMockRecorder) NotifyStateChance() *gomock.Call {
    58  	mr.mock.ctrl.T.Helper()
    59  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotifyStateChance", reflect.TypeOf((*MockWatcherManager)(nil).NotifyStateChance))
    60  }
    61  
    62  // Run mocks base method.
    63  func (m *MockWatcherManager) Run(arg0 context.Context, arg1 *sync.WaitGroup) error {
    64  	m.ctrl.T.Helper()
    65  	ret := m.ctrl.Call(m, "Run", arg0, arg1)
    66  	ret0, _ := ret[0].(error)
    67  	return ret0
    68  }
    69  
    70  // Run indicates an expected call of Run.
    71  func (mr *MockWatcherManagerMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockWatcherManager)(nil).Run), arg0, arg1)
    74  }
    75  
    76  // SetMachine mocks base method.
    77  func (m *MockWatcherManager) SetMachine(arg0 any) error {
    78  	m.ctrl.T.Helper()
    79  	ret := m.ctrl.Call(m, "SetMachine", arg0)
    80  	ret0, _ := ret[0].(error)
    81  	return ret0
    82  }
    83  
    84  // SetMachine indicates an expected call of SetMachine.
    85  func (mr *MockWatcherManagerMockRecorder) SetMachine(arg0 interface{}) *gomock.Call {
    86  	mr.mock.ctrl.T.Helper()
    87  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMachine", reflect.TypeOf((*MockWatcherManager)(nil).SetMachine), arg0)
    88  }
    89  
    90  // WatcherState mocks base method.
    91  func (m *MockWatcherManager) WatcherState(watcher string) (any, bool) {
    92  	m.ctrl.T.Helper()
    93  	ret := m.ctrl.Call(m, "WatcherState", watcher)
    94  	ret0, _ := ret[0].(any)
    95  	ret1, _ := ret[1].(bool)
    96  	return ret0, ret1
    97  }
    98  
    99  // WatcherState indicates an expected call of WatcherState.
   100  func (mr *MockWatcherManagerMockRecorder) WatcherState(watcher interface{}) *gomock.Call {
   101  	mr.mock.ctrl.T.Helper()
   102  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatcherState", reflect.TypeOf((*MockWatcherManager)(nil).WatcherState), watcher)
   103  }