mocks

package
v0.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckoutService

type CheckoutService struct {
	mock.Mock
}

CheckoutService is an autogenerated mock type for the CheckoutService type

func NewCheckoutService

func NewCheckoutService(t interface {
	mock.TestingT
	Cleanup(func())
}) *CheckoutService

NewCheckoutService creates a new instance of CheckoutService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CheckoutService) Apply

Apply provides a mock function with given fields: ctx, ch

func (*CheckoutService) EXPECT

func (*CheckoutService) TriggerSyncByProviderID

func (_m *CheckoutService) TriggerSyncByProviderID(ctx context.Context, id string) error

TriggerSyncByProviderID provides a mock function with given fields: ctx, id

type CheckoutService_Apply_Call

type CheckoutService_Apply_Call struct {
	*mock.Call
}

CheckoutService_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'

func (*CheckoutService_Apply_Call) Return

func (*CheckoutService_Apply_Call) Run

type CheckoutService_Expecter

type CheckoutService_Expecter struct {
	// contains filtered or unexported fields
}

func (*CheckoutService_Expecter) Apply

func (_e *CheckoutService_Expecter) Apply(ctx interface{}, ch interface{}) *CheckoutService_Apply_Call

Apply is a helper method to define mock.On call

  • ctx context.Context
  • ch checkout.Checkout

func (*CheckoutService_Expecter) TriggerSyncByProviderID

func (_e *CheckoutService_Expecter) TriggerSyncByProviderID(ctx interface{}, id interface{}) *CheckoutService_TriggerSyncByProviderID_Call

TriggerSyncByProviderID is a helper method to define mock.On call

  • ctx context.Context
  • id string

type CheckoutService_TriggerSyncByProviderID_Call

type CheckoutService_TriggerSyncByProviderID_Call struct {
	*mock.Call
}

CheckoutService_TriggerSyncByProviderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerSyncByProviderID'

func (*CheckoutService_TriggerSyncByProviderID_Call) Return

func (*CheckoutService_TriggerSyncByProviderID_Call) Run

func (*CheckoutService_TriggerSyncByProviderID_Call) RunAndReturn

type CreditService

type CreditService struct {
	mock.Mock
}

CreditService is an autogenerated mock type for the CreditService type

func NewCreditService

func NewCreditService(t interface {
	mock.TestingT
	Cleanup(func())
}) *CreditService

NewCreditService creates a new instance of CreditService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CreditService) Add

func (_m *CreditService) Add(ctx context.Context, ch credit.Credit) error

Add provides a mock function with given fields: ctx, ch

func (*CreditService) EXPECT

func (_m *CreditService) EXPECT() *CreditService_Expecter

type CreditService_Add_Call

type CreditService_Add_Call struct {
	*mock.Call
}

CreditService_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'

func (*CreditService_Add_Call) Return

func (*CreditService_Add_Call) Run

func (*CreditService_Add_Call) RunAndReturn

type CreditService_Expecter

type CreditService_Expecter struct {
	// contains filtered or unexported fields
}

func (*CreditService_Expecter) Add

func (_e *CreditService_Expecter) Add(ctx interface{}, ch interface{}) *CreditService_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • ch credit.Credit

type CustomerService

type CustomerService struct {
	mock.Mock
}

CustomerService is an autogenerated mock type for the CustomerService type

func NewCustomerService

func NewCustomerService(t interface {
	mock.TestingT
	Cleanup(func())
}) *CustomerService

NewCustomerService creates a new instance of CustomerService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CustomerService) Create

func (_m *CustomerService) Create(ctx context.Context, _a1 customer.Customer, offline bool) (customer.Customer, error)

Create provides a mock function with given fields: ctx, _a1, offline

func (*CustomerService) EXPECT

func (*CustomerService) List

List provides a mock function with given fields: ctx, flt

func (*CustomerService) TriggerSyncByProviderID

func (_m *CustomerService) TriggerSyncByProviderID(ctx context.Context, id string) error

TriggerSyncByProviderID provides a mock function with given fields: ctx, id

type CustomerService_Create_Call

type CustomerService_Create_Call struct {
	*mock.Call
}

CustomerService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*CustomerService_Create_Call) Return

