Documentation ¶
Index ¶
- type OrganizationService
- type OrganizationService_Expecter
- type OrganizationService_MemberCount_Call
- func (_c *OrganizationService_MemberCount_Call) Return(_a0 int64, _a1 error) *OrganizationService_MemberCount_Call
- func (_c *OrganizationService_MemberCount_Call) Run(run func(ctx context.Context, orgID string)) *OrganizationService_MemberCount_Call
- func (_c *OrganizationService_MemberCount_Call) RunAndReturn(run func(context.Context, string) (int64, error)) *OrganizationService_MemberCount_Call
- type PlanService
- type PlanService_Expecter
- type PlanService_GetByID_Call
- func (_c *PlanService_GetByID_Call) Return(_a0 plan.Plan, _a1 error) *PlanService_GetByID_Call
- func (_c *PlanService_GetByID_Call) Run(run func(ctx context.Context, id string)) *PlanService_GetByID_Call
- func (_c *PlanService_GetByID_Call) RunAndReturn(run func(context.Context, string) (plan.Plan, error)) *PlanService_GetByID_Call
- type ProductService
- func (_m *ProductService) EXPECT() *ProductService_Expecter
- func (_m *ProductService) GetByID(ctx context.Context, id string) (product.Product, error)
- func (_m *ProductService) GetFeatureByID(ctx context.Context, id string) (product.Feature, error)
- func (_m *ProductService) List(ctx context.Context, f product.Filter) ([]product.Product, error)
- type ProductService_Expecter
- func (_e *ProductService_Expecter) GetByID(ctx interface{}, id interface{}) *ProductService_GetByID_Call
- func (_e *ProductService_Expecter) GetFeatureByID(ctx interface{}, id interface{}) *ProductService_GetFeatureByID_Call
- func (_e *ProductService_Expecter) List(ctx interface{}, f interface{}) *ProductService_List_Call
- type ProductService_GetByID_Call
- func (_c *ProductService_GetByID_Call) Return(_a0 product.Product, _a1 error) *ProductService_GetByID_Call
- func (_c *ProductService_GetByID_Call) Run(run func(ctx context.Context, id string)) *ProductService_GetByID_Call
- func (_c *ProductService_GetByID_Call) RunAndReturn(run func(context.Context, string) (product.Product, error)) *ProductService_GetByID_Call
- type ProductService_GetFeatureByID_Call
- func (_c *ProductService_GetFeatureByID_Call) Return(_a0 product.Feature, _a1 error) *ProductService_GetFeatureByID_Call
- func (_c *ProductService_GetFeatureByID_Call) Run(run func(ctx context.Context, id string)) *ProductService_GetFeatureByID_Call
- func (_c *ProductService_GetFeatureByID_Call) RunAndReturn(run func(context.Context, string) (product.Feature, error)) *ProductService_GetFeatureByID_Call
- type ProductService_List_Call
- func (_c *ProductService_List_Call) Return(_a0 []product.Product, _a1 error) *ProductService_List_Call
- func (_c *ProductService_List_Call) Run(run func(ctx context.Context, f product.Filter)) *ProductService_List_Call
- func (_c *ProductService_List_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Product, error)) *ProductService_List_Call
- type SubscriptionService
- type SubscriptionService_Expecter
- type SubscriptionService_List_Call
- func (_c *SubscriptionService_List_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionService_List_Call
- func (_c *SubscriptionService_List_Call) Run(run func(ctx context.Context, filter subscription.Filter)) *SubscriptionService_List_Call
- func (_c *SubscriptionService_List_Call) RunAndReturn(...) *SubscriptionService_List_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrganizationService ¶
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 (_m *OrganizationService) EXPECT() *OrganizationService_Expecter
func (*OrganizationService) MemberCount ¶
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 ¶
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 (_c *OrganizationService_MemberCount_Call) Return(_a0 int64, _a1 error) *OrganizationService_MemberCount_Call
func (*OrganizationService_MemberCount_Call) Run ¶
func (_c *OrganizationService_MemberCount_Call) Run(run func(ctx context.Context, orgID string)) *OrganizationService_MemberCount_Call
func (*OrganizationService_MemberCount_Call) RunAndReturn ¶
func (_c *OrganizationService_MemberCount_Call) RunAndReturn(run func(context.Context, string) (int64, error)) *OrganizationService_MemberCount_Call
type PlanService ¶
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
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 ¶
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 (_c *PlanService_GetByID_Call) Return(_a0 plan.Plan, _a1 error) *PlanService_GetByID_Call
func (*PlanService_GetByID_Call) Run ¶
func (_c *PlanService_GetByID_Call) Run(run func(ctx context.Context, id string)) *PlanService_GetByID_Call
func (*PlanService_GetByID_Call) RunAndReturn ¶
func (_c *PlanService_GetByID_Call) RunAndReturn(run func(context.Context, string) (plan.Plan, error)) *PlanService_GetByID_Call
type ProductService ¶
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 (_m *ProductService) EXPECT() *ProductService_Expecter
func (*ProductService) GetFeatureByID ¶
GetFeatureByID provides a mock function with given fields: ctx, id
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 ¶
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 (_c *ProductService_GetByID_Call) Return(_a0 product.Product, _a1 error) *ProductService_GetByID_Call
func (*ProductService_GetByID_Call) Run ¶
func (_c *ProductService_GetByID_Call) Run(run func(ctx context.Context, id string)) *ProductService_GetByID_Call
func (*ProductService_GetByID_Call) RunAndReturn ¶
func (_c *ProductService_GetByID_Call) RunAndReturn(run func(context.Context, string) (product.Product, error)) *ProductService_GetByID_Call
type ProductService_GetFeatureByID_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 (_c *ProductService_GetFeatureByID_Call) Return(_a0 product.Feature, _a1 error) *ProductService_GetFeatureByID_Call
func (*ProductService_GetFeatureByID_Call) Run ¶
func (_c *ProductService_GetFeatureByID_Call) Run(run func(ctx context.Context, id string)) *ProductService_GetFeatureByID_Call
func (*ProductService_GetFeatureByID_Call) RunAndReturn ¶
func (_c *ProductService_GetFeatureByID_Call) RunAndReturn(run func(context.Context, string) (product.Feature, error)) *ProductService_GetFeatureByID_Call
type ProductService_List_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 (_c *ProductService_List_Call) Return(_a0 []product.Product, _a1 error) *ProductService_List_Call
func (*ProductService_List_Call) Run ¶
func (_c *ProductService_List_Call) Run(run func(ctx context.Context, f product.Filter)) *ProductService_List_Call
func (*ProductService_List_Call) RunAndReturn ¶
func (_c *ProductService_List_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Product, error)) *ProductService_List_Call
type SubscriptionService ¶
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 (_m *SubscriptionService) EXPECT() *SubscriptionService_Expecter
func (*SubscriptionService) List ¶
func (_m *SubscriptionService) List(ctx context.Context, filter subscription.Filter) ([]subscription.Subscription, error)
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 ¶
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 (_c *SubscriptionService_List_Call) Return(_a0 []subscription.Subscription, _a1 error) *SubscriptionService_List_Call
func (*SubscriptionService_List_Call) Run ¶
func (_c *SubscriptionService_List_Call) Run(run func(ctx context.Context, filter subscription.Filter)) *SubscriptionService_List_Call
func (*SubscriptionService_List_Call) RunAndReturn ¶
func (_c *SubscriptionService_List_Call) RunAndReturn(run func(context.Context, subscription.Filter) ([]subscription.Subscription, error)) *SubscriptionService_List_Call