Documentation ¶
Overview ¶
Package mock_db is a generated GoMock package.
Index ¶
- type MockStore
- func (m *MockStore) AddAccountBalance(arg0 context.Context, arg1 generated_db.AddAccountBalanceParams) (generated_db.Account, error)
- func (m *MockStore) CreateAccount(arg0 context.Context, arg1 generated_db.CreateAccountParams) (generated_db.Account, error)
- func (m *MockStore) CreateEntry(arg0 context.Context, arg1 generated_db.CreateEntryParams) (generated_db.Entry, error)
- func (m *MockStore) CreateSession(arg0 context.Context, arg1 generated_db.CreateSessionParams) (generated_db.Session, error)
- func (m *MockStore) CreateTransfer(arg0 context.Context, arg1 generated_db.CreateTransferParams) (generated_db.Transfer, error)
- func (m *MockStore) CreateUser(arg0 context.Context, arg1 generated_db.CreateUserParams) (generated_db.User, 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) (generated_db.Account, error)
- func (m *MockStore) GetAccountForUpdate(arg0 context.Context, arg1 int64) (generated_db.Account, error)
- func (m *MockStore) GetEntry(arg0 context.Context, arg1 int64) (generated_db.Entry, error)
- func (m *MockStore) GetSession(arg0 context.Context, arg1 uuid.UUID) (generated_db.Session, error)
- func (m *MockStore) GetTransfer(arg0 context.Context, arg1 int64) (generated_db.Transfer, error)
- func (m *MockStore) GetUser(arg0 context.Context, arg1 string) (generated_db.User, error)
- func (m *MockStore) ListAllAccounts(arg0 context.Context, arg1 generated_db.ListAllAccountsParams) ([]generated_db.Account, error)
- func (m *MockStore) ListEntries(arg0 context.Context, arg1 generated_db.ListEntriesParams) ([]generated_db.Entry, error)
- func (m *MockStore) ListTransfers(arg0 context.Context, arg1 generated_db.ListTransfersParams) ([]generated_db.Transfer, error)
- func (m *MockStore) ListUserAccounts(arg0 context.Context, arg1 generated_db.ListUserAccountsParams) ([]generated_db.Account, error)
- func (m *MockStore) TransferMoneyTxn(arg0 context.Context, arg1 generated_db.TransferTxParams) (generated_db.TransferMoneyTxnResult, error)
- func (m *MockStore) UpdateAccount(arg0 context.Context, arg1 generated_db.UpdateAccountParams) (generated_db.Account, error)
- func (m *MockStore) UpdateUser(arg0 context.Context, arg1 generated_db.UpdateUserParams) (generated_db.User, error)
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) AddAccountBalance(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateAccount(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateEntry(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateSession(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateTransfer(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) DeleteAccount(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetAccount(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetAccountForUpdate(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetEntry(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetSession(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetTransfer(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) ListAllAccounts(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) ListEntries(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) ListTransfers(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) ListUserAccounts(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) TransferMoneyTxn(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) UpdateAccount(arg0, arg1 any) *gomock.Call
- func (mr *MockStoreMockRecorder) UpdateUser(arg0, arg1 any) *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 generated_db.AddAccountBalanceParams) (generated_db.Account, error)
AddAccountBalance mocks base method.
func (*MockStore) CreateAccount ¶
func (m *MockStore) CreateAccount(arg0 context.Context, arg1 generated_db.CreateAccountParams) (generated_db.Account, error)
CreateAccount mocks base method.
func (*MockStore) CreateEntry ¶
func (m *MockStore) CreateEntry(arg0 context.Context, arg1 generated_db.CreateEntryParams) (generated_db.Entry, error)
CreateEntry mocks base method.
func (*MockStore) CreateSession ¶
func (m *MockStore) CreateSession(arg0 context.Context, arg1 generated_db.CreateSessionParams) (generated_db.Session, error)
CreateSession mocks base method.
func (*MockStore) CreateTransfer ¶
func (m *MockStore) CreateTransfer(arg0 context.Context, arg1 generated_db.CreateTransferParams) (generated_db.Transfer, error)
CreateTransfer mocks base method.
func (*MockStore) CreateUser ¶
func (m *MockStore) CreateUser(arg0 context.Context, arg1 generated_db.CreateUserParams) (generated_db.User, error)
CreateUser 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 ¶
func (m *MockStore) GetAccountForUpdate(arg0 context.Context, arg1 int64) (generated_db.Account, error)
GetAccountForUpdate mocks base method.
func (*MockStore) GetSession ¶
GetSession mocks base method.
func (*MockStore) GetTransfer ¶
GetTransfer mocks base method.
func (*MockStore) ListAllAccounts ¶
func (m *MockStore) ListAllAccounts(arg0 context.Context, arg1 generated_db.ListAllAccountsParams) ([]generated_db.Account, error)
ListAllAccounts mocks base method.
func (*MockStore) ListEntries ¶
func (m *MockStore) ListEntries(arg0 context.Context, arg1 generated_db.ListEntriesParams) ([]generated_db.Entry, error)
ListEntries mocks base method.
func (*MockStore) ListTransfers ¶
func (m *MockStore) ListTransfers(arg0 context.Context, arg1 generated_db.ListTransfersParams) ([]generated_db.Transfer, error)
ListTransfers mocks base method.
func (*MockStore) ListUserAccounts ¶
func (m *MockStore) ListUserAccounts(arg0 context.Context, arg1 generated_db.ListUserAccountsParams) ([]generated_db.Account, error)
ListUserAccounts mocks base method.
func (*MockStore) TransferMoneyTxn ¶
func (m *MockStore) TransferMoneyTxn(arg0 context.Context, arg1 generated_db.TransferTxParams) (generated_db.TransferMoneyTxnResult, error)
TransferMoneyTxn mocks base method.
func (*MockStore) UpdateAccount ¶
func (m *MockStore) UpdateAccount(arg0 context.Context, arg1 generated_db.UpdateAccountParams) (generated_db.Account, error)
UpdateAccount mocks base method.
func (*MockStore) UpdateUser ¶
func (m *MockStore) UpdateUser(arg0 context.Context, arg1 generated_db.UpdateUserParams) (generated_db.User, error)
UpdateUser 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 any) *gomock.Call
AddAccountBalance indicates an expected call of AddAccountBalance.
func (*MockStoreMockRecorder) CreateAccount ¶
func (mr *MockStoreMockRecorder) CreateAccount(arg0, arg1 any) *gomock.Call
CreateAccount indicates an expected call of CreateAccount.
func (*MockStoreMockRecorder) CreateEntry ¶
func (mr *MockStoreMockRecorder) CreateEntry(arg0, arg1 any) *gomock.Call
CreateEntry indicates an expected call of CreateEntry.
func (*MockStoreMockRecorder) CreateSession ¶
func (mr *MockStoreMockRecorder) CreateSession(arg0, arg1 any) *gomock.Call
CreateSession indicates an expected call of CreateSession.
func (*MockStoreMockRecorder) CreateTransfer ¶
func (mr *MockStoreMockRecorder) CreateTransfer(arg0, arg1 any) *gomock.Call
CreateTransfer indicates an expected call of CreateTransfer.
func (*MockStoreMockRecorder) CreateUser ¶
func (mr *MockStoreMockRecorder) CreateUser(arg0, arg1 any) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockStoreMockRecorder) DeleteAccount ¶
func (mr *MockStoreMockRecorder) DeleteAccount(arg0, arg1 any) *gomock.Call
DeleteAccount indicates an expected call of DeleteAccount.
func (*MockStoreMockRecorder) GetAccount ¶
func (mr *MockStoreMockRecorder) GetAccount(arg0, arg1 any) *gomock.Call
GetAccount indicates an expected call of GetAccount.
func (*MockStoreMockRecorder) GetAccountForUpdate ¶
func (mr *MockStoreMockRecorder) GetAccountForUpdate(arg0, arg1 any) *gomock.Call
GetAccountForUpdate indicates an expected call of GetAccountForUpdate.
func (*MockStoreMockRecorder) GetEntry ¶
func (mr *MockStoreMockRecorder) GetEntry(arg0, arg1 any) *gomock.Call
GetEntry indicates an expected call of GetEntry.
func (*MockStoreMockRecorder) GetSession ¶
func (mr *MockStoreMockRecorder) GetSession(arg0, arg1 any) *gomock.Call
GetSession indicates an expected call of GetSession.
func (*MockStoreMockRecorder) GetTransfer ¶
func (mr *MockStoreMockRecorder) GetTransfer(arg0, arg1 any) *gomock.Call
GetTransfer indicates an expected call of GetTransfer.
func (*MockStoreMockRecorder) GetUser ¶
func (mr *MockStoreMockRecorder) GetUser(arg0, arg1 any) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockStoreMockRecorder) ListAllAccounts ¶
func (mr *MockStoreMockRecorder) ListAllAccounts(arg0, arg1 any) *gomock.Call
ListAllAccounts indicates an expected call of ListAllAccounts.
func (*MockStoreMockRecorder) ListEntries ¶
func (mr *MockStoreMockRecorder) ListEntries(arg0, arg1 any) *gomock.Call
ListEntries indicates an expected call of ListEntries.
func (*MockStoreMockRecorder) ListTransfers ¶
func (mr *MockStoreMockRecorder) ListTransfers(arg0, arg1 any) *gomock.Call
ListTransfers indicates an expected call of ListTransfers.
func (*MockStoreMockRecorder) ListUserAccounts ¶
func (mr *MockStoreMockRecorder) ListUserAccounts(arg0, arg1 any) *gomock.Call
ListUserAccounts indicates an expected call of ListUserAccounts.
func (*MockStoreMockRecorder) TransferMoneyTxn ¶
func (mr *MockStoreMockRecorder) TransferMoneyTxn(arg0, arg1 any) *gomock.Call
TransferMoneyTxn indicates an expected call of TransferMoneyTxn.
func (*MockStoreMockRecorder) UpdateAccount ¶
func (mr *MockStoreMockRecorder) UpdateAccount(arg0, arg1 any) *gomock.Call
UpdateAccount indicates an expected call of UpdateAccount.
func (*MockStoreMockRecorder) UpdateUser ¶
func (mr *MockStoreMockRecorder) UpdateUser(arg0, arg1 any) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.