func (*CustomerService_Create_Call) Run

func (*CustomerService_Create_Call) RunAndReturn

type CustomerService_Expecter

type CustomerService_Expecter struct {
	// contains filtered or unexported fields
}

func (*CustomerService_Expecter) Create

func (_e *CustomerService_Expecter) Create(ctx interface{}, _a1 interface{}, offline interface{}) *CustomerService_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • _a1 customer.Customer
  • offline bool

func (*CustomerService_Expecter) List

func (_e *CustomerService_Expecter) List(ctx interface{}, flt interface{}) *CustomerService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt customer.Filter

func (*CustomerService_Expecter) TriggerSyncByProviderID

func (_e *CustomerService_Expecter) TriggerSyncByProviderID(ctx interface{}, id interface{}) *CustomerService_TriggerSyncByProviderID_Call

TriggerSyncByProviderID is a helper method to define mock.On call

  • ctx context.Context
  • id string

type CustomerService_List_Call

type CustomerService_List_Call struct {
	*mock.Call
}

CustomerService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*CustomerService_List_Call) Return

func (*CustomerService_List_Call) Run

func (*CustomerService_List_Call) RunAndReturn

type CustomerService_TriggerSyncByProviderID_Call

type CustomerService_TriggerSyncByProviderID_Call struct {
	*mock.Call
}

CustomerService_TriggerSyncByProviderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerSyncByProviderID'

func (*CustomerService_TriggerSyncByProviderID_Call) Return

func (*CustomerService_TriggerSyncByProviderID_Call) Run

func (*CustomerService_TriggerSyncByProviderID_Call) RunAndReturn

type InvoiceService added in v0.45.0

type InvoiceService struct {
	mock.Mock
}

InvoiceService is an autogenerated mock type for the InvoiceService type

func NewInvoiceService added in v0.45.0

func NewInvoiceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *InvoiceService

NewInvoiceService creates a new instance of InvoiceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*InvoiceService) EXPECT added in v0.45.0

func (*InvoiceService) TriggerSyncByProviderID added in v0.45.0

func (_m *InvoiceService) TriggerSyncByProviderID(ctx context.Context, id string) error

TriggerSyncByProviderID provides a mock function with given fields: ctx, id

type InvoiceService_Expecter added in v0.45.0

type InvoiceService_Expecter struct {
	// contains filtered or unexported fields
}

func (*InvoiceService_Expecter) TriggerSyncByProviderID added in v0.45.0

func (_e *InvoiceService_Expecter) TriggerSyncByProviderID(ctx interface{}, id interface{}) *InvoiceService_TriggerSyncByProviderID_Call

TriggerSyncByProviderID is a helper method to define mock.On call

  • ctx context.Context
  • id string

type InvoiceService_TriggerSyncByProviderID_Call added in v0.45.0

type InvoiceService_TriggerSyncByProviderID_Call struct {
	*mock.Call
}

InvoiceService_TriggerSyncByProviderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerSyncByProviderID'

func (*InvoiceService_TriggerSyncByProviderID_Call) Return added in v0.45.0

func (*InvoiceService_TriggerSyncByProviderID_Call) Run added in v0.45.0

func (*InvoiceService_TriggerSyncByProviderID_Call) RunAndReturn added in v0.45.0

type OrganizationService

type OrganizationService struct {
	mock.Mock
}

OrganizationService is an autogenerated mock type for the OrganizationService type

func NewOrganizationService

func NewOrganizationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *OrganizationService

NewOrganizationService creates a new instance of OrganizationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*OrganizationService) EXPECT

func (*OrganizationService) GetRaw

GetRaw provides a mock function with given fields: ctx, id

type OrganizationService_Expecter

type OrganizationService_Expecter struct {
	// contains filtered or unexported fields
}

func (*OrganizationService_Expecter) GetRaw

func (_e *OrganizationService_Expecter) GetRaw(ctx interface{}, id interface{}) *OrganizationService_GetRaw_Call

GetRaw is a helper method to define mock.On call

  • ctx context.Context
  • id string

type OrganizationService_GetRaw_Call

type OrganizationService_GetRaw_Call struct {
	*mock.Call
}

