mocks

package
v1.0.0-beta.73 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 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 Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t mockConstructorTestingTNewProvider) *Provider

NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Provider) AddDefaultPlan

func (_m *Provider) AddDefaultPlan(ctx context.Context, accountId uuid.UUID) (bool, error)

AddDefaultPlan provides a mock function with given fields: ctx, accountId

func (*Provider) AddPlan

func (_m *Provider) AddPlan(ctx context.Context, accountId uuid.UUID, planId uuid.UUID) (bool, error)

AddPlan provides a mock function with given fields: ctx, accountId, planId

func (*Provider) CreateAccount

func (_m *Provider) CreateAccount(ctx context.Context, namespaceId string, name string) (uuid.UUID, error)

CreateAccount provides a mock function with given fields: ctx, namespaceId, name

func (*Provider) EXPECT

func (_m *Provider) EXPECT() *Provider_Expecter

func (*Provider) GetInvoiceById

func (_m *Provider) GetInvoiceById(ctx context.Context, accountId uuid.UUID, invoiceId string) (*api.ListInvoicesResponse, error)

GetInvoiceById provides a mock function with given fields: ctx, accountId, invoiceId

func (*Provider) GetInvoices

func (_m *Provider) GetInvoices(ctx context.Context, accountId uuid.UUID, r *api.ListInvoicesRequest) (*api.ListInvoicesResponse, error)

GetInvoices provides a mock function with given fields: ctx, accountId, r

func (*Provider) PushStorageEvents

func (_m *Provider) PushStorageEvents(ctx context.Context, events []*billing.StorageEvent) error

PushStorageEvents provides a mock function with given fields: ctx, events

func (*Provider) PushUsageEvents

func (_m *Provider) PushUsageEvents(ctx context.Context, events []*billing.UsageEvent) error

PushUsageEvents provides a mock function with given fields: ctx, events

type Provider_AddDefaultPlan_Call

type Provider_AddDefaultPlan_Call struct {
	*mock.Call
}

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

func (*Provider_AddDefaultPlan_Call) Return

func (*Provider_AddDefaultPlan_Call) Run

func (*Provider_AddDefaultPlan_Call) RunAndReturn

type Provider_AddPlan_Call

type Provider_AddPlan_Call struct {
	*mock.Call
}

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

func (*Provider_AddPlan_Call) Return

func (_c *Provider_AddPlan_Call) Return(_a0 bool, _a1 error) *Provider_AddPlan_Call

func (*Provider_AddPlan_Call) Run

func (_c *Provider_AddPlan_Call) Run(run func(ctx context.Context, accountId uuid.UUID, planId uuid.UUID)) *Provider_AddPlan_Call

func (*Provider_AddPlan_Call) RunAndReturn

type Provider_CreateAccount_Call

type Provider_CreateAccount_Call struct {
	*mock.Call
}

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

func (*Provider_CreateAccount_Call) Return

func (*Provider_CreateAccount_Call) Run

func (_c *Provider_CreateAccount_Call) Run(run func(ctx context.Context, namespaceId string, name string)) *Provider_CreateAccount_Call

func (*Provider_CreateAccount_Call) RunAndReturn

type Provider_Expecter

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

func (*Provider_Expecter) AddDefaultPlan

func (_e *Provider_Expecter) AddDefaultPlan(ctx interface{}, accountId interface{}) *Provider_AddDefaultPlan_Call

AddDefaultPlan is a helper method to define mock.On call

  • ctx context.Context
  • accountId uuid.UUID

func (*Provider_Expecter) AddPlan

func (_e *Provider_Expecter) AddPlan(ctx interface{}, accountId interface{}, planId interface{}) *Provider_AddPlan_Call

AddPlan is a helper method to define mock.On call

  • ctx context.Context
  • accountId uuid.UUID
  • planId uuid.UUID

func (*Provider_Expecter) CreateAccount

func (_e *Provider_Expecter) CreateAccount(ctx interface{}, namespaceId interface{}, name interface{}) *Provider_CreateAccount_Call

CreateAccount is a helper method to define mock.On call

  • ctx context.Context
  • namespaceId string
  • name string

func (*Provider_Expecter) GetInvoiceById

func (_e *Provider_Expecter) GetInvoiceById(ctx interface{}, accountId interface{}, invoiceId interface{}) *Provider_GetInvoiceById_Call

GetInvoiceById is a helper method to define mock.On call

  • ctx context.Context
  • accountId uuid.UUID
  • invoiceId string

func (*Provider_Expecter) GetInvoices

func (_e *Provider_Expecter) GetInvoices(ctx interface{}, accountId interface{}, r interface{}) *Provider_GetInvoices_Call

GetInvoices is a helper method to define mock.On call

  • ctx context.Context
  • accountId uuid.UUID
  • r *api.ListInvoicesRequest

func (*Provider_Expecter) PushStorageEvents

func (_e *Provider_Expecter) PushStorageEvents(ctx interface{}, events interface{}) *Provider_PushStorageEvents_Call

PushStorageEvents is a helper method to define mock.On call

  • ctx context.Context
  • events []*billing.StorageEvent

func (*Provider_Expecter) PushUsageEvents

func (_e *Provider_Expecter) PushUsageEvents(ctx interface{}, events interface{}) *Provider_PushUsageEvents_Call

PushUsageEvents is a helper method to define mock.On call

  • ctx context.Context
  • events []*billing.UsageEvent

type Provider_GetInvoiceById_Call

type Provider_GetInvoiceById_Call struct {
	*mock.Call
}

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

func (*Provider_GetInvoiceById_Call) Return

func (*Provider_GetInvoiceById_Call) Run

func (_c *Provider_GetInvoiceById_Call) Run(run func(ctx context.Context, accountId uuid.UUID, invoiceId string)) *Provider_GetInvoiceById_Call

func (*Provider_GetInvoiceById_Call) RunAndReturn

type Provider_GetInvoices_Call

type Provider_GetInvoices_Call struct {
	*mock.Call
}

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

func (*Provider_GetInvoices_Call) Return

func (*Provider_GetInvoices_Call) Run

func (*Provider_GetInvoices_Call) RunAndReturn

type Provider_PushStorageEvents_Call

type Provider_PushStorageEvents_Call struct {
	*mock.Call
}

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

func (*Provider_PushStorageEvents_Call) Return

func (*Provider_PushStorageEvents_Call) Run

func (*Provider_PushStorageEvents_Call) RunAndReturn

type Provider_PushUsageEvents_Call

type Provider_PushUsageEvents_Call struct {
	*mock.Call
}

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

func (*Provider_PushUsageEvents_Call) Return

func (*Provider_PushUsageEvents_Call) Run

func (*Provider_PushUsageEvents_Call) RunAndReturn

Jump to

Keyboard shortcuts

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