fakesql

package
v0.0.0-...-7ba985f Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnConverter

type ColumnConverter struct {
	mock.Mock
}

ColumnConverter is an autogenerated mock type for the ColumnConverter type

func NewColumnConverter

func NewColumnConverter(t mockConstructorTestingTNewColumnConverter) *ColumnConverter

NewColumnConverter creates a new instance of ColumnConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ColumnConverter) ColumnConverter

func (_m *ColumnConverter) ColumnConverter(idx int) driver.ValueConverter

ColumnConverter provides a mock function with given fields: idx

type ConnBeginTx

type ConnBeginTx struct {
	mock.Mock
}

ConnBeginTx is an autogenerated mock type for the ConnBeginTx type

func NewConnBeginTx

func NewConnBeginTx(t mockConstructorTestingTNewConnBeginTx) *ConnBeginTx

NewConnBeginTx creates a new instance of ConnBeginTx. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConnBeginTx) BeginTx

func (_m *ConnBeginTx) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)

BeginTx provides a mock function with given fields: ctx, opts

type ConnPrepareContext

type ConnPrepareContext struct {
	mock.Mock
}

ConnPrepareContext is an autogenerated mock type for the ConnPrepareContext type

func NewConnPrepareContext

func NewConnPrepareContext(t mockConstructorTestingTNewConnPrepareContext) *ConnPrepareContext

NewConnPrepareContext creates a new instance of ConnPrepareContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConnPrepareContext) PrepareContext

func (_m *ConnPrepareContext) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)

PrepareContext provides a mock function with given fields: ctx, query

type Connector

type Connector struct {
	mock.Mock
}

Connector is an autogenerated mock type for the Connector type

func NewConnector

func NewConnector(t mockConstructorTestingTNewConnector) *Connector

NewConnector creates a new instance of Connector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Connector) Connect

func (_m *Connector) Connect(_a0 context.Context) (driver.Conn, error)

Connect provides a mock function with given fields: _a0

func (*Connector) Driver

func (_m *Connector) Driver() driver.Driver

FakeDriver provides a mock function with given fields:

type DriverContext

type DriverContext struct {
	mock.Mock
}

DriverContext is an autogenerated mock type for the DriverContext type

func NewDriverContext

func NewDriverContext(t mockConstructorTestingTNewDriverContext) *DriverContext

NewDriverContext creates a new instance of DriverContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DriverContext) OpenConnector

func (_m *DriverContext) OpenConnector(name string) (driver.Connector, error)

OpenConnector provides a mock function with given fields: name

type Execer

type Execer struct {
	mock.Mock
}

Execer is an autogenerated mock type for the Execer type

func NewExecer

func NewExecer(t mockConstructorTestingTNewExecer) *Execer

NewExecer creates a new instance of Execer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Execer) Exec

func (_m *Execer) Exec(query string, args []driver.Value) (driver.Result, error)

Exec provides a mock function with given fields: query, args

type ExecerContext

type ExecerContext struct {
	mock.Mock
}

ExecerContext is an autogenerated mock type for the ExecerContext type

func NewExecerContext

func NewExecerContext(t mockConstructorTestingTNewExecerContext) *ExecerContext

NewExecerContext creates a new instance of ExecerContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExecerContext) ExecContext

func (_m *ExecerContext) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)

ExecContext provides a mock function with given fields: ctx, query, args

type FakeConn

type FakeConn struct {
	mock.Mock
}

FakeConn is an autogenerated mock type for the FakeConn type

func NewFakeConn

func NewFakeConn(t mockConstructorTestingTNewConn) *FakeConn

NewFakeConn creates a new instance of FakeConn. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FakeConn) Begin

func (_m *FakeConn) Begin() (driver.Tx, error)

Begin provides a mock function with given fields:

func (*FakeConn) Close

func (_m *FakeConn) Close() error

Close provides a mock function with given fields:

func (*FakeConn) Prepare

func (_m *FakeConn) Prepare(query string) (driver.Stmt, error)

Prepare provides a mock function with given fields: query

type FakeDriver

type FakeDriver struct {
	mock.Mock
}

FakeDriver is an autogenerated mock type for the FakeDriver type

func NewDriver

func NewDriver(t mockConstructorTestingTNewDriver) *FakeDriver

NewDriver creates a new instance of FakeDriver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FakeDriver) Open

func (_m *FakeDriver) Open(name string) (driver.Conn, error)

Open provides a mock function with given fields: name

type FakeRows

type FakeRows struct {
	mock.Mock
}

FakeRows is an autogenerated mock type for the FakeRows type

