ordermocks

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ./service.go

Generated by this command:

mockgen -source=./service.go -package=ordermocks -destination=../../mocks/order.mock.go -typed Service

Package ordermocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) CancelOrder

func (m *MockService) CancelOrder(ctx context.Context, uid, oid int64) error

CancelOrder mocks base method.

func (*MockService) CloseTimeoutOrders

func (m *MockService) CloseTimeoutOrders(ctx context.Context, orderIDs []int64, ctime int64) error

CloseTimeoutOrders mocks base method.

func (*MockService) CreateOrder

func (m *MockService) CreateOrder(ctx context.Context, order domain.Order) (domain.Order, error)

CreateOrder mocks base method.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockService) FailOrder

func (m *MockService) FailOrder(ctx context.Context, uid int64, orderSN string) error

FailOrder mocks base method.

func (*MockService) FindTimeoutOrders

func (m *MockService) FindTimeoutOrders(ctx context.Context, offset, limit int, ctime int64) ([]domain.Order, int64, error)

FindTimeoutOrders mocks base method.

func (*MockService) FindUserVisibleOrderByUIDAndSN

func (m *MockService) FindUserVisibleOrderByUIDAndSN(ctx context.Context, uid int64, orderSN string) (domain.Order, error)

FindUserVisibleOrderByUIDAndSN mocks base method.

func (*MockService) FindUserVisibleOrdersByUID

func (m *MockService) FindUserVisibleOrdersByUID(ctx context.Context, uid int64, offset, limit int) ([]domain.Order, int64, error)

FindUserVisibleOrdersByUID mocks base method.

func (*MockService) SucceedOrder

func (m *MockService) SucceedOrder(ctx context.Context, uid int64, orderSN string) error

SucceedOrder mocks base method.

func (*MockService) UpdateUnpaidOrderPaymentInfo

func (m *MockService) UpdateUnpaidOrderPaymentInfo(ctx context.Context, uid, oid, pid int64, psn string) error

UpdateUnpaidOrderPaymentInfo mocks base method.

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) CancelOrder

func (mr *MockServiceMockRecorder) CancelOrder(ctx, uid, oid any) *ServiceCancelOrderCall

CancelOrder indicates an expected call of CancelOrder.

func (*MockServiceMockRecorder) CloseTimeoutOrders

func (mr *MockServiceMockRecorder) CloseTimeoutOrders(ctx, orderIDs, ctime any) *ServiceCloseTimeoutOrdersCall

CloseTimeoutOrders indicates an expected call of CloseTimeoutOrders.

func (*MockServiceMockRecorder) CreateOrder

func (mr *MockServiceMockRecorder) CreateOrder(ctx, order any) *ServiceCreateOrderCall

CreateOrder indicates an expected call of CreateOrder.

func (*MockServiceMockRecorder) FailOrder

func (mr *MockServiceMockRecorder) FailOrder(ctx, uid, orderSN any) *ServiceFailOrderCall

FailOrder indicates an expected call of FailOrder.

func (*MockServiceMockRecorder) FindTimeoutOrders

func (mr *MockServiceMockRecorder) FindTimeoutOrders(ctx, offset, limit, ctime any) *ServiceFindTimeoutOrdersCall

FindTimeoutOrders indicates an expected call of FindTimeoutOrders.

func (*MockServiceMockRecorder) FindUserVisibleOrderByUIDAndSN

func (mr *MockServiceMockRecorder) FindUserVisibleOrderByUIDAndSN(ctx, uid, orderSN any) *ServiceFindUserVisibleOrderByUIDAndSNCall

FindUserVisibleOrderByUIDAndSN indicates an expected call of FindUserVisibleOrderByUIDAndSN.

func (*MockServiceMockRecorder) FindUserVisibleOrdersByUID

func (mr *MockServiceMockRecorder) FindUserVisibleOrdersByUID(ctx, uid, offset, limit any) *ServiceFindUserVisibleOrdersByUIDCall

FindUserVisibleOrdersByUID indicates an expected call of FindUserVisibleOrdersByUID.

