Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockAccountBuilder
- func (m *MockAccountBuilder) Build(ctx context.Context) (*handler.Account, error)
- func (m *MockAccountBuilder) EXPECT() *MockAccountBuilderMockRecorder
- func (m *MockAccountBuilder) SetBalance(balance float64) handler.AccountBuilder
- func (m *MockAccountBuilder) SetCurrency(currency string) handler.AccountBuilder
- func (m *MockAccountBuilder) SetUID(uid string) handler.AccountBuilder
- type MockAccountBuilderMockRecorder
- func (mr *MockAccountBuilderMockRecorder) Build(ctx interface{}) *gomock.Call
- func (mr *MockAccountBuilderMockRecorder) SetBalance(balance interface{}) *gomock.Call
- func (mr *MockAccountBuilderMockRecorder) SetCurrency(currency interface{}) *gomock.Call
- func (mr *MockAccountBuilderMockRecorder) SetUID(uid interface{}) *gomock.Call
- type MockAccountManager
- func (m *MockAccountManager) AccountBuilder() handler.AccountBuilder
- func (m *MockAccountManager) AllAccounts(ctx context.Context) ([]handler.Account, error)
- func (m *MockAccountManager) AllPayments(ctx context.Context) ([]handler.Payment, error)
- func (m *MockAccountManager) EXPECT() *MockAccountManagerMockRecorder
- func (m *MockAccountManager) PaymentBuilder() handler.PaymentBuilder
- type MockAccountManagerMockRecorder
- func (mr *MockAccountManagerMockRecorder) AccountBuilder() *gomock.Call
- func (mr *MockAccountManagerMockRecorder) AllAccounts(ctx interface{}) *gomock.Call
- func (mr *MockAccountManagerMockRecorder) AllPayments(ctx interface{}) *gomock.Call
- func (mr *MockAccountManagerMockRecorder) PaymentBuilder() *gomock.Call
- type MockAccountRepository
- func (m *MockAccountRepository) EXPECT() *MockAccountRepositoryMockRecorder
- func (m *MockAccountRepository) GetAll(ctx context.Context) ([]repository.Account, error)
- func (m *MockAccountRepository) Store(ctx context.Context, account *repository.Account) error
- func (m *MockAccountRepository) UpdateBalance(ctx context.Context, uid string, incr int64) error
- type MockAccountRepositoryMockRecorder
- type MockFactory
- type MockFactoryMockRecorder
- type MockPaymentBuilder
- func (m *MockPaymentBuilder) Build(ctx context.Context) (*handler.Payment, error)
- func (m *MockPaymentBuilder) EXPECT() *MockPaymentBuilderMockRecorder
- func (m *MockPaymentBuilder) SetAmount(amount float64) handler.PaymentBuilder
- func (m *MockPaymentBuilder) SetPayer(uid string) handler.PaymentBuilder
- func (m *MockPaymentBuilder) SetRecipient(uid string) handler.PaymentBuilder
- type MockPaymentBuilderMockRecorder
- func (mr *MockPaymentBuilderMockRecorder) Build(ctx interface{}) *gomock.Call
- func (mr *MockPaymentBuilderMockRecorder) SetAmount(amount interface{}) *gomock.Call
- func (mr *MockPaymentBuilderMockRecorder) SetPayer(uid interface{}) *gomock.Call
- func (mr *MockPaymentBuilderMockRecorder) SetRecipient(uid interface{}) *gomock.Call
- type MockPaymentRepository
- type MockPaymentRepositoryMockRecorder
- type MockPostgresClient
- type MockPostgresClientMockRecorder
- type MockScope
- type MockScopeMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAccountBuilder ¶
type MockAccountBuilder struct {
// contains filtered or unexported fields
}
MockAccountBuilder is a mock of AccountBuilder interface
func NewMockAccountBuilder ¶
func NewMockAccountBuilder(ctrl *gomock.Controller) *MockAccountBuilder
NewMockAccountBuilder creates a new mock instance
func (*MockAccountBuilder) EXPECT ¶
func (m *MockAccountBuilder) EXPECT() *MockAccountBuilderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAccountBuilder) SetBalance ¶
func (m *MockAccountBuilder) SetBalance(balance float64) handler.AccountBuilder
SetBalance mocks base method
func (*MockAccountBuilder) SetCurrency ¶
func (m *MockAccountBuilder) SetCurrency(currency string) handler.AccountBuilder
SetCurrency mocks base method
func (*MockAccountBuilder) SetUID ¶
func (m *MockAccountBuilder) SetUID(uid string) handler.AccountBuilder
SetUID mocks base method
type MockAccountBuilderMockRecorder ¶
type MockAccountBuilderMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountBuilderMockRecorder is the mock recorder for MockAccountBuilder
func (*MockAccountBuilderMockRecorder) Build ¶
func (mr *MockAccountBuilderMockRecorder) Build(ctx interface{}) *gomock.Call
Build indicates an expected call of Build
func (*MockAccountBuilderMockRecorder) SetBalance ¶
func (mr *MockAccountBuilderMockRecorder) SetBalance(balance interface{}) *gomock.Call
SetBalance indicates an expected call of SetBalance
func (*MockAccountBuilderMockRecorder) SetCurrency ¶
func (mr *MockAccountBuilderMockRecorder) SetCurrency(currency interface{}) *gomock.Call
SetCurrency indicates an expected call of SetCurrency
func (*MockAccountBuilderMockRecorder) SetUID ¶
func (mr *MockAccountBuilderMockRecorder) SetUID(uid interface{}) *gomock.Call
SetUID indicates an expected call of SetUID
type MockAccountManager ¶
type MockAccountManager struct {
// contains filtered or unexported fields
}
MockAccountManager is a mock of AccountManager interface
func NewMockAccountManager ¶
func NewMockAccountManager(ctrl *gomock.Controller) *MockAccountManager
NewMockAccountManager creates a new mock instance
func (*MockAccountManager) AccountBuilder ¶
func (m *MockAccountManager) AccountBuilder() handler.AccountBuilder
AccountBuilder mocks base method
func (*MockAccountManager) AllAccounts ¶
AllAccounts mocks base method
func (*MockAccountManager) AllPayments ¶
AllPayments mocks base method
func (*MockAccountManager) EXPECT ¶
func (m *MockAccountManager) EXPECT() *MockAccountManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAccountManager) PaymentBuilder ¶
func (m *MockAccountManager) PaymentBuilder() handler.PaymentBuilder
PaymentBuilder mocks base method
type MockAccountManagerMockRecorder ¶
type MockAccountManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountManagerMockRecorder is the mock recorder for MockAccountManager
func (*MockAccountManagerMockRecorder) AccountBuilder ¶
func (mr *MockAccountManagerMockRecorder) AccountBuilder() *gomock.Call
AccountBuilder indicates an expected call of AccountBuilder
func (*MockAccountManagerMockRecorder) AllAccounts ¶
func (mr *MockAccountManagerMockRecorder) AllAccounts(ctx interface{}) *gomock.Call
AllAccounts indicates an expected call of AllAccounts
func (*MockAccountManagerMockRecorder) AllPayments ¶
func (mr *MockAccountManagerMockRecorder) AllPayments(ctx interface{}) *gomock.Call
AllPayments indicates an expected call of AllPayments
func (*MockAccountManagerMockRecorder) PaymentBuilder ¶
func (mr *MockAccountManagerMockRecorder) PaymentBuilder() *gomock.Call
PaymentBuilder indicates an expected call of PaymentBuilder
type MockAccountRepository ¶
type MockAccountRepository struct {
// contains filtered or unexported fields
}
MockAccountRepository is a mock of AccountRepository interface
func NewMockAccountRepository ¶
func NewMockAccountRepository(ctrl *gomock.Controller) *MockAccountRepository
NewMockAccountRepository creates a new mock instance
func (*MockAccountRepository) EXPECT ¶
func (m *MockAccountRepository) EXPECT() *MockAccountRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAccountRepository) GetAll ¶
func (m *MockAccountRepository) GetAll(ctx context.Context) ([]repository.Account, error)
GetAll mocks base method
func (*MockAccountRepository) Store ¶
func (m *MockAccountRepository) Store(ctx context.Context, account *repository.Account) error
Store mocks base method
func (*MockAccountRepository) UpdateBalance ¶
UpdateBalance mocks base method
type MockAccountRepositoryMockRecorder ¶
type MockAccountRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountRepositoryMockRecorder is the mock recorder for MockAccountRepository
func (*MockAccountRepositoryMockRecorder) GetAll ¶
func (mr *MockAccountRepositoryMockRecorder) GetAll(ctx interface{}) *gomock.Call
GetAll indicates an expected call of GetAll
func (*MockAccountRepositoryMockRecorder) Store ¶
func (mr *MockAccountRepositoryMockRecorder) Store(ctx, account interface{}) *gomock.Call
Store indicates an expected call of Store
func (*MockAccountRepositoryMockRecorder) UpdateBalance ¶
func (mr *MockAccountRepositoryMockRecorder) UpdateBalance(ctx, uid, incr interface{}) *gomock.Call
UpdateBalance indicates an expected call of UpdateBalance
type MockFactory ¶
type MockFactory struct {
// contains filtered or unexported fields
}
MockFactory is a mock of Factory interface
func NewMockFactory ¶
func NewMockFactory(ctrl *gomock.Controller) *MockFactory
NewMockFactory creates a new mock instance
func (*MockFactory) AccountRepository ¶
func (m *MockFactory) AccountRepository() repository.AccountRepository
AccountRepository mocks base method
func (*MockFactory) EXPECT ¶
func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFactory) PaymentRepository ¶
func (m *MockFactory) PaymentRepository() repository.PaymentRepository
PaymentRepository mocks base method
type MockFactoryMockRecorder ¶
type MockFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockFactoryMockRecorder is the mock recorder for MockFactory
func (*MockFactoryMockRecorder) AccountRepository ¶
func (mr *MockFactoryMockRecorder) AccountRepository() *gomock.Call
AccountRepository indicates an expected call of AccountRepository
func (*MockFactoryMockRecorder) PaymentRepository ¶
func (mr *MockFactoryMockRecorder) PaymentRepository() *gomock.Call
PaymentRepository indicates an expected call of PaymentRepository
func (*MockFactoryMockRecorder) Scope ¶
func (mr *MockFactoryMockRecorder) Scope() *gomock.Call
Scope indicates an expected call of Scope
type MockPaymentBuilder ¶
type MockPaymentBuilder struct {
// contains filtered or unexported fields
}
MockPaymentBuilder is a mock of PaymentBuilder interface
func NewMockPaymentBuilder ¶
func NewMockPaymentBuilder(ctrl *gomock.Controller) *MockPaymentBuilder
NewMockPaymentBuilder creates a new mock instance
func (*MockPaymentBuilder) EXPECT ¶
func (m *MockPaymentBuilder) EXPECT() *MockPaymentBuilderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPaymentBuilder) SetAmount ¶
func (m *MockPaymentBuilder) SetAmount(amount float64) handler.PaymentBuilder
SetAmount mocks base method
func (*MockPaymentBuilder) SetPayer ¶
func (m *MockPaymentBuilder) SetPayer(uid string) handler.PaymentBuilder
SetPayer mocks base method
func (*MockPaymentBuilder) SetRecipient ¶
func (m *MockPaymentBuilder) SetRecipient(uid string) handler.PaymentBuilder
SetRecipient mocks base method
type MockPaymentBuilderMockRecorder ¶
type MockPaymentBuilderMockRecorder struct {
// contains filtered or unexported fields
}
MockPaymentBuilderMockRecorder is the mock recorder for MockPaymentBuilder
func (*MockPaymentBuilderMockRecorder) Build ¶
func (mr *MockPaymentBuilderMockRecorder) Build(ctx interface{}) *gomock.Call
Build indicates an expected call of Build
func (*MockPaymentBuilderMockRecorder) SetAmount ¶
func (mr *MockPaymentBuilderMockRecorder) SetAmount(amount interface{}) *gomock.Call
SetAmount indicates an expected call of SetAmount
func (*MockPaymentBuilderMockRecorder) SetPayer ¶
func (mr *MockPaymentBuilderMockRecorder) SetPayer(uid interface{}) *gomock.Call
SetPayer indicates an expected call of SetPayer
func (*MockPaymentBuilderMockRecorder) SetRecipient ¶
func (mr *MockPaymentBuilderMockRecorder) SetRecipient(uid interface{}) *gomock.Call
SetRecipient indicates an expected call of SetRecipient
type MockPaymentRepository ¶
type MockPaymentRepository struct {
// contains filtered or unexported fields
}
MockPaymentRepository is a mock of PaymentRepository interface
func NewMockPaymentRepository ¶
func NewMockPaymentRepository(ctrl *gomock.Controller) *MockPaymentRepository
NewMockPaymentRepository creates a new mock instance
func (*MockPaymentRepository) EXPECT ¶
func (m *MockPaymentRepository) EXPECT() *MockPaymentRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPaymentRepository) GetAll ¶
func (m *MockPaymentRepository) GetAll(ctx context.Context) ([]repository.Payment, error)
GetAll mocks base method
func (*MockPaymentRepository) Store ¶
func (m *MockPaymentRepository) Store(ctx context.Context, payment *repository.Payment) error
Store mocks base method
type MockPaymentRepositoryMockRecorder ¶
type MockPaymentRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockPaymentRepositoryMockRecorder is the mock recorder for MockPaymentRepository
func (*MockPaymentRepositoryMockRecorder) GetAll ¶
func (mr *MockPaymentRepositoryMockRecorder) GetAll(ctx interface{}) *gomock.Call
GetAll indicates an expected call of GetAll
func (*MockPaymentRepositoryMockRecorder) Store ¶
func (mr *MockPaymentRepositoryMockRecorder) Store(ctx, payment interface{}) *gomock.Call
Store indicates an expected call of Store
type MockPostgresClient ¶
type MockPostgresClient struct {
// contains filtered or unexported fields
}
MockPostgresClient is a mock of PostgresClient interface
func NewMockPostgresClient ¶
func NewMockPostgresClient(ctrl *gomock.Controller) *MockPostgresClient
NewMockPostgresClient creates a new mock instance
func (*MockPostgresClient) EXPECT ¶
func (m *MockPostgresClient) EXPECT() *MockPostgresClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPostgresClient) GetConnection ¶
func (m *MockPostgresClient) GetConnection() *sqlx.DB
GetConnection mocks base method
type MockPostgresClientMockRecorder ¶
type MockPostgresClientMockRecorder struct {
// contains filtered or unexported fields
}
MockPostgresClientMockRecorder is the mock recorder for MockPostgresClient
func (*MockPostgresClientMockRecorder) GetConnection ¶
func (mr *MockPostgresClientMockRecorder) GetConnection() *gomock.Call
GetConnection indicates an expected call of GetConnection
func (*MockPostgresClientMockRecorder) Stop ¶
func (mr *MockPostgresClientMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
type MockScope ¶
type MockScope struct {
// contains filtered or unexported fields
}
MockScope is a mock of Scope interface
func NewMockScope ¶
func NewMockScope(ctrl *gomock.Controller) *MockScope
NewMockScope creates a new mock instance
func (*MockScope) EXPECT ¶
func (m *MockScope) EXPECT() *MockScopeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockScopeMockRecorder ¶
type MockScopeMockRecorder struct {
// contains filtered or unexported fields
}
MockScopeMockRecorder is the mock recorder for MockScope
func (*MockScopeMockRecorder) Cancel ¶
func (mr *MockScopeMockRecorder) Cancel(ctx interface{}) *gomock.Call
Cancel indicates an expected call of Cancel
func (*MockScopeMockRecorder) Complete ¶
func (mr *MockScopeMockRecorder) Complete(ctx interface{}) *gomock.Call
Complete indicates an expected call of Complete
func (*MockScopeMockRecorder) WithContext ¶
func (mr *MockScopeMockRecorder) WithContext(ctx interface{}) *gomock.Call
WithContext indicates an expected call of WithContext