/
validator.go
39 lines (29 loc) · 1.18 KB
/
validator.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
// 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"
)
// Validator is an autogenerated mock type for the Validator type
type Validator struct {
mock.Mock
}
// Validate provides a mock function with given fields: ctx, basePath, files, services
func (_m *Validator) Validate(ctx context.Context, basePath string, files []string, services []v1alpha2.AssetWebhookService) (assethook.Result, error) {
ret := _m.Called(ctx, basePath, files, services)
var r0 assethook.Result
if rf, ok := ret.Get(0).(func(context.Context, string, []string, []v1alpha2.AssetWebhookService) assethook.Result); ok {
r0 = rf(ctx, basePath, files, services)
} else {
r0 = ret.Get(0).(assethook.Result)
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, string, []string, []v1alpha2.AssetWebhookService) error); ok {
r1 = rf(ctx, basePath, files, services)
} else {
r1 = ret.Error(1)
}
return r0, r1
}