mocks

package
v3.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 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 added in v3.6.0

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 added in v3.7.0

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 added in v3.6.0

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 added in v3.7.0

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 added in v3.7.0

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

func (*CustomerIdentityService_Expecter) GetByIdentity added in v3.7.0

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 added in v3.7.0

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 added in v3.7.0

func (*CustomerIdentityService_GetByIdentity_Call) Run added in v3.7.0

func (*CustomerIdentityService_GetByIdentity_Call) RunAndReturn added in v3.7.0

type Customer_Expecter added in v3.7.0

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

func (*Customer_Expecter) GetAddresses added in v3.7.0

func (_e *Customer_Expecter) GetAddresses() *Customer_GetAddresses_Call

GetAddresses is a helper method to define mock.On call

func (*Customer_Expecter) GetDefaultBillingAddress added in v3.7.0

func (_e *Customer_Expecter) GetDefaultBillingAddress() *Customer_GetDefaultBillingAddress_Call

GetDefaultBillingAddress is a helper method to define mock.On call

func (*Customer_Expecter) GetDefaultShippingAddress added in v3.7.0

func (_e *Customer_Expecter) GetDefaultShippingAddress() *Customer_GetDefaultShippingAddress_Call

GetDefaultShippingAddress is a helper method to define mock.On call

func (*Customer_Expecter) GetID added in v3.7.0

GetID is a helper method to define mock.On call

func (*Customer_Expecter) GetPersonalData added in v3.7.0

func (_e *Customer_Expecter) GetPersonalData() *Customer_GetPersonalData_Call

GetPersonalData is a helper method to define mock.On call

type Customer_GetAddresses_Call added in v3.7.0

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 added in v3.7.0

func (*Customer_GetAddresses_Call) Run added in v3.7.0

func (*Customer_GetAddresses_Call) RunAndReturn added in v3.7.0

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

type Customer_GetDefaultBillingAddress_Call added in v3.7.0

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 added in v3.7.0

func (*Customer_GetDefaultBillingAddress_Call) Run added in v3.7.0

func (*Customer_GetDefaultBillingAddress_Call) RunAndReturn added in v3.7.0

type Customer_GetDefaultShippingAddress_Call added in v3.7.0

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 added in v3.7.0

func (*Customer_GetDefaultShippingAddress_Call) Run added in v3.7.0

func (*Customer_GetDefaultShippingAddress_Call) RunAndReturn added in v3.7.0

type Customer_GetID_Call added in v3.7.0

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 added in v3.7.0

func (*Customer_GetID_Call) Run added in v3.7.0

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

func (*Customer_GetID_Call) RunAndReturn added in v3.7.0

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

type Customer_GetPersonalData_Call added in v3.7.0

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 added in v3.7.0

func (*Customer_GetPersonalData_Call) Run added in v3.7.0

func (*Customer_GetPersonalData_Call) RunAndReturn added in v3.7.0

Jump to

Keyboard shortcuts

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