github.com/kubeshop/testkube@v1.17.23/pkg/imageinspector/mock_infofetcher.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/kubeshop/testkube/pkg/imageinspector (interfaces: InfoFetcher) 3 4 // Package imageinspector is a generated GoMock package. 5 package imageinspector 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 v1 "k8s.io/api/core/v1" 13 ) 14 15 // MockInfoFetcher is a mock of InfoFetcher interface. 16 type MockInfoFetcher struct { 17 ctrl *gomock.Controller 18 recorder *MockInfoFetcherMockRecorder 19 } 20 21 // MockInfoFetcherMockRecorder is the mock recorder for MockInfoFetcher. 22 type MockInfoFetcherMockRecorder struct { 23 mock *MockInfoFetcher 24 } 25 26 // NewMockInfoFetcher creates a new mock instance. 27 func NewMockInfoFetcher(ctrl *gomock.Controller) *MockInfoFetcher { 28 mock := &MockInfoFetcher{ctrl: ctrl} 29 mock.recorder = &MockInfoFetcherMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockInfoFetcher) EXPECT() *MockInfoFetcherMockRecorder { 35 return m.recorder 36 } 37 38 // Fetch mocks base method. 39 func (m *MockInfoFetcher) Fetch(arg0 context.Context, arg1, arg2 string, arg3 []v1.Secret) (*Info, error) { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Fetch", arg0, arg1, arg2, arg3) 42 ret0, _ := ret[0].(*Info) 43 ret1, _ := ret[1].(error) 44 return ret0, ret1 45 } 46 47 // Fetch indicates an expected call of Fetch. 48 func (mr *MockInfoFetcherMockRecorder) Fetch(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fetch", reflect.TypeOf((*MockInfoFetcher)(nil).Fetch), arg0, arg1, arg2, arg3) 51 }