mocklib

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocklib is a generated GoMock package.

Package mocklib is a generated GoMock package.

Package mocklib is a generated GoMock package.

Package mocklib is a generated GoMock package.

Package mocklib is a generated GoMock package.

Package mocklib is a generated GoMock package.

Package mocklib is a generated GoMock package.

Package mocklib is a generated GoMock package.

Package mocklib is a generated GoMock package.

Package mocklib is a generated GoMock package.

Package mocklib is a generated GoMock package.

Package mocklib is a generated GoMock package.

Package mocklib is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConfChange

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

MockConfChange is a mock of ConfChange interface

func NewMockConfChange

func NewMockConfChange(ctrl *gomock.Controller) *MockConfChange

NewMockConfChange creates a new mock instance

func (*MockConfChange) Context

func (m *MockConfChange) Context() []byte

Context mocks base method

func (*MockConfChange) EXPECT

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

func (*MockConfChange) ID

func (m *MockConfChange) ID() uint64

ID mocks base method

func (*MockConfChange) NodeID

func (m *MockConfChange) NodeID() uint64

NodeID mocks base method

func (*MockConfChange) Type

func (m *MockConfChange) Type() lib.ConfChangeType

Type mocks base method

func (*MockConfChange) Unmarshal

func (m *MockConfChange) Unmarshal(arg0 []byte) error

Unmarshal mocks base method

type MockConfChangeMockRecorder

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

MockConfChangeMockRecorder is the mock recorder for MockConfChange

func (*MockConfChangeMockRecorder) Context

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

Context indicates an expected call of Context

func (*MockConfChangeMockRecorder) ID

ID indicates an expected call of ID

func (*MockConfChangeMockRecorder) NodeID

func (mr *MockConfChangeMockRecorder) NodeID() *gomock.Call

NodeID indicates an expected call of NodeID

func (*MockConfChangeMockRecorder) Type

Type indicates an expected call of Type

func (*MockConfChangeMockRecorder) Unmarshal

func (mr *MockConfChangeMockRecorder) Unmarshal(arg0 interface{}) *gomock.Call

Unmarshal indicates an expected call of Unmarshal

type MockConfState

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

MockConfState is a mock of ConfState interface

func NewMockConfState

func NewMockConfState(ctrl *gomock.Controller) *MockConfState

NewMockConfState creates a new mock instance

func (*MockConfState) EXPECT

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

func (*MockConfState) Learners

func (m *MockConfState) Learners() []uint64

Learners mocks base method

func (*MockConfState) Nodes

func (m *MockConfState) Nodes() []uint64

Nodes mocks base method

type MockConfStateMockRecorder

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

MockConfStateMockRecorder is the mock recorder for MockConfState

func (*MockConfStateMockRecorder) Learners

func (mr *MockConfStateMockRecorder) Learners() *gomock.Call

Learners indicates an expected call of Learners

func (*MockConfStateMockRecorder) Nodes

func (mr *MockConfStateMockRecorder) Nodes() *gomock.Call

Nodes indicates an expected call of Nodes

type MockConfig

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

MockConfig is a mock of Config interface

func NewMockConfig

func NewMockConfig(ctrl *gomock.Controller) *MockConfig

NewMockConfig creates a new mock instance

func (*MockConfig) EXPECT

func (m *MockConfig) EXPECT() *MockConfigMockRecorder

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

func (*MockConfig) ElectionTick

func (m *MockConfig) ElectionTick() int

ElectionTick mocks base method

func (*MockConfig) HeartbeatTick

func (m *MockConfig) HeartbeatTick() int

HeartbeatTick mocks base method

func (*MockConfig) ID

func (m *MockConfig) ID() uint64

ID mocks base method

func (*MockConfig) MaxInflightMsgs

func (m *MockConfig) MaxInflightMsgs() int

MaxInflightMsgs mocks base method

func (*MockConfig) MaxSizePerMsg

func (m *MockConfig) MaxSizePerMsg() uint64

MaxSizePerMsg mocks base method

func (*MockConfig) Storage

func (m *MockConfig) Storage() lib.Storage

Storage mocks base method

type MockConfigMockRecorder

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

MockConfigMockRecorder is the mock recorder for MockConfig

func (*MockConfigMockRecorder) ElectionTick

func (mr *MockConfigMockRecorder) ElectionTick() *gomock.Call

ElectionTick indicates an expected call of ElectionTick

func (*MockConfigMockRecorder) HeartbeatTick

func (mr *MockConfigMockRecorder) HeartbeatTick() *gomock.Call

HeartbeatTick indicates an expected call of HeartbeatTick

func (*MockConfigMockRecorder) ID

ID indicates an expected call of ID

func (*MockConfigMockRecorder) MaxInflightMsgs

