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: 21 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.

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 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 MockFileSystem

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

MockFileSystem is a mock of FileSystem interface

func NewMockFileSystem

func NewMockFileSystem(ctrl *gomock.Controller) *MockFileSystem

NewMockFileSystem creates a new mock instance

func (*MockFileSystem) Chtimes

func (m *MockFileSystem) Chtimes(arg0 string, arg1, arg2 time.Time) error

Chtimes mocks base method

func (*MockFileSystem) CopyDir

func (m *MockFileSystem) CopyDir(arg0, arg1 string) error

CopyDir mocks base method

func (*MockFileSystem) CopyFile

func (m *MockFileSystem) CopyFile(arg0, arg1 string) error

CopyFile mocks base method

func (*MockFileSystem) Create

func (m *MockFileSystem) Create(arg0 string) (fsys.File, error)

Create mocks base method

func (*MockFileSystem) EXPECT

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

func (*MockFileSystem) Exists

func (m *MockFileSystem) Exists(arg0 string) bool

Exists mocks base method

func (*MockFileSystem) Lock

func (m *MockFileSystem) Lock(arg0 string) (fsys.Releaser, bool, error)

Lock mocks base method

func (*MockFileSystem) Mkdir

func (m *MockFileSystem) Mkdir(arg0 string, arg1 os.FileMode) error

Mkdir mocks base method

func (*MockFileSystem) MkdirAll

func (m *MockFileSystem) MkdirAll(arg0 string, arg1 os.FileMode) error

MkdirAll mocks base method

func (*MockFileSystem) Open

func (m *MockFileSystem) Open(arg0 string) (fsys.File, error)

Open mocks base method

func (*MockFileSystem) OpenFile

func (m *MockFileSystem) OpenFile(arg0 string, arg1 int, arg2 os.FileMode) (fsys.File, error)

OpenFile mocks base method

func (*MockFileSystem) Remove

func (m *MockFileSystem) Remove(arg0 string) error

Remove mocks base method

func (*MockFileSystem) RemoveAll

func (m *MockFileSystem) RemoveAll(arg0 string) error

RemoveAll mocks base method

func (*MockFileSystem) Rename

func (m *MockFileSystem) Rename(arg0, arg1 string) error

Rename mocks base method

func (m *MockFileSystem) Symlink(arg0, arg1 string) error

Symlink mocks base method

func (*MockFileSystem) Walk

func (m *MockFileSystem) Walk(arg0 string, arg1 filepath.WalkFunc) error

Walk mocks base method

type MockFileSystemMockRecorder

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

MockFileSystemMockRecorder is the mock recorder for MockFileSystem

func (*MockFileSystemMockRecorder) Chtimes

func (mr *MockFileSystemMockRecorder) Chtimes(arg0, arg1, arg2 interface{}) *gomock.Call

Chtimes indicates an expected call of Chtimes

func (*MockFileSystemMockRecorder) CopyDir

func (mr *MockFileSystemMockRecorder) CopyDir(arg0, arg1 interface{}) *gomock.Call

CopyDir indicates an expected call of CopyDir

func (*MockFileSystemMockRecorder) CopyFile

func (mr *MockFileSystemMockRecorder) CopyFile(arg0, arg1 interface{}) *gomock.Call

CopyFile indicates an expected call of CopyFile

func (*MockFileSystemMockRecorder) Create

func (mr *MockFileSystemMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockFileSystemMockRecorder) Exists

func (mr *MockFileSystemMockRecorder) Exists(arg0 interface{}) *gomock.Call

Exists indicates an expected call of Exists

func (*MockFileSystemMockRecorder) Lock

func (mr *MockFileSystemMockRecorder) Lock(arg0 interface{}) *gomock.Call

Lock indicates an expected call of Lock

func (*MockFileSystemMockRecorder) Mkdir

func (mr *MockFileSystemMockRecorder) Mkdir(arg0, arg1 interface{}) *gomock.Call

Mkdir indicates an expected call of Mkdir

func (*MockFileSystemMockRecorder) MkdirAll

func (mr *MockFileSystemMockRecorder) MkdirAll(arg0, arg1 interface{}) *gomock.Call

MkdirAll indicates an expected call of MkdirAll

func (*MockFileSystemMockRecorder) Open

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

Open indicates an expected call of Open

func (*MockFileSystemMockRecorder) OpenFile

func (mr *MockFileSystemMockRecorder) OpenFile(arg0, arg1, arg2 interface{}) *gomock.Call

OpenFile indicates an expected call of OpenFile

func (*MockFileSystemMockRecorder) Remove

func (mr *MockFileSystemMockRecorder) Remove(arg0 interface{}) *gomock.Call

Remove indicates an expected call of Remove

func (*MockFileSystemMockRecorder) RemoveAll

func (mr *MockFileSystemMockRecorder) RemoveAll(arg0 interface{}) *gomock.Call

RemoveAll indicates an expected call of RemoveAll

