sigs.k8s.io/cluster-api-provider-azure@v1.14.3/controllers/nodelister_mock.go (about) 1 /* 2 Copyright The Kubernetes Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 // Code generated by MockGen. DO NOT EDIT. 18 // Source: azuremanagedmachinepool_reconciler.go 19 // 20 // Generated by this command: 21 // 22 // mockgen -destination nodelister_mock.go -package controllers -source azuremanagedmachinepool_reconciler.go Nodelister 23 // 24 25 // Package controllers is a generated GoMock package. 26 package controllers 27 28 import ( 29 context "context" 30 reflect "reflect" 31 32 armcompute "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5" 33 gomock "go.uber.org/mock/gomock" 34 ) 35 36 // MockNodeLister is a mock of NodeLister interface. 37 type MockNodeLister struct { 38 ctrl *gomock.Controller 39 recorder *MockNodeListerMockRecorder 40 } 41 42 // MockNodeListerMockRecorder is the mock recorder for MockNodeLister. 43 type MockNodeListerMockRecorder struct { 44 mock *MockNodeLister 45 } 46 47 // NewMockNodeLister creates a new mock instance. 48 func NewMockNodeLister(ctrl *gomock.Controller) *MockNodeLister { 49 mock := &MockNodeLister{ctrl: ctrl} 50 mock.recorder = &MockNodeListerMockRecorder{mock} 51 return mock 52 } 53 54 // EXPECT returns an object that allows the caller to indicate expected use. 55 func (m *MockNodeLister) EXPECT() *MockNodeListerMockRecorder { 56 return m.recorder 57 } 58 59 // List mocks base method. 60 func (m *MockNodeLister) List(arg0 context.Context, arg1 string) ([]armcompute.VirtualMachineScaleSet, error) { 61 m.ctrl.T.Helper() 62 ret := m.ctrl.Call(m, "List", arg0, arg1) 63 ret0, _ := ret[0].([]armcompute.VirtualMachineScaleSet) 64 ret1, _ := ret[1].(error) 65 return ret0, ret1 66 } 67 68 // List indicates an expected call of List. 69 func (mr *MockNodeListerMockRecorder) List(arg0, arg1 any) *gomock.Call { 70 mr.mock.ctrl.T.Helper() 71 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockNodeLister)(nil).List), arg0, arg1) 72 } 73 74 // ListInstances mocks base method. 75 func (m *MockNodeLister) ListInstances(arg0 context.Context, arg1, arg2 string) ([]armcompute.VirtualMachineScaleSetVM, error) { 76 m.ctrl.T.Helper() 77 ret := m.ctrl.Call(m, "ListInstances", arg0, arg1, arg2) 78 ret0, _ := ret[0].([]armcompute.VirtualMachineScaleSetVM) 79 ret1, _ := ret[1].(error) 80 return ret0, ret1 81 } 82 83 // ListInstances indicates an expected call of ListInstances. 84 func (mr *MockNodeListerMockRecorder) ListInstances(arg0, arg1, arg2 any) *gomock.Call { 85 mr.mock.ctrl.T.Helper() 86 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListInstances", reflect.TypeOf((*MockNodeLister)(nil).ListInstances), arg0, arg1, arg2) 87 }