mock

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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 MockDBExecutor

type MockDBExecutor struct {
	// contains filtered or unexported fields
}

MockDBExecutor is a mock of DBExecutor interface.

func NewMockDBExecutor

func NewMockDBExecutor(ctrl *gomock.Controller) *MockDBExecutor

NewMockDBExecutor creates a new mock instance.

func (*MockDBExecutor) Context

func (m *MockDBExecutor) Context() context.Context

Context mocks base method.

func (*MockDBExecutor) D

func (m *MockDBExecutor) D() *sqlx.Database

D mocks base method.

func (*MockDBExecutor) Dialect

func (m *MockDBExecutor) Dialect() builder.Dialect

Dialect mocks base method.

func (*MockDBExecutor) EXPECT

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

func (*MockDBExecutor) Exec

func (m *MockDBExecutor) Exec(arg0 builder.SqlExpr) (sql.Result, error)

Exec mocks base method.

func (*MockDBExecutor) ExecContext

func (m *MockDBExecutor) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

ExecContext mocks base method.

func (*MockDBExecutor) Query

func (m *MockDBExecutor) Query(arg0 builder.SqlExpr) (*sql.Rows, error)

Query mocks base method.

func (*MockDBExecutor) QueryAndScan

func (m *MockDBExecutor) QueryAndScan(arg0 builder.SqlExpr, arg1 interface{}) error

QueryAndScan mocks base method.

func (*MockDBExecutor) QueryContext

func (m *MockDBExecutor) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

QueryContext mocks base method.

func (*MockDBExecutor) T

func (m *MockDBExecutor) T(model builder.Model) *builder.Table

T mocks base method.

func (*MockDBExecutor) WithContext

func (m *MockDBExecutor) WithContext(ctx context.Context) sqlx.DBExecutor

WithContext mocks base method.

func (*MockDBExecutor) WithSchema

func (m *MockDBExecutor) WithSchema(arg0 string) sqlx.DBExecutor

WithSchema mocks base method.

type MockDBExecutorMockRecorder

type MockDBExecutorMockRecorder struct {
	// contains filtered or unexported fields
}

MockDBExecutorMockRecorder is the mock recorder for MockDBExecutor.

func (*MockDBExecutorMockRecorder) Context

func (mr *MockDBExecutorMockRecorder) Context() *gomock.Call

Context indicates an expected call of Context.

func (*MockDBExecutorMockRecorder) D

D indicates an expected call of D.

func (*MockDBExecutorMockRecorder) Dialect

func (mr *MockDBExecutorMockRecorder) Dialect() *gomock.Call

Dialect indicates an expected call of Dialect.

func (*MockDBExecutorMockRecorder) Exec

func (mr *MockDBExecutorMockRecorder) Exec(arg0 interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockDBExecutorMockRecorder) ExecContext

func (mr *MockDBExecutorMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MockDBExecutorMockRecorder) Query

func (mr *MockDBExecutorMockRecorder) Query(arg0 interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockDBExecutorMockRecorder) QueryAndScan

func (mr *MockDBExecutorMockRecorder) QueryAndScan(arg0, arg1 interface{}) *gomock.Call

QueryAndScan indicates an expected call of QueryAndScan.

func (*MockDBExecutorMockRecorder) QueryContext

func (mr *MockDBExecutorMockRecorder) QueryContext(ctx, query interface{}, args ...interface{}) *gomock.Call

QueryContext indicates an expected call of QueryContext.

func (*MockDBExecutorMockRecorder) T

func (mr *MockDBExecutorMockRecorder) T(model interface{}) *gomock.Call

T indicates an expected call of T.

func (*MockDBExecutorMockRecorder) WithContext

func (mr *MockDBExecutorMockRecorder) WithContext(ctx interface{}) *gomock.Call

WithContext indicates an expected call of WithContext.

func (*MockDBExecutorMockRecorder) WithSchema

func (mr *MockDBExecutorMockRecorder) WithSchema(arg0 interface{}) *gomock.Call