func (mr *MockConfigMockRecorder) MaxInflightMsgs() *gomock.Call

MaxInflightMsgs indicates an expected call of MaxInflightMsgs

func (*MockConfigMockRecorder) MaxSizePerMsg

func (mr *MockConfigMockRecorder) MaxSizePerMsg() *gomock.Call

MaxSizePerMsg indicates an expected call of MaxSizePerMsg

func (*MockConfigMockRecorder) Storage

func (mr *MockConfigMockRecorder) Storage() *gomock.Call

Storage indicates an expected call of Storage

type MockEntry

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

MockEntry is a mock of Entry interface

func NewMockEntry

func NewMockEntry(ctrl *gomock.Controller) *MockEntry

NewMockEntry creates a new mock instance

func (*MockEntry) Data

func (m *MockEntry) Data() []byte

Data mocks base method

func (*MockEntry) EXPECT

func (m *MockEntry) EXPECT() *MockEntryMockRecorder

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

func (*MockEntry) Index

func (m *MockEntry) Index() uint64

Index mocks base method

func (*MockEntry) Term

func (m *MockEntry) Term() uint64

Term mocks base method

func (*MockEntry) Type

func (m *MockEntry) Type() lib.EntryType

Type mocks base method

type MockEntryMockRecorder

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

MockEntryMockRecorder is the mock recorder for MockEntry

func (*MockEntryMockRecorder) Data

func (mr *MockEntryMockRecorder) Data() *gomock.Call

Data indicates an expected call of Data

func (*MockEntryMockRecorder) Index

func (mr *MockEntryMockRecorder) Index() *gomock.Call

Index indicates an expected call of Index

func (*MockEntryMockRecorder) Term

func (mr *MockEntryMockRecorder) Term() *gomock.Call

Term indicates an expected call of Term

func (*MockEntryMockRecorder) Type

func (mr *MockEntryMockRecorder) Type() *gomock.Call

Type indicates an expected call of Type

type MockHardState

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

MockHardState is a mock of HardState interface

func NewMockHardState

func NewMockHardState(ctrl *gomock.Controller) *MockHardState

NewMockHardState creates a new mock instance

func (*MockHardState) Commit

func (m *MockHardState) Commit() uint64

Commit mocks base method

func (*MockHardState) EXPECT

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

func (*MockHardState) Term

func (m *MockHardState) Term() uint64

Term mocks base method

func (*MockHardState) Vote

func (m *MockHardState) Vote() uint64

Vote mocks base method

type MockHardStateMockRecorder

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

MockHardStateMockRecorder is the mock recorder for MockHardState

func (*MockHardStateMockRecorder) Commit

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

Commit indicates an expected call of Commit

func (*MockHardStateMockRecorder) Term

Term indicates an expected call of Term

func (*MockHardStateMockRecorder) Vote

Vote indicates an expected call of Vote

type MockLib

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

MockLib is a mock of Lib interface

func NewMockLib

func NewMockLib(ctrl *gomock.Controller) *MockLib

NewMockLib creates a new mock instance

func (*MockLib) EXPECT

func (m *MockLib) EXPECT() *MockLibMockRecorder

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

func (*MockLib) NewConfChange

func (m *MockLib) NewConfChange(arg0 uint64, arg1 lib.ConfChangeType, arg2 uint64, arg3 []byte) lib.ConfChange

NewConfChange mocks base method

func (*MockLib) NewConfig

func (m *MockLib) NewConfig(arg0 uint64, arg1, arg2 int, arg3 lib.Storage, arg4 uint64, arg5 int) lib.Config

NewConfig mocks base method

func (*MockLib) NewMemoryStorage

func (m *MockLib) NewMemoryStorage() lib.Storage

NewMemoryStorage mocks base method

func (*MockLib) NewPeer

func (m *MockLib) NewPeer(arg0 uint64, arg1 []byte) lib.Peer

NewPeer mocks base method

func (*MockLib) StartNode

func (m *MockLib) StartNode(arg0 lib.Config, arg1 []lib.Peer) lib.Node

StartNode mocks base method

type MockLibMockRecorder

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

MockLibMockRecorder is the mock recorder for MockLib

func (*MockLibMockRecorder) NewConfChange

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

NewConfChange indicates an expected call of NewConfChange

func (*MockLibMockRecorder) NewConfig

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

NewConfig indicates an expected call of NewConfig

func (*MockLibMockRecorder) NewMemoryStorage

func (mr *MockLibMockRecorder) NewMemoryStorage() *gomock.Call

NewMemoryStorage indicates an expected call of NewMemoryStorage

func (*MockLibMockRecorder) NewPeer

func (mr *MockLibMockRecorder) NewPeer(arg0, arg1 interface{}) *gomock.Call

NewPeer indicates an expected call of NewPeer

func (*MockLibMockRecorder) StartNode

