mocks

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionPool

type ConnectionPool struct {
	mock.Mock
}

ConnectionPool is an autogenerated mock type for the ConnectionPool type

func (*ConnectionPool) Active

func (_m *ConnectionPool) Active() int64

Active provides a mock function with given fields:

func (*ConnectionPool) Addr

func (_m *ConnectionPool) Addr() string

Addr provides a mock function with given fields:

func (*ConnectionPool) Available

func (_m *ConnectionPool) Available() int64

Available provides a mock function with given fields:

func (*ConnectionPool) Capacity

func (_m *ConnectionPool) Capacity() int64

Capacity provides a mock function with given fields:

func (*ConnectionPool) Close

func (_m *ConnectionPool) Close()

Close provides a mock function with given fields:

func (*ConnectionPool) Get

Get provides a mock function with given fields: ctx

func (*ConnectionPool) IdleClosed

func (_m *ConnectionPool) IdleClosed() int64

IdleClosed provides a mock function with given fields:

func (*ConnectionPool) IdleTimeout

func (_m *ConnectionPool) IdleTimeout() time.Duration

IdleTimeout provides a mock function with given fields:

func (*ConnectionPool) InUse

func (_m *ConnectionPool) InUse() int64

InUse provides a mock function with given fields:

func (*ConnectionPool) MaxCap

func (_m *ConnectionPool) MaxCap() int64

MaxCap provides a mock function with given fields:

func (*ConnectionPool) Open

func (_m *ConnectionPool) Open()

Open provides a mock function with given fields:

func (*ConnectionPool) Put

func (_m *ConnectionPool) Put(pc backend.PooledConnect)

Put provides a mock function with given fields: pc

func (*ConnectionPool) SetCapacity

func (_m *ConnectionPool) SetCapacity(capacity int) error

SetCapacity provides a mock function with given fields: capacity

func (*ConnectionPool) SetIdleTimeout

func (_m *ConnectionPool) SetIdleTimeout(idleTimeout time.Duration)

SetIdleTimeout provides a mock function with given fields: idleTimeout

func (*ConnectionPool) StatsJSON

func (_m *ConnectionPool) StatsJSON() string

StatsJSON provides a mock function with given fields:

func (*ConnectionPool) WaitCount

func (_m *ConnectionPool) WaitCount() int64

WaitCount provides a mock function with given fields:

func (*ConnectionPool) WaitTime

func (_m *ConnectionPool) WaitTime() time.Duration

WaitTime provides a mock function with given fields:

type PooledConnect

type PooledConnect struct {
	mock.Mock
}

PooledConnect is an autogenerated mock type for the PooledConnect type

func (*PooledConnect) Begin

func (_m *PooledConnect) Begin() error

Begin provides a mock function with given fields:

func (*PooledConnect) Close

func (_m *PooledConnect) Close()

Close provides a mock function with given fields:

func (*PooledConnect) Commit

func (_m *PooledConnect) Commit() error

Commit provides a mock function with given fields:

func (*PooledConnect) Execute

func (_m *PooledConnect) Execute(sql string, maxRows int) (*mysql.Result, error)

Execute provides a mock function with given fields: sql, maxRows

func (*PooledConnect) FieldList

func (_m *PooledConnect) FieldList(table string, wildcard string) ([]*mysql.Field, error)

FieldList provides a mock function with given fields: table, wildcard

func (*PooledConnect) GetAddr

func (_m *PooledConnect) GetAddr() string

GetAddr provides a mock function with given fields:

func (*PooledConnect) GetConnectionID

func (_m *PooledConnect) GetConnectionID() int64

GetConnectionID provides a mock function with given fields:

func (*PooledConnect) GetReturnTime added in v1.2.4

func (_m *PooledConnect) GetReturnTime() time.Time

func (*PooledConnect) IsClosed

func (_m *PooledConnect) IsClosed() bool

IsClosed provides a mock function with given fields:

func (*PooledConnect) Ping added in v1.2.4

func (_m *PooledConnect) Ping() error

func (*PooledConnect) Reconnect

func (_m *PooledConnect) Reconnect() error

Reconnect provides a mock function with given fields:

func (*PooledConnect) Recycle

func (_m *PooledConnect) Recycle()

Recycle provides a mock function with given fields:

func (*PooledConnect) Rollback

func (_m *PooledConnect) Rollback() error

Rollback provides a mock function with given fields:

func (*PooledConnect) SetAutoCommit

func (_m *PooledConnect) SetAutoCommit(v uint8) error

SetAutoCommit provides a mock function with given fields: v

func (*PooledConnect) SetCharset

func (_m *PooledConnect) SetCharset(charset string, collation mysql.CollationID) (bool, error)

SetCharset provides a mock function with given fields: charset, collation

func (*PooledConnect) SetSessionVariables

func (_m *PooledConnect) SetSessionVariables(frontend *mysql.SessionVariables) (bool, error)

SetSessionVariables provides a mock function with given fields: frontend

func (*PooledConnect) UseDB

func (_m *PooledConnect) UseDB(db string) error

UseDB provides a mock function with given fields: db

func (*PooledConnect) WriteSetStatement

func (_m *PooledConnect) WriteSetStatement() error

WriteSetStatement 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