mocks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	mock.Mock
}

Customer is an autogenerated mock type for the Customer type

func NewCustomer

func NewCustomer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Customer

NewCustomer creates a new instance of Customer. 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 (*Customer) EXPECT

func (_m *Customer) EXPECT() *Customer_Expecter

func (*Customer) GetAddresses

func (_m *Customer) GetAddresses() []domain.Address

GetAddresses provides a mock function with given fields:

func (*Customer) GetDefaultBillingAddress

func (_m *Customer) GetDefaultBillingAddress() *domain.Address

GetDefaultBillingAddress provides a mock function with given fields:

func (*Customer) GetDefaultShippingAddress

func (_m *Customer) GetDefaultShippingAddress() *domain.Address

GetDefaultShippingAddress provides a mock function with given fields:

func (*Customer) GetID

func (_m *Customer) GetID() string

GetID provides a mock function with given fields:

func (*Customer) GetPersonalData

func (_m *Customer) GetPersonalData() domain.PersonData

GetPersonalData provides a mock function with given fields:

type CustomerIdentityService

type CustomerIdentityService struct {
	mock.Mock
}

CustomerIdentityService is an autogenerated mock type for the CustomerIdentityService type

func NewCustomerIdentityService

func NewCustomerIdentityService(t interface {
	mock.TestingT
	Cleanup(func())
}) *CustomerIdentityService

NewCustomerIdentityService creates a new instance of CustomerIdentityService. 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 (*CustomerIdentityService) EXPECT

func (*CustomerIdentityService) GetByIdentity

func (_m *CustomerIdentityService) GetByIdentity(ctx context.Context, identity auth.Identity) (domain.Customer, error)

GetByIdentity provides a mock function with given fields: ctx, identity

type CustomerIdentityService_Expecter

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

func (*CustomerIdentityService_Expecter) GetByIdentity

func (_e *CustomerIdentityService_Expecter) GetByIdentity(ctx interface{}, identity interface{}) *CustomerIdentityService_GetByIdentity_Call

GetByIdentity is a helper method to define mock.On call

  • ctx context.Context
  • identity auth.Identity

type CustomerIdentityService_GetByIdentity_Call

type CustomerIdentityService_GetByIdentity_Call struct {
	*mock.Call
}

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

func (*CustomerIdentityService_GetByIdentity_Call) Return

func (*CustomerIdentityService_GetByIdentity_Call) Run

func (*CustomerIdentityService_GetByIdentity_Call) RunAndReturn

type Customer_Expecter

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

func (*Customer_Expecter) GetAddresses

func (_e *Customer_Expecter) GetAddresses() *Customer_GetAddresses_Call

GetAddresses is a helper method to define mock.On call

func (*Customer_Expecter) GetDefaultBillingAddress

func (_e *Customer_Expecter) GetDefaultBillingAddress() *Customer_GetDefaultBillingAddress_Call

GetDefaultBillingAddress is a helper method to define mock.On call

func (*Customer_Expecter) GetDefaultShippingAddress

func (_e *Customer_Expecter) GetDefaultShippingAddress() *Customer_GetDefaultShippingAddress_Call

GetDefaultShippingAddress is a helper method to define mock.On call

func (*Customer_Expecter) GetID

GetID is a helper method to define mock.On call

func (*Customer_Expecter) GetPersonalData

func (_e *Customer_Expecter) GetPersonalData() *Customer_GetPersonalData_Call

GetPersonalData is a helper method to define mock.On call

type Customer_GetAddresses_Call

type Customer_GetAddresses_Call struct {
	*mock.Call
}

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

func (*Customer_GetAddresses_Call) Return

func (*Customer_GetAddresses_Call) Run

func (*Customer_GetAddresses_Call) RunAndReturn

func (_c *Customer_GetAddresses_Call) RunAndReturn(run func() []domain.Address) *Customer_GetAddresses_Call

type Customer_GetDefaultBillingAddress_Call

type Customer_GetDefaultBillingAddress_Call struct {
	*mock.Call
}

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

func (*Customer_GetDefaultBillingAddress_Call) Return

func (*Customer_GetDefaultBillingAddress_Call) Run

func (*Customer_GetDefaultBillingAddress_Call) RunAndReturn

type Customer_GetDefaultShippingAddress_Call

type Customer_GetDefaultShippingAddress_Call struct {
	*mock.Call
}

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

func (*Customer_GetDefaultShippingAddress_Call) Return

func (*Customer_GetDefaultShippingAddress_Call) Run

func (*Customer_GetDefaultShippingAddress_Call) RunAndReturn

type Customer_GetID_Call

type Customer_GetID_Call struct {
	*mock.Call
}

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

func (*Customer_GetID_Call) Return

func (*Customer_GetID_Call) Run

func (_c *Customer_GetID_Call) Run(run func()) *Customer_GetID_Call

func (*Customer_GetID_Call) RunAndReturn

func (_c *Customer_GetID_Call) RunAndReturn(run func() string) *Customer_GetID_Call

type Customer_GetPersonalData_Call

type Customer_GetPersonalData_Call struct {
	*mock.Call
}

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

func (*Customer_GetPersonalData_Call) Return

func (*Customer_GetPersonalData_Call) Run

func (*Customer_GetPersonalData_Call) RunAndReturn

Jump to

Keyboard shortcuts

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