mock_dbclient

package
v0.0.0-...-cbf1151 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_dbclient is a generated GoMock package.

Index

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

func (m *MockIGormClient) Check() bool

Check mocks base method

func (*MockIGormClient) Close

func (m *MockIGormClient) Close()

Close mocks base method

func (*MockIGormClient) EXPECT

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

Check indicates an expected call of Check

func (*MockIGormClientMockRecorder) Close

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

Jump to

Keyboard shortcuts

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