mock_shardingconfig

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock_shardingconfig is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInstance

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

MockInstance is a mock of Instance interface

func NewMockInstance

func NewMockInstance(ctrl *gomock.Controller) *MockInstance

NewMockInstance creates a new mock instance

func (*MockInstance) BlocksPerEpoch

func (m *MockInstance) BlocksPerEpoch() uint64

BlocksPerEpoch mocks base method

func (*MockInstance) EXPECT

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

func (*MockInstance) ExternalVotePercent added in v1.3.5

func (m *MockInstance) ExternalVotePercent() numeric.Dec

ExternalVotePercent mocks base method

func (*MockInstance) FindAccount

func (m *MockInstance) FindAccount(blsPubKey string) (bool, *genesis.DeployAccount)

FindAccount mocks base method

func (*MockInstance) FnAccounts

func (m *MockInstance) FnAccounts() []genesis.DeployAccount

FnAccounts mocks base method

func (*MockInstance) HarmonyVotePercent added in v1.3.5

func (m *MockInstance) HarmonyVotePercent() numeric.Dec

HarmonyVotePercent mocks base method

func (*MockInstance) HmyAccounts

func (m *MockInstance) HmyAccounts() []genesis.DeployAccount

HmyAccounts mocks base method

func (*MockInstance) NumHarmonyOperatedNodesPerShard

func (m *MockInstance) NumHarmonyOperatedNodesPerShard() int

NumHarmonyOperatedNodesPerShard mocks base method

func (*MockInstance) NumNodesPerShard

func (m *MockInstance) NumNodesPerShard() int

NumNodesPerShard mocks base method

func (*MockInstance) NumShards

func (m *MockInstance) NumShards() uint32

NumShards mocks base method

func (*MockInstance) ReshardingEpoch

func (m *MockInstance) ReshardingEpoch() []*big.Int

ReshardingEpoch mocks base method

type MockInstanceMockRecorder

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

MockInstanceMockRecorder is the mock recorder for MockInstance

func (*MockInstanceMockRecorder) BlocksPerEpoch

func (mr *MockInstanceMockRecorder) BlocksPerEpoch() *gomock.Call

BlocksPerEpoch indicates an expected call of BlocksPerEpoch

func (*MockInstanceMockRecorder) ExternalVotePercent added in v1.3.5

func (mr *MockInstanceMockRecorder) ExternalVotePercent() *gomock.Call

ExternalVotePercent indicates an expected call of ExternalVotePercent

func (*MockInstanceMockRecorder) FindAccount

func (mr *MockInstanceMockRecorder) FindAccount(blsPubKey interface{}) *gomock.Call

FindAccount indicates an expected call of FindAccount

func (*MockInstanceMockRecorder) FnAccounts

func (mr *MockInstanceMockRecorder) FnAccounts() *gomock.Call

FnAccounts indicates an expected call of FnAccounts

func (*MockInstanceMockRecorder) HarmonyVotePercent added in v1.3.5

func (mr *MockInstanceMockRecorder) HarmonyVotePercent() *gomock.Call

HarmonyVotePercent indicates an expected call of HarmonyVotePercent

func (*MockInstanceMockRecorder) HmyAccounts

func (mr *MockInstanceMockRecorder) HmyAccounts() *gomock.Call

HmyAccounts indicates an expected call of HmyAccounts

func (*MockInstanceMockRecorder) NumHarmonyOperatedNodesPerShard

func (mr *MockInstanceMockRecorder) NumHarmonyOperatedNodesPerShard() *gomock.Call

NumHarmonyOperatedNodesPerShard indicates an expected call of NumHarmonyOperatedNodesPerShard

func (*MockInstanceMockRecorder) NumNodesPerShard

func (mr *MockInstanceMockRecorder) NumNodesPerShard() *gomock.Call

NumNodesPerShard indicates an expected call of NumNodesPerShard

func (*MockInstanceMockRecorder) NumShards

func (mr *MockInstanceMockRecorder) NumShards() *gomock.Call

NumShards indicates an expected call of NumShards

func (*MockInstanceMockRecorder) ReshardingEpoch

func (mr *MockInstanceMockRecorder) ReshardingEpoch() *gomock.Call

ReshardingEpoch indicates an expected call of ReshardingEpoch

type MockSchedule

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

