github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/process/input/automock/optional_component_service.go (about) 1 // Code generated by mockery v2.14.0. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 internal "github.com/kyma-project/kyma-environment-broker/internal" 7 mock "github.com/stretchr/testify/mock" 8 9 runtime "github.com/kyma-project/kyma-environment-broker/internal/runtime" 10 ) 11 12 // OptionalComponentService is an autogenerated mock type for the OptionalComponentService type 13 type OptionalComponentService struct { 14 mock.Mock 15 } 16 17 // AddComponentToDisable provides a mock function with given fields: name, disabler 18 func (_m *OptionalComponentService) AddComponentToDisable(name string, disabler runtime.ComponentDisabler) { 19 _m.Called(name, disabler) 20 } 21 22 // ComputeComponentsToDisable provides a mock function with given fields: optComponentsToKeep 23 func (_m *OptionalComponentService) ComputeComponentsToDisable(optComponentsToKeep []string) []string { 24 ret := _m.Called(optComponentsToKeep) 25 26 var r0 []string 27 if rf, ok := ret.Get(0).(func([]string) []string); ok { 28 r0 = rf(optComponentsToKeep) 29 } else { 30 if ret.Get(0) != nil { 31 r0 = ret.Get(0).([]string) 32 } 33 } 34 35 return r0 36 } 37 38 // ExecuteDisablers provides a mock function with given fields: components, names 39 func (_m *OptionalComponentService) ExecuteDisablers(components internal.ComponentConfigurationInputList, names ...string) (internal.ComponentConfigurationInputList, error) { 40 _va := make([]interface{}, len(names)) 41 for _i := range names { 42 _va[_i] = names[_i] 43 } 44 var _ca []interface{} 45 _ca = append(_ca, components) 46 _ca = append(_ca, _va...) 47 ret := _m.Called(_ca...) 48 49 var r0 internal.ComponentConfigurationInputList 50 if rf, ok := ret.Get(0).(func(internal.ComponentConfigurationInputList, ...string) internal.ComponentConfigurationInputList); ok { 51 r0 = rf(components, names...) 52 } else { 53 if ret.Get(0) != nil { 54 r0 = ret.Get(0).(internal.ComponentConfigurationInputList) 55 } 56 } 57 58 var r1 error 59 if rf, ok := ret.Get(1).(func(internal.ComponentConfigurationInputList, ...string) error); ok { 60 r1 = rf(components, names...) 61 } else { 62 r1 = ret.Error(1) 63 } 64 65 return r0, r1 66 } 67 68 type mockConstructorTestingTNewOptionalComponentService interface { 69 mock.TestingT 70 Cleanup(func()) 71 } 72 73 // NewOptionalComponentService creates a new instance of OptionalComponentService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 74 func NewOptionalComponentService(t mockConstructorTestingTNewOptionalComponentService) *OptionalComponentService { 75 mock := &OptionalComponentService{} 76 mock.Mock.Test(t) 77 78 t.Cleanup(func() { mock.AssertExpectations(t) }) 79 80 return mock 81 }