github.com/kyma-project/kyma/components/asset-store-controller-manager@v0.0.0-20191203152857-3792b5df17c5/internal/assethook/automock/metadata_extractor.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 context "context" 7 8 assethook "github.com/kyma-project/kyma/components/asset-store-controller-manager/internal/assethook" 9 10 mock "github.com/stretchr/testify/mock" 11 12 v1alpha2 "github.com/kyma-project/kyma/components/asset-store-controller-manager/pkg/apis/assetstore/v1alpha2" 13 ) 14 15 // MetadataExtractor is an autogenerated mock type for the MetadataExtractor type 16 type MetadataExtractor struct { 17 mock.Mock 18 } 19 20 // Extract provides a mock function with given fields: ctx, basePath, files, services 21 func (_m *MetadataExtractor) Extract(ctx context.Context, basePath string, files []string, services []v1alpha2.WebhookService) ([]assethook.File, error) { 22 ret := _m.Called(ctx, basePath, files, services) 23 24 var r0 []assethook.File 25 if rf, ok := ret.Get(0).(func(context.Context, string, []string, []v1alpha2.WebhookService) []assethook.File); ok { 26 r0 = rf(ctx, basePath, files, services) 27 } else { 28 if ret.Get(0) != nil { 29 r0 = ret.Get(0).([]assethook.File) 30 } 31 } 32 33 var r1 error 34 if rf, ok := ret.Get(1).(func(context.Context, string, []string, []v1alpha2.WebhookService) error); ok { 35 r1 = rf(ctx, basePath, files, services) 36 } else { 37 r1 = ret.Error(1) 38 } 39 40 return r0, r1 41 }