mocks

package
v0.0.0-...-cb886e6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaymentProvider

type PaymentProvider struct {
	mock.Mock
}

PaymentProvider is an autogenerated mock type for the PaymentProvider type

func NewPaymentProvider

func NewPaymentProvider(t mockConstructorTestingTNewPaymentProvider) *PaymentProvider

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

func (*PaymentProvider) EXPECT

func (*PaymentProvider) GetOwnerPlan

func (_m *PaymentProvider) GetOwnerPlan(ctx context.Context, owner string) (payment.PaymentPlan, error)

GetOwnerPlan provides a mock function with given fields: ctx, owner

func (*PaymentProvider) SaveSubscription

func (_m *PaymentProvider) SaveSubscription(ctx context.Context, owner string, subscriptionID string) error

SaveSubscription provides a mock function with given fields: ctx, owner, subscriptionID

type PaymentProvider_Expecter

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

func (*PaymentProvider_Expecter) GetOwnerPlan

func (_e *PaymentProvider_Expecter) GetOwnerPlan(ctx interface{}, owner interface{}) *PaymentProvider_GetOwnerPlan_Call

GetOwnerPlan is a helper method to define mock.On call

  • ctx context.Context
  • owner string

func (*PaymentProvider_Expecter) SaveSubscription

func (_e *PaymentProvider_Expecter) SaveSubscription(ctx interface{}, owner interface{}, subscriptionID interface{}) *PaymentProvider_SaveSubscription_Call

SaveSubscription is a helper method to define mock.On call

  • ctx context.Context
  • owner string
  • subscriptionID string

type PaymentProvider_GetOwnerPlan_Call

type PaymentProvider_GetOwnerPlan_Call struct {
	*mock.Call
}

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

func (*PaymentProvider_GetOwnerPlan_Call) Return

func (*PaymentProvider_GetOwnerPlan_Call) Run

func (*PaymentProvider_GetOwnerPlan_Call) RunAndReturn

type PaymentProvider_SaveSubscription_Call

type PaymentProvider_SaveSubscription_Call struct {
	*mock.Call
}

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

func (*PaymentProvider_SaveSubscription_Call) Return

func (*PaymentProvider_SaveSubscription_Call) Run

func (*PaymentProvider_SaveSubscription_Call) RunAndReturn

Jump to

Keyboard shortcuts

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