func NewFakeRows

func NewFakeRows(t mockConstructorTestingTNewRows) *FakeRows

NewFakeRows creates a new instance of FakeRows. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FakeRows) Close

func (_m *FakeRows) Close() error

Close provides a mock function with given fields:

func (*FakeRows) Columns

func (_m *FakeRows) Columns() []string

Columns provides a mock function with given fields:

func (*FakeRows) Next

func (_m *FakeRows) Next(dest []driver.Value) error

Next provides a mock function with given fields: dest

type FakeStmt

type FakeStmt struct {
	mock.Mock
}

FakeStmt is an autogenerated mock type for the FakeStmt type

func NewFakeStmt

func NewFakeStmt(t mockConstructorTestingTNewStmt) *FakeStmt

NewFakeStmt creates a new instance of FakeStmt. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FakeStmt) Close

func (_m *FakeStmt) Close() error

Close provides a mock function with given fields:

func (*FakeStmt) Exec

func (_m *FakeStmt) Exec(args []driver.Value) (driver.Result, error)

Exec provides a mock function with given fields: args

func (*FakeStmt) NumInput

func (_m *FakeStmt) NumInput() int

NumInput provides a mock function with given fields:

func (*FakeStmt) Query

func (_m *FakeStmt) Query(args []driver.Value) (driver.Rows, error)

Query provides a mock function with given fields: args

type NamedValueChecker

type NamedValueChecker struct {
	mock.Mock
}

NamedValueChecker is an autogenerated mock type for the NamedValueChecker type

func NewNamedValueChecker

func NewNamedValueChecker(t mockConstructorTestingTNewNamedValueChecker) *NamedValueChecker

NewNamedValueChecker creates a new instance of NamedValueChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NamedValueChecker) CheckNamedValue

func (_m *NamedValueChecker) CheckNamedValue(_a0 *driver.NamedValue) error

CheckNamedValue provides a mock function with given fields: _a0

type Pinger

type Pinger struct {
	mock.Mock
}

Pinger is an autogenerated mock type for the Pinger type

func NewPinger

func NewPinger(t mockConstructorTestingTNewPinger) *Pinger

NewPinger creates a new instance of Pinger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Pinger) Ping

func (_m *Pinger) Ping(ctx context.Context) error

Ping provides a mock function with given fields: ctx

type Queryer

type Queryer struct {
	mock.Mock
}

Queryer is an autogenerated mock type for the Queryer type

func NewQueryer

func NewQueryer(t mockConstructorTestingTNewQueryer) *Queryer

NewQueryer creates a new instance of Queryer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Queryer) Query

func (_m *Queryer) Query(query string, args []driver.Value) (driver.Rows, error)

Query provides a mock function with given fields: query, args

type QueryerContext

type QueryerContext struct {
	mock.Mock
}

QueryerContext is an autogenerated mock type for the QueryerContext type

func NewQueryerContext

func NewQueryerContext(t mockConstructorTestingTNewQueryerContext) *QueryerContext

NewQueryerContext creates a new instance of QueryerContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*QueryerContext) QueryContext

func (_m *QueryerContext) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)

QueryContext provides a mock function with given fields: ctx, query, args

type Result

type Result struct {
	mock.Mock
}

Result is an autogenerated mock type for the Result type

func NewResult

func NewResult(t mockConstructorTestingTNewResult) *Result

NewResult creates a new instance of Result. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Result) LastInsertId

func (_m *Result) LastInsertId() (int64, error)

LastInsertId provides a mock function with given fields:

func (*Result) RowsAffected

func (_m *Result) RowsAffected() (int64, error)

RowsAffected provides a mock function with given fields:

type RowsColumnTypeDatabaseTypeName

type RowsColumnTypeDatabaseTypeName struct {
	mock.Mock
}

RowsColumnTypeDatabaseTypeName is an autogenerated mock type for the RowsColumnTypeDatabaseTypeName type

func NewRowsColumnTypeDatabaseTypeName

func NewRowsColumnTypeDatabaseTypeName(t mockConstructorTestingTNewRowsColumnTypeDatabaseTypeName) *RowsColumnTypeDatabaseTypeName

NewRowsColumnTypeDatabaseTypeName creates a new instance of RowsColumnTypeDatabaseTypeName. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RowsColumnTypeDatabaseTypeName) Close

Close provides a mock function with given fields:

func (*RowsColumnTypeDatabaseTypeName) ColumnTypeDatabaseTypeName

func (_m *RowsColumnTypeDatabaseTypeName) ColumnTypeDatabaseTypeName(index int) string

