Documentation ¶
Index ¶
- func GetTestNetwork() core.Network
- type ClaimQueueMock
- func (m *ClaimQueueMock) AllMocksCalled() bool
- func (m *ClaimQueueMock) CheckMocksCalled()
- func (m *ClaimQueueMock) Finish()
- func (m *ClaimQueueMock) Front() (r packets.ReferendumClaim)
- func (m *ClaimQueueMock) FrontFinished() bool
- func (m *ClaimQueueMock) FrontMinimockCounter() uint64
- func (m *ClaimQueueMock) FrontMinimockPreCounter() uint64
- func (m *ClaimQueueMock) Length() (r int)
- func (m *ClaimQueueMock) LengthFinished() bool
- func (m *ClaimQueueMock) LengthMinimockCounter() uint64
- func (m *ClaimQueueMock) LengthMinimockPreCounter() uint64
- func (m *ClaimQueueMock) MinimockFinish()
- func (m *ClaimQueueMock) MinimockWait(timeout time.Duration)
- func (m *ClaimQueueMock) Pop() (r packets.ReferendumClaim)
- func (m *ClaimQueueMock) PopFinished() bool
- func (m *ClaimQueueMock) PopMinimockCounter() uint64
- func (m *ClaimQueueMock) PopMinimockPreCounter() uint64
- func (m *ClaimQueueMock) ValidateCallCounters()
- func (m *ClaimQueueMock) Wait(timeout time.Duration)
- type ClaimQueueMockFrontExpectation
- type ClaimQueueMockFrontResult
- type ClaimQueueMockLengthExpectation
- type ClaimQueueMockLengthResult
- type ClaimQueueMockPopExpectation
- type ClaimQueueMockPopResult
- type ConsensusNetworkMock
- func (m *ConsensusNetworkMock) AllMocksCalled() bool
- func (m *ConsensusNetworkMock) CheckMocksCalled()
- func (m *ConsensusNetworkMock) Finish()
- func (m *ConsensusNetworkMock) GetNodeID() (r core.RecordRef)
- func (m *ConsensusNetworkMock) GetNodeIDFinished() bool
- func (m *ConsensusNetworkMock) GetNodeIDMinimockCounter() uint64
- func (m *ConsensusNetworkMock) GetNodeIDMinimockPreCounter() uint64
- func (m *ConsensusNetworkMock) MinimockFinish()
- func (m *ConsensusNetworkMock) MinimockWait(timeout time.Duration)
- func (m *ConsensusNetworkMock) PublicAddress() (r string)
- func (m *ConsensusNetworkMock) PublicAddressFinished() bool
- func (m *ConsensusNetworkMock) PublicAddressMinimockCounter() uint64
- func (m *ConsensusNetworkMock) PublicAddressMinimockPreCounter() uint64
- func (m *ConsensusNetworkMock) RegisterPacketHandler(p packets.PacketType, p1 network.ConsensusPacketHandler)
- func (m *ConsensusNetworkMock) RegisterPacketHandlerFinished() bool
- func (m *ConsensusNetworkMock) RegisterPacketHandlerMinimockCounter() uint64
- func (m *ConsensusNetworkMock) RegisterPacketHandlerMinimockPreCounter() uint64
- func (m *ConsensusNetworkMock) SignAndSendPacket(p packets.ConsensusPacket, p1 core.RecordRef, p2 core.CryptographyService) (r error)
- func (m *ConsensusNetworkMock) SignAndSendPacketFinished() bool
- func (m *ConsensusNetworkMock) SignAndSendPacketMinimockCounter() uint64
- func (m *ConsensusNetworkMock) SignAndSendPacketMinimockPreCounter() uint64
- func (m *ConsensusNetworkMock) Start(p context.Context) (r error)
- func (m *ConsensusNetworkMock) StartFinished() bool
- func (m *ConsensusNetworkMock) StartMinimockCounter() uint64
- func (m *ConsensusNetworkMock) StartMinimockPreCounter() uint64
- func (m *ConsensusNetworkMock) Stop(p context.Context) (r error)
- func (m *ConsensusNetworkMock) StopFinished() bool
- func (m *ConsensusNetworkMock) StopMinimockCounter() uint64
- func (m *ConsensusNetworkMock) StopMinimockPreCounter() uint64
- func (m *ConsensusNetworkMock) ValidateCallCounters()
- func (m *ConsensusNetworkMock) Wait(timeout time.Duration)
- type ConsensusNetworkMockGetNodeIDExpectation
- type ConsensusNetworkMockGetNodeIDResult
- type ConsensusNetworkMockPublicAddressExpectation
- type ConsensusNetworkMockPublicAddressResult
- type ConsensusNetworkMockRegisterPacketHandlerExpectation
- type ConsensusNetworkMockRegisterPacketHandlerInput
- type ConsensusNetworkMockSignAndSendPacketExpectation
- type ConsensusNetworkMockSignAndSendPacketInput
- type ConsensusNetworkMockSignAndSendPacketResult
- type ConsensusNetworkMockStartExpectation
- type ConsensusNetworkMockStartInput
- type ConsensusNetworkMockStartResult
- type ConsensusNetworkMockStopExpectation
- type ConsensusNetworkMockStopInput
- type ConsensusNetworkMockStopResult
- type HostNetworkMock
- func (m *HostNetworkMock) AllMocksCalled() bool
- func (m *HostNetworkMock) BuildResponse(p context.Context, p1 network.Request, p2 interface{}) (r network.Response)
- func (m *HostNetworkMock) BuildResponseFinished() bool
- func (m *HostNetworkMock) BuildResponseMinimockCounter() uint64
- func (m *HostNetworkMock) BuildResponseMinimockPreCounter() uint64
- func (m *HostNetworkMock) CheckMocksCalled()
- func (m *HostNetworkMock) Finish()
- func (m *HostNetworkMock) GetNodeID() (r core.RecordRef)
- func (m *HostNetworkMock) GetNodeIDFinished() bool
- func (m *HostNetworkMock) GetNodeIDMinimockCounter() uint64
- func (m *HostNetworkMock) GetNodeIDMinimockPreCounter() uint64
- func (m *HostNetworkMock) MinimockFinish()
- func (m *HostNetworkMock) MinimockWait(timeout time.Duration)
- func (m *HostNetworkMock) NewRequestBuilder() (r network.RequestBuilder)
- func (m *HostNetworkMock) NewRequestBuilderFinished() bool
- func (m *HostNetworkMock) NewRequestBuilderMinimockCounter() uint64
- func (m *HostNetworkMock) NewRequestBuilderMinimockPreCounter() uint64
- func (m *HostNetworkMock) PublicAddress() (r string)
- func (m *HostNetworkMock) PublicAddressFinished() bool
- func (m *HostNetworkMock) PublicAddressMinimockCounter() uint64
- func (m *HostNetworkMock) PublicAddressMinimockPreCounter() uint64
- func (m *HostNetworkMock) RegisterRequestHandler(p types.PacketType, p1 network.RequestHandler)
- func (m *HostNetworkMock) RegisterRequestHandlerFinished() bool
- func (m *HostNetworkMock) RegisterRequestHandlerMinimockCounter() uint64
- func (m *HostNetworkMock) RegisterRequestHandlerMinimockPreCounter() uint64
- func (m *HostNetworkMock) SendRequest(p context.Context, p1 network.Request, p2 core.RecordRef) (r network.Future, r1 error)
- func (m *HostNetworkMock) SendRequestFinished() bool
- func (m *HostNetworkMock) SendRequestMinimockCounter() uint64
- func (m *HostNetworkMock) SendRequestMinimockPreCounter() uint64
- func (m *HostNetworkMock) Start(p context.Context)
- func (m *HostNetworkMock) StartFinished() bool
- func (m *HostNetworkMock) StartMinimockCounter() uint64
- func (m *HostNetworkMock) StartMinimockPreCounter() uint64
- func (m *HostNetworkMock) Stop()
- func (m *HostNetworkMock) StopFinished() bool
- func (m *HostNetworkMock) StopMinimockCounter() uint64
- func (m *HostNetworkMock) StopMinimockPreCounter() uint64
- func (m *HostNetworkMock) ValidateCallCounters()
- func (m *HostNetworkMock) Wait(timeout time.Duration)
- type HostNetworkMockBuildResponseExpectation
- type HostNetworkMockBuildResponseInput
- type HostNetworkMockBuildResponseResult
- type HostNetworkMockGetNodeIDExpectation
- type HostNetworkMockGetNodeIDResult
- type HostNetworkMockNewRequestBuilderExpectation
- type HostNetworkMockNewRequestBuilderResult
- type HostNetworkMockPublicAddressExpectation
- type HostNetworkMockPublicAddressResult
- type HostNetworkMockRegisterRequestHandlerExpectation
- type HostNetworkMockRegisterRequestHandlerInput
- type HostNetworkMockSendRequestExpectation
- type HostNetworkMockSendRequestInput
- type HostNetworkMockSendRequestResult
- type HostNetworkMockStartExpectation
- type HostNetworkMockStartInput
- type HostNetworkMockStopExpectation
- type NodeKeeperMock
- func (m *NodeKeeperMock) AddActiveNodes(p []core.Node)
- func (m *NodeKeeperMock) AddActiveNodesFinished() bool
- func (m *NodeKeeperMock) AddActiveNodesMinimockCounter() uint64
- func (m *NodeKeeperMock) AddActiveNodesMinimockPreCounter() uint64
- func (m *NodeKeeperMock) AddPendingClaim(p packets.ReferendumClaim) (r bool)
- func (m *NodeKeeperMock) AddPendingClaimFinished() bool
- func (m *NodeKeeperMock) AddPendingClaimMinimockCounter() uint64
- func (m *NodeKeeperMock) AddPendingClaimMinimockPreCounter() uint64
- func (m *NodeKeeperMock) AddTemporaryMapping(p core.RecordRef, p1 core.ShortNodeID, p2 string) (r error)
- func (m *NodeKeeperMock) AddTemporaryMappingFinished() bool
- func (m *NodeKeeperMock) AddTemporaryMappingMinimockCounter() uint64
- func (m *NodeKeeperMock) AddTemporaryMappingMinimockPreCounter() uint64
- func (m *NodeKeeperMock) AllMocksCalled() bool
- func (m *NodeKeeperMock) CheckMocksCalled()
- func (m *NodeKeeperMock) Finish()
- func (m *NodeKeeperMock) GetActiveNode(p core.RecordRef) (r core.Node)
- func (m *NodeKeeperMock) GetActiveNodeByShortID(p core.ShortNodeID) (r core.Node)
- func (m *NodeKeeperMock) GetActiveNodeByShortIDFinished() bool
- func (m *NodeKeeperMock) GetActiveNodeByShortIDMinimockCounter() uint64
- func (m *NodeKeeperMock) GetActiveNodeByShortIDMinimockPreCounter() uint64
- func (m *NodeKeeperMock) GetActiveNodeFinished() bool
- func (m *NodeKeeperMock) GetActiveNodeMinimockCounter() uint64
- func (m *NodeKeeperMock) GetActiveNodeMinimockPreCounter() uint64
- func (m *NodeKeeperMock) GetActiveNodes() (r []core.Node)
- func (m *NodeKeeperMock) GetActiveNodesFinished() bool
- func (m *NodeKeeperMock) GetActiveNodesMinimockCounter() uint64
- func (m *NodeKeeperMock) GetActiveNodesMinimockPreCounter() uint64
- func (m *NodeKeeperMock) GetClaimQueue() (r network.ClaimQueue)
- func (m *NodeKeeperMock) GetClaimQueueFinished() bool
- func (m *NodeKeeperMock) GetClaimQueueMinimockCounter() uint64
- func (m *NodeKeeperMock) GetClaimQueueMinimockPreCounter() uint64
- func (m *NodeKeeperMock) GetCloudHash() (r []byte)
- func (m *NodeKeeperMock) GetCloudHashFinished() bool
- func (m *NodeKeeperMock) GetCloudHashMinimockCounter() uint64
- func (m *NodeKeeperMock) GetCloudHashMinimockPreCounter() uint64
- func (m *NodeKeeperMock) GetOrigin() (r core.Node)
- func (m *NodeKeeperMock) GetOriginAnnounceClaim(p packets.BitSetMapper) (r *packets.NodeAnnounceClaim, r1 error)
- func (m *NodeKeeperMock) GetOriginAnnounceClaimFinished() bool
- func (m *NodeKeeperMock) GetOriginAnnounceClaimMinimockCounter() uint64
- func (m *NodeKeeperMock) GetOriginAnnounceClaimMinimockPreCounter() uint64
- func (m *NodeKeeperMock) GetOriginFinished() bool
- func (m *NodeKeeperMock) GetOriginJoinClaim() (r *packets.NodeJoinClaim, r1 error)
- func (m *NodeKeeperMock) GetOriginJoinClaimFinished() bool
- func (m *NodeKeeperMock) GetOriginJoinClaimMinimockCounter() uint64
- func (m *NodeKeeperMock) GetOriginJoinClaimMinimockPreCounter() uint64
- func (m *NodeKeeperMock) GetOriginMinimockCounter() uint64
- func (m *NodeKeeperMock) GetOriginMinimockPreCounter() uint64
- func (m *NodeKeeperMock) GetSparseUnsyncList(p int) (r network.UnsyncList)
- func (m *NodeKeeperMock) GetSparseUnsyncListFinished() bool
- func (m *NodeKeeperMock) GetSparseUnsyncListMinimockCounter() uint64
- func (m *NodeKeeperMock) GetSparseUnsyncListMinimockPreCounter() uint64
- func (m *NodeKeeperMock) GetState() (r core.NodeNetworkState)
- func (m *NodeKeeperMock) GetStateFinished() bool
- func (m *NodeKeeperMock) GetStateMinimockCounter() uint64
- func (m *NodeKeeperMock) GetStateMinimockPreCounter() uint64
- func (m *NodeKeeperMock) GetUnsyncList() (r network.UnsyncList)
- func (m *NodeKeeperMock) GetUnsyncListFinished() bool
- func (m *NodeKeeperMock) GetUnsyncListMinimockCounter() uint64
- func (m *NodeKeeperMock) GetUnsyncListMinimockPreCounter() uint64
- func (m *NodeKeeperMock) GetWorkingNode(p core.RecordRef) (r core.Node)
- func (m *NodeKeeperMock) GetWorkingNodeFinished() bool
- func (m *NodeKeeperMock) GetWorkingNodeMinimockCounter() uint64
- func (m *NodeKeeperMock) GetWorkingNodeMinimockPreCounter() uint64
- func (m *NodeKeeperMock) GetWorkingNodes() (r []core.Node)
- func (m *NodeKeeperMock) GetWorkingNodesByRole(p core.DynamicRole) (r []core.RecordRef)
- func (m *NodeKeeperMock) GetWorkingNodesByRoleFinished() bool
- func (m *NodeKeeperMock) GetWorkingNodesByRoleMinimockCounter() uint64
- func (m *NodeKeeperMock) GetWorkingNodesByRoleMinimockPreCounter() uint64
- func (m *NodeKeeperMock) GetWorkingNodesFinished() bool
- func (m *NodeKeeperMock) GetWorkingNodesMinimockCounter() uint64
- func (m *NodeKeeperMock) GetWorkingNodesMinimockPreCounter() uint64
- func (m *NodeKeeperMock) IsBootstrapped() (r bool)
- func (m *NodeKeeperMock) IsBootstrappedFinished() bool
- func (m *NodeKeeperMock) IsBootstrappedMinimockCounter() uint64
- func (m *NodeKeeperMock) IsBootstrappedMinimockPreCounter() uint64
- func (m *NodeKeeperMock) MinimockFinish()
- func (m *NodeKeeperMock) MinimockWait(timeout time.Duration)
- func (m *NodeKeeperMock) MoveSyncToActive(p context.Context) (r error)
- func (m *NodeKeeperMock) MoveSyncToActiveFinished() bool
- func (m *NodeKeeperMock) MoveSyncToActiveMinimockCounter() uint64
- func (m *NodeKeeperMock) MoveSyncToActiveMinimockPreCounter() uint64
- func (m *NodeKeeperMock) NodesJoinedDuringPreviousPulse() (r bool)
- func (m *NodeKeeperMock) NodesJoinedDuringPreviousPulseFinished() bool
- func (m *NodeKeeperMock) NodesJoinedDuringPreviousPulseMinimockCounter() uint64
- func (m *NodeKeeperMock) NodesJoinedDuringPreviousPulseMinimockPreCounter() uint64
- func (m *NodeKeeperMock) ResolveConsensus(p core.ShortNodeID) (r *host.Host)
- func (m *NodeKeeperMock) ResolveConsensusFinished() bool
- func (m *NodeKeeperMock) ResolveConsensusMinimockCounter() uint64
- func (m *NodeKeeperMock) ResolveConsensusMinimockPreCounter() uint64
- func (m *NodeKeeperMock) ResolveConsensusRef(p core.RecordRef) (r *host.Host)
- func (m *NodeKeeperMock) ResolveConsensusRefFinished() bool
- func (m *NodeKeeperMock) ResolveConsensusRefMinimockCounter() uint64
- func (m *NodeKeeperMock) ResolveConsensusRefMinimockPreCounter() uint64
- func (m *NodeKeeperMock) SetCloudHash(p []byte)
- func (m *NodeKeeperMock) SetCloudHashFinished() bool
- func (m *NodeKeeperMock) SetCloudHashMinimockCounter() uint64
- func (m *NodeKeeperMock) SetCloudHashMinimockPreCounter() uint64
- func (m *NodeKeeperMock) SetIsBootstrapped(p bool)
- func (m *NodeKeeperMock) SetIsBootstrappedFinished() bool
- func (m *NodeKeeperMock) SetIsBootstrappedMinimockCounter() uint64
- func (m *NodeKeeperMock) SetIsBootstrappedMinimockPreCounter() uint64
- func (m *NodeKeeperMock) SetState(p core.NodeNetworkState)
- func (m *NodeKeeperMock) SetStateFinished() bool
- func (m *NodeKeeperMock) SetStateMinimockCounter() uint64
- func (m *NodeKeeperMock) SetStateMinimockPreCounter() uint64
- func (m *NodeKeeperMock) Sync(p network.UnsyncList)
- func (m *NodeKeeperMock) SyncFinished() bool
- func (m *NodeKeeperMock) SyncMinimockCounter() uint64
- func (m *NodeKeeperMock) SyncMinimockPreCounter() uint64
- func (m *NodeKeeperMock) ValidateCallCounters()
- func (m *NodeKeeperMock) Wait(timeout time.Duration)
- type NodeKeeperMockAddActiveNodesExpectation
- type NodeKeeperMockAddActiveNodesInput
- type NodeKeeperMockAddPendingClaimExpectation
- type NodeKeeperMockAddPendingClaimInput
- type NodeKeeperMockAddPendingClaimResult
- type NodeKeeperMockAddTemporaryMappingExpectation
- type NodeKeeperMockAddTemporaryMappingInput
- type NodeKeeperMockAddTemporaryMappingResult
- type NodeKeeperMockGetActiveNodeByShortIDExpectation
- type NodeKeeperMockGetActiveNodeByShortIDInput
- type NodeKeeperMockGetActiveNodeByShortIDResult
- type NodeKeeperMockGetActiveNodeExpectation
- type NodeKeeperMockGetActiveNodeInput
- type NodeKeeperMockGetActiveNodeResult
- type NodeKeeperMockGetActiveNodesExpectation
- type NodeKeeperMockGetActiveNodesResult
- type NodeKeeperMockGetClaimQueueExpectation
- type NodeKeeperMockGetClaimQueueResult
- type NodeKeeperMockGetCloudHashExpectation
- type NodeKeeperMockGetCloudHashResult
- type NodeKeeperMockGetOriginAnnounceClaimExpectation
- type NodeKeeperMockGetOriginAnnounceClaimInput
- type NodeKeeperMockGetOriginAnnounceClaimResult
- type NodeKeeperMockGetOriginExpectation
- type NodeKeeperMockGetOriginJoinClaimExpectation
- type NodeKeeperMockGetOriginJoinClaimResult
- type NodeKeeperMockGetOriginResult
- type NodeKeeperMockGetSparseUnsyncListExpectation
- type NodeKeeperMockGetSparseUnsyncListInput
- type NodeKeeperMockGetSparseUnsyncListResult
- type NodeKeeperMockGetStateExpectation
- type NodeKeeperMockGetStateResult
- type NodeKeeperMockGetUnsyncListExpectation
- type NodeKeeperMockGetUnsyncListResult
- type NodeKeeperMockGetWorkingNodeExpectation
- type NodeKeeperMockGetWorkingNodeInput
- type NodeKeeperMockGetWorkingNodeResult
- type NodeKeeperMockGetWorkingNodesByRoleExpectation
- type NodeKeeperMockGetWorkingNodesByRoleInput
- type NodeKeeperMockGetWorkingNodesByRoleResult
- type NodeKeeperMockGetWorkingNodesExpectation
- type NodeKeeperMockGetWorkingNodesResult
- type NodeKeeperMockIsBootstrappedExpectation
- type NodeKeeperMockIsBootstrappedResult
- type NodeKeeperMockMoveSyncToActiveExpectation
- type NodeKeeperMockMoveSyncToActiveInput
- type NodeKeeperMockMoveSyncToActiveResult
- type NodeKeeperMockNodesJoinedDuringPreviousPulseExpectation
- type NodeKeeperMockNodesJoinedDuringPreviousPulseResult
- type NodeKeeperMockResolveConsensusExpectation
- type NodeKeeperMockResolveConsensusInput
- type NodeKeeperMockResolveConsensusRefExpectation
- type NodeKeeperMockResolveConsensusRefInput
- type NodeKeeperMockResolveConsensusRefResult
- type NodeKeeperMockResolveConsensusResult
- type NodeKeeperMockSetCloudHashExpectation
- type NodeKeeperMockSetCloudHashInput
- type NodeKeeperMockSetIsBootstrappedExpectation
- type NodeKeeperMockSetIsBootstrappedInput
- type NodeKeeperMockSetStateExpectation
- type NodeKeeperMockSetStateInput
- type NodeKeeperMockSyncExpectation
- type NodeKeeperMockSyncInput
- type NodeMock
- func (m *NodeMock) Address() (r string)
- func (m *NodeMock) AddressFinished() bool
- func (m *NodeMock) AddressMinimockCounter() uint64
- func (m *NodeMock) AddressMinimockPreCounter() uint64
- func (m *NodeMock) AllMocksCalled() bool
- func (m *NodeMock) CheckMocksCalled()
- func (m *NodeMock) ConsensusAddress() (r string)
- func (m *NodeMock) ConsensusAddressFinished() bool
- func (m *NodeMock) ConsensusAddressMinimockCounter() uint64
- func (m *NodeMock) ConsensusAddressMinimockPreCounter() uint64
- func (m *NodeMock) Finish()
- func (m *NodeMock) GetGlobuleID() (r core.GlobuleID)
- func (m *NodeMock) GetGlobuleIDFinished() bool
- func (m *NodeMock) GetGlobuleIDMinimockCounter() uint64
- func (m *NodeMock) GetGlobuleIDMinimockPreCounter() uint64
- func (m *NodeMock) GetState() (r core.NodeState)
- func (m *NodeMock) GetStateFinished() bool
- func (m *NodeMock) GetStateMinimockCounter() uint64
- func (m *NodeMock) GetStateMinimockPreCounter() uint64
- func (m *NodeMock) ID() (r core.RecordRef)
- func (m *NodeMock) IDFinished() bool
- func (m *NodeMock) IDMinimockCounter() uint64
- func (m *NodeMock) IDMinimockPreCounter() uint64
- func (m *NodeMock) IsWorking() (r bool)
- func (m *NodeMock) IsWorkingFinished() bool
- func (m *NodeMock) IsWorkingMinimockCounter() uint64
- func (m *NodeMock) IsWorkingMinimockPreCounter() uint64
- func (m *NodeMock) Leaving() (r bool)
- func (m *NodeMock) LeavingETA() (r core.PulseNumber)
- func (m *NodeMock) LeavingETAFinished() bool
- func (m *NodeMock) LeavingETAMinimockCounter() uint64
- func (m *NodeMock) LeavingETAMinimockPreCounter() uint64
- func (m *NodeMock) LeavingFinished() bool
- func (m *NodeMock) LeavingMinimockCounter() uint64
- func (m *NodeMock) LeavingMinimockPreCounter() uint64
- func (m *NodeMock) MinimockFinish()
- func (m *NodeMock) MinimockWait(timeout time.Duration)
- func (m *NodeMock) PublicKey() (r crypto.PublicKey)
- func (m *NodeMock) PublicKeyFinished() bool
- func (m *NodeMock) PublicKeyMinimockCounter() uint64
- func (m *NodeMock) PublicKeyMinimockPreCounter() uint64
- func (m *NodeMock) Role() (r core.StaticRole)
- func (m *NodeMock) RoleFinished() bool
- func (m *NodeMock) RoleMinimockCounter() uint64
- func (m *NodeMock) RoleMinimockPreCounter() uint64
- func (m *NodeMock) ShortID() (r core.ShortNodeID)
- func (m *NodeMock) ShortIDFinished() bool
- func (m *NodeMock) ShortIDMinimockCounter() uint64
- func (m *NodeMock) ShortIDMinimockPreCounter() uint64
- func (m *NodeMock) ValidateCallCounters()
- func (m *NodeMock) Version() (r string)
- func (m *NodeMock) VersionFinished() bool
- func (m *NodeMock) VersionMinimockCounter() uint64
- func (m *NodeMock) VersionMinimockPreCounter() uint64
- func (m *NodeMock) Wait(timeout time.Duration)
- type NodeMockAddressExpectation
- type NodeMockAddressResult
- type NodeMockConsensusAddressExpectation
- type NodeMockConsensusAddressResult
- type NodeMockGetGlobuleIDExpectation
- type NodeMockGetGlobuleIDResult
- type NodeMockGetStateExpectation
- type NodeMockGetStateResult
- type NodeMockIDExpectation
- type NodeMockIDResult
- type NodeMockIsWorkingExpectation
- type NodeMockIsWorkingResult
- type NodeMockLeavingETAExpectation
- type NodeMockLeavingETAResult
- type NodeMockLeavingExpectation
- type NodeMockLeavingResult
- type NodeMockPublicKeyExpectation
- type NodeMockPublicKeyResult
- type NodeMockRoleExpectation
- type NodeMockRoleResult
- type NodeMockShortIDExpectation
- type NodeMockShortIDResult
- type NodeMockVersionExpectation
- type NodeMockVersionResult
- type NodeNetworkMock
- func (m *NodeNetworkMock) AllMocksCalled() bool
- func (m *NodeNetworkMock) CheckMocksCalled()
- func (m *NodeNetworkMock) Finish()
- func (m *NodeNetworkMock) GetOrigin() (r core.Node)
- func (m *NodeNetworkMock) GetOriginFinished() bool
- func (m *NodeNetworkMock) GetOriginMinimockCounter() uint64
- func (m *NodeNetworkMock) GetOriginMinimockPreCounter() uint64
- func (m *NodeNetworkMock) GetState() (r core.NodeNetworkState)
- func (m *NodeNetworkMock) GetStateFinished() bool
- func (m *NodeNetworkMock) GetStateMinimockCounter() uint64
- func (m *NodeNetworkMock) GetStateMinimockPreCounter() uint64
- func (m *NodeNetworkMock) GetWorkingNode(p core.RecordRef) (r core.Node)
- func (m *NodeNetworkMock) GetWorkingNodeFinished() bool
- func (m *NodeNetworkMock) GetWorkingNodeMinimockCounter() uint64
- func (m *NodeNetworkMock) GetWorkingNodeMinimockPreCounter() uint64
- func (m *NodeNetworkMock) GetWorkingNodes() (r []core.Node)
- func (m *NodeNetworkMock) GetWorkingNodesByRole(p core.DynamicRole) (r []core.RecordRef)
- func (m *NodeNetworkMock) GetWorkingNodesByRoleFinished() bool
- func (m *NodeNetworkMock) GetWorkingNodesByRoleMinimockCounter() uint64
- func (m *NodeNetworkMock) GetWorkingNodesByRoleMinimockPreCounter() uint64
- func (m *NodeNetworkMock) GetWorkingNodesFinished() bool
- func (m *NodeNetworkMock) GetWorkingNodesMinimockCounter() uint64
- func (m *NodeNetworkMock) GetWorkingNodesMinimockPreCounter() uint64
- func (m *NodeNetworkMock) MinimockFinish()
- func (m *NodeNetworkMock) MinimockWait(timeout time.Duration)
- func (m *NodeNetworkMock) ValidateCallCounters()
- func (m *NodeNetworkMock) Wait(timeout time.Duration)
- type NodeNetworkMockGetOriginExpectation
- type NodeNetworkMockGetOriginResult
- type NodeNetworkMockGetStateExpectation
- type NodeNetworkMockGetStateResult
- type NodeNetworkMockGetWorkingNodeExpectation
- type NodeNetworkMockGetWorkingNodeInput
- type NodeNetworkMockGetWorkingNodeResult
- type NodeNetworkMockGetWorkingNodesByRoleExpectation
- type NodeNetworkMockGetWorkingNodesByRoleInput
- type NodeNetworkMockGetWorkingNodesByRoleResult
- type NodeNetworkMockGetWorkingNodesExpectation
- type NodeNetworkMockGetWorkingNodesResult
- type PulseHandlerMock
- func (m *PulseHandlerMock) AllMocksCalled() bool
- func (m *PulseHandlerMock) CheckMocksCalled()
- func (m *PulseHandlerMock) Finish()
- func (m *PulseHandlerMock) HandlePulse(p context.Context, p1 core.Pulse)
- func (m *PulseHandlerMock) HandlePulseFinished() bool
- func (m *PulseHandlerMock) HandlePulseMinimockCounter() uint64
- func (m *PulseHandlerMock) HandlePulseMinimockPreCounter() uint64
- func (m *PulseHandlerMock) MinimockFinish()
- func (m *PulseHandlerMock) MinimockWait(timeout time.Duration)
- func (m *PulseHandlerMock) ValidateCallCounters()
- func (m *PulseHandlerMock) Wait(timeout time.Duration)
- type PulseHandlerMockHandlePulseExpectation
- type PulseHandlerMockHandlePulseInput
- type SwitcherWorkAroundMock
- func (m *SwitcherWorkAroundMock) AllMocksCalled() bool
- func (m *SwitcherWorkAroundMock) CheckMocksCalled()
- func (m *SwitcherWorkAroundMock) Finish()
- func (m *SwitcherWorkAroundMock) IsBootstrapped() (r bool)
- func (m *SwitcherWorkAroundMock) IsBootstrappedFinished() bool
- func (m *SwitcherWorkAroundMock) IsBootstrappedMinimockCounter() uint64
- func (m *SwitcherWorkAroundMock) IsBootstrappedMinimockPreCounter() uint64
- func (m *SwitcherWorkAroundMock) MinimockFinish()
- func (m *SwitcherWorkAroundMock) MinimockWait(timeout time.Duration)
- func (m *SwitcherWorkAroundMock) SetIsBootstrapped(p bool)
- func (m *SwitcherWorkAroundMock) SetIsBootstrappedFinished() bool
- func (m *SwitcherWorkAroundMock) SetIsBootstrappedMinimockCounter() uint64
- func (m *SwitcherWorkAroundMock) SetIsBootstrappedMinimockPreCounter() uint64
- func (m *SwitcherWorkAroundMock) ValidateCallCounters()
- func (m *SwitcherWorkAroundMock) Wait(timeout time.Duration)
- type SwitcherWorkAroundMockIsBootstrappedExpectation
- type SwitcherWorkAroundMockIsBootstrappedResult
- type SwitcherWorkAroundMockSetIsBootstrappedExpectation
- type SwitcherWorkAroundMockSetIsBootstrappedInput
- type UnsyncListMock
- func (m *UnsyncListMock) AddClaims(p map[core.RecordRef][]packets.ReferendumClaim) (r error)
- func (m *UnsyncListMock) AddClaimsFinished() bool
- func (m *UnsyncListMock) AddClaimsMinimockCounter() uint64
- func (m *UnsyncListMock) AddClaimsMinimockPreCounter() uint64
- func (m *UnsyncListMock) AddNode(p core.Node, p1 uint16)
- func (m *UnsyncListMock) AddNodeFinished() bool
- func (m *UnsyncListMock) AddNodeMinimockCounter() uint64
- func (m *UnsyncListMock) AddNodeMinimockPreCounter() uint64
- func (m *UnsyncListMock) AddProof(p core.RecordRef, p1 *packets.NodePulseProof)
- func (m *UnsyncListMock) AddProofFinished() bool
- func (m *UnsyncListMock) AddProofMinimockCounter() uint64
- func (m *UnsyncListMock) AddProofMinimockPreCounter() uint64
- func (m *UnsyncListMock) AllMocksCalled() bool
- func (m *UnsyncListMock) ApproveSync(p []core.RecordRef)
- func (m *UnsyncListMock) ApproveSyncFinished() bool
- func (m *UnsyncListMock) ApproveSyncMinimockCounter() uint64
- func (m *UnsyncListMock) ApproveSyncMinimockPreCounter() uint64
- func (m *UnsyncListMock) CalculateHash(p core.PlatformCryptographyScheme) (r []byte, r1 error)
- func (m *UnsyncListMock) CalculateHashFinished() bool
- func (m *UnsyncListMock) CalculateHashMinimockCounter() uint64
- func (m *UnsyncListMock) CalculateHashMinimockPreCounter() uint64
- func (m *UnsyncListMock) CheckMocksCalled()
- func (m *UnsyncListMock) Finish()
- func (m *UnsyncListMock) GetActiveNode(p core.RecordRef) (r core.Node)
- func (m *UnsyncListMock) GetActiveNodeFinished() bool
- func (m *UnsyncListMock) GetActiveNodeMinimockCounter() uint64
- func (m *UnsyncListMock) GetActiveNodeMinimockPreCounter() uint64
- func (m *UnsyncListMock) GetActiveNodes() (r []core.Node)
- func (m *UnsyncListMock) GetActiveNodesFinished() bool
- func (m *UnsyncListMock) GetActiveNodesMinimockCounter() uint64
- func (m *UnsyncListMock) GetActiveNodesMinimockPreCounter() uint64
- func (m *UnsyncListMock) GetClaims(p core.RecordRef) (r []packets.ReferendumClaim)
- func (m *UnsyncListMock) GetClaimsFinished() bool
- func (m *UnsyncListMock) GetClaimsMinimockCounter() uint64
- func (m *UnsyncListMock) GetClaimsMinimockPreCounter() uint64
- func (m *UnsyncListMock) GetGlobuleHashSignature(p core.RecordRef) (r packets.GlobuleHashSignature, r1 bool)
- func (m *UnsyncListMock) GetGlobuleHashSignatureFinished() bool
- func (m *UnsyncListMock) GetGlobuleHashSignatureMinimockCounter() uint64
- func (m *UnsyncListMock) GetGlobuleHashSignatureMinimockPreCounter() uint64
- func (m *UnsyncListMock) GetMergedCopy() (r *network.MergedListCopy, r1 error)
- func (m *UnsyncListMock) GetMergedCopyFinished() bool
- func (m *UnsyncListMock) GetMergedCopyMinimockCounter() uint64
- func (m *UnsyncListMock) GetMergedCopyMinimockPreCounter() uint64
- func (m *UnsyncListMock) GetProof(p core.RecordRef) (r *packets.NodePulseProof)
- func (m *UnsyncListMock) GetProofFinished() bool
- func (m *UnsyncListMock) GetProofMinimockCounter() uint64
- func (m *UnsyncListMock) GetProofMinimockPreCounter() uint64
- func (m *UnsyncListMock) IndexToRef(p int) (r core.RecordRef, r1 error)
- func (m *UnsyncListMock) IndexToRefFinished() bool
- func (m *UnsyncListMock) IndexToRefMinimockCounter() uint64
- func (m *UnsyncListMock) IndexToRefMinimockPreCounter() uint64
- func (m *UnsyncListMock) Length() (r int)
- func (m *UnsyncListMock) LengthFinished() bool
- func (m *UnsyncListMock) LengthMinimockCounter() uint64
- func (m *UnsyncListMock) LengthMinimockPreCounter() uint64
- func (m *UnsyncListMock) MinimockFinish()
- func (m *UnsyncListMock) MinimockWait(timeout time.Duration)
- func (m *UnsyncListMock) RefToIndex(p core.RecordRef) (r int, r1 error)
- func (m *UnsyncListMock) RefToIndexFinished() bool
- func (m *UnsyncListMock) RefToIndexMinimockCounter() uint64
- func (m *UnsyncListMock) RefToIndexMinimockPreCounter() uint64
- func (m *UnsyncListMock) RemoveNode(p core.RecordRef)
- func (m *UnsyncListMock) RemoveNodeFinished() bool
- func (m *UnsyncListMock) RemoveNodeMinimockCounter() uint64
- func (m *UnsyncListMock) RemoveNodeMinimockPreCounter() uint64
- func (m *UnsyncListMock) SetGlobuleHashSignature(p core.RecordRef, p1 packets.GlobuleHashSignature)
- func (m *UnsyncListMock) SetGlobuleHashSignatureFinished() bool
- func (m *UnsyncListMock) SetGlobuleHashSignatureMinimockCounter() uint64
- func (m *UnsyncListMock) SetGlobuleHashSignatureMinimockPreCounter() uint64
- func (m *UnsyncListMock) ValidateCallCounters()
- func (m *UnsyncListMock) Wait(timeout time.Duration)
- type UnsyncListMockAddClaimsExpectation
- type UnsyncListMockAddClaimsInput
- type UnsyncListMockAddClaimsResult
- type UnsyncListMockAddNodeExpectation
- type UnsyncListMockAddNodeInput
- type UnsyncListMockAddProofExpectation
- type UnsyncListMockAddProofInput
- type UnsyncListMockApproveSyncExpectation
- type UnsyncListMockApproveSyncInput
- type UnsyncListMockCalculateHashExpectation
- type UnsyncListMockCalculateHashInput
- type UnsyncListMockCalculateHashResult
- type UnsyncListMockGetActiveNodeExpectation
- type UnsyncListMockGetActiveNodeInput
- type UnsyncListMockGetActiveNodeResult
- type UnsyncListMockGetActiveNodesExpectation
- type UnsyncListMockGetActiveNodesResult
- type UnsyncListMockGetClaimsExpectation
- type UnsyncListMockGetClaimsInput
- type UnsyncListMockGetClaimsResult
- type UnsyncListMockGetGlobuleHashSignatureExpectation
- type UnsyncListMockGetGlobuleHashSignatureInput
- type UnsyncListMockGetGlobuleHashSignatureResult
- type UnsyncListMockGetMergedCopyExpectation
- type UnsyncListMockGetMergedCopyResult
- type UnsyncListMockGetProofExpectation
- type UnsyncListMockGetProofInput
- type UnsyncListMockGetProofResult
- type UnsyncListMockIndexToRefExpectation
- type UnsyncListMockIndexToRefInput
- type UnsyncListMockIndexToRefResult
- type UnsyncListMockLengthExpectation
- type UnsyncListMockLengthResult
- type UnsyncListMockRefToIndexExpectation
- type UnsyncListMockRefToIndexInput
- type UnsyncListMockRefToIndexResult
- type UnsyncListMockRemoveNodeExpectation
- type UnsyncListMockRemoveNodeInput
- type UnsyncListMockSetGlobuleHashSignatureExpectation
- type UnsyncListMockSetGlobuleHashSignatureInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTestNetwork ¶
Types ¶
type ClaimQueueMock ¶ added in v0.6.3
type ClaimQueueMock struct { FrontFunc func() (r packets.ReferendumClaim) FrontCounter uint64 FrontPreCounter uint64 FrontMock mClaimQueueMockFront LengthFunc func() (r int) LengthCounter uint64 LengthPreCounter uint64 LengthMock mClaimQueueMockLength PopFunc func() (r packets.ReferendumClaim) PopCounter uint64 PopPreCounter uint64 PopMock mClaimQueueMockPop // contains filtered or unexported fields }
ClaimQueueMock implements github.com/insolar/insolar/network.ClaimQueue
func NewClaimQueueMock ¶ added in v0.6.3
func NewClaimQueueMock(t minimock.Tester) *ClaimQueueMock
NewClaimQueueMock returns a mock for github.com/insolar/insolar/network.ClaimQueue
func (*ClaimQueueMock) AllMocksCalled ¶ added in v0.6.3
func (m *ClaimQueueMock) AllMocksCalled() bool
AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())
func (*ClaimQueueMock) CheckMocksCalled ¶ added in v0.6.3
func (m *ClaimQueueMock) CheckMocksCalled()
CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*ClaimQueueMock) Finish ¶ added in v0.6.3
func (m *ClaimQueueMock) Finish()
Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller
func (*ClaimQueueMock) Front ¶ added in v0.6.3
func (m *ClaimQueueMock) Front() (r packets.ReferendumClaim)
Front implements github.com/insolar/insolar/network.ClaimQueue interface
func (*ClaimQueueMock) FrontFinished ¶ added in v0.7.5
func (m *ClaimQueueMock) FrontFinished() bool
FrontFinished returns true if mock invocations count is ok
func (*ClaimQueueMock) FrontMinimockCounter ¶ added in v0.6.3
func (m *ClaimQueueMock) FrontMinimockCounter() uint64
FrontMinimockCounter returns a count of ClaimQueueMock.FrontFunc invocations
func (*ClaimQueueMock) FrontMinimockPreCounter ¶ added in v0.6.3
func (m *ClaimQueueMock) FrontMinimockPreCounter() uint64
FrontMinimockPreCounter returns the value of ClaimQueueMock.Front invocations
func (*ClaimQueueMock) Length ¶ added in v0.6.3
func (m *ClaimQueueMock) Length() (r int)
Length implements github.com/insolar/insolar/network.ClaimQueue interface
func (*ClaimQueueMock) LengthFinished ¶ added in v0.7.5
func (m *ClaimQueueMock) LengthFinished() bool
LengthFinished returns true if mock invocations count is ok
func (*ClaimQueueMock) LengthMinimockCounter ¶ added in v0.6.3
func (m *ClaimQueueMock) LengthMinimockCounter() uint64
LengthMinimockCounter returns a count of ClaimQueueMock.LengthFunc invocations
func (*ClaimQueueMock) LengthMinimockPreCounter ¶ added in v0.6.3
func (m *ClaimQueueMock) LengthMinimockPreCounter() uint64
LengthMinimockPreCounter returns the value of ClaimQueueMock.Length invocations
func (*ClaimQueueMock) MinimockFinish ¶ added in v0.6.3
func (m *ClaimQueueMock) MinimockFinish()
MinimockFinish checks that all mocked methods of the interface have been called at least once
func (*ClaimQueueMock) MinimockWait ¶ added in v0.6.3
func (m *ClaimQueueMock) MinimockWait(timeout time.Duration)
MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller
func (*ClaimQueueMock) Pop ¶ added in v0.6.3
func (m *ClaimQueueMock) Pop() (r packets.ReferendumClaim)
Pop implements github.com/insolar/insolar/network.ClaimQueue interface
func (*ClaimQueueMock) PopFinished ¶ added in v0.7.5
func (m *ClaimQueueMock) PopFinished() bool
PopFinished returns true if mock invocations count is ok
func (*ClaimQueueMock) PopMinimockCounter ¶ added in v0.6.3
func (m *ClaimQueueMock) PopMinimockCounter() uint64
PopMinimockCounter returns a count of ClaimQueueMock.PopFunc invocations
func (*ClaimQueueMock) PopMinimockPreCounter ¶ added in v0.6.3
func (m *ClaimQueueMock) PopMinimockPreCounter() uint64
PopMinimockPreCounter returns the value of ClaimQueueMock.Pop invocations
func (*ClaimQueueMock) ValidateCallCounters ¶ added in v0.6.3
func (m *ClaimQueueMock) ValidateCallCounters()
ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*ClaimQueueMock) Wait ¶ added in v0.6.3
func (m *ClaimQueueMock) Wait(timeout time.Duration)
Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller
type ClaimQueueMockFrontExpectation ¶ added in v0.7.5
type ClaimQueueMockFrontExpectation struct {
// contains filtered or unexported fields
}
func (*ClaimQueueMockFrontExpectation) Return ¶ added in v0.7.5
func (e *ClaimQueueMockFrontExpectation) Return(r packets.ReferendumClaim)
type ClaimQueueMockFrontResult ¶ added in v0.7.5
type ClaimQueueMockFrontResult struct {
// contains filtered or unexported fields
}
type ClaimQueueMockLengthExpectation ¶ added in v0.7.5
type ClaimQueueMockLengthExpectation struct {
// contains filtered or unexported fields
}
func (*ClaimQueueMockLengthExpectation) Return ¶ added in v0.7.5
func (e *ClaimQueueMockLengthExpectation) Return(r int)
type ClaimQueueMockLengthResult ¶ added in v0.7.5
type ClaimQueueMockLengthResult struct {
// contains filtered or unexported fields
}
type ClaimQueueMockPopExpectation ¶ added in v0.7.5
type ClaimQueueMockPopExpectation struct {
// contains filtered or unexported fields
}
func (*ClaimQueueMockPopExpectation) Return ¶ added in v0.7.5
func (e *ClaimQueueMockPopExpectation) Return(r packets.ReferendumClaim)
type ClaimQueueMockPopResult ¶ added in v0.7.5
type ClaimQueueMockPopResult struct {
// contains filtered or unexported fields
}
type ConsensusNetworkMock ¶ added in v0.6.3
type ConsensusNetworkMock struct { GetNodeIDFunc func() (r core.RecordRef) GetNodeIDCounter uint64 GetNodeIDPreCounter uint64 GetNodeIDMock mConsensusNetworkMockGetNodeID PublicAddressFunc func() (r string) PublicAddressCounter uint64 PublicAddressPreCounter uint64 PublicAddressMock mConsensusNetworkMockPublicAddress RegisterPacketHandlerFunc func(p packets.PacketType, p1 network.ConsensusPacketHandler) RegisterPacketHandlerCounter uint64 RegisterPacketHandlerPreCounter uint64 RegisterPacketHandlerMock mConsensusNetworkMockRegisterPacketHandler SignAndSendPacketFunc func(p packets.ConsensusPacket, p1 core.RecordRef, p2 core.CryptographyService) (r error) SignAndSendPacketCounter uint64 SignAndSendPacketPreCounter uint64 SignAndSendPacketMock mConsensusNetworkMockSignAndSendPacket StartFunc func(p context.Context) (r error) StartCounter uint64 StartPreCounter uint64 StartMock mConsensusNetworkMockStart StopFunc func(p context.Context) (r error) StopCounter uint64 StopPreCounter uint64 StopMock mConsensusNetworkMockStop // contains filtered or unexported fields }
ConsensusNetworkMock implements github.com/insolar/insolar/network.ConsensusNetwork
func NewConsensusNetworkMock ¶ added in v0.6.3
func NewConsensusNetworkMock(t minimock.Tester) *ConsensusNetworkMock
NewConsensusNetworkMock returns a mock for github.com/insolar/insolar/network.ConsensusNetwork
func (*ConsensusNetworkMock) AllMocksCalled ¶ added in v0.6.3
func (m *ConsensusNetworkMock) AllMocksCalled() bool
AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())
func (*ConsensusNetworkMock) CheckMocksCalled ¶ added in v0.6.3
func (m *ConsensusNetworkMock) CheckMocksCalled()
CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*ConsensusNetworkMock) Finish ¶ added in v0.6.3
func (m *ConsensusNetworkMock) Finish()
Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller
func (*ConsensusNetworkMock) GetNodeID ¶ added in v0.6.3
func (m *ConsensusNetworkMock) GetNodeID() (r core.RecordRef)
GetNodeID implements github.com/insolar/insolar/network.ConsensusNetwork interface
func (*ConsensusNetworkMock) GetNodeIDFinished ¶ added in v0.7.5
func (m *ConsensusNetworkMock) GetNodeIDFinished() bool
GetNodeIDFinished returns true if mock invocations count is ok
func (*ConsensusNetworkMock) GetNodeIDMinimockCounter ¶ added in v0.6.3
func (m *ConsensusNetworkMock) GetNodeIDMinimockCounter() uint64
GetNodeIDMinimockCounter returns a count of ConsensusNetworkMock.GetNodeIDFunc invocations
func (*ConsensusNetworkMock) GetNodeIDMinimockPreCounter ¶ added in v0.6.3
func (m *ConsensusNetworkMock) GetNodeIDMinimockPreCounter() uint64
GetNodeIDMinimockPreCounter returns the value of ConsensusNetworkMock.GetNodeID invocations
func (*ConsensusNetworkMock) MinimockFinish ¶ added in v0.6.3
func (m *ConsensusNetworkMock) MinimockFinish()
MinimockFinish checks that all mocked methods of the interface have been called at least once
func (*ConsensusNetworkMock) MinimockWait ¶ added in v0.6.3
func (m *ConsensusNetworkMock) MinimockWait(timeout time.Duration)
MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller
func (*ConsensusNetworkMock) PublicAddress ¶ added in v0.6.3
func (m *ConsensusNetworkMock) PublicAddress() (r string)
PublicAddress implements github.com/insolar/insolar/network.ConsensusNetwork interface
func (*ConsensusNetworkMock) PublicAddressFinished ¶ added in v0.7.5
func (m *ConsensusNetworkMock) PublicAddressFinished() bool
PublicAddressFinished returns true if mock invocations count is ok
func (*ConsensusNetworkMock) PublicAddressMinimockCounter ¶ added in v0.6.3
func (m *ConsensusNetworkMock) PublicAddressMinimockCounter() uint64
PublicAddressMinimockCounter returns a count of ConsensusNetworkMock.PublicAddressFunc invocations
func (*ConsensusNetworkMock) PublicAddressMinimockPreCounter ¶ added in v0.6.3
func (m *ConsensusNetworkMock) PublicAddressMinimockPreCounter() uint64
PublicAddressMinimockPreCounter returns the value of ConsensusNetworkMock.PublicAddress invocations
func (*ConsensusNetworkMock) RegisterPacketHandler ¶ added in v0.8.0
func (m *ConsensusNetworkMock) RegisterPacketHandler(p packets.PacketType, p1 network.ConsensusPacketHandler)
RegisterPacketHandler implements github.com/insolar/insolar/network.ConsensusNetwork interface
func (*ConsensusNetworkMock) RegisterPacketHandlerFinished ¶ added in v0.8.0
func (m *ConsensusNetworkMock) RegisterPacketHandlerFinished() bool
RegisterPacketHandlerFinished returns true if mock invocations count is ok
func (*ConsensusNetworkMock) RegisterPacketHandlerMinimockCounter ¶ added in v0.8.0
func (m *ConsensusNetworkMock) RegisterPacketHandlerMinimockCounter() uint64
RegisterPacketHandlerMinimockCounter returns a count of ConsensusNetworkMock.RegisterPacketHandlerFunc invocations
func (*ConsensusNetworkMock) RegisterPacketHandlerMinimockPreCounter ¶ added in v0.8.0
func (m *ConsensusNetworkMock) RegisterPacketHandlerMinimockPreCounter() uint64
RegisterPacketHandlerMinimockPreCounter returns the value of ConsensusNetworkMock.RegisterPacketHandler invocations
func (*ConsensusNetworkMock) SignAndSendPacket ¶ added in v0.8.0
func (m *ConsensusNetworkMock) SignAndSendPacket(p packets.ConsensusPacket, p1 core.RecordRef, p2 core.CryptographyService) (r error)
SignAndSendPacket implements github.com/insolar/insolar/network.ConsensusNetwork interface
func (*ConsensusNetworkMock) SignAndSendPacketFinished ¶ added in v0.8.0
func (m *ConsensusNetworkMock) SignAndSendPacketFinished() bool
SignAndSendPacketFinished returns true if mock invocations count is ok
func (*ConsensusNetworkMock) SignAndSendPacketMinimockCounter ¶ added in v0.8.0
func (m *ConsensusNetworkMock) SignAndSendPacketMinimockCounter() uint64
SignAndSendPacketMinimockCounter returns a count of ConsensusNetworkMock.SignAndSendPacketFunc invocations
func (*ConsensusNetworkMock) SignAndSendPacketMinimockPreCounter ¶ added in v0.8.0
func (m *ConsensusNetworkMock) SignAndSendPacketMinimockPreCounter() uint64
SignAndSendPacketMinimockPreCounter returns the value of ConsensusNetworkMock.SignAndSendPacket invocations
func (*ConsensusNetworkMock) Start ¶ added in v0.6.3
func (m *ConsensusNetworkMock) Start(p context.Context) (r error)
Start implements github.com/insolar/insolar/network.ConsensusNetwork interface
func (*ConsensusNetworkMock) StartFinished ¶ added in v0.7.5
func (m *ConsensusNetworkMock) StartFinished() bool
StartFinished returns true if mock invocations count is ok
func (*ConsensusNetworkMock) StartMinimockCounter ¶ added in v0.6.3
func (m *ConsensusNetworkMock) StartMinimockCounter() uint64
StartMinimockCounter returns a count of ConsensusNetworkMock.StartFunc invocations
func (*ConsensusNetworkMock) StartMinimockPreCounter ¶ added in v0.6.3
func (m *ConsensusNetworkMock) StartMinimockPreCounter() uint64
StartMinimockPreCounter returns the value of ConsensusNetworkMock.Start invocations
func (*ConsensusNetworkMock) Stop ¶ added in v0.6.3
func (m *ConsensusNetworkMock) Stop(p context.Context) (r error)
Stop implements github.com/insolar/insolar/network.ConsensusNetwork interface
func (*ConsensusNetworkMock) StopFinished ¶ added in v0.7.5
func (m *ConsensusNetworkMock) StopFinished() bool
StopFinished returns true if mock invocations count is ok
func (*ConsensusNetworkMock) StopMinimockCounter ¶ added in v0.6.3
func (m *ConsensusNetworkMock) StopMinimockCounter() uint64
StopMinimockCounter returns a count of ConsensusNetworkMock.StopFunc invocations
func (*ConsensusNetworkMock) StopMinimockPreCounter ¶ added in v0.6.3
func (m *ConsensusNetworkMock) StopMinimockPreCounter() uint64
StopMinimockPreCounter returns the value of ConsensusNetworkMock.Stop invocations
func (*ConsensusNetworkMock) ValidateCallCounters ¶ added in v0.6.3
func (m *ConsensusNetworkMock) ValidateCallCounters()
ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*ConsensusNetworkMock) Wait ¶ added in v0.6.3
func (m *ConsensusNetworkMock) Wait(timeout time.Duration)
Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller
type ConsensusNetworkMockGetNodeIDExpectation ¶ added in v0.7.5
type ConsensusNetworkMockGetNodeIDExpectation struct {
// contains filtered or unexported fields
}
func (*ConsensusNetworkMockGetNodeIDExpectation) Return ¶ added in v0.7.5
func (e *ConsensusNetworkMockGetNodeIDExpectation) Return(r core.RecordRef)
type ConsensusNetworkMockGetNodeIDResult ¶ added in v0.7.5
type ConsensusNetworkMockGetNodeIDResult struct {
// contains filtered or unexported fields
}
type ConsensusNetworkMockPublicAddressExpectation ¶ added in v0.7.5
type ConsensusNetworkMockPublicAddressExpectation struct {
// contains filtered or unexported fields
}
func (*ConsensusNetworkMockPublicAddressExpectation) Return ¶ added in v0.7.5
func (e *ConsensusNetworkMockPublicAddressExpectation) Return(r string)
type ConsensusNetworkMockPublicAddressResult ¶ added in v0.7.5
type ConsensusNetworkMockPublicAddressResult struct {
// contains filtered or unexported fields
}
type ConsensusNetworkMockRegisterPacketHandlerExpectation ¶ added in v0.8.0
type ConsensusNetworkMockRegisterPacketHandlerExpectation struct {
// contains filtered or unexported fields
}
type ConsensusNetworkMockRegisterPacketHandlerInput ¶ added in v0.8.0
type ConsensusNetworkMockRegisterPacketHandlerInput struct {
// contains filtered or unexported fields
}
type ConsensusNetworkMockSignAndSendPacketExpectation ¶ added in v0.8.0
type ConsensusNetworkMockSignAndSendPacketExpectation struct {
// contains filtered or unexported fields
}
func (*ConsensusNetworkMockSignAndSendPacketExpectation) Return ¶ added in v0.8.0
func (e *ConsensusNetworkMockSignAndSendPacketExpectation) Return(r error)
type ConsensusNetworkMockSignAndSendPacketInput ¶ added in v0.8.0
type ConsensusNetworkMockSignAndSendPacketInput struct {
// contains filtered or unexported fields
}
type ConsensusNetworkMockSignAndSendPacketResult ¶ added in v0.8.0
type ConsensusNetworkMockSignAndSendPacketResult struct {
// contains filtered or unexported fields
}
type ConsensusNetworkMockStartExpectation ¶ added in v0.7.5
type ConsensusNetworkMockStartExpectation struct {
// contains filtered or unexported fields
}
func (*ConsensusNetworkMockStartExpectation) Return ¶ added in v0.8.0
func (e *ConsensusNetworkMockStartExpectation) Return(r error)
type ConsensusNetworkMockStartInput ¶ added in v0.7.5
type ConsensusNetworkMockStartInput struct {
// contains filtered or unexported fields
}
type ConsensusNetworkMockStartResult ¶ added in v0.8.0
type ConsensusNetworkMockStartResult struct {
// contains filtered or unexported fields
}
type ConsensusNetworkMockStopExpectation ¶ added in v0.7.5
type ConsensusNetworkMockStopExpectation struct {
// contains filtered or unexported fields
}
func (*ConsensusNetworkMockStopExpectation) Return ¶ added in v0.8.0
func (e *ConsensusNetworkMockStopExpectation) Return(r error)
type ConsensusNetworkMockStopInput ¶ added in v0.8.0
type ConsensusNetworkMockStopInput struct {
// contains filtered or unexported fields
}
type ConsensusNetworkMockStopResult ¶ added in v0.8.0
type ConsensusNetworkMockStopResult struct {
// contains filtered or unexported fields
}
type HostNetworkMock ¶ added in v0.6.3
type HostNetworkMock struct { BuildResponseFunc func(p context.Context, p1 network.Request, p2 interface{}) (r network.Response) BuildResponseCounter uint64 BuildResponsePreCounter uint64 BuildResponseMock mHostNetworkMockBuildResponse GetNodeIDFunc func() (r core.RecordRef) GetNodeIDCounter uint64 GetNodeIDPreCounter uint64 GetNodeIDMock mHostNetworkMockGetNodeID NewRequestBuilderFunc func() (r network.RequestBuilder) NewRequestBuilderCounter uint64 NewRequestBuilderPreCounter uint64 NewRequestBuilderMock mHostNetworkMockNewRequestBuilder PublicAddressFunc func() (r string) PublicAddressCounter uint64 PublicAddressPreCounter uint64 PublicAddressMock mHostNetworkMockPublicAddress RegisterRequestHandlerFunc func(p types.PacketType, p1 network.RequestHandler) RegisterRequestHandlerCounter uint64 RegisterRequestHandlerPreCounter uint64 RegisterRequestHandlerMock mHostNetworkMockRegisterRequestHandler SendRequestFunc func(p context.Context, p1 network.Request, p2 core.RecordRef) (r network.Future, r1 error) SendRequestCounter uint64 SendRequestPreCounter uint64 SendRequestMock mHostNetworkMockSendRequest StartFunc func(p context.Context) StartCounter uint64 StartPreCounter uint64 StartMock mHostNetworkMockStart StopFunc func() StopCounter uint64 StopPreCounter uint64 StopMock mHostNetworkMockStop // contains filtered or unexported fields }
HostNetworkMock implements github.com/insolar/insolar/network.HostNetwork
func NewHostNetworkMock ¶ added in v0.6.3
func NewHostNetworkMock(t minimock.Tester) *HostNetworkMock
NewHostNetworkMock returns a mock for github.com/insolar/insolar/network.HostNetwork
func (*HostNetworkMock) AllMocksCalled ¶ added in v0.6.3
func (m *HostNetworkMock) AllMocksCalled() bool
AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())
func (*HostNetworkMock) BuildResponse ¶ added in v0.6.3
func (m *HostNetworkMock) BuildResponse(p context.Context, p1 network.Request, p2 interface{}) (r network.Response)
BuildResponse implements github.com/insolar/insolar/network.HostNetwork interface
func (*HostNetworkMock) BuildResponseFinished ¶ added in v0.7.5
func (m *HostNetworkMock) BuildResponseFinished() bool
BuildResponseFinished returns true if mock invocations count is ok
func (*HostNetworkMock) BuildResponseMinimockCounter ¶ added in v0.6.3
func (m *HostNetworkMock) BuildResponseMinimockCounter() uint64
BuildResponseMinimockCounter returns a count of HostNetworkMock.BuildResponseFunc invocations
func (*HostNetworkMock) BuildResponseMinimockPreCounter ¶ added in v0.6.3
func (m *HostNetworkMock) BuildResponseMinimockPreCounter() uint64
BuildResponseMinimockPreCounter returns the value of HostNetworkMock.BuildResponse invocations
func (*HostNetworkMock) CheckMocksCalled ¶ added in v0.6.3
func (m *HostNetworkMock) CheckMocksCalled()
CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*HostNetworkMock) Finish ¶ added in v0.6.3
func (m *HostNetworkMock) Finish()
Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller
func (*HostNetworkMock) GetNodeID ¶ added in v0.6.3
func (m *HostNetworkMock) GetNodeID() (r core.RecordRef)
GetNodeID implements github.com/insolar/insolar/network.HostNetwork interface
func (*HostNetworkMock) GetNodeIDFinished ¶ added in v0.7.5
func (m *HostNetworkMock) GetNodeIDFinished() bool
GetNodeIDFinished returns true if mock invocations count is ok
func (*HostNetworkMock) GetNodeIDMinimockCounter ¶ added in v0.6.3
func (m *HostNetworkMock) GetNodeIDMinimockCounter() uint64
GetNodeIDMinimockCounter returns a count of HostNetworkMock.GetNodeIDFunc invocations
func (*HostNetworkMock) GetNodeIDMinimockPreCounter ¶ added in v0.6.3
func (m *HostNetworkMock) GetNodeIDMinimockPreCounter() uint64
GetNodeIDMinimockPreCounter returns the value of HostNetworkMock.GetNodeID invocations
func (*HostNetworkMock) MinimockFinish ¶ added in v0.6.3
func (m *HostNetworkMock) MinimockFinish()
MinimockFinish checks that all mocked methods of the interface have been called at least once
func (*HostNetworkMock) MinimockWait ¶ added in v0.6.3
func (m *HostNetworkMock) MinimockWait(timeout time.Duration)
MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller
func (*HostNetworkMock) NewRequestBuilder ¶ added in v0.6.3
func (m *HostNetworkMock) NewRequestBuilder() (r network.RequestBuilder)
NewRequestBuilder implements github.com/insolar/insolar/network.HostNetwork interface
func (*HostNetworkMock) NewRequestBuilderFinished ¶ added in v0.7.5
func (m *HostNetworkMock) NewRequestBuilderFinished() bool
NewRequestBuilderFinished returns true if mock invocations count is ok
func (*HostNetworkMock) NewRequestBuilderMinimockCounter ¶ added in v0.6.3
func (m *HostNetworkMock) NewRequestBuilderMinimockCounter() uint64
NewRequestBuilderMinimockCounter returns a count of HostNetworkMock.NewRequestBuilderFunc invocations
func (*HostNetworkMock) NewRequestBuilderMinimockPreCounter ¶ added in v0.6.3
func (m *HostNetworkMock) NewRequestBuilderMinimockPreCounter() uint64
NewRequestBuilderMinimockPreCounter returns the value of HostNetworkMock.NewRequestBuilder invocations
func (*HostNetworkMock) PublicAddress ¶ added in v0.6.3
func (m *HostNetworkMock) PublicAddress() (r string)
PublicAddress implements github.com/insolar/insolar/network.HostNetwork interface
func (*HostNetworkMock) PublicAddressFinished ¶ added in v0.7.5
func (m *HostNetworkMock) PublicAddressFinished() bool
PublicAddressFinished returns true if mock invocations count is ok
func (*HostNetworkMock) PublicAddressMinimockCounter ¶ added in v0.6.3
func (m *HostNetworkMock) PublicAddressMinimockCounter() uint64
PublicAddressMinimockCounter returns a count of HostNetworkMock.PublicAddressFunc invocations
func (*HostNetworkMock) PublicAddressMinimockPreCounter ¶ added in v0.6.3
func (m *HostNetworkMock) PublicAddressMinimockPreCounter() uint64
PublicAddressMinimockPreCounter returns the value of HostNetworkMock.PublicAddress invocations
func (*HostNetworkMock) RegisterRequestHandler ¶ added in v0.6.3
func (m *HostNetworkMock) RegisterRequestHandler(p types.PacketType, p1 network.RequestHandler)
RegisterRequestHandler implements github.com/insolar/insolar/network.HostNetwork interface
func (*HostNetworkMock) RegisterRequestHandlerFinished ¶ added in v0.7.5
func (m *HostNetworkMock) RegisterRequestHandlerFinished() bool
RegisterRequestHandlerFinished returns true if mock invocations count is ok
func (*HostNetworkMock) RegisterRequestHandlerMinimockCounter ¶ added in v0.6.3
func (m *HostNetworkMock) RegisterRequestHandlerMinimockCounter() uint64
RegisterRequestHandlerMinimockCounter returns a count of HostNetworkMock.RegisterRequestHandlerFunc invocations
func (*HostNetworkMock) RegisterRequestHandlerMinimockPreCounter ¶ added in v0.6.3
func (m *HostNetworkMock) RegisterRequestHandlerMinimockPreCounter() uint64
RegisterRequestHandlerMinimockPreCounter returns the value of HostNetworkMock.RegisterRequestHandler invocations
func (*HostNetworkMock) SendRequest ¶ added in v0.6.3
func (m *HostNetworkMock) SendRequest(p context.Context, p1 network.Request, p2 core.RecordRef) (r network.Future, r1 error)
SendRequest implements github.com/insolar/insolar/network.HostNetwork interface
func (*HostNetworkMock) SendRequestFinished ¶ added in v0.7.5
func (m *HostNetworkMock) SendRequestFinished() bool
SendRequestFinished returns true if mock invocations count is ok
func (*HostNetworkMock) SendRequestMinimockCounter ¶ added in v0.6.3
func (m *HostNetworkMock) SendRequestMinimockCounter() uint64
SendRequestMinimockCounter returns a count of HostNetworkMock.SendRequestFunc invocations
func (*HostNetworkMock) SendRequestMinimockPreCounter ¶ added in v0.6.3
func (m *HostNetworkMock) SendRequestMinimockPreCounter() uint64
SendRequestMinimockPreCounter returns the value of HostNetworkMock.SendRequest invocations
func (*HostNetworkMock) Start ¶ added in v0.6.3
func (m *HostNetworkMock) Start(p context.Context)
Start implements github.com/insolar/insolar/network.HostNetwork interface
func (*HostNetworkMock) StartFinished ¶ added in v0.7.5
func (m *HostNetworkMock) StartFinished() bool
StartFinished returns true if mock invocations count is ok
func (*HostNetworkMock) StartMinimockCounter ¶ added in v0.6.3
func (m *HostNetworkMock) StartMinimockCounter() uint64
StartMinimockCounter returns a count of HostNetworkMock.StartFunc invocations
func (*HostNetworkMock) StartMinimockPreCounter ¶ added in v0.6.3
func (m *HostNetworkMock) StartMinimockPreCounter() uint64
StartMinimockPreCounter returns the value of HostNetworkMock.Start invocations
func (*HostNetworkMock) Stop ¶ added in v0.6.3
func (m *HostNetworkMock) Stop()
Stop implements github.com/insolar/insolar/network.HostNetwork interface
func (*HostNetworkMock) StopFinished ¶ added in v0.7.5
func (m *HostNetworkMock) StopFinished() bool
StopFinished returns true if mock invocations count is ok
func (*HostNetworkMock) StopMinimockCounter ¶ added in v0.6.3
func (m *HostNetworkMock) StopMinimockCounter() uint64
StopMinimockCounter returns a count of HostNetworkMock.StopFunc invocations
func (*HostNetworkMock) StopMinimockPreCounter ¶ added in v0.6.3
func (m *HostNetworkMock) StopMinimockPreCounter() uint64
StopMinimockPreCounter returns the value of HostNetworkMock.Stop invocations
func (*HostNetworkMock) ValidateCallCounters ¶ added in v0.6.3
func (m *HostNetworkMock) ValidateCallCounters()
ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*HostNetworkMock) Wait ¶ added in v0.6.3
func (m *HostNetworkMock) Wait(timeout time.Duration)
Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller
type HostNetworkMockBuildResponseExpectation ¶ added in v0.7.5
type HostNetworkMockBuildResponseExpectation struct {
// contains filtered or unexported fields
}
func (*HostNetworkMockBuildResponseExpectation) Return ¶ added in v0.7.5
func (e *HostNetworkMockBuildResponseExpectation) Return(r network.Response)
type HostNetworkMockBuildResponseInput ¶ added in v0.7.5
type HostNetworkMockBuildResponseInput struct {
// contains filtered or unexported fields
}
type HostNetworkMockBuildResponseResult ¶ added in v0.7.5
type HostNetworkMockBuildResponseResult struct {
// contains filtered or unexported fields
}
type HostNetworkMockGetNodeIDExpectation ¶ added in v0.7.5
type HostNetworkMockGetNodeIDExpectation struct {
// contains filtered or unexported fields
}
func (*HostNetworkMockGetNodeIDExpectation) Return ¶ added in v0.7.5
func (e *HostNetworkMockGetNodeIDExpectation) Return(r core.RecordRef)
type HostNetworkMockGetNodeIDResult ¶ added in v0.7.5
type HostNetworkMockGetNodeIDResult struct {
// contains filtered or unexported fields
}
type HostNetworkMockNewRequestBuilderExpectation ¶ added in v0.7.5
type HostNetworkMockNewRequestBuilderExpectation struct {
// contains filtered or unexported fields
}
func (*HostNetworkMockNewRequestBuilderExpectation) Return ¶ added in v0.7.5
func (e *HostNetworkMockNewRequestBuilderExpectation) Return(r network.RequestBuilder)
type HostNetworkMockNewRequestBuilderResult ¶ added in v0.7.5
type HostNetworkMockNewRequestBuilderResult struct {
// contains filtered or unexported fields
}
type HostNetworkMockPublicAddressExpectation ¶ added in v0.7.5
type HostNetworkMockPublicAddressExpectation struct {
// contains filtered or unexported fields
}
func (*HostNetworkMockPublicAddressExpectation) Return ¶ added in v0.7.5
func (e *HostNetworkMockPublicAddressExpectation) Return(r string)
type HostNetworkMockPublicAddressResult ¶ added in v0.7.5
type HostNetworkMockPublicAddressResult struct {
// contains filtered or unexported fields
}
type HostNetworkMockRegisterRequestHandlerExpectation ¶ added in v0.7.5
type HostNetworkMockRegisterRequestHandlerExpectation struct {
// contains filtered or unexported fields
}
type HostNetworkMockRegisterRequestHandlerInput ¶ added in v0.7.5
type HostNetworkMockRegisterRequestHandlerInput struct {
// contains filtered or unexported fields
}
type HostNetworkMockSendRequestExpectation ¶ added in v0.7.5
type HostNetworkMockSendRequestExpectation struct {
// contains filtered or unexported fields
}
type HostNetworkMockSendRequestInput ¶ added in v0.7.5
type HostNetworkMockSendRequestInput struct {
// contains filtered or unexported fields
}
type HostNetworkMockSendRequestResult ¶ added in v0.7.5
type HostNetworkMockSendRequestResult struct {
// contains filtered or unexported fields
}
type HostNetworkMockStartExpectation ¶ added in v0.7.5
type HostNetworkMockStartExpectation struct {
// contains filtered or unexported fields
}
type HostNetworkMockStartInput ¶ added in v0.7.5
type HostNetworkMockStartInput struct {
// contains filtered or unexported fields
}
type HostNetworkMockStopExpectation ¶ added in v0.7.5
type HostNetworkMockStopExpectation struct { }
type NodeKeeperMock ¶ added in v0.6.3
type NodeKeeperMock struct { AddActiveNodesFunc func(p []core.Node) AddActiveNodesCounter uint64 AddActiveNodesPreCounter uint64 AddActiveNodesMock mNodeKeeperMockAddActiveNodes AddPendingClaimFunc func(p packets.ReferendumClaim) (r bool) AddPendingClaimCounter uint64 AddPendingClaimPreCounter uint64 AddPendingClaimMock mNodeKeeperMockAddPendingClaim AddTemporaryMappingFunc func(p core.RecordRef, p1 core.ShortNodeID, p2 string) (r error) AddTemporaryMappingCounter uint64 AddTemporaryMappingPreCounter uint64 AddTemporaryMappingMock mNodeKeeperMockAddTemporaryMapping GetActiveNodeFunc func(p core.RecordRef) (r core.Node) GetActiveNodeCounter uint64 GetActiveNodePreCounter uint64 GetActiveNodeMock mNodeKeeperMockGetActiveNode GetActiveNodeByShortIDFunc func(p core.ShortNodeID) (r core.Node) GetActiveNodeByShortIDCounter uint64 GetActiveNodeByShortIDPreCounter uint64 GetActiveNodeByShortIDMock mNodeKeeperMockGetActiveNodeByShortID GetActiveNodesFunc func() (r []core.Node) GetActiveNodesCounter uint64 GetActiveNodesPreCounter uint64 GetActiveNodesMock mNodeKeeperMockGetActiveNodes GetClaimQueueFunc func() (r network.ClaimQueue) GetClaimQueueCounter uint64 GetClaimQueuePreCounter uint64 GetClaimQueueMock mNodeKeeperMockGetClaimQueue GetCloudHashFunc func() (r []byte) GetCloudHashCounter uint64 GetCloudHashPreCounter uint64 GetCloudHashMock mNodeKeeperMockGetCloudHash GetOriginFunc func() (r core.Node) GetOriginCounter uint64 GetOriginPreCounter uint64 GetOriginMock mNodeKeeperMockGetOrigin GetOriginAnnounceClaimFunc func(p packets.BitSetMapper) (r *packets.NodeAnnounceClaim, r1 error) GetOriginAnnounceClaimCounter uint64 GetOriginAnnounceClaimPreCounter uint64 GetOriginAnnounceClaimMock mNodeKeeperMockGetOriginAnnounceClaim GetOriginJoinClaimFunc func() (r *packets.NodeJoinClaim, r1 error) GetOriginJoinClaimCounter uint64 GetOriginJoinClaimPreCounter uint64 GetOriginJoinClaimMock mNodeKeeperMockGetOriginJoinClaim GetSparseUnsyncListFunc func(p int) (r network.UnsyncList) GetSparseUnsyncListCounter uint64 GetSparseUnsyncListPreCounter uint64 GetSparseUnsyncListMock mNodeKeeperMockGetSparseUnsyncList GetStateFunc func() (r core.NodeNetworkState) GetStateCounter uint64 GetStatePreCounter uint64 GetStateMock mNodeKeeperMockGetState GetUnsyncListFunc func() (r network.UnsyncList) GetUnsyncListCounter uint64 GetUnsyncListPreCounter uint64 GetUnsyncListMock mNodeKeeperMockGetUnsyncList GetWorkingNodeFunc func(p core.RecordRef) (r core.Node) GetWorkingNodeCounter uint64 GetWorkingNodePreCounter uint64 GetWorkingNodeMock mNodeKeeperMockGetWorkingNode GetWorkingNodesFunc func() (r []core.Node) GetWorkingNodesCounter uint64 GetWorkingNodesPreCounter uint64 GetWorkingNodesMock mNodeKeeperMockGetWorkingNodes GetWorkingNodesByRoleFunc func(p core.DynamicRole) (r []core.RecordRef) GetWorkingNodesByRoleCounter uint64 GetWorkingNodesByRolePreCounter uint64 GetWorkingNodesByRoleMock mNodeKeeperMockGetWorkingNodesByRole IsBootstrappedFunc func() (r bool) IsBootstrappedCounter uint64 IsBootstrappedPreCounter uint64 IsBootstrappedMock mNodeKeeperMockIsBootstrapped MoveSyncToActiveFunc func(p context.Context) (r error) MoveSyncToActiveCounter uint64 MoveSyncToActivePreCounter uint64 MoveSyncToActiveMock mNodeKeeperMockMoveSyncToActive NodesJoinedDuringPreviousPulseFunc func() (r bool) NodesJoinedDuringPreviousPulseCounter uint64 NodesJoinedDuringPreviousPulsePreCounter uint64 NodesJoinedDuringPreviousPulseMock mNodeKeeperMockNodesJoinedDuringPreviousPulse ResolveConsensusFunc func(p core.ShortNodeID) (r *host.Host) ResolveConsensusCounter uint64 ResolveConsensusPreCounter uint64 ResolveConsensusMock mNodeKeeperMockResolveConsensus ResolveConsensusRefFunc func(p core.RecordRef) (r *host.Host) ResolveConsensusRefCounter uint64 ResolveConsensusRefPreCounter uint64 ResolveConsensusRefMock mNodeKeeperMockResolveConsensusRef SetCloudHashFunc func(p []byte) SetCloudHashCounter uint64 SetCloudHashPreCounter uint64 SetCloudHashMock mNodeKeeperMockSetCloudHash SetIsBootstrappedFunc func(p bool) SetIsBootstrappedCounter uint64 SetIsBootstrappedPreCounter uint64 SetIsBootstrappedMock mNodeKeeperMockSetIsBootstrapped SetStateFunc func(p core.NodeNetworkState) SetStateCounter uint64 SetStatePreCounter uint64 SetStateMock mNodeKeeperMockSetState SyncFunc func(p network.UnsyncList) SyncCounter uint64 SyncPreCounter uint64 SyncMock mNodeKeeperMockSync // contains filtered or unexported fields }
NodeKeeperMock implements github.com/insolar/insolar/network.NodeKeeper
func NewNodeKeeperMock ¶ added in v0.6.3
func NewNodeKeeperMock(t minimock.Tester) *NodeKeeperMock
NewNodeKeeperMock returns a mock for github.com/insolar/insolar/network.NodeKeeper
func (*NodeKeeperMock) AddActiveNodes ¶ added in v0.6.3
func (m *NodeKeeperMock) AddActiveNodes(p []core.Node)
AddActiveNodes implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) AddActiveNodesFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) AddActiveNodesFinished() bool
AddActiveNodesFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) AddActiveNodesMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) AddActiveNodesMinimockCounter() uint64
AddActiveNodesMinimockCounter returns a count of NodeKeeperMock.AddActiveNodesFunc invocations
func (*NodeKeeperMock) AddActiveNodesMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) AddActiveNodesMinimockPreCounter() uint64
AddActiveNodesMinimockPreCounter returns the value of NodeKeeperMock.AddActiveNodes invocations
func (*NodeKeeperMock) AddPendingClaim ¶ added in v0.6.3
func (m *NodeKeeperMock) AddPendingClaim(p packets.ReferendumClaim) (r bool)
AddPendingClaim implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) AddPendingClaimFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) AddPendingClaimFinished() bool
AddPendingClaimFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) AddPendingClaimMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) AddPendingClaimMinimockCounter() uint64
AddPendingClaimMinimockCounter returns a count of NodeKeeperMock.AddPendingClaimFunc invocations
func (*NodeKeeperMock) AddPendingClaimMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) AddPendingClaimMinimockPreCounter() uint64
AddPendingClaimMinimockPreCounter returns the value of NodeKeeperMock.AddPendingClaim invocations
func (*NodeKeeperMock) AddTemporaryMapping ¶ added in v0.8.0
func (m *NodeKeeperMock) AddTemporaryMapping(p core.RecordRef, p1 core.ShortNodeID, p2 string) (r error)
AddTemporaryMapping implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) AddTemporaryMappingFinished ¶ added in v0.8.0
func (m *NodeKeeperMock) AddTemporaryMappingFinished() bool
AddTemporaryMappingFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) AddTemporaryMappingMinimockCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) AddTemporaryMappingMinimockCounter() uint64
AddTemporaryMappingMinimockCounter returns a count of NodeKeeperMock.AddTemporaryMappingFunc invocations
func (*NodeKeeperMock) AddTemporaryMappingMinimockPreCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) AddTemporaryMappingMinimockPreCounter() uint64
AddTemporaryMappingMinimockPreCounter returns the value of NodeKeeperMock.AddTemporaryMapping invocations
func (*NodeKeeperMock) AllMocksCalled ¶ added in v0.6.3
func (m *NodeKeeperMock) AllMocksCalled() bool
AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())
func (*NodeKeeperMock) CheckMocksCalled ¶ added in v0.6.3
func (m *NodeKeeperMock) CheckMocksCalled()
CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*NodeKeeperMock) Finish ¶ added in v0.6.3
func (m *NodeKeeperMock) Finish()
Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller
func (*NodeKeeperMock) GetActiveNode ¶ added in v0.6.3
func (m *NodeKeeperMock) GetActiveNode(p core.RecordRef) (r core.Node)
GetActiveNode implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetActiveNodeByShortID ¶ added in v0.6.3
func (m *NodeKeeperMock) GetActiveNodeByShortID(p core.ShortNodeID) (r core.Node)
GetActiveNodeByShortID implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetActiveNodeByShortIDFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) GetActiveNodeByShortIDFinished() bool
GetActiveNodeByShortIDFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetActiveNodeByShortIDMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetActiveNodeByShortIDMinimockCounter() uint64
GetActiveNodeByShortIDMinimockCounter returns a count of NodeKeeperMock.GetActiveNodeByShortIDFunc invocations
func (*NodeKeeperMock) GetActiveNodeByShortIDMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetActiveNodeByShortIDMinimockPreCounter() uint64
GetActiveNodeByShortIDMinimockPreCounter returns the value of NodeKeeperMock.GetActiveNodeByShortID invocations
func (*NodeKeeperMock) GetActiveNodeFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) GetActiveNodeFinished() bool
GetActiveNodeFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetActiveNodeMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetActiveNodeMinimockCounter() uint64
GetActiveNodeMinimockCounter returns a count of NodeKeeperMock.GetActiveNodeFunc invocations
func (*NodeKeeperMock) GetActiveNodeMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetActiveNodeMinimockPreCounter() uint64
GetActiveNodeMinimockPreCounter returns the value of NodeKeeperMock.GetActiveNode invocations
func (*NodeKeeperMock) GetActiveNodes ¶ added in v0.6.3
func (m *NodeKeeperMock) GetActiveNodes() (r []core.Node)
GetActiveNodes implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetActiveNodesFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) GetActiveNodesFinished() bool
GetActiveNodesFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetActiveNodesMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetActiveNodesMinimockCounter() uint64
GetActiveNodesMinimockCounter returns a count of NodeKeeperMock.GetActiveNodesFunc invocations
func (*NodeKeeperMock) GetActiveNodesMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetActiveNodesMinimockPreCounter() uint64
GetActiveNodesMinimockPreCounter returns the value of NodeKeeperMock.GetActiveNodes invocations
func (*NodeKeeperMock) GetClaimQueue ¶ added in v0.6.3
func (m *NodeKeeperMock) GetClaimQueue() (r network.ClaimQueue)
GetClaimQueue implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetClaimQueueFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) GetClaimQueueFinished() bool
GetClaimQueueFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetClaimQueueMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetClaimQueueMinimockCounter() uint64
GetClaimQueueMinimockCounter returns a count of NodeKeeperMock.GetClaimQueueFunc invocations
func (*NodeKeeperMock) GetClaimQueueMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetClaimQueueMinimockPreCounter() uint64
GetClaimQueueMinimockPreCounter returns the value of NodeKeeperMock.GetClaimQueue invocations
func (*NodeKeeperMock) GetCloudHash ¶ added in v0.6.3
func (m *NodeKeeperMock) GetCloudHash() (r []byte)
GetCloudHash implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetCloudHashFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) GetCloudHashFinished() bool
GetCloudHashFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetCloudHashMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetCloudHashMinimockCounter() uint64
GetCloudHashMinimockCounter returns a count of NodeKeeperMock.GetCloudHashFunc invocations
func (*NodeKeeperMock) GetCloudHashMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetCloudHashMinimockPreCounter() uint64
GetCloudHashMinimockPreCounter returns the value of NodeKeeperMock.GetCloudHash invocations
func (*NodeKeeperMock) GetOrigin ¶ added in v0.6.3
func (m *NodeKeeperMock) GetOrigin() (r core.Node)
GetOrigin implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetOriginAnnounceClaim ¶ added in v0.8.0
func (m *NodeKeeperMock) GetOriginAnnounceClaim(p packets.BitSetMapper) (r *packets.NodeAnnounceClaim, r1 error)
GetOriginAnnounceClaim implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetOriginAnnounceClaimFinished ¶ added in v0.8.0
func (m *NodeKeeperMock) GetOriginAnnounceClaimFinished() bool
GetOriginAnnounceClaimFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetOriginAnnounceClaimMinimockCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) GetOriginAnnounceClaimMinimockCounter() uint64
GetOriginAnnounceClaimMinimockCounter returns a count of NodeKeeperMock.GetOriginAnnounceClaimFunc invocations
func (*NodeKeeperMock) GetOriginAnnounceClaimMinimockPreCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) GetOriginAnnounceClaimMinimockPreCounter() uint64
GetOriginAnnounceClaimMinimockPreCounter returns the value of NodeKeeperMock.GetOriginAnnounceClaim invocations
func (*NodeKeeperMock) GetOriginFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) GetOriginFinished() bool
GetOriginFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetOriginJoinClaim ¶ added in v0.8.0
func (m *NodeKeeperMock) GetOriginJoinClaim() (r *packets.NodeJoinClaim, r1 error)
GetOriginJoinClaim implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetOriginJoinClaimFinished ¶ added in v0.8.0
func (m *NodeKeeperMock) GetOriginJoinClaimFinished() bool
GetOriginJoinClaimFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetOriginJoinClaimMinimockCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) GetOriginJoinClaimMinimockCounter() uint64
GetOriginJoinClaimMinimockCounter returns a count of NodeKeeperMock.GetOriginJoinClaimFunc invocations
func (*NodeKeeperMock) GetOriginJoinClaimMinimockPreCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) GetOriginJoinClaimMinimockPreCounter() uint64
GetOriginJoinClaimMinimockPreCounter returns the value of NodeKeeperMock.GetOriginJoinClaim invocations
func (*NodeKeeperMock) GetOriginMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetOriginMinimockCounter() uint64
GetOriginMinimockCounter returns a count of NodeKeeperMock.GetOriginFunc invocations
func (*NodeKeeperMock) GetOriginMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetOriginMinimockPreCounter() uint64
GetOriginMinimockPreCounter returns the value of NodeKeeperMock.GetOrigin invocations
func (*NodeKeeperMock) GetSparseUnsyncList ¶ added in v0.6.3
func (m *NodeKeeperMock) GetSparseUnsyncList(p int) (r network.UnsyncList)
GetSparseUnsyncList implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetSparseUnsyncListFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) GetSparseUnsyncListFinished() bool
GetSparseUnsyncListFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetSparseUnsyncListMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetSparseUnsyncListMinimockCounter() uint64
GetSparseUnsyncListMinimockCounter returns a count of NodeKeeperMock.GetSparseUnsyncListFunc invocations
func (*NodeKeeperMock) GetSparseUnsyncListMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetSparseUnsyncListMinimockPreCounter() uint64
GetSparseUnsyncListMinimockPreCounter returns the value of NodeKeeperMock.GetSparseUnsyncList invocations
func (*NodeKeeperMock) GetState ¶ added in v0.6.3
func (m *NodeKeeperMock) GetState() (r core.NodeNetworkState)
GetState implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetStateFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) GetStateFinished() bool
GetStateFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetStateMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetStateMinimockCounter() uint64
GetStateMinimockCounter returns a count of NodeKeeperMock.GetStateFunc invocations
func (*NodeKeeperMock) GetStateMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetStateMinimockPreCounter() uint64
GetStateMinimockPreCounter returns the value of NodeKeeperMock.GetState invocations
func (*NodeKeeperMock) GetUnsyncList ¶ added in v0.6.3
func (m *NodeKeeperMock) GetUnsyncList() (r network.UnsyncList)
GetUnsyncList implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetUnsyncListFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) GetUnsyncListFinished() bool
GetUnsyncListFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetUnsyncListMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetUnsyncListMinimockCounter() uint64
GetUnsyncListMinimockCounter returns a count of NodeKeeperMock.GetUnsyncListFunc invocations
func (*NodeKeeperMock) GetUnsyncListMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) GetUnsyncListMinimockPreCounter() uint64
GetUnsyncListMinimockPreCounter returns the value of NodeKeeperMock.GetUnsyncList invocations
func (*NodeKeeperMock) GetWorkingNode ¶ added in v0.8.0
func (m *NodeKeeperMock) GetWorkingNode(p core.RecordRef) (r core.Node)
GetWorkingNode implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetWorkingNodeFinished ¶ added in v0.8.0
func (m *NodeKeeperMock) GetWorkingNodeFinished() bool
GetWorkingNodeFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetWorkingNodeMinimockCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) GetWorkingNodeMinimockCounter() uint64
GetWorkingNodeMinimockCounter returns a count of NodeKeeperMock.GetWorkingNodeFunc invocations
func (*NodeKeeperMock) GetWorkingNodeMinimockPreCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) GetWorkingNodeMinimockPreCounter() uint64
GetWorkingNodeMinimockPreCounter returns the value of NodeKeeperMock.GetWorkingNode invocations
func (*NodeKeeperMock) GetWorkingNodes ¶ added in v0.8.0
func (m *NodeKeeperMock) GetWorkingNodes() (r []core.Node)
GetWorkingNodes implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetWorkingNodesByRole ¶ added in v0.8.0
func (m *NodeKeeperMock) GetWorkingNodesByRole(p core.DynamicRole) (r []core.RecordRef)
GetWorkingNodesByRole implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) GetWorkingNodesByRoleFinished ¶ added in v0.8.0
func (m *NodeKeeperMock) GetWorkingNodesByRoleFinished() bool
GetWorkingNodesByRoleFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetWorkingNodesByRoleMinimockCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) GetWorkingNodesByRoleMinimockCounter() uint64
GetWorkingNodesByRoleMinimockCounter returns a count of NodeKeeperMock.GetWorkingNodesByRoleFunc invocations
func (*NodeKeeperMock) GetWorkingNodesByRoleMinimockPreCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) GetWorkingNodesByRoleMinimockPreCounter() uint64
GetWorkingNodesByRoleMinimockPreCounter returns the value of NodeKeeperMock.GetWorkingNodesByRole invocations
func (*NodeKeeperMock) GetWorkingNodesFinished ¶ added in v0.8.0
func (m *NodeKeeperMock) GetWorkingNodesFinished() bool
GetWorkingNodesFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) GetWorkingNodesMinimockCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) GetWorkingNodesMinimockCounter() uint64
GetWorkingNodesMinimockCounter returns a count of NodeKeeperMock.GetWorkingNodesFunc invocations
func (*NodeKeeperMock) GetWorkingNodesMinimockPreCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) GetWorkingNodesMinimockPreCounter() uint64
GetWorkingNodesMinimockPreCounter returns the value of NodeKeeperMock.GetWorkingNodes invocations
func (*NodeKeeperMock) IsBootstrapped ¶ added in v0.7.5
func (m *NodeKeeperMock) IsBootstrapped() (r bool)
IsBootstrapped implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) IsBootstrappedFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) IsBootstrappedFinished() bool
IsBootstrappedFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) IsBootstrappedMinimockCounter ¶ added in v0.7.5
func (m *NodeKeeperMock) IsBootstrappedMinimockCounter() uint64
IsBootstrappedMinimockCounter returns a count of NodeKeeperMock.IsBootstrappedFunc invocations
func (*NodeKeeperMock) IsBootstrappedMinimockPreCounter ¶ added in v0.7.5
func (m *NodeKeeperMock) IsBootstrappedMinimockPreCounter() uint64
IsBootstrappedMinimockPreCounter returns the value of NodeKeeperMock.IsBootstrapped invocations
func (*NodeKeeperMock) MinimockFinish ¶ added in v0.6.3
func (m *NodeKeeperMock) MinimockFinish()
MinimockFinish checks that all mocked methods of the interface have been called at least once
func (*NodeKeeperMock) MinimockWait ¶ added in v0.6.3
func (m *NodeKeeperMock) MinimockWait(timeout time.Duration)
MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller
func (*NodeKeeperMock) MoveSyncToActive ¶ added in v0.6.3
func (m *NodeKeeperMock) MoveSyncToActive(p context.Context) (r error)
MoveSyncToActive implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) MoveSyncToActiveFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) MoveSyncToActiveFinished() bool
MoveSyncToActiveFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) MoveSyncToActiveMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) MoveSyncToActiveMinimockCounter() uint64
MoveSyncToActiveMinimockCounter returns a count of NodeKeeperMock.MoveSyncToActiveFunc invocations
func (*NodeKeeperMock) MoveSyncToActiveMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) MoveSyncToActiveMinimockPreCounter() uint64
MoveSyncToActiveMinimockPreCounter returns the value of NodeKeeperMock.MoveSyncToActive invocations
func (*NodeKeeperMock) NodesJoinedDuringPreviousPulse ¶ added in v0.6.3
func (m *NodeKeeperMock) NodesJoinedDuringPreviousPulse() (r bool)
NodesJoinedDuringPreviousPulse implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) NodesJoinedDuringPreviousPulseFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) NodesJoinedDuringPreviousPulseFinished() bool
NodesJoinedDuringPreviousPulseFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) NodesJoinedDuringPreviousPulseMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) NodesJoinedDuringPreviousPulseMinimockCounter() uint64
NodesJoinedDuringPreviousPulseMinimockCounter returns a count of NodeKeeperMock.NodesJoinedDuringPreviousPulseFunc invocations
func (*NodeKeeperMock) NodesJoinedDuringPreviousPulseMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) NodesJoinedDuringPreviousPulseMinimockPreCounter() uint64
NodesJoinedDuringPreviousPulseMinimockPreCounter returns the value of NodeKeeperMock.NodesJoinedDuringPreviousPulse invocations
func (*NodeKeeperMock) ResolveConsensus ¶ added in v0.8.0
func (m *NodeKeeperMock) ResolveConsensus(p core.ShortNodeID) (r *host.Host)
ResolveConsensus implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) ResolveConsensusFinished ¶ added in v0.8.0
func (m *NodeKeeperMock) ResolveConsensusFinished() bool
ResolveConsensusFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) ResolveConsensusMinimockCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) ResolveConsensusMinimockCounter() uint64
ResolveConsensusMinimockCounter returns a count of NodeKeeperMock.ResolveConsensusFunc invocations
func (*NodeKeeperMock) ResolveConsensusMinimockPreCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) ResolveConsensusMinimockPreCounter() uint64
ResolveConsensusMinimockPreCounter returns the value of NodeKeeperMock.ResolveConsensus invocations
func (*NodeKeeperMock) ResolveConsensusRef ¶ added in v0.8.0
func (m *NodeKeeperMock) ResolveConsensusRef(p core.RecordRef) (r *host.Host)
ResolveConsensusRef implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) ResolveConsensusRefFinished ¶ added in v0.8.0
func (m *NodeKeeperMock) ResolveConsensusRefFinished() bool
ResolveConsensusRefFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) ResolveConsensusRefMinimockCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) ResolveConsensusRefMinimockCounter() uint64
ResolveConsensusRefMinimockCounter returns a count of NodeKeeperMock.ResolveConsensusRefFunc invocations
func (*NodeKeeperMock) ResolveConsensusRefMinimockPreCounter ¶ added in v0.8.0
func (m *NodeKeeperMock) ResolveConsensusRefMinimockPreCounter() uint64
ResolveConsensusRefMinimockPreCounter returns the value of NodeKeeperMock.ResolveConsensusRef invocations
func (*NodeKeeperMock) SetCloudHash ¶ added in v0.6.3
func (m *NodeKeeperMock) SetCloudHash(p []byte)
SetCloudHash implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) SetCloudHashFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) SetCloudHashFinished() bool
SetCloudHashFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) SetCloudHashMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) SetCloudHashMinimockCounter() uint64
SetCloudHashMinimockCounter returns a count of NodeKeeperMock.SetCloudHashFunc invocations
func (*NodeKeeperMock) SetCloudHashMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) SetCloudHashMinimockPreCounter() uint64
SetCloudHashMinimockPreCounter returns the value of NodeKeeperMock.SetCloudHash invocations
func (*NodeKeeperMock) SetIsBootstrapped ¶ added in v0.7.5
func (m *NodeKeeperMock) SetIsBootstrapped(p bool)
SetIsBootstrapped implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) SetIsBootstrappedFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) SetIsBootstrappedFinished() bool
SetIsBootstrappedFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) SetIsBootstrappedMinimockCounter ¶ added in v0.7.5
func (m *NodeKeeperMock) SetIsBootstrappedMinimockCounter() uint64
SetIsBootstrappedMinimockCounter returns a count of NodeKeeperMock.SetIsBootstrappedFunc invocations
func (*NodeKeeperMock) SetIsBootstrappedMinimockPreCounter ¶ added in v0.7.5
func (m *NodeKeeperMock) SetIsBootstrappedMinimockPreCounter() uint64
SetIsBootstrappedMinimockPreCounter returns the value of NodeKeeperMock.SetIsBootstrapped invocations
func (*NodeKeeperMock) SetState ¶ added in v0.6.3
func (m *NodeKeeperMock) SetState(p core.NodeNetworkState)
SetState implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) SetStateFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) SetStateFinished() bool
SetStateFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) SetStateMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) SetStateMinimockCounter() uint64
SetStateMinimockCounter returns a count of NodeKeeperMock.SetStateFunc invocations
func (*NodeKeeperMock) SetStateMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) SetStateMinimockPreCounter() uint64
SetStateMinimockPreCounter returns the value of NodeKeeperMock.SetState invocations
func (*NodeKeeperMock) Sync ¶ added in v0.6.3
func (m *NodeKeeperMock) Sync(p network.UnsyncList)
Sync implements github.com/insolar/insolar/network.NodeKeeper interface
func (*NodeKeeperMock) SyncFinished ¶ added in v0.7.5
func (m *NodeKeeperMock) SyncFinished() bool
SyncFinished returns true if mock invocations count is ok
func (*NodeKeeperMock) SyncMinimockCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) SyncMinimockCounter() uint64
SyncMinimockCounter returns a count of NodeKeeperMock.SyncFunc invocations
func (*NodeKeeperMock) SyncMinimockPreCounter ¶ added in v0.6.3
func (m *NodeKeeperMock) SyncMinimockPreCounter() uint64
SyncMinimockPreCounter returns the value of NodeKeeperMock.Sync invocations
func (*NodeKeeperMock) ValidateCallCounters ¶ added in v0.6.3
func (m *NodeKeeperMock) ValidateCallCounters()
ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*NodeKeeperMock) Wait ¶ added in v0.6.3
func (m *NodeKeeperMock) Wait(timeout time.Duration)
Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller
type NodeKeeperMockAddActiveNodesExpectation ¶ added in v0.7.5
type NodeKeeperMockAddActiveNodesExpectation struct {
// contains filtered or unexported fields
}
type NodeKeeperMockAddActiveNodesInput ¶ added in v0.7.5
type NodeKeeperMockAddActiveNodesInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockAddPendingClaimExpectation ¶ added in v0.7.5
type NodeKeeperMockAddPendingClaimExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockAddPendingClaimExpectation) Return ¶ added in v0.7.5
func (e *NodeKeeperMockAddPendingClaimExpectation) Return(r bool)
type NodeKeeperMockAddPendingClaimInput ¶ added in v0.7.5
type NodeKeeperMockAddPendingClaimInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockAddPendingClaimResult ¶ added in v0.7.5
type NodeKeeperMockAddPendingClaimResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockAddTemporaryMappingExpectation ¶ added in v0.8.0
type NodeKeeperMockAddTemporaryMappingExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockAddTemporaryMappingExpectation) Return ¶ added in v0.8.0
func (e *NodeKeeperMockAddTemporaryMappingExpectation) Return(r error)
type NodeKeeperMockAddTemporaryMappingInput ¶ added in v0.8.0
type NodeKeeperMockAddTemporaryMappingInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockAddTemporaryMappingResult ¶ added in v0.8.0
type NodeKeeperMockAddTemporaryMappingResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetActiveNodeByShortIDExpectation ¶ added in v0.7.5
type NodeKeeperMockGetActiveNodeByShortIDExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetActiveNodeByShortIDExpectation) Return ¶ added in v0.7.5
func (e *NodeKeeperMockGetActiveNodeByShortIDExpectation) Return(r core.Node)
type NodeKeeperMockGetActiveNodeByShortIDInput ¶ added in v0.7.5
type NodeKeeperMockGetActiveNodeByShortIDInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetActiveNodeByShortIDResult ¶ added in v0.7.5
type NodeKeeperMockGetActiveNodeByShortIDResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetActiveNodeExpectation ¶ added in v0.7.5
type NodeKeeperMockGetActiveNodeExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetActiveNodeExpectation) Return ¶ added in v0.7.5
func (e *NodeKeeperMockGetActiveNodeExpectation) Return(r core.Node)
type NodeKeeperMockGetActiveNodeInput ¶ added in v0.7.5
type NodeKeeperMockGetActiveNodeInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetActiveNodeResult ¶ added in v0.7.5
type NodeKeeperMockGetActiveNodeResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetActiveNodesExpectation ¶ added in v0.7.5
type NodeKeeperMockGetActiveNodesExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetActiveNodesExpectation) Return ¶ added in v0.7.5
func (e *NodeKeeperMockGetActiveNodesExpectation) Return(r []core.Node)
type NodeKeeperMockGetActiveNodesResult ¶ added in v0.7.5
type NodeKeeperMockGetActiveNodesResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetClaimQueueExpectation ¶ added in v0.7.5
type NodeKeeperMockGetClaimQueueExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetClaimQueueExpectation) Return ¶ added in v0.7.5
func (e *NodeKeeperMockGetClaimQueueExpectation) Return(r network.ClaimQueue)
type NodeKeeperMockGetClaimQueueResult ¶ added in v0.7.5
type NodeKeeperMockGetClaimQueueResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetCloudHashExpectation ¶ added in v0.7.5
type NodeKeeperMockGetCloudHashExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetCloudHashExpectation) Return ¶ added in v0.7.5
func (e *NodeKeeperMockGetCloudHashExpectation) Return(r []byte)
type NodeKeeperMockGetCloudHashResult ¶ added in v0.7.5
type NodeKeeperMockGetCloudHashResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetOriginAnnounceClaimExpectation ¶ added in v0.8.0
type NodeKeeperMockGetOriginAnnounceClaimExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetOriginAnnounceClaimExpectation) Return ¶ added in v0.8.0
func (e *NodeKeeperMockGetOriginAnnounceClaimExpectation) Return(r *packets.NodeAnnounceClaim, r1 error)
type NodeKeeperMockGetOriginAnnounceClaimInput ¶ added in v0.8.0
type NodeKeeperMockGetOriginAnnounceClaimInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetOriginAnnounceClaimResult ¶ added in v0.8.0
type NodeKeeperMockGetOriginAnnounceClaimResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetOriginExpectation ¶ added in v0.7.5
type NodeKeeperMockGetOriginExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetOriginExpectation) Return ¶ added in v0.7.5
func (e *NodeKeeperMockGetOriginExpectation) Return(r core.Node)
type NodeKeeperMockGetOriginJoinClaimExpectation ¶ added in v0.8.0
type NodeKeeperMockGetOriginJoinClaimExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetOriginJoinClaimExpectation) Return ¶ added in v0.8.0
func (e *NodeKeeperMockGetOriginJoinClaimExpectation) Return(r *packets.NodeJoinClaim, r1 error)
type NodeKeeperMockGetOriginJoinClaimResult ¶ added in v0.8.0
type NodeKeeperMockGetOriginJoinClaimResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetOriginResult ¶ added in v0.7.5
type NodeKeeperMockGetOriginResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetSparseUnsyncListExpectation ¶ added in v0.7.5
type NodeKeeperMockGetSparseUnsyncListExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetSparseUnsyncListExpectation) Return ¶ added in v0.7.5
func (e *NodeKeeperMockGetSparseUnsyncListExpectation) Return(r network.UnsyncList)
type NodeKeeperMockGetSparseUnsyncListInput ¶ added in v0.7.5
type NodeKeeperMockGetSparseUnsyncListInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetSparseUnsyncListResult ¶ added in v0.7.5
type NodeKeeperMockGetSparseUnsyncListResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetStateExpectation ¶ added in v0.7.5
type NodeKeeperMockGetStateExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetStateExpectation) Return ¶ added in v0.7.5
func (e *NodeKeeperMockGetStateExpectation) Return(r core.NodeNetworkState)
type NodeKeeperMockGetStateResult ¶ added in v0.7.5
type NodeKeeperMockGetStateResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetUnsyncListExpectation ¶ added in v0.7.5
type NodeKeeperMockGetUnsyncListExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetUnsyncListExpectation) Return ¶ added in v0.7.5
func (e *NodeKeeperMockGetUnsyncListExpectation) Return(r network.UnsyncList)
type NodeKeeperMockGetUnsyncListResult ¶ added in v0.7.5
type NodeKeeperMockGetUnsyncListResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetWorkingNodeExpectation ¶ added in v0.8.0
type NodeKeeperMockGetWorkingNodeExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetWorkingNodeExpectation) Return ¶ added in v0.8.0
func (e *NodeKeeperMockGetWorkingNodeExpectation) Return(r core.Node)
type NodeKeeperMockGetWorkingNodeInput ¶ added in v0.8.0
type NodeKeeperMockGetWorkingNodeInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetWorkingNodeResult ¶ added in v0.8.0
type NodeKeeperMockGetWorkingNodeResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetWorkingNodesByRoleExpectation ¶ added in v0.8.0
type NodeKeeperMockGetWorkingNodesByRoleExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetWorkingNodesByRoleExpectation) Return ¶ added in v0.8.0
func (e *NodeKeeperMockGetWorkingNodesByRoleExpectation) Return(r []core.RecordRef)
type NodeKeeperMockGetWorkingNodesByRoleInput ¶ added in v0.8.0
type NodeKeeperMockGetWorkingNodesByRoleInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetWorkingNodesByRoleResult ¶ added in v0.8.0
type NodeKeeperMockGetWorkingNodesByRoleResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockGetWorkingNodesExpectation ¶ added in v0.8.0
type NodeKeeperMockGetWorkingNodesExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockGetWorkingNodesExpectation) Return ¶ added in v0.8.0
func (e *NodeKeeperMockGetWorkingNodesExpectation) Return(r []core.Node)
type NodeKeeperMockGetWorkingNodesResult ¶ added in v0.8.0
type NodeKeeperMockGetWorkingNodesResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockIsBootstrappedExpectation ¶ added in v0.7.5
type NodeKeeperMockIsBootstrappedExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockIsBootstrappedExpectation) Return ¶ added in v0.7.5
func (e *NodeKeeperMockIsBootstrappedExpectation) Return(r bool)
type NodeKeeperMockIsBootstrappedResult ¶ added in v0.7.5
type NodeKeeperMockIsBootstrappedResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockMoveSyncToActiveExpectation ¶ added in v0.7.5
type NodeKeeperMockMoveSyncToActiveExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockMoveSyncToActiveExpectation) Return ¶ added in v0.8.0
func (e *NodeKeeperMockMoveSyncToActiveExpectation) Return(r error)
type NodeKeeperMockMoveSyncToActiveInput ¶ added in v0.8.0
type NodeKeeperMockMoveSyncToActiveInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockMoveSyncToActiveResult ¶ added in v0.8.0
type NodeKeeperMockMoveSyncToActiveResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockNodesJoinedDuringPreviousPulseExpectation ¶ added in v0.7.5
type NodeKeeperMockNodesJoinedDuringPreviousPulseExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockNodesJoinedDuringPreviousPulseExpectation) Return ¶ added in v0.7.5
func (e *NodeKeeperMockNodesJoinedDuringPreviousPulseExpectation) Return(r bool)
type NodeKeeperMockNodesJoinedDuringPreviousPulseResult ¶ added in v0.7.5
type NodeKeeperMockNodesJoinedDuringPreviousPulseResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockResolveConsensusExpectation ¶ added in v0.8.0
type NodeKeeperMockResolveConsensusExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockResolveConsensusExpectation) Return ¶ added in v0.8.0
func (e *NodeKeeperMockResolveConsensusExpectation) Return(r *host.Host)
type NodeKeeperMockResolveConsensusInput ¶ added in v0.8.0
type NodeKeeperMockResolveConsensusInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockResolveConsensusRefExpectation ¶ added in v0.8.0
type NodeKeeperMockResolveConsensusRefExpectation struct {
// contains filtered or unexported fields
}
func (*NodeKeeperMockResolveConsensusRefExpectation) Return ¶ added in v0.8.0
func (e *NodeKeeperMockResolveConsensusRefExpectation) Return(r *host.Host)
type NodeKeeperMockResolveConsensusRefInput ¶ added in v0.8.0
type NodeKeeperMockResolveConsensusRefInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockResolveConsensusRefResult ¶ added in v0.8.0
type NodeKeeperMockResolveConsensusRefResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockResolveConsensusResult ¶ added in v0.8.0
type NodeKeeperMockResolveConsensusResult struct {
// contains filtered or unexported fields
}
type NodeKeeperMockSetCloudHashExpectation ¶ added in v0.7.5
type NodeKeeperMockSetCloudHashExpectation struct {
// contains filtered or unexported fields
}
type NodeKeeperMockSetCloudHashInput ¶ added in v0.7.5
type NodeKeeperMockSetCloudHashInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockSetIsBootstrappedExpectation ¶ added in v0.7.5
type NodeKeeperMockSetIsBootstrappedExpectation struct {
// contains filtered or unexported fields
}
type NodeKeeperMockSetIsBootstrappedInput ¶ added in v0.7.5
type NodeKeeperMockSetIsBootstrappedInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockSetStateExpectation ¶ added in v0.7.5
type NodeKeeperMockSetStateExpectation struct {
// contains filtered or unexported fields
}
type NodeKeeperMockSetStateInput ¶ added in v0.7.5
type NodeKeeperMockSetStateInput struct {
// contains filtered or unexported fields
}
type NodeKeeperMockSyncExpectation ¶ added in v0.7.5
type NodeKeeperMockSyncExpectation struct {
// contains filtered or unexported fields
}
type NodeKeeperMockSyncInput ¶ added in v0.7.5
type NodeKeeperMockSyncInput struct {
// contains filtered or unexported fields
}
type NodeMock ¶ added in v0.6.3
type NodeMock struct { AddressFunc func() (r string) AddressCounter uint64 AddressPreCounter uint64 AddressMock mNodeMockAddress ConsensusAddressFunc func() (r string) ConsensusAddressCounter uint64 ConsensusAddressPreCounter uint64 ConsensusAddressMock mNodeMockConsensusAddress GetGlobuleIDFunc func() (r core.GlobuleID) GetGlobuleIDCounter uint64 GetGlobuleIDPreCounter uint64 GetGlobuleIDMock mNodeMockGetGlobuleID GetStateFunc func() (r core.NodeState) GetStateCounter uint64 GetStatePreCounter uint64 GetStateMock mNodeMockGetState IDFunc func() (r core.RecordRef) IDCounter uint64 IDPreCounter uint64 IDMock mNodeMockID IsWorkingFunc func() (r bool) IsWorkingCounter uint64 IsWorkingPreCounter uint64 IsWorkingMock mNodeMockIsWorking LeavingFunc func() (r bool) LeavingCounter uint64 LeavingPreCounter uint64 LeavingMock mNodeMockLeaving LeavingETAFunc func() (r core.PulseNumber) LeavingETACounter uint64 LeavingETAPreCounter uint64 LeavingETAMock mNodeMockLeavingETA PublicKeyFunc func() (r crypto.PublicKey) PublicKeyCounter uint64 PublicKeyPreCounter uint64 PublicKeyMock mNodeMockPublicKey RoleFunc func() (r core.StaticRole) RoleCounter uint64 RolePreCounter uint64 RoleMock mNodeMockRole ShortIDFunc func() (r core.ShortNodeID) ShortIDCounter uint64 ShortIDPreCounter uint64 ShortIDMock mNodeMockShortID VersionFunc func() (r string) VersionCounter uint64 VersionPreCounter uint64 VersionMock mNodeMockVersion // contains filtered or unexported fields }
NodeMock implements github.com/insolar/insolar/core.Node
func NewNodeMock ¶ added in v0.6.3
NewNodeMock returns a mock for github.com/insolar/insolar/core.Node
func (*NodeMock) Address ¶ added in v0.8.0
Address implements github.com/insolar/insolar/core.Node interface
func (*NodeMock) AddressFinished ¶ added in v0.8.0
AddressFinished returns true if mock invocations count is ok
func (*NodeMock) AddressMinimockCounter ¶ added in v0.8.0
AddressMinimockCounter returns a count of NodeMock.AddressFunc invocations
func (*NodeMock) AddressMinimockPreCounter ¶ added in v0.8.0
AddressMinimockPreCounter returns the value of NodeMock.Address invocations
func (*NodeMock) AllMocksCalled ¶ added in v0.6.3
AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())
func (*NodeMock) CheckMocksCalled ¶ added in v0.6.3
func (m *NodeMock) CheckMocksCalled()
CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*NodeMock) ConsensusAddress ¶ added in v0.8.0
ConsensusAddress implements github.com/insolar/insolar/core.Node interface
func (*NodeMock) ConsensusAddressFinished ¶ added in v0.8.0
ConsensusAddressFinished returns true if mock invocations count is ok
func (*NodeMock) ConsensusAddressMinimockCounter ¶ added in v0.8.0
ConsensusAddressMinimockCounter returns a count of NodeMock.ConsensusAddressFunc invocations
func (*NodeMock) ConsensusAddressMinimockPreCounter ¶ added in v0.8.0
ConsensusAddressMinimockPreCounter returns the value of NodeMock.ConsensusAddress invocations
func (*NodeMock) Finish ¶ added in v0.6.3
func (m *NodeMock) Finish()
Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller
func (*NodeMock) GetGlobuleID ¶ added in v0.7.5
GetGlobuleID implements github.com/insolar/insolar/core.Node interface
func (*NodeMock) GetGlobuleIDFinished ¶ added in v0.7.5
GetGlobuleIDFinished returns true if mock invocations count is ok
func (*NodeMock) GetGlobuleIDMinimockCounter ¶ added in v0.7.5
GetGlobuleIDMinimockCounter returns a count of NodeMock.GetGlobuleIDFunc invocations
func (*NodeMock) GetGlobuleIDMinimockPreCounter ¶ added in v0.7.5
GetGlobuleIDMinimockPreCounter returns the value of NodeMock.GetGlobuleID invocations
func (*NodeMock) GetState ¶ added in v0.8.0
GetState implements github.com/insolar/insolar/core.Node interface
func (*NodeMock) GetStateFinished ¶ added in v0.8.0
GetStateFinished returns true if mock invocations count is ok
func (*NodeMock) GetStateMinimockCounter ¶ added in v0.8.0
GetStateMinimockCounter returns a count of NodeMock.GetStateFunc invocations
func (*NodeMock) GetStateMinimockPreCounter ¶ added in v0.8.0
GetStateMinimockPreCounter returns the value of NodeMock.GetState invocations
func (*NodeMock) IDFinished ¶ added in v0.7.5
IDFinished returns true if mock invocations count is ok
func (*NodeMock) IDMinimockCounter ¶ added in v0.6.3
IDMinimockCounter returns a count of NodeMock.IDFunc invocations
func (*NodeMock) IDMinimockPreCounter ¶ added in v0.6.3
IDMinimockPreCounter returns the value of NodeMock.ID invocations
func (*NodeMock) IsWorking ¶ added in v0.8.0
IsWorking implements github.com/insolar/insolar/core.Node interface
func (*NodeMock) IsWorkingFinished ¶ added in v0.8.0
IsWorkingFinished returns true if mock invocations count is ok
func (*NodeMock) IsWorkingMinimockCounter ¶ added in v0.8.0
IsWorkingMinimockCounter returns a count of NodeMock.IsWorkingFunc invocations
func (*NodeMock) IsWorkingMinimockPreCounter ¶ added in v0.8.0
IsWorkingMinimockPreCounter returns the value of NodeMock.IsWorking invocations
func (*NodeMock) Leaving ¶ added in v0.8.0
Leaving implements github.com/insolar/insolar/core.Node interface
func (*NodeMock) LeavingETA ¶ added in v0.8.0
func (m *NodeMock) LeavingETA() (r core.PulseNumber)
LeavingETA implements github.com/insolar/insolar/core.Node interface
func (*NodeMock) LeavingETAFinished ¶ added in v0.8.0
LeavingETAFinished returns true if mock invocations count is ok
func (*NodeMock) LeavingETAMinimockCounter ¶ added in v0.8.0
LeavingETAMinimockCounter returns a count of NodeMock.LeavingETAFunc invocations
func (*NodeMock) LeavingETAMinimockPreCounter ¶ added in v0.8.0
LeavingETAMinimockPreCounter returns the value of NodeMock.LeavingETA invocations
func (*NodeMock) LeavingFinished ¶ added in v0.8.0
LeavingFinished returns true if mock invocations count is ok
func (*NodeMock) LeavingMinimockCounter ¶ added in v0.8.0
LeavingMinimockCounter returns a count of NodeMock.LeavingFunc invocations
func (*NodeMock) LeavingMinimockPreCounter ¶ added in v0.8.0
LeavingMinimockPreCounter returns the value of NodeMock.Leaving invocations
func (*NodeMock) MinimockFinish ¶ added in v0.6.3
func (m *NodeMock) MinimockFinish()
MinimockFinish checks that all mocked methods of the interface have been called at least once
func (*NodeMock) MinimockWait ¶ added in v0.6.3
MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller
func (*NodeMock) PublicKey ¶ added in v0.6.3
PublicKey implements github.com/insolar/insolar/core.Node interface
func (*NodeMock) PublicKeyFinished ¶ added in v0.7.5
PublicKeyFinished returns true if mock invocations count is ok
func (*NodeMock) PublicKeyMinimockCounter ¶ added in v0.6.3
PublicKeyMinimockCounter returns a count of NodeMock.PublicKeyFunc invocations
func (*NodeMock) PublicKeyMinimockPreCounter ¶ added in v0.6.3
PublicKeyMinimockPreCounter returns the value of NodeMock.PublicKey invocations
func (*NodeMock) Role ¶ added in v0.6.3
func (m *NodeMock) Role() (r core.StaticRole)
Role implements github.com/insolar/insolar/core.Node interface
func (*NodeMock) RoleFinished ¶ added in v0.7.5
RoleFinished returns true if mock invocations count is ok
func (*NodeMock) RoleMinimockCounter ¶ added in v0.6.3
RoleMinimockCounter returns a count of NodeMock.RoleFunc invocations
func (*NodeMock) RoleMinimockPreCounter ¶ added in v0.6.3
RoleMinimockPreCounter returns the value of NodeMock.Role invocations
func (*NodeMock) ShortID ¶ added in v0.6.3
func (m *NodeMock) ShortID() (r core.ShortNodeID)
ShortID implements github.com/insolar/insolar/core.Node interface
func (*NodeMock) ShortIDFinished ¶ added in v0.7.5
ShortIDFinished returns true if mock invocations count is ok
func (*NodeMock) ShortIDMinimockCounter ¶ added in v0.6.3
ShortIDMinimockCounter returns a count of NodeMock.ShortIDFunc invocations
func (*NodeMock) ShortIDMinimockPreCounter ¶ added in v0.6.3
ShortIDMinimockPreCounter returns the value of NodeMock.ShortID invocations
func (*NodeMock) ValidateCallCounters ¶ added in v0.6.3
func (m *NodeMock) ValidateCallCounters()
ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*NodeMock) Version ¶ added in v0.6.3
Version implements github.com/insolar/insolar/core.Node interface
func (*NodeMock) VersionFinished ¶ added in v0.7.5
VersionFinished returns true if mock invocations count is ok
func (*NodeMock) VersionMinimockCounter ¶ added in v0.6.3
VersionMinimockCounter returns a count of NodeMock.VersionFunc invocations
func (*NodeMock) VersionMinimockPreCounter ¶ added in v0.6.3
VersionMinimockPreCounter returns the value of NodeMock.Version invocations
type NodeMockAddressExpectation ¶ added in v0.8.0
type NodeMockAddressExpectation struct {
// contains filtered or unexported fields
}
func (*NodeMockAddressExpectation) Return ¶ added in v0.8.0
func (e *NodeMockAddressExpectation) Return(r string)
type NodeMockAddressResult ¶ added in v0.8.0
type NodeMockAddressResult struct {
// contains filtered or unexported fields
}
type NodeMockConsensusAddressExpectation ¶ added in v0.8.0
type NodeMockConsensusAddressExpectation struct {
// contains filtered or unexported fields
}
func (*NodeMockConsensusAddressExpectation) Return ¶ added in v0.8.0
func (e *NodeMockConsensusAddressExpectation) Return(r string)
type NodeMockConsensusAddressResult ¶ added in v0.8.0
type NodeMockConsensusAddressResult struct {
// contains filtered or unexported fields
}
type NodeMockGetGlobuleIDExpectation ¶ added in v0.7.5
type NodeMockGetGlobuleIDExpectation struct {
// contains filtered or unexported fields
}
func (*NodeMockGetGlobuleIDExpectation) Return ¶ added in v0.7.5
func (e *NodeMockGetGlobuleIDExpectation) Return(r core.GlobuleID)
type NodeMockGetGlobuleIDResult ¶ added in v0.7.5
type NodeMockGetGlobuleIDResult struct {
// contains filtered or unexported fields
}
type NodeMockGetStateExpectation ¶ added in v0.8.0
type NodeMockGetStateExpectation struct {
// contains filtered or unexported fields
}
func (*NodeMockGetStateExpectation) Return ¶ added in v0.8.0
func (e *NodeMockGetStateExpectation) Return(r core.NodeState)
type NodeMockGetStateResult ¶ added in v0.8.0
type NodeMockGetStateResult struct {
// contains filtered or unexported fields
}
type NodeMockIDExpectation ¶ added in v0.7.5
type NodeMockIDExpectation struct {
// contains filtered or unexported fields
}
func (*NodeMockIDExpectation) Return ¶ added in v0.7.5
func (e *NodeMockIDExpectation) Return(r core.RecordRef)
type NodeMockIDResult ¶ added in v0.7.5
type NodeMockIDResult struct {
// contains filtered or unexported fields
}
type NodeMockIsWorkingExpectation ¶ added in v0.8.0
type NodeMockIsWorkingExpectation struct {
// contains filtered or unexported fields
}
func (*NodeMockIsWorkingExpectation) Return ¶ added in v0.8.0
func (e *NodeMockIsWorkingExpectation) Return(r bool)
type NodeMockIsWorkingResult ¶ added in v0.8.0
type NodeMockIsWorkingResult struct {
// contains filtered or unexported fields
}
type NodeMockLeavingETAExpectation ¶ added in v0.8.0
type NodeMockLeavingETAExpectation struct {
// contains filtered or unexported fields
}
func (*NodeMockLeavingETAExpectation) Return ¶ added in v0.8.0
func (e *NodeMockLeavingETAExpectation) Return(r core.PulseNumber)
type NodeMockLeavingETAResult ¶ added in v0.8.0
type NodeMockLeavingETAResult struct {
// contains filtered or unexported fields
}
type NodeMockLeavingExpectation ¶ added in v0.8.0
type NodeMockLeavingExpectation struct {
// contains filtered or unexported fields
}
func (*NodeMockLeavingExpectation) Return ¶ added in v0.8.0
func (e *NodeMockLeavingExpectation) Return(r bool)
type NodeMockLeavingResult ¶ added in v0.8.0
type NodeMockLeavingResult struct {
// contains filtered or unexported fields
}
type NodeMockPublicKeyExpectation ¶ added in v0.7.5
type NodeMockPublicKeyExpectation struct {
// contains filtered or unexported fields
}
func (*NodeMockPublicKeyExpectation) Return ¶ added in v0.7.5
func (e *NodeMockPublicKeyExpectation) Return(r crypto.PublicKey)
type NodeMockPublicKeyResult ¶ added in v0.7.5
type NodeMockPublicKeyResult struct {
// contains filtered or unexported fields
}
type NodeMockRoleExpectation ¶ added in v0.7.5
type NodeMockRoleExpectation struct {
// contains filtered or unexported fields
}
func (*NodeMockRoleExpectation) Return ¶ added in v0.7.5
func (e *NodeMockRoleExpectation) Return(r core.StaticRole)
type NodeMockRoleResult ¶ added in v0.7.5
type NodeMockRoleResult struct {
// contains filtered or unexported fields
}
type NodeMockShortIDExpectation ¶ added in v0.7.5
type NodeMockShortIDExpectation struct {
// contains filtered or unexported fields
}
func (*NodeMockShortIDExpectation) Return ¶ added in v0.7.5
func (e *NodeMockShortIDExpectation) Return(r core.ShortNodeID)
type NodeMockShortIDResult ¶ added in v0.7.5
type NodeMockShortIDResult struct {
// contains filtered or unexported fields
}
type NodeMockVersionExpectation ¶ added in v0.7.5
type NodeMockVersionExpectation struct {
// contains filtered or unexported fields
}
func (*NodeMockVersionExpectation) Return ¶ added in v0.7.5
func (e *NodeMockVersionExpectation) Return(r string)
type NodeMockVersionResult ¶ added in v0.7.5
type NodeMockVersionResult struct {
// contains filtered or unexported fields
}
type NodeNetworkMock ¶ added in v0.6.3
type NodeNetworkMock struct { GetOriginFunc func() (r core.Node) GetOriginCounter uint64 GetOriginPreCounter uint64 GetOriginMock mNodeNetworkMockGetOrigin GetStateFunc func() (r core.NodeNetworkState) GetStateCounter uint64 GetStatePreCounter uint64 GetStateMock mNodeNetworkMockGetState GetWorkingNodeFunc func(p core.RecordRef) (r core.Node) GetWorkingNodeCounter uint64 GetWorkingNodePreCounter uint64 GetWorkingNodeMock mNodeNetworkMockGetWorkingNode GetWorkingNodesFunc func() (r []core.Node) GetWorkingNodesCounter uint64 GetWorkingNodesPreCounter uint64 GetWorkingNodesMock mNodeNetworkMockGetWorkingNodes GetWorkingNodesByRoleFunc func(p core.DynamicRole) (r []core.RecordRef) GetWorkingNodesByRoleCounter uint64 GetWorkingNodesByRolePreCounter uint64 GetWorkingNodesByRoleMock mNodeNetworkMockGetWorkingNodesByRole // contains filtered or unexported fields }
NodeNetworkMock implements github.com/insolar/insolar/core.NodeNetwork
func NewNodeNetworkMock ¶ added in v0.6.3
func NewNodeNetworkMock(t minimock.Tester) *NodeNetworkMock
NewNodeNetworkMock returns a mock for github.com/insolar/insolar/core.NodeNetwork
func (*NodeNetworkMock) AllMocksCalled ¶ added in v0.6.3
func (m *NodeNetworkMock) AllMocksCalled() bool
AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())
func (*NodeNetworkMock) CheckMocksCalled ¶ added in v0.6.3
func (m *NodeNetworkMock) CheckMocksCalled()
CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*NodeNetworkMock) Finish ¶ added in v0.6.3
func (m *NodeNetworkMock) Finish()
Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller
func (*NodeNetworkMock) GetOrigin ¶ added in v0.6.3
func (m *NodeNetworkMock) GetOrigin() (r core.Node)
GetOrigin implements github.com/insolar/insolar/core.NodeNetwork interface
func (*NodeNetworkMock) GetOriginFinished ¶ added in v0.7.5
func (m *NodeNetworkMock) GetOriginFinished() bool
GetOriginFinished returns true if mock invocations count is ok
func (*NodeNetworkMock) GetOriginMinimockCounter ¶ added in v0.6.3
func (m *NodeNetworkMock) GetOriginMinimockCounter() uint64
GetOriginMinimockCounter returns a count of NodeNetworkMock.GetOriginFunc invocations
func (*NodeNetworkMock) GetOriginMinimockPreCounter ¶ added in v0.6.3
func (m *NodeNetworkMock) GetOriginMinimockPreCounter() uint64
GetOriginMinimockPreCounter returns the value of NodeNetworkMock.GetOrigin invocations
func (*NodeNetworkMock) GetState ¶ added in v0.8.0
func (m *NodeNetworkMock) GetState() (r core.NodeNetworkState)
GetState implements github.com/insolar/insolar/core.NodeNetwork interface
func (*NodeNetworkMock) GetStateFinished ¶ added in v0.8.0
func (m *NodeNetworkMock) GetStateFinished() bool
GetStateFinished returns true if mock invocations count is ok
func (*NodeNetworkMock) GetStateMinimockCounter ¶ added in v0.8.0
func (m *NodeNetworkMock) GetStateMinimockCounter() uint64
GetStateMinimockCounter returns a count of NodeNetworkMock.GetStateFunc invocations
func (*NodeNetworkMock) GetStateMinimockPreCounter ¶ added in v0.8.0
func (m *NodeNetworkMock) GetStateMinimockPreCounter() uint64
GetStateMinimockPreCounter returns the value of NodeNetworkMock.GetState invocations
func (*NodeNetworkMock) GetWorkingNode ¶ added in v0.8.0
func (m *NodeNetworkMock) GetWorkingNode(p core.RecordRef) (r core.Node)
GetWorkingNode implements github.com/insolar/insolar/core.NodeNetwork interface
func (*NodeNetworkMock) GetWorkingNodeFinished ¶ added in v0.8.0
func (m *NodeNetworkMock) GetWorkingNodeFinished() bool
GetWorkingNodeFinished returns true if mock invocations count is ok
func (*NodeNetworkMock) GetWorkingNodeMinimockCounter ¶ added in v0.8.0
func (m *NodeNetworkMock) GetWorkingNodeMinimockCounter() uint64
GetWorkingNodeMinimockCounter returns a count of NodeNetworkMock.GetWorkingNodeFunc invocations
func (*NodeNetworkMock) GetWorkingNodeMinimockPreCounter ¶ added in v0.8.0
func (m *NodeNetworkMock) GetWorkingNodeMinimockPreCounter() uint64
GetWorkingNodeMinimockPreCounter returns the value of NodeNetworkMock.GetWorkingNode invocations
func (*NodeNetworkMock) GetWorkingNodes ¶ added in v0.8.0
func (m *NodeNetworkMock) GetWorkingNodes() (r []core.Node)
GetWorkingNodes implements github.com/insolar/insolar/core.NodeNetwork interface
func (*NodeNetworkMock) GetWorkingNodesByRole ¶ added in v0.8.0
func (m *NodeNetworkMock) GetWorkingNodesByRole(p core.DynamicRole) (r []core.RecordRef)
GetWorkingNodesByRole implements github.com/insolar/insolar/core.NodeNetwork interface
func (*NodeNetworkMock) GetWorkingNodesByRoleFinished ¶ added in v0.8.0
func (m *NodeNetworkMock) GetWorkingNodesByRoleFinished() bool
GetWorkingNodesByRoleFinished returns true if mock invocations count is ok
func (*NodeNetworkMock) GetWorkingNodesByRoleMinimockCounter ¶ added in v0.8.0
func (m *NodeNetworkMock) GetWorkingNodesByRoleMinimockCounter() uint64
GetWorkingNodesByRoleMinimockCounter returns a count of NodeNetworkMock.GetWorkingNodesByRoleFunc invocations
func (*NodeNetworkMock) GetWorkingNodesByRoleMinimockPreCounter ¶ added in v0.8.0
func (m *NodeNetworkMock) GetWorkingNodesByRoleMinimockPreCounter() uint64
GetWorkingNodesByRoleMinimockPreCounter returns the value of NodeNetworkMock.GetWorkingNodesByRole invocations
func (*NodeNetworkMock) GetWorkingNodesFinished ¶ added in v0.8.0
func (m *NodeNetworkMock) GetWorkingNodesFinished() bool
GetWorkingNodesFinished returns true if mock invocations count is ok
func (*NodeNetworkMock) GetWorkingNodesMinimockCounter ¶ added in v0.8.0
func (m *NodeNetworkMock) GetWorkingNodesMinimockCounter() uint64
GetWorkingNodesMinimockCounter returns a count of NodeNetworkMock.GetWorkingNodesFunc invocations
func (*NodeNetworkMock) GetWorkingNodesMinimockPreCounter ¶ added in v0.8.0
func (m *NodeNetworkMock) GetWorkingNodesMinimockPreCounter() uint64
GetWorkingNodesMinimockPreCounter returns the value of NodeNetworkMock.GetWorkingNodes invocations
func (*NodeNetworkMock) MinimockFinish ¶ added in v0.6.3
func (m *NodeNetworkMock) MinimockFinish()
MinimockFinish checks that all mocked methods of the interface have been called at least once
func (*NodeNetworkMock) MinimockWait ¶ added in v0.6.3
func (m *NodeNetworkMock) MinimockWait(timeout time.Duration)
MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller
func (*NodeNetworkMock) ValidateCallCounters ¶ added in v0.6.3
func (m *NodeNetworkMock) ValidateCallCounters()
ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*NodeNetworkMock) Wait ¶ added in v0.6.3
func (m *NodeNetworkMock) Wait(timeout time.Duration)
Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller
type NodeNetworkMockGetOriginExpectation ¶ added in v0.7.5
type NodeNetworkMockGetOriginExpectation struct {
// contains filtered or unexported fields
}
func (*NodeNetworkMockGetOriginExpectation) Return ¶ added in v0.7.5
func (e *NodeNetworkMockGetOriginExpectation) Return(r core.Node)
type NodeNetworkMockGetOriginResult ¶ added in v0.7.5
type NodeNetworkMockGetOriginResult struct {
// contains filtered or unexported fields
}
type NodeNetworkMockGetStateExpectation ¶ added in v0.8.0
type NodeNetworkMockGetStateExpectation struct {
// contains filtered or unexported fields
}
func (*NodeNetworkMockGetStateExpectation) Return ¶ added in v0.8.0
func (e *NodeNetworkMockGetStateExpectation) Return(r core.NodeNetworkState)
type NodeNetworkMockGetStateResult ¶ added in v0.8.0
type NodeNetworkMockGetStateResult struct {
// contains filtered or unexported fields
}
type NodeNetworkMockGetWorkingNodeExpectation ¶ added in v0.8.0
type NodeNetworkMockGetWorkingNodeExpectation struct {
// contains filtered or unexported fields
}
func (*NodeNetworkMockGetWorkingNodeExpectation) Return ¶ added in v0.8.0
func (e *NodeNetworkMockGetWorkingNodeExpectation) Return(r core.Node)
type NodeNetworkMockGetWorkingNodeInput ¶ added in v0.8.0
type NodeNetworkMockGetWorkingNodeInput struct {
// contains filtered or unexported fields
}
type NodeNetworkMockGetWorkingNodeResult ¶ added in v0.8.0
type NodeNetworkMockGetWorkingNodeResult struct {
// contains filtered or unexported fields
}
type NodeNetworkMockGetWorkingNodesByRoleExpectation ¶ added in v0.8.0
type NodeNetworkMockGetWorkingNodesByRoleExpectation struct {
// contains filtered or unexported fields
}
func (*NodeNetworkMockGetWorkingNodesByRoleExpectation) Return ¶ added in v0.8.0
func (e *NodeNetworkMockGetWorkingNodesByRoleExpectation) Return(r []core.RecordRef)
type NodeNetworkMockGetWorkingNodesByRoleInput ¶ added in v0.8.0
type NodeNetworkMockGetWorkingNodesByRoleInput struct {
// contains filtered or unexported fields
}
type NodeNetworkMockGetWorkingNodesByRoleResult ¶ added in v0.8.0
type NodeNetworkMockGetWorkingNodesByRoleResult struct {
// contains filtered or unexported fields
}
type NodeNetworkMockGetWorkingNodesExpectation ¶ added in v0.8.0
type NodeNetworkMockGetWorkingNodesExpectation struct {
// contains filtered or unexported fields
}
func (*NodeNetworkMockGetWorkingNodesExpectation) Return ¶ added in v0.8.0
func (e *NodeNetworkMockGetWorkingNodesExpectation) Return(r []core.Node)
type NodeNetworkMockGetWorkingNodesResult ¶ added in v0.8.0
type NodeNetworkMockGetWorkingNodesResult struct {
// contains filtered or unexported fields
}
type PulseHandlerMock ¶ added in v0.6.3
type PulseHandlerMock struct { HandlePulseFunc func(p context.Context, p1 core.Pulse) HandlePulseCounter uint64 HandlePulsePreCounter uint64 HandlePulseMock mPulseHandlerMockHandlePulse // contains filtered or unexported fields }
PulseHandlerMock implements github.com/insolar/insolar/network.PulseHandler
func NewPulseHandlerMock ¶ added in v0.6.3
func NewPulseHandlerMock(t minimock.Tester) *PulseHandlerMock
NewPulseHandlerMock returns a mock for github.com/insolar/insolar/network.PulseHandler
func (*PulseHandlerMock) AllMocksCalled ¶ added in v0.6.3
func (m *PulseHandlerMock) AllMocksCalled() bool
AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())
func (*PulseHandlerMock) CheckMocksCalled ¶ added in v0.6.3
func (m *PulseHandlerMock) CheckMocksCalled()
CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*PulseHandlerMock) Finish ¶ added in v0.6.3
func (m *PulseHandlerMock) Finish()
Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller
func (*PulseHandlerMock) HandlePulse ¶ added in v0.6.3
func (m *PulseHandlerMock) HandlePulse(p context.Context, p1 core.Pulse)
HandlePulse implements github.com/insolar/insolar/network.PulseHandler interface
func (*PulseHandlerMock) HandlePulseFinished ¶ added in v0.7.5
func (m *PulseHandlerMock) HandlePulseFinished() bool
HandlePulseFinished returns true if mock invocations count is ok
func (*PulseHandlerMock) HandlePulseMinimockCounter ¶ added in v0.6.3
func (m *PulseHandlerMock) HandlePulseMinimockCounter() uint64
HandlePulseMinimockCounter returns a count of PulseHandlerMock.HandlePulseFunc invocations
func (*PulseHandlerMock) HandlePulseMinimockPreCounter ¶ added in v0.6.3
func (m *PulseHandlerMock) HandlePulseMinimockPreCounter() uint64
HandlePulseMinimockPreCounter returns the value of PulseHandlerMock.HandlePulse invocations
func (*PulseHandlerMock) MinimockFinish ¶ added in v0.6.3
func (m *PulseHandlerMock) MinimockFinish()
MinimockFinish checks that all mocked methods of the interface have been called at least once
func (*PulseHandlerMock) MinimockWait ¶ added in v0.6.3
func (m *PulseHandlerMock) MinimockWait(timeout time.Duration)
MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller
func (*PulseHandlerMock) ValidateCallCounters ¶ added in v0.6.3
func (m *PulseHandlerMock) ValidateCallCounters()
ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*PulseHandlerMock) Wait ¶ added in v0.6.3
func (m *PulseHandlerMock) Wait(timeout time.Duration)
Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller
type PulseHandlerMockHandlePulseExpectation ¶ added in v0.7.5
type PulseHandlerMockHandlePulseExpectation struct {
// contains filtered or unexported fields
}
type PulseHandlerMockHandlePulseInput ¶ added in v0.7.5
type PulseHandlerMockHandlePulseInput struct {
// contains filtered or unexported fields
}
type SwitcherWorkAroundMock ¶ added in v0.7.5
type SwitcherWorkAroundMock struct { IsBootstrappedFunc func() (r bool) IsBootstrappedCounter uint64 IsBootstrappedPreCounter uint64 IsBootstrappedMock mSwitcherWorkAroundMockIsBootstrapped SetIsBootstrappedFunc func(p bool) SetIsBootstrappedCounter uint64 SetIsBootstrappedPreCounter uint64 SetIsBootstrappedMock mSwitcherWorkAroundMockSetIsBootstrapped // contains filtered or unexported fields }
SwitcherWorkAroundMock implements github.com/insolar/insolar/core.SwitcherWorkAround
func NewSwitcherWorkAroundMock ¶ added in v0.7.5
func NewSwitcherWorkAroundMock(t minimock.Tester) *SwitcherWorkAroundMock
NewSwitcherWorkAroundMock returns a mock for github.com/insolar/insolar/core.SwitcherWorkAround
func (*SwitcherWorkAroundMock) AllMocksCalled ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) AllMocksCalled() bool
AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())
func (*SwitcherWorkAroundMock) CheckMocksCalled ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) CheckMocksCalled()
CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*SwitcherWorkAroundMock) Finish ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) Finish()
Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller
func (*SwitcherWorkAroundMock) IsBootstrapped ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) IsBootstrapped() (r bool)
IsBootstrapped implements github.com/insolar/insolar/core.SwitcherWorkAround interface
func (*SwitcherWorkAroundMock) IsBootstrappedFinished ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) IsBootstrappedFinished() bool
IsBootstrappedFinished returns true if mock invocations count is ok
func (*SwitcherWorkAroundMock) IsBootstrappedMinimockCounter ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) IsBootstrappedMinimockCounter() uint64
IsBootstrappedMinimockCounter returns a count of SwitcherWorkAroundMock.IsBootstrappedFunc invocations
func (*SwitcherWorkAroundMock) IsBootstrappedMinimockPreCounter ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) IsBootstrappedMinimockPreCounter() uint64
IsBootstrappedMinimockPreCounter returns the value of SwitcherWorkAroundMock.IsBootstrapped invocations
func (*SwitcherWorkAroundMock) MinimockFinish ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) MinimockFinish()
MinimockFinish checks that all mocked methods of the interface have been called at least once
func (*SwitcherWorkAroundMock) MinimockWait ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) MinimockWait(timeout time.Duration)
MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller
func (*SwitcherWorkAroundMock) SetIsBootstrapped ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) SetIsBootstrapped(p bool)
SetIsBootstrapped implements github.com/insolar/insolar/core.SwitcherWorkAround interface
func (*SwitcherWorkAroundMock) SetIsBootstrappedFinished ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) SetIsBootstrappedFinished() bool
SetIsBootstrappedFinished returns true if mock invocations count is ok
func (*SwitcherWorkAroundMock) SetIsBootstrappedMinimockCounter ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) SetIsBootstrappedMinimockCounter() uint64
SetIsBootstrappedMinimockCounter returns a count of SwitcherWorkAroundMock.SetIsBootstrappedFunc invocations
func (*SwitcherWorkAroundMock) SetIsBootstrappedMinimockPreCounter ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) SetIsBootstrappedMinimockPreCounter() uint64
SetIsBootstrappedMinimockPreCounter returns the value of SwitcherWorkAroundMock.SetIsBootstrapped invocations
func (*SwitcherWorkAroundMock) ValidateCallCounters ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) ValidateCallCounters()
ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*SwitcherWorkAroundMock) Wait ¶ added in v0.7.5
func (m *SwitcherWorkAroundMock) Wait(timeout time.Duration)
Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller
type SwitcherWorkAroundMockIsBootstrappedExpectation ¶ added in v0.7.5
type SwitcherWorkAroundMockIsBootstrappedExpectation struct {
// contains filtered or unexported fields
}
func (*SwitcherWorkAroundMockIsBootstrappedExpectation) Return ¶ added in v0.7.5
func (e *SwitcherWorkAroundMockIsBootstrappedExpectation) Return(r bool)
type SwitcherWorkAroundMockIsBootstrappedResult ¶ added in v0.7.5
type SwitcherWorkAroundMockIsBootstrappedResult struct {
// contains filtered or unexported fields
}
type SwitcherWorkAroundMockSetIsBootstrappedExpectation ¶ added in v0.7.5
type SwitcherWorkAroundMockSetIsBootstrappedExpectation struct {
// contains filtered or unexported fields
}
type SwitcherWorkAroundMockSetIsBootstrappedInput ¶ added in v0.7.5
type SwitcherWorkAroundMockSetIsBootstrappedInput struct {
// contains filtered or unexported fields
}
type UnsyncListMock ¶ added in v0.6.3
type UnsyncListMock struct { AddClaimsFunc func(p map[core.RecordRef][]packets.ReferendumClaim) (r error) AddClaimsCounter uint64 AddClaimsPreCounter uint64 AddClaimsMock mUnsyncListMockAddClaims AddNodeFunc func(p core.Node, p1 uint16) AddNodeCounter uint64 AddNodePreCounter uint64 AddNodeMock mUnsyncListMockAddNode AddProofFunc func(p core.RecordRef, p1 *packets.NodePulseProof) AddProofCounter uint64 AddProofPreCounter uint64 AddProofMock mUnsyncListMockAddProof ApproveSyncFunc func(p []core.RecordRef) ApproveSyncCounter uint64 ApproveSyncPreCounter uint64 ApproveSyncMock mUnsyncListMockApproveSync CalculateHashFunc func(p core.PlatformCryptographyScheme) (r []byte, r1 error) CalculateHashCounter uint64 CalculateHashPreCounter uint64 CalculateHashMock mUnsyncListMockCalculateHash GetActiveNodeFunc func(p core.RecordRef) (r core.Node) GetActiveNodeCounter uint64 GetActiveNodePreCounter uint64 GetActiveNodeMock mUnsyncListMockGetActiveNode GetActiveNodesFunc func() (r []core.Node) GetActiveNodesCounter uint64 GetActiveNodesPreCounter uint64 GetActiveNodesMock mUnsyncListMockGetActiveNodes GetClaimsFunc func(p core.RecordRef) (r []packets.ReferendumClaim) GetClaimsCounter uint64 GetClaimsPreCounter uint64 GetClaimsMock mUnsyncListMockGetClaims GetGlobuleHashSignatureFunc func(p core.RecordRef) (r packets.GlobuleHashSignature, r1 bool) GetGlobuleHashSignatureCounter uint64 GetGlobuleHashSignaturePreCounter uint64 GetGlobuleHashSignatureMock mUnsyncListMockGetGlobuleHashSignature GetMergedCopyFunc func() (r *network.MergedListCopy, r1 error) GetMergedCopyCounter uint64 GetMergedCopyPreCounter uint64 GetMergedCopyMock mUnsyncListMockGetMergedCopy GetProofFunc func(p core.RecordRef) (r *packets.NodePulseProof) GetProofCounter uint64 GetProofPreCounter uint64 GetProofMock mUnsyncListMockGetProof IndexToRefFunc func(p int) (r core.RecordRef, r1 error) IndexToRefCounter uint64 IndexToRefPreCounter uint64 IndexToRefMock mUnsyncListMockIndexToRef LengthFunc func() (r int) LengthCounter uint64 LengthPreCounter uint64 LengthMock mUnsyncListMockLength RefToIndexFunc func(p core.RecordRef) (r int, r1 error) RefToIndexCounter uint64 RefToIndexPreCounter uint64 RefToIndexMock mUnsyncListMockRefToIndex RemoveNodeFunc func(p core.RecordRef) RemoveNodeCounter uint64 RemoveNodePreCounter uint64 RemoveNodeMock mUnsyncListMockRemoveNode SetGlobuleHashSignatureFunc func(p core.RecordRef, p1 packets.GlobuleHashSignature) SetGlobuleHashSignatureCounter uint64 SetGlobuleHashSignaturePreCounter uint64 SetGlobuleHashSignatureMock mUnsyncListMockSetGlobuleHashSignature // contains filtered or unexported fields }
UnsyncListMock implements github.com/insolar/insolar/network.UnsyncList
func NewUnsyncListMock ¶ added in v0.6.3
func NewUnsyncListMock(t minimock.Tester) *UnsyncListMock
NewUnsyncListMock returns a mock for github.com/insolar/insolar/network.UnsyncList
func (*UnsyncListMock) AddClaims ¶ added in v0.6.3
func (m *UnsyncListMock) AddClaims(p map[core.RecordRef][]packets.ReferendumClaim) (r error)
AddClaims implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) AddClaimsFinished ¶ added in v0.7.5
func (m *UnsyncListMock) AddClaimsFinished() bool
AddClaimsFinished returns true if mock invocations count is ok
func (*UnsyncListMock) AddClaimsMinimockCounter ¶ added in v0.6.3
func (m *UnsyncListMock) AddClaimsMinimockCounter() uint64
AddClaimsMinimockCounter returns a count of UnsyncListMock.AddClaimsFunc invocations
func (*UnsyncListMock) AddClaimsMinimockPreCounter ¶ added in v0.6.3
func (m *UnsyncListMock) AddClaimsMinimockPreCounter() uint64
AddClaimsMinimockPreCounter returns the value of UnsyncListMock.AddClaims invocations
func (*UnsyncListMock) AddNode ¶ added in v0.8.0
func (m *UnsyncListMock) AddNode(p core.Node, p1 uint16)
AddNode implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) AddNodeFinished ¶ added in v0.8.0
func (m *UnsyncListMock) AddNodeFinished() bool
AddNodeFinished returns true if mock invocations count is ok
func (*UnsyncListMock) AddNodeMinimockCounter ¶ added in v0.8.0
func (m *UnsyncListMock) AddNodeMinimockCounter() uint64
AddNodeMinimockCounter returns a count of UnsyncListMock.AddNodeFunc invocations
func (*UnsyncListMock) AddNodeMinimockPreCounter ¶ added in v0.8.0
func (m *UnsyncListMock) AddNodeMinimockPreCounter() uint64
AddNodeMinimockPreCounter returns the value of UnsyncListMock.AddNode invocations
func (*UnsyncListMock) AddProof ¶ added in v0.8.0
func (m *UnsyncListMock) AddProof(p core.RecordRef, p1 *packets.NodePulseProof)
AddProof implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) AddProofFinished ¶ added in v0.8.0
func (m *UnsyncListMock) AddProofFinished() bool
AddProofFinished returns true if mock invocations count is ok
func (*UnsyncListMock) AddProofMinimockCounter ¶ added in v0.8.0
func (m *UnsyncListMock) AddProofMinimockCounter() uint64
AddProofMinimockCounter returns a count of UnsyncListMock.AddProofFunc invocations
func (*UnsyncListMock) AddProofMinimockPreCounter ¶ added in v0.8.0
func (m *UnsyncListMock) AddProofMinimockPreCounter() uint64
AddProofMinimockPreCounter returns the value of UnsyncListMock.AddProof invocations
func (*UnsyncListMock) AllMocksCalled ¶ added in v0.6.3
func (m *UnsyncListMock) AllMocksCalled() bool
AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())
func (*UnsyncListMock) ApproveSync ¶ added in v0.8.0
func (m *UnsyncListMock) ApproveSync(p []core.RecordRef)
ApproveSync implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) ApproveSyncFinished ¶ added in v0.8.0
func (m *UnsyncListMock) ApproveSyncFinished() bool
ApproveSyncFinished returns true if mock invocations count is ok
func (*UnsyncListMock) ApproveSyncMinimockCounter ¶ added in v0.8.0
func (m *UnsyncListMock) ApproveSyncMinimockCounter() uint64
ApproveSyncMinimockCounter returns a count of UnsyncListMock.ApproveSyncFunc invocations
func (*UnsyncListMock) ApproveSyncMinimockPreCounter ¶ added in v0.8.0
func (m *UnsyncListMock) ApproveSyncMinimockPreCounter() uint64
ApproveSyncMinimockPreCounter returns the value of UnsyncListMock.ApproveSync invocations
func (*UnsyncListMock) CalculateHash ¶ added in v0.6.3
func (m *UnsyncListMock) CalculateHash(p core.PlatformCryptographyScheme) (r []byte, r1 error)
CalculateHash implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) CalculateHashFinished ¶ added in v0.7.5
func (m *UnsyncListMock) CalculateHashFinished() bool
CalculateHashFinished returns true if mock invocations count is ok
func (*UnsyncListMock) CalculateHashMinimockCounter ¶ added in v0.6.3
func (m *UnsyncListMock) CalculateHashMinimockCounter() uint64
CalculateHashMinimockCounter returns a count of UnsyncListMock.CalculateHashFunc invocations
func (*UnsyncListMock) CalculateHashMinimockPreCounter ¶ added in v0.6.3
func (m *UnsyncListMock) CalculateHashMinimockPreCounter() uint64
CalculateHashMinimockPreCounter returns the value of UnsyncListMock.CalculateHash invocations
func (*UnsyncListMock) CheckMocksCalled ¶ added in v0.6.3
func (m *UnsyncListMock) CheckMocksCalled()
CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*UnsyncListMock) Finish ¶ added in v0.6.3
func (m *UnsyncListMock) Finish()
Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller
func (*UnsyncListMock) GetActiveNode ¶ added in v0.7.5
func (m *UnsyncListMock) GetActiveNode(p core.RecordRef) (r core.Node)
GetActiveNode implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) GetActiveNodeFinished ¶ added in v0.7.5
func (m *UnsyncListMock) GetActiveNodeFinished() bool
GetActiveNodeFinished returns true if mock invocations count is ok
func (*UnsyncListMock) GetActiveNodeMinimockCounter ¶ added in v0.7.5
func (m *UnsyncListMock) GetActiveNodeMinimockCounter() uint64
GetActiveNodeMinimockCounter returns a count of UnsyncListMock.GetActiveNodeFunc invocations
func (*UnsyncListMock) GetActiveNodeMinimockPreCounter ¶ added in v0.7.5
func (m *UnsyncListMock) GetActiveNodeMinimockPreCounter() uint64
GetActiveNodeMinimockPreCounter returns the value of UnsyncListMock.GetActiveNode invocations
func (*UnsyncListMock) GetActiveNodes ¶ added in v0.7.5
func (m *UnsyncListMock) GetActiveNodes() (r []core.Node)
GetActiveNodes implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) GetActiveNodesFinished ¶ added in v0.7.5
func (m *UnsyncListMock) GetActiveNodesFinished() bool
GetActiveNodesFinished returns true if mock invocations count is ok
func (*UnsyncListMock) GetActiveNodesMinimockCounter ¶ added in v0.7.5
func (m *UnsyncListMock) GetActiveNodesMinimockCounter() uint64
GetActiveNodesMinimockCounter returns a count of UnsyncListMock.GetActiveNodesFunc invocations
func (*UnsyncListMock) GetActiveNodesMinimockPreCounter ¶ added in v0.7.5
func (m *UnsyncListMock) GetActiveNodesMinimockPreCounter() uint64
GetActiveNodesMinimockPreCounter returns the value of UnsyncListMock.GetActiveNodes invocations
func (*UnsyncListMock) GetClaims ¶ added in v0.8.0
func (m *UnsyncListMock) GetClaims(p core.RecordRef) (r []packets.ReferendumClaim)
GetClaims implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) GetClaimsFinished ¶ added in v0.8.0
func (m *UnsyncListMock) GetClaimsFinished() bool
GetClaimsFinished returns true if mock invocations count is ok
func (*UnsyncListMock) GetClaimsMinimockCounter ¶ added in v0.8.0
func (m *UnsyncListMock) GetClaimsMinimockCounter() uint64
GetClaimsMinimockCounter returns a count of UnsyncListMock.GetClaimsFunc invocations
func (*UnsyncListMock) GetClaimsMinimockPreCounter ¶ added in v0.8.0
func (m *UnsyncListMock) GetClaimsMinimockPreCounter() uint64
GetClaimsMinimockPreCounter returns the value of UnsyncListMock.GetClaims invocations
func (*UnsyncListMock) GetGlobuleHashSignature ¶ added in v0.8.0
func (m *UnsyncListMock) GetGlobuleHashSignature(p core.RecordRef) (r packets.GlobuleHashSignature, r1 bool)
GetGlobuleHashSignature implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) GetGlobuleHashSignatureFinished ¶ added in v0.8.0
func (m *UnsyncListMock) GetGlobuleHashSignatureFinished() bool
GetGlobuleHashSignatureFinished returns true if mock invocations count is ok
func (*UnsyncListMock) GetGlobuleHashSignatureMinimockCounter ¶ added in v0.8.0
func (m *UnsyncListMock) GetGlobuleHashSignatureMinimockCounter() uint64
GetGlobuleHashSignatureMinimockCounter returns a count of UnsyncListMock.GetGlobuleHashSignatureFunc invocations
func (*UnsyncListMock) GetGlobuleHashSignatureMinimockPreCounter ¶ added in v0.8.0
func (m *UnsyncListMock) GetGlobuleHashSignatureMinimockPreCounter() uint64
GetGlobuleHashSignatureMinimockPreCounter returns the value of UnsyncListMock.GetGlobuleHashSignature invocations
func (*UnsyncListMock) GetMergedCopy ¶ added in v0.8.0
func (m *UnsyncListMock) GetMergedCopy() (r *network.MergedListCopy, r1 error)
GetMergedCopy implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) GetMergedCopyFinished ¶ added in v0.8.0
func (m *UnsyncListMock) GetMergedCopyFinished() bool
GetMergedCopyFinished returns true if mock invocations count is ok
func (*UnsyncListMock) GetMergedCopyMinimockCounter ¶ added in v0.8.0
func (m *UnsyncListMock) GetMergedCopyMinimockCounter() uint64
GetMergedCopyMinimockCounter returns a count of UnsyncListMock.GetMergedCopyFunc invocations
func (*UnsyncListMock) GetMergedCopyMinimockPreCounter ¶ added in v0.8.0
func (m *UnsyncListMock) GetMergedCopyMinimockPreCounter() uint64
GetMergedCopyMinimockPreCounter returns the value of UnsyncListMock.GetMergedCopy invocations
func (*UnsyncListMock) GetProof ¶ added in v0.8.0
func (m *UnsyncListMock) GetProof(p core.RecordRef) (r *packets.NodePulseProof)
GetProof implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) GetProofFinished ¶ added in v0.8.0
func (m *UnsyncListMock) GetProofFinished() bool
GetProofFinished returns true if mock invocations count is ok
func (*UnsyncListMock) GetProofMinimockCounter ¶ added in v0.8.0
func (m *UnsyncListMock) GetProofMinimockCounter() uint64
GetProofMinimockCounter returns a count of UnsyncListMock.GetProofFunc invocations
func (*UnsyncListMock) GetProofMinimockPreCounter ¶ added in v0.8.0
func (m *UnsyncListMock) GetProofMinimockPreCounter() uint64
GetProofMinimockPreCounter returns the value of UnsyncListMock.GetProof invocations
func (*UnsyncListMock) IndexToRef ¶ added in v0.6.3
func (m *UnsyncListMock) IndexToRef(p int) (r core.RecordRef, r1 error)
IndexToRef implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) IndexToRefFinished ¶ added in v0.7.5
func (m *UnsyncListMock) IndexToRefFinished() bool
IndexToRefFinished returns true if mock invocations count is ok
func (*UnsyncListMock) IndexToRefMinimockCounter ¶ added in v0.6.3
func (m *UnsyncListMock) IndexToRefMinimockCounter() uint64
IndexToRefMinimockCounter returns a count of UnsyncListMock.IndexToRefFunc invocations
func (*UnsyncListMock) IndexToRefMinimockPreCounter ¶ added in v0.6.3
func (m *UnsyncListMock) IndexToRefMinimockPreCounter() uint64
IndexToRefMinimockPreCounter returns the value of UnsyncListMock.IndexToRef invocations
func (*UnsyncListMock) Length ¶ added in v0.6.3
func (m *UnsyncListMock) Length() (r int)
Length implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) LengthFinished ¶ added in v0.7.5
func (m *UnsyncListMock) LengthFinished() bool
LengthFinished returns true if mock invocations count is ok
func (*UnsyncListMock) LengthMinimockCounter ¶ added in v0.6.3
func (m *UnsyncListMock) LengthMinimockCounter() uint64
LengthMinimockCounter returns a count of UnsyncListMock.LengthFunc invocations
func (*UnsyncListMock) LengthMinimockPreCounter ¶ added in v0.6.3
func (m *UnsyncListMock) LengthMinimockPreCounter() uint64
LengthMinimockPreCounter returns the value of UnsyncListMock.Length invocations
func (*UnsyncListMock) MinimockFinish ¶ added in v0.6.3
func (m *UnsyncListMock) MinimockFinish()
MinimockFinish checks that all mocked methods of the interface have been called at least once
func (*UnsyncListMock) MinimockWait ¶ added in v0.6.3
func (m *UnsyncListMock) MinimockWait(timeout time.Duration)
MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller
func (*UnsyncListMock) RefToIndex ¶ added in v0.6.3
func (m *UnsyncListMock) RefToIndex(p core.RecordRef) (r int, r1 error)
RefToIndex implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) RefToIndexFinished ¶ added in v0.7.5
func (m *UnsyncListMock) RefToIndexFinished() bool
RefToIndexFinished returns true if mock invocations count is ok
func (*UnsyncListMock) RefToIndexMinimockCounter ¶ added in v0.6.3
func (m *UnsyncListMock) RefToIndexMinimockCounter() uint64
RefToIndexMinimockCounter returns a count of UnsyncListMock.RefToIndexFunc invocations
func (*UnsyncListMock) RefToIndexMinimockPreCounter ¶ added in v0.6.3
func (m *UnsyncListMock) RefToIndexMinimockPreCounter() uint64
RefToIndexMinimockPreCounter returns the value of UnsyncListMock.RefToIndex invocations
func (*UnsyncListMock) RemoveNode ¶ added in v0.8.0
func (m *UnsyncListMock) RemoveNode(p core.RecordRef)
RemoveNode implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) RemoveNodeFinished ¶ added in v0.8.0
func (m *UnsyncListMock) RemoveNodeFinished() bool
RemoveNodeFinished returns true if mock invocations count is ok
func (*UnsyncListMock) RemoveNodeMinimockCounter ¶ added in v0.8.0
func (m *UnsyncListMock) RemoveNodeMinimockCounter() uint64
RemoveNodeMinimockCounter returns a count of UnsyncListMock.RemoveNodeFunc invocations
func (*UnsyncListMock) RemoveNodeMinimockPreCounter ¶ added in v0.8.0
func (m *UnsyncListMock) RemoveNodeMinimockPreCounter() uint64
RemoveNodeMinimockPreCounter returns the value of UnsyncListMock.RemoveNode invocations
func (*UnsyncListMock) SetGlobuleHashSignature ¶ added in v0.8.0
func (m *UnsyncListMock) SetGlobuleHashSignature(p core.RecordRef, p1 packets.GlobuleHashSignature)
SetGlobuleHashSignature implements github.com/insolar/insolar/network.UnsyncList interface
func (*UnsyncListMock) SetGlobuleHashSignatureFinished ¶ added in v0.8.0
func (m *UnsyncListMock) SetGlobuleHashSignatureFinished() bool
SetGlobuleHashSignatureFinished returns true if mock invocations count is ok
func (*UnsyncListMock) SetGlobuleHashSignatureMinimockCounter ¶ added in v0.8.0
func (m *UnsyncListMock) SetGlobuleHashSignatureMinimockCounter() uint64
SetGlobuleHashSignatureMinimockCounter returns a count of UnsyncListMock.SetGlobuleHashSignatureFunc invocations
func (*UnsyncListMock) SetGlobuleHashSignatureMinimockPreCounter ¶ added in v0.8.0
func (m *UnsyncListMock) SetGlobuleHashSignatureMinimockPreCounter() uint64
SetGlobuleHashSignatureMinimockPreCounter returns the value of UnsyncListMock.SetGlobuleHashSignature invocations
func (*UnsyncListMock) ValidateCallCounters ¶ added in v0.6.3
func (m *UnsyncListMock) ValidateCallCounters()
ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*UnsyncListMock) Wait ¶ added in v0.6.3
func (m *UnsyncListMock) Wait(timeout time.Duration)
Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller
type UnsyncListMockAddClaimsExpectation ¶ added in v0.7.5
type UnsyncListMockAddClaimsExpectation struct {
// contains filtered or unexported fields
}
func (*UnsyncListMockAddClaimsExpectation) Return ¶ added in v0.8.0
func (e *UnsyncListMockAddClaimsExpectation) Return(r error)
type UnsyncListMockAddClaimsInput ¶ added in v0.7.5
type UnsyncListMockAddClaimsInput struct {
// contains filtered or unexported fields
}
type UnsyncListMockAddClaimsResult ¶ added in v0.8.0
type UnsyncListMockAddClaimsResult struct {
// contains filtered or unexported fields
}
type UnsyncListMockAddNodeExpectation ¶ added in v0.8.0
type UnsyncListMockAddNodeExpectation struct {
// contains filtered or unexported fields
}
type UnsyncListMockAddNodeInput ¶ added in v0.8.0
type UnsyncListMockAddNodeInput struct {
// contains filtered or unexported fields
}
type UnsyncListMockAddProofExpectation ¶ added in v0.8.0
type UnsyncListMockAddProofExpectation struct {
// contains filtered or unexported fields
}
type UnsyncListMockAddProofInput ¶ added in v0.8.0
type UnsyncListMockAddProofInput struct {
// contains filtered or unexported fields
}
type UnsyncListMockApproveSyncExpectation ¶ added in v0.8.0
type UnsyncListMockApproveSyncExpectation struct {
// contains filtered or unexported fields
}
type UnsyncListMockApproveSyncInput ¶ added in v0.8.0
type UnsyncListMockApproveSyncInput struct {
// contains filtered or unexported fields
}
type UnsyncListMockCalculateHashExpectation ¶ added in v0.7.5
type UnsyncListMockCalculateHashExpectation struct {
// contains filtered or unexported fields
}
func (*UnsyncListMockCalculateHashExpectation) Return ¶ added in v0.7.5
func (e *UnsyncListMockCalculateHashExpectation) Return(r []byte, r1 error)
type UnsyncListMockCalculateHashInput ¶ added in v0.8.0
type UnsyncListMockCalculateHashInput struct {
// contains filtered or unexported fields
}
type UnsyncListMockCalculateHashResult ¶ added in v0.7.5
type UnsyncListMockCalculateHashResult struct {
// contains filtered or unexported fields
}
type UnsyncListMockGetActiveNodeExpectation ¶ added in v0.7.5
type UnsyncListMockGetActiveNodeExpectation struct {
// contains filtered or unexported fields
}
func (*UnsyncListMockGetActiveNodeExpectation) Return ¶ added in v0.7.5
func (e *UnsyncListMockGetActiveNodeExpectation) Return(r core.Node)
type UnsyncListMockGetActiveNodeInput ¶ added in v0.7.5
type UnsyncListMockGetActiveNodeInput struct {
// contains filtered or unexported fields
}
type UnsyncListMockGetActiveNodeResult ¶ added in v0.7.5
type UnsyncListMockGetActiveNodeResult struct {
// contains filtered or unexported fields
}
type UnsyncListMockGetActiveNodesExpectation ¶ added in v0.7.5
type UnsyncListMockGetActiveNodesExpectation struct {
// contains filtered or unexported fields
}
func (*UnsyncListMockGetActiveNodesExpectation) Return ¶ added in v0.7.5
func (e *UnsyncListMockGetActiveNodesExpectation) Return(r []core.Node)
type UnsyncListMockGetActiveNodesResult ¶ added in v0.7.5
type UnsyncListMockGetActiveNodesResult struct {
// contains filtered or unexported fields
}
type UnsyncListMockGetClaimsExpectation ¶ added in v0.8.0
type UnsyncListMockGetClaimsExpectation struct {
// contains filtered or unexported fields
}
func (*UnsyncListMockGetClaimsExpectation) Return ¶ added in v0.8.0
func (e *UnsyncListMockGetClaimsExpectation) Return(r []packets.ReferendumClaim)
type UnsyncListMockGetClaimsInput ¶ added in v0.8.0
type UnsyncListMockGetClaimsInput struct {
// contains filtered or unexported fields
}
type UnsyncListMockGetClaimsResult ¶ added in v0.8.0
type UnsyncListMockGetClaimsResult struct {
// contains filtered or unexported fields
}
type UnsyncListMockGetGlobuleHashSignatureExpectation ¶ added in v0.8.0
type UnsyncListMockGetGlobuleHashSignatureExpectation struct {
// contains filtered or unexported fields
}
func (*UnsyncListMockGetGlobuleHashSignatureExpectation) Return ¶ added in v0.8.0
func (e *UnsyncListMockGetGlobuleHashSignatureExpectation) Return(r packets.GlobuleHashSignature, r1 bool)
type UnsyncListMockGetGlobuleHashSignatureInput ¶ added in v0.8.0
type UnsyncListMockGetGlobuleHashSignatureInput struct {
// contains filtered or unexported fields
}
type UnsyncListMockGetGlobuleHashSignatureResult ¶ added in v0.8.0
type UnsyncListMockGetGlobuleHashSignatureResult struct {
// contains filtered or unexported fields
}
type UnsyncListMockGetMergedCopyExpectation ¶ added in v0.8.0
type UnsyncListMockGetMergedCopyExpectation struct {
// contains filtered or unexported fields
}
func (*UnsyncListMockGetMergedCopyExpectation) Return ¶ added in v0.8.0
func (e *UnsyncListMockGetMergedCopyExpectation) Return(r *network.MergedListCopy, r1 error)
type UnsyncListMockGetMergedCopyResult ¶ added in v0.8.0
type UnsyncListMockGetMergedCopyResult struct {
// contains filtered or unexported fields
}
type UnsyncListMockGetProofExpectation ¶ added in v0.8.0
type UnsyncListMockGetProofExpectation struct {
// contains filtered or unexported fields
}
func (*UnsyncListMockGetProofExpectation) Return ¶ added in v0.8.0
func (e *UnsyncListMockGetProofExpectation) Return(r *packets.NodePulseProof)
type UnsyncListMockGetProofInput ¶ added in v0.8.0
type UnsyncListMockGetProofInput struct {
// contains filtered or unexported fields
}
type UnsyncListMockGetProofResult ¶ added in v0.8.0
type UnsyncListMockGetProofResult struct {
// contains filtered or unexported fields
}
type UnsyncListMockIndexToRefExpectation ¶ added in v0.7.5
type UnsyncListMockIndexToRefExpectation struct {
// contains filtered or unexported fields
}
type UnsyncListMockIndexToRefInput ¶ added in v0.7.5
type UnsyncListMockIndexToRefInput struct {
// contains filtered or unexported fields
}
type UnsyncListMockIndexToRefResult ¶ added in v0.7.5
type UnsyncListMockIndexToRefResult struct {
// contains filtered or unexported fields
}
type UnsyncListMockLengthExpectation ¶ added in v0.7.5
type UnsyncListMockLengthExpectation struct {
// contains filtered or unexported fields
}
func (*UnsyncListMockLengthExpectation) Return ¶ added in v0.7.5
func (e *UnsyncListMockLengthExpectation) Return(r int)
type UnsyncListMockLengthResult ¶ added in v0.7.5
type UnsyncListMockLengthResult struct {
// contains filtered or unexported fields
}
type UnsyncListMockRefToIndexExpectation ¶ added in v0.7.5
type UnsyncListMockRefToIndexExpectation struct {
// contains filtered or unexported fields
}
func (*UnsyncListMockRefToIndexExpectation) Return ¶ added in v0.7.5
func (e *UnsyncListMockRefToIndexExpectation) Return(r int, r1 error)
type UnsyncListMockRefToIndexInput ¶ added in v0.7.5
type UnsyncListMockRefToIndexInput struct {
// contains filtered or unexported fields
}
type UnsyncListMockRefToIndexResult ¶ added in v0.7.5
type UnsyncListMockRefToIndexResult struct {
// contains filtered or unexported fields
}
type UnsyncListMockRemoveNodeExpectation ¶ added in v0.8.0
type UnsyncListMockRemoveNodeExpectation struct {
// contains filtered or unexported fields
}
type UnsyncListMockRemoveNodeInput ¶ added in v0.8.0
type UnsyncListMockRemoveNodeInput struct {
// contains filtered or unexported fields
}
type UnsyncListMockSetGlobuleHashSignatureExpectation ¶ added in v0.8.0
type UnsyncListMockSetGlobuleHashSignatureExpectation struct {
// contains filtered or unexported fields
}
type UnsyncListMockSetGlobuleHashSignatureInput ¶ added in v0.8.0
type UnsyncListMockSetGlobuleHashSignatureInput struct {
// contains filtered or unexported fields
}