mocks

package
v0.0.0-...-1668a93 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderItemRepository

type OrderItemRepository struct {
	mock.Mock
}

OrderItemRepository is an autogenerated mock type for the OrderItemRepository type

func (*OrderItemRepository) Fetch

func (_m *OrderItemRepository) Fetch(ctx context.Context, cursor string, id int64) ([]domain.OrderItem, string, error)

Fetch provides a mock function with given fields: ctx, cursor, id

func (*OrderItemRepository) GetByID

func (_m *OrderItemRepository) GetByID(ctx context.Context, id int64) (domain.OrderItem, error)

GetByID provides a mock function with given fields: ctx, id

type OrderRepository

type OrderRepository struct {
	mock.Mock
}

OrderRepository is an autogenerated mock type for the OrderRepository type

func (*OrderRepository) Delete

func (_m *OrderRepository) Delete(ctx context.Context, id int) error

Delete provides a mock function with given fields: ctx, id

func (*OrderRepository) Fetch

func (_m *OrderRepository) Fetch(ctx context.Context, cursor string, num int) ([]domain.Order, string, error)

Fetch provides a mock function with given fields: ctx, cursor, num

func (*OrderRepository) GetByID

func (_m *OrderRepository) GetByID(ctx context.Context, id int) (domain.Order, error)

GetByID provides a mock function with given fields: ctx, id

func (*OrderRepository) Store

func (_m *OrderRepository) Store(ctx context.Context, createOrder *domain.Order) error

Store provides a mock function with given fields: ctx, createOrder

func (*OrderRepository) Update

func (_m *OrderRepository) Update(ctx context.Context, updateOrder *domain.Order) error

Update provides a mock function with given fields: ctx, updateOrder

type OrderUsecase

type OrderUsecase struct {
	mock.Mock
}

OrderUsecase is an autogenerated mock type for the OrderUsecase type

func (*OrderUsecase) Delete

func (_m *OrderUsecase) Delete(ctx context.Context, id int) error

Delete provides a mock function with given fields: ctx, id

func (*OrderUsecase) Fetch

func (_m *OrderUsecase) Fetch(ctx context.Context, cursor string, num int) ([]domain.Order, string, error)

Fetch provides a mock function with given fields: ctx, cursor, num

func (*OrderUsecase) GetByID

func (_m *OrderUsecase) GetByID(ctx context.Context, id int) (domain.Order, error)

GetByID provides a mock function with given fields: ctx, id

func (*OrderUsecase) Store

func (_m *OrderUsecase) Store(ctx context.Context, createOrder *domain.Order) error

Store provides a mock function with given fields: ctx, createOrder

func (*OrderUsecase) Update

func (_m *OrderUsecase) Update(ctx context.Context, updateOrder *domain.Order) error

Update provides a mock function with given fields: ctx, updateOrder

type ProductRepository

type ProductRepository struct {
	mock.Mock
}

ProductRepository is an autogenerated mock type for the ProductRepository type

func (*ProductRepository) Delete

func (_m *ProductRepository) Delete(ctx context.Context, id int64) error

Delete provides a mock function with given fields: ctx, id

func (*ProductRepository) Fetch

func (_m *ProductRepository) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Product, string, error)

Fetch provides a mock function with given fields: ctx, cursor, num

func (*ProductRepository) GetByID

func (_m *ProductRepository) GetByID(ctx context.Context, id int64) (domain.Product, error)

GetByID provides a mock function with given fields: ctx, id

func (*ProductRepository) Store

func (_m *ProductRepository) Store(ctx context.Context, a *domain.Product) error

Store provides a mock function with given fields: ctx, a

func (*ProductRepository) Update

func (_m *ProductRepository) Update(ctx context.Context, ar *domain.Product) error

Update provides a mock function with given fields: ctx, ar

type ProductUsecase

type ProductUsecase struct {
	mock.Mock
}

ProductUsecase is an autogenerated mock type for the ProductUsecase type

func (*ProductUsecase) Delete

func (_m *ProductUsecase) Delete(ctx context.Context, id int64) error

Delete provides a mock function with given fields: ctx, id

func (*ProductUsecase) Fetch

func (_m *ProductUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]domain.Product, string, error)

Fetch provides a mock function with given fields: ctx, cursor, num

func (*ProductUsecase) GetByID

func (_m *ProductUsecase) GetByID(ctx context.Context, id int64) (domain.Product, error)

GetByID provides a mock function with given fields: ctx, id

func (*ProductUsecase) Store

func (_m *ProductUsecase) Store(_a0 context.Context, _a1 *domain.Product) error

