github.com/kyma-project/kyma-environment-broker@v0.0.1/cmd/subscriptioncleanup/cloudprovider/mocks/ProviderFactory.go (about)

     1  // Code generated by mockery v2.14.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	cloudprovider "github.com/kyma-project/kyma-environment-broker/cmd/subscriptioncleanup/cloudprovider"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	model "github.com/kyma-project/kyma-environment-broker/cmd/subscriptioncleanup/model"
    10  )
    11  
    12  // ProviderFactory is an autogenerated mock type for the ProviderFactory type
    13  type ProviderFactory struct {
    14  	mock.Mock
    15  }
    16  
    17  // New provides a mock function with given fields: hyperscalerType, secretData
    18  func (_m *ProviderFactory) New(hyperscalerType model.HyperscalerType, secretData map[string][]byte) (cloudprovider.ResourceCleaner, error) {
    19  	ret := _m.Called(hyperscalerType, secretData)
    20  
    21  	var r0 cloudprovider.ResourceCleaner
    22  	if rf, ok := ret.Get(0).(func(model.HyperscalerType, map[string][]byte) cloudprovider.ResourceCleaner); ok {
    23  		r0 = rf(hyperscalerType, secretData)
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).(cloudprovider.ResourceCleaner)
    27  		}
    28  	}
    29  
    30  	var r1 error
    31  	if rf, ok := ret.Get(1).(func(model.HyperscalerType, map[string][]byte) error); ok {
    32  		r1 = rf(hyperscalerType, secretData)
    33  	} else {
    34  		r1 = ret.Error(1)
    35  	}
    36  
    37  	return r0, r1
    38  }
    39  
    40  type mockConstructorTestingTNewProviderFactory interface {
    41  	mock.TestingT
    42  	Cleanup(func())
    43  }
    44  
    45  // NewProviderFactory creates a new instance of ProviderFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    46  func NewProviderFactory(t mockConstructorTestingTNewProviderFactory) *ProviderFactory {
    47  	mock := &ProviderFactory{}
    48  	mock.Mock.Test(t)
    49  
    50  	t.Cleanup(func() { mock.AssertExpectations(t) })
    51  
    52  	return mock
    53  }