mock

package
v0.0.0-...-6988bd6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderRepoWith2PC

type OrderRepoWith2PC struct {
	mock.Mock
}

OrderRepoWith2PC is an autogenerated mock type for the OrderRepoWith2PC type

func NewOrderRepoWith2PC

func NewOrderRepoWith2PC(t testing.TB) *OrderRepoWith2PC

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

func (*OrderRepoWith2PC) CommitInsertTransaction

func (_m *OrderRepoWith2PC) CommitInsertTransaction(ctx context.Context, txID uuid.UUID) error

CommitInsertTransaction provides a mock function with given fields: ctx, txID

func (*OrderRepoWith2PC) GetOrder

func (_m *OrderRepoWith2PC) GetOrder(ctx context.Context, id uuid.UUID) (*repository.Order, error)

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

func (*OrderRepoWith2PC) PrepareInsertOrder

func (_m *OrderRepoWith2PC) PrepareInsertOrder(ctx context.Context, order *repository.Order, txId uuid.UUID) error

PrepareInsertOrder provides a mock function with given fields: ctx, order, txId

func (*OrderRepoWith2PC) RollbackInsertTransaction

func (_m *OrderRepoWith2PC) RollbackInsertTransaction(ctx context.Context, txID uuid.UUID) error

RollbackInsertTransaction provides a mock function with given fields: ctx, txID

Jump to

Keyboard shortcuts

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