func (mr *MockLibMockRecorder) StartNode(arg0, arg1 interface{}) *gomock.Call

StartNode indicates an expected call of StartNode

type MockMessage

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

MockMessage is a mock of Message interface

func NewMockMessage

func NewMockMessage(ctrl *gomock.Controller) *MockMessage

NewMockMessage creates a new mock instance

func (*MockMessage) Data

func (m *MockMessage) Data() []byte

Data mocks base method

func (*MockMessage) EXPECT

func (m *MockMessage) EXPECT() *MockMessageMockRecorder

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

func (*MockMessage) To

func (m *MockMessage) To() uint64

To mocks base method

type MockMessageMockRecorder

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

MockMessageMockRecorder is the mock recorder for MockMessage

func (*MockMessageMockRecorder) Data

func (mr *MockMessageMockRecorder) Data() *gomock.Call

Data indicates an expected call of Data

func (*MockMessageMockRecorder) To

To indicates an expected call of To

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) Advance

func (m *MockNode) Advance()

Advance mocks base method

func (*MockNode) ApplyConfChange

func (m *MockNode) ApplyConfChange(arg0 lib.ConfChange)

ApplyConfChange 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) Propose

func (m *MockNode) Propose(arg0 context.Context, arg1 []byte) error

Propose mocks base method

func (*MockNode) ProposeConfChange

func (m *MockNode) ProposeConfChange(arg0 context.Context, arg1 lib.ConfChange) error

ProposeConfChange mocks base method

func (*MockNode) Ready

func (m *MockNode) Ready() <-chan lib.Ready

Ready mocks base method

func (*MockNode) Step

func (m *MockNode) Step(arg0 context.Context, arg1 []byte) error

Step mocks base method

func (*MockNode) Stop

func (m *MockNode) Stop()

Stop mocks base method

func (*MockNode) Tick

func (m *MockNode) Tick()

Tick mocks base method

type MockNodeMockRecorder

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

MockNodeMockRecorder is the mock recorder for MockNode

func (*MockNodeMockRecorder) Advance

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

Advance indicates an expected call of Advance

func (*MockNodeMockRecorder) ApplyConfChange

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

ApplyConfChange indicates an expected call of ApplyConfChange

func (*MockNodeMockRecorder) Propose

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

Propose indicates an expected call of Propose

func (*MockNodeMockRecorder) ProposeConfChange

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

ProposeConfChange indicates an expected call of ProposeConfChange

func (*MockNodeMockRecorder) Ready

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

Ready indicates an expected call of Ready

func (*MockNodeMockRecorder) Step

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

Step indicates an expected call of Step

func (*MockNodeMockRecorder) Stop

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

Stop indicates an expected call of Stop

func (*MockNodeMockRecorder) Tick

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

Tick indicates an expected call of Tick

type MockPeer

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

MockPeer is a mock of Peer interface

func NewMockPeer

func NewMockPeer(ctrl *gomock.Controller) *MockPeer

NewMockPeer creates a new mock instance

func (*MockPeer) Context

func (m *MockPeer) Context() []byte

Context mocks base method

func (*MockPeer) EXPECT

func (m *MockPeer) EXPECT() *MockPeerMockRecorder

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

func (*MockPeer) ID

func (m *MockPeer) ID() uint64

ID mocks base method

type MockPeerMockRecorder

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

MockPeerMockRecorder is the mock recorder for MockPeer

func (*MockPeerMockRecorder) Context

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

Context indicates an expected call of Context

func (*MockPeerMockRecorder) ID

func (mr *MockPeerMockRecorder) ID() *gomock.Call

ID indicates an expected call of ID

type MockReady

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

MockReady is a mock of Ready interface

func NewMockReady

func NewMockReady(ctrl *gomock.Controller) *MockReady

NewMockReady creates a new mock instance

func (*MockReady) CommittedEntries

func (m *MockReady) CommittedEntries() []lib.Entry

CommittedEntries mocks base method

func (*MockReady) EXPECT

func (m *MockReady) EXPECT() *MockReadyMockRecorder

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

func (*MockReady) Entries

func (m *MockReady) Entries() []lib.Entry

Entries mocks base method

func (*MockReady) Messages

func (m *MockReady) Messages() []lib.Message

Messages mocks base method

type MockReadyMockRecorder

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

MockReadyMockRecorder is the mock recorder for MockReady

func (*MockReadyMockRecorder) CommittedEntries

func (mr *MockReadyMockRecorder) CommittedEntries() *gomock.Call

CommittedEntries indicates an expected call of CommittedEntries

func (*MockReadyMockRecorder) Entries

func (mr *MockReadyMockRecorder) Entries() *gomock.Call

Entries indicates an expected call of Entries

func (*MockReadyMockRecorder) Messages

