Documentation ¶
Index ¶
- type RepositoryMock
- func (mmCreate *RepositoryMock) Create(ctx context.Context, order ordermodels.NewOrder) (orderID int64, err error)
- func (mmCreate *RepositoryMock) CreateAfterCounter() uint64
- func (mmCreate *RepositoryMock) CreateBeforeCounter() uint64
- func (mmGetByID *RepositoryMock) GetByID(ctx context.Context, orderID int64) (order ordermodels.Order, err error)
- func (mmGetByID *RepositoryMock) GetByIDAfterCounter() uint64
- func (mmGetByID *RepositoryMock) GetByIDBeforeCounter() uint64
- func (m *RepositoryMock) MinimockCreateDone() bool
- func (m *RepositoryMock) MinimockCreateInspect()
- func (m *RepositoryMock) MinimockFinish()
- func (m *RepositoryMock) MinimockGetByIDDone() bool
- func (m *RepositoryMock) MinimockGetByIDInspect()
- func (m *RepositoryMock) MinimockSetStatusDone() bool
- func (m *RepositoryMock) MinimockSetStatusInspect()
- func (m *RepositoryMock) MinimockWait(timeout mm_time.Duration)
- func (mmSetStatus *RepositoryMock) SetStatus(ctx context.Context, orderID int64, status ordermodels.Status) (err error)
- func (mmSetStatus *RepositoryMock) SetStatusAfterCounter() uint64
- func (mmSetStatus *RepositoryMock) SetStatusBeforeCounter() uint64
- type RepositoryMockCreateExpectation
- type RepositoryMockCreateParamPtrs
- type RepositoryMockCreateParams
- type RepositoryMockCreateResults
- type RepositoryMockGetByIDExpectation
- type RepositoryMockGetByIDParamPtrs
- type RepositoryMockGetByIDParams
- type RepositoryMockGetByIDResults
- type RepositoryMockSetStatusExpectation
- type RepositoryMockSetStatusParamPtrs
- type RepositoryMockSetStatusParams
- type RepositoryMockSetStatusResults
- type StatusOutboxRepositoryMock
- func (mmCreateOrderStatusChangedEvent *StatusOutboxRepositoryMock) CreateOrderStatusChangedEvent(ctx context.Context, orderID int64, status ordermodels.Status) (err error)
- func (mmCreateOrderStatusChangedEvent *StatusOutboxRepositoryMock) CreateOrderStatusChangedEventAfterCounter() uint64
- func (mmCreateOrderStatusChangedEvent *StatusOutboxRepositoryMock) CreateOrderStatusChangedEventBeforeCounter() uint64
- func (mmFetchNextOrderStatusChangedEvent *StatusOutboxRepositoryMock) FetchNextOrderStatusChangedEvent(ctx context.Context) (s1 ordermodels.StatusChangedEvent, err error)
- func (mmFetchNextOrderStatusChangedEvent *StatusOutboxRepositoryMock) FetchNextOrderStatusChangedEventAfterCounter() uint64
- func (mmFetchNextOrderStatusChangedEvent *StatusOutboxRepositoryMock) FetchNextOrderStatusChangedEventBeforeCounter() uint64
- func (mmMarkOrderStatusChangedEventAsSend *StatusOutboxRepositoryMock) MarkOrderStatusChangedEventAsSend(ctx context.Context, eventID int64) (err error)
- func (mmMarkOrderStatusChangedEventAsSend *StatusOutboxRepositoryMock) MarkOrderStatusChangedEventAsSendAfterCounter() uint64
- func (mmMarkOrderStatusChangedEventAsSend *StatusOutboxRepositoryMock) MarkOrderStatusChangedEventAsSendBeforeCounter() uint64
- func (m *StatusOutboxRepositoryMock) MinimockCreateOrderStatusChangedEventDone() bool
- func (m *StatusOutboxRepositoryMock) MinimockCreateOrderStatusChangedEventInspect()
- func (m *StatusOutboxRepositoryMock) MinimockFetchNextOrderStatusChangedEventDone() bool
- func (m *StatusOutboxRepositoryMock) MinimockFetchNextOrderStatusChangedEventInspect()
- func (m *StatusOutboxRepositoryMock) MinimockFinish()
- func (m *StatusOutboxRepositoryMock) MinimockMarkOrderStatusChangedEventAsSendDone() bool
- func (m *StatusOutboxRepositoryMock) MinimockMarkOrderStatusChangedEventAsSendInspect()
- func (m *StatusOutboxRepositoryMock) MinimockWait(timeout mm_time.Duration)
- type StatusOutboxRepositoryMockCreateOrderStatusChangedEventExpectation
- type StatusOutboxRepositoryMockCreateOrderStatusChangedEventParamPtrs
- type StatusOutboxRepositoryMockCreateOrderStatusChangedEventParams
- type StatusOutboxRepositoryMockCreateOrderStatusChangedEventResults
- type StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventExpectation
- type StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventParamPtrs
- type StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventParams
- type StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventResults
- type StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendExpectation
- type StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendParamPtrs
- type StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendParams
- type StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendResults
- type StockServiceMock
- func (m *StockServiceMock) MinimockFinish()
- func (m *StockServiceMock) MinimockReserveCancelDone() bool
- func (m *StockServiceMock) MinimockReserveCancelInspect()
- func (m *StockServiceMock) MinimockReserveDone() bool
- func (m *StockServiceMock) MinimockReserveInspect()
- func (m *StockServiceMock) MinimockReserveRemoveDone() bool
- func (m *StockServiceMock) MinimockReserveRemoveInspect()
- func (m *StockServiceMock) MinimockWait(timeout mm_time.Duration)
- func (mmReserve *StockServiceMock) Reserve(ctx context.Context, item []ordermodels.Item) (err error)
- func (mmReserve *StockServiceMock) ReserveAfterCounter() uint64
- func (mmReserve *StockServiceMock) ReserveBeforeCounter() uint64
- func (mmReserveCancel *StockServiceMock) ReserveCancel(ctx context.Context, item []stockmodels.ReserveItem) (err error)
- func (mmReserveCancel *StockServiceMock) ReserveCancelAfterCounter() uint64
- func (mmReserveCancel *StockServiceMock) ReserveCancelBeforeCounter() uint64
- func (mmReserveRemove *StockServiceMock) ReserveRemove(ctx context.Context, item []stockmodels.ReserveItem) (err error)
- func (mmReserveRemove *StockServiceMock) ReserveRemoveAfterCounter() uint64
- func (mmReserveRemove *StockServiceMock) ReserveRemoveBeforeCounter() uint64
- type StockServiceMockReserveCancelExpectation
- type StockServiceMockReserveCancelParamPtrs
- type StockServiceMockReserveCancelParams
- type StockServiceMockReserveCancelResults
- type StockServiceMockReserveExpectation
- type StockServiceMockReserveParamPtrs
- type StockServiceMockReserveParams
- type StockServiceMockReserveRemoveExpectation
- type StockServiceMockReserveRemoveParamPtrs
- type StockServiceMockReserveRemoveParams
- type StockServiceMockReserveRemoveResults
- type StockServiceMockReserveResults
- type TxManagerMock
- func (m *TxManagerMock) MinimockFinish()
- func (m *TxManagerMock) MinimockReadCommittedDone() bool
- func (m *TxManagerMock) MinimockReadCommittedInspect()
- func (m *TxManagerMock) MinimockWait(timeout mm_time.Duration)
- func (mmReadCommitted *TxManagerMock) ReadCommitted(ctx context.Context, f func(context.Context) error) (err error)
- func (mmReadCommitted *TxManagerMock) ReadCommittedAfterCounter() uint64
- func (mmReadCommitted *TxManagerMock) ReadCommittedBeforeCounter() uint64
- type TxManagerMockReadCommittedExpectation
- type TxManagerMockReadCommittedParamPtrs
- type TxManagerMockReadCommittedParams
- type TxManagerMockReadCommittedResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepositoryMock ¶
type RepositoryMock struct { CreateMock mRepositoryMockCreate GetByIDMock mRepositoryMockGetByID SetStatusMock mRepositoryMockSetStatus // contains filtered or unexported fields }
RepositoryMock implements order.Repository
func NewRepositoryMock ¶
func NewRepositoryMock(t minimock.Tester) *RepositoryMock
NewRepositoryMock returns a mock for order.Repository
func (*RepositoryMock) Create ¶
func (mmCreate *RepositoryMock) Create(ctx context.Context, order ordermodels.NewOrder) (orderID int64, err error)
Create implements order.Repository
func (*RepositoryMock) CreateAfterCounter ¶
func (mmCreate *RepositoryMock) CreateAfterCounter() uint64
CreateAfterCounter returns a count of finished RepositoryMock.Create invocations
func (*RepositoryMock) CreateBeforeCounter ¶
func (mmCreate *RepositoryMock) CreateBeforeCounter() uint64
CreateBeforeCounter returns a count of RepositoryMock.Create invocations
func (*RepositoryMock) GetByID ¶
func (mmGetByID *RepositoryMock) GetByID(ctx context.Context, orderID int64) (order ordermodels.Order, err error)
GetByID implements order.Repository
func (*RepositoryMock) GetByIDAfterCounter ¶
func (mmGetByID *RepositoryMock) GetByIDAfterCounter() uint64
GetByIDAfterCounter returns a count of finished RepositoryMock.GetByID invocations
func (*RepositoryMock) GetByIDBeforeCounter ¶
func (mmGetByID *RepositoryMock) GetByIDBeforeCounter() uint64
GetByIDBeforeCounter returns a count of RepositoryMock.GetByID invocations
func (*RepositoryMock) MinimockCreateDone ¶
func (m *RepositoryMock) MinimockCreateDone() bool
MinimockCreateDone returns true if the count of the Create invocations corresponds the number of defined expectations
func (*RepositoryMock) MinimockCreateInspect ¶
func (m *RepositoryMock) MinimockCreateInspect()
MinimockCreateInspect logs each unmet expectation
func (*RepositoryMock) MinimockFinish ¶
func (m *RepositoryMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*RepositoryMock) MinimockGetByIDDone ¶
func (m *RepositoryMock) MinimockGetByIDDone() bool
MinimockGetByIDDone returns true if the count of the GetByID invocations corresponds the number of defined expectations
func (*RepositoryMock) MinimockGetByIDInspect ¶
func (m *RepositoryMock) MinimockGetByIDInspect()
MinimockGetByIDInspect logs each unmet expectation
func (*RepositoryMock) MinimockSetStatusDone ¶
func (m *RepositoryMock) MinimockSetStatusDone() bool
MinimockSetStatusDone returns true if the count of the SetStatus invocations corresponds the number of defined expectations
func (*RepositoryMock) MinimockSetStatusInspect ¶
func (m *RepositoryMock) MinimockSetStatusInspect()
MinimockSetStatusInspect logs each unmet expectation
func (*RepositoryMock) MinimockWait ¶
func (m *RepositoryMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*RepositoryMock) SetStatus ¶
func (mmSetStatus *RepositoryMock) SetStatus(ctx context.Context, orderID int64, status ordermodels.Status) (err error)
SetStatus implements order.Repository
func (*RepositoryMock) SetStatusAfterCounter ¶
func (mmSetStatus *RepositoryMock) SetStatusAfterCounter() uint64
SetStatusAfterCounter returns a count of finished RepositoryMock.SetStatus invocations
func (*RepositoryMock) SetStatusBeforeCounter ¶
func (mmSetStatus *RepositoryMock) SetStatusBeforeCounter() uint64
SetStatusBeforeCounter returns a count of RepositoryMock.SetStatus invocations
type RepositoryMockCreateExpectation ¶
type RepositoryMockCreateExpectation struct { Counter uint64 // contains filtered or unexported fields }
RepositoryMockCreateExpectation specifies expectation struct of the Repository.Create
func (*RepositoryMockCreateExpectation) Then ¶
func (e *RepositoryMockCreateExpectation) Then(orderID int64, err error) *RepositoryMock
Then sets up Repository.Create return parameters for the expectation previously defined by the When method
type RepositoryMockCreateParamPtrs ¶
type RepositoryMockCreateParamPtrs struct {
// contains filtered or unexported fields
}
RepositoryMockCreateParamPtrs contains pointers to parameters of the Repository.Create
type RepositoryMockCreateParams ¶
type RepositoryMockCreateParams struct {
// contains filtered or unexported fields
}
RepositoryMockCreateParams contains parameters of the Repository.Create
type RepositoryMockCreateResults ¶
type RepositoryMockCreateResults struct {
// contains filtered or unexported fields
}
RepositoryMockCreateResults contains results of the Repository.Create
type RepositoryMockGetByIDExpectation ¶
type RepositoryMockGetByIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
RepositoryMockGetByIDExpectation specifies expectation struct of the Repository.GetByID
func (*RepositoryMockGetByIDExpectation) Then ¶
func (e *RepositoryMockGetByIDExpectation) Then(order ordermodels.Order, err error) *RepositoryMock
Then sets up Repository.GetByID return parameters for the expectation previously defined by the When method
type RepositoryMockGetByIDParamPtrs ¶
type RepositoryMockGetByIDParamPtrs struct {
// contains filtered or unexported fields
}
RepositoryMockGetByIDParamPtrs contains pointers to parameters of the Repository.GetByID
type RepositoryMockGetByIDParams ¶
type RepositoryMockGetByIDParams struct {
// contains filtered or unexported fields
}
RepositoryMockGetByIDParams contains parameters of the Repository.GetByID
type RepositoryMockGetByIDResults ¶
type RepositoryMockGetByIDResults struct {
// contains filtered or unexported fields
}
RepositoryMockGetByIDResults contains results of the Repository.GetByID
type RepositoryMockSetStatusExpectation ¶
type RepositoryMockSetStatusExpectation struct { Counter uint64 // contains filtered or unexported fields }
RepositoryMockSetStatusExpectation specifies expectation struct of the Repository.SetStatus
func (*RepositoryMockSetStatusExpectation) Then ¶
func (e *RepositoryMockSetStatusExpectation) Then(err error) *RepositoryMock
Then sets up Repository.SetStatus return parameters for the expectation previously defined by the When method
type RepositoryMockSetStatusParamPtrs ¶
type RepositoryMockSetStatusParamPtrs struct {
// contains filtered or unexported fields
}
RepositoryMockSetStatusParamPtrs contains pointers to parameters of the Repository.SetStatus
type RepositoryMockSetStatusParams ¶
type RepositoryMockSetStatusParams struct {
// contains filtered or unexported fields
}
RepositoryMockSetStatusParams contains parameters of the Repository.SetStatus
type RepositoryMockSetStatusResults ¶
type RepositoryMockSetStatusResults struct {
// contains filtered or unexported fields
}
RepositoryMockSetStatusResults contains results of the Repository.SetStatus
type StatusOutboxRepositoryMock ¶
type StatusOutboxRepositoryMock struct { CreateOrderStatusChangedEventMock mStatusOutboxRepositoryMockCreateOrderStatusChangedEvent FetchNextOrderStatusChangedEventMock mStatusOutboxRepositoryMockFetchNextOrderStatusChangedEvent MarkOrderStatusChangedEventAsSendMock mStatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSend // contains filtered or unexported fields }
StatusOutboxRepositoryMock implements order.StatusOutboxRepository
func NewStatusOutboxRepositoryMock ¶
func NewStatusOutboxRepositoryMock(t minimock.Tester) *StatusOutboxRepositoryMock
NewStatusOutboxRepositoryMock returns a mock for order.StatusOutboxRepository
func (*StatusOutboxRepositoryMock) CreateOrderStatusChangedEvent ¶
func (mmCreateOrderStatusChangedEvent *StatusOutboxRepositoryMock) CreateOrderStatusChangedEvent(ctx context.Context, orderID int64, status ordermodels.Status) (err error)
CreateOrderStatusChangedEvent implements order.StatusOutboxRepository
func (*StatusOutboxRepositoryMock) CreateOrderStatusChangedEventAfterCounter ¶
func (mmCreateOrderStatusChangedEvent *StatusOutboxRepositoryMock) CreateOrderStatusChangedEventAfterCounter() uint64
CreateOrderStatusChangedEventAfterCounter returns a count of finished StatusOutboxRepositoryMock.CreateOrderStatusChangedEvent invocations
func (*StatusOutboxRepositoryMock) CreateOrderStatusChangedEventBeforeCounter ¶
func (mmCreateOrderStatusChangedEvent *StatusOutboxRepositoryMock) CreateOrderStatusChangedEventBeforeCounter() uint64
CreateOrderStatusChangedEventBeforeCounter returns a count of StatusOutboxRepositoryMock.CreateOrderStatusChangedEvent invocations
func (*StatusOutboxRepositoryMock) FetchNextOrderStatusChangedEvent ¶
func (mmFetchNextOrderStatusChangedEvent *StatusOutboxRepositoryMock) FetchNextOrderStatusChangedEvent(ctx context.Context) (s1 ordermodels.StatusChangedEvent, err error)
FetchNextOrderStatusChangedEvent implements order.StatusOutboxRepository
func (*StatusOutboxRepositoryMock) FetchNextOrderStatusChangedEventAfterCounter ¶
func (mmFetchNextOrderStatusChangedEvent *StatusOutboxRepositoryMock) FetchNextOrderStatusChangedEventAfterCounter() uint64
FetchNextOrderStatusChangedEventAfterCounter returns a count of finished StatusOutboxRepositoryMock.FetchNextOrderStatusChangedEvent invocations
func (*StatusOutboxRepositoryMock) FetchNextOrderStatusChangedEventBeforeCounter ¶
func (mmFetchNextOrderStatusChangedEvent *StatusOutboxRepositoryMock) FetchNextOrderStatusChangedEventBeforeCounter() uint64
FetchNextOrderStatusChangedEventBeforeCounter returns a count of StatusOutboxRepositoryMock.FetchNextOrderStatusChangedEvent invocations
func (*StatusOutboxRepositoryMock) MarkOrderStatusChangedEventAsSend ¶
func (mmMarkOrderStatusChangedEventAsSend *StatusOutboxRepositoryMock) MarkOrderStatusChangedEventAsSend(ctx context.Context, eventID int64) (err error)
MarkOrderStatusChangedEventAsSend implements order.StatusOutboxRepository
func (*StatusOutboxRepositoryMock) MarkOrderStatusChangedEventAsSendAfterCounter ¶
func (mmMarkOrderStatusChangedEventAsSend *StatusOutboxRepositoryMock) MarkOrderStatusChangedEventAsSendAfterCounter() uint64
MarkOrderStatusChangedEventAsSendAfterCounter returns a count of finished StatusOutboxRepositoryMock.MarkOrderStatusChangedEventAsSend invocations
func (*StatusOutboxRepositoryMock) MarkOrderStatusChangedEventAsSendBeforeCounter ¶
func (mmMarkOrderStatusChangedEventAsSend *StatusOutboxRepositoryMock) MarkOrderStatusChangedEventAsSendBeforeCounter() uint64
MarkOrderStatusChangedEventAsSendBeforeCounter returns a count of StatusOutboxRepositoryMock.MarkOrderStatusChangedEventAsSend invocations
func (*StatusOutboxRepositoryMock) MinimockCreateOrderStatusChangedEventDone ¶
func (m *StatusOutboxRepositoryMock) MinimockCreateOrderStatusChangedEventDone() bool
MinimockCreateOrderStatusChangedEventDone returns true if the count of the CreateOrderStatusChangedEvent invocations corresponds the number of defined expectations
func (*StatusOutboxRepositoryMock) MinimockCreateOrderStatusChangedEventInspect ¶
func (m *StatusOutboxRepositoryMock) MinimockCreateOrderStatusChangedEventInspect()
MinimockCreateOrderStatusChangedEventInspect logs each unmet expectation
func (*StatusOutboxRepositoryMock) MinimockFetchNextOrderStatusChangedEventDone ¶
func (m *StatusOutboxRepositoryMock) MinimockFetchNextOrderStatusChangedEventDone() bool
MinimockFetchNextOrderStatusChangedEventDone returns true if the count of the FetchNextOrderStatusChangedEvent invocations corresponds the number of defined expectations
func (*StatusOutboxRepositoryMock) MinimockFetchNextOrderStatusChangedEventInspect ¶
func (m *StatusOutboxRepositoryMock) MinimockFetchNextOrderStatusChangedEventInspect()
MinimockFetchNextOrderStatusChangedEventInspect logs each unmet expectation
func (*StatusOutboxRepositoryMock) MinimockFinish ¶
func (m *StatusOutboxRepositoryMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*StatusOutboxRepositoryMock) MinimockMarkOrderStatusChangedEventAsSendDone ¶
func (m *StatusOutboxRepositoryMock) MinimockMarkOrderStatusChangedEventAsSendDone() bool
MinimockMarkOrderStatusChangedEventAsSendDone returns true if the count of the MarkOrderStatusChangedEventAsSend invocations corresponds the number of defined expectations
func (*StatusOutboxRepositoryMock) MinimockMarkOrderStatusChangedEventAsSendInspect ¶
func (m *StatusOutboxRepositoryMock) MinimockMarkOrderStatusChangedEventAsSendInspect()
MinimockMarkOrderStatusChangedEventAsSendInspect logs each unmet expectation
func (*StatusOutboxRepositoryMock) MinimockWait ¶
func (m *StatusOutboxRepositoryMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type StatusOutboxRepositoryMockCreateOrderStatusChangedEventExpectation ¶
type StatusOutboxRepositoryMockCreateOrderStatusChangedEventExpectation struct { Counter uint64 // contains filtered or unexported fields }
StatusOutboxRepositoryMockCreateOrderStatusChangedEventExpectation specifies expectation struct of the StatusOutboxRepository.CreateOrderStatusChangedEvent
func (*StatusOutboxRepositoryMockCreateOrderStatusChangedEventExpectation) Then ¶
func (e *StatusOutboxRepositoryMockCreateOrderStatusChangedEventExpectation) Then(err error) *StatusOutboxRepositoryMock
Then sets up StatusOutboxRepository.CreateOrderStatusChangedEvent return parameters for the expectation previously defined by the When method
type StatusOutboxRepositoryMockCreateOrderStatusChangedEventParamPtrs ¶
type StatusOutboxRepositoryMockCreateOrderStatusChangedEventParamPtrs struct {
// contains filtered or unexported fields
}
StatusOutboxRepositoryMockCreateOrderStatusChangedEventParamPtrs contains pointers to parameters of the StatusOutboxRepository.CreateOrderStatusChangedEvent
type StatusOutboxRepositoryMockCreateOrderStatusChangedEventParams ¶
type StatusOutboxRepositoryMockCreateOrderStatusChangedEventParams struct {
// contains filtered or unexported fields
}
StatusOutboxRepositoryMockCreateOrderStatusChangedEventParams contains parameters of the StatusOutboxRepository.CreateOrderStatusChangedEvent
type StatusOutboxRepositoryMockCreateOrderStatusChangedEventResults ¶
type StatusOutboxRepositoryMockCreateOrderStatusChangedEventResults struct {
// contains filtered or unexported fields
}
StatusOutboxRepositoryMockCreateOrderStatusChangedEventResults contains results of the StatusOutboxRepository.CreateOrderStatusChangedEvent
type StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventExpectation ¶
type StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventExpectation struct { Counter uint64 // contains filtered or unexported fields }
StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventExpectation specifies expectation struct of the StatusOutboxRepository.FetchNextOrderStatusChangedEvent
func (*StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventExpectation) Then ¶
func (e *StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventExpectation) Then(s1 ordermodels.StatusChangedEvent, err error) *StatusOutboxRepositoryMock
Then sets up StatusOutboxRepository.FetchNextOrderStatusChangedEvent return parameters for the expectation previously defined by the When method
type StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventParamPtrs ¶
type StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventParamPtrs struct {
// contains filtered or unexported fields
}
StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventParamPtrs contains pointers to parameters of the StatusOutboxRepository.FetchNextOrderStatusChangedEvent
type StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventParams ¶
type StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventParams struct {
// contains filtered or unexported fields
}
StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventParams contains parameters of the StatusOutboxRepository.FetchNextOrderStatusChangedEvent
type StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventResults ¶
type StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventResults struct {
// contains filtered or unexported fields
}
StatusOutboxRepositoryMockFetchNextOrderStatusChangedEventResults contains results of the StatusOutboxRepository.FetchNextOrderStatusChangedEvent
type StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendExpectation ¶
type StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendExpectation struct { Counter uint64 // contains filtered or unexported fields }
StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendExpectation specifies expectation struct of the StatusOutboxRepository.MarkOrderStatusChangedEventAsSend
func (*StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendExpectation) Then ¶
func (e *StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendExpectation) Then(err error) *StatusOutboxRepositoryMock
Then sets up StatusOutboxRepository.MarkOrderStatusChangedEventAsSend return parameters for the expectation previously defined by the When method
type StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendParamPtrs ¶
type StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendParamPtrs struct {
// contains filtered or unexported fields
}
StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendParamPtrs contains pointers to parameters of the StatusOutboxRepository.MarkOrderStatusChangedEventAsSend
type StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendParams ¶
type StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendParams struct {
// contains filtered or unexported fields
}
StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendParams contains parameters of the StatusOutboxRepository.MarkOrderStatusChangedEventAsSend
type StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendResults ¶
type StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendResults struct {
// contains filtered or unexported fields
}
StatusOutboxRepositoryMockMarkOrderStatusChangedEventAsSendResults contains results of the StatusOutboxRepository.MarkOrderStatusChangedEventAsSend
type StockServiceMock ¶
type StockServiceMock struct { ReserveMock mStockServiceMockReserve ReserveCancelMock mStockServiceMockReserveCancel ReserveRemoveMock mStockServiceMockReserveRemove // contains filtered or unexported fields }
StockServiceMock implements order.StockService
func NewStockServiceMock ¶
func NewStockServiceMock(t minimock.Tester) *StockServiceMock
NewStockServiceMock returns a mock for order.StockService
func (*StockServiceMock) MinimockFinish ¶
func (m *StockServiceMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*StockServiceMock) MinimockReserveCancelDone ¶
func (m *StockServiceMock) MinimockReserveCancelDone() bool
MinimockReserveCancelDone returns true if the count of the ReserveCancel invocations corresponds the number of defined expectations
func (*StockServiceMock) MinimockReserveCancelInspect ¶
func (m *StockServiceMock) MinimockReserveCancelInspect()
MinimockReserveCancelInspect logs each unmet expectation
func (*StockServiceMock) MinimockReserveDone ¶
func (m *StockServiceMock) MinimockReserveDone() bool
MinimockReserveDone returns true if the count of the Reserve invocations corresponds the number of defined expectations
func (*StockServiceMock) MinimockReserveInspect ¶
func (m *StockServiceMock) MinimockReserveInspect()
MinimockReserveInspect logs each unmet expectation
func (*StockServiceMock) MinimockReserveRemoveDone ¶
func (m *StockServiceMock) MinimockReserveRemoveDone() bool
MinimockReserveRemoveDone returns true if the count of the ReserveRemove invocations corresponds the number of defined expectations
func (*StockServiceMock) MinimockReserveRemoveInspect ¶
func (m *StockServiceMock) MinimockReserveRemoveInspect()
MinimockReserveRemoveInspect logs each unmet expectation
func (*StockServiceMock) MinimockWait ¶
func (m *StockServiceMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*StockServiceMock) Reserve ¶
func (mmReserve *StockServiceMock) Reserve(ctx context.Context, item []ordermodels.Item) (err error)
Reserve implements order.StockService
func (*StockServiceMock) ReserveAfterCounter ¶
func (mmReserve *StockServiceMock) ReserveAfterCounter() uint64
ReserveAfterCounter returns a count of finished StockServiceMock.Reserve invocations
func (*StockServiceMock) ReserveBeforeCounter ¶
func (mmReserve *StockServiceMock) ReserveBeforeCounter() uint64
ReserveBeforeCounter returns a count of StockServiceMock.Reserve invocations
func (*StockServiceMock) ReserveCancel ¶
func (mmReserveCancel *StockServiceMock) ReserveCancel(ctx context.Context, item []stockmodels.ReserveItem) (err error)
ReserveCancel implements order.StockService
func (*StockServiceMock) ReserveCancelAfterCounter ¶
func (mmReserveCancel *StockServiceMock) ReserveCancelAfterCounter() uint64
ReserveCancelAfterCounter returns a count of finished StockServiceMock.ReserveCancel invocations
func (*StockServiceMock) ReserveCancelBeforeCounter ¶
func (mmReserveCancel *StockServiceMock) ReserveCancelBeforeCounter() uint64
ReserveCancelBeforeCounter returns a count of StockServiceMock.ReserveCancel invocations
func (*StockServiceMock) ReserveRemove ¶
func (mmReserveRemove *StockServiceMock) ReserveRemove(ctx context.Context, item []stockmodels.ReserveItem) (err error)
ReserveRemove implements order.StockService
func (*StockServiceMock) ReserveRemoveAfterCounter ¶
func (mmReserveRemove *StockServiceMock) ReserveRemoveAfterCounter() uint64
ReserveRemoveAfterCounter returns a count of finished StockServiceMock.ReserveRemove invocations
func (*StockServiceMock) ReserveRemoveBeforeCounter ¶
func (mmReserveRemove *StockServiceMock) ReserveRemoveBeforeCounter() uint64
ReserveRemoveBeforeCounter returns a count of StockServiceMock.ReserveRemove invocations
type StockServiceMockReserveCancelExpectation ¶
type StockServiceMockReserveCancelExpectation struct { Counter uint64 // contains filtered or unexported fields }
StockServiceMockReserveCancelExpectation specifies expectation struct of the StockService.ReserveCancel
func (*StockServiceMockReserveCancelExpectation) Then ¶
func (e *StockServiceMockReserveCancelExpectation) Then(err error) *StockServiceMock
Then sets up StockService.ReserveCancel return parameters for the expectation previously defined by the When method
type StockServiceMockReserveCancelParamPtrs ¶
type StockServiceMockReserveCancelParamPtrs struct {
// contains filtered or unexported fields
}
StockServiceMockReserveCancelParamPtrs contains pointers to parameters of the StockService.ReserveCancel
type StockServiceMockReserveCancelParams ¶
type StockServiceMockReserveCancelParams struct {
// contains filtered or unexported fields
}
StockServiceMockReserveCancelParams contains parameters of the StockService.ReserveCancel
type StockServiceMockReserveCancelResults ¶
type StockServiceMockReserveCancelResults struct {
// contains filtered or unexported fields
}
StockServiceMockReserveCancelResults contains results of the StockService.ReserveCancel
type StockServiceMockReserveExpectation ¶
type StockServiceMockReserveExpectation struct { Counter uint64 // contains filtered or unexported fields }
StockServiceMockReserveExpectation specifies expectation struct of the StockService.Reserve
func (*StockServiceMockReserveExpectation) Then ¶
func (e *StockServiceMockReserveExpectation) Then(err error) *StockServiceMock
Then sets up StockService.Reserve return parameters for the expectation previously defined by the When method
type StockServiceMockReserveParamPtrs ¶
type StockServiceMockReserveParamPtrs struct {
// contains filtered or unexported fields
}
StockServiceMockReserveParamPtrs contains pointers to parameters of the StockService.Reserve
type StockServiceMockReserveParams ¶
type StockServiceMockReserveParams struct {
// contains filtered or unexported fields
}
StockServiceMockReserveParams contains parameters of the StockService.Reserve
type StockServiceMockReserveRemoveExpectation ¶
type StockServiceMockReserveRemoveExpectation struct { Counter uint64 // contains filtered or unexported fields }
StockServiceMockReserveRemoveExpectation specifies expectation struct of the StockService.ReserveRemove
func (*StockServiceMockReserveRemoveExpectation) Then ¶
func (e *StockServiceMockReserveRemoveExpectation) Then(err error) *StockServiceMock
Then sets up StockService.ReserveRemove return parameters for the expectation previously defined by the When method
type StockServiceMockReserveRemoveParamPtrs ¶
type StockServiceMockReserveRemoveParamPtrs struct {
// contains filtered or unexported fields
}
StockServiceMockReserveRemoveParamPtrs contains pointers to parameters of the StockService.ReserveRemove
type StockServiceMockReserveRemoveParams ¶
type StockServiceMockReserveRemoveParams struct {
// contains filtered or unexported fields
}
StockServiceMockReserveRemoveParams contains parameters of the StockService.ReserveRemove
type StockServiceMockReserveRemoveResults ¶
type StockServiceMockReserveRemoveResults struct {
// contains filtered or unexported fields
}
StockServiceMockReserveRemoveResults contains results of the StockService.ReserveRemove
type StockServiceMockReserveResults ¶
type StockServiceMockReserveResults struct {
// contains filtered or unexported fields
}
StockServiceMockReserveResults contains results of the StockService.Reserve
type TxManagerMock ¶
type TxManagerMock struct { ReadCommittedMock mTxManagerMockReadCommitted // contains filtered or unexported fields }
TxManagerMock implements order.TxManager
func NewTxManagerMock ¶
func NewTxManagerMock(t minimock.Tester) *TxManagerMock
NewTxManagerMock returns a mock for order.TxManager
func (*TxManagerMock) MinimockFinish ¶
func (m *TxManagerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*TxManagerMock) MinimockReadCommittedDone ¶
func (m *TxManagerMock) MinimockReadCommittedDone() bool
MinimockReadCommittedDone returns true if the count of the ReadCommitted invocations corresponds the number of defined expectations
func (*TxManagerMock) MinimockReadCommittedInspect ¶
func (m *TxManagerMock) MinimockReadCommittedInspect()
MinimockReadCommittedInspect logs each unmet expectation
func (*TxManagerMock) MinimockWait ¶
func (m *TxManagerMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*TxManagerMock) ReadCommitted ¶
func (mmReadCommitted *TxManagerMock) ReadCommitted(ctx context.Context, f func(context.Context) error) (err error)
ReadCommitted implements order.TxManager
func (*TxManagerMock) ReadCommittedAfterCounter ¶
func (mmReadCommitted *TxManagerMock) ReadCommittedAfterCounter() uint64
ReadCommittedAfterCounter returns a count of finished TxManagerMock.ReadCommitted invocations
func (*TxManagerMock) ReadCommittedBeforeCounter ¶
func (mmReadCommitted *TxManagerMock) ReadCommittedBeforeCounter() uint64
ReadCommittedBeforeCounter returns a count of TxManagerMock.ReadCommitted invocations
type TxManagerMockReadCommittedExpectation ¶
type TxManagerMockReadCommittedExpectation struct { Counter uint64 // contains filtered or unexported fields }
TxManagerMockReadCommittedExpectation specifies expectation struct of the TxManager.ReadCommitted
func (*TxManagerMockReadCommittedExpectation) Then ¶
func (e *TxManagerMockReadCommittedExpectation) Then(err error) *TxManagerMock
Then sets up TxManager.ReadCommitted return parameters for the expectation previously defined by the When method
type TxManagerMockReadCommittedParamPtrs ¶
type TxManagerMockReadCommittedParamPtrs struct {
// contains filtered or unexported fields
}
TxManagerMockReadCommittedParamPtrs contains pointers to parameters of the TxManager.ReadCommitted
type TxManagerMockReadCommittedParams ¶
type TxManagerMockReadCommittedParams struct {
// contains filtered or unexported fields
}
TxManagerMockReadCommittedParams contains parameters of the TxManager.ReadCommitted
type TxManagerMockReadCommittedResults ¶
type TxManagerMockReadCommittedResults struct {
// contains filtered or unexported fields
}
TxManagerMockReadCommittedResults contains results of the TxManager.ReadCommitted