github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/process/upgrade_kyma/automock/provisioner_input_creator.go (about) 1 // Code generated by mockery v2.3.0. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 internal "github.com/kyma-project/kyma-environment-broker/internal" 7 gqlschema "github.com/kyma-project/control-plane/components/provisioner/pkg/gqlschema" 8 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // ProvisionerInputCreator is an autogenerated mock type for the ProvisionerInputCreator type 13 type ProvisionerInputCreator struct { 14 mock.Mock 15 } 16 17 // AppendGlobalOverrides provides a mock function with given fields: overrides 18 func (_m *ProvisionerInputCreator) AppendGlobalOverrides(overrides []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator { 19 ret := _m.Called(overrides) 20 21 var r0 internal.ProvisionerInputCreator 22 if rf, ok := ret.Get(0).(func([]*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator); ok { 23 r0 = rf(overrides) 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 27 } 28 } 29 30 return r0 31 } 32 33 // AppendOverrides provides a mock function with given fields: component, overrides 34 func (_m *ProvisionerInputCreator) AppendOverrides(component string, overrides []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator { 35 ret := _m.Called(component, overrides) 36 37 var r0 internal.ProvisionerInputCreator 38 if rf, ok := ret.Get(0).(func(string, []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator); ok { 39 r0 = rf(component, overrides) 40 } else { 41 if ret.Get(0) != nil { 42 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 43 } 44 } 45 46 return r0 47 } 48 49 // CreateProvisionRuntimeInput provides a mock function with given fields: 50 func (_m *ProvisionerInputCreator) CreateProvisionRuntimeInput() (gqlschema.ProvisionRuntimeInput, error) { 51 ret := _m.Called() 52 53 var r0 gqlschema.ProvisionRuntimeInput 54 if rf, ok := ret.Get(0).(func() gqlschema.ProvisionRuntimeInput); ok { 55 r0 = rf() 56 } else { 57 r0 = ret.Get(0).(gqlschema.ProvisionRuntimeInput) 58 } 59 60 var r1 error 61 if rf, ok := ret.Get(1).(func() error); ok { 62 r1 = rf() 63 } else { 64 r1 = ret.Error(1) 65 } 66 67 return r0, r1 68 } 69 70 // CreateUpgradeRuntimeInput provides a mock function with given fields: 71 func (_m *ProvisionerInputCreator) CreateUpgradeRuntimeInput() (gqlschema.UpgradeRuntimeInput, error) { 72 ret := _m.Called() 73 74 var r0 gqlschema.UpgradeRuntimeInput 75 if rf, ok := ret.Get(0).(func() gqlschema.UpgradeRuntimeInput); ok { 76 r0 = rf() 77 } else { 78 r0 = ret.Get(0).(gqlschema.UpgradeRuntimeInput) 79 } 80 81 var r1 error 82 if rf, ok := ret.Get(1).(func() error); ok { 83 r1 = rf() 84 } else { 85 r1 = ret.Error(1) 86 } 87 88 return r0, r1 89 } 90 91 // CreateUpgradeShootInput provides a mock function with given fields: 92 func (_m *ProvisionerInputCreator) CreateUpgradeShootInput() (gqlschema.UpgradeShootInput, error) { 93 ret := _m.Called() 94 95 var r0 gqlschema.UpgradeShootInput 96 if rf, ok := ret.Get(0).(func() gqlschema.UpgradeShootInput); ok { 97 r0 = rf() 98 } else { 99 r0 = ret.Get(0).(gqlschema.UpgradeShootInput) 100 } 101 102 var r1 error 103 if rf, ok := ret.Get(1).(func() error); ok { 104 r1 = rf() 105 } else { 106 r1 = ret.Error(1) 107 } 108 109 return r0, r1 110 } 111 112 // EnableOptionalComponent provides a mock function with given fields: componentName 113 func (_m *ProvisionerInputCreator) EnableOptionalComponent(componentName string) internal.ProvisionerInputCreator { 114 ret := _m.Called(componentName) 115 116 var r0 internal.ProvisionerInputCreator 117 if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok { 118 r0 = rf(componentName) 119 } else { 120 if ret.Get(0) != nil { 121 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 122 } 123 } 124 125 return r0 126 } 127 128 // SetLabel provides a mock function with given fields: key, value 129 func (_m *ProvisionerInputCreator) SetLabel(key string, value string) internal.ProvisionerInputCreator { 130 ret := _m.Called(key, value) 131 132 var r0 internal.ProvisionerInputCreator 133 if rf, ok := ret.Get(0).(func(string, string) internal.ProvisionerInputCreator); ok { 134 r0 = rf(key, value) 135 } else { 136 if ret.Get(0) != nil { 137 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 138 } 139 } 140 141 return r0 142 } 143 144 // SetOverrides provides a mock function with given fields: component, overrides 145 func (_m *ProvisionerInputCreator) SetOverrides(component string, overrides []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator { 146 ret := _m.Called(component, overrides) 147 148 var r0 internal.ProvisionerInputCreator 149 if rf, ok := ret.Get(0).(func(string, []*gqlschema.ConfigEntryInput) internal.ProvisionerInputCreator); ok { 150 r0 = rf(component, overrides) 151 } else { 152 if ret.Get(0) != nil { 153 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 154 } 155 } 156 157 return r0 158 } 159 160 // SetProvisioningParameters provides a mock function with given fields: params 161 func (_m *ProvisionerInputCreator) SetProvisioningParameters(params internal.ProvisioningParameters) internal.ProvisionerInputCreator { 162 ret := _m.Called(params) 163 164 var r0 internal.ProvisionerInputCreator 165 if rf, ok := ret.Get(0).(func(internal.ProvisioningParameters) internal.ProvisionerInputCreator); ok { 166 r0 = rf(params) 167 } else { 168 if ret.Get(0) != nil { 169 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 170 } 171 } 172 173 return r0 174 } 175 176 // SetShootName provides a mock function with given fields: _a0 177 func (_m *ProvisionerInputCreator) SetShootName(_a0 string) internal.ProvisionerInputCreator { 178 ret := _m.Called(_a0) 179 180 var r0 internal.ProvisionerInputCreator 181 if rf, ok := ret.Get(0).(func(string) internal.ProvisionerInputCreator); ok { 182 r0 = rf(_a0) 183 } else { 184 if ret.Get(0) != nil { 185 r0 = ret.Get(0).(internal.ProvisionerInputCreator) 186 } 187 } 188 189 return r0 190 }