mocks

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PricingResolver

type PricingResolver struct {
	mock.Mock
}

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 (*PricingResolver) Resolve

func (_m *PricingResolver) Resolve(ctx context.Context, providerCode string, slug string) catalog.Pricing

Resolve provides a mock function with given fields: ctx, providerCode, slug

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

type PricingResolver_Resolve_Call struct {
	*mock.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 (*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

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

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

func (_m *Service) ListModels(ctx context.Context, providerCode string) ([]catalog.Model, error)

ListModels provides a mock function with given fields: ctx, providerCode

func (*Service) ListProviders

func (_m *Service) ListProviders(ctx context.Context) ([]catalog.Provider, error)

ListProviders provides a mock function with given fields: ctx

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

type Service_ListModels_Call struct {
	*mock.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 (*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

type Service_ListProviders_Call

type Service_ListProviders_Call struct {
	*mock.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 (*Service_ListProviders_Call) Run

func (*Service_ListProviders_Call) RunAndReturn

type Syncer

type Syncer struct {
	mock.Mock
}

Syncer is an autogenerated mock type for the Syncer type

func NewSyncer

func NewSyncer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Syncer

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

func (*Syncer) Sync

func (_m *Syncer) Sync(ctx context.Context) error

Sync provides a mock function with given fields: ctx

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

type Syncer_Sync_Call struct {
	*mock.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

Jump to

Keyboard shortcuts

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