mocks

package
v0.0.0-...-d2438c5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClock

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

MockClock is a mock of Clock interface

func NewMockClock

func NewMockClock(ctrl *gomock.Controller) *MockClock

NewMockClock creates a new mock instance

func (*MockClock) After

func (m *MockClock) After(arg0 time.Duration) <-chan time.Time

After mocks base method

func (*MockClock) EXPECT

func (m *MockClock) EXPECT() *MockClockMockRecorder

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

func (*MockClock) Now

func (m *MockClock) Now() time.Time

Now mocks base method

func (*MockClock) UTC

func (m *MockClock) UTC() time.Time

UTC mocks base method

type MockClockMockRecorder

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

MockClockMockRecorder is the mock recorder for MockClock

func (*MockClockMockRecorder) After

func (mr *MockClockMockRecorder) After(arg0 interface{}) *gomock.Call

After indicates an expected call of After

func (*MockClockMockRecorder) Now

func (mr *MockClockMockRecorder) Now() *gomock.Call

Now indicates an expected call of Now

func (*MockClockMockRecorder) UTC

func (mr *MockClockMockRecorder) UTC() *gomock.Call

UTC indicates an expected call of UTC

type MockCluster

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

MockCluster is a mock of Cluster interface

func NewMockCluster

func NewMockCluster(ctrl *gomock.Controller) *MockCluster

NewMockCluster creates a new mock instance

func (*MockCluster) Close

func (m *MockCluster) Close() error

Close mocks base method

func (*MockCluster) DB

func (m *MockCluster) DB() database.DB

DB mocks base method

func (*MockCluster) EXPECT

func (m *MockCluster) EXPECT() *MockClusterMockRecorder

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

func (*MockCluster) EnterExclusive

func (m *MockCluster) EnterExclusive() error

EnterExclusive mocks base method

func (*MockCluster) ExitExclusive

func (m *MockCluster) ExitExclusive(arg0 func(*db.ClusterTx) error) error

ExitExclusive mocks base method

func (*MockCluster) NodeID

func (m *MockCluster) NodeID(arg0 int64)

NodeID mocks base method

func (*MockCluster) Open

func (m *MockCluster) Open(arg0 cluster.ServerStore, arg1, arg2 string, arg3 time.Duration, arg4 ...go_dqlite.DriverOption) error

Open mocks base method

func (*MockCluster) SchemaVersion

func (m *MockCluster) SchemaVersion() int

SchemaVersion mocks base method

func (*MockCluster) Transaction

func (m *MockCluster) Transaction(arg0 func(*db.ClusterTx) error) error

Transaction mocks base method

type MockClusterMockRecorder

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

MockClusterMockRecorder is the mock recorder for MockCluster

func (*MockClusterMockRecorder) Close

func (mr *MockClusterMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockClusterMockRecorder) DB

DB indicates an expected call of DB

func (*MockClusterMockRecorder) EnterExclusive

func (mr *MockClusterMockRecorder) EnterExclusive() *gomock.Call

EnterExclusive indicates an expected call of EnterExclusive

func (*MockClusterMockRecorder) ExitExclusive

func (mr *MockClusterMockRecorder) ExitExclusive(arg0 interface{}) *gomock.Call

ExitExclusive indicates an expected call of ExitExclusive

func (*MockClusterMockRecorder) NodeID

func (mr *MockClusterMockRecorder) NodeID(arg0 interface{}) *gomock.Call

NodeID indicates an expected call of NodeID

func (*MockClusterMockRecorder) Open

func (mr *MockClusterMockRecorder) Open(arg0, arg1, arg2, arg3 interface{}, arg4 ...interface{}) *gomock.Call

Open indicates an expected call of Open

func (*MockClusterMockRecorder) SchemaVersion

func (mr *MockClusterMockRecorder) SchemaVersion() *gomock.Call

SchemaVersion indicates an expected call of SchemaVersion

func (*MockClusterMockRecorder) Transaction

func (mr *MockClusterMockRecorder) Transaction(arg0 interface{}) *gomock.Call

