mocks

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

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

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

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

func (*ProductService) GetFeatureByID

func (_m *ProductService) GetFeatureByID(ctx context.Context, id string) (product.Feature, error)

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

func (*ProductService) List

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

type ProductService_Expecter

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

func (*ProductService_Expecter) GetByID

func (_e *ProductService_Expecter) GetByID(ctx interface{}, id interface{}) *ProductService_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*ProductService_Expecter) GetFeatureByID

func (_e *ProductService_Expecter) GetFeatureByID(ctx interface{}, id interface{}) *ProductService_GetFeatureByID_Call

GetFeatureByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*ProductService_Expecter) List

func (_e *ProductService_Expecter) List(ctx interface{}, f interface{}) *ProductService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • f product.Filter

type ProductService_GetByID_Call

type ProductService_GetByID_Call struct {
	*mock.Call
}

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

func (*ProductService_GetByID_Call) Return

func (*ProductService_GetByID_Call) Run

func (*ProductService_GetByID_Call) RunAndReturn

type ProductService_GetFeatureByID_Call

type ProductService_GetFeatureByID_Call struct {
	*mock.Call
}

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

func (*ProductService_GetFeatureByID_Call) Return

func (*ProductService_GetFeatureByID_Call) Run

func (*ProductService_GetFeatureByID_Call) RunAndReturn

type ProductService_List_Call

type ProductService_List_Call struct {
	*mock.Call
}

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

func (*ProductService_List_Call) Return

func (*ProductService_List_Call) Run

func (*ProductService_List_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) List

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

type SubscriptionService_Expecter

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

func (*SubscriptionService_Expecter) List

func (_e *SubscriptionService_Expecter) List(ctx interface{}, filter interface{}) *SubscriptionService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • filter subscription.Filter

type SubscriptionService_List_Call

type SubscriptionService_List_Call struct {
	*mock.Call
}

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

func (*SubscriptionService_List_Call) Return

func (*SubscriptionService_List_Call) Run

func (*SubscriptionService_List_Call) RunAndReturn

Jump to

Keyboard shortcuts

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