Store provides a mock function with given fields: _a0, _a1

func (*ProductUsecase) Update

func (_m *ProductUsecase) Update(ctx context.Context, ar *domain.Product) error

Update provides a mock function with given fields: ctx, ar

type ReviewRepository

type ReviewRepository struct {
	mock.Mock
}

ReviewRepository is an autogenerated mock type for the ReviewRepository type

func (*ReviewRepository) Fetch

func (_m *ReviewRepository) Fetch(ctx context.Context, cursor string, num int) ([]domain.Review, string, error)

Fetch provides a mock function with given fields: ctx, cursor, num

func (*ReviewRepository) GetByID

func (_m *ReviewRepository) GetByID(ctx context.Context, id int64) (domain.Review, error)

GetByID provides a mock function with given fields: ctx, id

type ShippingAddressRepository

type ShippingAddressRepository struct {
	mock.Mock
}

ShippingAddressRepository is an autogenerated mock type for the ShippingAddressRepository type

func (*ShippingAddressRepository) Fetch

Fetch provides a mock function with given fields: ctx, cursor, id

func (*ShippingAddressRepository) GetByID

GetByID provides a mock function with given fields: ctx, id

type UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the UserRepository type

func (*UserRepository) Delete

func (_m *UserRepository) Delete(ctx context.Context, id int64) error

Delete provides a mock function with given fields: ctx, id

func (*UserRepository) Fetch

func (_m *UserRepository) Fetch(ctx context.Context, cursor string, num int64) ([]domain.User, string, error)

Fetch provides a mock function with given fields: ctx, cursor, num

func (*UserRepository) GetByID

func (_m *UserRepository) GetByID(ctx context.Context, id int64) (domain.User, error)

GetByID provides a mock function with given fields: ctx, id

func (*UserRepository) GetByUsername

func (_m *UserRepository) GetByUsername(ctx context.Context, username string) (domain.User, error)

GetByUsername provides a mock function with given fields: ctx, username

func (*UserRepository) Login

func (_m *UserRepository) Login(ctx context.Context, username string, password string) (domain.User, error)

Login provides a mock function with given fields: ctx, username, password

func (*UserRepository) Register

func (_m *UserRepository) Register(ctx context.Context, users *domain.User) error

Register provides a mock function with given fields: ctx, users

func (*UserRepository) Store

func (_m *UserRepository) Store(ctx context.Context, a *domain.User) error

Store provides a mock function with given fields: ctx, a

func (*UserRepository) Update

func (_m *UserRepository) Update(ctx context.Context, ar *domain.User) error

Update provides a mock function with given fields: ctx, ar

type UserUsecase

type UserUsecase struct {
	mock.Mock
}

UserUsecase is an autogenerated mock type for the UserUsecase type

func (*UserUsecase) CreateAdmin

func (_m *UserUsecase) CreateAdmin(ctx context.Context, user *domain.User) error

CreateAdmin provides a mock function with given fields: ctx, user

func (*UserUsecase) CreateStaff

func (_m *UserUsecase) CreateStaff(ctx context.Context, user *domain.User) error

CreateStaff provides a mock function with given fields: ctx, user

func (*UserUsecase) Delete

func (_m *UserUsecase) Delete(ctx context.Context, id int64) error

Delete provides a mock function with given fields: ctx, id

func (*UserUsecase) Fetch

func (_m *UserUsecase) Fetch(ctx context.Context, cursor string, num int64) ([]domain.User, string, error)

Fetch provides a mock function with given fields: ctx, cursor, num

func (*UserUsecase) GetByID

func (_m *UserUsecase) GetByID(ctx context.Context, id int64) (domain.User, error)

GetByID provides a mock function with given fields: ctx, id

func (*UserUsecase) GetByUsername

func (_m *UserUsecase) GetByUsername(ctx context.Context, username string) (domain.User, error)

GetByUsername provides a mock function with given fields: ctx, username

func (*UserUsecase) Login

func (_m *UserUsecase) Login(ctx context.Context, username string, password string) (domain.User, error)

Login provides a mock function with given fields: ctx, username, password

func (*UserUsecase) Register

func (_m *UserUsecase) Register(ctx context.Context, users *domain.User) error

Register provides a mock function with given fields: ctx, users

func (*UserUsecase) Store

func (_m *UserUsecase) Store(_a0 context.Context, _a1 *domain.User) error

Store provides a mock function with given fields: _a0, _a1

func (*UserUsecase) Update

func (_m *UserUsecase) Update(ctx context.Context, ar *domain.User) error

Update provides a mock function with given fields: ctx, ar

Jump to

Keyboard shortcuts

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