github.com/GoogleCloudPlatform/compute-image-tools/cli_tools@v0.0.0-20240516224744-de2dabc4ed1b/common/disk/mocks/mock_inspect.go (about) 1 // Copyright 2019 Google Inc. All Rights Reserved. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by MockGen. DO NOT EDIT. 16 // Source: inspect.go 17 18 // Package diskmocks is a generated GoMock package. 19 package diskmocks 20 21 import ( 22 reflect "reflect" 23 24 pb "github.com/GoogleCloudPlatform/compute-image-tools/proto/go/pb" 25 gomock "github.com/golang/mock/gomock" 26 ) 27 28 // MockInspector is a mock of Inspector interface. 29 type MockInspector struct { 30 ctrl *gomock.Controller 31 recorder *MockInspectorMockRecorder 32 } 33 34 // MockInspectorMockRecorder is the mock recorder for MockInspector. 35 type MockInspectorMockRecorder struct { 36 mock *MockInspector 37 } 38 39 // NewMockInspector creates a new mock instance. 40 func NewMockInspector(ctrl *gomock.Controller) *MockInspector { 41 mock := &MockInspector{ctrl: ctrl} 42 mock.recorder = &MockInspectorMockRecorder{mock} 43 return mock 44 } 45 46 // EXPECT returns an object that allows the caller to indicate expected use. 47 func (m *MockInspector) EXPECT() *MockInspectorMockRecorder { 48 return m.recorder 49 } 50 51 // Cancel mocks base method. 52 func (m *MockInspector) Cancel(reason string) bool { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "Cancel", reason) 55 ret0, _ := ret[0].(bool) 56 return ret0 57 } 58 59 // Cancel indicates an expected call of Cancel. 60 func (mr *MockInspectorMockRecorder) Cancel(reason interface{}) *gomock.Call { 61 mr.mock.ctrl.T.Helper() 62 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Cancel", reflect.TypeOf((*MockInspector)(nil).Cancel), reason) 63 } 64 65 // Inspect mocks base method. 66 func (m *MockInspector) Inspect(reference string) (*pb.InspectionResults, error) { 67 m.ctrl.T.Helper() 68 ret := m.ctrl.Call(m, "Inspect", reference) 69 ret0, _ := ret[0].(*pb.InspectionResults) 70 ret1, _ := ret[1].(error) 71 return ret0, ret1 72 } 73 74 // Inspect indicates an expected call of Inspect. 75 func (mr *MockInspectorMockRecorder) Inspect(reference interface{}) *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Inspect", reflect.TypeOf((*MockInspector)(nil).Inspect), reference) 78 }