ColumnTypeDatabaseTypeName provides a mock function with given fields: index

func (*RowsColumnTypeDatabaseTypeName) Columns

func (_m *RowsColumnTypeDatabaseTypeName) Columns() []string

Columns provides a mock function with given fields:

func (*RowsColumnTypeDatabaseTypeName) Next

Next provides a mock function with given fields: dest

type RowsColumnTypeLength

type RowsColumnTypeLength struct {
	mock.Mock
}

RowsColumnTypeLength is an autogenerated mock type for the RowsColumnTypeLength type

func NewRowsColumnTypeLength

func NewRowsColumnTypeLength(t mockConstructorTestingTNewRowsColumnTypeLength) *RowsColumnTypeLength

NewRowsColumnTypeLength creates a new instance of RowsColumnTypeLength. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RowsColumnTypeLength) Close

func (_m *RowsColumnTypeLength) Close() error

Close provides a mock function with given fields:

func (*RowsColumnTypeLength) ColumnTypeLength

func (_m *RowsColumnTypeLength) ColumnTypeLength(index int) (int64, bool)

ColumnTypeLength provides a mock function with given fields: index

func (*RowsColumnTypeLength) Columns

func (_m *RowsColumnTypeLength) Columns() []string

Columns provides a mock function with given fields:

func (*RowsColumnTypeLength) Next

func (_m *RowsColumnTypeLength) Next(dest []driver.Value) error

Next provides a mock function with given fields: dest

type RowsColumnTypeNullable

type RowsColumnTypeNullable struct {
	mock.Mock
}

RowsColumnTypeNullable is an autogenerated mock type for the RowsColumnTypeNullable type

func NewRowsColumnTypeNullable

func NewRowsColumnTypeNullable(t mockConstructorTestingTNewRowsColumnTypeNullable) *RowsColumnTypeNullable

NewRowsColumnTypeNullable creates a new instance of RowsColumnTypeNullable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RowsColumnTypeNullable) Close

func (_m *RowsColumnTypeNullable) Close() error

Close provides a mock function with given fields:

func (*RowsColumnTypeNullable) ColumnTypeNullable

func (_m *RowsColumnTypeNullable) ColumnTypeNullable(index int) (bool, bool)

ColumnTypeNullable provides a mock function with given fields: index

func (*RowsColumnTypeNullable) Columns

func (_m *RowsColumnTypeNullable) Columns() []string

Columns provides a mock function with given fields:

func (*RowsColumnTypeNullable) Next

func (_m *RowsColumnTypeNullable) Next(dest []driver.Value) error

Next provides a mock function with given fields: dest

type RowsColumnTypePrecisionScale

type RowsColumnTypePrecisionScale struct {
	mock.Mock
}

RowsColumnTypePrecisionScale is an autogenerated mock type for the RowsColumnTypePrecisionScale type

func NewRowsColumnTypePrecisionScale

func NewRowsColumnTypePrecisionScale(t mockConstructorTestingTNewRowsColumnTypePrecisionScale) *RowsColumnTypePrecisionScale

NewRowsColumnTypePrecisionScale creates a new instance of RowsColumnTypePrecisionScale. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RowsColumnTypePrecisionScale) Close

func (_m *RowsColumnTypePrecisionScale) Close() error

Close provides a mock function with given fields:

func (*RowsColumnTypePrecisionScale) ColumnTypePrecisionScale

func (_m *RowsColumnTypePrecisionScale) ColumnTypePrecisionScale(index int) (int64, int64, bool)

ColumnTypePrecisionScale provides a mock function with given fields: index

func (*RowsColumnTypePrecisionScale) Columns

func (_m *RowsColumnTypePrecisionScale) Columns() []string

Columns provides a mock function with given fields:

func (*RowsColumnTypePrecisionScale) Next

Next provides a mock function with given fields: dest

type RowsColumnTypeScanType

type RowsColumnTypeScanType struct {
	mock.Mock
}

RowsColumnTypeScanType is an autogenerated mock type for the RowsColumnTypeScanType type

func NewRowsColumnTypeScanType

func NewRowsColumnTypeScanType(t mockConstructorTestingTNewRowsColumnTypeScanType) *RowsColumnTypeScanType

NewRowsColumnTypeScanType creates a new instance of RowsColumnTypeScanType. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RowsColumnTypeScanType) Close

func (_m *RowsColumnTypeScanType) Close() error

Close provides a mock function with given fields:

func (*RowsColumnTypeScanType) ColumnTypeScanType

func (_m *RowsColumnTypeScanType) ColumnTypeScanType(index int) reflect.Type

