Documentation ¶
Index ¶
- type AccessorMock
- func (mmGetActiveNode *AccessorMock) GetActiveNode(ref insolar.Reference) (n1 insolar.NetworkNode)
- func (mmGetActiveNode *AccessorMock) GetActiveNodeAfterCounter() uint64
- func (mmGetActiveNode *AccessorMock) GetActiveNodeBeforeCounter() uint64
- func (mmGetActiveNodeByAddr *AccessorMock) GetActiveNodeByAddr(address string) (n1 insolar.NetworkNode)
- func (mmGetActiveNodeByAddr *AccessorMock) GetActiveNodeByAddrAfterCounter() uint64
- func (mmGetActiveNodeByAddr *AccessorMock) GetActiveNodeByAddrBeforeCounter() uint64
- func (mmGetActiveNodeByShortID *AccessorMock) GetActiveNodeByShortID(shortID insolar.ShortNodeID) (n1 insolar.NetworkNode)
- func (mmGetActiveNodeByShortID *AccessorMock) GetActiveNodeByShortIDAfterCounter() uint64
- func (mmGetActiveNodeByShortID *AccessorMock) GetActiveNodeByShortIDBeforeCounter() uint64
- func (mmGetActiveNodes *AccessorMock) GetActiveNodes() (na1 []insolar.NetworkNode)
- func (mmGetActiveNodes *AccessorMock) GetActiveNodesAfterCounter() uint64
- func (mmGetActiveNodes *AccessorMock) GetActiveNodesBeforeCounter() uint64
- func (mmGetWorkingNode *AccessorMock) GetWorkingNode(ref insolar.Reference) (n1 insolar.NetworkNode)
- func (mmGetWorkingNode *AccessorMock) GetWorkingNodeAfterCounter() uint64
- func (mmGetWorkingNode *AccessorMock) GetWorkingNodeBeforeCounter() uint64
- func (mmGetWorkingNodes *AccessorMock) GetWorkingNodes() (na1 []insolar.NetworkNode)
- func (mmGetWorkingNodes *AccessorMock) GetWorkingNodesAfterCounter() uint64
- func (mmGetWorkingNodes *AccessorMock) GetWorkingNodesBeforeCounter() uint64
- func (m *AccessorMock) MinimockFinish()
- func (m *AccessorMock) MinimockGetActiveNodeByAddrDone() bool
- func (m *AccessorMock) MinimockGetActiveNodeByAddrInspect()
- func (m *AccessorMock) MinimockGetActiveNodeByShortIDDone() bool
- func (m *AccessorMock) MinimockGetActiveNodeByShortIDInspect()
- func (m *AccessorMock) MinimockGetActiveNodeDone() bool
- func (m *AccessorMock) MinimockGetActiveNodeInspect()
- func (m *AccessorMock) MinimockGetActiveNodesDone() bool
- func (m *AccessorMock) MinimockGetActiveNodesInspect()
- func (m *AccessorMock) MinimockGetWorkingNodeDone() bool
- func (m *AccessorMock) MinimockGetWorkingNodeInspect()
- func (m *AccessorMock) MinimockGetWorkingNodesDone() bool
- func (m *AccessorMock) MinimockGetWorkingNodesInspect()
- func (m *AccessorMock) MinimockWait(timeout mm_time.Duration)
- type AccessorMockGetActiveNodeByAddrExpectation
- type AccessorMockGetActiveNodeByAddrParams
- type AccessorMockGetActiveNodeByAddrResults
- type AccessorMockGetActiveNodeByShortIDExpectation
- type AccessorMockGetActiveNodeByShortIDParams
- type AccessorMockGetActiveNodeByShortIDResults
- type AccessorMockGetActiveNodeExpectation
- type AccessorMockGetActiveNodeParams
- type AccessorMockGetActiveNodeResults
- type AccessorMockGetActiveNodesExpectation
- type AccessorMockGetActiveNodesResults
- type AccessorMockGetWorkingNodeExpectation
- type AccessorMockGetWorkingNodeParams
- type AccessorMockGetWorkingNodeResults
- type AccessorMockGetWorkingNodesExpectation
- type AccessorMockGetWorkingNodesResults
- type CloudHashStorageMock
- func (mmAppend *CloudHashStorageMock) Append(pulse insolar.PulseNumber, cloudHash []byte) (err error)
- func (mmAppend *CloudHashStorageMock) AppendAfterCounter() uint64
- func (mmAppend *CloudHashStorageMock) AppendBeforeCounter() uint64
- func (mmForPulseNumber *CloudHashStorageMock) ForPulseNumber(pulse insolar.PulseNumber) (ba1 []byte, err error)
- func (mmForPulseNumber *CloudHashStorageMock) ForPulseNumberAfterCounter() uint64
- func (mmForPulseNumber *CloudHashStorageMock) ForPulseNumberBeforeCounter() uint64
- func (m *CloudHashStorageMock) MinimockAppendDone() bool
- func (m *CloudHashStorageMock) MinimockAppendInspect()
- func (m *CloudHashStorageMock) MinimockFinish()
- func (m *CloudHashStorageMock) MinimockForPulseNumberDone() bool
- func (m *CloudHashStorageMock) MinimockForPulseNumberInspect()
- func (m *CloudHashStorageMock) MinimockWait(timeout mm_time.Duration)
- type CloudHashStorageMockAppendExpectation
- type CloudHashStorageMockAppendParams
- type CloudHashStorageMockAppendResults
- type CloudHashStorageMockForPulseNumberExpectation
- type CloudHashStorageMockForPulseNumberParams
- type CloudHashStorageMockForPulseNumberResults
- type GatewayMock
- func (mmAuther *GatewayMock) Auther() (a1 mm_network.Auther)
- func (mmAuther *GatewayMock) AutherAfterCounter() uint64
- func (mmAuther *GatewayMock) AutherBeforeCounter() uint64
- func (mmBeforeRun *GatewayMock) BeforeRun(ctx context.Context, pulse insolar.Pulse)
- func (mmBeforeRun *GatewayMock) BeforeRunAfterCounter() uint64
- func (mmBeforeRun *GatewayMock) BeforeRunBeforeCounter() uint64
- func (mmBootstrapper *GatewayMock) Bootstrapper() (b1 mm_network.Bootstrapper)
- func (mmBootstrapper *GatewayMock) BootstrapperAfterCounter() uint64
- func (mmBootstrapper *GatewayMock) BootstrapperBeforeCounter() uint64
- func (mmEphemeralMode *GatewayMock) EphemeralMode(nodes []insolar.NetworkNode) (b1 bool)
- func (mmEphemeralMode *GatewayMock) EphemeralModeAfterCounter() uint64
- func (mmEphemeralMode *GatewayMock) EphemeralModeBeforeCounter() uint64
- func (mmFailState *GatewayMock) FailState(ctx context.Context, reason string)
- func (mmFailState *GatewayMock) FailStateAfterCounter() uint64
- func (mmFailState *GatewayMock) FailStateBeforeCounter() uint64
- func (mmGetState *GatewayMock) GetState() (n1 insolar.NetworkState)
- func (mmGetState *GatewayMock) GetStateAfterCounter() uint64
- func (mmGetState *GatewayMock) GetStateBeforeCounter() uint64
- func (m *GatewayMock) MinimockAutherDone() bool
- func (m *GatewayMock) MinimockAutherInspect()
- func (m *GatewayMock) MinimockBeforeRunDone() bool
- func (m *GatewayMock) MinimockBeforeRunInspect()
- func (m *GatewayMock) MinimockBootstrapperDone() bool
- func (m *GatewayMock) MinimockBootstrapperInspect()
- func (m *GatewayMock) MinimockEphemeralModeDone() bool
- func (m *GatewayMock) MinimockEphemeralModeInspect()
- func (m *GatewayMock) MinimockFailStateDone() bool
- func (m *GatewayMock) MinimockFailStateInspect()
- func (m *GatewayMock) MinimockFinish()
- func (m *GatewayMock) MinimockGetStateDone() bool
- func (m *GatewayMock) MinimockGetStateInspect()
- func (m *GatewayMock) MinimockNewGatewayDone() bool
- func (m *GatewayMock) MinimockNewGatewayInspect()
- func (m *GatewayMock) MinimockOnConsensusFinishedDone() bool
- func (m *GatewayMock) MinimockOnConsensusFinishedInspect()
- func (m *GatewayMock) MinimockOnPulseFromConsensusDone() bool
- func (m *GatewayMock) MinimockOnPulseFromConsensusInspect()
- func (m *GatewayMock) MinimockOnPulseFromPulsarDone() bool
- func (m *GatewayMock) MinimockOnPulseFromPulsarInspect()
- func (m *GatewayMock) MinimockRunDone() bool
- func (m *GatewayMock) MinimockRunInspect()
- func (m *GatewayMock) MinimockUpdateStateDone() bool
- func (m *GatewayMock) MinimockUpdateStateInspect()
- func (m *GatewayMock) MinimockWait(timeout mm_time.Duration)
- func (mmNewGateway *GatewayMock) NewGateway(ctx context.Context, n1 insolar.NetworkState) (g1 mm_network.Gateway)
- func (mmNewGateway *GatewayMock) NewGatewayAfterCounter() uint64
- func (mmNewGateway *GatewayMock) NewGatewayBeforeCounter() uint64
- func (mmOnConsensusFinished *GatewayMock) OnConsensusFinished(ctx context.Context, report mm_network.Report)
- func (mmOnConsensusFinished *GatewayMock) OnConsensusFinishedAfterCounter() uint64
- func (mmOnConsensusFinished *GatewayMock) OnConsensusFinishedBeforeCounter() uint64
- func (mmOnPulseFromConsensus *GatewayMock) OnPulseFromConsensus(ctx context.Context, p1 insolar.Pulse)
- func (mmOnPulseFromConsensus *GatewayMock) OnPulseFromConsensusAfterCounter() uint64
- func (mmOnPulseFromConsensus *GatewayMock) OnPulseFromConsensusBeforeCounter() uint64
- func (mmOnPulseFromPulsar *GatewayMock) OnPulseFromPulsar(ctx context.Context, p1 insolar.Pulse, r1 mm_network.ReceivedPacket)
- func (mmOnPulseFromPulsar *GatewayMock) OnPulseFromPulsarAfterCounter() uint64
- func (mmOnPulseFromPulsar *GatewayMock) OnPulseFromPulsarBeforeCounter() uint64
- func (mmRun *GatewayMock) Run(ctx context.Context, pulse insolar.Pulse)
- func (mmRun *GatewayMock) RunAfterCounter() uint64
- func (mmRun *GatewayMock) RunBeforeCounter() uint64
- func (mmUpdateState *GatewayMock) UpdateState(ctx context.Context, pulseNumber insolar.PulseNumber, ...)
- func (mmUpdateState *GatewayMock) UpdateStateAfterCounter() uint64
- func (mmUpdateState *GatewayMock) UpdateStateBeforeCounter() uint64
- type GatewayMockAutherExpectation
- type GatewayMockAutherResults
- type GatewayMockBeforeRunExpectation
- type GatewayMockBeforeRunParams
- type GatewayMockBootstrapperExpectation
- type GatewayMockBootstrapperResults
- type GatewayMockEphemeralModeExpectation
- type GatewayMockEphemeralModeParams
- type GatewayMockEphemeralModeResults
- type GatewayMockFailStateExpectation
- type GatewayMockFailStateParams
- type GatewayMockGetStateExpectation
- type GatewayMockGetStateResults
- type GatewayMockNewGatewayExpectation
- type GatewayMockNewGatewayParams
- type GatewayMockNewGatewayResults
- type GatewayMockOnConsensusFinishedExpectation
- type GatewayMockOnConsensusFinishedParams
- type GatewayMockOnPulseFromConsensusExpectation
- type GatewayMockOnPulseFromConsensusParams
- type GatewayMockOnPulseFromPulsarExpectation
- type GatewayMockOnPulseFromPulsarParams
- type GatewayMockRunExpectation
- type GatewayMockRunParams
- type GatewayMockUpdateStateExpectation
- type GatewayMockUpdateStateParams
- type GatewayerMock
- func (mmGateway *GatewayerMock) Gateway() (g1 mm_network.Gateway)
- func (mmGateway *GatewayerMock) GatewayAfterCounter() uint64
- func (mmGateway *GatewayerMock) GatewayBeforeCounter() uint64
- func (m *GatewayerMock) MinimockFinish()
- func (m *GatewayerMock) MinimockGatewayDone() bool
- func (m *GatewayerMock) MinimockGatewayInspect()
- func (m *GatewayerMock) MinimockSwitchStateDone() bool
- func (m *GatewayerMock) MinimockSwitchStateInspect()
- func (m *GatewayerMock) MinimockWait(timeout mm_time.Duration)
- func (mmSwitchState *GatewayerMock) SwitchState(ctx context.Context, state insolar.NetworkState, pulse insolar.Pulse)
- func (mmSwitchState *GatewayerMock) SwitchStateAfterCounter() uint64
- func (mmSwitchState *GatewayerMock) SwitchStateBeforeCounter() uint64
- type GatewayerMockGatewayExpectation
- type GatewayerMockGatewayResults
- type GatewayerMockSwitchStateExpectation
- type GatewayerMockSwitchStateParams
- type HostNetworkMock
- func (mmBuildResponse *HostNetworkMock) BuildResponse(ctx context.Context, request mm_network.Packet, responseData interface{}) (p1 mm_network.Packet)
- func (mmBuildResponse *HostNetworkMock) BuildResponseAfterCounter() uint64
- func (mmBuildResponse *HostNetworkMock) BuildResponseBeforeCounter() uint64
- func (m *HostNetworkMock) MinimockBuildResponseDone() bool
- func (m *HostNetworkMock) MinimockBuildResponseInspect()
- func (m *HostNetworkMock) MinimockFinish()
- func (m *HostNetworkMock) MinimockPublicAddressDone() bool
- func (m *HostNetworkMock) MinimockPublicAddressInspect()
- func (m *HostNetworkMock) MinimockRegisterRequestHandlerDone() bool
- func (m *HostNetworkMock) MinimockRegisterRequestHandlerInspect()
- func (m *HostNetworkMock) MinimockSendRequestDone() bool
- func (m *HostNetworkMock) MinimockSendRequestInspect()
- func (m *HostNetworkMock) MinimockSendRequestToHostDone() bool
- func (m *HostNetworkMock) MinimockSendRequestToHostInspect()
- func (m *HostNetworkMock) MinimockStartDone() bool
- func (m *HostNetworkMock) MinimockStartInspect()
- func (m *HostNetworkMock) MinimockStopDone() bool
- func (m *HostNetworkMock) MinimockStopInspect()
- func (m *HostNetworkMock) MinimockWait(timeout mm_time.Duration)
- func (mmPublicAddress *HostNetworkMock) PublicAddress() (s1 string)
- func (mmPublicAddress *HostNetworkMock) PublicAddressAfterCounter() uint64
- func (mmPublicAddress *HostNetworkMock) PublicAddressBeforeCounter() uint64
- func (mmRegisterRequestHandler *HostNetworkMock) RegisterRequestHandler(t types.PacketType, handler mm_network.RequestHandler)
- func (mmRegisterRequestHandler *HostNetworkMock) RegisterRequestHandlerAfterCounter() uint64
- func (mmRegisterRequestHandler *HostNetworkMock) RegisterRequestHandlerBeforeCounter() uint64
- func (mmSendRequest *HostNetworkMock) SendRequest(ctx context.Context, t types.PacketType, requestData interface{}, ...) (f1 mm_network.Future, err error)
- func (mmSendRequest *HostNetworkMock) SendRequestAfterCounter() uint64
- func (mmSendRequest *HostNetworkMock) SendRequestBeforeCounter() uint64
- func (mmSendRequestToHost *HostNetworkMock) SendRequestToHost(ctx context.Context, t types.PacketType, requestData interface{}, ...) (f1 mm_network.Future, err error)
- func (mmSendRequestToHost *HostNetworkMock) SendRequestToHostAfterCounter() uint64
- func (mmSendRequestToHost *HostNetworkMock) SendRequestToHostBeforeCounter() uint64
- func (mmStart *HostNetworkMock) Start(ctx context.Context) (err error)
- func (mmStart *HostNetworkMock) StartAfterCounter() uint64
- func (mmStart *HostNetworkMock) StartBeforeCounter() uint64
- func (mmStop *HostNetworkMock) Stop(ctx context.Context) (err error)
- func (mmStop *HostNetworkMock) StopAfterCounter() uint64
- func (mmStop *HostNetworkMock) StopBeforeCounter() uint64
- type HostNetworkMockBuildResponseExpectation
- type HostNetworkMockBuildResponseParams
- type HostNetworkMockBuildResponseResults
- type HostNetworkMockPublicAddressExpectation
- type HostNetworkMockPublicAddressResults
- type HostNetworkMockRegisterRequestHandlerExpectation
- type HostNetworkMockRegisterRequestHandlerParams
- type HostNetworkMockSendRequestExpectation
- type HostNetworkMockSendRequestParams
- type HostNetworkMockSendRequestResults
- type HostNetworkMockSendRequestToHostExpectation
- type HostNetworkMockSendRequestToHostParams
- type HostNetworkMockSendRequestToHostResults
- type HostNetworkMockStartExpectation
- type HostNetworkMockStartParams
- type HostNetworkMockStartResults
- type HostNetworkMockStopExpectation
- type HostNetworkMockStopParams
- type HostNetworkMockStopResults
- type NetworkNodeMock
- func (mmAddress *NetworkNodeMock) Address() (s1 string)
- func (mmAddress *NetworkNodeMock) AddressAfterCounter() uint64
- func (mmAddress *NetworkNodeMock) AddressBeforeCounter() uint64
- func (mmGetGlobuleID *NetworkNodeMock) GetGlobuleID() (g1 mm_insolar.GlobuleID)
- func (mmGetGlobuleID *NetworkNodeMock) GetGlobuleIDAfterCounter() uint64
- func (mmGetGlobuleID *NetworkNodeMock) GetGlobuleIDBeforeCounter() uint64
- func (mmGetPower *NetworkNodeMock) GetPower() (p1 mm_insolar.Power)
- func (mmGetPower *NetworkNodeMock) GetPowerAfterCounter() uint64
- func (mmGetPower *NetworkNodeMock) GetPowerBeforeCounter() uint64
- func (mmGetState *NetworkNodeMock) GetState() (n1 mm_insolar.NodeState)
- func (mmGetState *NetworkNodeMock) GetStateAfterCounter() uint64
- func (mmGetState *NetworkNodeMock) GetStateBeforeCounter() uint64
- func (mmID *NetworkNodeMock) ID() (r1 mm_insolar.Reference)
- func (mmID *NetworkNodeMock) IDAfterCounter() uint64
- func (mmID *NetworkNodeMock) IDBeforeCounter() uint64
- func (mmLeavingETA *NetworkNodeMock) LeavingETA() (p1 mm_insolar.PulseNumber)
- func (mmLeavingETA *NetworkNodeMock) LeavingETAAfterCounter() uint64
- func (mmLeavingETA *NetworkNodeMock) LeavingETABeforeCounter() uint64
- func (m *NetworkNodeMock) MinimockAddressDone() bool
- func (m *NetworkNodeMock) MinimockAddressInspect()
- func (m *NetworkNodeMock) MinimockFinish()
- func (m *NetworkNodeMock) MinimockGetGlobuleIDDone() bool
- func (m *NetworkNodeMock) MinimockGetGlobuleIDInspect()
- func (m *NetworkNodeMock) MinimockGetPowerDone() bool
- func (m *NetworkNodeMock) MinimockGetPowerInspect()
- func (m *NetworkNodeMock) MinimockGetStateDone() bool
- func (m *NetworkNodeMock) MinimockGetStateInspect()
- func (m *NetworkNodeMock) MinimockIDDone() bool
- func (m *NetworkNodeMock) MinimockIDInspect()
- func (m *NetworkNodeMock) MinimockLeavingETADone() bool
- func (m *NetworkNodeMock) MinimockLeavingETAInspect()
- func (m *NetworkNodeMock) MinimockPublicKeyDone() bool
- func (m *NetworkNodeMock) MinimockPublicKeyInspect()
- func (m *NetworkNodeMock) MinimockRoleDone() bool
- func (m *NetworkNodeMock) MinimockRoleInspect()
- func (m *NetworkNodeMock) MinimockShortIDDone() bool
- func (m *NetworkNodeMock) MinimockShortIDInspect()
- func (m *NetworkNodeMock) MinimockVersionDone() bool
- func (m *NetworkNodeMock) MinimockVersionInspect()
- func (m *NetworkNodeMock) MinimockWait(timeout mm_time.Duration)
- func (mmPublicKey *NetworkNodeMock) PublicKey() (p1 crypto.PublicKey)
- func (mmPublicKey *NetworkNodeMock) PublicKeyAfterCounter() uint64
- func (mmPublicKey *NetworkNodeMock) PublicKeyBeforeCounter() uint64
- func (mmRole *NetworkNodeMock) Role() (s1 mm_insolar.StaticRole)
- func (mmRole *NetworkNodeMock) RoleAfterCounter() uint64
- func (mmRole *NetworkNodeMock) RoleBeforeCounter() uint64
- func (mmShortID *NetworkNodeMock) ShortID() (s1 mm_insolar.ShortNodeID)
- func (mmShortID *NetworkNodeMock) ShortIDAfterCounter() uint64
- func (mmShortID *NetworkNodeMock) ShortIDBeforeCounter() uint64
- func (mmVersion *NetworkNodeMock) Version() (s1 string)
- func (mmVersion *NetworkNodeMock) VersionAfterCounter() uint64
- func (mmVersion *NetworkNodeMock) VersionBeforeCounter() uint64
- type NetworkNodeMockAddressExpectation
- type NetworkNodeMockAddressResults
- type NetworkNodeMockGetGlobuleIDExpectation
- type NetworkNodeMockGetGlobuleIDResults
- type NetworkNodeMockGetPowerExpectation
- type NetworkNodeMockGetPowerResults
- type NetworkNodeMockGetStateExpectation
- type NetworkNodeMockGetStateResults
- type NetworkNodeMockIDExpectation
- type NetworkNodeMockIDResults
- type NetworkNodeMockLeavingETAExpectation
- type NetworkNodeMockLeavingETAResults
- type NetworkNodeMockPublicKeyExpectation
- type NetworkNodeMockPublicKeyResults
- type NetworkNodeMockRoleExpectation
- type NetworkNodeMockRoleResults
- type NetworkNodeMockShortIDExpectation
- type NetworkNodeMockShortIDResults
- type NetworkNodeMockVersionExpectation
- type NetworkNodeMockVersionResults
- type NodeKeeperMock
- func (mmGetAccessor *NodeKeeperMock) GetAccessor(p1 insolar.PulseNumber) (a1 mm_network.Accessor)
- func (mmGetAccessor *NodeKeeperMock) GetAccessorAfterCounter() uint64
- func (mmGetAccessor *NodeKeeperMock) GetAccessorBeforeCounter() uint64
- func (mmGetOrigin *NodeKeeperMock) GetOrigin() (n1 insolar.NetworkNode)
- func (mmGetOrigin *NodeKeeperMock) GetOriginAfterCounter() uint64
- func (mmGetOrigin *NodeKeeperMock) GetOriginBeforeCounter() uint64
- func (m *NodeKeeperMock) MinimockFinish()
- func (m *NodeKeeperMock) MinimockGetAccessorDone() bool
- func (m *NodeKeeperMock) MinimockGetAccessorInspect()
- func (m *NodeKeeperMock) MinimockGetOriginDone() bool
- func (m *NodeKeeperMock) MinimockGetOriginInspect()
- func (m *NodeKeeperMock) MinimockMoveSyncToActiveDone() bool
- func (m *NodeKeeperMock) MinimockMoveSyncToActiveInspect()
- func (m *NodeKeeperMock) MinimockSetInitialSnapshotDone() bool
- func (m *NodeKeeperMock) MinimockSetInitialSnapshotInspect()
- func (m *NodeKeeperMock) MinimockSyncDone() bool
- func (m *NodeKeeperMock) MinimockSyncInspect()
- func (m *NodeKeeperMock) MinimockWait(timeout mm_time.Duration)
- func (mmMoveSyncToActive *NodeKeeperMock) MoveSyncToActive(ctx context.Context, p1 insolar.PulseNumber)
- func (mmMoveSyncToActive *NodeKeeperMock) MoveSyncToActiveAfterCounter() uint64
- func (mmMoveSyncToActive *NodeKeeperMock) MoveSyncToActiveBeforeCounter() uint64
- func (mmSetInitialSnapshot *NodeKeeperMock) SetInitialSnapshot(nodes []insolar.NetworkNode)
- func (mmSetInitialSnapshot *NodeKeeperMock) SetInitialSnapshotAfterCounter() uint64
- func (mmSetInitialSnapshot *NodeKeeperMock) SetInitialSnapshotBeforeCounter() uint64
- func (mmSync *NodeKeeperMock) Sync(ctx context.Context, p1 insolar.PulseNumber, na1 []insolar.NetworkNode)
- func (mmSync *NodeKeeperMock) SyncAfterCounter() uint64
- func (mmSync *NodeKeeperMock) SyncBeforeCounter() uint64
- type NodeKeeperMockGetAccessorExpectation
- type NodeKeeperMockGetAccessorParams
- type NodeKeeperMockGetAccessorResults
- type NodeKeeperMockGetOriginExpectation
- type NodeKeeperMockGetOriginResults
- type NodeKeeperMockMoveSyncToActiveExpectation
- type NodeKeeperMockMoveSyncToActiveParams
- type NodeKeeperMockSetInitialSnapshotExpectation
- type NodeKeeperMockSetInitialSnapshotParams
- type NodeKeeperMockSyncExpectation
- type NodeKeeperMockSyncParams
- type NodeNetworkMock
- func (mmGetAccessor *NodeNetworkMock) GetAccessor(p1 insolar.PulseNumber) (a1 mm_network.Accessor)
- func (mmGetAccessor *NodeNetworkMock) GetAccessorAfterCounter() uint64
- func (mmGetAccessor *NodeNetworkMock) GetAccessorBeforeCounter() uint64
- func (mmGetOrigin *NodeNetworkMock) GetOrigin() (n1 insolar.NetworkNode)
- func (mmGetOrigin *NodeNetworkMock) GetOriginAfterCounter() uint64
- func (mmGetOrigin *NodeNetworkMock) GetOriginBeforeCounter() uint64
- func (m *NodeNetworkMock) MinimockFinish()
- func (m *NodeNetworkMock) MinimockGetAccessorDone() bool
- func (m *NodeNetworkMock) MinimockGetAccessorInspect()
- func (m *NodeNetworkMock) MinimockGetOriginDone() bool
- func (m *NodeNetworkMock) MinimockGetOriginInspect()
- func (m *NodeNetworkMock) MinimockWait(timeout mm_time.Duration)
- type NodeNetworkMockGetAccessorExpectation
- type NodeNetworkMockGetAccessorParams
- type NodeNetworkMockGetAccessorResults
- type NodeNetworkMockGetOriginExpectation
- type NodeNetworkMockGetOriginResults
- type OriginProviderMock
- func (mmGetOrigin *OriginProviderMock) GetOrigin() (n1 insolar.NetworkNode)
- func (mmGetOrigin *OriginProviderMock) GetOriginAfterCounter() uint64
- func (mmGetOrigin *OriginProviderMock) GetOriginBeforeCounter() uint64
- func (m *OriginProviderMock) MinimockFinish()
- func (m *OriginProviderMock) MinimockGetOriginDone() bool
- func (m *OriginProviderMock) MinimockGetOriginInspect()
- func (m *OriginProviderMock) MinimockWait(timeout mm_time.Duration)
- type OriginProviderMockGetOriginExpectation
- type OriginProviderMockGetOriginResults
- type PulseAccessorMock
- func (mmGetLatestPulse *PulseAccessorMock) GetLatestPulse(ctx context.Context) (p1 insolar.Pulse, err error)
- func (mmGetLatestPulse *PulseAccessorMock) GetLatestPulseAfterCounter() uint64
- func (mmGetLatestPulse *PulseAccessorMock) GetLatestPulseBeforeCounter() uint64
- func (mmGetPulse *PulseAccessorMock) GetPulse(ctx context.Context, p1 insolar.PulseNumber) (p2 insolar.Pulse, err error)
- func (mmGetPulse *PulseAccessorMock) GetPulseAfterCounter() uint64
- func (mmGetPulse *PulseAccessorMock) GetPulseBeforeCounter() uint64
- func (m *PulseAccessorMock) MinimockFinish()
- func (m *PulseAccessorMock) MinimockGetLatestPulseDone() bool
- func (m *PulseAccessorMock) MinimockGetLatestPulseInspect()
- func (m *PulseAccessorMock) MinimockGetPulseDone() bool
- func (m *PulseAccessorMock) MinimockGetPulseInspect()
- func (m *PulseAccessorMock) MinimockWait(timeout mm_time.Duration)
- type PulseAccessorMockGetLatestPulseExpectation
- type PulseAccessorMockGetLatestPulseParams
- type PulseAccessorMockGetLatestPulseResults
- type PulseAccessorMockGetPulseExpectation
- type PulseAccessorMockGetPulseParams
- type PulseAccessorMockGetPulseResults
- type PulseAppenderMock
- func (mmAppendPulse *PulseAppenderMock) AppendPulse(ctx context.Context, pulse insolar.Pulse) (err error)
- func (mmAppendPulse *PulseAppenderMock) AppendPulseAfterCounter() uint64
- func (mmAppendPulse *PulseAppenderMock) AppendPulseBeforeCounter() uint64
- func (m *PulseAppenderMock) MinimockAppendPulseDone() bool
- func (m *PulseAppenderMock) MinimockAppendPulseInspect()
- func (m *PulseAppenderMock) MinimockFinish()
- func (m *PulseAppenderMock) MinimockWait(timeout mm_time.Duration)
- type PulseAppenderMockAppendPulseExpectation
- type PulseAppenderMockAppendPulseParams
- type PulseAppenderMockAppendPulseResults
- type PulseHandlerMock
- func (mmHandlePulse *PulseHandlerMock) HandlePulse(ctx context.Context, pulse insolar.Pulse, ...)
- func (mmHandlePulse *PulseHandlerMock) HandlePulseAfterCounter() uint64
- func (mmHandlePulse *PulseHandlerMock) HandlePulseBeforeCounter() uint64
- func (m *PulseHandlerMock) MinimockFinish()
- func (m *PulseHandlerMock) MinimockHandlePulseDone() bool
- func (m *PulseHandlerMock) MinimockHandlePulseInspect()
- func (m *PulseHandlerMock) MinimockWait(timeout mm_time.Duration)
- type PulseHandlerMockHandlePulseExpectation
- type PulseHandlerMockHandlePulseParams
- type PulseRangeHasherMock
- func (mmGetRangeHash *PulseRangeHasherMock) GetRangeHash(p1 insolar.PulseRange) (ba1 []byte, err error)
- func (mmGetRangeHash *PulseRangeHasherMock) GetRangeHashAfterCounter() uint64
- func (mmGetRangeHash *PulseRangeHasherMock) GetRangeHashBeforeCounter() uint64
- func (m *PulseRangeHasherMock) MinimockFinish()
- func (m *PulseRangeHasherMock) MinimockGetRangeHashDone() bool
- func (m *PulseRangeHasherMock) MinimockGetRangeHashInspect()
- func (m *PulseRangeHasherMock) MinimockValidateRangeHashDone() bool
- func (m *PulseRangeHasherMock) MinimockValidateRangeHashInspect()
- func (m *PulseRangeHasherMock) MinimockWait(timeout mm_time.Duration)
- func (mmValidateRangeHash *PulseRangeHasherMock) ValidateRangeHash(p1 insolar.PulseRange, ba1 []byte) (b1 bool, err error)
- func (mmValidateRangeHash *PulseRangeHasherMock) ValidateRangeHashAfterCounter() uint64
- func (mmValidateRangeHash *PulseRangeHasherMock) ValidateRangeHashBeforeCounter() uint64
- type PulseRangeHasherMockGetRangeHashExpectation
- type PulseRangeHasherMockGetRangeHashParams
- type PulseRangeHasherMockGetRangeHashResults
- type PulseRangeHasherMockValidateRangeHashExpectation
- type PulseRangeHasherMockValidateRangeHashParams
- type PulseRangeHasherMockValidateRangeHashResults
- type RoutingTableMock
- func (m *RoutingTableMock) MinimockFinish()
- func (m *RoutingTableMock) MinimockResolveDone() bool
- func (m *RoutingTableMock) MinimockResolveInspect()
- func (m *RoutingTableMock) MinimockWait(timeout mm_time.Duration)
- func (mmResolve *RoutingTableMock) Resolve(r1 insolar.Reference) (hp1 *host.Host, err error)
- func (mmResolve *RoutingTableMock) ResolveAfterCounter() uint64
- func (mmResolve *RoutingTableMock) ResolveBeforeCounter() uint64
- type RoutingTableMockResolveExpectation
- type RoutingTableMockResolveParams
- type RoutingTableMockResolveResults
- type SnapshotStorageMock
- func (mmAppend *SnapshotStorageMock) Append(pulse insolar.PulseNumber, snapshot *node.Snapshot) (err error)
- func (mmAppend *SnapshotStorageMock) AppendAfterCounter() uint64
- func (mmAppend *SnapshotStorageMock) AppendBeforeCounter() uint64
- func (mmForPulseNumber *SnapshotStorageMock) ForPulseNumber(p1 insolar.PulseNumber) (sp1 *node.Snapshot, err error)
- func (mmForPulseNumber *SnapshotStorageMock) ForPulseNumberAfterCounter() uint64
- func (mmForPulseNumber *SnapshotStorageMock) ForPulseNumberBeforeCounter() uint64
- func (m *SnapshotStorageMock) MinimockAppendDone() bool
- func (m *SnapshotStorageMock) MinimockAppendInspect()
- func (m *SnapshotStorageMock) MinimockFinish()
- func (m *SnapshotStorageMock) MinimockForPulseNumberDone() bool
- func (m *SnapshotStorageMock) MinimockForPulseNumberInspect()
- func (m *SnapshotStorageMock) MinimockWait(timeout mm_time.Duration)
- type SnapshotStorageMockAppendExpectation
- type SnapshotStorageMockAppendParams
- type SnapshotStorageMockAppendResults
- type SnapshotStorageMockForPulseNumberExpectation
- type SnapshotStorageMockForPulseNumberParams
- type SnapshotStorageMockForPulseNumberResults
- type StreamTransportMock
- func (mmAddress *StreamTransportMock) Address() (s1 string)
- func (mmAddress *StreamTransportMock) AddressAfterCounter() uint64
- func (mmAddress *StreamTransportMock) AddressBeforeCounter() uint64
- func (mmDial *StreamTransportMock) Dial(ctx context.Context, address string) (r1 io.ReadWriteCloser, err error)
- func (mmDial *StreamTransportMock) DialAfterCounter() uint64
- func (mmDial *StreamTransportMock) DialBeforeCounter() uint64
- func (m *StreamTransportMock) MinimockAddressDone() bool
- func (m *StreamTransportMock) MinimockAddressInspect()
- func (m *StreamTransportMock) MinimockDialDone() bool
- func (m *StreamTransportMock) MinimockDialInspect()
- func (m *StreamTransportMock) MinimockFinish()
- func (m *StreamTransportMock) MinimockStartDone() bool
- func (m *StreamTransportMock) MinimockStartInspect()
- func (m *StreamTransportMock) MinimockStopDone() bool
- func (m *StreamTransportMock) MinimockStopInspect()
- func (m *StreamTransportMock) MinimockWait(timeout mm_time.Duration)
- func (mmStart *StreamTransportMock) Start(ctx context.Context) (err error)
- func (mmStart *StreamTransportMock) StartAfterCounter() uint64
- func (mmStart *StreamTransportMock) StartBeforeCounter() uint64
- func (mmStop *StreamTransportMock) Stop(ctx context.Context) (err error)
- func (mmStop *StreamTransportMock) StopAfterCounter() uint64
- func (mmStop *StreamTransportMock) StopBeforeCounter() uint64
- type StreamTransportMockAddressExpectation
- type StreamTransportMockAddressResults
- type StreamTransportMockDialExpectation
- type StreamTransportMockDialParams
- type StreamTransportMockDialResults
- type StreamTransportMockStartExpectation
- type StreamTransportMockStartParams
- type StreamTransportMockStartResults
- type StreamTransportMockStopExpectation
- type StreamTransportMockStopParams
- type StreamTransportMockStopResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessorMock ¶ added in v0.9.0
type AccessorMock struct { GetActiveNodeMock mAccessorMockGetActiveNode GetActiveNodeByAddrMock mAccessorMockGetActiveNodeByAddr GetActiveNodeByShortIDMock mAccessorMockGetActiveNodeByShortID GetActiveNodesMock mAccessorMockGetActiveNodes GetWorkingNodeMock mAccessorMockGetWorkingNode GetWorkingNodesMock mAccessorMockGetWorkingNodes // contains filtered or unexported fields }
AccessorMock implements network.Accessor
func NewAccessorMock ¶ added in v0.9.0
func NewAccessorMock(t minimock.Tester) *AccessorMock
NewAccessorMock returns a mock for network.Accessor
func (*AccessorMock) GetActiveNode ¶ added in v0.9.0
func (mmGetActiveNode *AccessorMock) GetActiveNode(ref insolar.Reference) (n1 insolar.NetworkNode)
GetActiveNode implements network.Accessor
func (*AccessorMock) GetActiveNodeAfterCounter ¶ added in v0.9.0
func (mmGetActiveNode *AccessorMock) GetActiveNodeAfterCounter() uint64
GetActiveNodeAfterCounter returns a count of finished AccessorMock.GetActiveNode invocations
func (*AccessorMock) GetActiveNodeBeforeCounter ¶ added in v0.9.0
func (mmGetActiveNode *AccessorMock) GetActiveNodeBeforeCounter() uint64
GetActiveNodeBeforeCounter returns a count of AccessorMock.GetActiveNode invocations
func (*AccessorMock) GetActiveNodeByAddr ¶ added in v0.9.0
func (mmGetActiveNodeByAddr *AccessorMock) GetActiveNodeByAddr(address string) (n1 insolar.NetworkNode)
GetActiveNodeByAddr implements network.Accessor
func (*AccessorMock) GetActiveNodeByAddrAfterCounter ¶ added in v0.9.0
func (mmGetActiveNodeByAddr *AccessorMock) GetActiveNodeByAddrAfterCounter() uint64
GetActiveNodeByAddrAfterCounter returns a count of finished AccessorMock.GetActiveNodeByAddr invocations
func (*AccessorMock) GetActiveNodeByAddrBeforeCounter ¶ added in v0.9.0
func (mmGetActiveNodeByAddr *AccessorMock) GetActiveNodeByAddrBeforeCounter() uint64
GetActiveNodeByAddrBeforeCounter returns a count of AccessorMock.GetActiveNodeByAddr invocations
func (*AccessorMock) GetActiveNodeByShortID ¶ added in v0.9.0
func (mmGetActiveNodeByShortID *AccessorMock) GetActiveNodeByShortID(shortID insolar.ShortNodeID) (n1 insolar.NetworkNode)
GetActiveNodeByShortID implements network.Accessor
func (*AccessorMock) GetActiveNodeByShortIDAfterCounter ¶ added in v0.9.0
func (mmGetActiveNodeByShortID *AccessorMock) GetActiveNodeByShortIDAfterCounter() uint64
GetActiveNodeByShortIDAfterCounter returns a count of finished AccessorMock.GetActiveNodeByShortID invocations
func (*AccessorMock) GetActiveNodeByShortIDBeforeCounter ¶ added in v0.9.0
func (mmGetActiveNodeByShortID *AccessorMock) GetActiveNodeByShortIDBeforeCounter() uint64
GetActiveNodeByShortIDBeforeCounter returns a count of AccessorMock.GetActiveNodeByShortID invocations
func (*AccessorMock) GetActiveNodes ¶ added in v0.9.0
func (mmGetActiveNodes *AccessorMock) GetActiveNodes() (na1 []insolar.NetworkNode)
GetActiveNodes implements network.Accessor
func (*AccessorMock) GetActiveNodesAfterCounter ¶ added in v0.9.0
func (mmGetActiveNodes *AccessorMock) GetActiveNodesAfterCounter() uint64
GetActiveNodesAfterCounter returns a count of finished AccessorMock.GetActiveNodes invocations
func (*AccessorMock) GetActiveNodesBeforeCounter ¶ added in v0.9.0
func (mmGetActiveNodes *AccessorMock) GetActiveNodesBeforeCounter() uint64
GetActiveNodesBeforeCounter returns a count of AccessorMock.GetActiveNodes invocations
func (*AccessorMock) GetWorkingNode ¶ added in v0.9.0
func (mmGetWorkingNode *AccessorMock) GetWorkingNode(ref insolar.Reference) (n1 insolar.NetworkNode)
GetWorkingNode implements network.Accessor
func (*AccessorMock) GetWorkingNodeAfterCounter ¶ added in v0.9.0
func (mmGetWorkingNode *AccessorMock) GetWorkingNodeAfterCounter() uint64
GetWorkingNodeAfterCounter returns a count of finished AccessorMock.GetWorkingNode invocations
func (*AccessorMock) GetWorkingNodeBeforeCounter ¶ added in v0.9.0
func (mmGetWorkingNode *AccessorMock) GetWorkingNodeBeforeCounter() uint64
GetWorkingNodeBeforeCounter returns a count of AccessorMock.GetWorkingNode invocations
func (*AccessorMock) GetWorkingNodes ¶ added in v0.9.0
func (mmGetWorkingNodes *AccessorMock) GetWorkingNodes() (na1 []insolar.NetworkNode)
GetWorkingNodes implements network.Accessor
func (*AccessorMock) GetWorkingNodesAfterCounter ¶ added in v0.9.0
func (mmGetWorkingNodes *AccessorMock) GetWorkingNodesAfterCounter() uint64
GetWorkingNodesAfterCounter returns a count of finished AccessorMock.GetWorkingNodes invocations
func (*AccessorMock) GetWorkingNodesBeforeCounter ¶ added in v0.9.0
func (mmGetWorkingNodes *AccessorMock) GetWorkingNodesBeforeCounter() uint64
GetWorkingNodesBeforeCounter returns a count of AccessorMock.GetWorkingNodes invocations
func (*AccessorMock) MinimockFinish ¶ added in v0.9.0
func (m *AccessorMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*AccessorMock) MinimockGetActiveNodeByAddrDone ¶ added in v0.9.0
func (m *AccessorMock) MinimockGetActiveNodeByAddrDone() bool
MinimockGetActiveNodeByAddrDone returns true if the count of the GetActiveNodeByAddr invocations corresponds the number of defined expectations
func (*AccessorMock) MinimockGetActiveNodeByAddrInspect ¶ added in v0.9.0
func (m *AccessorMock) MinimockGetActiveNodeByAddrInspect()
MinimockGetActiveNodeByAddrInspect logs each unmet expectation
func (*AccessorMock) MinimockGetActiveNodeByShortIDDone ¶ added in v0.9.0
func (m *AccessorMock) MinimockGetActiveNodeByShortIDDone() bool
MinimockGetActiveNodeByShortIDDone returns true if the count of the GetActiveNodeByShortID invocations corresponds the number of defined expectations
func (*AccessorMock) MinimockGetActiveNodeByShortIDInspect ¶ added in v0.9.0
func (m *AccessorMock) MinimockGetActiveNodeByShortIDInspect()
MinimockGetActiveNodeByShortIDInspect logs each unmet expectation
func (*AccessorMock) MinimockGetActiveNodeDone ¶ added in v0.9.0
func (m *AccessorMock) MinimockGetActiveNodeDone() bool
MinimockGetActiveNodeDone returns true if the count of the GetActiveNode invocations corresponds the number of defined expectations
func (*AccessorMock) MinimockGetActiveNodeInspect ¶ added in v0.9.0
func (m *AccessorMock) MinimockGetActiveNodeInspect()
MinimockGetActiveNodeInspect logs each unmet expectation
func (*AccessorMock) MinimockGetActiveNodesDone ¶ added in v0.9.0
func (m *AccessorMock) MinimockGetActiveNodesDone() bool
MinimockGetActiveNodesDone returns true if the count of the GetActiveNodes invocations corresponds the number of defined expectations
func (*AccessorMock) MinimockGetActiveNodesInspect ¶ added in v0.9.0
func (m *AccessorMock) MinimockGetActiveNodesInspect()
MinimockGetActiveNodesInspect logs each unmet expectation
func (*AccessorMock) MinimockGetWorkingNodeDone ¶ added in v0.9.0
func (m *AccessorMock) MinimockGetWorkingNodeDone() bool
MinimockGetWorkingNodeDone returns true if the count of the GetWorkingNode invocations corresponds the number of defined expectations
func (*AccessorMock) MinimockGetWorkingNodeInspect ¶ added in v0.9.0
func (m *AccessorMock) MinimockGetWorkingNodeInspect()
MinimockGetWorkingNodeInspect logs each unmet expectation
func (*AccessorMock) MinimockGetWorkingNodesDone ¶ added in v0.9.0
func (m *AccessorMock) MinimockGetWorkingNodesDone() bool
MinimockGetWorkingNodesDone returns true if the count of the GetWorkingNodes invocations corresponds the number of defined expectations
func (*AccessorMock) MinimockGetWorkingNodesInspect ¶ added in v0.9.0
func (m *AccessorMock) MinimockGetWorkingNodesInspect()
MinimockGetWorkingNodesInspect logs each unmet expectation
func (*AccessorMock) MinimockWait ¶ added in v0.9.0
func (m *AccessorMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type AccessorMockGetActiveNodeByAddrExpectation ¶ added in v0.9.0
type AccessorMockGetActiveNodeByAddrExpectation struct { Counter uint64 // contains filtered or unexported fields }
AccessorMockGetActiveNodeByAddrExpectation specifies expectation struct of the Accessor.GetActiveNodeByAddr
func (*AccessorMockGetActiveNodeByAddrExpectation) Then ¶ added in v0.9.0
func (e *AccessorMockGetActiveNodeByAddrExpectation) Then(n1 insolar.NetworkNode) *AccessorMock
Then sets up Accessor.GetActiveNodeByAddr return parameters for the expectation previously defined by the When method
type AccessorMockGetActiveNodeByAddrParams ¶ added in v0.9.0
type AccessorMockGetActiveNodeByAddrParams struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodeByAddrParams contains parameters of the Accessor.GetActiveNodeByAddr
type AccessorMockGetActiveNodeByAddrResults ¶ added in v0.9.0
type AccessorMockGetActiveNodeByAddrResults struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodeByAddrResults contains results of the Accessor.GetActiveNodeByAddr
type AccessorMockGetActiveNodeByShortIDExpectation ¶ added in v0.9.0
type AccessorMockGetActiveNodeByShortIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
AccessorMockGetActiveNodeByShortIDExpectation specifies expectation struct of the Accessor.GetActiveNodeByShortID
func (*AccessorMockGetActiveNodeByShortIDExpectation) Then ¶ added in v0.9.0
func (e *AccessorMockGetActiveNodeByShortIDExpectation) Then(n1 insolar.NetworkNode) *AccessorMock
Then sets up Accessor.GetActiveNodeByShortID return parameters for the expectation previously defined by the When method
type AccessorMockGetActiveNodeByShortIDParams ¶ added in v0.9.0
type AccessorMockGetActiveNodeByShortIDParams struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodeByShortIDParams contains parameters of the Accessor.GetActiveNodeByShortID
type AccessorMockGetActiveNodeByShortIDResults ¶ added in v0.9.0
type AccessorMockGetActiveNodeByShortIDResults struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodeByShortIDResults contains results of the Accessor.GetActiveNodeByShortID
type AccessorMockGetActiveNodeExpectation ¶ added in v0.9.0
type AccessorMockGetActiveNodeExpectation struct { Counter uint64 // contains filtered or unexported fields }
AccessorMockGetActiveNodeExpectation specifies expectation struct of the Accessor.GetActiveNode
func (*AccessorMockGetActiveNodeExpectation) Then ¶ added in v0.9.0
func (e *AccessorMockGetActiveNodeExpectation) Then(n1 insolar.NetworkNode) *AccessorMock
Then sets up Accessor.GetActiveNode return parameters for the expectation previously defined by the When method
type AccessorMockGetActiveNodeParams ¶ added in v0.9.0
type AccessorMockGetActiveNodeParams struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodeParams contains parameters of the Accessor.GetActiveNode
type AccessorMockGetActiveNodeResults ¶ added in v0.9.0
type AccessorMockGetActiveNodeResults struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodeResults contains results of the Accessor.GetActiveNode
type AccessorMockGetActiveNodesExpectation ¶ added in v0.9.0
type AccessorMockGetActiveNodesExpectation struct { Counter uint64 // contains filtered or unexported fields }
AccessorMockGetActiveNodesExpectation specifies expectation struct of the Accessor.GetActiveNodes
type AccessorMockGetActiveNodesResults ¶ added in v0.9.0
type AccessorMockGetActiveNodesResults struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodesResults contains results of the Accessor.GetActiveNodes
type AccessorMockGetWorkingNodeExpectation ¶ added in v0.9.0
type AccessorMockGetWorkingNodeExpectation struct { Counter uint64 // contains filtered or unexported fields }
AccessorMockGetWorkingNodeExpectation specifies expectation struct of the Accessor.GetWorkingNode
func (*AccessorMockGetWorkingNodeExpectation) Then ¶ added in v0.9.0
func (e *AccessorMockGetWorkingNodeExpectation) Then(n1 insolar.NetworkNode) *AccessorMock
Then sets up Accessor.GetWorkingNode return parameters for the expectation previously defined by the When method
type AccessorMockGetWorkingNodeParams ¶ added in v0.9.0
type AccessorMockGetWorkingNodeParams struct {
// contains filtered or unexported fields
}
AccessorMockGetWorkingNodeParams contains parameters of the Accessor.GetWorkingNode
type AccessorMockGetWorkingNodeResults ¶ added in v0.9.0
type AccessorMockGetWorkingNodeResults struct {
// contains filtered or unexported fields
}
AccessorMockGetWorkingNodeResults contains results of the Accessor.GetWorkingNode
type AccessorMockGetWorkingNodesExpectation ¶ added in v0.9.0
type AccessorMockGetWorkingNodesExpectation struct { Counter uint64 // contains filtered or unexported fields }
AccessorMockGetWorkingNodesExpectation specifies expectation struct of the Accessor.GetWorkingNodes
type AccessorMockGetWorkingNodesResults ¶ added in v0.9.0
type AccessorMockGetWorkingNodesResults struct {
// contains filtered or unexported fields
}
AccessorMockGetWorkingNodesResults contains results of the Accessor.GetWorkingNodes
type CloudHashStorageMock ¶ added in v0.9.0
type CloudHashStorageMock struct { AppendMock mCloudHashStorageMockAppend ForPulseNumberMock mCloudHashStorageMockForPulseNumber // contains filtered or unexported fields }
CloudHashStorageMock implements storage.CloudHashStorage
func NewCloudHashStorageMock ¶ added in v0.9.0
func NewCloudHashStorageMock(t minimock.Tester) *CloudHashStorageMock
NewCloudHashStorageMock returns a mock for storage.CloudHashStorage
func (*CloudHashStorageMock) Append ¶ added in v0.9.0
func (mmAppend *CloudHashStorageMock) Append(pulse insolar.PulseNumber, cloudHash []byte) (err error)
Append implements storage.CloudHashStorage
func (*CloudHashStorageMock) AppendAfterCounter ¶ added in v0.9.0
func (mmAppend *CloudHashStorageMock) AppendAfterCounter() uint64
AppendAfterCounter returns a count of finished CloudHashStorageMock.Append invocations
func (*CloudHashStorageMock) AppendBeforeCounter ¶ added in v0.9.0
func (mmAppend *CloudHashStorageMock) AppendBeforeCounter() uint64
AppendBeforeCounter returns a count of CloudHashStorageMock.Append invocations
func (*CloudHashStorageMock) ForPulseNumber ¶ added in v0.9.0
func (mmForPulseNumber *CloudHashStorageMock) ForPulseNumber(pulse insolar.PulseNumber) (ba1 []byte, err error)
ForPulseNumber implements storage.CloudHashStorage
func (*CloudHashStorageMock) ForPulseNumberAfterCounter ¶ added in v0.9.0
func (mmForPulseNumber *CloudHashStorageMock) ForPulseNumberAfterCounter() uint64
ForPulseNumberAfterCounter returns a count of finished CloudHashStorageMock.ForPulseNumber invocations
func (*CloudHashStorageMock) ForPulseNumberBeforeCounter ¶ added in v0.9.0
func (mmForPulseNumber *CloudHashStorageMock) ForPulseNumberBeforeCounter() uint64
ForPulseNumberBeforeCounter returns a count of CloudHashStorageMock.ForPulseNumber invocations
func (*CloudHashStorageMock) MinimockAppendDone ¶ added in v0.9.0
func (m *CloudHashStorageMock) MinimockAppendDone() bool
MinimockAppendDone returns true if the count of the Append invocations corresponds the number of defined expectations
func (*CloudHashStorageMock) MinimockAppendInspect ¶ added in v0.9.0
func (m *CloudHashStorageMock) MinimockAppendInspect()
MinimockAppendInspect logs each unmet expectation
func (*CloudHashStorageMock) MinimockFinish ¶ added in v0.9.0
func (m *CloudHashStorageMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*CloudHashStorageMock) MinimockForPulseNumberDone ¶ added in v0.9.0
func (m *CloudHashStorageMock) MinimockForPulseNumberDone() bool
MinimockForPulseNumberDone returns true if the count of the ForPulseNumber invocations corresponds the number of defined expectations
func (*CloudHashStorageMock) MinimockForPulseNumberInspect ¶ added in v0.9.0
func (m *CloudHashStorageMock) MinimockForPulseNumberInspect()
MinimockForPulseNumberInspect logs each unmet expectation
func (*CloudHashStorageMock) MinimockWait ¶ added in v0.9.0
func (m *CloudHashStorageMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type CloudHashStorageMockAppendExpectation ¶ added in v0.9.0
type CloudHashStorageMockAppendExpectation struct { Counter uint64 // contains filtered or unexported fields }
CloudHashStorageMockAppendExpectation specifies expectation struct of the CloudHashStorage.Append
func (*CloudHashStorageMockAppendExpectation) Then ¶ added in v0.9.0
func (e *CloudHashStorageMockAppendExpectation) Then(err error) *CloudHashStorageMock
Then sets up CloudHashStorage.Append return parameters for the expectation previously defined by the When method
type CloudHashStorageMockAppendParams ¶ added in v0.9.0
type CloudHashStorageMockAppendParams struct {
// contains filtered or unexported fields
}
CloudHashStorageMockAppendParams contains parameters of the CloudHashStorage.Append
type CloudHashStorageMockAppendResults ¶ added in v0.9.0
type CloudHashStorageMockAppendResults struct {
// contains filtered or unexported fields
}
CloudHashStorageMockAppendResults contains results of the CloudHashStorage.Append
type CloudHashStorageMockForPulseNumberExpectation ¶ added in v0.9.0
type CloudHashStorageMockForPulseNumberExpectation struct { Counter uint64 // contains filtered or unexported fields }
CloudHashStorageMockForPulseNumberExpectation specifies expectation struct of the CloudHashStorage.ForPulseNumber
func (*CloudHashStorageMockForPulseNumberExpectation) Then ¶ added in v0.9.0
func (e *CloudHashStorageMockForPulseNumberExpectation) Then(ba1 []byte, err error) *CloudHashStorageMock
Then sets up CloudHashStorage.ForPulseNumber return parameters for the expectation previously defined by the When method
type CloudHashStorageMockForPulseNumberParams ¶ added in v0.9.0
type CloudHashStorageMockForPulseNumberParams struct {
// contains filtered or unexported fields
}
CloudHashStorageMockForPulseNumberParams contains parameters of the CloudHashStorage.ForPulseNumber
type CloudHashStorageMockForPulseNumberResults ¶ added in v0.9.0
type CloudHashStorageMockForPulseNumberResults struct {
// contains filtered or unexported fields
}
CloudHashStorageMockForPulseNumberResults contains results of the CloudHashStorage.ForPulseNumber
type GatewayMock ¶ added in v0.9.0
type GatewayMock struct { AutherMock mGatewayMockAuther BeforeRunMock mGatewayMockBeforeRun BootstrapperMock mGatewayMockBootstrapper EphemeralModeMock mGatewayMockEphemeralMode FailStateMock mGatewayMockFailState GetStateMock mGatewayMockGetState NewGatewayMock mGatewayMockNewGateway OnConsensusFinishedMock mGatewayMockOnConsensusFinished OnPulseFromConsensusMock mGatewayMockOnPulseFromConsensus OnPulseFromPulsarMock mGatewayMockOnPulseFromPulsar RunMock mGatewayMockRun UpdateStateMock mGatewayMockUpdateState // contains filtered or unexported fields }
GatewayMock implements network.Gateway
func NewGatewayMock ¶ added in v0.9.0
func NewGatewayMock(t minimock.Tester) *GatewayMock
NewGatewayMock returns a mock for network.Gateway
func (*GatewayMock) Auther ¶ added in v0.9.0
func (mmAuther *GatewayMock) Auther() (a1 mm_network.Auther)
Auther implements network.Gateway
func (*GatewayMock) AutherAfterCounter ¶ added in v0.9.0
func (mmAuther *GatewayMock) AutherAfterCounter() uint64
AutherAfterCounter returns a count of finished GatewayMock.Auther invocations
func (*GatewayMock) AutherBeforeCounter ¶ added in v0.9.0
func (mmAuther *GatewayMock) AutherBeforeCounter() uint64
AutherBeforeCounter returns a count of GatewayMock.Auther invocations
func (*GatewayMock) BeforeRun ¶ added in v0.9.0
func (mmBeforeRun *GatewayMock) BeforeRun(ctx context.Context, pulse insolar.Pulse)
BeforeRun implements network.Gateway
func (*GatewayMock) BeforeRunAfterCounter ¶ added in v0.9.0
func (mmBeforeRun *GatewayMock) BeforeRunAfterCounter() uint64
BeforeRunAfterCounter returns a count of finished GatewayMock.BeforeRun invocations
func (*GatewayMock) BeforeRunBeforeCounter ¶ added in v0.9.0
func (mmBeforeRun *GatewayMock) BeforeRunBeforeCounter() uint64
BeforeRunBeforeCounter returns a count of GatewayMock.BeforeRun invocations
func (*GatewayMock) Bootstrapper ¶ added in v0.9.0
func (mmBootstrapper *GatewayMock) Bootstrapper() (b1 mm_network.Bootstrapper)
Bootstrapper implements network.Gateway
func (*GatewayMock) BootstrapperAfterCounter ¶ added in v0.9.0
func (mmBootstrapper *GatewayMock) BootstrapperAfterCounter() uint64
BootstrapperAfterCounter returns a count of finished GatewayMock.Bootstrapper invocations
func (*GatewayMock) BootstrapperBeforeCounter ¶ added in v0.9.0
func (mmBootstrapper *GatewayMock) BootstrapperBeforeCounter() uint64
BootstrapperBeforeCounter returns a count of GatewayMock.Bootstrapper invocations
func (*GatewayMock) EphemeralMode ¶ added in v0.9.0
func (mmEphemeralMode *GatewayMock) EphemeralMode(nodes []insolar.NetworkNode) (b1 bool)
EphemeralMode implements network.Gateway
func (*GatewayMock) EphemeralModeAfterCounter ¶ added in v0.9.0
func (mmEphemeralMode *GatewayMock) EphemeralModeAfterCounter() uint64
EphemeralModeAfterCounter returns a count of finished GatewayMock.EphemeralMode invocations
func (*GatewayMock) EphemeralModeBeforeCounter ¶ added in v0.9.0
func (mmEphemeralMode *GatewayMock) EphemeralModeBeforeCounter() uint64
EphemeralModeBeforeCounter returns a count of GatewayMock.EphemeralMode invocations
func (*GatewayMock) FailState ¶ added in v0.9.16
func (mmFailState *GatewayMock) FailState(ctx context.Context, reason string)
FailState implements network.Gateway
func (*GatewayMock) FailStateAfterCounter ¶ added in v0.9.16
func (mmFailState *GatewayMock) FailStateAfterCounter() uint64
FailStateAfterCounter returns a count of finished GatewayMock.FailState invocations
func (*GatewayMock) FailStateBeforeCounter ¶ added in v0.9.16
func (mmFailState *GatewayMock) FailStateBeforeCounter() uint64
FailStateBeforeCounter returns a count of GatewayMock.FailState invocations
func (*GatewayMock) GetState ¶ added in v0.9.0
func (mmGetState *GatewayMock) GetState() (n1 insolar.NetworkState)
GetState implements network.Gateway
func (*GatewayMock) GetStateAfterCounter ¶ added in v0.9.0
func (mmGetState *GatewayMock) GetStateAfterCounter() uint64
GetStateAfterCounter returns a count of finished GatewayMock.GetState invocations
func (*GatewayMock) GetStateBeforeCounter ¶ added in v0.9.0
func (mmGetState *GatewayMock) GetStateBeforeCounter() uint64
GetStateBeforeCounter returns a count of GatewayMock.GetState invocations
func (*GatewayMock) MinimockAutherDone ¶ added in v0.9.0
func (m *GatewayMock) MinimockAutherDone() bool
MinimockAutherDone returns true if the count of the Auther invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockAutherInspect ¶ added in v0.9.0
func (m *GatewayMock) MinimockAutherInspect()
MinimockAutherInspect logs each unmet expectation
func (*GatewayMock) MinimockBeforeRunDone ¶ added in v0.9.0
func (m *GatewayMock) MinimockBeforeRunDone() bool
MinimockBeforeRunDone returns true if the count of the BeforeRun invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockBeforeRunInspect ¶ added in v0.9.0
func (m *GatewayMock) MinimockBeforeRunInspect()
MinimockBeforeRunInspect logs each unmet expectation
func (*GatewayMock) MinimockBootstrapperDone ¶ added in v0.9.0
func (m *GatewayMock) MinimockBootstrapperDone() bool
MinimockBootstrapperDone returns true if the count of the Bootstrapper invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockBootstrapperInspect ¶ added in v0.9.0
func (m *GatewayMock) MinimockBootstrapperInspect()
MinimockBootstrapperInspect logs each unmet expectation
func (*GatewayMock) MinimockEphemeralModeDone ¶ added in v0.9.0
func (m *GatewayMock) MinimockEphemeralModeDone() bool
MinimockEphemeralModeDone returns true if the count of the EphemeralMode invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockEphemeralModeInspect ¶ added in v0.9.0
func (m *GatewayMock) MinimockEphemeralModeInspect()
MinimockEphemeralModeInspect logs each unmet expectation
func (*GatewayMock) MinimockFailStateDone ¶ added in v0.9.16
func (m *GatewayMock) MinimockFailStateDone() bool
MinimockFailStateDone returns true if the count of the FailState invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockFailStateInspect ¶ added in v0.9.16
func (m *GatewayMock) MinimockFailStateInspect()
MinimockFailStateInspect logs each unmet expectation
func (*GatewayMock) MinimockFinish ¶ added in v0.9.0
func (m *GatewayMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GatewayMock) MinimockGetStateDone ¶ added in v0.9.0
func (m *GatewayMock) MinimockGetStateDone() bool
MinimockGetStateDone returns true if the count of the GetState invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockGetStateInspect ¶ added in v0.9.0
func (m *GatewayMock) MinimockGetStateInspect()
MinimockGetStateInspect logs each unmet expectation
func (*GatewayMock) MinimockNewGatewayDone ¶ added in v0.9.0
func (m *GatewayMock) MinimockNewGatewayDone() bool
MinimockNewGatewayDone returns true if the count of the NewGateway invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockNewGatewayInspect ¶ added in v0.9.0
func (m *GatewayMock) MinimockNewGatewayInspect()
MinimockNewGatewayInspect logs each unmet expectation
func (*GatewayMock) MinimockOnConsensusFinishedDone ¶ added in v0.9.0
func (m *GatewayMock) MinimockOnConsensusFinishedDone() bool
MinimockOnConsensusFinishedDone returns true if the count of the OnConsensusFinished invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockOnConsensusFinishedInspect ¶ added in v0.9.0
func (m *GatewayMock) MinimockOnConsensusFinishedInspect()
MinimockOnConsensusFinishedInspect logs each unmet expectation
func (*GatewayMock) MinimockOnPulseFromConsensusDone ¶ added in v0.9.0
func (m *GatewayMock) MinimockOnPulseFromConsensusDone() bool
MinimockOnPulseFromConsensusDone returns true if the count of the OnPulseFromConsensus invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockOnPulseFromConsensusInspect ¶ added in v0.9.0
func (m *GatewayMock) MinimockOnPulseFromConsensusInspect()
MinimockOnPulseFromConsensusInspect logs each unmet expectation
func (*GatewayMock) MinimockOnPulseFromPulsarDone ¶ added in v0.9.0
func (m *GatewayMock) MinimockOnPulseFromPulsarDone() bool
MinimockOnPulseFromPulsarDone returns true if the count of the OnPulseFromPulsar invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockOnPulseFromPulsarInspect ¶ added in v0.9.0
func (m *GatewayMock) MinimockOnPulseFromPulsarInspect()
MinimockOnPulseFromPulsarInspect logs each unmet expectation
func (*GatewayMock) MinimockRunDone ¶ added in v0.9.0
func (m *GatewayMock) MinimockRunDone() bool
MinimockRunDone returns true if the count of the Run invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockRunInspect ¶ added in v0.9.0
func (m *GatewayMock) MinimockRunInspect()
MinimockRunInspect logs each unmet expectation
func (*GatewayMock) MinimockUpdateStateDone ¶ added in v0.9.0
func (m *GatewayMock) MinimockUpdateStateDone() bool
MinimockUpdateStateDone returns true if the count of the UpdateState invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockUpdateStateInspect ¶ added in v0.9.0
func (m *GatewayMock) MinimockUpdateStateInspect()
MinimockUpdateStateInspect logs each unmet expectation
func (*GatewayMock) MinimockWait ¶ added in v0.9.0
func (m *GatewayMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*GatewayMock) NewGateway ¶ added in v0.9.0
func (mmNewGateway *GatewayMock) NewGateway(ctx context.Context, n1 insolar.NetworkState) (g1 mm_network.Gateway)
NewGateway implements network.Gateway
func (*GatewayMock) NewGatewayAfterCounter ¶ added in v0.9.0
func (mmNewGateway *GatewayMock) NewGatewayAfterCounter() uint64
NewGatewayAfterCounter returns a count of finished GatewayMock.NewGateway invocations
func (*GatewayMock) NewGatewayBeforeCounter ¶ added in v0.9.0
func (mmNewGateway *GatewayMock) NewGatewayBeforeCounter() uint64
NewGatewayBeforeCounter returns a count of GatewayMock.NewGateway invocations
func (*GatewayMock) OnConsensusFinished ¶ added in v0.9.0
func (mmOnConsensusFinished *GatewayMock) OnConsensusFinished(ctx context.Context, report mm_network.Report)
OnConsensusFinished implements network.Gateway
func (*GatewayMock) OnConsensusFinishedAfterCounter ¶ added in v0.9.0
func (mmOnConsensusFinished *GatewayMock) OnConsensusFinishedAfterCounter() uint64
OnConsensusFinishedAfterCounter returns a count of finished GatewayMock.OnConsensusFinished invocations
func (*GatewayMock) OnConsensusFinishedBeforeCounter ¶ added in v0.9.0
func (mmOnConsensusFinished *GatewayMock) OnConsensusFinishedBeforeCounter() uint64
OnConsensusFinishedBeforeCounter returns a count of GatewayMock.OnConsensusFinished invocations
func (*GatewayMock) OnPulseFromConsensus ¶ added in v0.9.0
func (mmOnPulseFromConsensus *GatewayMock) OnPulseFromConsensus(ctx context.Context, p1 insolar.Pulse)
OnPulseFromConsensus implements network.Gateway
func (*GatewayMock) OnPulseFromConsensusAfterCounter ¶ added in v0.9.0
func (mmOnPulseFromConsensus *GatewayMock) OnPulseFromConsensusAfterCounter() uint64
OnPulseFromConsensusAfterCounter returns a count of finished GatewayMock.OnPulseFromConsensus invocations
func (*GatewayMock) OnPulseFromConsensusBeforeCounter ¶ added in v0.9.0
func (mmOnPulseFromConsensus *GatewayMock) OnPulseFromConsensusBeforeCounter() uint64
OnPulseFromConsensusBeforeCounter returns a count of GatewayMock.OnPulseFromConsensus invocations
func (*GatewayMock) OnPulseFromPulsar ¶ added in v0.9.0
func (mmOnPulseFromPulsar *GatewayMock) OnPulseFromPulsar(ctx context.Context, p1 insolar.Pulse, r1 mm_network.ReceivedPacket)
OnPulseFromPulsar implements network.Gateway
func (*GatewayMock) OnPulseFromPulsarAfterCounter ¶ added in v0.9.0
func (mmOnPulseFromPulsar *GatewayMock) OnPulseFromPulsarAfterCounter() uint64
OnPulseFromPulsarAfterCounter returns a count of finished GatewayMock.OnPulseFromPulsar invocations
func (*GatewayMock) OnPulseFromPulsarBeforeCounter ¶ added in v0.9.0
func (mmOnPulseFromPulsar *GatewayMock) OnPulseFromPulsarBeforeCounter() uint64
OnPulseFromPulsarBeforeCounter returns a count of GatewayMock.OnPulseFromPulsar invocations
func (*GatewayMock) Run ¶ added in v0.9.0
func (mmRun *GatewayMock) Run(ctx context.Context, pulse insolar.Pulse)
Run implements network.Gateway
func (*GatewayMock) RunAfterCounter ¶ added in v0.9.0
func (mmRun *GatewayMock) RunAfterCounter() uint64
RunAfterCounter returns a count of finished GatewayMock.Run invocations
func (*GatewayMock) RunBeforeCounter ¶ added in v0.9.0
func (mmRun *GatewayMock) RunBeforeCounter() uint64
RunBeforeCounter returns a count of GatewayMock.Run invocations
func (*GatewayMock) UpdateState ¶ added in v0.9.0
func (mmUpdateState *GatewayMock) UpdateState(ctx context.Context, pulseNumber insolar.PulseNumber, nodes []insolar.NetworkNode, cloudStateHash []byte)
UpdateState implements network.Gateway
func (*GatewayMock) UpdateStateAfterCounter ¶ added in v0.9.0
func (mmUpdateState *GatewayMock) UpdateStateAfterCounter() uint64
UpdateStateAfterCounter returns a count of finished GatewayMock.UpdateState invocations
func (*GatewayMock) UpdateStateBeforeCounter ¶ added in v0.9.0
func (mmUpdateState *GatewayMock) UpdateStateBeforeCounter() uint64
UpdateStateBeforeCounter returns a count of GatewayMock.UpdateState invocations
type GatewayMockAutherExpectation ¶ added in v0.9.0
type GatewayMockAutherExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockAutherExpectation specifies expectation struct of the Gateway.Auther
type GatewayMockAutherResults ¶ added in v0.9.0
type GatewayMockAutherResults struct {
// contains filtered or unexported fields
}
GatewayMockAutherResults contains results of the Gateway.Auther
type GatewayMockBeforeRunExpectation ¶ added in v0.9.0
type GatewayMockBeforeRunExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockBeforeRunExpectation specifies expectation struct of the Gateway.BeforeRun
type GatewayMockBeforeRunParams ¶ added in v0.9.0
type GatewayMockBeforeRunParams struct {
// contains filtered or unexported fields
}
GatewayMockBeforeRunParams contains parameters of the Gateway.BeforeRun
type GatewayMockBootstrapperExpectation ¶ added in v0.9.0
type GatewayMockBootstrapperExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockBootstrapperExpectation specifies expectation struct of the Gateway.Bootstrapper
type GatewayMockBootstrapperResults ¶ added in v0.9.0
type GatewayMockBootstrapperResults struct {
// contains filtered or unexported fields
}
GatewayMockBootstrapperResults contains results of the Gateway.Bootstrapper
type GatewayMockEphemeralModeExpectation ¶ added in v0.9.0
type GatewayMockEphemeralModeExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockEphemeralModeExpectation specifies expectation struct of the Gateway.EphemeralMode
func (*GatewayMockEphemeralModeExpectation) Then ¶ added in v0.9.0
func (e *GatewayMockEphemeralModeExpectation) Then(b1 bool) *GatewayMock
Then sets up Gateway.EphemeralMode return parameters for the expectation previously defined by the When method
type GatewayMockEphemeralModeParams ¶ added in v0.9.0
type GatewayMockEphemeralModeParams struct {
// contains filtered or unexported fields
}
GatewayMockEphemeralModeParams contains parameters of the Gateway.EphemeralMode
type GatewayMockEphemeralModeResults ¶ added in v0.9.0
type GatewayMockEphemeralModeResults struct {
// contains filtered or unexported fields
}
GatewayMockEphemeralModeResults contains results of the Gateway.EphemeralMode
type GatewayMockFailStateExpectation ¶ added in v0.9.16
type GatewayMockFailStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockFailStateExpectation specifies expectation struct of the Gateway.FailState
type GatewayMockFailStateParams ¶ added in v0.9.16
type GatewayMockFailStateParams struct {
// contains filtered or unexported fields
}
GatewayMockFailStateParams contains parameters of the Gateway.FailState
type GatewayMockGetStateExpectation ¶ added in v0.9.0
type GatewayMockGetStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockGetStateExpectation specifies expectation struct of the Gateway.GetState
type GatewayMockGetStateResults ¶ added in v0.9.0
type GatewayMockGetStateResults struct {
// contains filtered or unexported fields
}
GatewayMockGetStateResults contains results of the Gateway.GetState
type GatewayMockNewGatewayExpectation ¶ added in v0.9.0
type GatewayMockNewGatewayExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockNewGatewayExpectation specifies expectation struct of the Gateway.NewGateway
func (*GatewayMockNewGatewayExpectation) Then ¶ added in v0.9.0
func (e *GatewayMockNewGatewayExpectation) Then(g1 mm_network.Gateway) *GatewayMock
Then sets up Gateway.NewGateway return parameters for the expectation previously defined by the When method
type GatewayMockNewGatewayParams ¶ added in v0.9.0
type GatewayMockNewGatewayParams struct {
// contains filtered or unexported fields
}
GatewayMockNewGatewayParams contains parameters of the Gateway.NewGateway
type GatewayMockNewGatewayResults ¶ added in v0.9.0
type GatewayMockNewGatewayResults struct {
// contains filtered or unexported fields
}
GatewayMockNewGatewayResults contains results of the Gateway.NewGateway
type GatewayMockOnConsensusFinishedExpectation ¶ added in v0.9.0
type GatewayMockOnConsensusFinishedExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockOnConsensusFinishedExpectation specifies expectation struct of the Gateway.OnConsensusFinished
type GatewayMockOnConsensusFinishedParams ¶ added in v0.9.0
type GatewayMockOnConsensusFinishedParams struct {
// contains filtered or unexported fields
}
GatewayMockOnConsensusFinishedParams contains parameters of the Gateway.OnConsensusFinished
type GatewayMockOnPulseFromConsensusExpectation ¶ added in v0.9.0
type GatewayMockOnPulseFromConsensusExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockOnPulseFromConsensusExpectation specifies expectation struct of the Gateway.OnPulseFromConsensus
type GatewayMockOnPulseFromConsensusParams ¶ added in v0.9.0
type GatewayMockOnPulseFromConsensusParams struct {
// contains filtered or unexported fields
}
GatewayMockOnPulseFromConsensusParams contains parameters of the Gateway.OnPulseFromConsensus
type GatewayMockOnPulseFromPulsarExpectation ¶ added in v0.9.0
type GatewayMockOnPulseFromPulsarExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockOnPulseFromPulsarExpectation specifies expectation struct of the Gateway.OnPulseFromPulsar
type GatewayMockOnPulseFromPulsarParams ¶ added in v0.9.0
type GatewayMockOnPulseFromPulsarParams struct {
// contains filtered or unexported fields
}
GatewayMockOnPulseFromPulsarParams contains parameters of the Gateway.OnPulseFromPulsar
type GatewayMockRunExpectation ¶ added in v0.9.0
type GatewayMockRunExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockRunExpectation specifies expectation struct of the Gateway.Run
type GatewayMockRunParams ¶ added in v0.9.0
type GatewayMockRunParams struct {
// contains filtered or unexported fields
}
GatewayMockRunParams contains parameters of the Gateway.Run
type GatewayMockUpdateStateExpectation ¶ added in v0.9.0
type GatewayMockUpdateStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockUpdateStateExpectation specifies expectation struct of the Gateway.UpdateState
type GatewayMockUpdateStateParams ¶ added in v0.9.0
type GatewayMockUpdateStateParams struct {
// contains filtered or unexported fields
}
GatewayMockUpdateStateParams contains parameters of the Gateway.UpdateState
type GatewayerMock ¶ added in v0.9.0
type GatewayerMock struct { GatewayMock mGatewayerMockGateway SwitchStateMock mGatewayerMockSwitchState // contains filtered or unexported fields }
GatewayerMock implements network.Gatewayer
func NewGatewayerMock ¶ added in v0.9.0
func NewGatewayerMock(t minimock.Tester) *GatewayerMock
NewGatewayerMock returns a mock for network.Gatewayer
func (*GatewayerMock) Gateway ¶ added in v0.9.0
func (mmGateway *GatewayerMock) Gateway() (g1 mm_network.Gateway)
Gateway implements network.Gatewayer
func (*GatewayerMock) GatewayAfterCounter ¶ added in v0.9.0
func (mmGateway *GatewayerMock) GatewayAfterCounter() uint64
GatewayAfterCounter returns a count of finished GatewayerMock.Gateway invocations
func (*GatewayerMock) GatewayBeforeCounter ¶ added in v0.9.0
func (mmGateway *GatewayerMock) GatewayBeforeCounter() uint64
GatewayBeforeCounter returns a count of GatewayerMock.Gateway invocations
func (*GatewayerMock) MinimockFinish ¶ added in v0.9.0
func (m *GatewayerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GatewayerMock) MinimockGatewayDone ¶ added in v0.9.0
func (m *GatewayerMock) MinimockGatewayDone() bool
MinimockGatewayDone returns true if the count of the Gateway invocations corresponds the number of defined expectations
func (*GatewayerMock) MinimockGatewayInspect ¶ added in v0.9.0
func (m *GatewayerMock) MinimockGatewayInspect()
MinimockGatewayInspect logs each unmet expectation
func (*GatewayerMock) MinimockSwitchStateDone ¶ added in v0.9.0
func (m *GatewayerMock) MinimockSwitchStateDone() bool
MinimockSwitchStateDone returns true if the count of the SwitchState invocations corresponds the number of defined expectations
func (*GatewayerMock) MinimockSwitchStateInspect ¶ added in v0.9.0
func (m *GatewayerMock) MinimockSwitchStateInspect()
MinimockSwitchStateInspect logs each unmet expectation
func (*GatewayerMock) MinimockWait ¶ added in v0.9.0
func (m *GatewayerMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*GatewayerMock) SwitchState ¶ added in v0.9.0
func (mmSwitchState *GatewayerMock) SwitchState(ctx context.Context, state insolar.NetworkState, pulse insolar.Pulse)
SwitchState implements network.Gatewayer
func (*GatewayerMock) SwitchStateAfterCounter ¶ added in v0.9.0
func (mmSwitchState *GatewayerMock) SwitchStateAfterCounter() uint64
SwitchStateAfterCounter returns a count of finished GatewayerMock.SwitchState invocations
func (*GatewayerMock) SwitchStateBeforeCounter ¶ added in v0.9.0
func (mmSwitchState *GatewayerMock) SwitchStateBeforeCounter() uint64
SwitchStateBeforeCounter returns a count of GatewayerMock.SwitchState invocations
type GatewayerMockGatewayExpectation ¶ added in v0.9.0
type GatewayerMockGatewayExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayerMockGatewayExpectation specifies expectation struct of the Gatewayer.Gateway
type GatewayerMockGatewayResults ¶ added in v0.9.0
type GatewayerMockGatewayResults struct {
// contains filtered or unexported fields
}
GatewayerMockGatewayResults contains results of the Gatewayer.Gateway
type GatewayerMockSwitchStateExpectation ¶ added in v0.9.0
type GatewayerMockSwitchStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayerMockSwitchStateExpectation specifies expectation struct of the Gatewayer.SwitchState
type GatewayerMockSwitchStateParams ¶ added in v0.9.0
type GatewayerMockSwitchStateParams struct {
// contains filtered or unexported fields
}
GatewayerMockSwitchStateParams contains parameters of the Gatewayer.SwitchState
type HostNetworkMock ¶ added in v0.6.3
type HostNetworkMock struct { BuildResponseMock mHostNetworkMockBuildResponse PublicAddressMock mHostNetworkMockPublicAddress RegisterRequestHandlerMock mHostNetworkMockRegisterRequestHandler SendRequestMock mHostNetworkMockSendRequest SendRequestToHostMock mHostNetworkMockSendRequestToHost StartMock mHostNetworkMockStart StopMock mHostNetworkMockStop // contains filtered or unexported fields }
HostNetworkMock implements network.HostNetwork
func NewHostNetworkMock ¶ added in v0.6.3
func NewHostNetworkMock(t minimock.Tester) *HostNetworkMock
NewHostNetworkMock returns a mock for network.HostNetwork
func (*HostNetworkMock) BuildResponse ¶ added in v0.6.3
func (mmBuildResponse *HostNetworkMock) BuildResponse(ctx context.Context, request mm_network.Packet, responseData interface{}) (p1 mm_network.Packet)
BuildResponse implements network.HostNetwork
func (*HostNetworkMock) BuildResponseAfterCounter ¶ added in v0.9.0
func (mmBuildResponse *HostNetworkMock) BuildResponseAfterCounter() uint64
BuildResponseAfterCounter returns a count of finished HostNetworkMock.BuildResponse invocations
func (*HostNetworkMock) BuildResponseBeforeCounter ¶ added in v0.9.0
func (mmBuildResponse *HostNetworkMock) BuildResponseBeforeCounter() uint64
BuildResponseBeforeCounter returns a count of HostNetworkMock.BuildResponse invocations
func (*HostNetworkMock) MinimockBuildResponseDone ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockBuildResponseDone() bool
MinimockBuildResponseDone returns true if the count of the BuildResponse invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockBuildResponseInspect ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockBuildResponseInspect()
MinimockBuildResponseInspect logs each unmet expectation
func (*HostNetworkMock) MinimockFinish ¶ added in v0.6.3
func (m *HostNetworkMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*HostNetworkMock) MinimockPublicAddressDone ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockPublicAddressDone() bool
MinimockPublicAddressDone returns true if the count of the PublicAddress invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockPublicAddressInspect ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockPublicAddressInspect()
MinimockPublicAddressInspect logs each unmet expectation
func (*HostNetworkMock) MinimockRegisterRequestHandlerDone ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockRegisterRequestHandlerDone() bool
MinimockRegisterRequestHandlerDone returns true if the count of the RegisterRequestHandler invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockRegisterRequestHandlerInspect ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockRegisterRequestHandlerInspect()
MinimockRegisterRequestHandlerInspect logs each unmet expectation
func (*HostNetworkMock) MinimockSendRequestDone ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockSendRequestDone() bool
MinimockSendRequestDone returns true if the count of the SendRequest invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockSendRequestInspect ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockSendRequestInspect()
MinimockSendRequestInspect logs each unmet expectation
func (*HostNetworkMock) MinimockSendRequestToHostDone ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockSendRequestToHostDone() bool
MinimockSendRequestToHostDone returns true if the count of the SendRequestToHost invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockSendRequestToHostInspect ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockSendRequestToHostInspect()
MinimockSendRequestToHostInspect logs each unmet expectation
func (*HostNetworkMock) MinimockStartDone ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockStartDone() bool
MinimockStartDone returns true if the count of the Start invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockStartInspect ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockStartInspect()
MinimockStartInspect logs each unmet expectation
func (*HostNetworkMock) MinimockStopDone ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockStopDone() bool
MinimockStopDone returns true if the count of the Stop invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockStopInspect ¶ added in v0.9.0
func (m *HostNetworkMock) MinimockStopInspect()
MinimockStopInspect logs each unmet expectation
func (*HostNetworkMock) MinimockWait ¶ added in v0.6.3
func (m *HostNetworkMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*HostNetworkMock) PublicAddress ¶ added in v0.6.3
func (mmPublicAddress *HostNetworkMock) PublicAddress() (s1 string)
PublicAddress implements network.HostNetwork
func (*HostNetworkMock) PublicAddressAfterCounter ¶ added in v0.9.0
func (mmPublicAddress *HostNetworkMock) PublicAddressAfterCounter() uint64
PublicAddressAfterCounter returns a count of finished HostNetworkMock.PublicAddress invocations
func (*HostNetworkMock) PublicAddressBeforeCounter ¶ added in v0.9.0
func (mmPublicAddress *HostNetworkMock) PublicAddressBeforeCounter() uint64
PublicAddressBeforeCounter returns a count of HostNetworkMock.PublicAddress invocations
func (*HostNetworkMock) RegisterRequestHandler ¶ added in v0.6.3
func (mmRegisterRequestHandler *HostNetworkMock) RegisterRequestHandler(t types.PacketType, handler mm_network.RequestHandler)
RegisterRequestHandler implements network.HostNetwork
func (*HostNetworkMock) RegisterRequestHandlerAfterCounter ¶ added in v0.9.0
func (mmRegisterRequestHandler *HostNetworkMock) RegisterRequestHandlerAfterCounter() uint64
RegisterRequestHandlerAfterCounter returns a count of finished HostNetworkMock.RegisterRequestHandler invocations
func (*HostNetworkMock) RegisterRequestHandlerBeforeCounter ¶ added in v0.9.0
func (mmRegisterRequestHandler *HostNetworkMock) RegisterRequestHandlerBeforeCounter() uint64
RegisterRequestHandlerBeforeCounter returns a count of HostNetworkMock.RegisterRequestHandler invocations
func (*HostNetworkMock) SendRequest ¶ added in v0.6.3
func (mmSendRequest *HostNetworkMock) SendRequest(ctx context.Context, t types.PacketType, requestData interface{}, receiver insolar.Reference) (f1 mm_network.Future, err error)
SendRequest implements network.HostNetwork
func (*HostNetworkMock) SendRequestAfterCounter ¶ added in v0.9.0
func (mmSendRequest *HostNetworkMock) SendRequestAfterCounter() uint64
SendRequestAfterCounter returns a count of finished HostNetworkMock.SendRequest invocations
func (*HostNetworkMock) SendRequestBeforeCounter ¶ added in v0.9.0
func (mmSendRequest *HostNetworkMock) SendRequestBeforeCounter() uint64
SendRequestBeforeCounter returns a count of HostNetworkMock.SendRequest invocations
func (*HostNetworkMock) SendRequestToHost ¶ added in v0.9.0
func (mmSendRequestToHost *HostNetworkMock) SendRequestToHost(ctx context.Context, t types.PacketType, requestData interface{}, receiver *host.Host) (f1 mm_network.Future, err error)
SendRequestToHost implements network.HostNetwork
func (*HostNetworkMock) SendRequestToHostAfterCounter ¶ added in v0.9.0
func (mmSendRequestToHost *HostNetworkMock) SendRequestToHostAfterCounter() uint64
SendRequestToHostAfterCounter returns a count of finished HostNetworkMock.SendRequestToHost invocations
func (*HostNetworkMock) SendRequestToHostBeforeCounter ¶ added in v0.9.0
func (mmSendRequestToHost *HostNetworkMock) SendRequestToHostBeforeCounter() uint64
SendRequestToHostBeforeCounter returns a count of HostNetworkMock.SendRequestToHost invocations
func (*HostNetworkMock) Start ¶ added in v0.6.3
func (mmStart *HostNetworkMock) Start(ctx context.Context) (err error)
Start implements network.HostNetwork
func (*HostNetworkMock) StartAfterCounter ¶ added in v0.9.0
func (mmStart *HostNetworkMock) StartAfterCounter() uint64
StartAfterCounter returns a count of finished HostNetworkMock.Start invocations
func (*HostNetworkMock) StartBeforeCounter ¶ added in v0.9.0
func (mmStart *HostNetworkMock) StartBeforeCounter() uint64
StartBeforeCounter returns a count of HostNetworkMock.Start invocations
func (*HostNetworkMock) Stop ¶ added in v0.6.3
func (mmStop *HostNetworkMock) Stop(ctx context.Context) (err error)
Stop implements network.HostNetwork
func (*HostNetworkMock) StopAfterCounter ¶ added in v0.9.0
func (mmStop *HostNetworkMock) StopAfterCounter() uint64
StopAfterCounter returns a count of finished HostNetworkMock.Stop invocations
func (*HostNetworkMock) StopBeforeCounter ¶ added in v0.9.0
func (mmStop *HostNetworkMock) StopBeforeCounter() uint64
StopBeforeCounter returns a count of HostNetworkMock.Stop invocations
type HostNetworkMockBuildResponseExpectation ¶ added in v0.7.5
type HostNetworkMockBuildResponseExpectation struct { Counter uint64 // contains filtered or unexported fields }
HostNetworkMockBuildResponseExpectation specifies expectation struct of the HostNetwork.BuildResponse
func (*HostNetworkMockBuildResponseExpectation) Then ¶ added in v0.9.0
func (e *HostNetworkMockBuildResponseExpectation) Then(p1 mm_network.Packet) *HostNetworkMock
Then sets up HostNetwork.BuildResponse return parameters for the expectation previously defined by the When method
type HostNetworkMockBuildResponseParams ¶ added in v0.6.3
type HostNetworkMockBuildResponseParams struct {
// contains filtered or unexported fields
}
HostNetworkMockBuildResponseParams contains parameters of the HostNetwork.BuildResponse
type HostNetworkMockBuildResponseResults ¶ added in v0.9.0
type HostNetworkMockBuildResponseResults struct {
// contains filtered or unexported fields
}
HostNetworkMockBuildResponseResults contains results of the HostNetwork.BuildResponse
type HostNetworkMockPublicAddressExpectation ¶ added in v0.7.5
type HostNetworkMockPublicAddressExpectation struct { Counter uint64 // contains filtered or unexported fields }
HostNetworkMockPublicAddressExpectation specifies expectation struct of the HostNetwork.PublicAddress
type HostNetworkMockPublicAddressResults ¶ added in v0.9.0
type HostNetworkMockPublicAddressResults struct {
// contains filtered or unexported fields
}
HostNetworkMockPublicAddressResults contains results of the HostNetwork.PublicAddress
type HostNetworkMockRegisterRequestHandlerExpectation ¶ added in v0.7.5
type HostNetworkMockRegisterRequestHandlerExpectation struct { Counter uint64 // contains filtered or unexported fields }
HostNetworkMockRegisterRequestHandlerExpectation specifies expectation struct of the HostNetwork.RegisterRequestHandler
type HostNetworkMockRegisterRequestHandlerParams ¶ added in v0.6.3
type HostNetworkMockRegisterRequestHandlerParams struct {
// contains filtered or unexported fields
}
HostNetworkMockRegisterRequestHandlerParams contains parameters of the HostNetwork.RegisterRequestHandler
type HostNetworkMockSendRequestExpectation ¶ added in v0.7.5
type HostNetworkMockSendRequestExpectation struct { Counter uint64 // contains filtered or unexported fields }
HostNetworkMockSendRequestExpectation specifies expectation struct of the HostNetwork.SendRequest
func (*HostNetworkMockSendRequestExpectation) Then ¶ added in v0.9.0
func (e *HostNetworkMockSendRequestExpectation) Then(f1 mm_network.Future, err error) *HostNetworkMock
Then sets up HostNetwork.SendRequest return parameters for the expectation previously defined by the When method
type HostNetworkMockSendRequestParams ¶ added in v0.6.3
type HostNetworkMockSendRequestParams struct {
// contains filtered or unexported fields
}
HostNetworkMockSendRequestParams contains parameters of the HostNetwork.SendRequest
type HostNetworkMockSendRequestResults ¶ added in v0.9.0
type HostNetworkMockSendRequestResults struct {
// contains filtered or unexported fields
}
HostNetworkMockSendRequestResults contains results of the HostNetwork.SendRequest
type HostNetworkMockSendRequestToHostExpectation ¶ added in v0.9.0
type HostNetworkMockSendRequestToHostExpectation struct { Counter uint64 // contains filtered or unexported fields }
HostNetworkMockSendRequestToHostExpectation specifies expectation struct of the HostNetwork.SendRequestToHost
func (*HostNetworkMockSendRequestToHostExpectation) Then ¶ added in v0.9.0
func (e *HostNetworkMockSendRequestToHostExpectation) Then(f1 mm_network.Future, err error) *HostNetworkMock
Then sets up HostNetwork.SendRequestToHost return parameters for the expectation previously defined by the When method
type HostNetworkMockSendRequestToHostParams ¶ added in v0.9.0
type HostNetworkMockSendRequestToHostParams struct {
// contains filtered or unexported fields
}
HostNetworkMockSendRequestToHostParams contains parameters of the HostNetwork.SendRequestToHost
type HostNetworkMockSendRequestToHostResults ¶ added in v0.9.0
type HostNetworkMockSendRequestToHostResults struct {
// contains filtered or unexported fields
}
HostNetworkMockSendRequestToHostResults contains results of the HostNetwork.SendRequestToHost
type HostNetworkMockStartExpectation ¶ added in v0.7.5
type HostNetworkMockStartExpectation struct { Counter uint64 // contains filtered or unexported fields }
HostNetworkMockStartExpectation specifies expectation struct of the HostNetwork.Start
func (*HostNetworkMockStartExpectation) Then ¶ added in v0.9.0
func (e *HostNetworkMockStartExpectation) Then(err error) *HostNetworkMock
Then sets up HostNetwork.Start return parameters for the expectation previously defined by the When method
type HostNetworkMockStartParams ¶ added in v0.6.3
type HostNetworkMockStartParams struct {
// contains filtered or unexported fields
}
HostNetworkMockStartParams contains parameters of the HostNetwork.Start
type HostNetworkMockStartResults ¶ added in v0.9.0
type HostNetworkMockStartResults struct {
// contains filtered or unexported fields
}
HostNetworkMockStartResults contains results of the HostNetwork.Start
type HostNetworkMockStopExpectation ¶ added in v0.7.5
type HostNetworkMockStopExpectation struct { Counter uint64 // contains filtered or unexported fields }
HostNetworkMockStopExpectation specifies expectation struct of the HostNetwork.Stop
func (*HostNetworkMockStopExpectation) Then ¶ added in v0.9.0
func (e *HostNetworkMockStopExpectation) Then(err error) *HostNetworkMock
Then sets up HostNetwork.Stop return parameters for the expectation previously defined by the When method
type HostNetworkMockStopParams ¶ added in v0.9.0
type HostNetworkMockStopParams struct {
// contains filtered or unexported fields
}
HostNetworkMockStopParams contains parameters of the HostNetwork.Stop
type HostNetworkMockStopResults ¶ added in v0.9.0
type HostNetworkMockStopResults struct {
// contains filtered or unexported fields
}
HostNetworkMockStopResults contains results of the HostNetwork.Stop
type NetworkNodeMock ¶ added in v0.9.0
type NetworkNodeMock struct { AddressMock mNetworkNodeMockAddress GetGlobuleIDMock mNetworkNodeMockGetGlobuleID GetPowerMock mNetworkNodeMockGetPower GetStateMock mNetworkNodeMockGetState IDMock mNetworkNodeMockID LeavingETAMock mNetworkNodeMockLeavingETA PublicKeyMock mNetworkNodeMockPublicKey RoleMock mNetworkNodeMockRole ShortIDMock mNetworkNodeMockShortID VersionMock mNetworkNodeMockVersion // contains filtered or unexported fields }
NetworkNodeMock implements insolar.NetworkNode
func NewNetworkNodeMock ¶ added in v0.9.0
func NewNetworkNodeMock(t minimock.Tester) *NetworkNodeMock
NewNetworkNodeMock returns a mock for insolar.NetworkNode
func (*NetworkNodeMock) Address ¶ added in v0.9.0
func (mmAddress *NetworkNodeMock) Address() (s1 string)
Address implements insolar.NetworkNode
func (*NetworkNodeMock) AddressAfterCounter ¶ added in v0.9.0
func (mmAddress *NetworkNodeMock) AddressAfterCounter() uint64
AddressAfterCounter returns a count of finished NetworkNodeMock.Address invocations
func (*NetworkNodeMock) AddressBeforeCounter ¶ added in v0.9.0
func (mmAddress *NetworkNodeMock) AddressBeforeCounter() uint64
AddressBeforeCounter returns a count of NetworkNodeMock.Address invocations
func (*NetworkNodeMock) GetGlobuleID ¶ added in v0.9.0
func (mmGetGlobuleID *NetworkNodeMock) GetGlobuleID() (g1 mm_insolar.GlobuleID)
GetGlobuleID implements insolar.NetworkNode
func (*NetworkNodeMock) GetGlobuleIDAfterCounter ¶ added in v0.9.0
func (mmGetGlobuleID *NetworkNodeMock) GetGlobuleIDAfterCounter() uint64
GetGlobuleIDAfterCounter returns a count of finished NetworkNodeMock.GetGlobuleID invocations
func (*NetworkNodeMock) GetGlobuleIDBeforeCounter ¶ added in v0.9.0
func (mmGetGlobuleID *NetworkNodeMock) GetGlobuleIDBeforeCounter() uint64
GetGlobuleIDBeforeCounter returns a count of NetworkNodeMock.GetGlobuleID invocations
func (*NetworkNodeMock) GetPower ¶ added in v0.9.0
func (mmGetPower *NetworkNodeMock) GetPower() (p1 mm_insolar.Power)
GetPower implements insolar.NetworkNode
func (*NetworkNodeMock) GetPowerAfterCounter ¶ added in v0.9.0
func (mmGetPower *NetworkNodeMock) GetPowerAfterCounter() uint64
GetPowerAfterCounter returns a count of finished NetworkNodeMock.GetPower invocations
func (*NetworkNodeMock) GetPowerBeforeCounter ¶ added in v0.9.0
func (mmGetPower *NetworkNodeMock) GetPowerBeforeCounter() uint64
GetPowerBeforeCounter returns a count of NetworkNodeMock.GetPower invocations
func (*NetworkNodeMock) GetState ¶ added in v0.9.0
func (mmGetState *NetworkNodeMock) GetState() (n1 mm_insolar.NodeState)
GetState implements insolar.NetworkNode
func (*NetworkNodeMock) GetStateAfterCounter ¶ added in v0.9.0
func (mmGetState *NetworkNodeMock) GetStateAfterCounter() uint64
GetStateAfterCounter returns a count of finished NetworkNodeMock.GetState invocations
func (*NetworkNodeMock) GetStateBeforeCounter ¶ added in v0.9.0
func (mmGetState *NetworkNodeMock) GetStateBeforeCounter() uint64
GetStateBeforeCounter returns a count of NetworkNodeMock.GetState invocations
func (*NetworkNodeMock) ID ¶ added in v0.9.0
func (mmID *NetworkNodeMock) ID() (r1 mm_insolar.Reference)
ID implements insolar.NetworkNode
func (*NetworkNodeMock) IDAfterCounter ¶ added in v0.9.0
func (mmID *NetworkNodeMock) IDAfterCounter() uint64
IDAfterCounter returns a count of finished NetworkNodeMock.ID invocations
func (*NetworkNodeMock) IDBeforeCounter ¶ added in v0.9.0
func (mmID *NetworkNodeMock) IDBeforeCounter() uint64
IDBeforeCounter returns a count of NetworkNodeMock.ID invocations
func (*NetworkNodeMock) LeavingETA ¶ added in v0.9.0
func (mmLeavingETA *NetworkNodeMock) LeavingETA() (p1 mm_insolar.PulseNumber)
LeavingETA implements insolar.NetworkNode
func (*NetworkNodeMock) LeavingETAAfterCounter ¶ added in v0.9.0
func (mmLeavingETA *NetworkNodeMock) LeavingETAAfterCounter() uint64
LeavingETAAfterCounter returns a count of finished NetworkNodeMock.LeavingETA invocations
func (*NetworkNodeMock) LeavingETABeforeCounter ¶ added in v0.9.0
func (mmLeavingETA *NetworkNodeMock) LeavingETABeforeCounter() uint64
LeavingETABeforeCounter returns a count of NetworkNodeMock.LeavingETA invocations
func (*NetworkNodeMock) MinimockAddressDone ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockAddressDone() bool
MinimockAddressDone returns true if the count of the Address invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockAddressInspect ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockAddressInspect()
MinimockAddressInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockFinish ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*NetworkNodeMock) MinimockGetGlobuleIDDone ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockGetGlobuleIDDone() bool
MinimockGetGlobuleIDDone returns true if the count of the GetGlobuleID invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockGetGlobuleIDInspect ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockGetGlobuleIDInspect()
MinimockGetGlobuleIDInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockGetPowerDone ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockGetPowerDone() bool
MinimockGetPowerDone returns true if the count of the GetPower invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockGetPowerInspect ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockGetPowerInspect()
MinimockGetPowerInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockGetStateDone ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockGetStateDone() bool
MinimockGetStateDone returns true if the count of the GetState invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockGetStateInspect ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockGetStateInspect()
MinimockGetStateInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockIDDone ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockIDDone() bool
MinimockIDDone returns true if the count of the ID invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockIDInspect ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockIDInspect()
MinimockIDInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockLeavingETADone ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockLeavingETADone() bool
MinimockLeavingETADone returns true if the count of the LeavingETA invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockLeavingETAInspect ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockLeavingETAInspect()
MinimockLeavingETAInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockPublicKeyDone ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockPublicKeyDone() bool
MinimockPublicKeyDone returns true if the count of the PublicKey invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockPublicKeyInspect ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockPublicKeyInspect()
MinimockPublicKeyInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockRoleDone ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockRoleDone() bool
MinimockRoleDone returns true if the count of the Role invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockRoleInspect ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockRoleInspect()
MinimockRoleInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockShortIDDone ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockShortIDDone() bool
MinimockShortIDDone returns true if the count of the ShortID invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockShortIDInspect ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockShortIDInspect()
MinimockShortIDInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockVersionDone ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockVersionDone() bool
MinimockVersionDone returns true if the count of the Version invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockVersionInspect ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockVersionInspect()
MinimockVersionInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockWait ¶ added in v0.9.0
func (m *NetworkNodeMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*NetworkNodeMock) PublicKey ¶ added in v0.9.0
func (mmPublicKey *NetworkNodeMock) PublicKey() (p1 crypto.PublicKey)
PublicKey implements insolar.NetworkNode
func (*NetworkNodeMock) PublicKeyAfterCounter ¶ added in v0.9.0
func (mmPublicKey *NetworkNodeMock) PublicKeyAfterCounter() uint64
PublicKeyAfterCounter returns a count of finished NetworkNodeMock.PublicKey invocations
func (*NetworkNodeMock) PublicKeyBeforeCounter ¶ added in v0.9.0
func (mmPublicKey *NetworkNodeMock) PublicKeyBeforeCounter() uint64
PublicKeyBeforeCounter returns a count of NetworkNodeMock.PublicKey invocations
func (*NetworkNodeMock) Role ¶ added in v0.9.0
func (mmRole *NetworkNodeMock) Role() (s1 mm_insolar.StaticRole)
Role implements insolar.NetworkNode
func (*NetworkNodeMock) RoleAfterCounter ¶ added in v0.9.0
func (mmRole *NetworkNodeMock) RoleAfterCounter() uint64
RoleAfterCounter returns a count of finished NetworkNodeMock.Role invocations
func (*NetworkNodeMock) RoleBeforeCounter ¶ added in v0.9.0
func (mmRole *NetworkNodeMock) RoleBeforeCounter() uint64
RoleBeforeCounter returns a count of NetworkNodeMock.Role invocations
func (*NetworkNodeMock) ShortID ¶ added in v0.9.0
func (mmShortID *NetworkNodeMock) ShortID() (s1 mm_insolar.ShortNodeID)
ShortID implements insolar.NetworkNode
func (*NetworkNodeMock) ShortIDAfterCounter ¶ added in v0.9.0
func (mmShortID *NetworkNodeMock) ShortIDAfterCounter() uint64
ShortIDAfterCounter returns a count of finished NetworkNodeMock.ShortID invocations
func (*NetworkNodeMock) ShortIDBeforeCounter ¶ added in v0.9.0
func (mmShortID *NetworkNodeMock) ShortIDBeforeCounter() uint64
ShortIDBeforeCounter returns a count of NetworkNodeMock.ShortID invocations
func (*NetworkNodeMock) Version ¶ added in v0.9.0
func (mmVersion *NetworkNodeMock) Version() (s1 string)
Version implements insolar.NetworkNode
func (*NetworkNodeMock) VersionAfterCounter ¶ added in v0.9.0
func (mmVersion *NetworkNodeMock) VersionAfterCounter() uint64
VersionAfterCounter returns a count of finished NetworkNodeMock.Version invocations
func (*NetworkNodeMock) VersionBeforeCounter ¶ added in v0.9.0
func (mmVersion *NetworkNodeMock) VersionBeforeCounter() uint64
VersionBeforeCounter returns a count of NetworkNodeMock.Version invocations
type NetworkNodeMockAddressExpectation ¶ added in v0.9.0
type NetworkNodeMockAddressExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockAddressExpectation specifies expectation struct of the NetworkNode.Address
type NetworkNodeMockAddressResults ¶ added in v0.9.0
type NetworkNodeMockAddressResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockAddressResults contains results of the NetworkNode.Address
type NetworkNodeMockGetGlobuleIDExpectation ¶ added in v0.9.0
type NetworkNodeMockGetGlobuleIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockGetGlobuleIDExpectation specifies expectation struct of the NetworkNode.GetGlobuleID
type NetworkNodeMockGetGlobuleIDResults ¶ added in v0.9.0
type NetworkNodeMockGetGlobuleIDResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockGetGlobuleIDResults contains results of the NetworkNode.GetGlobuleID
type NetworkNodeMockGetPowerExpectation ¶ added in v0.9.0
type NetworkNodeMockGetPowerExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockGetPowerExpectation specifies expectation struct of the NetworkNode.GetPower
type NetworkNodeMockGetPowerResults ¶ added in v0.9.0
type NetworkNodeMockGetPowerResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockGetPowerResults contains results of the NetworkNode.GetPower
type NetworkNodeMockGetStateExpectation ¶ added in v0.9.0
type NetworkNodeMockGetStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockGetStateExpectation specifies expectation struct of the NetworkNode.GetState
type NetworkNodeMockGetStateResults ¶ added in v0.9.0
type NetworkNodeMockGetStateResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockGetStateResults contains results of the NetworkNode.GetState
type NetworkNodeMockIDExpectation ¶ added in v0.9.0
type NetworkNodeMockIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockIDExpectation specifies expectation struct of the NetworkNode.ID
type NetworkNodeMockIDResults ¶ added in v0.9.0
type NetworkNodeMockIDResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockIDResults contains results of the NetworkNode.ID
type NetworkNodeMockLeavingETAExpectation ¶ added in v0.9.0
type NetworkNodeMockLeavingETAExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockLeavingETAExpectation specifies expectation struct of the NetworkNode.LeavingETA
type NetworkNodeMockLeavingETAResults ¶ added in v0.9.0
type NetworkNodeMockLeavingETAResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockLeavingETAResults contains results of the NetworkNode.LeavingETA
type NetworkNodeMockPublicKeyExpectation ¶ added in v0.9.0
type NetworkNodeMockPublicKeyExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockPublicKeyExpectation specifies expectation struct of the NetworkNode.PublicKey
type NetworkNodeMockPublicKeyResults ¶ added in v0.9.0
type NetworkNodeMockPublicKeyResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockPublicKeyResults contains results of the NetworkNode.PublicKey
type NetworkNodeMockRoleExpectation ¶ added in v0.9.0
type NetworkNodeMockRoleExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockRoleExpectation specifies expectation struct of the NetworkNode.Role
type NetworkNodeMockRoleResults ¶ added in v0.9.0
type NetworkNodeMockRoleResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockRoleResults contains results of the NetworkNode.Role
type NetworkNodeMockShortIDExpectation ¶ added in v0.9.0
type NetworkNodeMockShortIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockShortIDExpectation specifies expectation struct of the NetworkNode.ShortID
type NetworkNodeMockShortIDResults ¶ added in v0.9.0
type NetworkNodeMockShortIDResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockShortIDResults contains results of the NetworkNode.ShortID
type NetworkNodeMockVersionExpectation ¶ added in v0.9.0
type NetworkNodeMockVersionExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockVersionExpectation specifies expectation struct of the NetworkNode.Version
type NetworkNodeMockVersionResults ¶ added in v0.9.0
type NetworkNodeMockVersionResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockVersionResults contains results of the NetworkNode.Version
type NodeKeeperMock ¶ added in v0.6.3
type NodeKeeperMock struct { GetAccessorMock mNodeKeeperMockGetAccessor GetOriginMock mNodeKeeperMockGetOrigin MoveSyncToActiveMock mNodeKeeperMockMoveSyncToActive SetInitialSnapshotMock mNodeKeeperMockSetInitialSnapshot SyncMock mNodeKeeperMockSync // contains filtered or unexported fields }
NodeKeeperMock implements network.NodeKeeper
func NewNodeKeeperMock ¶ added in v0.6.3
func NewNodeKeeperMock(t minimock.Tester) *NodeKeeperMock
NewNodeKeeperMock returns a mock for network.NodeKeeper
func (*NodeKeeperMock) GetAccessor ¶ added in v0.9.0
func (mmGetAccessor *NodeKeeperMock) GetAccessor(p1 insolar.PulseNumber) (a1 mm_network.Accessor)
GetAccessor implements network.NodeKeeper
func (*NodeKeeperMock) GetAccessorAfterCounter ¶ added in v0.9.0
func (mmGetAccessor *NodeKeeperMock) GetAccessorAfterCounter() uint64
GetAccessorAfterCounter returns a count of finished NodeKeeperMock.GetAccessor invocations
func (*NodeKeeperMock) GetAccessorBeforeCounter ¶ added in v0.9.0
func (mmGetAccessor *NodeKeeperMock) GetAccessorBeforeCounter() uint64
GetAccessorBeforeCounter returns a count of NodeKeeperMock.GetAccessor invocations
func (*NodeKeeperMock) GetOrigin ¶ added in v0.6.3
func (mmGetOrigin *NodeKeeperMock) GetOrigin() (n1 insolar.NetworkNode)
GetOrigin implements network.NodeKeeper
func (*NodeKeeperMock) GetOriginAfterCounter ¶ added in v0.9.0
func (mmGetOrigin *NodeKeeperMock) GetOriginAfterCounter() uint64
GetOriginAfterCounter returns a count of finished NodeKeeperMock.GetOrigin invocations
func (*NodeKeeperMock) GetOriginBeforeCounter ¶ added in v0.9.0
func (mmGetOrigin *NodeKeeperMock) GetOriginBeforeCounter() uint64
GetOriginBeforeCounter returns a count of NodeKeeperMock.GetOrigin invocations
func (*NodeKeeperMock) MinimockFinish ¶ added in v0.6.3
func (m *NodeKeeperMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*NodeKeeperMock) MinimockGetAccessorDone ¶ added in v0.9.0
func (m *NodeKeeperMock) MinimockGetAccessorDone() bool
MinimockGetAccessorDone returns true if the count of the GetAccessor invocations corresponds the number of defined expectations
func (*NodeKeeperMock) MinimockGetAccessorInspect ¶ added in v0.9.0
func (m *NodeKeeperMock) MinimockGetAccessorInspect()
MinimockGetAccessorInspect logs each unmet expectation
func (*NodeKeeperMock) MinimockGetOriginDone ¶ added in v0.9.0
func (m *NodeKeeperMock) MinimockGetOriginDone() bool
MinimockGetOriginDone returns true if the count of the GetOrigin invocations corresponds the number of defined expectations
func (*NodeKeeperMock) MinimockGetOriginInspect ¶ added in v0.9.0
func (m *NodeKeeperMock) MinimockGetOriginInspect()
MinimockGetOriginInspect logs each unmet expectation
func (*NodeKeeperMock) MinimockMoveSyncToActiveDone ¶ added in v0.9.0
func (m *NodeKeeperMock) MinimockMoveSyncToActiveDone() bool
MinimockMoveSyncToActiveDone returns true if the count of the MoveSyncToActive invocations corresponds the number of defined expectations
func (*NodeKeeperMock) MinimockMoveSyncToActiveInspect ¶ added in v0.9.0
func (m *NodeKeeperMock) MinimockMoveSyncToActiveInspect()
MinimockMoveSyncToActiveInspect logs each unmet expectation
func (*NodeKeeperMock) MinimockSetInitialSnapshotDone ¶ added in v0.9.0
func (m *NodeKeeperMock) MinimockSetInitialSnapshotDone() bool
MinimockSetInitialSnapshotDone returns true if the count of the SetInitialSnapshot invocations corresponds the number of defined expectations
func (*NodeKeeperMock) MinimockSetInitialSnapshotInspect ¶ added in v0.9.0
func (m *NodeKeeperMock) MinimockSetInitialSnapshotInspect()
MinimockSetInitialSnapshotInspect logs each unmet expectation
func (*NodeKeeperMock) MinimockSyncDone ¶ added in v0.9.0
func (m *NodeKeeperMock) MinimockSyncDone() bool
MinimockSyncDone returns true if the count of the Sync invocations corresponds the number of defined expectations
func (*NodeKeeperMock) MinimockSyncInspect ¶ added in v0.9.0
func (m *NodeKeeperMock) MinimockSyncInspect()
MinimockSyncInspect logs each unmet expectation
func (*NodeKeeperMock) MinimockWait ¶ added in v0.6.3
func (m *NodeKeeperMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*NodeKeeperMock) MoveSyncToActive ¶ added in v0.6.3
func (mmMoveSyncToActive *NodeKeeperMock) MoveSyncToActive(ctx context.Context, p1 insolar.PulseNumber)
MoveSyncToActive implements network.NodeKeeper
func (*NodeKeeperMock) MoveSyncToActiveAfterCounter ¶ added in v0.9.0
func (mmMoveSyncToActive *NodeKeeperMock) MoveSyncToActiveAfterCounter() uint64
MoveSyncToActiveAfterCounter returns a count of finished NodeKeeperMock.MoveSyncToActive invocations
func (*NodeKeeperMock) MoveSyncToActiveBeforeCounter ¶ added in v0.9.0
func (mmMoveSyncToActive *NodeKeeperMock) MoveSyncToActiveBeforeCounter() uint64
MoveSyncToActiveBeforeCounter returns a count of NodeKeeperMock.MoveSyncToActive invocations
func (*NodeKeeperMock) SetInitialSnapshot ¶ added in v0.9.0
func (mmSetInitialSnapshot *NodeKeeperMock) SetInitialSnapshot(nodes []insolar.NetworkNode)
SetInitialSnapshot implements network.NodeKeeper
func (*NodeKeeperMock) SetInitialSnapshotAfterCounter ¶ added in v0.9.0
func (mmSetInitialSnapshot *NodeKeeperMock) SetInitialSnapshotAfterCounter() uint64
SetInitialSnapshotAfterCounter returns a count of finished NodeKeeperMock.SetInitialSnapshot invocations
func (*NodeKeeperMock) SetInitialSnapshotBeforeCounter ¶ added in v0.9.0
func (mmSetInitialSnapshot *NodeKeeperMock) SetInitialSnapshotBeforeCounter() uint64
SetInitialSnapshotBeforeCounter returns a count of NodeKeeperMock.SetInitialSnapshot invocations
func (*NodeKeeperMock) Sync ¶ added in v0.6.3
func (mmSync *NodeKeeperMock) Sync(ctx context.Context, p1 insolar.PulseNumber, na1 []insolar.NetworkNode)
Sync implements network.NodeKeeper
func (*NodeKeeperMock) SyncAfterCounter ¶ added in v0.9.0
func (mmSync *NodeKeeperMock) SyncAfterCounter() uint64
SyncAfterCounter returns a count of finished NodeKeeperMock.Sync invocations
func (*NodeKeeperMock) SyncBeforeCounter ¶ added in v0.9.0
func (mmSync *NodeKeeperMock) SyncBeforeCounter() uint64
SyncBeforeCounter returns a count of NodeKeeperMock.Sync invocations
type NodeKeeperMockGetAccessorExpectation ¶ added in v0.9.0
type NodeKeeperMockGetAccessorExpectation struct { Counter uint64 // contains filtered or unexported fields }
NodeKeeperMockGetAccessorExpectation specifies expectation struct of the NodeKeeper.GetAccessor
func (*NodeKeeperMockGetAccessorExpectation) Then ¶ added in v0.9.0
func (e *NodeKeeperMockGetAccessorExpectation) Then(a1 mm_network.Accessor) *NodeKeeperMock
Then sets up NodeKeeper.GetAccessor return parameters for the expectation previously defined by the When method
type NodeKeeperMockGetAccessorParams ¶ added in v0.9.0
type NodeKeeperMockGetAccessorParams struct {
// contains filtered or unexported fields
}
NodeKeeperMockGetAccessorParams contains parameters of the NodeKeeper.GetAccessor
type NodeKeeperMockGetAccessorResults ¶ added in v0.9.0
type NodeKeeperMockGetAccessorResults struct {
// contains filtered or unexported fields
}
NodeKeeperMockGetAccessorResults contains results of the NodeKeeper.GetAccessor
type NodeKeeperMockGetOriginExpectation ¶ added in v0.7.5
type NodeKeeperMockGetOriginExpectation struct { Counter uint64 // contains filtered or unexported fields }
NodeKeeperMockGetOriginExpectation specifies expectation struct of the NodeKeeper.GetOrigin
type NodeKeeperMockGetOriginResults ¶ added in v0.9.0
type NodeKeeperMockGetOriginResults struct {
// contains filtered or unexported fields
}
NodeKeeperMockGetOriginResults contains results of the NodeKeeper.GetOrigin
type NodeKeeperMockMoveSyncToActiveExpectation ¶ added in v0.7.5
type NodeKeeperMockMoveSyncToActiveExpectation struct { Counter uint64 // contains filtered or unexported fields }
NodeKeeperMockMoveSyncToActiveExpectation specifies expectation struct of the NodeKeeper.MoveSyncToActive
type NodeKeeperMockMoveSyncToActiveParams ¶ added in v0.9.0
type NodeKeeperMockMoveSyncToActiveParams struct {
// contains filtered or unexported fields
}
NodeKeeperMockMoveSyncToActiveParams contains parameters of the NodeKeeper.MoveSyncToActive
type NodeKeeperMockSetInitialSnapshotExpectation ¶ added in v0.9.0
type NodeKeeperMockSetInitialSnapshotExpectation struct { Counter uint64 // contains filtered or unexported fields }
NodeKeeperMockSetInitialSnapshotExpectation specifies expectation struct of the NodeKeeper.SetInitialSnapshot
type NodeKeeperMockSetInitialSnapshotParams ¶ added in v0.9.0
type NodeKeeperMockSetInitialSnapshotParams struct {
// contains filtered or unexported fields
}
NodeKeeperMockSetInitialSnapshotParams contains parameters of the NodeKeeper.SetInitialSnapshot
type NodeKeeperMockSyncExpectation ¶ added in v0.7.5
type NodeKeeperMockSyncExpectation struct { Counter uint64 // contains filtered or unexported fields }
NodeKeeperMockSyncExpectation specifies expectation struct of the NodeKeeper.Sync
type NodeKeeperMockSyncParams ¶ added in v0.6.3
type NodeKeeperMockSyncParams struct {
// contains filtered or unexported fields
}
NodeKeeperMockSyncParams contains parameters of the NodeKeeper.Sync
type NodeNetworkMock ¶ added in v0.6.3
type NodeNetworkMock struct { GetAccessorMock mNodeNetworkMockGetAccessor GetOriginMock mNodeNetworkMockGetOrigin // contains filtered or unexported fields }
NodeNetworkMock implements network.NodeNetwork
func NewNodeNetworkMock ¶ added in v0.6.3
func NewNodeNetworkMock(t minimock.Tester) *NodeNetworkMock
NewNodeNetworkMock returns a mock for network.NodeNetwork
func (*NodeNetworkMock) GetAccessor ¶ added in v0.9.0
func (mmGetAccessor *NodeNetworkMock) GetAccessor(p1 insolar.PulseNumber) (a1 mm_network.Accessor)
GetAccessor implements network.NodeNetwork
func (*NodeNetworkMock) GetAccessorAfterCounter ¶ added in v0.9.0
func (mmGetAccessor *NodeNetworkMock) GetAccessorAfterCounter() uint64
GetAccessorAfterCounter returns a count of finished NodeNetworkMock.GetAccessor invocations
func (*NodeNetworkMock) GetAccessorBeforeCounter ¶ added in v0.9.0
func (mmGetAccessor *NodeNetworkMock) GetAccessorBeforeCounter() uint64
GetAccessorBeforeCounter returns a count of NodeNetworkMock.GetAccessor invocations
func (*NodeNetworkMock) GetOrigin ¶ added in v0.6.3
func (mmGetOrigin *NodeNetworkMock) GetOrigin() (n1 insolar.NetworkNode)
GetOrigin implements network.NodeNetwork
func (*NodeNetworkMock) GetOriginAfterCounter ¶ added in v0.9.0
func (mmGetOrigin *NodeNetworkMock) GetOriginAfterCounter() uint64
GetOriginAfterCounter returns a count of finished NodeNetworkMock.GetOrigin invocations
func (*NodeNetworkMock) GetOriginBeforeCounter ¶ added in v0.9.0
func (mmGetOrigin *NodeNetworkMock) GetOriginBeforeCounter() uint64
GetOriginBeforeCounter returns a count of NodeNetworkMock.GetOrigin invocations
func (*NodeNetworkMock) MinimockFinish ¶ added in v0.6.3
func (m *NodeNetworkMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*NodeNetworkMock) MinimockGetAccessorDone ¶ added in v0.9.0
func (m *NodeNetworkMock) MinimockGetAccessorDone() bool
MinimockGetAccessorDone returns true if the count of the GetAccessor invocations corresponds the number of defined expectations
func (*NodeNetworkMock) MinimockGetAccessorInspect ¶ added in v0.9.0
func (m *NodeNetworkMock) MinimockGetAccessorInspect()
MinimockGetAccessorInspect logs each unmet expectation
func (*NodeNetworkMock) MinimockGetOriginDone ¶ added in v0.9.0
func (m *NodeNetworkMock) MinimockGetOriginDone() bool
MinimockGetOriginDone returns true if the count of the GetOrigin invocations corresponds the number of defined expectations
func (*NodeNetworkMock) MinimockGetOriginInspect ¶ added in v0.9.0
func (m *NodeNetworkMock) MinimockGetOriginInspect()
MinimockGetOriginInspect logs each unmet expectation
func (*NodeNetworkMock) MinimockWait ¶ added in v0.6.3
func (m *NodeNetworkMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type NodeNetworkMockGetAccessorExpectation ¶ added in v0.9.0
type NodeNetworkMockGetAccessorExpectation struct { Counter uint64 // contains filtered or unexported fields }
NodeNetworkMockGetAccessorExpectation specifies expectation struct of the NodeNetwork.GetAccessor
func (*NodeNetworkMockGetAccessorExpectation) Then ¶ added in v0.9.0
func (e *NodeNetworkMockGetAccessorExpectation) Then(a1 mm_network.Accessor) *NodeNetworkMock
Then sets up NodeNetwork.GetAccessor return parameters for the expectation previously defined by the When method
type NodeNetworkMockGetAccessorParams ¶ added in v0.9.0
type NodeNetworkMockGetAccessorParams struct {
// contains filtered or unexported fields
}
NodeNetworkMockGetAccessorParams contains parameters of the NodeNetwork.GetAccessor
type NodeNetworkMockGetAccessorResults ¶ added in v0.9.0
type NodeNetworkMockGetAccessorResults struct {
// contains filtered or unexported fields
}
NodeNetworkMockGetAccessorResults contains results of the NodeNetwork.GetAccessor
type NodeNetworkMockGetOriginExpectation ¶ added in v0.7.5
type NodeNetworkMockGetOriginExpectation struct { Counter uint64 // contains filtered or unexported fields }
NodeNetworkMockGetOriginExpectation specifies expectation struct of the NodeNetwork.GetOrigin
type NodeNetworkMockGetOriginResults ¶ added in v0.9.0
type NodeNetworkMockGetOriginResults struct {
// contains filtered or unexported fields
}
NodeNetworkMockGetOriginResults contains results of the NodeNetwork.GetOrigin
type OriginProviderMock ¶ added in v0.9.0
type OriginProviderMock struct { GetOriginMock mOriginProviderMockGetOrigin // contains filtered or unexported fields }
OriginProviderMock implements network.OriginProvider
func NewOriginProviderMock ¶ added in v0.9.0
func NewOriginProviderMock(t minimock.Tester) *OriginProviderMock
NewOriginProviderMock returns a mock for network.OriginProvider
func (*OriginProviderMock) GetOrigin ¶ added in v0.9.0
func (mmGetOrigin *OriginProviderMock) GetOrigin() (n1 insolar.NetworkNode)
GetOrigin implements network.OriginProvider
func (*OriginProviderMock) GetOriginAfterCounter ¶ added in v0.9.0
func (mmGetOrigin *OriginProviderMock) GetOriginAfterCounter() uint64
GetOriginAfterCounter returns a count of finished OriginProviderMock.GetOrigin invocations
func (*OriginProviderMock) GetOriginBeforeCounter ¶ added in v0.9.0
func (mmGetOrigin *OriginProviderMock) GetOriginBeforeCounter() uint64
GetOriginBeforeCounter returns a count of OriginProviderMock.GetOrigin invocations
func (*OriginProviderMock) MinimockFinish ¶ added in v0.9.0
func (m *OriginProviderMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*OriginProviderMock) MinimockGetOriginDone ¶ added in v0.9.0
func (m *OriginProviderMock) MinimockGetOriginDone() bool
MinimockGetOriginDone returns true if the count of the GetOrigin invocations corresponds the number of defined expectations
func (*OriginProviderMock) MinimockGetOriginInspect ¶ added in v0.9.0
func (m *OriginProviderMock) MinimockGetOriginInspect()
MinimockGetOriginInspect logs each unmet expectation
func (*OriginProviderMock) MinimockWait ¶ added in v0.9.0
func (m *OriginProviderMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type OriginProviderMockGetOriginExpectation ¶ added in v0.9.0
type OriginProviderMockGetOriginExpectation struct { Counter uint64 // contains filtered or unexported fields }
OriginProviderMockGetOriginExpectation specifies expectation struct of the OriginProvider.GetOrigin
type OriginProviderMockGetOriginResults ¶ added in v0.9.0
type OriginProviderMockGetOriginResults struct {
// contains filtered or unexported fields
}
OriginProviderMockGetOriginResults contains results of the OriginProvider.GetOrigin
type PulseAccessorMock ¶ added in v0.9.0
type PulseAccessorMock struct { GetLatestPulseMock mPulseAccessorMockGetLatestPulse GetPulseMock mPulseAccessorMockGetPulse // contains filtered or unexported fields }
PulseAccessorMock implements storage.PulseAccessor
func NewPulseAccessorMock ¶ added in v0.9.0
func NewPulseAccessorMock(t minimock.Tester) *PulseAccessorMock
NewPulseAccessorMock returns a mock for storage.PulseAccessor
func (*PulseAccessorMock) GetLatestPulse ¶ added in v0.9.0
func (mmGetLatestPulse *PulseAccessorMock) GetLatestPulse(ctx context.Context) (p1 insolar.Pulse, err error)
GetLatestPulse implements storage.PulseAccessor
func (*PulseAccessorMock) GetLatestPulseAfterCounter ¶ added in v0.9.0
func (mmGetLatestPulse *PulseAccessorMock) GetLatestPulseAfterCounter() uint64
GetLatestPulseAfterCounter returns a count of finished PulseAccessorMock.GetLatestPulse invocations
func (*PulseAccessorMock) GetLatestPulseBeforeCounter ¶ added in v0.9.0
func (mmGetLatestPulse *PulseAccessorMock) GetLatestPulseBeforeCounter() uint64
GetLatestPulseBeforeCounter returns a count of PulseAccessorMock.GetLatestPulse invocations
func (*PulseAccessorMock) GetPulse ¶ added in v0.9.0
func (mmGetPulse *PulseAccessorMock) GetPulse(ctx context.Context, p1 insolar.PulseNumber) (p2 insolar.Pulse, err error)
GetPulse implements storage.PulseAccessor
func (*PulseAccessorMock) GetPulseAfterCounter ¶ added in v0.9.0
func (mmGetPulse *PulseAccessorMock) GetPulseAfterCounter() uint64
GetPulseAfterCounter returns a count of finished PulseAccessorMock.GetPulse invocations
func (*PulseAccessorMock) GetPulseBeforeCounter ¶ added in v0.9.0
func (mmGetPulse *PulseAccessorMock) GetPulseBeforeCounter() uint64
GetPulseBeforeCounter returns a count of PulseAccessorMock.GetPulse invocations
func (*PulseAccessorMock) MinimockFinish ¶ added in v0.9.0
func (m *PulseAccessorMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*PulseAccessorMock) MinimockGetLatestPulseDone ¶ added in v0.9.0
func (m *PulseAccessorMock) MinimockGetLatestPulseDone() bool
MinimockGetLatestPulseDone returns true if the count of the GetLatestPulse invocations corresponds the number of defined expectations
func (*PulseAccessorMock) MinimockGetLatestPulseInspect ¶ added in v0.9.0
func (m *PulseAccessorMock) MinimockGetLatestPulseInspect()
MinimockGetLatestPulseInspect logs each unmet expectation
func (*PulseAccessorMock) MinimockGetPulseDone ¶ added in v0.9.0
func (m *PulseAccessorMock) MinimockGetPulseDone() bool
MinimockGetPulseDone returns true if the count of the GetPulse invocations corresponds the number of defined expectations
func (*PulseAccessorMock) MinimockGetPulseInspect ¶ added in v0.9.0
func (m *PulseAccessorMock) MinimockGetPulseInspect()
MinimockGetPulseInspect logs each unmet expectation
func (*PulseAccessorMock) MinimockWait ¶ added in v0.9.0
func (m *PulseAccessorMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type PulseAccessorMockGetLatestPulseExpectation ¶ added in v0.9.0
type PulseAccessorMockGetLatestPulseExpectation struct { Counter uint64 // contains filtered or unexported fields }
PulseAccessorMockGetLatestPulseExpectation specifies expectation struct of the PulseAccessor.GetLatestPulse
func (*PulseAccessorMockGetLatestPulseExpectation) Then ¶ added in v0.9.0
func (e *PulseAccessorMockGetLatestPulseExpectation) Then(p1 insolar.Pulse, err error) *PulseAccessorMock
Then sets up PulseAccessor.GetLatestPulse return parameters for the expectation previously defined by the When method
type PulseAccessorMockGetLatestPulseParams ¶ added in v0.9.0
type PulseAccessorMockGetLatestPulseParams struct {
// contains filtered or unexported fields
}
PulseAccessorMockGetLatestPulseParams contains parameters of the PulseAccessor.GetLatestPulse
type PulseAccessorMockGetLatestPulseResults ¶ added in v0.9.0
type PulseAccessorMockGetLatestPulseResults struct {
// contains filtered or unexported fields
}
PulseAccessorMockGetLatestPulseResults contains results of the PulseAccessor.GetLatestPulse
type PulseAccessorMockGetPulseExpectation ¶ added in v0.9.0
type PulseAccessorMockGetPulseExpectation struct { Counter uint64 // contains filtered or unexported fields }
PulseAccessorMockGetPulseExpectation specifies expectation struct of the PulseAccessor.GetPulse
func (*PulseAccessorMockGetPulseExpectation) Then ¶ added in v0.9.0
func (e *PulseAccessorMockGetPulseExpectation) Then(p2 insolar.Pulse, err error) *PulseAccessorMock
Then sets up PulseAccessor.GetPulse return parameters for the expectation previously defined by the When method
type PulseAccessorMockGetPulseParams ¶ added in v0.9.0
type PulseAccessorMockGetPulseParams struct {
// contains filtered or unexported fields
}
PulseAccessorMockGetPulseParams contains parameters of the PulseAccessor.GetPulse
type PulseAccessorMockGetPulseResults ¶ added in v0.9.0
type PulseAccessorMockGetPulseResults struct {
// contains filtered or unexported fields
}
PulseAccessorMockGetPulseResults contains results of the PulseAccessor.GetPulse
type PulseAppenderMock ¶ added in v0.9.0
type PulseAppenderMock struct { AppendPulseMock mPulseAppenderMockAppendPulse // contains filtered or unexported fields }
PulseAppenderMock implements storage.PulseAppender
func NewPulseAppenderMock ¶ added in v0.9.0
func NewPulseAppenderMock(t minimock.Tester) *PulseAppenderMock
NewPulseAppenderMock returns a mock for storage.PulseAppender
func (*PulseAppenderMock) AppendPulse ¶ added in v0.9.0
func (mmAppendPulse *PulseAppenderMock) AppendPulse(ctx context.Context, pulse insolar.Pulse) (err error)
AppendPulse implements storage.PulseAppender
func (*PulseAppenderMock) AppendPulseAfterCounter ¶ added in v0.9.0
func (mmAppendPulse *PulseAppenderMock) AppendPulseAfterCounter() uint64
AppendPulseAfterCounter returns a count of finished PulseAppenderMock.AppendPulse invocations
func (*PulseAppenderMock) AppendPulseBeforeCounter ¶ added in v0.9.0
func (mmAppendPulse *PulseAppenderMock) AppendPulseBeforeCounter() uint64
AppendPulseBeforeCounter returns a count of PulseAppenderMock.AppendPulse invocations
func (*PulseAppenderMock) MinimockAppendPulseDone ¶ added in v0.9.0
func (m *PulseAppenderMock) MinimockAppendPulseDone() bool
MinimockAppendPulseDone returns true if the count of the AppendPulse invocations corresponds the number of defined expectations
func (*PulseAppenderMock) MinimockAppendPulseInspect ¶ added in v0.9.0
func (m *PulseAppenderMock) MinimockAppendPulseInspect()
MinimockAppendPulseInspect logs each unmet expectation
func (*PulseAppenderMock) MinimockFinish ¶ added in v0.9.0
func (m *PulseAppenderMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*PulseAppenderMock) MinimockWait ¶ added in v0.9.0
func (m *PulseAppenderMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type PulseAppenderMockAppendPulseExpectation ¶ added in v0.9.0
type PulseAppenderMockAppendPulseExpectation struct { Counter uint64 // contains filtered or unexported fields }
PulseAppenderMockAppendPulseExpectation specifies expectation struct of the PulseAppender.AppendPulse
func (*PulseAppenderMockAppendPulseExpectation) Then ¶ added in v0.9.0
func (e *PulseAppenderMockAppendPulseExpectation) Then(err error) *PulseAppenderMock
Then sets up PulseAppender.AppendPulse return parameters for the expectation previously defined by the When method
type PulseAppenderMockAppendPulseParams ¶ added in v0.9.0
type PulseAppenderMockAppendPulseParams struct {
// contains filtered or unexported fields
}
PulseAppenderMockAppendPulseParams contains parameters of the PulseAppender.AppendPulse
type PulseAppenderMockAppendPulseResults ¶ added in v0.9.0
type PulseAppenderMockAppendPulseResults struct {
// contains filtered or unexported fields
}
PulseAppenderMockAppendPulseResults contains results of the PulseAppender.AppendPulse
type PulseHandlerMock ¶ added in v0.6.3
type PulseHandlerMock struct { HandlePulseMock mPulseHandlerMockHandlePulse // contains filtered or unexported fields }
PulseHandlerMock implements network.PulseHandler
func NewPulseHandlerMock ¶ added in v0.6.3
func NewPulseHandlerMock(t minimock.Tester) *PulseHandlerMock
NewPulseHandlerMock returns a mock for network.PulseHandler
func (*PulseHandlerMock) HandlePulse ¶ added in v0.6.3
func (mmHandlePulse *PulseHandlerMock) HandlePulse(ctx context.Context, pulse insolar.Pulse, originalPacket mm_network.ReceivedPacket)
HandlePulse implements network.PulseHandler
func (*PulseHandlerMock) HandlePulseAfterCounter ¶ added in v0.9.0
func (mmHandlePulse *PulseHandlerMock) HandlePulseAfterCounter() uint64
HandlePulseAfterCounter returns a count of finished PulseHandlerMock.HandlePulse invocations
func (*PulseHandlerMock) HandlePulseBeforeCounter ¶ added in v0.9.0
func (mmHandlePulse *PulseHandlerMock) HandlePulseBeforeCounter() uint64
HandlePulseBeforeCounter returns a count of PulseHandlerMock.HandlePulse invocations
func (*PulseHandlerMock) MinimockFinish ¶ added in v0.6.3
func (m *PulseHandlerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*PulseHandlerMock) MinimockHandlePulseDone ¶ added in v0.9.0
func (m *PulseHandlerMock) MinimockHandlePulseDone() bool
MinimockHandlePulseDone returns true if the count of the HandlePulse invocations corresponds the number of defined expectations
func (*PulseHandlerMock) MinimockHandlePulseInspect ¶ added in v0.9.0
func (m *PulseHandlerMock) MinimockHandlePulseInspect()
MinimockHandlePulseInspect logs each unmet expectation
func (*PulseHandlerMock) MinimockWait ¶ added in v0.6.3
func (m *PulseHandlerMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type PulseHandlerMockHandlePulseExpectation ¶ added in v0.7.5
type PulseHandlerMockHandlePulseExpectation struct { Counter uint64 // contains filtered or unexported fields }
PulseHandlerMockHandlePulseExpectation specifies expectation struct of the PulseHandler.HandlePulse
type PulseHandlerMockHandlePulseParams ¶ added in v0.6.3
type PulseHandlerMockHandlePulseParams struct {
// contains filtered or unexported fields
}
PulseHandlerMockHandlePulseParams contains parameters of the PulseHandler.HandlePulse
type PulseRangeHasherMock ¶ added in v0.9.0
type PulseRangeHasherMock struct { GetRangeHashMock mPulseRangeHasherMockGetRangeHash ValidateRangeHashMock mPulseRangeHasherMockValidateRangeHash // contains filtered or unexported fields }
PulseRangeHasherMock implements storage.PulseRangeHasher
func NewPulseRangeHasherMock ¶ added in v0.9.0
func NewPulseRangeHasherMock(t minimock.Tester) *PulseRangeHasherMock
NewPulseRangeHasherMock returns a mock for storage.PulseRangeHasher
func (*PulseRangeHasherMock) GetRangeHash ¶ added in v0.9.0
func (mmGetRangeHash *PulseRangeHasherMock) GetRangeHash(p1 insolar.PulseRange) (ba1 []byte, err error)
GetRangeHash implements storage.PulseRangeHasher
func (*PulseRangeHasherMock) GetRangeHashAfterCounter ¶ added in v0.9.0
func (mmGetRangeHash *PulseRangeHasherMock) GetRangeHashAfterCounter() uint64
GetRangeHashAfterCounter returns a count of finished PulseRangeHasherMock.GetRangeHash invocations
func (*PulseRangeHasherMock) GetRangeHashBeforeCounter ¶ added in v0.9.0
func (mmGetRangeHash *PulseRangeHasherMock) GetRangeHashBeforeCounter() uint64
GetRangeHashBeforeCounter returns a count of PulseRangeHasherMock.GetRangeHash invocations
func (*PulseRangeHasherMock) MinimockFinish ¶ added in v0.9.0
func (m *PulseRangeHasherMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*PulseRangeHasherMock) MinimockGetRangeHashDone ¶ added in v0.9.0
func (m *PulseRangeHasherMock) MinimockGetRangeHashDone() bool
MinimockGetRangeHashDone returns true if the count of the GetRangeHash invocations corresponds the number of defined expectations
func (*PulseRangeHasherMock) MinimockGetRangeHashInspect ¶ added in v0.9.0
func (m *PulseRangeHasherMock) MinimockGetRangeHashInspect()
MinimockGetRangeHashInspect logs each unmet expectation
func (*PulseRangeHasherMock) MinimockValidateRangeHashDone ¶ added in v0.9.0
func (m *PulseRangeHasherMock) MinimockValidateRangeHashDone() bool
MinimockValidateRangeHashDone returns true if the count of the ValidateRangeHash invocations corresponds the number of defined expectations
func (*PulseRangeHasherMock) MinimockValidateRangeHashInspect ¶ added in v0.9.0
func (m *PulseRangeHasherMock) MinimockValidateRangeHashInspect()
MinimockValidateRangeHashInspect logs each unmet expectation
func (*PulseRangeHasherMock) MinimockWait ¶ added in v0.9.0
func (m *PulseRangeHasherMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*PulseRangeHasherMock) ValidateRangeHash ¶ added in v0.9.0
func (mmValidateRangeHash *PulseRangeHasherMock) ValidateRangeHash(p1 insolar.PulseRange, ba1 []byte) (b1 bool, err error)
ValidateRangeHash implements storage.PulseRangeHasher
func (*PulseRangeHasherMock) ValidateRangeHashAfterCounter ¶ added in v0.9.0
func (mmValidateRangeHash *PulseRangeHasherMock) ValidateRangeHashAfterCounter() uint64
ValidateRangeHashAfterCounter returns a count of finished PulseRangeHasherMock.ValidateRangeHash invocations
func (*PulseRangeHasherMock) ValidateRangeHashBeforeCounter ¶ added in v0.9.0
func (mmValidateRangeHash *PulseRangeHasherMock) ValidateRangeHashBeforeCounter() uint64
ValidateRangeHashBeforeCounter returns a count of PulseRangeHasherMock.ValidateRangeHash invocations
type PulseRangeHasherMockGetRangeHashExpectation ¶ added in v0.9.0
type PulseRangeHasherMockGetRangeHashExpectation struct { Counter uint64 // contains filtered or unexported fields }
PulseRangeHasherMockGetRangeHashExpectation specifies expectation struct of the PulseRangeHasher.GetRangeHash
func (*PulseRangeHasherMockGetRangeHashExpectation) Then ¶ added in v0.9.0
func (e *PulseRangeHasherMockGetRangeHashExpectation) Then(ba1 []byte, err error) *PulseRangeHasherMock
Then sets up PulseRangeHasher.GetRangeHash return parameters for the expectation previously defined by the When method
type PulseRangeHasherMockGetRangeHashParams ¶ added in v0.9.0
type PulseRangeHasherMockGetRangeHashParams struct {
// contains filtered or unexported fields
}
PulseRangeHasherMockGetRangeHashParams contains parameters of the PulseRangeHasher.GetRangeHash
type PulseRangeHasherMockGetRangeHashResults ¶ added in v0.9.0
type PulseRangeHasherMockGetRangeHashResults struct {
// contains filtered or unexported fields
}
PulseRangeHasherMockGetRangeHashResults contains results of the PulseRangeHasher.GetRangeHash
type PulseRangeHasherMockValidateRangeHashExpectation ¶ added in v0.9.0
type PulseRangeHasherMockValidateRangeHashExpectation struct { Counter uint64 // contains filtered or unexported fields }
PulseRangeHasherMockValidateRangeHashExpectation specifies expectation struct of the PulseRangeHasher.ValidateRangeHash
func (*PulseRangeHasherMockValidateRangeHashExpectation) Then ¶ added in v0.9.0
func (e *PulseRangeHasherMockValidateRangeHashExpectation) Then(b1 bool, err error) *PulseRangeHasherMock
Then sets up PulseRangeHasher.ValidateRangeHash return parameters for the expectation previously defined by the When method
type PulseRangeHasherMockValidateRangeHashParams ¶ added in v0.9.0
type PulseRangeHasherMockValidateRangeHashParams struct {
// contains filtered or unexported fields
}
PulseRangeHasherMockValidateRangeHashParams contains parameters of the PulseRangeHasher.ValidateRangeHash
type PulseRangeHasherMockValidateRangeHashResults ¶ added in v0.9.0
type PulseRangeHasherMockValidateRangeHashResults struct {
// contains filtered or unexported fields
}
PulseRangeHasherMockValidateRangeHashResults contains results of the PulseRangeHasher.ValidateRangeHash
type RoutingTableMock ¶ added in v0.9.0
type RoutingTableMock struct { ResolveMock mRoutingTableMockResolve // contains filtered or unexported fields }
RoutingTableMock implements network.RoutingTable
func NewRoutingTableMock ¶ added in v0.9.0
func NewRoutingTableMock(t minimock.Tester) *RoutingTableMock
NewRoutingTableMock returns a mock for network.RoutingTable
func (*RoutingTableMock) MinimockFinish ¶ added in v0.9.0
func (m *RoutingTableMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*RoutingTableMock) MinimockResolveDone ¶ added in v0.9.0
func (m *RoutingTableMock) MinimockResolveDone() bool
MinimockResolveDone returns true if the count of the Resolve invocations corresponds the number of defined expectations
func (*RoutingTableMock) MinimockResolveInspect ¶ added in v0.9.0
func (m *RoutingTableMock) MinimockResolveInspect()
MinimockResolveInspect logs each unmet expectation
func (*RoutingTableMock) MinimockWait ¶ added in v0.9.0
func (m *RoutingTableMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*RoutingTableMock) ResolveAfterCounter ¶ added in v0.9.0
func (mmResolve *RoutingTableMock) ResolveAfterCounter() uint64
ResolveAfterCounter returns a count of finished RoutingTableMock.Resolve invocations
func (*RoutingTableMock) ResolveBeforeCounter ¶ added in v0.9.0
func (mmResolve *RoutingTableMock) ResolveBeforeCounter() uint64
ResolveBeforeCounter returns a count of RoutingTableMock.Resolve invocations
type RoutingTableMockResolveExpectation ¶ added in v0.9.0
type RoutingTableMockResolveExpectation struct { Counter uint64 // contains filtered or unexported fields }
RoutingTableMockResolveExpectation specifies expectation struct of the RoutingTable.Resolve
func (*RoutingTableMockResolveExpectation) Then ¶ added in v0.9.0
func (e *RoutingTableMockResolveExpectation) Then(hp1 *host.Host, err error) *RoutingTableMock
Then sets up RoutingTable.Resolve return parameters for the expectation previously defined by the When method
type RoutingTableMockResolveParams ¶ added in v0.9.0
type RoutingTableMockResolveParams struct {
// contains filtered or unexported fields
}
RoutingTableMockResolveParams contains parameters of the RoutingTable.Resolve
type RoutingTableMockResolveResults ¶ added in v0.9.0
type RoutingTableMockResolveResults struct {
// contains filtered or unexported fields
}
RoutingTableMockResolveResults contains results of the RoutingTable.Resolve
type SnapshotStorageMock ¶ added in v0.9.0
type SnapshotStorageMock struct { AppendMock mSnapshotStorageMockAppend ForPulseNumberMock mSnapshotStorageMockForPulseNumber // contains filtered or unexported fields }
SnapshotStorageMock implements storage.SnapshotStorage
func NewSnapshotStorageMock ¶ added in v0.9.0
func NewSnapshotStorageMock(t minimock.Tester) *SnapshotStorageMock
NewSnapshotStorageMock returns a mock for storage.SnapshotStorage
func (*SnapshotStorageMock) Append ¶ added in v0.9.0
func (mmAppend *SnapshotStorageMock) Append(pulse insolar.PulseNumber, snapshot *node.Snapshot) (err error)
Append implements storage.SnapshotStorage
func (*SnapshotStorageMock) AppendAfterCounter ¶ added in v0.9.0
func (mmAppend *SnapshotStorageMock) AppendAfterCounter() uint64
AppendAfterCounter returns a count of finished SnapshotStorageMock.Append invocations
func (*SnapshotStorageMock) AppendBeforeCounter ¶ added in v0.9.0
func (mmAppend *SnapshotStorageMock) AppendBeforeCounter() uint64
AppendBeforeCounter returns a count of SnapshotStorageMock.Append invocations
func (*SnapshotStorageMock) ForPulseNumber ¶ added in v0.9.0
func (mmForPulseNumber *SnapshotStorageMock) ForPulseNumber(p1 insolar.PulseNumber) (sp1 *node.Snapshot, err error)
ForPulseNumber implements storage.SnapshotStorage
func (*SnapshotStorageMock) ForPulseNumberAfterCounter ¶ added in v0.9.0
func (mmForPulseNumber *SnapshotStorageMock) ForPulseNumberAfterCounter() uint64
ForPulseNumberAfterCounter returns a count of finished SnapshotStorageMock.ForPulseNumber invocations
func (*SnapshotStorageMock) ForPulseNumberBeforeCounter ¶ added in v0.9.0
func (mmForPulseNumber *SnapshotStorageMock) ForPulseNumberBeforeCounter() uint64
ForPulseNumberBeforeCounter returns a count of SnapshotStorageMock.ForPulseNumber invocations
func (*SnapshotStorageMock) MinimockAppendDone ¶ added in v0.9.0
func (m *SnapshotStorageMock) MinimockAppendDone() bool
MinimockAppendDone returns true if the count of the Append invocations corresponds the number of defined expectations
func (*SnapshotStorageMock) MinimockAppendInspect ¶ added in v0.9.0
func (m *SnapshotStorageMock) MinimockAppendInspect()
MinimockAppendInspect logs each unmet expectation
func (*SnapshotStorageMock) MinimockFinish ¶ added in v0.9.0
func (m *SnapshotStorageMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*SnapshotStorageMock) MinimockForPulseNumberDone ¶ added in v0.9.0
func (m *SnapshotStorageMock) MinimockForPulseNumberDone() bool
MinimockForPulseNumberDone returns true if the count of the ForPulseNumber invocations corresponds the number of defined expectations
func (*SnapshotStorageMock) MinimockForPulseNumberInspect ¶ added in v0.9.0
func (m *SnapshotStorageMock) MinimockForPulseNumberInspect()
MinimockForPulseNumberInspect logs each unmet expectation
func (*SnapshotStorageMock) MinimockWait ¶ added in v0.9.0
func (m *SnapshotStorageMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type SnapshotStorageMockAppendExpectation ¶ added in v0.9.0
type SnapshotStorageMockAppendExpectation struct { Counter uint64 // contains filtered or unexported fields }
SnapshotStorageMockAppendExpectation specifies expectation struct of the SnapshotStorage.Append
func (*SnapshotStorageMockAppendExpectation) Then ¶ added in v0.9.0
func (e *SnapshotStorageMockAppendExpectation) Then(err error) *SnapshotStorageMock
Then sets up SnapshotStorage.Append return parameters for the expectation previously defined by the When method
type SnapshotStorageMockAppendParams ¶ added in v0.9.0
type SnapshotStorageMockAppendParams struct {
// contains filtered or unexported fields
}
SnapshotStorageMockAppendParams contains parameters of the SnapshotStorage.Append
type SnapshotStorageMockAppendResults ¶ added in v0.9.0
type SnapshotStorageMockAppendResults struct {
// contains filtered or unexported fields
}
SnapshotStorageMockAppendResults contains results of the SnapshotStorage.Append
type SnapshotStorageMockForPulseNumberExpectation ¶ added in v0.9.0
type SnapshotStorageMockForPulseNumberExpectation struct { Counter uint64 // contains filtered or unexported fields }
SnapshotStorageMockForPulseNumberExpectation specifies expectation struct of the SnapshotStorage.ForPulseNumber
func (*SnapshotStorageMockForPulseNumberExpectation) Then ¶ added in v0.9.0
func (e *SnapshotStorageMockForPulseNumberExpectation) Then(sp1 *node.Snapshot, err error) *SnapshotStorageMock
Then sets up SnapshotStorage.ForPulseNumber return parameters for the expectation previously defined by the When method
type SnapshotStorageMockForPulseNumberParams ¶ added in v0.9.0
type SnapshotStorageMockForPulseNumberParams struct {
// contains filtered or unexported fields
}
SnapshotStorageMockForPulseNumberParams contains parameters of the SnapshotStorage.ForPulseNumber
type SnapshotStorageMockForPulseNumberResults ¶ added in v0.9.0
type SnapshotStorageMockForPulseNumberResults struct {
// contains filtered or unexported fields
}
SnapshotStorageMockForPulseNumberResults contains results of the SnapshotStorage.ForPulseNumber
type StreamTransportMock ¶ added in v0.9.0
type StreamTransportMock struct { AddressMock mStreamTransportMockAddress DialMock mStreamTransportMockDial StartMock mStreamTransportMockStart StopMock mStreamTransportMockStop // contains filtered or unexported fields }
StreamTransportMock implements transport.StreamTransport
func NewStreamTransportMock ¶ added in v0.9.0
func NewStreamTransportMock(t minimock.Tester) *StreamTransportMock
NewStreamTransportMock returns a mock for transport.StreamTransport
func (*StreamTransportMock) Address ¶ added in v0.9.0
func (mmAddress *StreamTransportMock) Address() (s1 string)
Address implements transport.StreamTransport
func (*StreamTransportMock) AddressAfterCounter ¶ added in v0.9.0
func (mmAddress *StreamTransportMock) AddressAfterCounter() uint64
AddressAfterCounter returns a count of finished StreamTransportMock.Address invocations
func (*StreamTransportMock) AddressBeforeCounter ¶ added in v0.9.0
func (mmAddress *StreamTransportMock) AddressBeforeCounter() uint64
AddressBeforeCounter returns a count of StreamTransportMock.Address invocations
func (*StreamTransportMock) Dial ¶ added in v0.9.0
func (mmDial *StreamTransportMock) Dial(ctx context.Context, address string) (r1 io.ReadWriteCloser, err error)
Dial implements transport.StreamTransport
func (*StreamTransportMock) DialAfterCounter ¶ added in v0.9.0
func (mmDial *StreamTransportMock) DialAfterCounter() uint64
DialAfterCounter returns a count of finished StreamTransportMock.Dial invocations
func (*StreamTransportMock) DialBeforeCounter ¶ added in v0.9.0
func (mmDial *StreamTransportMock) DialBeforeCounter() uint64
DialBeforeCounter returns a count of StreamTransportMock.Dial invocations
func (*StreamTransportMock) MinimockAddressDone ¶ added in v0.9.0
func (m *StreamTransportMock) MinimockAddressDone() bool
MinimockAddressDone returns true if the count of the Address invocations corresponds the number of defined expectations
func (*StreamTransportMock) MinimockAddressInspect ¶ added in v0.9.0
func (m *StreamTransportMock) MinimockAddressInspect()
MinimockAddressInspect logs each unmet expectation
func (*StreamTransportMock) MinimockDialDone ¶ added in v0.9.0
func (m *StreamTransportMock) MinimockDialDone() bool
MinimockDialDone returns true if the count of the Dial invocations corresponds the number of defined expectations
func (*StreamTransportMock) MinimockDialInspect ¶ added in v0.9.0
func (m *StreamTransportMock) MinimockDialInspect()
MinimockDialInspect logs each unmet expectation
func (*StreamTransportMock) MinimockFinish ¶ added in v0.9.0
func (m *StreamTransportMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*StreamTransportMock) MinimockStartDone ¶ added in v0.9.0
func (m *StreamTransportMock) MinimockStartDone() bool
MinimockStartDone returns true if the count of the Start invocations corresponds the number of defined expectations
func (*StreamTransportMock) MinimockStartInspect ¶ added in v0.9.0
func (m *StreamTransportMock) MinimockStartInspect()
MinimockStartInspect logs each unmet expectation
func (*StreamTransportMock) MinimockStopDone ¶ added in v0.9.0
func (m *StreamTransportMock) MinimockStopDone() bool
MinimockStopDone returns true if the count of the Stop invocations corresponds the number of defined expectations
func (*StreamTransportMock) MinimockStopInspect ¶ added in v0.9.0
func (m *StreamTransportMock) MinimockStopInspect()
MinimockStopInspect logs each unmet expectation
func (*StreamTransportMock) MinimockWait ¶ added in v0.9.0
func (m *StreamTransportMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*StreamTransportMock) Start ¶ added in v0.9.0
func (mmStart *StreamTransportMock) Start(ctx context.Context) (err error)
Start implements transport.StreamTransport
func (*StreamTransportMock) StartAfterCounter ¶ added in v0.9.0
func (mmStart *StreamTransportMock) StartAfterCounter() uint64
StartAfterCounter returns a count of finished StreamTransportMock.Start invocations
func (*StreamTransportMock) StartBeforeCounter ¶ added in v0.9.0
func (mmStart *StreamTransportMock) StartBeforeCounter() uint64
StartBeforeCounter returns a count of StreamTransportMock.Start invocations
func (*StreamTransportMock) Stop ¶ added in v0.9.0
func (mmStop *StreamTransportMock) Stop(ctx context.Context) (err error)
Stop implements transport.StreamTransport
func (*StreamTransportMock) StopAfterCounter ¶ added in v0.9.0
func (mmStop *StreamTransportMock) StopAfterCounter() uint64
StopAfterCounter returns a count of finished StreamTransportMock.Stop invocations
func (*StreamTransportMock) StopBeforeCounter ¶ added in v0.9.0
func (mmStop *StreamTransportMock) StopBeforeCounter() uint64
StopBeforeCounter returns a count of StreamTransportMock.Stop invocations
type StreamTransportMockAddressExpectation ¶ added in v0.9.0
type StreamTransportMockAddressExpectation struct { Counter uint64 // contains filtered or unexported fields }
StreamTransportMockAddressExpectation specifies expectation struct of the StreamTransport.Address
type StreamTransportMockAddressResults ¶ added in v0.9.0
type StreamTransportMockAddressResults struct {
// contains filtered or unexported fields
}
StreamTransportMockAddressResults contains results of the StreamTransport.Address
type StreamTransportMockDialExpectation ¶ added in v0.9.0
type StreamTransportMockDialExpectation struct { Counter uint64 // contains filtered or unexported fields }
StreamTransportMockDialExpectation specifies expectation struct of the StreamTransport.Dial
func (*StreamTransportMockDialExpectation) Then ¶ added in v0.9.0
func (e *StreamTransportMockDialExpectation) Then(r1 io.ReadWriteCloser, err error) *StreamTransportMock
Then sets up StreamTransport.Dial return parameters for the expectation previously defined by the When method
type StreamTransportMockDialParams ¶ added in v0.9.0
type StreamTransportMockDialParams struct {
// contains filtered or unexported fields
}
StreamTransportMockDialParams contains parameters of the StreamTransport.Dial
type StreamTransportMockDialResults ¶ added in v0.9.0
type StreamTransportMockDialResults struct {
// contains filtered or unexported fields
}
StreamTransportMockDialResults contains results of the StreamTransport.Dial
type StreamTransportMockStartExpectation ¶ added in v0.9.0
type StreamTransportMockStartExpectation struct { Counter uint64 // contains filtered or unexported fields }
StreamTransportMockStartExpectation specifies expectation struct of the StreamTransport.Start
func (*StreamTransportMockStartExpectation) Then ¶ added in v0.9.0
func (e *StreamTransportMockStartExpectation) Then(err error) *StreamTransportMock
Then sets up StreamTransport.Start return parameters for the expectation previously defined by the When method
type StreamTransportMockStartParams ¶ added in v0.9.0
type StreamTransportMockStartParams struct {
// contains filtered or unexported fields
}
StreamTransportMockStartParams contains parameters of the StreamTransport.Start
type StreamTransportMockStartResults ¶ added in v0.9.0
type StreamTransportMockStartResults struct {
// contains filtered or unexported fields
}
StreamTransportMockStartResults contains results of the StreamTransport.Start
type StreamTransportMockStopExpectation ¶ added in v0.9.0
type StreamTransportMockStopExpectation struct { Counter uint64 // contains filtered or unexported fields }
StreamTransportMockStopExpectation specifies expectation struct of the StreamTransport.Stop
func (*StreamTransportMockStopExpectation) Then ¶ added in v0.9.0
func (e *StreamTransportMockStopExpectation) Then(err error) *StreamTransportMock
Then sets up StreamTransport.Stop return parameters for the expectation previously defined by the When method
type StreamTransportMockStopParams ¶ added in v0.9.0
type StreamTransportMockStopParams struct {
// contains filtered or unexported fields
}
StreamTransportMockStopParams contains parameters of the StreamTransport.Stop
type StreamTransportMockStopResults ¶ added in v0.9.0
type StreamTransportMockStopResults struct {
// contains filtered or unexported fields
}
StreamTransportMockStopResults contains results of the StreamTransport.Stop
Source Files ¶
- accessor_mock.go
- cloud_hash_storage_mock.go
- gateway_mock.go
- gatewayer_mock.go
- host_network_mock.go
- network_node_mock.go
- node_keeper_mock.go
- node_network_mock.go
- origin_provider_mock.go
- pulse_accessor_mock.go
- pulse_appender_mock.go
- pulse_handler_mock.go
- pulse_range_hasher_mock.go
- routing_table_mock.go
- snapshot_storage_mock.go
- stream_transport_mock.go