Documentation ¶
Overview ¶
Package mock implements dependencies for testing. Deprecated: You should NOT use this package in your application code.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- func NewZeroLog() *zeroLog
- type Log
- type MockManager
- type MockManagerMockRecorder
- type MockNestedTrFactory
- type MockNestedTrFactoryMockRecorder
- type MockSettings
- func (m *MockSettings) Cancelable() bool
- func (m *MockSettings) CancelableOrNil() *bool
- func (m *MockSettings) CtxKey() trm.CtxKey
- func (m *MockSettings) CtxKeyOrNil() *trm.CtxKey
- func (m *MockSettings) EXPECT() *MockSettingsMockRecorder
- func (m *MockSettings) EnrichBy(external trm.Settings) trm.Settings
- func (m *MockSettings) Propagation() trm.Propagation
- func (m *MockSettings) PropagationOrNil() *trm.Propagation
- func (m *MockSettings) SetCancelable(arg0 *bool) trm.Settings
- func (m *MockSettings) SetCtxKey(arg0 *trm.CtxKey) trm.Settings
- func (m *MockSettings) SetPropagation(arg0 *trm.Propagation) trm.Settings
- func (m *MockSettings) SetTimeout(arg0 *time.Duration) trm.Settings
- func (m *MockSettings) TimeoutOrNil() *time.Duration
- type MockSettingsMockRecorder
- func (mr *MockSettingsMockRecorder) Cancelable() *gomock.Call
- func (mr *MockSettingsMockRecorder) CancelableOrNil() *gomock.Call
- func (mr *MockSettingsMockRecorder) CtxKey() *gomock.Call
- func (mr *MockSettingsMockRecorder) CtxKeyOrNil() *gomock.Call
- func (mr *MockSettingsMockRecorder) EnrichBy(external interface{}) *gomock.Call
- func (mr *MockSettingsMockRecorder) Propagation() *gomock.Call
- func (mr *MockSettingsMockRecorder) PropagationOrNil() *gomock.Call
- func (mr *MockSettingsMockRecorder) SetCancelable(arg0 interface{}) *gomock.Call
- func (mr *MockSettingsMockRecorder) SetCtxKey(arg0 interface{}) *gomock.Call
- func (mr *MockSettingsMockRecorder) SetPropagation(arg0 interface{}) *gomock.Call
- func (mr *MockSettingsMockRecorder) SetTimeout(arg0 interface{}) *gomock.Call
- func (mr *MockSettingsMockRecorder) TimeoutOrNil() *gomock.Call
- type MockTransaction
- func (m *MockTransaction) Closed() <-chan struct{}
- func (m *MockTransaction) Commit(arg0 context.Context) error
- func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
- func (m *MockTransaction) IsActive() bool
- func (m *MockTransaction) Rollback(arg0 context.Context) error
- func (m *MockTransaction) Transaction() interface{}
- type MockTransactionMockRecorder
- func (mr *MockTransactionMockRecorder) Closed() *gomock.Call
- func (mr *MockTransactionMockRecorder) Commit(arg0 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) IsActive() *gomock.Call
- func (mr *MockTransactionMockRecorder) Rollback(arg0 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) Transaction() *gomock.Call
- type MocktransactionWithSP
- func (m *MocktransactionWithSP) Begin(ctx context.Context, s trm.Settings) (context.Context, trm.Transaction, error)
- func (m *MocktransactionWithSP) Closed() <-chan struct{}
- func (m *MocktransactionWithSP) Commit(arg0 context.Context) error
- func (m *MocktransactionWithSP) EXPECT() *MocktransactionWithSPMockRecorder
- func (m *MocktransactionWithSP) IsActive() bool
- func (m *MocktransactionWithSP) Rollback(arg0 context.Context) error
- func (m *MocktransactionWithSP) Transaction() interface{}
- type MocktransactionWithSPMockRecorder
- func (mr *MocktransactionWithSPMockRecorder) Begin(ctx, s interface{}) *gomock.Call
- func (mr *MocktransactionWithSPMockRecorder) Closed() *gomock.Call
- func (mr *MocktransactionWithSPMockRecorder) Commit(arg0 interface{}) *gomock.Call
- func (mr *MocktransactionWithSPMockRecorder) IsActive() *gomock.Call
- func (mr *MocktransactionWithSPMockRecorder) Rollback(arg0 interface{}) *gomock.Call
- func (mr *MocktransactionWithSPMockRecorder) Transaction() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewZeroLog ¶
func NewZeroLog() *zeroLog
NewZeroLog create mock Log, which should not be called.
Types ¶
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) DoWithSettings ¶
func (m *MockManager) DoWithSettings(arg0 context.Context, arg1 trm.Settings, arg2 func(context.Context) error) error
DoWithSettings mocks base method.
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) Do ¶
func (mr *MockManagerMockRecorder) Do(arg0, arg1 interface{}) *gomock.Call
Do indicates an expected call of Do.
func (*MockManagerMockRecorder) DoWithSettings ¶
func (mr *MockManagerMockRecorder) DoWithSettings(arg0, arg1, arg2 interface{}) *gomock.Call
DoWithSettings indicates an expected call of DoWithSettings.
type MockNestedTrFactory ¶
type MockNestedTrFactory struct {
// contains filtered or unexported fields
}
MockNestedTrFactory is a mock of NestedTrFactory interface.
func NewMockNestedTrFactory ¶
func NewMockNestedTrFactory(ctrl *gomock.Controller) *MockNestedTrFactory
NewMockNestedTrFactory creates a new mock instance.
func (*MockNestedTrFactory) Begin ¶
func (m *MockNestedTrFactory) Begin(ctx context.Context, s trm.Settings) (context.Context, trm.Transaction, error)
Begin mocks base method.
func (*MockNestedTrFactory) EXPECT ¶
func (m *MockNestedTrFactory) EXPECT() *MockNestedTrFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockNestedTrFactoryMockRecorder ¶
type MockNestedTrFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockNestedTrFactoryMockRecorder is the mock recorder for MockNestedTrFactory.
func (*MockNestedTrFactoryMockRecorder) Begin ¶
func (mr *MockNestedTrFactoryMockRecorder) Begin(ctx, s interface{}) *gomock.Call
Begin indicates an expected call of Begin.
type MockSettings ¶
type MockSettings struct {
// contains filtered or unexported fields
}
MockSettings is a mock of Settings interface.
func NewMockSettings ¶
func NewMockSettings(ctrl *gomock.Controller) *MockSettings
NewMockSettings creates a new mock instance.
func (*MockSettings) Cancelable ¶
func (m *MockSettings) Cancelable() bool
Cancelable mocks base method.
func (*MockSettings) CancelableOrNil ¶
func (m *MockSettings) CancelableOrNil() *bool
CancelableOrNil mocks base method.
func (*MockSettings) CtxKeyOrNil ¶
func (m *MockSettings) CtxKeyOrNil() *trm.CtxKey
CtxKeyOrNil mocks base method.
func (*MockSettings) EXPECT ¶
func (m *MockSettings) EXPECT() *MockSettingsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSettings) EnrichBy ¶
func (m *MockSettings) EnrichBy(external trm.Settings) trm.Settings
EnrichBy mocks base method.
func (*MockSettings) Propagation ¶
func (m *MockSettings) Propagation() trm.Propagation
Propagation mocks base method.
func (*MockSettings) PropagationOrNil ¶
func (m *MockSettings) PropagationOrNil() *trm.Propagation
PropagationOrNil mocks base method.
func (*MockSettings) SetCancelable ¶
func (m *MockSettings) SetCancelable(arg0 *bool) trm.Settings
SetCancelable mocks base method.
func (*MockSettings) SetCtxKey ¶
func (m *MockSettings) SetCtxKey(arg0 *trm.CtxKey) trm.Settings
SetCtxKey mocks base method.
func (*MockSettings) SetPropagation ¶
func (m *MockSettings) SetPropagation(arg0 *trm.Propagation) trm.Settings
SetPropagation mocks base method.
func (*MockSettings) SetTimeout ¶
func (m *MockSettings) SetTimeout(arg0 *time.Duration) trm.Settings
SetTimeout mocks base method.
func (*MockSettings) TimeoutOrNil ¶
func (m *MockSettings) TimeoutOrNil() *time.Duration
TimeoutOrNil mocks base method.
type MockSettingsMockRecorder ¶
type MockSettingsMockRecorder struct {
// contains filtered or unexported fields
}
MockSettingsMockRecorder is the mock recorder for MockSettings.
func (*MockSettingsMockRecorder) Cancelable ¶
func (mr *MockSettingsMockRecorder) Cancelable() *gomock.Call
Cancelable indicates an expected call of Cancelable.
func (*MockSettingsMockRecorder) CancelableOrNil ¶
func (mr *MockSettingsMockRecorder) CancelableOrNil() *gomock.Call
CancelableOrNil indicates an expected call of CancelableOrNil.
func (*MockSettingsMockRecorder) CtxKey ¶
func (mr *MockSettingsMockRecorder) CtxKey() *gomock.Call
CtxKey indicates an expected call of CtxKey.
func (*MockSettingsMockRecorder) CtxKeyOrNil ¶
func (mr *MockSettingsMockRecorder) CtxKeyOrNil() *gomock.Call
CtxKeyOrNil indicates an expected call of CtxKeyOrNil.
func (*MockSettingsMockRecorder) EnrichBy ¶
func (mr *MockSettingsMockRecorder) EnrichBy(external interface{}) *gomock.Call
EnrichBy indicates an expected call of EnrichBy.
func (*MockSettingsMockRecorder) Propagation ¶
func (mr *MockSettingsMockRecorder) Propagation() *gomock.Call
Propagation indicates an expected call of Propagation.
func (*MockSettingsMockRecorder) PropagationOrNil ¶
func (mr *MockSettingsMockRecorder) PropagationOrNil() *gomock.Call
PropagationOrNil indicates an expected call of PropagationOrNil.
func (*MockSettingsMockRecorder) SetCancelable ¶
func (mr *MockSettingsMockRecorder) SetCancelable(arg0 interface{}) *gomock.Call
SetCancelable indicates an expected call of SetCancelable.
func (*MockSettingsMockRecorder) SetCtxKey ¶
func (mr *MockSettingsMockRecorder) SetCtxKey(arg0 interface{}) *gomock.Call
SetCtxKey indicates an expected call of SetCtxKey.
func (*MockSettingsMockRecorder) SetPropagation ¶
func (mr *MockSettingsMockRecorder) SetPropagation(arg0 interface{}) *gomock.Call
SetPropagation indicates an expected call of SetPropagation.
func (*MockSettingsMockRecorder) SetTimeout ¶
func (mr *MockSettingsMockRecorder) SetTimeout(arg0 interface{}) *gomock.Call
SetTimeout indicates an expected call of SetTimeout.
func (*MockSettingsMockRecorder) TimeoutOrNil ¶
func (mr *MockSettingsMockRecorder) TimeoutOrNil() *gomock.Call
TimeoutOrNil indicates an expected call of TimeoutOrNil.
type MockTransaction ¶
type MockTransaction struct {
// contains filtered or unexported fields
}
MockTransaction is a mock of Transaction interface.
func NewMockTransaction ¶
func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction
NewMockTransaction creates a new mock instance.
func (*MockTransaction) Closed ¶
func (m *MockTransaction) Closed() <-chan struct{}
Closed mocks base method.
func (*MockTransaction) Commit ¶
func (m *MockTransaction) Commit(arg0 context.Context) error
Commit mocks base method.
func (*MockTransaction) EXPECT ¶
func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTransaction) IsActive ¶
func (m *MockTransaction) IsActive() bool
IsActive mocks base method.
func (*MockTransaction) Rollback ¶
func (m *MockTransaction) Rollback(arg0 context.Context) error
Rollback mocks base method.
func (*MockTransaction) Transaction ¶
func (m *MockTransaction) Transaction() interface{}
Transaction mocks base method.
type MockTransactionMockRecorder ¶
type MockTransactionMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionMockRecorder is the mock recorder for MockTransaction.
func (*MockTransactionMockRecorder) Closed ¶
func (mr *MockTransactionMockRecorder) Closed() *gomock.Call
Closed indicates an expected call of Closed.
func (*MockTransactionMockRecorder) Commit ¶
func (mr *MockTransactionMockRecorder) Commit(arg0 interface{}) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockTransactionMockRecorder) IsActive ¶
func (mr *MockTransactionMockRecorder) IsActive() *gomock.Call
IsActive indicates an expected call of IsActive.
func (*MockTransactionMockRecorder) Rollback ¶
func (mr *MockTransactionMockRecorder) Rollback(arg0 interface{}) *gomock.Call
Rollback indicates an expected call of Rollback.
func (*MockTransactionMockRecorder) Transaction ¶
func (mr *MockTransactionMockRecorder) Transaction() *gomock.Call
Transaction indicates an expected call of Transaction.
type MocktransactionWithSP ¶
type MocktransactionWithSP struct {
// contains filtered or unexported fields
}
MocktransactionWithSP is a mock of transactionWithSP interface.
func NewMocktransactionWithSP ¶
func NewMocktransactionWithSP(ctrl *gomock.Controller) *MocktransactionWithSP
NewMocktransactionWithSP creates a new mock instance.
func (*MocktransactionWithSP) Begin ¶
func (m *MocktransactionWithSP) Begin(ctx context.Context, s trm.Settings) (context.Context, trm.Transaction, error)
Begin mocks base method.
func (*MocktransactionWithSP) Closed ¶
func (m *MocktransactionWithSP) Closed() <-chan struct{}
Closed mocks base method.
func (*MocktransactionWithSP) Commit ¶
func (m *MocktransactionWithSP) Commit(arg0 context.Context) error
Commit mocks base method.
func (*MocktransactionWithSP) EXPECT ¶
func (m *MocktransactionWithSP) EXPECT() *MocktransactionWithSPMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocktransactionWithSP) IsActive ¶
func (m *MocktransactionWithSP) IsActive() bool
IsActive mocks base method.
func (*MocktransactionWithSP) Rollback ¶
func (m *MocktransactionWithSP) Rollback(arg0 context.Context) error
Rollback mocks base method.
func (*MocktransactionWithSP) Transaction ¶
func (m *MocktransactionWithSP) Transaction() interface{}
Transaction mocks base method.
type MocktransactionWithSPMockRecorder ¶
type MocktransactionWithSPMockRecorder struct {
// contains filtered or unexported fields
}
MocktransactionWithSPMockRecorder is the mock recorder for MocktransactionWithSP.
func (*MocktransactionWithSPMockRecorder) Begin ¶
func (mr *MocktransactionWithSPMockRecorder) Begin(ctx, s interface{}) *gomock.Call
Begin indicates an expected call of Begin.
func (*MocktransactionWithSPMockRecorder) Closed ¶
func (mr *MocktransactionWithSPMockRecorder) Closed() *gomock.Call
Closed indicates an expected call of Closed.
func (*MocktransactionWithSPMockRecorder) Commit ¶
func (mr *MocktransactionWithSPMockRecorder) Commit(arg0 interface{}) *gomock.Call
Commit indicates an expected call of Commit.
func (*MocktransactionWithSPMockRecorder) IsActive ¶
func (mr *MocktransactionWithSPMockRecorder) IsActive() *gomock.Call
IsActive indicates an expected call of IsActive.
func (*MocktransactionWithSPMockRecorder) Rollback ¶
func (mr *MocktransactionWithSPMockRecorder) Rollback(arg0 interface{}) *gomock.Call
Rollback indicates an expected call of Rollback.
func (*MocktransactionWithSPMockRecorder) Transaction ¶
func (mr *MocktransactionWithSPMockRecorder) Transaction() *gomock.Call
Transaction indicates an expected call of Transaction.