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