Documentation ¶
Overview ¶
Package mockDB is a generated GoMock package.
Index ¶
- type MockStore
- func (m *MockStore) AddAccountBalance(arg0 context.Context, arg1 db.AddAccountBalanceParams) (db.Account, error)
- func (m *MockStore) CreateAccount(arg0 context.Context, arg1 db.CreateAccountParams) (db.Account, error)
- func (m *MockStore) CreateEntry(arg0 context.Context, arg1 db.CreateEntryParams) (db.Entry, error)
- func (m *MockStore) CreateTransfer(arg0 context.Context, arg1 db.CreateTransferParams) (db.Transfer, error)
- func (m *MockStore) DeleteAccount(arg0 context.Context, arg1 int64) error
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) GetAccount(arg0 context.Context, arg1 int64) (db.Account, error)
- func (m *MockStore) GetAccountForUpdate(arg0 context.Context, arg1 int64) (db.Account, error)
- func (m *MockStore) GetEntriesByAccountId(arg0 context.Context, arg1 int64) ([]db.Entry, error)
- func (m *MockStore) GetEntriesByAmount(arg0 context.Context, arg1 int64) ([]db.Entry, error)
- func (m *MockStore) GetEntryById(arg0 context.Context, arg1 int64) (db.Entry, error)
- func (m *MockStore) GetTransferById(arg0 context.Context, arg1 int64) (db.Transfer, error)
- func (m *MockStore) GetTransfersByAmount(arg0 context.Context, arg1 int64) ([]db.Transfer, error)
- func (m *MockStore) GetTransfersByFromAccountId(arg0 context.Context, arg1 int64) ([]db.Transfer, error)
- func (m *MockStore) GetTransfersByToAccountId(arg0 context.Context, arg1 int64) ([]db.Transfer, error)
- func (m *MockStore) ListAccounts(arg0 context.Context, arg1 db.ListAccountsParams) ([]db.Account, error)
- func (m *MockStore) TransferTx(arg0 context.Context, arg1 db.TransferTxParms) (db.TransferTxResult, error)
- func (m *MockStore) UpdateAccount(arg0 context.Context, arg1 db.UpdateAccountParams) (db.Account, error)
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) AddAccountBalance(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateEntry(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateTransfer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetAccountForUpdate(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetEntriesByAccountId(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetEntriesByAmount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetEntryById(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetTransferById(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetTransfersByAmount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetTransfersByFromAccountId(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetTransfersByToAccountId(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) ListAccounts(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) TransferTx(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) UpdateAccount(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface.
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance.
func (*MockStore) AddAccountBalance ¶
func (m *MockStore) AddAccountBalance(arg0 context.Context, arg1 db.AddAccountBalanceParams) (db.Account, error)
AddAccountBalance mocks base method.
func (*MockStore) CreateAccount ¶
func (m *MockStore) CreateAccount(arg0 context.Context, arg1 db.CreateAccountParams) (db.Account, error)
CreateAccount mocks base method.
func (*MockStore) CreateEntry ¶
CreateEntry mocks base method.
func (*MockStore) CreateTransfer ¶
func (m *MockStore) CreateTransfer(arg0 context.Context, arg1 db.CreateTransferParams) (db.Transfer, error)
CreateTransfer mocks base method.
func (*MockStore) DeleteAccount ¶
DeleteAccount mocks base method.
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStore) GetAccount ¶
GetAccount mocks base method.
func (*MockStore) GetAccountForUpdate ¶
GetAccountForUpdate mocks base method.
func (*MockStore) GetEntriesByAccountId ¶
GetEntriesByAccountId mocks base method.
func (*MockStore) GetEntriesByAmount ¶
GetEntriesByAmount mocks base method.
func (*MockStore) GetEntryById ¶
GetEntryById mocks base method.
func (*MockStore) GetTransferById ¶
GetTransferById mocks base method.
func (*MockStore) GetTransfersByAmount ¶
GetTransfersByAmount mocks base method.
func (*MockStore) GetTransfersByFromAccountId ¶
func (m *MockStore) GetTransfersByFromAccountId(arg0 context.Context, arg1 int64) ([]db.Transfer, error)
GetTransfersByFromAccountId mocks base method.
func (*MockStore) GetTransfersByToAccountId ¶
func (m *MockStore) GetTransfersByToAccountId(arg0 context.Context, arg1 int64) ([]db.Transfer, error)
GetTransfersByToAccountId mocks base method.
func (*MockStore) ListAccounts ¶
func (m *MockStore) ListAccounts(arg0 context.Context, arg1 db.ListAccountsParams) ([]db.Account, error)
ListAccounts mocks base method.
func (*MockStore) TransferTx ¶
func (m *MockStore) TransferTx(arg0 context.Context, arg1 db.TransferTxParms) (db.TransferTxResult, error)
TransferTx mocks base method.
func (*MockStore) UpdateAccount ¶
func (m *MockStore) UpdateAccount(arg0 context.Context, arg1 db.UpdateAccountParams) (db.Account, error)
UpdateAccount mocks base method.
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore.
func (*MockStoreMockRecorder) AddAccountBalance ¶
func (mr *MockStoreMockRecorder) AddAccountBalance(arg0, arg1 interface{}) *gomock.Call
AddAccountBalance indicates an expected call of AddAccountBalance.
func (*MockStoreMockRecorder) CreateAccount ¶
func (mr *MockStoreMockRecorder) CreateAccount(arg0, arg1 interface{}) *gomock.Call
CreateAccount indicates an expected call of CreateAccount.
func (*MockStoreMockRecorder) CreateEntry ¶
func (mr *MockStoreMockRecorder) CreateEntry(arg0, arg1 interface{}) *gomock.Call
CreateEntry indicates an expected call of CreateEntry.
func (*MockStoreMockRecorder) CreateTransfer ¶
func (mr *MockStoreMockRecorder) CreateTransfer(arg0, arg1 interface{}) *gomock.Call
CreateTransfer indicates an expected call of CreateTransfer.
func (*MockStoreMockRecorder) DeleteAccount ¶
func (mr *MockStoreMockRecorder) DeleteAccount(arg0, arg1 interface{}) *gomock.Call
DeleteAccount indicates an expected call of DeleteAccount.
func (*MockStoreMockRecorder) GetAccount ¶
func (mr *MockStoreMockRecorder) GetAccount(arg0, arg1 interface{}) *gomock.Call
GetAccount indicates an expected call of GetAccount.
func (*MockStoreMockRecorder) GetAccountForUpdate ¶
func (mr *MockStoreMockRecorder) GetAccountForUpdate(arg0, arg1 interface{}) *gomock.Call
GetAccountForUpdate indicates an expected call of GetAccountForUpdate.
func (*MockStoreMockRecorder) GetEntriesByAccountId ¶
func (mr *MockStoreMockRecorder) GetEntriesByAccountId(arg0, arg1 interface{}) *gomock.Call
GetEntriesByAccountId indicates an expected call of GetEntriesByAccountId.
func (*MockStoreMockRecorder) GetEntriesByAmount ¶
func (mr *MockStoreMockRecorder) GetEntriesByAmount(arg0, arg1 interface{}) *gomock.Call
GetEntriesByAmount indicates an expected call of GetEntriesByAmount.
func (*MockStoreMockRecorder) GetEntryById ¶
func (mr *MockStoreMockRecorder) GetEntryById(arg0, arg1 interface{}) *gomock.Call
GetEntryById indicates an expected call of GetEntryById.
func (*MockStoreMockRecorder) GetTransferById ¶
func (mr *MockStoreMockRecorder) GetTransferById(arg0, arg1 interface{}) *gomock.Call
GetTransferById indicates an expected call of GetTransferById.
func (*MockStoreMockRecorder) GetTransfersByAmount ¶
func (mr *MockStoreMockRecorder) GetTransfersByAmount(arg0, arg1 interface{}) *gomock.Call
GetTransfersByAmount indicates an expected call of GetTransfersByAmount.
func (*MockStoreMockRecorder) GetTransfersByFromAccountId ¶
func (mr *MockStoreMockRecorder) GetTransfersByFromAccountId(arg0, arg1 interface{}) *gomock.Call
GetTransfersByFromAccountId indicates an expected call of GetTransfersByFromAccountId.
func (*MockStoreMockRecorder) GetTransfersByToAccountId ¶
func (mr *MockStoreMockRecorder) GetTransfersByToAccountId(arg0, arg1 interface{}) *gomock.Call
GetTransfersByToAccountId indicates an expected call of GetTransfersByToAccountId.
func (*MockStoreMockRecorder) ListAccounts ¶
func (mr *MockStoreMockRecorder) ListAccounts(arg0, arg1 interface{}) *gomock.Call
ListAccounts indicates an expected call of ListAccounts.
func (*MockStoreMockRecorder) TransferTx ¶
func (mr *MockStoreMockRecorder) TransferTx(arg0, arg1 interface{}) *gomock.Call
TransferTx indicates an expected call of TransferTx.
func (*MockStoreMockRecorder) UpdateAccount ¶
func (mr *MockStoreMockRecorder) UpdateAccount(arg0, arg1 interface{}) *gomock.Call
UpdateAccount indicates an expected call of UpdateAccount.