github.com/kyma-project/kyma/components/asset-store-controller-manager@v0.0.0-20191203152857-3792b5df17c5/internal/assethook/automock/mutator.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  // Mutator is an autogenerated mock type for the Mutator type
    16  type Mutator struct {
    17  	mock.Mock
    18  }
    19  
    20  // Mutate provides a mock function with given fields: ctx, basePath, files, services
    21  func (_m *Mutator) Mutate(ctx context.Context, basePath string, files []string, services []v1alpha2.AssetWebhookService) (assethook.Result, error) {
    22  	ret := _m.Called(ctx, basePath, files, services)
    23  
    24  	var r0 assethook.Result
    25  	if rf, ok := ret.Get(0).(func(context.Context, string, []string, []v1alpha2.AssetWebhookService) assethook.Result); ok {
    26  		r0 = rf(ctx, basePath, files, services)
    27  	} else {
    28  		r0 = ret.Get(0).(assethook.Result)
    29  	}
    30  
    31  	var r1 error
    32  	if rf, ok := ret.Get(1).(func(context.Context, string, []string, []v1alpha2.AssetWebhookService) error); ok {
    33  		r1 = rf(ctx, basePath, files, services)
    34  	} else {
    35  		r1 = ret.Error(1)
    36  	}
    37  
    38  	return r0, r1
    39  }