Transaction indicates an expected call of Transaction

type MockDB

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

MockDB is a mock of DB interface

func NewMockDB

func NewMockDB(ctrl *gomock.Controller) *MockDB

NewMockDB creates a new mock instance

func (*MockDB) Begin

func (m *MockDB) Begin() (database.Tx, error)

Begin mocks base method

func (*MockDB) Close

func (m *MockDB) Close() error

Close mocks base method

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

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

func (*MockDB) Ping

func (m *MockDB) Ping() error

Ping mocks base method

type MockDBMockRecorder

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

MockDBMockRecorder is the mock recorder for MockDB

func (*MockDBMockRecorder) Begin

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

Begin indicates an expected call of Begin

func (*MockDBMockRecorder) Close

func (mr *MockDBMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockDBMockRecorder) Ping

func (mr *MockDBMockRecorder) Ping() *gomock.Call

Ping indicates an expected call of Ping

type MockDaemon

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

MockDaemon is a mock of Daemon interface

func NewMockDaemon

func NewMockDaemon(ctrl *gomock.Controller) *MockDaemon

NewMockDaemon creates a new mock instance

func (*MockDaemon) Cluster

func (m *MockDaemon) Cluster() schedules.Cluster

Cluster mocks base method

func (*MockDaemon) EXPECT

func (m *MockDaemon) EXPECT() *MockDaemonMockRecorder

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

func (*MockDaemon) Gateway

func (m *MockDaemon) Gateway() schedules.Gateway

Gateway mocks base method

func (*MockDaemon) Node

func (m *MockDaemon) Node() schedules.Node

Node mocks base method

func (*MockDaemon) NodeConfigSchema

func (m *MockDaemon) NodeConfigSchema() config.Schema

NodeConfigSchema mocks base method

type MockDaemonMockRecorder

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

MockDaemonMockRecorder is the mock recorder for MockDaemon

func (*MockDaemonMockRecorder) Cluster

func (mr *MockDaemonMockRecorder) Cluster() *gomock.Call

Cluster indicates an expected call of Cluster

func (*MockDaemonMockRecorder) Gateway

func (mr *MockDaemonMockRecorder) Gateway() *gomock.Call

Gateway indicates an expected call of Gateway

func (*MockDaemonMockRecorder) Node

func (mr *MockDaemonMockRecorder) Node() *gomock.Call

Node indicates an expected call of Node

func (*MockDaemonMockRecorder) NodeConfigSchema

func (mr *MockDaemonMockRecorder) NodeConfigSchema() *gomock.Call

NodeConfigSchema indicates an expected call of NodeConfigSchema

type MockGateway

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

MockGateway is a mock of Gateway interface

func NewMockGateway

func NewMockGateway(ctrl *gomock.Controller) *MockGateway

NewMockGateway creates a new mock instance

func (*MockGateway) EXPECT

func (m *MockGateway) EXPECT() *MockGatewayMockRecorder

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

func (*MockGateway) IsDatabaseNode

func (m *MockGateway) IsDatabaseNode() bool

IsDatabaseNode mocks base method

func (*MockGateway) LeaderAddress

func (m *MockGateway) LeaderAddress() (string, error)

LeaderAddress mocks base method

type MockGatewayMockRecorder

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

MockGatewayMockRecorder is the mock recorder for MockGateway

func (*MockGatewayMockRecorder) IsDatabaseNode

func (mr *MockGatewayMockRecorder) IsDatabaseNode() *gomock.Call

IsDatabaseNode indicates an expected call of IsDatabaseNode

func (*MockGatewayMockRecorder) LeaderAddress

func (mr *MockGatewayMockRecorder) LeaderAddress() *gomock.Call

LeaderAddress indicates an expected call of LeaderAddress

type MockNode

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

MockNode is a mock of Node interface

func NewMockNode

func NewMockNode(ctrl *gomock.Controller) *MockNode

NewMockNode creates a new mock instance

func (*MockNode) Close

func (m *MockNode) Close() error

Close mocks base method

func (*MockNode) DB

func (m *MockNode) DB() database.DB

