mocks

package
v0.0.0-test.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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, cred credit.Credit) error

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

func (*CreditService) EXPECT

func (_m *CreditService) EXPECT() *CreditService_Expecter

func (*CreditService) GetByID

func (_m *CreditService) GetByID(ctx context.Context, id string) (credit.Transaction, error)

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

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{}, cred interface{}) *CreditService_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • cred credit.Credit

func (*CreditService_Expecter) GetByID

func (_e *CreditService_Expecter) GetByID(ctx interface{}, id interface{}) *CreditService_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

type CreditService_GetByID_Call

type CreditService_GetByID_Call struct {
	*mock.Call
}

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

func (*CreditService_GetByID_Call) Return

func (*CreditService_GetByID_Call) Run

func (*CreditService_GetByID_Call) RunAndReturn

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) EXPECT

func (*CustomerService) GetByID

func (_m *CustomerService) GetByID(ctx context.Context, id string) (customer.Customer, error)

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

func (*CustomerService) List

func (_m *CustomerService) List(ctx context.Context, filter customer.Filter) ([]customer.Customer, error)

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

type CustomerService_Expecter

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

func (*CustomerService_Expecter) GetByID

func (_e *CustomerService_Expecter) GetByID(ctx interface{}, id interface{}) *CustomerService_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*CustomerService_Expecter) List

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

List is a helper method to define mock.On call

  • ctx context.Context
  • filter customer.Filter

type CustomerService_GetByID_Call

type CustomerService_GetByID_Call struct {
	*mock.Call
}

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

func (*CustomerService_GetByID_Call) Return

func (*CustomerService_GetByID_Call) Run

func (*CustomerService_GetByID_Call) RunAndReturn

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 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) MemberCount

func (_m *OrganizationService) MemberCount(ctx context.Context, orgID string) (int64, error)

MemberCount provides a mock function with given fields: ctx, orgID

type OrganizationService_Expecter

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

func (*OrganizationService_Expecter) MemberCount

func (_e *OrganizationService_Expecter) MemberCount(ctx interface{}, orgID interface{}) *OrganizationService_MemberCount_Call

MemberCount is a helper method to define mock.On call

  • ctx context.Context
  • orgID string

type OrganizationService_MemberCount_Call

type OrganizationService_MemberCount_Call struct {
	*mock.Call
}

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

func (*OrganizationService_MemberCount_Call) Return

func (*OrganizationService_MemberCount_Call) Run

func (*OrganizationService_MemberCount_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

func (*PlanService) List

func (_m *PlanService) List(ctx context.Context, filter plan.Filter) ([]plan.Plan, error)

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

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

func (*PlanService_Expecter) List

func (_e *PlanService_Expecter) List(ctx interface{}, filter interface{}) *PlanService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter plan.Filter

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 PlanService_List_Call

type PlanService_List_Call struct {
	*mock.Call
}

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

func (*PlanService_List_Call) Return

func (_c *PlanService_List_Call) Return(_a0 []plan.Plan, _a1 error) *PlanService_List_Call

func (*PlanService_List_Call) Run

func (_c *PlanService_List_Call) Run(run func(ctx context.Context, filter plan.Filter)) *PlanService_List_Call

func (*PlanService_List_Call) RunAndReturn

type ProductService

type ProductService struct {
	mock.Mock
}

ProductService is an autogenerated mock type for the ProductService type

func NewProductService

func NewProductService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProductService

NewProductService creates a new instance of ProductService. 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 (*ProductService) EXPECT

func (*ProductService) GetByProviderID

func (_m *ProductService) GetByProviderID(ctx context.Context, id string) (product.Product, error)

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

type ProductService_Expecter

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

func (*ProductService_Expecter) GetByProviderID

func (_e *ProductService_Expecter) GetByProviderID(ctx interface{}, id interface{}) *ProductService_GetByProviderID_Call

GetByProviderID is a helper method to define mock.On call

  • ctx context.Context
  • id string

type ProductService_GetByProviderID_Call

type ProductService_GetByProviderID_Call struct {
	*mock.Call
}

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

func (*ProductService_GetByProviderID_Call) Return

func (*ProductService_GetByProviderID_Call) Run

func (*ProductService_GetByProviderID_Call) RunAndReturn

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) Create

Create provides a mock function with given fields: ctx, subs

func (*Repository) Delete

func (_m *Repository) Delete(ctx context.Context, id string) error

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

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) GetByID

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

func (*Repository) GetByProviderID

func (_m *Repository) GetByProviderID(ctx context.Context, id string) (subscription.Subscription, error)

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

func (*Repository) List

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

func (*Repository) UpdateByID

UpdateByID provides a mock function with given fields: ctx, subs

type Repository_Create_Call

type Repository_Create_Call struct {
	*mock.Call
}

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

func (*Repository_Create_Call) Return

func (*Repository_Create_Call) Run

type Repository_Delete_Call

type Repository_Delete_Call struct {
	*mock.Call
}

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

func (*Repository_Delete_Call) Return

func (*Repository_Delete_Call) Run

func (*Repository_Delete_Call) RunAndReturn

type Repository_Expecter

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

func (*Repository_Expecter) Create

func (_e *Repository_Expecter) Create(ctx interface{}, subs interface{}) *Repository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • subs subscription.Subscription

func (*Repository_Expecter) Delete

func (_e *Repository_Expecter) Delete(ctx interface{}, id interface{}) *Repository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Repository_Expecter) GetByID

func (_e *Repository_Expecter) GetByID(ctx interface{}, id interface{}) *Repository_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Repository_Expecter) GetByProviderID

func (_e *Repository_Expecter) GetByProviderID(ctx interface{}, id interface{}) *Repository_GetByProviderID_Call

GetByProviderID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*Repository_Expecter) List

func (_e *Repository_Expecter) List(ctx interface{}, filter interface{}) *Repository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter subscription.Filter

func (*Repository_Expecter) UpdateByID

func (_e *Repository_Expecter) UpdateByID(ctx interface{}, subs interface{}) *Repository_UpdateByID_Call

UpdateByID is a helper method to define mock.On call

  • ctx context.Context
  • subs subscription.Subscription

type Repository_GetByID_Call

type Repository_GetByID_Call struct {
	*mock.Call
}

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

func (*Repository_GetByID_Call) Return

func (*Repository_GetByID_Call) Run

func (*Repository_GetByID_Call) RunAndReturn

type Repository_GetByProviderID_Call

type Repository_GetByProviderID_Call struct {
	*mock.Call
}

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

func (*Repository_GetByProviderID_Call) Return

func (*Repository_GetByProviderID_Call) Run

func (*Repository_GetByProviderID_Call) RunAndReturn

type Repository_List_Call

type Repository_List_Call struct {
	*mock.Call
}

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

func (*Repository_List_Call) Return

func (*Repository_List_Call) Run

func (*Repository_List_Call) RunAndReturn

type Repository_UpdateByID_Call

type Repository_UpdateByID_Call struct {
	*mock.Call
}

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

func (*Repository_UpdateByID_Call) Return

func (*Repository_UpdateByID_Call) Run

Jump to

Keyboard shortcuts

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