github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/apptemplate/automock/self_register_manager.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 context "context" 7 8 resource "github.com/kyma-incubator/compass/components/director/pkg/resource" 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // SelfRegisterManager is an autogenerated mock type for the SelfRegisterManager type 13 type SelfRegisterManager struct { 14 mock.Mock 15 } 16 17 // CleanupSelfRegistration provides a mock function with given fields: ctx, selfRegisterLabelValue, region 18 func (_m *SelfRegisterManager) CleanupSelfRegistration(ctx context.Context, selfRegisterLabelValue string, region string) error { 19 ret := _m.Called(ctx, selfRegisterLabelValue, region) 20 21 var r0 error 22 if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok { 23 r0 = rf(ctx, selfRegisterLabelValue, region) 24 } else { 25 r0 = ret.Error(0) 26 } 27 28 return r0 29 } 30 31 // GetSelfRegDistinguishingLabelKey provides a mock function with given fields: 32 func (_m *SelfRegisterManager) GetSelfRegDistinguishingLabelKey() string { 33 ret := _m.Called() 34 35 var r0 string 36 if rf, ok := ret.Get(0).(func() string); ok { 37 r0 = rf() 38 } else { 39 r0 = ret.Get(0).(string) 40 } 41 42 return r0 43 } 44 45 // IsSelfRegistrationFlow provides a mock function with given fields: ctx, labels 46 func (_m *SelfRegisterManager) IsSelfRegistrationFlow(ctx context.Context, labels map[string]interface{}) (bool, error) { 47 ret := _m.Called(ctx, labels) 48 49 var r0 bool 50 if rf, ok := ret.Get(0).(func(context.Context, map[string]interface{}) bool); ok { 51 r0 = rf(ctx, labels) 52 } else { 53 r0 = ret.Get(0).(bool) 54 } 55 56 var r1 error 57 if rf, ok := ret.Get(1).(func(context.Context, map[string]interface{}) error); ok { 58 r1 = rf(ctx, labels) 59 } else { 60 r1 = ret.Error(1) 61 } 62 63 return r0, r1 64 } 65 66 // PrepareForSelfRegistration provides a mock function with given fields: ctx, resourceType, labels, id, validate 67 func (_m *SelfRegisterManager) PrepareForSelfRegistration(ctx context.Context, resourceType resource.Type, labels map[string]interface{}, id string, validate func() error) (map[string]interface{}, error) { 68 ret := _m.Called(ctx, resourceType, labels, id, validate) 69 70 var r0 map[string]interface{} 71 if rf, ok := ret.Get(0).(func(context.Context, resource.Type, map[string]interface{}, string, func() error) map[string]interface{}); ok { 72 r0 = rf(ctx, resourceType, labels, id, validate) 73 } else { 74 if ret.Get(0) != nil { 75 r0 = ret.Get(0).(map[string]interface{}) 76 } 77 } 78 79 var r1 error 80 if rf, ok := ret.Get(1).(func(context.Context, resource.Type, map[string]interface{}, string, func() error) error); ok { 81 r1 = rf(ctx, resourceType, labels, id, validate) 82 } else { 83 r1 = ret.Error(1) 84 } 85 86 return r0, r1 87 } 88 89 type mockConstructorTestingTNewSelfRegisterManager interface { 90 mock.TestingT 91 Cleanup(func()) 92 } 93 94 // NewSelfRegisterManager creates a new instance of SelfRegisterManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 95 func NewSelfRegisterManager(t mockConstructorTestingTNewSelfRegisterManager) *SelfRegisterManager { 96 mock := &SelfRegisterManager{} 97 mock.Mock.Test(t) 98 99 t.Cleanup(func() { mock.AssertExpectations(t) }) 100 101 return mock 102 }