MockSchedule is a mock of Schedule interface

func NewMockSchedule

func NewMockSchedule(ctrl *gomock.Controller) *MockSchedule

NewMockSchedule creates a new mock instance

func (*MockSchedule) BlocksPerEpoch

func (m *MockSchedule) BlocksPerEpoch() uint64

BlocksPerEpoch mocks base method

func (*MockSchedule) CalcEpochNumber

func (m *MockSchedule) CalcEpochNumber(blockNum uint64) *big.Int

CalcEpochNumber mocks base method

func (*MockSchedule) ConsensusRatio

func (m *MockSchedule) ConsensusRatio() float64

ConsensusRatio mocks base method

func (*MockSchedule) EXPECT

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

func (*MockSchedule) EpochLastBlock

func (m *MockSchedule) EpochLastBlock(epochNum uint64) uint64

EpochLastBlock mocks base method

func (*MockSchedule) GetNetworkID

func (m *MockSchedule) GetNetworkID() sharding.NetworkID

GetNetworkID mocks base method

func (*MockSchedule) GetShardingStructure

func (m *MockSchedule) GetShardingStructure(arg0, arg1 int) []map[string]interface{}

GetShardingStructure mocks base method

func (*MockSchedule) InstanceForEpoch

func (m *MockSchedule) InstanceForEpoch(epoch *big.Int) sharding.Instance

InstanceForEpoch mocks base method

func (*MockSchedule) IsLastBlock

func (m *MockSchedule) IsLastBlock(blockNum uint64) bool

IsLastBlock mocks base method

func (*MockSchedule) RandomnessStartingEpoch

func (m *MockSchedule) RandomnessStartingEpoch() uint64

RandomnessStartingEpoch mocks base method

func (*MockSchedule) VdfDifficulty

func (m *MockSchedule) VdfDifficulty() int

VdfDifficulty mocks base method

type MockScheduleMockRecorder

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

MockScheduleMockRecorder is the mock recorder for MockSchedule

func (*MockScheduleMockRecorder) BlocksPerEpoch

func (mr *MockScheduleMockRecorder) BlocksPerEpoch() *gomock.Call

BlocksPerEpoch indicates an expected call of BlocksPerEpoch

func (*MockScheduleMockRecorder) CalcEpochNumber

func (mr *MockScheduleMockRecorder) CalcEpochNumber(blockNum interface{}) *gomock.Call

CalcEpochNumber indicates an expected call of CalcEpochNumber

func (*MockScheduleMockRecorder) ConsensusRatio

func (mr *MockScheduleMockRecorder) ConsensusRatio() *gomock.Call

ConsensusRatio indicates an expected call of ConsensusRatio

func (*MockScheduleMockRecorder) EpochLastBlock

func (mr *MockScheduleMockRecorder) EpochLastBlock(epochNum interface{}) *gomock.Call

EpochLastBlock indicates an expected call of EpochLastBlock

func (*MockScheduleMockRecorder) GetNetworkID

func (mr *MockScheduleMockRecorder) GetNetworkID() *gomock.Call

GetNetworkID indicates an expected call of GetNetworkID

func (*MockScheduleMockRecorder) GetShardingStructure

func (mr *MockScheduleMockRecorder) GetShardingStructure(arg0, arg1 interface{}) *gomock.Call

GetShardingStructure indicates an expected call of GetShardingStructure

func (*MockScheduleMockRecorder) InstanceForEpoch

func (mr *MockScheduleMockRecorder) InstanceForEpoch(epoch interface{}) *gomock.Call

InstanceForEpoch indicates an expected call of InstanceForEpoch

func (*MockScheduleMockRecorder) IsLastBlock

func (mr *MockScheduleMockRecorder) IsLastBlock(blockNum interface{}) *gomock.Call

IsLastBlock indicates an expected call of IsLastBlock

func (*MockScheduleMockRecorder) RandomnessStartingEpoch

func (mr *MockScheduleMockRecorder) RandomnessStartingEpoch() *gomock.Call

RandomnessStartingEpoch indicates an expected call of RandomnessStartingEpoch

func (*MockScheduleMockRecorder) VdfDifficulty

func (mr *MockScheduleMockRecorder) VdfDifficulty() *gomock.Call

VdfDifficulty indicates an expected call of VdfDifficulty

Jump to

Keyboard shortcuts

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