func (*MockFileSystemMockRecorder) Rename

func (mr *MockFileSystemMockRecorder) Rename(arg0, arg1 interface{}) *gomock.Call

Rename indicates an expected call of Rename

func (mr *MockFileSystemMockRecorder) Symlink(arg0, arg1 interface{}) *gomock.Call

Symlink indicates an expected call of Symlink

func (*MockFileSystemMockRecorder) Walk

func (mr *MockFileSystemMockRecorder) Walk(arg0, arg1 interface{}) *gomock.Call

Walk indicates an expected call of Walk

type MockListener

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

MockListener is a mock of Listener interface

func NewMockListener

func NewMockListener(ctrl *gomock.Controller) *MockListener

NewMockListener creates a new mock instance

func (*MockListener) Accept

func (m *MockListener) Accept() (net.Conn, error)

Accept mocks base method

func (*MockListener) Addr

func (m *MockListener) Addr() net.Addr

Addr mocks base method

func (*MockListener) Close

func (m *MockListener) Close() error

Close mocks base method

func (*MockListener) EXPECT

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

type MockListenerMockRecorder

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

MockListenerMockRecorder is the mock recorder for MockListener

func (*MockListenerMockRecorder) Accept

func (mr *MockListenerMockRecorder) Accept() *gomock.Call

Accept indicates an expected call of Accept

func (*MockListenerMockRecorder) Addr

func (mr *MockListenerMockRecorder) Addr() *gomock.Call

Addr indicates an expected call of Addr

func (*MockListenerMockRecorder) Close

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

Close indicates an expected call of Close

type MockNet

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

MockNet is a mock of Net interface

func NewMockNet

func NewMockNet(ctrl *gomock.Controller) *MockNet

NewMockNet creates a new mock instance

func (*MockNet) EXPECT

func (m *MockNet) EXPECT() *MockNetMockRecorder

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

func (*MockNet) UnixDial

func (m *MockNet) UnixDial(arg0 string) (net.Conn, error)

UnixDial mocks base method

func (*MockNet) UnixListen

func (m *MockNet) UnixListen(arg0 string) (net.Listener, error)

UnixListen mocks base method

type MockNetMockRecorder

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

MockNetMockRecorder is the mock recorder for MockNet

func (*MockNetMockRecorder) UnixDial

func (mr *MockNetMockRecorder) UnixDial(arg0 interface{}) *gomock.Call

UnixDial indicates an expected call of UnixDial

func (*MockNetMockRecorder) UnixListen

func (mr *MockNetMockRecorder) UnixListen(arg0 interface{}) *gomock.Call

UnixListen indicates an expected call of UnixListen

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 MockRaftInstance

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

MockRaftInstance is a mock of RaftInstance interface

func NewMockRaftInstance

func NewMockRaftInstance(ctrl *gomock.Controller) *MockRaftInstance

NewMockRaftInstance creates a new mock instance

func (*MockRaftInstance) EXPECT

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

func (*MockRaftInstance) HandlerFunc

func (m *MockRaftInstance) HandlerFunc() http.HandlerFunc

HandlerFunc mocks base method

func (*MockRaftInstance) Init

func (m *MockRaftInstance) Init() error

Init mocks base method

func (*MockRaftInstance) MembershipChanger

func (m *MockRaftInstance) MembershipChanger() raft_membership.Changer

MembershipChanger mocks base method

func (*MockRaftInstance) Raft

func (m *MockRaftInstance) Raft() *raft.Raft

Raft mocks base method

func (*MockRaftInstance) Registry

func (m *MockRaftInstance) Registry() *go_dqlite.Registry

Registry mocks base method

func (*MockRaftInstance) Servers

func (m *MockRaftInstance) Servers() ([]raft.Server, error)

Servers mocks base method

func (*MockRaftInstance) Shutdown

func (m *MockRaftInstance) Shutdown() error

Shutdown mocks base method

type MockRaftInstanceMockRecorder

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

MockRaftInstanceMockRecorder is the mock recorder for MockRaftInstance

func (*MockRaftInstanceMockRecorder) HandlerFunc

func (mr *MockRaftInstanceMockRecorder) HandlerFunc() *gomock.Call

HandlerFunc indicates an expected call of HandlerFunc

func (*MockRaftInstanceMockRecorder) Init

Init indicates an expected call of Init

func (*MockRaftInstanceMockRecorder) MembershipChanger

func (mr *MockRaftInstanceMockRecorder) MembershipChanger() *gomock.Call

MembershipChanger indicates an expected call of MembershipChanger

func (*MockRaftInstanceMockRecorder) Raft

Raft indicates an expected call of Raft

func (*MockRaftInstanceMockRecorder) Registry

func (mr *MockRaftInstanceMockRecorder) Registry() *gomock.Call

Registry indicates an expected call of Registry

func (*MockRaftInstanceMockRecorder) Servers

