github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/apiserver/facades/client/modelupgrader/mocks/agents_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/apiserver/common (interfaces: ToolsFinder) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package mocks -destination mocks/agents_mock.go github.com/juju/juju/apiserver/common ToolsFinder 7 // 8 9 // Package mocks is a generated GoMock package. 10 package mocks 11 12 import ( 13 reflect "reflect" 14 15 common "github.com/juju/juju/apiserver/common" 16 tools "github.com/juju/juju/tools" 17 gomock "go.uber.org/mock/gomock" 18 ) 19 20 // MockToolsFinder is a mock of ToolsFinder interface. 21 type MockToolsFinder struct { 22 ctrl *gomock.Controller 23 recorder *MockToolsFinderMockRecorder 24 } 25 26 // MockToolsFinderMockRecorder is the mock recorder for MockToolsFinder. 27 type MockToolsFinderMockRecorder struct { 28 mock *MockToolsFinder 29 } 30 31 // NewMockToolsFinder creates a new mock instance. 32 func NewMockToolsFinder(ctrl *gomock.Controller) *MockToolsFinder { 33 mock := &MockToolsFinder{ctrl: ctrl} 34 mock.recorder = &MockToolsFinderMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use. 39 func (m *MockToolsFinder) EXPECT() *MockToolsFinderMockRecorder { 40 return m.recorder 41 } 42 43 // FindAgents mocks base method. 44 func (m *MockToolsFinder) FindAgents(arg0 common.FindAgentsParams) (tools.List, error) { 45 m.ctrl.T.Helper() 46 ret := m.ctrl.Call(m, "FindAgents", arg0) 47 ret0, _ := ret[0].(tools.List) 48 ret1, _ := ret[1].(error) 49 return ret0, ret1 50 } 51 52 // FindAgents indicates an expected call of FindAgents. 53 func (mr *MockToolsFinderMockRecorder) FindAgents(arg0 any) *gomock.Call { 54 mr.mock.ctrl.T.Helper() 55 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindAgents", reflect.TypeOf((*MockToolsFinder)(nil).FindAgents), arg0) 56 }