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