func (*MockServiceMockRecorder) SucceedOrder

func (mr *MockServiceMockRecorder) SucceedOrder(ctx, uid, orderSN any) *ServiceSucceedOrderCall

SucceedOrder indicates an expected call of SucceedOrder.

func (*MockServiceMockRecorder) UpdateUnpaidOrderPaymentInfo

func (mr *MockServiceMockRecorder) UpdateUnpaidOrderPaymentInfo(ctx, uid, oid, pid, psn any) *ServiceUpdateUnpaidOrderPaymentInfoCall

UpdateUnpaidOrderPaymentInfo indicates an expected call of UpdateUnpaidOrderPaymentInfo.

type ServiceCancelOrderCall

type ServiceCancelOrderCall struct {
	*gomock.Call
}

ServiceCancelOrderCall wrap *gomock.Call

func (*ServiceCancelOrderCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceCancelOrderCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceCancelOrderCall) Return

Return rewrite *gomock.Call.Return

type ServiceCloseTimeoutOrdersCall

type ServiceCloseTimeoutOrdersCall struct {
	*gomock.Call
}

ServiceCloseTimeoutOrdersCall wrap *gomock.Call

func (*ServiceCloseTimeoutOrdersCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceCloseTimeoutOrdersCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceCloseTimeoutOrdersCall) Return

Return rewrite *gomock.Call.Return

type ServiceCreateOrderCall

type ServiceCreateOrderCall struct {
	*gomock.Call
}

ServiceCreateOrderCall wrap *gomock.Call

func (*ServiceCreateOrderCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceCreateOrderCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceCreateOrderCall) Return

Return rewrite *gomock.Call.Return

type ServiceFailOrderCall

type ServiceFailOrderCall struct {
	*gomock.Call
}

ServiceFailOrderCall wrap *gomock.Call

func (*ServiceFailOrderCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceFailOrderCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceFailOrderCall) Return

Return rewrite *gomock.Call.Return

type ServiceFindTimeoutOrdersCall

type ServiceFindTimeoutOrdersCall struct {
	*gomock.Call
}

ServiceFindTimeoutOrdersCall wrap *gomock.Call

func (*ServiceFindTimeoutOrdersCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceFindTimeoutOrdersCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceFindTimeoutOrdersCall) Return

Return rewrite *gomock.Call.Return

type ServiceFindUserVisibleOrderByUIDAndSNCall

type ServiceFindUserVisibleOrderByUIDAndSNCall struct {
	*gomock.Call
}

ServiceFindUserVisibleOrderByUIDAndSNCall wrap *gomock.Call

func (*ServiceFindUserVisibleOrderByUIDAndSNCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceFindUserVisibleOrderByUIDAndSNCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceFindUserVisibleOrderByUIDAndSNCall) Return

Return rewrite *gomock.Call.Return

type ServiceFindUserVisibleOrdersByUIDCall

type ServiceFindUserVisibleOrdersByUIDCall struct {
	*gomock.Call
}

ServiceFindUserVisibleOrdersByUIDCall wrap *gomock.Call

func (*ServiceFindUserVisibleOrdersByUIDCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceFindUserVisibleOrdersByUIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceFindUserVisibleOrdersByUIDCall) Return

Return rewrite *gomock.Call.Return

type ServiceSucceedOrderCall

type ServiceSucceedOrderCall struct {
	*gomock.Call
}

ServiceSucceedOrderCall wrap *gomock.Call

func (*ServiceSucceedOrderCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceSucceedOrderCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceSucceedOrderCall) Return

Return rewrite *gomock.Call.Return

type ServiceUpdateUnpaidOrderPaymentInfoCall

type ServiceUpdateUnpaidOrderPaymentInfoCall struct {
	*gomock.Call
}

ServiceUpdateUnpaidOrderPaymentInfoCall wrap *gomock.Call

func (*ServiceUpdateUnpaidOrderPaymentInfoCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceUpdateUnpaidOrderPaymentInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceUpdateUnpaidOrderPaymentInfoCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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