mock

package
v0.0.0-...-43d2b9d Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

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

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

Build mocks base method

func (*MockAccountBuilder) EXPECT

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

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

func (m *MockAccountManager) AllAccounts(ctx context.Context) ([]handler.Account, error)

AllAccounts mocks base method

func (*MockAccountManager) AllPayments

func (m *MockAccountManager) AllPayments(ctx context.Context) ([]handler.Payment, error)

AllPayments mocks base method

func (*MockAccountManager) EXPECT

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

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAccountRepository) GetAll

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

func (m *MockAccountRepository) UpdateBalance(ctx context.Context, uid string, incr int64) error

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

func (*MockFactory) Scope

func (m *MockFactory) Scope() repository.Scope

Scope 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) Build

Build mocks base method

func (*MockPaymentBuilder) EXPECT

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

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

EXPECT returns an object that allows the caller to indicate expected use

func (*MockPaymentRepository) GetAll

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

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

func (*MockPostgresClient) Stop

func (m *MockPostgresClient) Stop()

Stop 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

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

func (m *MockScope) Cancel(ctx context.Context) error

Cancel mocks base method

func (*MockScope) Complete

func (m *MockScope) Complete(ctx context.Context) error

Complete mocks base method

func (*MockScope) EXPECT

func (m *MockScope) EXPECT() *MockScopeMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockScope) WithContext

func (m *MockScope) WithContext(ctx context.Context) (context.Context, error)

WithContext mocks base method

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

Jump to

Keyboard shortcuts

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