github.com/kyma-project/kyma/components/asset-store-controller-manager@v0.0.0-20191203152857-3792b5df17c5/internal/loader/automock/loader.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package automock
     4  
     5  import (
     6  	v1alpha2 "github.com/kyma-project/kyma/components/asset-store-controller-manager/pkg/apis/assetstore/v1alpha2"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // Loader is an autogenerated mock type for the Loader type
    11  type Loader struct {
    12  	mock.Mock
    13  }
    14  
    15  // Clean provides a mock function with given fields: path
    16  func (_m *Loader) Clean(path string) error {
    17  	ret := _m.Called(path)
    18  
    19  	var r0 error
    20  	if rf, ok := ret.Get(0).(func(string) error); ok {
    21  		r0 = rf(path)
    22  	} else {
    23  		r0 = ret.Error(0)
    24  	}
    25  
    26  	return r0
    27  }
    28  
    29  // Load provides a mock function with given fields: src, assetName, mode, filter
    30  func (_m *Loader) Load(src string, assetName string, mode v1alpha2.AssetMode, filter string) (string, []string, error) {
    31  	ret := _m.Called(src, assetName, mode, filter)
    32  
    33  	var r0 string
    34  	if rf, ok := ret.Get(0).(func(string, string, v1alpha2.AssetMode, string) string); ok {
    35  		r0 = rf(src, assetName, mode, filter)
    36  	} else {
    37  		r0 = ret.Get(0).(string)
    38  	}
    39  
    40  	var r1 []string
    41  	if rf, ok := ret.Get(1).(func(string, string, v1alpha2.AssetMode, string) []string); ok {
    42  		r1 = rf(src, assetName, mode, filter)
    43  	} else {
    44  		if ret.Get(1) != nil {
    45  			r1 = ret.Get(1).([]string)
    46  		}
    47  	}
    48  
    49  	var r2 error
    50  	if rf, ok := ret.Get(2).(func(string, string, v1alpha2.AssetMode, string) error); ok {
    51  		r2 = rf(src, assetName, mode, filter)
    52  	} else {
    53  		r2 = ret.Error(2)
    54  	}
    55  
    56  	return r0, r1, r2
    57  }