Documentation
¶
Index ¶
- type PricingResolver
- type PricingResolver_Expecter
- type PricingResolver_Resolve_Call
- func (_c *PricingResolver_Resolve_Call) Return(_a0 catalog.Pricing) *PricingResolver_Resolve_Call
- func (_c *PricingResolver_Resolve_Call) Run(run func(ctx context.Context, providerCode string, slug string)) *PricingResolver_Resolve_Call
- func (_c *PricingResolver_Resolve_Call) RunAndReturn(run func(context.Context, string, string) catalog.Pricing) *PricingResolver_Resolve_Call
- type Service
- type Service_Expecter
- type Service_ListModels_Call
- func (_c *Service_ListModels_Call) Return(_a0 []catalog.Model, _a1 error) *Service_ListModels_Call
- func (_c *Service_ListModels_Call) Run(run func(ctx context.Context, providerCode string)) *Service_ListModels_Call
- func (_c *Service_ListModels_Call) RunAndReturn(run func(context.Context, string) ([]catalog.Model, error)) *Service_ListModels_Call
- type Service_ListProviders_Call
- func (_c *Service_ListProviders_Call) Return(_a0 []catalog.Provider, _a1 error) *Service_ListProviders_Call
- func (_c *Service_ListProviders_Call) Run(run func(ctx context.Context)) *Service_ListProviders_Call
- func (_c *Service_ListProviders_Call) RunAndReturn(run func(context.Context) ([]catalog.Provider, error)) *Service_ListProviders_Call
- type Syncer
- type Syncer_Expecter
- type Syncer_Sync_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PricingResolver ¶
PricingResolver is an autogenerated mock type for the PricingResolver type
func NewPricingResolver ¶
func NewPricingResolver(t interface {
mock.TestingT
Cleanup(func())
}) *PricingResolver
NewPricingResolver creates a new instance of PricingResolver. 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 (*PricingResolver) EXPECT ¶
func (_m *PricingResolver) EXPECT() *PricingResolver_Expecter
type PricingResolver_Expecter ¶
type PricingResolver_Expecter struct {
// contains filtered or unexported fields
}
func (*PricingResolver_Expecter) Resolve ¶
func (_e *PricingResolver_Expecter) Resolve(ctx interface{}, providerCode interface{}, slug interface{}) *PricingResolver_Resolve_Call
Resolve is a helper method to define mock.On call
- ctx context.Context
- providerCode string
- slug string
type PricingResolver_Resolve_Call ¶
PricingResolver_Resolve_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Resolve'
func (*PricingResolver_Resolve_Call) Return ¶
func (_c *PricingResolver_Resolve_Call) Return(_a0 catalog.Pricing) *PricingResolver_Resolve_Call
func (*PricingResolver_Resolve_Call) Run ¶
func (_c *PricingResolver_Resolve_Call) Run(run func(ctx context.Context, providerCode string, slug string)) *PricingResolver_Resolve_Call
func (*PricingResolver_Resolve_Call) RunAndReturn ¶
func (_c *PricingResolver_Resolve_Call) RunAndReturn(run func(context.Context, string, string) catalog.Pricing) *PricingResolver_Resolve_Call
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
NewService creates a new instance of Service. 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 (*Service) EXPECT ¶
func (_m *Service) EXPECT() *Service_Expecter
func (*Service) ListModels ¶
ListModels provides a mock function with given fields: ctx, providerCode
type Service_Expecter ¶
type Service_Expecter struct {
// contains filtered or unexported fields
}
func (*Service_Expecter) ListModels ¶
func (_e *Service_Expecter) ListModels(ctx interface{}, providerCode interface{}) *Service_ListModels_Call
ListModels is a helper method to define mock.On call
- ctx context.Context
- providerCode string
func (*Service_Expecter) ListProviders ¶
func (_e *Service_Expecter) ListProviders(ctx interface{}) *Service_ListProviders_Call
ListProviders is a helper method to define mock.On call
- ctx context.Context
type Service_ListModels_Call ¶
Service_ListModels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListModels'
func (*Service_ListModels_Call) Return ¶
func (_c *Service_ListModels_Call) Return(_a0 []catalog.Model, _a1 error) *Service_ListModels_Call
func (*Service_ListModels_Call) Run ¶
func (_c *Service_ListModels_Call) Run(run func(ctx context.Context, providerCode string)) *Service_ListModels_Call
func (*Service_ListModels_Call) RunAndReturn ¶
func (_c *Service_ListModels_Call) RunAndReturn(run func(context.Context, string) ([]catalog.Model, error)) *Service_ListModels_Call
type Service_ListProviders_Call ¶
Service_ListProviders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProviders'
func (*Service_ListProviders_Call) Return ¶
func (_c *Service_ListProviders_Call) Return(_a0 []catalog.Provider, _a1 error) *Service_ListProviders_Call
func (*Service_ListProviders_Call) Run ¶
func (_c *Service_ListProviders_Call) Run(run func(ctx context.Context)) *Service_ListProviders_Call
func (*Service_ListProviders_Call) RunAndReturn ¶
func (_c *Service_ListProviders_Call) RunAndReturn(run func(context.Context) ([]catalog.Provider, error)) *Service_ListProviders_Call
type Syncer ¶
Syncer is an autogenerated mock type for the Syncer type
func NewSyncer ¶
NewSyncer creates a new instance of Syncer. 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 (*Syncer) EXPECT ¶
func (_m *Syncer) EXPECT() *Syncer_Expecter
type Syncer_Expecter ¶
type Syncer_Expecter struct {
// contains filtered or unexported fields
}
func (*Syncer_Expecter) Sync ¶
func (_e *Syncer_Expecter) Sync(ctx interface{}) *Syncer_Sync_Call
Sync is a helper method to define mock.On call
- ctx context.Context
type Syncer_Sync_Call ¶
Syncer_Sync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sync'
func (*Syncer_Sync_Call) Return ¶
func (_c *Syncer_Sync_Call) Return(_a0 error) *Syncer_Sync_Call
func (*Syncer_Sync_Call) Run ¶
func (_c *Syncer_Sync_Call) Run(run func(ctx context.Context)) *Syncer_Sync_Call
func (*Syncer_Sync_Call) RunAndReturn ¶
func (_c *Syncer_Sync_Call) RunAndReturn(run func(context.Context) error) *Syncer_Sync_Call