github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/runtime/automock/subscription_service.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package automock 4 5 import ( 6 context "context" 7 8 mock "github.com/stretchr/testify/mock" 9 ) 10 11 // SubscriptionService is an autogenerated mock type for the SubscriptionService type 12 type SubscriptionService struct { 13 mock.Mock 14 } 15 16 // SubscribeTenantToRuntime provides a mock function with given fields: ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region, subscriptionAppName 17 func (_m *SubscriptionService) SubscribeTenantToRuntime(ctx context.Context, providerID string, subaccountTenantID string, providerSubaccountID string, consumerTenantID string, region string, subscriptionAppName string) (bool, error) { 18 ret := _m.Called(ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region, subscriptionAppName) 19 20 var r0 bool 21 if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, string, string) bool); ok { 22 r0 = rf(ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region, subscriptionAppName) 23 } else { 24 r0 = ret.Get(0).(bool) 25 } 26 27 var r1 error 28 if rf, ok := ret.Get(1).(func(context.Context, string, string, string, string, string, string) error); ok { 29 r1 = rf(ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region, subscriptionAppName) 30 } else { 31 r1 = ret.Error(1) 32 } 33 34 return r0, r1 35 } 36 37 // UnsubscribeTenantFromRuntime provides a mock function with given fields: ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region 38 func (_m *SubscriptionService) UnsubscribeTenantFromRuntime(ctx context.Context, providerID string, subaccountTenantID string, providerSubaccountID string, consumerTenantID string, region string) (bool, error) { 39 ret := _m.Called(ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region) 40 41 var r0 bool 42 if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, string) bool); ok { 43 r0 = rf(ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region) 44 } else { 45 r0 = ret.Get(0).(bool) 46 } 47 48 var r1 error 49 if rf, ok := ret.Get(1).(func(context.Context, string, string, string, string, string) error); ok { 50 r1 = rf(ctx, providerID, subaccountTenantID, providerSubaccountID, consumerTenantID, region) 51 } else { 52 r1 = ret.Error(1) 53 } 54 55 return r0, r1 56 } 57 58 type mockConstructorTestingTNewSubscriptionService interface { 59 mock.TestingT 60 Cleanup(func()) 61 } 62 63 // NewSubscriptionService creates a new instance of SubscriptionService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 64 func NewSubscriptionService(t mockConstructorTestingTNewSubscriptionService) *SubscriptionService { 65 mock := &SubscriptionService{} 66 mock.Mock.Test(t) 67 68 t.Cleanup(func() { mock.AssertExpectations(t) }) 69 70 return mock 71 }