github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/worker/instancemutater/mocks/instancebroker_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/worker/instancemutater (interfaces: InstanceMutaterAPI)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/instancebroker_mock.go github.com/juju/juju/worker/instancemutater InstanceMutaterAPI
     7  //
     8  
     9  // Package mocks is a generated GoMock package.
    10  package mocks
    11  
    12  import (
    13  	reflect "reflect"
    14  
    15  	instancemutater "github.com/juju/juju/api/agent/instancemutater"
    16  	watcher "github.com/juju/juju/core/watcher"
    17  	names "github.com/juju/names/v5"
    18  	gomock "go.uber.org/mock/gomock"
    19  )
    20  
    21  // MockInstanceMutaterAPI is a mock of InstanceMutaterAPI interface.
    22  type MockInstanceMutaterAPI struct {
    23  	ctrl     *gomock.Controller
    24  	recorder *MockInstanceMutaterAPIMockRecorder
    25  }
    26  
    27  // MockInstanceMutaterAPIMockRecorder is the mock recorder for MockInstanceMutaterAPI.
    28  type MockInstanceMutaterAPIMockRecorder struct {
    29  	mock *MockInstanceMutaterAPI
    30  }
    31  
    32  // NewMockInstanceMutaterAPI creates a new mock instance.
    33  func NewMockInstanceMutaterAPI(ctrl *gomock.Controller) *MockInstanceMutaterAPI {
    34  	mock := &MockInstanceMutaterAPI{ctrl: ctrl}
    35  	mock.recorder = &MockInstanceMutaterAPIMockRecorder{mock}
    36  	return mock
    37  }
    38  
    39  // EXPECT returns an object that allows the caller to indicate expected use.
    40  func (m *MockInstanceMutaterAPI) EXPECT() *MockInstanceMutaterAPIMockRecorder {
    41  	return m.recorder
    42  }
    43  
    44  // Machine mocks base method.
    45  func (m *MockInstanceMutaterAPI) Machine(arg0 names.MachineTag) (instancemutater.MutaterMachine, error) {
    46  	m.ctrl.T.Helper()
    47  	ret := m.ctrl.Call(m, "Machine", arg0)
    48  	ret0, _ := ret[0].(instancemutater.MutaterMachine)
    49  	ret1, _ := ret[1].(error)
    50  	return ret0, ret1
    51  }
    52  
    53  // Machine indicates an expected call of Machine.
    54  func (mr *MockInstanceMutaterAPIMockRecorder) Machine(arg0 any) *gomock.Call {
    55  	mr.mock.ctrl.T.Helper()
    56  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Machine", reflect.TypeOf((*MockInstanceMutaterAPI)(nil).Machine), arg0)
    57  }
    58  
    59  // WatchModelMachines mocks base method.
    60  func (m *MockInstanceMutaterAPI) WatchModelMachines() (watcher.StringsWatcher, error) {
    61  	m.ctrl.T.Helper()
    62  	ret := m.ctrl.Call(m, "WatchModelMachines")
    63  	ret0, _ := ret[0].(watcher.StringsWatcher)
    64  	ret1, _ := ret[1].(error)
    65  	return ret0, ret1
    66  }
    67  
    68  // WatchModelMachines indicates an expected call of WatchModelMachines.
    69  func (mr *MockInstanceMutaterAPIMockRecorder) WatchModelMachines() *gomock.Call {
    70  	mr.mock.ctrl.T.Helper()
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WatchModelMachines", reflect.TypeOf((*MockInstanceMutaterAPI)(nil).WatchModelMachines))
    72  }