DB mocks base method

func (*MockNode) Dir

func (m *MockNode) Dir() string

Dir mocks base method

func (*MockNode) EXPECT

func (m *MockNode) EXPECT() *MockNodeMockRecorder

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

func (*MockNode) Open

func (m *MockNode) Open(arg0 string, arg1 func(*db.Node) error) error

Open mocks base method

func (*MockNode) Transaction

func (m *MockNode) Transaction(arg0 func(*db.NodeTx) error) error

Transaction mocks base method

type MockNodeMockRecorder

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

MockNodeMockRecorder is the mock recorder for MockNode

func (*MockNodeMockRecorder) Close

func (mr *MockNodeMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockNodeMockRecorder) DB

func (mr *MockNodeMockRecorder) DB() *gomock.Call

DB indicates an expected call of DB

func (*MockNodeMockRecorder) Dir

func (mr *MockNodeMockRecorder) Dir() *gomock.Call

Dir indicates an expected call of Dir

func (*MockNodeMockRecorder) Open

func (mr *MockNodeMockRecorder) Open(arg0, arg1 interface{}) *gomock.Call

Open indicates an expected call of Open

func (*MockNodeMockRecorder) Transaction

func (mr *MockNodeMockRecorder) Transaction(arg0 interface{}) *gomock.Call

Transaction indicates an expected call of Transaction

type MockQuery

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

MockQuery is a mock of Query interface

func NewMockQuery

func NewMockQuery(ctrl *gomock.Controller) *MockQuery

NewMockQuery creates a new mock instance

func (*MockQuery) Count

func (m *MockQuery) Count(arg0 database.Tx, arg1, arg2 string, arg3 ...interface{}) (int, error)

Count mocks base method

func (*MockQuery) DeleteObject

func (m *MockQuery) DeleteObject(arg0 database.Tx, arg1 string, arg2 int64) (bool, error)

DeleteObject mocks base method

func (*MockQuery) EXPECT

func (m *MockQuery) EXPECT() *MockQueryMockRecorder

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

func (*MockQuery) SelectConfig

func (m *MockQuery) SelectConfig(arg0 database.Tx, arg1, arg2 string, arg3 ...interface{}) (map[string]string, error)

SelectConfig mocks base method

func (*MockQuery) SelectObjects

func (m *MockQuery) SelectObjects(arg0 database.Tx, arg1 query.Dest, arg2 string, arg3 ...interface{}) error

SelectObjects mocks base method

func (*MockQuery) SelectStrings

func (m *MockQuery) SelectStrings(arg0 database.Tx, arg1 string, arg2 ...interface{}) ([]string, error)

SelectStrings mocks base method

func (*MockQuery) UpdateConfig

func (m *MockQuery) UpdateConfig(arg0 database.Tx, arg1 string, arg2 map[string]string) error

UpdateConfig mocks base method

func (*MockQuery) UpsertObject

func (m *MockQuery) UpsertObject(arg0 database.Tx, arg1 string, arg2 []string, arg3 []interface{}) (int64, error)

UpsertObject mocks base method

type MockQueryCluster

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

MockQueryCluster is a mock of QueryCluster interface

func NewMockQueryCluster

func NewMockQueryCluster(ctrl *gomock.Controller) *MockQueryCluster

NewMockQueryCluster creates a new mock instance

func (*MockQueryCluster) DB

func (m *MockQueryCluster) DB() database.DB

DB mocks base method

func (*MockQueryCluster) EXPECT

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

func (*MockQueryCluster) EnsureSchema

func (m *MockQueryCluster) EnsureSchema(arg0, arg1 string) (bool, error)

EnsureSchema mocks base method

func (*MockQueryCluster) Open

Open mocks base method

func (*MockQueryCluster) SchemaVersion

func (m *MockQueryCluster) SchemaVersion() int

SchemaVersion mocks base method

type MockQueryClusterMockRecorder

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

MockQueryClusterMockRecorder is the mock recorder for MockQueryCluster

func (*MockQueryClusterMockRecorder) DB

DB indicates an expected call of DB

