mock

package
v2.0.0-rc10 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 5 Imported by: 0

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

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 Log

type Log struct {
	Logged []string
}

func NewLog

func NewLog() *Log

NewLog create mock Log.

func (*Log) Warning

func (l *Log) Warning(_ context.Context, msg string)

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) Do

func (m *MockManager) Do(arg0 context.Context, arg1 func(context.Context) error) error

Do mocks base method.

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

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) CtxKey

func (m *MockSettings) CtxKey() trm.CtxKey

CtxKey mocks base method.

func (*MockSettings) CtxKeyOrNil

func (m *MockSettings) CtxKeyOrNil() *trm.CtxKey

CtxKeyOrNil mocks base method.

func (*MockSettings) EXPECT

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

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

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

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

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.

Jump to

Keyboard shortcuts

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