ColumnTypeScanType provides a mock function with given fields: index

func (*RowsColumnTypeScanType) Columns

func (_m *RowsColumnTypeScanType) Columns() []string

Columns provides a mock function with given fields:

func (*RowsColumnTypeScanType) Next

func (_m *RowsColumnTypeScanType) Next(dest []driver.Value) error

Next provides a mock function with given fields: dest

type RowsNextResultSet

type RowsNextResultSet struct {
	mock.Mock
}

RowsNextResultSet is an autogenerated mock type for the RowsNextResultSet type

func NewRowsNextResultSet

func NewRowsNextResultSet(t mockConstructorTestingTNewRowsNextResultSet) *RowsNextResultSet

NewRowsNextResultSet creates a new instance of RowsNextResultSet. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RowsNextResultSet) Close

func (_m *RowsNextResultSet) Close() error

Close provides a mock function with given fields:

func (*RowsNextResultSet) Columns

func (_m *RowsNextResultSet) Columns() []string

Columns provides a mock function with given fields:

func (*RowsNextResultSet) HasNextResultSet

func (_m *RowsNextResultSet) HasNextResultSet() bool

HasNextResultSet provides a mock function with given fields:

func (*RowsNextResultSet) Next

func (_m *RowsNextResultSet) Next(dest []driver.Value) error

Next provides a mock function with given fields: dest

func (*RowsNextResultSet) NextResultSet

func (_m *RowsNextResultSet) NextResultSet() error

NextResultSet provides a mock function with given fields:

type SessionResetter

type SessionResetter struct {
	mock.Mock
}

SessionResetter is an autogenerated mock type for the SessionResetter type

func NewSessionResetter

func NewSessionResetter(t mockConstructorTestingTNewSessionResetter) *SessionResetter

NewSessionResetter creates a new instance of SessionResetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SessionResetter) ResetSession

func (_m *SessionResetter) ResetSession(ctx context.Context) error

ResetSession provides a mock function with given fields: ctx

type StmtExecContext

type StmtExecContext struct {
	mock.Mock
}

StmtExecContext is an autogenerated mock type for the StmtExecContext type

func NewStmtExecContext

func NewStmtExecContext(t mockConstructorTestingTNewStmtExecContext) *StmtExecContext

NewStmtExecContext creates a new instance of StmtExecContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*StmtExecContext) ExecContext

func (_m *StmtExecContext) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)

ExecContext provides a mock function with given fields: ctx, args

type StmtQueryContext

type StmtQueryContext struct {
	mock.Mock
}

StmtQueryContext is an autogenerated mock type for the StmtQueryContext type

func NewStmtQueryContext

func NewStmtQueryContext(t mockConstructorTestingTNewStmtQueryContext) *StmtQueryContext

NewStmtQueryContext creates a new instance of StmtQueryContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*StmtQueryContext) QueryContext

func (_m *StmtQueryContext) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)

QueryContext provides a mock function with given fields: ctx, args

type Tx

type Tx struct {
	mock.Mock
}

Tx is an autogenerated mock type for the Tx type

func NewTx

func NewTx(t mockConstructorTestingTNewTx) *Tx

NewTx creates a new instance of Tx. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Tx) Commit

func (_m *Tx) Commit() error

Commit provides a mock function with given fields:

func (*Tx) Rollback

func (_m *Tx) Rollback() error

Rollback provides a mock function with given fields:

type Validator

type Validator struct {
	mock.Mock
}

Validator is an autogenerated mock type for the Validator type

func NewValidator

func NewValidator(t mockConstructorTestingTNewValidator) *Validator

NewValidator creates a new instance of Validator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Validator) IsValid

func (_m *Validator) IsValid() bool

IsValid provides a mock function with given fields:

type ValueConverter

type ValueConverter struct {
	mock.Mock
}

ValueConverter is an autogenerated mock type for the ValueConverter type

func NewValueConverter

func NewValueConverter(t mockConstructorTestingTNewValueConverter) *ValueConverter

NewValueConverter creates a new instance of ValueConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ValueConverter) ConvertValue

func (_m *ValueConverter) ConvertValue(v interface{}) (driver.Value, error)

ConvertValue provides a mock function with given fields: v

type Valuer

type Valuer struct {
	mock.Mock
}

Valuer is an autogenerated mock type for the Valuer type

func NewValuer

func NewValuer(t mockConstructorTestingTNewValuer) *Valuer

NewValuer creates a new instance of Valuer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Valuer) Value

func (_m *Valuer) Value() (driver.Value, error)

Value provides a mock function with given fields:

Jump to

Keyboard shortcuts

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