OrganizationService_GetRaw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRaw'

func (*OrganizationService_GetRaw_Call) Return

func (*OrganizationService_GetRaw_Call) Run

func (*OrganizationService_GetRaw_Call) RunAndReturn

type PlanService

type PlanService struct {
	mock.Mock
}

PlanService is an autogenerated mock type for the PlanService type

func NewPlanService

func NewPlanService(t interface {
	mock.TestingT
	Cleanup(func())
}) *PlanService

NewPlanService creates a new instance of PlanService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PlanService) EXPECT

func (_m *PlanService) EXPECT() *PlanService_Expecter

func (*PlanService) GetByID

func (_m *PlanService) GetByID(ctx context.Context, id string) (plan.Plan, error)

GetByID provides a mock function with given fields: ctx, id

type PlanService_Expecter

type PlanService_Expecter struct {
	// contains filtered or unexported fields
}

func (*PlanService_Expecter) GetByID

func (_e *PlanService_Expecter) GetByID(ctx interface{}, id interface{}) *PlanService_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

type PlanService_GetByID_Call

type PlanService_GetByID_Call struct {
	*mock.Call
}

PlanService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'

func (*PlanService_GetByID_Call) Return

func (*PlanService_GetByID_Call) Run

func (*PlanService_GetByID_Call) RunAndReturn

type SubscriptionService

type SubscriptionService struct {
	mock.Mock
}

SubscriptionService is an autogenerated mock type for the SubscriptionService type

func NewSubscriptionService

func NewSubscriptionService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SubscriptionService

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. The first argument is typically a *testing.T value.

func (*SubscriptionService) EXPECT

func (*SubscriptionService) TriggerSyncByProviderID

func (_m *SubscriptionService) TriggerSyncByProviderID(ctx context.Context, id string) error

TriggerSyncByProviderID provides a mock function with given fields: ctx, id

type SubscriptionService_Expecter

type SubscriptionService_Expecter struct {
	// contains filtered or unexported fields
}

func (*SubscriptionService_Expecter) TriggerSyncByProviderID

func (_e *SubscriptionService_Expecter) TriggerSyncByProviderID(ctx interface{}, id interface{}) *SubscriptionService_TriggerSyncByProviderID_Call

TriggerSyncByProviderID is a helper method to define mock.On call

  • ctx context.Context
  • id string

type SubscriptionService_TriggerSyncByProviderID_Call

type SubscriptionService_TriggerSyncByProviderID_Call struct {
	*mock.Call
}

SubscriptionService_TriggerSyncByProviderID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TriggerSyncByProviderID'

func (*SubscriptionService_TriggerSyncByProviderID_Call) Return

func (*SubscriptionService_TriggerSyncByProviderID_Call) Run

func (*SubscriptionService_TriggerSyncByProviderID_Call) RunAndReturn

type UserService

type UserService struct {
	mock.Mock
}

UserService is an autogenerated mock type for the UserService type

func NewUserService

func NewUserService(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserService

NewUserService creates a new instance of UserService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*UserService) EXPECT

func (_m *UserService) EXPECT() *UserService_Expecter

func (*UserService) ListByOrg

func (_m *UserService) ListByOrg(ctx context.Context, orgID string, roleFilter string) ([]user.User, error)

ListByOrg provides a mock function with given fields: ctx, orgID, roleFilter

type UserService_Expecter

type UserService_Expecter struct {
	// contains filtered or unexported fields
}

func (*UserService_Expecter) ListByOrg

func (_e *UserService_Expecter) ListByOrg(ctx interface{}, orgID interface{}, roleFilter interface{}) *UserService_ListByOrg_Call

ListByOrg is a helper method to define mock.On call

  • ctx context.Context
  • orgID string
  • roleFilter string

type UserService_ListByOrg_Call

type UserService_ListByOrg_Call struct {
	*mock.Call
}

UserService_ListByOrg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByOrg'

func (*UserService_ListByOrg_Call) Return

func (*UserService_ListByOrg_Call) Run

func (_c *UserService_ListByOrg_Call) Run(run func(ctx context.Context, orgID string, roleFilter string)) *UserService_ListByOrg_Call

func (*UserService_ListByOrg_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL