Documentation ¶
Overview ¶
Package mock_dbclient is a generated GoMock package.
Index ¶
- type MockIGormClient
- func (m *MockIGormClient) Check() bool
- func (m *MockIGormClient) Close()
- func (m *MockIGormClient) EXPECT() *MockIGormClientMockRecorder
- func (m *MockIGormClient) GetRandomAccount(ctx context.Context) (model.AccountData, error)
- func (m *MockIGormClient) QueryAccount(ctx context.Context, accountId string) (model.AccountData, error)
- func (m *MockIGormClient) QueryAccountByNameWithCount(ctx context.Context, name string) ([]dbclient.Pair, error)
- func (m *MockIGormClient) SeedAccounts() error
- func (m *MockIGormClient) SetupDB(addr string)
- func (m *MockIGormClient) StoreAccount(ctx context.Context, accountData model.AccountData) (model.AccountData, error)
- func (m *MockIGormClient) UpdateAccount(ctx context.Context, accountData model.AccountData) (model.AccountData, error)
- type MockIGormClientMockRecorder
- func (mr *MockIGormClientMockRecorder) Check() *gomock.Call
- func (mr *MockIGormClientMockRecorder) Close() *gomock.Call
- func (mr *MockIGormClientMockRecorder) GetRandomAccount(ctx interface{}) *gomock.Call
- func (mr *MockIGormClientMockRecorder) QueryAccount(ctx, accountId interface{}) *gomock.Call
- func (mr *MockIGormClientMockRecorder) QueryAccountByNameWithCount(ctx, name interface{}) *gomock.Call
- func (mr *MockIGormClientMockRecorder) SeedAccounts() *gomock.Call
- func (mr *MockIGormClientMockRecorder) SetupDB(addr interface{}) *gomock.Call
- func (mr *MockIGormClientMockRecorder) StoreAccount(ctx, accountData interface{}) *gomock.Call
- func (mr *MockIGormClientMockRecorder) UpdateAccount(ctx, accountData interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIGormClient ¶
type MockIGormClient struct {
// contains filtered or unexported fields
}
MockIGormClient is a mock of IGormClient interface
func NewMockIGormClient ¶
func NewMockIGormClient(ctrl *gomock.Controller) *MockIGormClient
NewMockIGormClient creates a new mock instance
func (*MockIGormClient) EXPECT ¶
func (m *MockIGormClient) EXPECT() *MockIGormClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIGormClient) GetRandomAccount ¶
func (m *MockIGormClient) GetRandomAccount(ctx context.Context) (model.AccountData, error)
GetRandomAccount mocks base method
func (*MockIGormClient) QueryAccount ¶
func (m *MockIGormClient) QueryAccount(ctx context.Context, accountId string) (model.AccountData, error)
QueryAccount mocks base method
func (*MockIGormClient) QueryAccountByNameWithCount ¶
func (m *MockIGormClient) QueryAccountByNameWithCount(ctx context.Context, name string) ([]dbclient.Pair, error)
QueryAccountByNameWithCount mocks base method
func (*MockIGormClient) SeedAccounts ¶
func (m *MockIGormClient) SeedAccounts() error
SeedAccounts mocks base method
func (*MockIGormClient) SetupDB ¶
func (m *MockIGormClient) SetupDB(addr string)
SetupDB mocks base method
func (*MockIGormClient) StoreAccount ¶
func (m *MockIGormClient) StoreAccount(ctx context.Context, accountData model.AccountData) (model.AccountData, error)
StoreAccount mocks base method
func (*MockIGormClient) UpdateAccount ¶
func (m *MockIGormClient) UpdateAccount(ctx context.Context, accountData model.AccountData) (model.AccountData, error)
UpdateAccount mocks base method
type MockIGormClientMockRecorder ¶
type MockIGormClientMockRecorder struct {
// contains filtered or unexported fields
}
MockIGormClientMockRecorder is the mock recorder for MockIGormClient
func (*MockIGormClientMockRecorder) Check ¶
func (mr *MockIGormClientMockRecorder) Check() *gomock.Call
Check indicates an expected call of Check
func (*MockIGormClientMockRecorder) Close ¶
func (mr *MockIGormClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockIGormClientMockRecorder) GetRandomAccount ¶
func (mr *MockIGormClientMockRecorder) GetRandomAccount(ctx interface{}) *gomock.Call
GetRandomAccount indicates an expected call of GetRandomAccount
func (*MockIGormClientMockRecorder) QueryAccount ¶
func (mr *MockIGormClientMockRecorder) QueryAccount(ctx, accountId interface{}) *gomock.Call
QueryAccount indicates an expected call of QueryAccount
func (*MockIGormClientMockRecorder) QueryAccountByNameWithCount ¶
func (mr *MockIGormClientMockRecorder) QueryAccountByNameWithCount(ctx, name interface{}) *gomock.Call
QueryAccountByNameWithCount indicates an expected call of QueryAccountByNameWithCount
func (*MockIGormClientMockRecorder) SeedAccounts ¶
func (mr *MockIGormClientMockRecorder) SeedAccounts() *gomock.Call
SeedAccounts indicates an expected call of SeedAccounts
func (*MockIGormClientMockRecorder) SetupDB ¶
func (mr *MockIGormClientMockRecorder) SetupDB(addr interface{}) *gomock.Call
SetupDB indicates an expected call of SetupDB
func (*MockIGormClientMockRecorder) StoreAccount ¶
func (mr *MockIGormClientMockRecorder) StoreAccount(ctx, accountData interface{}) *gomock.Call
StoreAccount indicates an expected call of StoreAccount
func (*MockIGormClientMockRecorder) UpdateAccount ¶
func (mr *MockIGormClientMockRecorder) UpdateAccount(ctx, accountData interface{}) *gomock.Call
UpdateAccount indicates an expected call of UpdateAccount