WithSchema indicates an expected call of WithSchema.

type MockExprExecutor

type MockExprExecutor struct {
	// contains filtered or unexported fields
}

MockExprExecutor is a mock of ExprExecutor interface.

func NewMockExprExecutor

func NewMockExprExecutor(ctrl *gomock.Controller) *MockExprExecutor

NewMockExprExecutor creates a new mock instance.

func (*MockExprExecutor) EXPECT

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

func (*MockExprExecutor) Exec

func (m *MockExprExecutor) Exec(arg0 builder.SqlExpr) (sql.Result, error)

Exec mocks base method.

func (*MockExprExecutor) ExecContext

func (m *MockExprExecutor) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

ExecContext mocks base method.

func (*MockExprExecutor) Query

func (m *MockExprExecutor) Query(arg0 builder.SqlExpr) (*sql.Rows, error)

Query mocks base method.

func (*MockExprExecutor) QueryAndScan

func (m *MockExprExecutor) QueryAndScan(arg0 builder.SqlExpr, arg1 interface{}) error

QueryAndScan mocks base method.

func (*MockExprExecutor) QueryContext

func (m *MockExprExecutor) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

QueryContext mocks base method.

type MockExprExecutorMockRecorder

type MockExprExecutorMockRecorder struct {
	// contains filtered or unexported fields
}

MockExprExecutorMockRecorder is the mock recorder for MockExprExecutor.

func (*MockExprExecutorMockRecorder) Exec

func (mr *MockExprExecutorMockRecorder) Exec(arg0 interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockExprExecutorMockRecorder) ExecContext

func (mr *MockExprExecutorMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MockExprExecutorMockRecorder) Query

func (mr *MockExprExecutorMockRecorder) Query(arg0 interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockExprExecutorMockRecorder) QueryAndScan

func (mr *MockExprExecutorMockRecorder) QueryAndScan(arg0, arg1 interface{}) *gomock.Call

QueryAndScan indicates an expected call of QueryAndScan.

func (*MockExprExecutorMockRecorder) QueryContext

func (mr *MockExprExecutorMockRecorder) QueryContext(ctx, query interface{}, args ...interface{}) *gomock.Call

QueryContext indicates an expected call of QueryContext.

type MockMigrator

type MockMigrator struct {
	// contains filtered or unexported fields
}

MockMigrator is a mock of Migrator interface.

func NewMockMigrator

func NewMockMigrator(ctrl *gomock.Controller) *MockMigrator

NewMockMigrator creates a new mock instance.

func (*MockMigrator) EXPECT

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

func (*MockMigrator) Migrate

func (m *MockMigrator) Migrate(ctx context.Context, db sqlx.DBExecutor) error

Migrate mocks base method.

type MockMigratorMockRecorder

type MockMigratorMockRecorder struct {
	// contains filtered or unexported fields
}

MockMigratorMockRecorder is the mock recorder for MockMigrator.

func (*MockMigratorMockRecorder) Migrate

func (mr *MockMigratorMockRecorder) Migrate(ctx, db interface{}) *gomock.Call

Migrate indicates an expected call of Migrate.

type MockSqlExecutor

type MockSqlExecutor struct {
	// contains filtered or unexported fields
}

MockSqlExecutor is a mock of SqlExecutor interface.

func NewMockSqlExecutor

func NewMockSqlExecutor(ctrl *gomock.Controller) *MockSqlExecutor

NewMockSqlExecutor creates a new mock instance.

func (*MockSqlExecutor) EXPECT

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

func (*MockSqlExecutor) ExecContext

func (m *MockSqlExecutor) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

ExecContext mocks base method.

func (*MockSqlExecutor) QueryContext

func (m *MockSqlExecutor) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

QueryContext mocks base method.

type MockSqlExecutorMockRecorder

type MockSqlExecutorMockRecorder struct {
	// contains filtered or unexported fields
}

MockSqlExecutorMockRecorder is the mock recorder for MockSqlExecutor.

func (*MockSqlExecutorMockRecorder) ExecContext

