github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/process/input/automock/creator_for_plan.go (about) 1 // Code generated by mockery v2.14.0. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 gqlschema "github.com/kyma-project/control-plane/components/provisioner/pkg/gqlschema" 7 8 internal "github.com/kyma-project/kyma-environment-broker/internal" 9 10 mock "github.com/stretchr/testify/mock" 11 ) 12 13 // CreatorForPlan is an autogenerated mock type for the CreatorForPlan type 14 type CreatorForPlan struct { 15 mock.Mock 16 } 17 18 // CreateProvisionInput provides a mock function with given fields: parameters, version 19 func (_m *CreatorForPlan) CreateProvisionInput(parameters internal.ProvisioningParameters, version internal.RuntimeVersionData) (internal.ProvisionerInputCreator, error) { 20 ret := _m.Called(parameters, version) 21 22 var r0 internal.ProvisionerInputCreator 23 if rf, ok := ret.Get(0).(func(internal.ProvisioningParameters, internal.RuntimeVersionData) internal.ProvisionerInputCreator); ok { 24 r0 = rf(parameters, version) 25 } else { 26 if ret.Get(0) != nil { 27 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 28 } 29 } 30 31 var r1 error 32 if rf, ok := ret.Get(1).(func(internal.ProvisioningParameters, internal.RuntimeVersionData) error); ok { 33 r1 = rf(parameters, version) 34 } else { 35 r1 = ret.Error(1) 36 } 37 38 return r0, r1 39 } 40 41 // CreateUpgradeInput provides a mock function with given fields: parameters, version 42 func (_m *CreatorForPlan) CreateUpgradeInput(parameters internal.ProvisioningParameters, version internal.RuntimeVersionData) (internal.ProvisionerInputCreator, error) { 43 ret := _m.Called(parameters, version) 44 45 var r0 internal.ProvisionerInputCreator 46 if rf, ok := ret.Get(0).(func(internal.ProvisioningParameters, internal.RuntimeVersionData) internal.ProvisionerInputCreator); ok { 47 r0 = rf(parameters, version) 48 } else { 49 if ret.Get(0) != nil { 50 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 51 } 52 } 53 54 var r1 error 55 if rf, ok := ret.Get(1).(func(internal.ProvisioningParameters, internal.RuntimeVersionData) error); ok { 56 r1 = rf(parameters, version) 57 } else { 58 r1 = ret.Error(1) 59 } 60 61 return r0, r1 62 } 63 64 // CreateUpgradeShootInput provides a mock function with given fields: parameters, version 65 func (_m *CreatorForPlan) CreateUpgradeShootInput(parameters internal.ProvisioningParameters, version internal.RuntimeVersionData) (internal.ProvisionerInputCreator, error) { 66 ret := _m.Called(parameters, version) 67 68 var r0 internal.ProvisionerInputCreator 69 if rf, ok := ret.Get(0).(func(internal.ProvisioningParameters, internal.RuntimeVersionData) internal.ProvisionerInputCreator); ok { 70 r0 = rf(parameters, version) 71 } else { 72 if ret.Get(0) != nil { 73 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 74 } 75 } 76 77 var r1 error 78 if rf, ok := ret.Get(1).(func(internal.ProvisioningParameters, internal.RuntimeVersionData) error); ok { 79 r1 = rf(parameters, version) 80 } else { 81 r1 = ret.Error(1) 82 } 83 84 return r0, r1 85 } 86 87 // GetPlanDefaults provides a mock function with given fields: planID, platformProvider, parametersProvider 88 func (_m *CreatorForPlan) GetPlanDefaults(planID string, platformProvider internal.CloudProvider, parametersProvider *internal.CloudProvider) (*gqlschema.ClusterConfigInput, error) { 89 ret := _m.Called(planID, platformProvider, parametersProvider) 90 91 var r0 *gqlschema.ClusterConfigInput 92 if rf, ok := ret.Get(0).(func(string, internal.CloudProvider, *internal.CloudProvider) *gqlschema.ClusterConfigInput); ok { 93 r0 = rf(planID, platformProvider, parametersProvider) 94 } else { 95 if ret.Get(0) != nil { 96 r0 = ret.Get(0).(*gqlschema.ClusterConfigInput) 97 } 98 } 99 100 var r1 error 101 if rf, ok := ret.Get(1).(func(string, internal.CloudProvider, *internal.CloudProvider) error); ok { 102 r1 = rf(planID, platformProvider, parametersProvider) 103 } else { 104 r1 = ret.Error(1) 105 } 106 107 return r0, r1 108 } 109 110 // IsPlanSupport provides a mock function with given fields: planID 111 func (_m *CreatorForPlan) IsPlanSupport(planID string) bool { 112 ret := _m.Called(planID) 113 114 var r0 bool 115 if rf, ok := ret.Get(0).(func(string) bool); ok { 116 r0 = rf(planID) 117 } else { 118 r0 = ret.Get(0).(bool) 119 } 120 121 return r0 122 } 123 124 type mockConstructorTestingTNewCreatorForPlan interface { 125 mock.TestingT 126 Cleanup(func()) 127 } 128 129 // NewCreatorForPlan creates a new instance of CreatorForPlan. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 130 func NewCreatorForPlan(t mockConstructorTestingTNewCreatorForPlan) *CreatorForPlan { 131 mock := &CreatorForPlan{} 132 mock.Mock.Test(t) 133 134 t.Cleanup(func() { mock.AssertExpectations(t) }) 135 136 return mock 137 }