func (mr *MockReadyMockRecorder) Messages() *gomock.Call

Messages indicates an expected call of Messages

type MockSnapshot

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

MockSnapshot is a mock of Snapshot interface

func NewMockSnapshot

func NewMockSnapshot(ctrl *gomock.Controller) *MockSnapshot

NewMockSnapshot creates a new mock instance

func (*MockSnapshot) Data

func (m *MockSnapshot) Data() []byte

Data mocks base method

func (*MockSnapshot) EXPECT

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

func (*MockSnapshot) Metadata

func (m *MockSnapshot) Metadata() lib.SnapshotMetadata

Metadata mocks base method

type MockSnapshotMetadata

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

MockSnapshotMetadata is a mock of SnapshotMetadata interface

func NewMockSnapshotMetadata

func NewMockSnapshotMetadata(ctrl *gomock.Controller) *MockSnapshotMetadata

NewMockSnapshotMetadata creates a new mock instance

func (*MockSnapshotMetadata) ConfState

func (m *MockSnapshotMetadata) ConfState() lib.ConfState

ConfState mocks base method

func (*MockSnapshotMetadata) EXPECT

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

func (*MockSnapshotMetadata) Index

func (m *MockSnapshotMetadata) Index() uint64

Index mocks base method

func (*MockSnapshotMetadata) Term

func (m *MockSnapshotMetadata) Term() uint64

Term mocks base method

type MockSnapshotMetadataMockRecorder

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

MockSnapshotMetadataMockRecorder is the mock recorder for MockSnapshotMetadata

func (*MockSnapshotMetadataMockRecorder) ConfState

func (mr *MockSnapshotMetadataMockRecorder) ConfState() *gomock.Call

ConfState indicates an expected call of ConfState

func (*MockSnapshotMetadataMockRecorder) Index

Index indicates an expected call of Index

func (*MockSnapshotMetadataMockRecorder) Term

Term indicates an expected call of Term

type MockSnapshotMockRecorder

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

MockSnapshotMockRecorder is the mock recorder for MockSnapshot

func (*MockSnapshotMockRecorder) Data

func (mr *MockSnapshotMockRecorder) Data() *gomock.Call

Data indicates an expected call of Data

func (*MockSnapshotMockRecorder) Metadata

func (mr *MockSnapshotMockRecorder) Metadata() *gomock.Call

Metadata indicates an expected call of Metadata

type MockStorage

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

MockStorage is a mock of Storage interface

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance

func (*MockStorage) Append

func (m *MockStorage) Append(arg0 []lib.Entry) error

Append mocks base method

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

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

func (*MockStorage) Entries

func (m *MockStorage) Entries(arg0, arg1, arg2 uint64) ([]lib.Entry, error)

Entries mocks base method

func (*MockStorage) FirstIndex

func (m *MockStorage) FirstIndex() (uint64, error)

FirstIndex mocks base method

func (*MockStorage) InitialState

func (m *MockStorage) InitialState() (lib.HardState, lib.ConfState, error)

InitialState mocks base method

func (*MockStorage) LastIndex

func (m *MockStorage) LastIndex() (uint64, error)

LastIndex mocks base method

func (*MockStorage) Snapshot

func (m *MockStorage) Snapshot() (lib.Snapshot, error)

Snapshot mocks base method

func (*MockStorage) Term

func (m *MockStorage) Term(arg0 uint64) (uint64, error)

Term mocks base method

type MockStorageMockRecorder

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

MockStorageMockRecorder is the mock recorder for MockStorage

func (*MockStorageMockRecorder) Append

func (mr *MockStorageMockRecorder) Append(arg0 interface{}) *gomock.Call

Append indicates an expected call of Append

func (*MockStorageMockRecorder) Entries

func (mr *MockStorageMockRecorder) Entries(arg0, arg1, arg2 interface{}) *gomock.Call

Entries indicates an expected call of Entries

func (*MockStorageMockRecorder) FirstIndex

func (mr *MockStorageMockRecorder) FirstIndex() *gomock.Call

FirstIndex indicates an expected call of FirstIndex

func (*MockStorageMockRecorder) InitialState

func (mr *MockStorageMockRecorder) InitialState() *gomock.Call

InitialState indicates an expected call of InitialState

func (*MockStorageMockRecorder) LastIndex

func (mr *MockStorageMockRecorder) LastIndex() *gomock.Call

LastIndex indicates an expected call of LastIndex

func (*MockStorageMockRecorder) Snapshot

func (mr *MockStorageMockRecorder) Snapshot() *gomock.Call

Snapshot indicates an expected call of Snapshot

func (*MockStorageMockRecorder) Term

func (mr *MockStorageMockRecorder) Term(arg0 interface{}) *gomock.Call

Term indicates an expected call of Term

Jump to

Keyboard shortcuts

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