func (mr *MockSqlExecutorMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MockSqlExecutorMockRecorder) QueryContext

func (mr *MockSqlExecutorMockRecorder) QueryContext(ctx, query interface{}, args ...interface{}) *gomock.Call

QueryContext indicates an expected call of QueryContext.

type MockTableResolver

type MockTableResolver struct {
	// contains filtered or unexported fields
}

MockTableResolver is a mock of TableResolver interface.

func NewMockTableResolver

func NewMockTableResolver(ctrl *gomock.Controller) *MockTableResolver

NewMockTableResolver creates a new mock instance.

func (*MockTableResolver) EXPECT

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

func (*MockTableResolver) T

T mocks base method.

type MockTableResolverMockRecorder

type MockTableResolverMockRecorder struct {
	// contains filtered or unexported fields
}

MockTableResolverMockRecorder is the mock recorder for MockTableResolver.

func (*MockTableResolverMockRecorder) T

func (mr *MockTableResolverMockRecorder) T(model interface{}) *gomock.Call

T indicates an expected call of T.

type MockTxExecutor

type MockTxExecutor struct {
	// contains filtered or unexported fields
}

MockTxExecutor is a mock of TxExecutor interface.

func NewMockTxExecutor

func NewMockTxExecutor(ctrl *gomock.Controller) *MockTxExecutor

NewMockTxExecutor creates a new mock instance.

func (*MockTxExecutor) Begin

func (m *MockTxExecutor) Begin() (sqlx.DBExecutor, error)

Begin mocks base method.

func (*MockTxExecutor) BeginTx

func (m *MockTxExecutor) BeginTx(arg0 *sql.TxOptions) (sqlx.DBExecutor, error)

BeginTx mocks base method.

func (*MockTxExecutor) Commit

func (m *MockTxExecutor) Commit() error

Commit mocks base method.

func (*MockTxExecutor) EXPECT

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

func (*MockTxExecutor) IsTx

func (m *MockTxExecutor) IsTx() bool

IsTx mocks base method.

func (*MockTxExecutor) Rollback

func (m *MockTxExecutor) Rollback() error

Rollback mocks base method.

type MockTxExecutorMockRecorder

type MockTxExecutorMockRecorder struct {
	// contains filtered or unexported fields
}

MockTxExecutorMockRecorder is the mock recorder for MockTxExecutor.

func (*MockTxExecutorMockRecorder) Begin

func (mr *MockTxExecutorMockRecorder) Begin() *gomock.Call

Begin indicates an expected call of Begin.

func (*MockTxExecutorMockRecorder) BeginTx

func (mr *MockTxExecutorMockRecorder) BeginTx(arg0 interface{}) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockTxExecutorMockRecorder) Commit

func (mr *MockTxExecutorMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTxExecutorMockRecorder) IsTx

IsTx indicates an expected call of IsTx.

func (*MockTxExecutorMockRecorder) Rollback

func (mr *MockTxExecutorMockRecorder) Rollback() *gomock.Call

Rollback indicates an expected call of Rollback.

type MockWithDBName

type MockWithDBName struct {
	// contains filtered or unexported fields
}

MockWithDBName is a mock of WithDBName interface.

func NewMockWithDBName

func NewMockWithDBName(ctrl *gomock.Controller) *MockWithDBName

NewMockWithDBName creates a new mock instance.

func (*MockWithDBName) EXPECT

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

func (*MockWithDBName) WithDBName

func (m *MockWithDBName) WithDBName(arg0 string) driver.Connector

WithDBName mocks base method.

type MockWithDBNameMockRecorder

type MockWithDBNameMockRecorder struct {
	// contains filtered or unexported fields
}

MockWithDBNameMockRecorder is the mock recorder for MockWithDBName.

func (*MockWithDBNameMockRecorder) WithDBName

func (mr *MockWithDBNameMockRecorder) WithDBName(arg0 interface{}) *gomock.Call

WithDBName indicates an expected call of WithDBName.

Jump to

Keyboard shortcuts

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