func (*MockQueryClusterMockRecorder) EnsureSchema

func (mr *MockQueryClusterMockRecorder) EnsureSchema(arg0, arg1 interface{}) *gomock.Call

EnsureSchema indicates an expected call of EnsureSchema

func (*MockQueryClusterMockRecorder) Open

func (mr *MockQueryClusterMockRecorder) Open(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Open indicates an expected call of Open

func (*MockQueryClusterMockRecorder) SchemaVersion

func (mr *MockQueryClusterMockRecorder) SchemaVersion() *gomock.Call

SchemaVersion indicates an expected call of SchemaVersion

type MockQueryMockRecorder

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

MockQueryMockRecorder is the mock recorder for MockQuery

func (*MockQueryMockRecorder) Count

func (mr *MockQueryMockRecorder) Count(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

Count indicates an expected call of Count

func (*MockQueryMockRecorder) DeleteObject

func (mr *MockQueryMockRecorder) DeleteObject(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteObject indicates an expected call of DeleteObject

func (*MockQueryMockRecorder) SelectConfig

func (mr *MockQueryMockRecorder) SelectConfig(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

SelectConfig indicates an expected call of SelectConfig

func (*MockQueryMockRecorder) SelectObjects

func (mr *MockQueryMockRecorder) SelectObjects(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

SelectObjects indicates an expected call of SelectObjects

func (*MockQueryMockRecorder) SelectStrings

func (mr *MockQueryMockRecorder) SelectStrings(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

SelectStrings indicates an expected call of SelectStrings

func (*MockQueryMockRecorder) UpdateConfig

func (mr *MockQueryMockRecorder) UpdateConfig(arg0, arg1, arg2 interface{}) *gomock.Call

UpdateConfig indicates an expected call of UpdateConfig

func (*MockQueryMockRecorder) UpsertObject

func (mr *MockQueryMockRecorder) UpsertObject(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

UpsertObject indicates an expected call of UpsertObject

type MockQueryNode

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

MockQueryNode is a mock of QueryNode interface

func NewMockQueryNode

func NewMockQueryNode(ctrl *gomock.Controller) *MockQueryNode

NewMockQueryNode creates a new mock instance

func (*MockQueryNode) DB

func (m *MockQueryNode) DB() database.DB

DB mocks base method

func (*MockQueryNode) EXPECT

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

func (*MockQueryNode) EnsureSchema

func (m *MockQueryNode) EnsureSchema(arg0 schema.Hook) (int, error)

EnsureSchema mocks base method

func (*MockQueryNode) Open

func (m *MockQueryNode) Open(arg0 string) error

Open mocks base method

type MockQueryNodeMockRecorder

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

MockQueryNodeMockRecorder is the mock recorder for MockQueryNode

func (*MockQueryNodeMockRecorder) DB

DB indicates an expected call of DB

func (*MockQueryNodeMockRecorder) EnsureSchema

func (mr *MockQueryNodeMockRecorder) EnsureSchema(arg0 interface{}) *gomock.Call

EnsureSchema indicates an expected call of EnsureSchema

func (*MockQueryNodeMockRecorder) Open

func (mr *MockQueryNodeMockRecorder) Open(arg0 interface{}) *gomock.Call

Open indicates an expected call of Open

type MockResult

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

MockResult is a mock of Result interface

func NewMockResult

func NewMockResult(ctrl *gomock.Controller) *MockResult

NewMockResult creates a new mock instance

func (*MockResult) EXPECT

func (m *MockResult) EXPECT() *MockResultMockRecorder

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

func (*MockResult) LastInsertId

func (m *MockResult) LastInsertId() (int64, error)

LastInsertId mocks base method

func (*MockResult) RowsAffected

func (m *MockResult) RowsAffected() (int64, error)

RowsAffected mocks base method

type MockResultMockRecorder

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

MockResultMockRecorder is the mock recorder for MockResult

func (*MockResultMockRecorder) LastInsertId

func (mr *MockResultMockRecorder) LastInsertId() *gomock.Call

LastInsertId indicates an expected call of LastInsertId

func (*MockResultMockRecorder) RowsAffected

func (mr *MockResultMockRecorder) RowsAffected() *gomock.Call

RowsAffected indicates an expected call of RowsAffected

type MockRows

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

MockRows is a mock of Rows interface

func NewMockRows

func NewMockRows(ctrl *gomock.Controller) *MockRows

NewMockRows creates a new mock instance

func (*MockRows) Close

func (m *MockRows) Close() error

Close mocks base method

func (*MockRows) ColumnTypes

func (m *MockRows) ColumnTypes() ([]database.ColumnType, error)

ColumnTypes mocks base method

func (*MockRows) Columns

func (m *MockRows) Columns() ([]string, error)

Columns mocks base method

func (*MockRows) EXPECT

func (m *MockRows) EXPECT() *MockRowsMockRecorder

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

func (*MockRows) Err

func (m *MockRows) Err() error

Err mocks base method

func (*MockRows) Next

func (m *MockRows) Next() bool

Next mocks base method

func (*MockRows) Scan

func (m *MockRows) Scan(arg0 ...interface{}) error

Scan mocks base method

type MockRowsMockRecorder

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

MockRowsMockRecorder is the mock recorder for MockRows

func (*MockRowsMockRecorder) Close

func (mr *MockRowsMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockRowsMockRecorder) ColumnTypes

func (mr *MockRowsMockRecorder) ColumnTypes() *gomock.Call

ColumnTypes indicates an expected call of ColumnTypes

func (*MockRowsMockRecorder) Columns

func (mr *MockRowsMockRecorder) Columns() *gomock.Call

Columns indicates an expected call of Columns

func (*MockRowsMockRecorder) Err

func (mr *MockRowsMockRecorder) Err() *gomock.Call

Err indicates an expected call of Err

func (*MockRowsMockRecorder) Next

func (mr *MockRowsMockRecorder) Next() *gomock.Call

Next indicates an expected call of Next

func (*MockRowsMockRecorder) Scan

func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call

Scan indicates an expected call of Scan

type MockTransaction

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

MockTransaction is a mock of Transaction interface

func NewMockTransaction

func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction

NewMockTransaction creates a new mock instance

func (*MockTransaction) EXPECT

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

func (*MockTransaction) Transaction

func (m *MockTransaction) Transaction(arg0 database.DB, arg1 func(database.Tx) error) error

Transaction mocks base method

type MockTransactionMockRecorder

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

MockTransactionMockRecorder is the mock recorder for MockTransaction

func (*MockTransactionMockRecorder) Transaction

func (mr *MockTransactionMockRecorder) Transaction(arg0, arg1 interface{}) *gomock.Call

Transaction indicates an expected call of Transaction

type MockTx

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

MockTx is a mock of Tx interface

func NewMockTx

func NewMockTx(ctrl *gomock.Controller) *MockTx

NewMockTx creates a new mock instance

func (*MockTx) Commit

func (m *MockTx) Commit() error

Commit mocks base method

func (*MockTx) EXPECT

func (m *MockTx) EXPECT() *MockTxMockRecorder

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

func (*MockTx) Exec

func (m *MockTx) Exec(arg0 string, arg1 ...interface{}) (sql.Result, error)

Exec mocks base method

func (*MockTx) Query

func (m *MockTx) Query(arg0 string, arg1 ...interface{}) (database.Rows, error)

Query mocks base method

func (*MockTx) Rollback

func (m *MockTx) Rollback() error

Rollback mocks base method

type MockTxMockRecorder

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

MockTxMockRecorder is the mock recorder for MockTx

func (*MockTxMockRecorder) Commit

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

Commit indicates an expected call of Commit

func (*MockTxMockRecorder) Exec

func (mr *MockTxMockRecorder) Exec(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Exec indicates an expected call of Exec

func (*MockTxMockRecorder) Query

func (mr *MockTxMockRecorder) Query(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Query indicates an expected call of Query

func (*MockTxMockRecorder) Rollback

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

Rollback indicates an expected call of Rollback

Jump to

Keyboard shortcuts

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