func (mr *MockRaftInstanceMockRecorder) Servers() *gomock.Call

Servers indicates an expected call of Servers

func (*MockRaftInstanceMockRecorder) Shutdown

func (mr *MockRaftInstanceMockRecorder) Shutdown() *gomock.Call

Shutdown indicates an expected call of Shutdown

type MockRaftProvider

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

MockRaftProvider is a mock of RaftProvider interface

func NewMockRaftProvider

func NewMockRaftProvider(ctrl *gomock.Controller) *MockRaftProvider

NewMockRaftProvider creates a new mock instance

func (*MockRaftProvider) EXPECT

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

func (*MockRaftProvider) New

func (m *MockRaftProvider) New(arg0 cluster.Node, arg1 *cert.Info, arg2 config.Schema, arg3 fsys.FileSystem, arg4 log.Logger, arg5 float64) cluster.RaftInstance

New mocks base method

type MockRaftProviderMockRecorder

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

MockRaftProviderMockRecorder is the mock recorder for MockRaftProvider

func (*MockRaftProviderMockRecorder) New

func (mr *MockRaftProviderMockRecorder) New(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

New indicates an expected call of New

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 MockServer

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

MockServer is a mock of Server interface

func NewMockServer

func NewMockServer(ctrl *gomock.Controller) *MockServer

NewMockServer creates a new mock instance

func (*MockServer) Close

func (m *MockServer) Close() error

Close mocks base method

func (*MockServer) Dump

func (m *MockServer) Dump(arg0, arg1 string) error

Dump mocks base method

func (*MockServer) EXPECT

func (m *MockServer) EXPECT() *MockServerMockRecorder

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

type MockServerMockRecorder

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

MockServerMockRecorder is the mock recorder for MockServer

func (*MockServerMockRecorder) Close

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

Close indicates an expected call of Close

func (*MockServerMockRecorder) Dump

func (mr *MockServerMockRecorder) Dump(arg0, arg1 interface{}) *gomock.Call

Dump indicates an expected call of Dump

type MockServerProvider

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

MockServerProvider is a mock of ServerProvider interface

func NewMockServerProvider

func NewMockServerProvider(ctrl *gomock.Controller) *MockServerProvider

NewMockServerProvider creates a new mock instance

func (*MockServerProvider) EXPECT

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

func (*MockServerProvider) New

New mocks base method

type MockServerProviderMockRecorder

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

MockServerProviderMockRecorder is the mock recorder for MockServerProvider

func (*MockServerProviderMockRecorder) New

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

New indicates an expected call of New

type MockServerStore

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

MockServerStore is a mock of ServerStore interface

func NewMockServerStore

func NewMockServerStore(ctrl *gomock.Controller) *MockServerStore

NewMockServerStore creates a new mock instance

func (*MockServerStore) EXPECT

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

func (*MockServerStore) Get

Get mocks base method

func (*MockServerStore) Set

func (m *MockServerStore) Set(arg0 context.Context, arg1 []cluster.ServerInfo) error

Set mocks base method

type MockServerStoreMockRecorder

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

MockServerStoreMockRecorder is the mock recorder for MockServerStore

func (*MockServerStoreMockRecorder) Get

func (mr *MockServerStoreMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockServerStoreMockRecorder) Set

func (mr *MockServerStoreMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call

Set indicates an expected call of Set

type MockSleeper

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

MockSleeper is a mock of Sleeper interface

func NewMockSleeper

func NewMockSleeper(ctrl *gomock.Controller) *MockSleeper

NewMockSleeper creates a new mock instance

func (*MockSleeper) EXPECT

func (m *MockSleeper) EXPECT() *MockSleeperMockRecorder

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

func (*MockSleeper) Sleep

func (m *MockSleeper) Sleep(arg0 time.Duration)

Sleep mocks base method

type MockSleeperMockRecorder

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

MockSleeperMockRecorder is the mock recorder for MockSleeper

func (*MockSleeperMockRecorder) Sleep

func (mr *MockSleeperMockRecorder) Sleep(arg0 interface{}) *gomock.Call

Sleep indicates an expected call of Sleep

type MockStoreProvider

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

MockStoreProvider is a mock of StoreProvider interface

func NewMockStoreProvider

func NewMockStoreProvider(ctrl *gomock.Controller) *MockStoreProvider

NewMockStoreProvider creates a new mock instance

func (*MockStoreProvider) Disk

Disk mocks base method

func (*MockStoreProvider) EXPECT

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

func (*MockStoreProvider) Memory

Memory mocks base method

type MockStoreProviderMockRecorder

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

MockStoreProviderMockRecorder is the mock recorder for MockStoreProvider

func (*MockStoreProviderMockRecorder) Disk

func (mr *MockStoreProviderMockRecorder) Disk(arg0 interface{}) *gomock.Call

Disk indicates an expected call of Disk

func (*MockStoreProviderMockRecorder) Memory

Memory indicates an expected call of Memory

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