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 (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) 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 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 (mmFailState *GatewayerMock) FailState(ctx context.Context, reason string)
- func (mmFailState *GatewayerMock) FailStateAfterCounter() uint64
- func (mmFailState *GatewayerMock) FailStateBeforeCounter() uint64
- func (mmGateway *GatewayerMock) Gateway() (g1 mm_network.Gateway)
- func (mmGateway *GatewayerMock) GatewayAfterCounter() uint64
- func (mmGateway *GatewayerMock) GatewayBeforeCounter() uint64
- func (m *GatewayerMock) MinimockFailStateDone() bool
- func (m *GatewayerMock) MinimockFailStateInspect()
- 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 GatewayerMockFailStateExpectation
- type GatewayerMockFailStateParams
- 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 (mmGetCloudHash *NodeKeeperMock) GetCloudHash(p1 insolar.PulseNumber) (ba1 []byte)
- func (mmGetCloudHash *NodeKeeperMock) GetCloudHashAfterCounter() uint64
- func (mmGetCloudHash *NodeKeeperMock) GetCloudHashBeforeCounter() 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) MinimockGetCloudHashDone() bool
- func (m *NodeKeeperMock) MinimockGetCloudHashInspect()
- func (m *NodeKeeperMock) MinimockGetOriginDone() bool
- func (m *NodeKeeperMock) MinimockGetOriginInspect()
- func (m *NodeKeeperMock) MinimockMoveSyncToActiveDone() bool
- func (m *NodeKeeperMock) MinimockMoveSyncToActiveInspect()
- func (m *NodeKeeperMock) MinimockSetCloudHashDone() bool
- func (m *NodeKeeperMock) MinimockSetCloudHashInspect()
- 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 (mmSetCloudHash *NodeKeeperMock) SetCloudHash(p1 insolar.PulseNumber, ba1 []byte)
- func (mmSetCloudHash *NodeKeeperMock) SetCloudHashAfterCounter() uint64
- func (mmSetCloudHash *NodeKeeperMock) SetCloudHashBeforeCounter() 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 NodeKeeperMockGetCloudHashExpectation
- type NodeKeeperMockGetCloudHashParams
- type NodeKeeperMockGetCloudHashResults
- type NodeKeeperMockGetOriginExpectation
- type NodeKeeperMockGetOriginResults
- type NodeKeeperMockMoveSyncToActiveExpectation
- type NodeKeeperMockMoveSyncToActiveParams
- type NodeKeeperMockSetCloudHashExpectation
- type NodeKeeperMockSetCloudHashParams
- 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 PulseCalculatorMock
- func (mmBackwards *PulseCalculatorMock) Backwards(ctx context.Context, pn insolar.PulseNumber, steps int) (p1 insolar.Pulse, err error)
- func (mmBackwards *PulseCalculatorMock) BackwardsAfterCounter() uint64
- func (mmBackwards *PulseCalculatorMock) BackwardsBeforeCounter() uint64
- func (mmForwards *PulseCalculatorMock) Forwards(ctx context.Context, pn insolar.PulseNumber, steps int) (p1 insolar.Pulse, err error)
- func (mmForwards *PulseCalculatorMock) ForwardsAfterCounter() uint64
- func (mmForwards *PulseCalculatorMock) ForwardsBeforeCounter() uint64
- func (m *PulseCalculatorMock) MinimockBackwardsDone() bool
- func (m *PulseCalculatorMock) MinimockBackwardsInspect()
- func (m *PulseCalculatorMock) MinimockFinish()
- func (m *PulseCalculatorMock) MinimockForwardsDone() bool
- func (m *PulseCalculatorMock) MinimockForwardsInspect()
- func (m *PulseCalculatorMock) MinimockWait(timeout mm_time.Duration)
- type PulseCalculatorMockBackwardsExpectation
- type PulseCalculatorMockBackwardsParams
- type PulseCalculatorMockBackwardsResults
- type PulseCalculatorMockForwardsExpectation
- type PulseCalculatorMockForwardsParams
- type PulseCalculatorMockForwardsResults
- 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 ¶
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 ¶
func NewAccessorMock(t minimock.Tester) *AccessorMock
NewAccessorMock returns a mock for network.Accessor
func (*AccessorMock) GetActiveNode ¶
func (mmGetActiveNode *AccessorMock) GetActiveNode(ref insolar.Reference) (n1 insolar.NetworkNode)
GetActiveNode implements network.Accessor
func (*AccessorMock) GetActiveNodeAfterCounter ¶
func (mmGetActiveNode *AccessorMock) GetActiveNodeAfterCounter() uint64
GetActiveNodeAfterCounter returns a count of finished AccessorMock.GetActiveNode invocations
func (*AccessorMock) GetActiveNodeBeforeCounter ¶
func (mmGetActiveNode *AccessorMock) GetActiveNodeBeforeCounter() uint64
GetActiveNodeBeforeCounter returns a count of AccessorMock.GetActiveNode invocations
func (*AccessorMock) GetActiveNodeByAddr ¶
func (mmGetActiveNodeByAddr *AccessorMock) GetActiveNodeByAddr(address string) (n1 insolar.NetworkNode)
GetActiveNodeByAddr implements network.Accessor
func (*AccessorMock) GetActiveNodeByAddrAfterCounter ¶
func (mmGetActiveNodeByAddr *AccessorMock) GetActiveNodeByAddrAfterCounter() uint64
GetActiveNodeByAddrAfterCounter returns a count of finished AccessorMock.GetActiveNodeByAddr invocations
func (*AccessorMock) GetActiveNodeByAddrBeforeCounter ¶
func (mmGetActiveNodeByAddr *AccessorMock) GetActiveNodeByAddrBeforeCounter() uint64
GetActiveNodeByAddrBeforeCounter returns a count of AccessorMock.GetActiveNodeByAddr invocations
func (*AccessorMock) GetActiveNodeByShortID ¶
func (mmGetActiveNodeByShortID *AccessorMock) GetActiveNodeByShortID(shortID insolar.ShortNodeID) (n1 insolar.NetworkNode)
GetActiveNodeByShortID implements network.Accessor
func (*AccessorMock) GetActiveNodeByShortIDAfterCounter ¶
func (mmGetActiveNodeByShortID *AccessorMock) GetActiveNodeByShortIDAfterCounter() uint64
GetActiveNodeByShortIDAfterCounter returns a count of finished AccessorMock.GetActiveNodeByShortID invocations
func (*AccessorMock) GetActiveNodeByShortIDBeforeCounter ¶
func (mmGetActiveNodeByShortID *AccessorMock) GetActiveNodeByShortIDBeforeCounter() uint64
GetActiveNodeByShortIDBeforeCounter returns a count of AccessorMock.GetActiveNodeByShortID invocations
func (*AccessorMock) GetActiveNodes ¶
func (mmGetActiveNodes *AccessorMock) GetActiveNodes() (na1 []insolar.NetworkNode)
GetActiveNodes implements network.Accessor
func (*AccessorMock) GetActiveNodesAfterCounter ¶
func (mmGetActiveNodes *AccessorMock) GetActiveNodesAfterCounter() uint64
GetActiveNodesAfterCounter returns a count of finished AccessorMock.GetActiveNodes invocations
func (*AccessorMock) GetActiveNodesBeforeCounter ¶
func (mmGetActiveNodes *AccessorMock) GetActiveNodesBeforeCounter() uint64
GetActiveNodesBeforeCounter returns a count of AccessorMock.GetActiveNodes invocations
func (*AccessorMock) GetWorkingNode ¶
func (mmGetWorkingNode *AccessorMock) GetWorkingNode(ref insolar.Reference) (n1 insolar.NetworkNode)
GetWorkingNode implements network.Accessor
func (*AccessorMock) GetWorkingNodeAfterCounter ¶
func (mmGetWorkingNode *AccessorMock) GetWorkingNodeAfterCounter() uint64
GetWorkingNodeAfterCounter returns a count of finished AccessorMock.GetWorkingNode invocations
func (*AccessorMock) GetWorkingNodeBeforeCounter ¶
func (mmGetWorkingNode *AccessorMock) GetWorkingNodeBeforeCounter() uint64
GetWorkingNodeBeforeCounter returns a count of AccessorMock.GetWorkingNode invocations
func (*AccessorMock) GetWorkingNodes ¶
func (mmGetWorkingNodes *AccessorMock) GetWorkingNodes() (na1 []insolar.NetworkNode)
GetWorkingNodes implements network.Accessor
func (*AccessorMock) GetWorkingNodesAfterCounter ¶
func (mmGetWorkingNodes *AccessorMock) GetWorkingNodesAfterCounter() uint64
GetWorkingNodesAfterCounter returns a count of finished AccessorMock.GetWorkingNodes invocations
func (*AccessorMock) GetWorkingNodesBeforeCounter ¶
func (mmGetWorkingNodes *AccessorMock) GetWorkingNodesBeforeCounter() uint64
GetWorkingNodesBeforeCounter returns a count of AccessorMock.GetWorkingNodes invocations
func (*AccessorMock) MinimockFinish ¶
func (m *AccessorMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*AccessorMock) MinimockGetActiveNodeByAddrDone ¶
func (m *AccessorMock) MinimockGetActiveNodeByAddrDone() bool
MinimockGetActiveNodeByAddrDone returns true if the count of the GetActiveNodeByAddr invocations corresponds the number of defined expectations
func (*AccessorMock) MinimockGetActiveNodeByAddrInspect ¶
func (m *AccessorMock) MinimockGetActiveNodeByAddrInspect()
MinimockGetActiveNodeByAddrInspect logs each unmet expectation
func (*AccessorMock) MinimockGetActiveNodeByShortIDDone ¶
func (m *AccessorMock) MinimockGetActiveNodeByShortIDDone() bool
MinimockGetActiveNodeByShortIDDone returns true if the count of the GetActiveNodeByShortID invocations corresponds the number of defined expectations
func (*AccessorMock) MinimockGetActiveNodeByShortIDInspect ¶
func (m *AccessorMock) MinimockGetActiveNodeByShortIDInspect()
MinimockGetActiveNodeByShortIDInspect logs each unmet expectation
func (*AccessorMock) MinimockGetActiveNodeDone ¶
func (m *AccessorMock) MinimockGetActiveNodeDone() bool
MinimockGetActiveNodeDone returns true if the count of the GetActiveNode invocations corresponds the number of defined expectations
func (*AccessorMock) MinimockGetActiveNodeInspect ¶
func (m *AccessorMock) MinimockGetActiveNodeInspect()
MinimockGetActiveNodeInspect logs each unmet expectation
func (*AccessorMock) MinimockGetActiveNodesDone ¶
func (m *AccessorMock) MinimockGetActiveNodesDone() bool
MinimockGetActiveNodesDone returns true if the count of the GetActiveNodes invocations corresponds the number of defined expectations
func (*AccessorMock) MinimockGetActiveNodesInspect ¶
func (m *AccessorMock) MinimockGetActiveNodesInspect()
MinimockGetActiveNodesInspect logs each unmet expectation
func (*AccessorMock) MinimockGetWorkingNodeDone ¶
func (m *AccessorMock) MinimockGetWorkingNodeDone() bool
MinimockGetWorkingNodeDone returns true if the count of the GetWorkingNode invocations corresponds the number of defined expectations
func (*AccessorMock) MinimockGetWorkingNodeInspect ¶
func (m *AccessorMock) MinimockGetWorkingNodeInspect()
MinimockGetWorkingNodeInspect logs each unmet expectation
func (*AccessorMock) MinimockGetWorkingNodesDone ¶
func (m *AccessorMock) MinimockGetWorkingNodesDone() bool
MinimockGetWorkingNodesDone returns true if the count of the GetWorkingNodes invocations corresponds the number of defined expectations
func (*AccessorMock) MinimockGetWorkingNodesInspect ¶
func (m *AccessorMock) MinimockGetWorkingNodesInspect()
MinimockGetWorkingNodesInspect logs each unmet expectation
func (*AccessorMock) MinimockWait ¶
func (m *AccessorMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type AccessorMockGetActiveNodeByAddrExpectation ¶
type AccessorMockGetActiveNodeByAddrExpectation struct { Counter uint64 // contains filtered or unexported fields }
AccessorMockGetActiveNodeByAddrExpectation specifies expectation struct of the Accessor.GetActiveNodeByAddr
func (*AccessorMockGetActiveNodeByAddrExpectation) Then ¶
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 ¶
type AccessorMockGetActiveNodeByAddrParams struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodeByAddrParams contains parameters of the Accessor.GetActiveNodeByAddr
type AccessorMockGetActiveNodeByAddrResults ¶
type AccessorMockGetActiveNodeByAddrResults struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodeByAddrResults contains results of the Accessor.GetActiveNodeByAddr
type AccessorMockGetActiveNodeByShortIDExpectation ¶
type AccessorMockGetActiveNodeByShortIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
AccessorMockGetActiveNodeByShortIDExpectation specifies expectation struct of the Accessor.GetActiveNodeByShortID
func (*AccessorMockGetActiveNodeByShortIDExpectation) Then ¶
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 ¶
type AccessorMockGetActiveNodeByShortIDParams struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodeByShortIDParams contains parameters of the Accessor.GetActiveNodeByShortID
type AccessorMockGetActiveNodeByShortIDResults ¶
type AccessorMockGetActiveNodeByShortIDResults struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodeByShortIDResults contains results of the Accessor.GetActiveNodeByShortID
type AccessorMockGetActiveNodeExpectation ¶
type AccessorMockGetActiveNodeExpectation struct { Counter uint64 // contains filtered or unexported fields }
AccessorMockGetActiveNodeExpectation specifies expectation struct of the Accessor.GetActiveNode
func (*AccessorMockGetActiveNodeExpectation) Then ¶
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 ¶
type AccessorMockGetActiveNodeParams struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodeParams contains parameters of the Accessor.GetActiveNode
type AccessorMockGetActiveNodeResults ¶
type AccessorMockGetActiveNodeResults struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodeResults contains results of the Accessor.GetActiveNode
type AccessorMockGetActiveNodesExpectation ¶
type AccessorMockGetActiveNodesExpectation struct { Counter uint64 // contains filtered or unexported fields }
AccessorMockGetActiveNodesExpectation specifies expectation struct of the Accessor.GetActiveNodes
type AccessorMockGetActiveNodesResults ¶
type AccessorMockGetActiveNodesResults struct {
// contains filtered or unexported fields
}
AccessorMockGetActiveNodesResults contains results of the Accessor.GetActiveNodes
type AccessorMockGetWorkingNodeExpectation ¶
type AccessorMockGetWorkingNodeExpectation struct { Counter uint64 // contains filtered or unexported fields }
AccessorMockGetWorkingNodeExpectation specifies expectation struct of the Accessor.GetWorkingNode
func (*AccessorMockGetWorkingNodeExpectation) Then ¶
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 ¶
type AccessorMockGetWorkingNodeParams struct {
// contains filtered or unexported fields
}
AccessorMockGetWorkingNodeParams contains parameters of the Accessor.GetWorkingNode
type AccessorMockGetWorkingNodeResults ¶
type AccessorMockGetWorkingNodeResults struct {
// contains filtered or unexported fields
}
AccessorMockGetWorkingNodeResults contains results of the Accessor.GetWorkingNode
type AccessorMockGetWorkingNodesExpectation ¶
type AccessorMockGetWorkingNodesExpectation struct { Counter uint64 // contains filtered or unexported fields }
AccessorMockGetWorkingNodesExpectation specifies expectation struct of the Accessor.GetWorkingNodes
type AccessorMockGetWorkingNodesResults ¶
type AccessorMockGetWorkingNodesResults struct {
// contains filtered or unexported fields
}
AccessorMockGetWorkingNodesResults contains results of the Accessor.GetWorkingNodes
type CloudHashStorageMock ¶
type CloudHashStorageMock struct { AppendMock mCloudHashStorageMockAppend ForPulseNumberMock mCloudHashStorageMockForPulseNumber // contains filtered or unexported fields }
CloudHashStorageMock implements storage.CloudHashStorage
func NewCloudHashStorageMock ¶
func NewCloudHashStorageMock(t minimock.Tester) *CloudHashStorageMock
NewCloudHashStorageMock returns a mock for storage.CloudHashStorage
func (*CloudHashStorageMock) Append ¶
func (mmAppend *CloudHashStorageMock) Append(pulse insolar.PulseNumber, cloudHash []byte) (err error)
Append implements storage.CloudHashStorage
func (*CloudHashStorageMock) AppendAfterCounter ¶
func (mmAppend *CloudHashStorageMock) AppendAfterCounter() uint64
AppendAfterCounter returns a count of finished CloudHashStorageMock.Append invocations
func (*CloudHashStorageMock) AppendBeforeCounter ¶
func (mmAppend *CloudHashStorageMock) AppendBeforeCounter() uint64
AppendBeforeCounter returns a count of CloudHashStorageMock.Append invocations
func (*CloudHashStorageMock) ForPulseNumber ¶
func (mmForPulseNumber *CloudHashStorageMock) ForPulseNumber(pulse insolar.PulseNumber) (ba1 []byte, err error)
ForPulseNumber implements storage.CloudHashStorage
func (*CloudHashStorageMock) ForPulseNumberAfterCounter ¶
func (mmForPulseNumber *CloudHashStorageMock) ForPulseNumberAfterCounter() uint64
ForPulseNumberAfterCounter returns a count of finished CloudHashStorageMock.ForPulseNumber invocations
func (*CloudHashStorageMock) ForPulseNumberBeforeCounter ¶
func (mmForPulseNumber *CloudHashStorageMock) ForPulseNumberBeforeCounter() uint64
ForPulseNumberBeforeCounter returns a count of CloudHashStorageMock.ForPulseNumber invocations
func (*CloudHashStorageMock) MinimockAppendDone ¶
func (m *CloudHashStorageMock) MinimockAppendDone() bool
MinimockAppendDone returns true if the count of the Append invocations corresponds the number of defined expectations
func (*CloudHashStorageMock) MinimockAppendInspect ¶
func (m *CloudHashStorageMock) MinimockAppendInspect()
MinimockAppendInspect logs each unmet expectation
func (*CloudHashStorageMock) MinimockFinish ¶
func (m *CloudHashStorageMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*CloudHashStorageMock) MinimockForPulseNumberDone ¶
func (m *CloudHashStorageMock) MinimockForPulseNumberDone() bool
MinimockForPulseNumberDone returns true if the count of the ForPulseNumber invocations corresponds the number of defined expectations
func (*CloudHashStorageMock) MinimockForPulseNumberInspect ¶
func (m *CloudHashStorageMock) MinimockForPulseNumberInspect()
MinimockForPulseNumberInspect logs each unmet expectation
func (*CloudHashStorageMock) MinimockWait ¶
func (m *CloudHashStorageMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type CloudHashStorageMockAppendExpectation ¶
type CloudHashStorageMockAppendExpectation struct { Counter uint64 // contains filtered or unexported fields }
CloudHashStorageMockAppendExpectation specifies expectation struct of the CloudHashStorage.Append
func (*CloudHashStorageMockAppendExpectation) Then ¶
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 ¶
type CloudHashStorageMockAppendParams struct {
// contains filtered or unexported fields
}
CloudHashStorageMockAppendParams contains parameters of the CloudHashStorage.Append
type CloudHashStorageMockAppendResults ¶
type CloudHashStorageMockAppendResults struct {
// contains filtered or unexported fields
}
CloudHashStorageMockAppendResults contains results of the CloudHashStorage.Append
type CloudHashStorageMockForPulseNumberExpectation ¶
type CloudHashStorageMockForPulseNumberExpectation struct { Counter uint64 // contains filtered or unexported fields }
CloudHashStorageMockForPulseNumberExpectation specifies expectation struct of the CloudHashStorage.ForPulseNumber
func (*CloudHashStorageMockForPulseNumberExpectation) Then ¶
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 ¶
type CloudHashStorageMockForPulseNumberParams struct {
// contains filtered or unexported fields
}
CloudHashStorageMockForPulseNumberParams contains parameters of the CloudHashStorage.ForPulseNumber
type CloudHashStorageMockForPulseNumberResults ¶
type CloudHashStorageMockForPulseNumberResults struct {
// contains filtered or unexported fields
}
CloudHashStorageMockForPulseNumberResults contains results of the CloudHashStorage.ForPulseNumber
type GatewayMock ¶
type GatewayMock struct { AutherMock mGatewayMockAuther BeforeRunMock mGatewayMockBeforeRun BootstrapperMock mGatewayMockBootstrapper EphemeralModeMock mGatewayMockEphemeralMode 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 ¶
func NewGatewayMock(t minimock.Tester) *GatewayMock
NewGatewayMock returns a mock for network.Gateway
func (*GatewayMock) Auther ¶
func (mmAuther *GatewayMock) Auther() (a1 mm_network.Auther)
Auther implements network.Gateway
func (*GatewayMock) AutherAfterCounter ¶
func (mmAuther *GatewayMock) AutherAfterCounter() uint64
AutherAfterCounter returns a count of finished GatewayMock.Auther invocations
func (*GatewayMock) AutherBeforeCounter ¶
func (mmAuther *GatewayMock) AutherBeforeCounter() uint64
AutherBeforeCounter returns a count of GatewayMock.Auther invocations
func (*GatewayMock) BeforeRun ¶
func (mmBeforeRun *GatewayMock) BeforeRun(ctx context.Context, pulse insolar.Pulse)
BeforeRun implements network.Gateway
func (*GatewayMock) BeforeRunAfterCounter ¶
func (mmBeforeRun *GatewayMock) BeforeRunAfterCounter() uint64
BeforeRunAfterCounter returns a count of finished GatewayMock.BeforeRun invocations
func (*GatewayMock) BeforeRunBeforeCounter ¶
func (mmBeforeRun *GatewayMock) BeforeRunBeforeCounter() uint64
BeforeRunBeforeCounter returns a count of GatewayMock.BeforeRun invocations
func (*GatewayMock) Bootstrapper ¶
func (mmBootstrapper *GatewayMock) Bootstrapper() (b1 mm_network.Bootstrapper)
Bootstrapper implements network.Gateway
func (*GatewayMock) BootstrapperAfterCounter ¶
func (mmBootstrapper *GatewayMock) BootstrapperAfterCounter() uint64
BootstrapperAfterCounter returns a count of finished GatewayMock.Bootstrapper invocations
func (*GatewayMock) BootstrapperBeforeCounter ¶
func (mmBootstrapper *GatewayMock) BootstrapperBeforeCounter() uint64
BootstrapperBeforeCounter returns a count of GatewayMock.Bootstrapper invocations
func (*GatewayMock) EphemeralMode ¶
func (mmEphemeralMode *GatewayMock) EphemeralMode(nodes []insolar.NetworkNode) (b1 bool)
EphemeralMode implements network.Gateway
func (*GatewayMock) EphemeralModeAfterCounter ¶
func (mmEphemeralMode *GatewayMock) EphemeralModeAfterCounter() uint64
EphemeralModeAfterCounter returns a count of finished GatewayMock.EphemeralMode invocations
func (*GatewayMock) EphemeralModeBeforeCounter ¶
func (mmEphemeralMode *GatewayMock) EphemeralModeBeforeCounter() uint64
EphemeralModeBeforeCounter returns a count of GatewayMock.EphemeralMode invocations
func (*GatewayMock) GetState ¶
func (mmGetState *GatewayMock) GetState() (n1 insolar.NetworkState)
GetState implements network.Gateway
func (*GatewayMock) GetStateAfterCounter ¶
func (mmGetState *GatewayMock) GetStateAfterCounter() uint64
GetStateAfterCounter returns a count of finished GatewayMock.GetState invocations
func (*GatewayMock) GetStateBeforeCounter ¶
func (mmGetState *GatewayMock) GetStateBeforeCounter() uint64
GetStateBeforeCounter returns a count of GatewayMock.GetState invocations
func (*GatewayMock) MinimockAutherDone ¶
func (m *GatewayMock) MinimockAutherDone() bool
MinimockAutherDone returns true if the count of the Auther invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockAutherInspect ¶
func (m *GatewayMock) MinimockAutherInspect()
MinimockAutherInspect logs each unmet expectation
func (*GatewayMock) MinimockBeforeRunDone ¶
func (m *GatewayMock) MinimockBeforeRunDone() bool
MinimockBeforeRunDone returns true if the count of the BeforeRun invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockBeforeRunInspect ¶
func (m *GatewayMock) MinimockBeforeRunInspect()
MinimockBeforeRunInspect logs each unmet expectation
func (*GatewayMock) MinimockBootstrapperDone ¶
func (m *GatewayMock) MinimockBootstrapperDone() bool
MinimockBootstrapperDone returns true if the count of the Bootstrapper invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockBootstrapperInspect ¶
func (m *GatewayMock) MinimockBootstrapperInspect()
MinimockBootstrapperInspect logs each unmet expectation
func (*GatewayMock) MinimockEphemeralModeDone ¶
func (m *GatewayMock) MinimockEphemeralModeDone() bool
MinimockEphemeralModeDone returns true if the count of the EphemeralMode invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockEphemeralModeInspect ¶
func (m *GatewayMock) MinimockEphemeralModeInspect()
MinimockEphemeralModeInspect logs each unmet expectation
func (*GatewayMock) MinimockFinish ¶
func (m *GatewayMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GatewayMock) MinimockGetStateDone ¶
func (m *GatewayMock) MinimockGetStateDone() bool
MinimockGetStateDone returns true if the count of the GetState invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockGetStateInspect ¶
func (m *GatewayMock) MinimockGetStateInspect()
MinimockGetStateInspect logs each unmet expectation
func (*GatewayMock) MinimockNewGatewayDone ¶
func (m *GatewayMock) MinimockNewGatewayDone() bool
MinimockNewGatewayDone returns true if the count of the NewGateway invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockNewGatewayInspect ¶
func (m *GatewayMock) MinimockNewGatewayInspect()
MinimockNewGatewayInspect logs each unmet expectation
func (*GatewayMock) MinimockOnConsensusFinishedDone ¶
func (m *GatewayMock) MinimockOnConsensusFinishedDone() bool
MinimockOnConsensusFinishedDone returns true if the count of the OnConsensusFinished invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockOnConsensusFinishedInspect ¶
func (m *GatewayMock) MinimockOnConsensusFinishedInspect()
MinimockOnConsensusFinishedInspect logs each unmet expectation
func (*GatewayMock) MinimockOnPulseFromConsensusDone ¶
func (m *GatewayMock) MinimockOnPulseFromConsensusDone() bool
MinimockOnPulseFromConsensusDone returns true if the count of the OnPulseFromConsensus invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockOnPulseFromConsensusInspect ¶
func (m *GatewayMock) MinimockOnPulseFromConsensusInspect()
MinimockOnPulseFromConsensusInspect logs each unmet expectation
func (*GatewayMock) MinimockOnPulseFromPulsarDone ¶
func (m *GatewayMock) MinimockOnPulseFromPulsarDone() bool
MinimockOnPulseFromPulsarDone returns true if the count of the OnPulseFromPulsar invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockOnPulseFromPulsarInspect ¶
func (m *GatewayMock) MinimockOnPulseFromPulsarInspect()
MinimockOnPulseFromPulsarInspect logs each unmet expectation
func (*GatewayMock) MinimockRunDone ¶
func (m *GatewayMock) MinimockRunDone() bool
MinimockRunDone returns true if the count of the Run invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockRunInspect ¶
func (m *GatewayMock) MinimockRunInspect()
MinimockRunInspect logs each unmet expectation
func (*GatewayMock) MinimockUpdateStateDone ¶
func (m *GatewayMock) MinimockUpdateStateDone() bool
MinimockUpdateStateDone returns true if the count of the UpdateState invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockUpdateStateInspect ¶
func (m *GatewayMock) MinimockUpdateStateInspect()
MinimockUpdateStateInspect logs each unmet expectation
func (*GatewayMock) MinimockWait ¶
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 ¶
func (mmNewGateway *GatewayMock) NewGateway(ctx context.Context, n1 insolar.NetworkState) (g1 mm_network.Gateway)
NewGateway implements network.Gateway
func (*GatewayMock) NewGatewayAfterCounter ¶
func (mmNewGateway *GatewayMock) NewGatewayAfterCounter() uint64
NewGatewayAfterCounter returns a count of finished GatewayMock.NewGateway invocations
func (*GatewayMock) NewGatewayBeforeCounter ¶
func (mmNewGateway *GatewayMock) NewGatewayBeforeCounter() uint64
NewGatewayBeforeCounter returns a count of GatewayMock.NewGateway invocations
func (*GatewayMock) OnConsensusFinished ¶
func (mmOnConsensusFinished *GatewayMock) OnConsensusFinished(ctx context.Context, report mm_network.Report)
OnConsensusFinished implements network.Gateway
func (*GatewayMock) OnConsensusFinishedAfterCounter ¶
func (mmOnConsensusFinished *GatewayMock) OnConsensusFinishedAfterCounter() uint64
OnConsensusFinishedAfterCounter returns a count of finished GatewayMock.OnConsensusFinished invocations
func (*GatewayMock) OnConsensusFinishedBeforeCounter ¶
func (mmOnConsensusFinished *GatewayMock) OnConsensusFinishedBeforeCounter() uint64
OnConsensusFinishedBeforeCounter returns a count of GatewayMock.OnConsensusFinished invocations
func (*GatewayMock) OnPulseFromConsensus ¶
func (mmOnPulseFromConsensus *GatewayMock) OnPulseFromConsensus(ctx context.Context, p1 insolar.Pulse)
OnPulseFromConsensus implements network.Gateway
func (*GatewayMock) OnPulseFromConsensusAfterCounter ¶
func (mmOnPulseFromConsensus *GatewayMock) OnPulseFromConsensusAfterCounter() uint64
OnPulseFromConsensusAfterCounter returns a count of finished GatewayMock.OnPulseFromConsensus invocations
func (*GatewayMock) OnPulseFromConsensusBeforeCounter ¶
func (mmOnPulseFromConsensus *GatewayMock) OnPulseFromConsensusBeforeCounter() uint64
OnPulseFromConsensusBeforeCounter returns a count of GatewayMock.OnPulseFromConsensus invocations
func (*GatewayMock) OnPulseFromPulsar ¶
func (mmOnPulseFromPulsar *GatewayMock) OnPulseFromPulsar(ctx context.Context, p1 insolar.Pulse, r1 mm_network.ReceivedPacket)
OnPulseFromPulsar implements network.Gateway
func (*GatewayMock) OnPulseFromPulsarAfterCounter ¶
func (mmOnPulseFromPulsar *GatewayMock) OnPulseFromPulsarAfterCounter() uint64
OnPulseFromPulsarAfterCounter returns a count of finished GatewayMock.OnPulseFromPulsar invocations
func (*GatewayMock) OnPulseFromPulsarBeforeCounter ¶
func (mmOnPulseFromPulsar *GatewayMock) OnPulseFromPulsarBeforeCounter() uint64
OnPulseFromPulsarBeforeCounter returns a count of GatewayMock.OnPulseFromPulsar invocations
func (*GatewayMock) Run ¶
func (mmRun *GatewayMock) Run(ctx context.Context, pulse insolar.Pulse)
Run implements network.Gateway
func (*GatewayMock) RunAfterCounter ¶
func (mmRun *GatewayMock) RunAfterCounter() uint64
RunAfterCounter returns a count of finished GatewayMock.Run invocations
func (*GatewayMock) RunBeforeCounter ¶
func (mmRun *GatewayMock) RunBeforeCounter() uint64
RunBeforeCounter returns a count of GatewayMock.Run invocations
func (*GatewayMock) UpdateState ¶
func (mmUpdateState *GatewayMock) UpdateState(ctx context.Context, pulseNumber insolar.PulseNumber, nodes []insolar.NetworkNode, cloudStateHash []byte)
UpdateState implements network.Gateway
func (*GatewayMock) UpdateStateAfterCounter ¶
func (mmUpdateState *GatewayMock) UpdateStateAfterCounter() uint64
UpdateStateAfterCounter returns a count of finished GatewayMock.UpdateState invocations
func (*GatewayMock) UpdateStateBeforeCounter ¶
func (mmUpdateState *GatewayMock) UpdateStateBeforeCounter() uint64
UpdateStateBeforeCounter returns a count of GatewayMock.UpdateState invocations
type GatewayMockAutherExpectation ¶
type GatewayMockAutherExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockAutherExpectation specifies expectation struct of the Gateway.Auther
type GatewayMockAutherResults ¶
type GatewayMockAutherResults struct {
// contains filtered or unexported fields
}
GatewayMockAutherResults contains results of the Gateway.Auther
type GatewayMockBeforeRunExpectation ¶
type GatewayMockBeforeRunExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockBeforeRunExpectation specifies expectation struct of the Gateway.BeforeRun
type GatewayMockBeforeRunParams ¶
type GatewayMockBeforeRunParams struct {
// contains filtered or unexported fields
}
GatewayMockBeforeRunParams contains parameters of the Gateway.BeforeRun
type GatewayMockBootstrapperExpectation ¶
type GatewayMockBootstrapperExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockBootstrapperExpectation specifies expectation struct of the Gateway.Bootstrapper
type GatewayMockBootstrapperResults ¶
type GatewayMockBootstrapperResults struct {
// contains filtered or unexported fields
}
GatewayMockBootstrapperResults contains results of the Gateway.Bootstrapper
type GatewayMockEphemeralModeExpectation ¶
type GatewayMockEphemeralModeExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockEphemeralModeExpectation specifies expectation struct of the Gateway.EphemeralMode
func (*GatewayMockEphemeralModeExpectation) Then ¶
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 ¶
type GatewayMockEphemeralModeParams struct {
// contains filtered or unexported fields
}
GatewayMockEphemeralModeParams contains parameters of the Gateway.EphemeralMode
type GatewayMockEphemeralModeResults ¶
type GatewayMockEphemeralModeResults struct {
// contains filtered or unexported fields
}
GatewayMockEphemeralModeResults contains results of the Gateway.EphemeralMode
type GatewayMockGetStateExpectation ¶
type GatewayMockGetStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockGetStateExpectation specifies expectation struct of the Gateway.GetState
type GatewayMockGetStateResults ¶
type GatewayMockGetStateResults struct {
// contains filtered or unexported fields
}
GatewayMockGetStateResults contains results of the Gateway.GetState
type GatewayMockNewGatewayExpectation ¶
type GatewayMockNewGatewayExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockNewGatewayExpectation specifies expectation struct of the Gateway.NewGateway
func (*GatewayMockNewGatewayExpectation) Then ¶
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 ¶
type GatewayMockNewGatewayParams struct {
// contains filtered or unexported fields
}
GatewayMockNewGatewayParams contains parameters of the Gateway.NewGateway
type GatewayMockNewGatewayResults ¶
type GatewayMockNewGatewayResults struct {
// contains filtered or unexported fields
}
GatewayMockNewGatewayResults contains results of the Gateway.NewGateway
type GatewayMockOnConsensusFinishedExpectation ¶
type GatewayMockOnConsensusFinishedExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockOnConsensusFinishedExpectation specifies expectation struct of the Gateway.OnConsensusFinished
type GatewayMockOnConsensusFinishedParams ¶
type GatewayMockOnConsensusFinishedParams struct {
// contains filtered or unexported fields
}
GatewayMockOnConsensusFinishedParams contains parameters of the Gateway.OnConsensusFinished
type GatewayMockOnPulseFromConsensusExpectation ¶
type GatewayMockOnPulseFromConsensusExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockOnPulseFromConsensusExpectation specifies expectation struct of the Gateway.OnPulseFromConsensus
type GatewayMockOnPulseFromConsensusParams ¶
type GatewayMockOnPulseFromConsensusParams struct {
// contains filtered or unexported fields
}
GatewayMockOnPulseFromConsensusParams contains parameters of the Gateway.OnPulseFromConsensus
type GatewayMockOnPulseFromPulsarExpectation ¶
type GatewayMockOnPulseFromPulsarExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockOnPulseFromPulsarExpectation specifies expectation struct of the Gateway.OnPulseFromPulsar
type GatewayMockOnPulseFromPulsarParams ¶
type GatewayMockOnPulseFromPulsarParams struct {
// contains filtered or unexported fields
}
GatewayMockOnPulseFromPulsarParams contains parameters of the Gateway.OnPulseFromPulsar
type GatewayMockRunExpectation ¶
type GatewayMockRunExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockRunExpectation specifies expectation struct of the Gateway.Run
type GatewayMockRunParams ¶
type GatewayMockRunParams struct {
// contains filtered or unexported fields
}
GatewayMockRunParams contains parameters of the Gateway.Run
type GatewayMockUpdateStateExpectation ¶
type GatewayMockUpdateStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockUpdateStateExpectation specifies expectation struct of the Gateway.UpdateState
type GatewayMockUpdateStateParams ¶
type GatewayMockUpdateStateParams struct {
// contains filtered or unexported fields
}
GatewayMockUpdateStateParams contains parameters of the Gateway.UpdateState
type GatewayerMock ¶
type GatewayerMock struct { FailStateMock mGatewayerMockFailState GatewayMock mGatewayerMockGateway SwitchStateMock mGatewayerMockSwitchState // contains filtered or unexported fields }
GatewayerMock implements network.Gatewayer
func NewGatewayerMock ¶
func NewGatewayerMock(t minimock.Tester) *GatewayerMock
NewGatewayerMock returns a mock for network.Gatewayer
func (*GatewayerMock) FailState ¶
func (mmFailState *GatewayerMock) FailState(ctx context.Context, reason string)
FailState implements network.Gatewayer
func (*GatewayerMock) FailStateAfterCounter ¶
func (mmFailState *GatewayerMock) FailStateAfterCounter() uint64
FailStateAfterCounter returns a count of finished GatewayerMock.FailState invocations
func (*GatewayerMock) FailStateBeforeCounter ¶
func (mmFailState *GatewayerMock) FailStateBeforeCounter() uint64
FailStateBeforeCounter returns a count of GatewayerMock.FailState invocations
func (*GatewayerMock) Gateway ¶
func (mmGateway *GatewayerMock) Gateway() (g1 mm_network.Gateway)
Gateway implements network.Gatewayer
func (*GatewayerMock) GatewayAfterCounter ¶
func (mmGateway *GatewayerMock) GatewayAfterCounter() uint64
GatewayAfterCounter returns a count of finished GatewayerMock.Gateway invocations
func (*GatewayerMock) GatewayBeforeCounter ¶
func (mmGateway *GatewayerMock) GatewayBeforeCounter() uint64
GatewayBeforeCounter returns a count of GatewayerMock.Gateway invocations
func (*GatewayerMock) MinimockFailStateDone ¶
func (m *GatewayerMock) MinimockFailStateDone() bool
MinimockFailStateDone returns true if the count of the FailState invocations corresponds the number of defined expectations
func (*GatewayerMock) MinimockFailStateInspect ¶
func (m *GatewayerMock) MinimockFailStateInspect()
MinimockFailStateInspect logs each unmet expectation
func (*GatewayerMock) MinimockFinish ¶
func (m *GatewayerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GatewayerMock) MinimockGatewayDone ¶
func (m *GatewayerMock) MinimockGatewayDone() bool
MinimockGatewayDone returns true if the count of the Gateway invocations corresponds the number of defined expectations
func (*GatewayerMock) MinimockGatewayInspect ¶
func (m *GatewayerMock) MinimockGatewayInspect()
MinimockGatewayInspect logs each unmet expectation
func (*GatewayerMock) MinimockSwitchStateDone ¶
func (m *GatewayerMock) MinimockSwitchStateDone() bool
MinimockSwitchStateDone returns true if the count of the SwitchState invocations corresponds the number of defined expectations
func (*GatewayerMock) MinimockSwitchStateInspect ¶
func (m *GatewayerMock) MinimockSwitchStateInspect()
MinimockSwitchStateInspect logs each unmet expectation
func (*GatewayerMock) MinimockWait ¶
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 ¶
func (mmSwitchState *GatewayerMock) SwitchState(ctx context.Context, state insolar.NetworkState, pulse insolar.Pulse)
SwitchState implements network.Gatewayer
func (*GatewayerMock) SwitchStateAfterCounter ¶
func (mmSwitchState *GatewayerMock) SwitchStateAfterCounter() uint64
SwitchStateAfterCounter returns a count of finished GatewayerMock.SwitchState invocations
func (*GatewayerMock) SwitchStateBeforeCounter ¶
func (mmSwitchState *GatewayerMock) SwitchStateBeforeCounter() uint64
SwitchStateBeforeCounter returns a count of GatewayerMock.SwitchState invocations
type GatewayerMockFailStateExpectation ¶
type GatewayerMockFailStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayerMockFailStateExpectation specifies expectation struct of the Gatewayer.FailState
type GatewayerMockFailStateParams ¶
type GatewayerMockFailStateParams struct {
// contains filtered or unexported fields
}
GatewayerMockFailStateParams contains parameters of the Gatewayer.FailState
type GatewayerMockGatewayExpectation ¶
type GatewayerMockGatewayExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayerMockGatewayExpectation specifies expectation struct of the Gatewayer.Gateway
type GatewayerMockGatewayResults ¶
type GatewayerMockGatewayResults struct {
// contains filtered or unexported fields
}
GatewayerMockGatewayResults contains results of the Gatewayer.Gateway
type GatewayerMockSwitchStateExpectation ¶
type GatewayerMockSwitchStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayerMockSwitchStateExpectation specifies expectation struct of the Gatewayer.SwitchState
type GatewayerMockSwitchStateParams ¶
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 ¶
func (mmBuildResponse *HostNetworkMock) BuildResponseAfterCounter() uint64
BuildResponseAfterCounter returns a count of finished HostNetworkMock.BuildResponse invocations
func (*HostNetworkMock) BuildResponseBeforeCounter ¶
func (mmBuildResponse *HostNetworkMock) BuildResponseBeforeCounter() uint64
BuildResponseBeforeCounter returns a count of HostNetworkMock.BuildResponse invocations
func (*HostNetworkMock) MinimockBuildResponseDone ¶
func (m *HostNetworkMock) MinimockBuildResponseDone() bool
MinimockBuildResponseDone returns true if the count of the BuildResponse invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockBuildResponseInspect ¶
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 ¶
func (m *HostNetworkMock) MinimockPublicAddressDone() bool
MinimockPublicAddressDone returns true if the count of the PublicAddress invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockPublicAddressInspect ¶
func (m *HostNetworkMock) MinimockPublicAddressInspect()
MinimockPublicAddressInspect logs each unmet expectation
func (*HostNetworkMock) MinimockRegisterRequestHandlerDone ¶
func (m *HostNetworkMock) MinimockRegisterRequestHandlerDone() bool
MinimockRegisterRequestHandlerDone returns true if the count of the RegisterRequestHandler invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockRegisterRequestHandlerInspect ¶
func (m *HostNetworkMock) MinimockRegisterRequestHandlerInspect()
MinimockRegisterRequestHandlerInspect logs each unmet expectation
func (*HostNetworkMock) MinimockSendRequestDone ¶
func (m *HostNetworkMock) MinimockSendRequestDone() bool
MinimockSendRequestDone returns true if the count of the SendRequest invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockSendRequestInspect ¶
func (m *HostNetworkMock) MinimockSendRequestInspect()
MinimockSendRequestInspect logs each unmet expectation
func (*HostNetworkMock) MinimockSendRequestToHostDone ¶
func (m *HostNetworkMock) MinimockSendRequestToHostDone() bool
MinimockSendRequestToHostDone returns true if the count of the SendRequestToHost invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockSendRequestToHostInspect ¶
func (m *HostNetworkMock) MinimockSendRequestToHostInspect()
MinimockSendRequestToHostInspect logs each unmet expectation
func (*HostNetworkMock) MinimockStartDone ¶
func (m *HostNetworkMock) MinimockStartDone() bool
MinimockStartDone returns true if the count of the Start invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockStartInspect ¶
func (m *HostNetworkMock) MinimockStartInspect()
MinimockStartInspect logs each unmet expectation
func (*HostNetworkMock) MinimockStopDone ¶
func (m *HostNetworkMock) MinimockStopDone() bool
MinimockStopDone returns true if the count of the Stop invocations corresponds the number of defined expectations
func (*HostNetworkMock) MinimockStopInspect ¶
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 ¶
func (mmPublicAddress *HostNetworkMock) PublicAddressAfterCounter() uint64
PublicAddressAfterCounter returns a count of finished HostNetworkMock.PublicAddress invocations
func (*HostNetworkMock) PublicAddressBeforeCounter ¶
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 ¶
func (mmRegisterRequestHandler *HostNetworkMock) RegisterRequestHandlerAfterCounter() uint64
RegisterRequestHandlerAfterCounter returns a count of finished HostNetworkMock.RegisterRequestHandler invocations
func (*HostNetworkMock) RegisterRequestHandlerBeforeCounter ¶
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 ¶
func (mmSendRequest *HostNetworkMock) SendRequestAfterCounter() uint64
SendRequestAfterCounter returns a count of finished HostNetworkMock.SendRequest invocations
func (*HostNetworkMock) SendRequestBeforeCounter ¶
func (mmSendRequest *HostNetworkMock) SendRequestBeforeCounter() uint64
SendRequestBeforeCounter returns a count of HostNetworkMock.SendRequest invocations
func (*HostNetworkMock) SendRequestToHost ¶
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 ¶
func (mmSendRequestToHost *HostNetworkMock) SendRequestToHostAfterCounter() uint64
SendRequestToHostAfterCounter returns a count of finished HostNetworkMock.SendRequestToHost invocations
func (*HostNetworkMock) SendRequestToHostBeforeCounter ¶
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 ¶
func (mmStart *HostNetworkMock) StartAfterCounter() uint64
StartAfterCounter returns a count of finished HostNetworkMock.Start invocations
func (*HostNetworkMock) StartBeforeCounter ¶
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 ¶
func (mmStop *HostNetworkMock) StopAfterCounter() uint64
StopAfterCounter returns a count of finished HostNetworkMock.Stop invocations
func (*HostNetworkMock) StopBeforeCounter ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type HostNetworkMockSendRequestResults struct {
// contains filtered or unexported fields
}
HostNetworkMockSendRequestResults contains results of the HostNetwork.SendRequest
type HostNetworkMockSendRequestToHostExpectation ¶
type HostNetworkMockSendRequestToHostExpectation struct { Counter uint64 // contains filtered or unexported fields }
HostNetworkMockSendRequestToHostExpectation specifies expectation struct of the HostNetwork.SendRequestToHost
func (*HostNetworkMockSendRequestToHostExpectation) Then ¶
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 ¶
type HostNetworkMockSendRequestToHostParams struct {
// contains filtered or unexported fields
}
HostNetworkMockSendRequestToHostParams contains parameters of the HostNetwork.SendRequestToHost
type HostNetworkMockSendRequestToHostResults ¶
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 ¶
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 ¶
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 ¶
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 ¶
type HostNetworkMockStopParams struct {
// contains filtered or unexported fields
}
HostNetworkMockStopParams contains parameters of the HostNetwork.Stop
type HostNetworkMockStopResults ¶
type HostNetworkMockStopResults struct {
// contains filtered or unexported fields
}
HostNetworkMockStopResults contains results of the HostNetwork.Stop
type NetworkNodeMock ¶
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 ¶
func NewNetworkNodeMock(t minimock.Tester) *NetworkNodeMock
NewNetworkNodeMock returns a mock for insolar.NetworkNode
func (*NetworkNodeMock) Address ¶
func (mmAddress *NetworkNodeMock) Address() (s1 string)
Address implements insolar.NetworkNode
func (*NetworkNodeMock) AddressAfterCounter ¶
func (mmAddress *NetworkNodeMock) AddressAfterCounter() uint64
AddressAfterCounter returns a count of finished NetworkNodeMock.Address invocations
func (*NetworkNodeMock) AddressBeforeCounter ¶
func (mmAddress *NetworkNodeMock) AddressBeforeCounter() uint64
AddressBeforeCounter returns a count of NetworkNodeMock.Address invocations
func (*NetworkNodeMock) GetGlobuleID ¶
func (mmGetGlobuleID *NetworkNodeMock) GetGlobuleID() (g1 mm_insolar.GlobuleID)
GetGlobuleID implements insolar.NetworkNode
func (*NetworkNodeMock) GetGlobuleIDAfterCounter ¶
func (mmGetGlobuleID *NetworkNodeMock) GetGlobuleIDAfterCounter() uint64
GetGlobuleIDAfterCounter returns a count of finished NetworkNodeMock.GetGlobuleID invocations
func (*NetworkNodeMock) GetGlobuleIDBeforeCounter ¶
func (mmGetGlobuleID *NetworkNodeMock) GetGlobuleIDBeforeCounter() uint64
GetGlobuleIDBeforeCounter returns a count of NetworkNodeMock.GetGlobuleID invocations
func (*NetworkNodeMock) GetPower ¶
func (mmGetPower *NetworkNodeMock) GetPower() (p1 mm_insolar.Power)
GetPower implements insolar.NetworkNode
func (*NetworkNodeMock) GetPowerAfterCounter ¶
func (mmGetPower *NetworkNodeMock) GetPowerAfterCounter() uint64
GetPowerAfterCounter returns a count of finished NetworkNodeMock.GetPower invocations
func (*NetworkNodeMock) GetPowerBeforeCounter ¶
func (mmGetPower *NetworkNodeMock) GetPowerBeforeCounter() uint64
GetPowerBeforeCounter returns a count of NetworkNodeMock.GetPower invocations
func (*NetworkNodeMock) GetState ¶
func (mmGetState *NetworkNodeMock) GetState() (n1 mm_insolar.NodeState)
GetState implements insolar.NetworkNode
func (*NetworkNodeMock) GetStateAfterCounter ¶
func (mmGetState *NetworkNodeMock) GetStateAfterCounter() uint64
GetStateAfterCounter returns a count of finished NetworkNodeMock.GetState invocations
func (*NetworkNodeMock) GetStateBeforeCounter ¶
func (mmGetState *NetworkNodeMock) GetStateBeforeCounter() uint64
GetStateBeforeCounter returns a count of NetworkNodeMock.GetState invocations
func (*NetworkNodeMock) ID ¶
func (mmID *NetworkNodeMock) ID() (r1 mm_insolar.Reference)
ID implements insolar.NetworkNode
func (*NetworkNodeMock) IDAfterCounter ¶
func (mmID *NetworkNodeMock) IDAfterCounter() uint64
IDAfterCounter returns a count of finished NetworkNodeMock.ID invocations
func (*NetworkNodeMock) IDBeforeCounter ¶
func (mmID *NetworkNodeMock) IDBeforeCounter() uint64
IDBeforeCounter returns a count of NetworkNodeMock.ID invocations
func (*NetworkNodeMock) LeavingETA ¶
func (mmLeavingETA *NetworkNodeMock) LeavingETA() (p1 mm_insolar.PulseNumber)
LeavingETA implements insolar.NetworkNode
func (*NetworkNodeMock) LeavingETAAfterCounter ¶
func (mmLeavingETA *NetworkNodeMock) LeavingETAAfterCounter() uint64
LeavingETAAfterCounter returns a count of finished NetworkNodeMock.LeavingETA invocations
func (*NetworkNodeMock) LeavingETABeforeCounter ¶
func (mmLeavingETA *NetworkNodeMock) LeavingETABeforeCounter() uint64
LeavingETABeforeCounter returns a count of NetworkNodeMock.LeavingETA invocations
func (*NetworkNodeMock) MinimockAddressDone ¶
func (m *NetworkNodeMock) MinimockAddressDone() bool
MinimockAddressDone returns true if the count of the Address invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockAddressInspect ¶
func (m *NetworkNodeMock) MinimockAddressInspect()
MinimockAddressInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockFinish ¶
func (m *NetworkNodeMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*NetworkNodeMock) MinimockGetGlobuleIDDone ¶
func (m *NetworkNodeMock) MinimockGetGlobuleIDDone() bool
MinimockGetGlobuleIDDone returns true if the count of the GetGlobuleID invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockGetGlobuleIDInspect ¶
func (m *NetworkNodeMock) MinimockGetGlobuleIDInspect()
MinimockGetGlobuleIDInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockGetPowerDone ¶
func (m *NetworkNodeMock) MinimockGetPowerDone() bool
MinimockGetPowerDone returns true if the count of the GetPower invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockGetPowerInspect ¶
func (m *NetworkNodeMock) MinimockGetPowerInspect()
MinimockGetPowerInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockGetStateDone ¶
func (m *NetworkNodeMock) MinimockGetStateDone() bool
MinimockGetStateDone returns true if the count of the GetState invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockGetStateInspect ¶
func (m *NetworkNodeMock) MinimockGetStateInspect()
MinimockGetStateInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockIDDone ¶
func (m *NetworkNodeMock) MinimockIDDone() bool
MinimockIDDone returns true if the count of the ID invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockIDInspect ¶
func (m *NetworkNodeMock) MinimockIDInspect()
MinimockIDInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockLeavingETADone ¶
func (m *NetworkNodeMock) MinimockLeavingETADone() bool
MinimockLeavingETADone returns true if the count of the LeavingETA invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockLeavingETAInspect ¶
func (m *NetworkNodeMock) MinimockLeavingETAInspect()
MinimockLeavingETAInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockPublicKeyDone ¶
func (m *NetworkNodeMock) MinimockPublicKeyDone() bool
MinimockPublicKeyDone returns true if the count of the PublicKey invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockPublicKeyInspect ¶
func (m *NetworkNodeMock) MinimockPublicKeyInspect()
MinimockPublicKeyInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockRoleDone ¶
func (m *NetworkNodeMock) MinimockRoleDone() bool
MinimockRoleDone returns true if the count of the Role invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockRoleInspect ¶
func (m *NetworkNodeMock) MinimockRoleInspect()
MinimockRoleInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockShortIDDone ¶
func (m *NetworkNodeMock) MinimockShortIDDone() bool
MinimockShortIDDone returns true if the count of the ShortID invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockShortIDInspect ¶
func (m *NetworkNodeMock) MinimockShortIDInspect()
MinimockShortIDInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockVersionDone ¶
func (m *NetworkNodeMock) MinimockVersionDone() bool
MinimockVersionDone returns true if the count of the Version invocations corresponds the number of defined expectations
func (*NetworkNodeMock) MinimockVersionInspect ¶
func (m *NetworkNodeMock) MinimockVersionInspect()
MinimockVersionInspect logs each unmet expectation
func (*NetworkNodeMock) MinimockWait ¶
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 ¶
func (mmPublicKey *NetworkNodeMock) PublicKey() (p1 crypto.PublicKey)
PublicKey implements insolar.NetworkNode
func (*NetworkNodeMock) PublicKeyAfterCounter ¶
func (mmPublicKey *NetworkNodeMock) PublicKeyAfterCounter() uint64
PublicKeyAfterCounter returns a count of finished NetworkNodeMock.PublicKey invocations
func (*NetworkNodeMock) PublicKeyBeforeCounter ¶
func (mmPublicKey *NetworkNodeMock) PublicKeyBeforeCounter() uint64
PublicKeyBeforeCounter returns a count of NetworkNodeMock.PublicKey invocations
func (*NetworkNodeMock) Role ¶
func (mmRole *NetworkNodeMock) Role() (s1 mm_insolar.StaticRole)
Role implements insolar.NetworkNode
func (*NetworkNodeMock) RoleAfterCounter ¶
func (mmRole *NetworkNodeMock) RoleAfterCounter() uint64
RoleAfterCounter returns a count of finished NetworkNodeMock.Role invocations
func (*NetworkNodeMock) RoleBeforeCounter ¶
func (mmRole *NetworkNodeMock) RoleBeforeCounter() uint64
RoleBeforeCounter returns a count of NetworkNodeMock.Role invocations
func (*NetworkNodeMock) ShortID ¶
func (mmShortID *NetworkNodeMock) ShortID() (s1 mm_insolar.ShortNodeID)
ShortID implements insolar.NetworkNode
func (*NetworkNodeMock) ShortIDAfterCounter ¶
func (mmShortID *NetworkNodeMock) ShortIDAfterCounter() uint64
ShortIDAfterCounter returns a count of finished NetworkNodeMock.ShortID invocations
func (*NetworkNodeMock) ShortIDBeforeCounter ¶
func (mmShortID *NetworkNodeMock) ShortIDBeforeCounter() uint64
ShortIDBeforeCounter returns a count of NetworkNodeMock.ShortID invocations
func (*NetworkNodeMock) Version ¶
func (mmVersion *NetworkNodeMock) Version() (s1 string)
Version implements insolar.NetworkNode
func (*NetworkNodeMock) VersionAfterCounter ¶
func (mmVersion *NetworkNodeMock) VersionAfterCounter() uint64
VersionAfterCounter returns a count of finished NetworkNodeMock.Version invocations
func (*NetworkNodeMock) VersionBeforeCounter ¶
func (mmVersion *NetworkNodeMock) VersionBeforeCounter() uint64
VersionBeforeCounter returns a count of NetworkNodeMock.Version invocations
type NetworkNodeMockAddressExpectation ¶
type NetworkNodeMockAddressExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockAddressExpectation specifies expectation struct of the NetworkNode.Address
type NetworkNodeMockAddressResults ¶
type NetworkNodeMockAddressResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockAddressResults contains results of the NetworkNode.Address
type NetworkNodeMockGetGlobuleIDExpectation ¶
type NetworkNodeMockGetGlobuleIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockGetGlobuleIDExpectation specifies expectation struct of the NetworkNode.GetGlobuleID
type NetworkNodeMockGetGlobuleIDResults ¶
type NetworkNodeMockGetGlobuleIDResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockGetGlobuleIDResults contains results of the NetworkNode.GetGlobuleID
type NetworkNodeMockGetPowerExpectation ¶
type NetworkNodeMockGetPowerExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockGetPowerExpectation specifies expectation struct of the NetworkNode.GetPower
type NetworkNodeMockGetPowerResults ¶
type NetworkNodeMockGetPowerResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockGetPowerResults contains results of the NetworkNode.GetPower
type NetworkNodeMockGetStateExpectation ¶
type NetworkNodeMockGetStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockGetStateExpectation specifies expectation struct of the NetworkNode.GetState
type NetworkNodeMockGetStateResults ¶
type NetworkNodeMockGetStateResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockGetStateResults contains results of the NetworkNode.GetState
type NetworkNodeMockIDExpectation ¶
type NetworkNodeMockIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockIDExpectation specifies expectation struct of the NetworkNode.ID
type NetworkNodeMockIDResults ¶
type NetworkNodeMockIDResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockIDResults contains results of the NetworkNode.ID
type NetworkNodeMockLeavingETAExpectation ¶
type NetworkNodeMockLeavingETAExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockLeavingETAExpectation specifies expectation struct of the NetworkNode.LeavingETA
type NetworkNodeMockLeavingETAResults ¶
type NetworkNodeMockLeavingETAResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockLeavingETAResults contains results of the NetworkNode.LeavingETA
type NetworkNodeMockPublicKeyExpectation ¶
type NetworkNodeMockPublicKeyExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockPublicKeyExpectation specifies expectation struct of the NetworkNode.PublicKey
type NetworkNodeMockPublicKeyResults ¶
type NetworkNodeMockPublicKeyResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockPublicKeyResults contains results of the NetworkNode.PublicKey
type NetworkNodeMockRoleExpectation ¶
type NetworkNodeMockRoleExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockRoleExpectation specifies expectation struct of the NetworkNode.Role
type NetworkNodeMockRoleResults ¶
type NetworkNodeMockRoleResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockRoleResults contains results of the NetworkNode.Role
type NetworkNodeMockShortIDExpectation ¶
type NetworkNodeMockShortIDExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockShortIDExpectation specifies expectation struct of the NetworkNode.ShortID
type NetworkNodeMockShortIDResults ¶
type NetworkNodeMockShortIDResults struct {
// contains filtered or unexported fields
}
NetworkNodeMockShortIDResults contains results of the NetworkNode.ShortID
type NetworkNodeMockVersionExpectation ¶
type NetworkNodeMockVersionExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkNodeMockVersionExpectation specifies expectation struct of the NetworkNode.Version
type NetworkNodeMockVersionResults ¶
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 GetCloudHashMock mNodeKeeperMockGetCloudHash GetOriginMock mNodeKeeperMockGetOrigin MoveSyncToActiveMock mNodeKeeperMockMoveSyncToActive SetCloudHashMock mNodeKeeperMockSetCloudHash 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 ¶
func (mmGetAccessor *NodeKeeperMock) GetAccessor(p1 insolar.PulseNumber) (a1 mm_network.Accessor)
GetAccessor implements network.NodeKeeper
func (*NodeKeeperMock) GetAccessorAfterCounter ¶
func (mmGetAccessor *NodeKeeperMock) GetAccessorAfterCounter() uint64
GetAccessorAfterCounter returns a count of finished NodeKeeperMock.GetAccessor invocations
func (*NodeKeeperMock) GetAccessorBeforeCounter ¶
func (mmGetAccessor *NodeKeeperMock) GetAccessorBeforeCounter() uint64
GetAccessorBeforeCounter returns a count of NodeKeeperMock.GetAccessor invocations
func (*NodeKeeperMock) GetCloudHash ¶ added in v0.6.3
func (mmGetCloudHash *NodeKeeperMock) GetCloudHash(p1 insolar.PulseNumber) (ba1 []byte)
GetCloudHash implements network.NodeKeeper
func (*NodeKeeperMock) GetCloudHashAfterCounter ¶
func (mmGetCloudHash *NodeKeeperMock) GetCloudHashAfterCounter() uint64
GetCloudHashAfterCounter returns a count of finished NodeKeeperMock.GetCloudHash invocations
func (*NodeKeeperMock) GetCloudHashBeforeCounter ¶
func (mmGetCloudHash *NodeKeeperMock) GetCloudHashBeforeCounter() uint64
GetCloudHashBeforeCounter returns a count of NodeKeeperMock.GetCloudHash invocations
func (*NodeKeeperMock) GetOrigin ¶ added in v0.6.3
func (mmGetOrigin *NodeKeeperMock) GetOrigin() (n1 insolar.NetworkNode)
GetOrigin implements network.NodeKeeper
func (*NodeKeeperMock) GetOriginAfterCounter ¶
func (mmGetOrigin *NodeKeeperMock) GetOriginAfterCounter() uint64
GetOriginAfterCounter returns a count of finished NodeKeeperMock.GetOrigin invocations
func (*NodeKeeperMock) GetOriginBeforeCounter ¶
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 ¶
func (m *NodeKeeperMock) MinimockGetAccessorDone() bool
MinimockGetAccessorDone returns true if the count of the GetAccessor invocations corresponds the number of defined expectations
func (*NodeKeeperMock) MinimockGetAccessorInspect ¶
func (m *NodeKeeperMock) MinimockGetAccessorInspect()
MinimockGetAccessorInspect logs each unmet expectation
func (*NodeKeeperMock) MinimockGetCloudHashDone ¶
func (m *NodeKeeperMock) MinimockGetCloudHashDone() bool
MinimockGetCloudHashDone returns true if the count of the GetCloudHash invocations corresponds the number of defined expectations
func (*NodeKeeperMock) MinimockGetCloudHashInspect ¶
func (m *NodeKeeperMock) MinimockGetCloudHashInspect()
MinimockGetCloudHashInspect logs each unmet expectation
func (*NodeKeeperMock) MinimockGetOriginDone ¶
func (m *NodeKeeperMock) MinimockGetOriginDone() bool
MinimockGetOriginDone returns true if the count of the GetOrigin invocations corresponds the number of defined expectations
func (*NodeKeeperMock) MinimockGetOriginInspect ¶
func (m *NodeKeeperMock) MinimockGetOriginInspect()
MinimockGetOriginInspect logs each unmet expectation
func (*NodeKeeperMock) MinimockMoveSyncToActiveDone ¶
func (m *NodeKeeperMock) MinimockMoveSyncToActiveDone() bool
MinimockMoveSyncToActiveDone returns true if the count of the MoveSyncToActive invocations corresponds the number of defined expectations
func (*NodeKeeperMock) MinimockMoveSyncToActiveInspect ¶
func (m *NodeKeeperMock) MinimockMoveSyncToActiveInspect()
MinimockMoveSyncToActiveInspect logs each unmet expectation
func (*NodeKeeperMock) MinimockSetCloudHashDone ¶
func (m *NodeKeeperMock) MinimockSetCloudHashDone() bool
MinimockSetCloudHashDone returns true if the count of the SetCloudHash invocations corresponds the number of defined expectations
func (*NodeKeeperMock) MinimockSetCloudHashInspect ¶
func (m *NodeKeeperMock) MinimockSetCloudHashInspect()
MinimockSetCloudHashInspect logs each unmet expectation
func (*NodeKeeperMock) MinimockSetInitialSnapshotDone ¶
func (m *NodeKeeperMock) MinimockSetInitialSnapshotDone() bool
MinimockSetInitialSnapshotDone returns true if the count of the SetInitialSnapshot invocations corresponds the number of defined expectations
func (*NodeKeeperMock) MinimockSetInitialSnapshotInspect ¶
func (m *NodeKeeperMock) MinimockSetInitialSnapshotInspect()
MinimockSetInitialSnapshotInspect logs each unmet expectation
func (*NodeKeeperMock) MinimockSyncDone ¶
func (m *NodeKeeperMock) MinimockSyncDone() bool
MinimockSyncDone returns true if the count of the Sync invocations corresponds the number of defined expectations
func (*NodeKeeperMock) MinimockSyncInspect ¶
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 ¶
func (mmMoveSyncToActive *NodeKeeperMock) MoveSyncToActiveAfterCounter() uint64
MoveSyncToActiveAfterCounter returns a count of finished NodeKeeperMock.MoveSyncToActive invocations
func (*NodeKeeperMock) MoveSyncToActiveBeforeCounter ¶
func (mmMoveSyncToActive *NodeKeeperMock) MoveSyncToActiveBeforeCounter() uint64
MoveSyncToActiveBeforeCounter returns a count of NodeKeeperMock.MoveSyncToActive invocations
func (*NodeKeeperMock) SetCloudHash ¶ added in v0.6.3
func (mmSetCloudHash *NodeKeeperMock) SetCloudHash(p1 insolar.PulseNumber, ba1 []byte)
SetCloudHash implements network.NodeKeeper
func (*NodeKeeperMock) SetCloudHashAfterCounter ¶
func (mmSetCloudHash *NodeKeeperMock) SetCloudHashAfterCounter() uint64
SetCloudHashAfterCounter returns a count of finished NodeKeeperMock.SetCloudHash invocations
func (*NodeKeeperMock) SetCloudHashBeforeCounter ¶
func (mmSetCloudHash *NodeKeeperMock) SetCloudHashBeforeCounter() uint64
SetCloudHashBeforeCounter returns a count of NodeKeeperMock.SetCloudHash invocations
func (*NodeKeeperMock) SetInitialSnapshot ¶
func (mmSetInitialSnapshot *NodeKeeperMock) SetInitialSnapshot(nodes []insolar.NetworkNode)
SetInitialSnapshot implements network.NodeKeeper
func (*NodeKeeperMock) SetInitialSnapshotAfterCounter ¶
func (mmSetInitialSnapshot *NodeKeeperMock) SetInitialSnapshotAfterCounter() uint64
SetInitialSnapshotAfterCounter returns a count of finished NodeKeeperMock.SetInitialSnapshot invocations
func (*NodeKeeperMock) SetInitialSnapshotBeforeCounter ¶
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 ¶
func (mmSync *NodeKeeperMock) SyncAfterCounter() uint64
SyncAfterCounter returns a count of finished NodeKeeperMock.Sync invocations
func (*NodeKeeperMock) SyncBeforeCounter ¶
func (mmSync *NodeKeeperMock) SyncBeforeCounter() uint64
SyncBeforeCounter returns a count of NodeKeeperMock.Sync invocations
type NodeKeeperMockGetAccessorExpectation ¶
type NodeKeeperMockGetAccessorExpectation struct { Counter uint64 // contains filtered or unexported fields }
NodeKeeperMockGetAccessorExpectation specifies expectation struct of the NodeKeeper.GetAccessor
func (*NodeKeeperMockGetAccessorExpectation) Then ¶
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 ¶
type NodeKeeperMockGetAccessorParams struct {
// contains filtered or unexported fields
}
NodeKeeperMockGetAccessorParams contains parameters of the NodeKeeper.GetAccessor
type NodeKeeperMockGetAccessorResults ¶
type NodeKeeperMockGetAccessorResults struct {
// contains filtered or unexported fields
}
NodeKeeperMockGetAccessorResults contains results of the NodeKeeper.GetAccessor
type NodeKeeperMockGetCloudHashExpectation ¶ added in v0.7.5
type NodeKeeperMockGetCloudHashExpectation struct { Counter uint64 // contains filtered or unexported fields }
NodeKeeperMockGetCloudHashExpectation specifies expectation struct of the NodeKeeper.GetCloudHash
func (*NodeKeeperMockGetCloudHashExpectation) Then ¶
func (e *NodeKeeperMockGetCloudHashExpectation) Then(ba1 []byte) *NodeKeeperMock
Then sets up NodeKeeper.GetCloudHash return parameters for the expectation previously defined by the When method
type NodeKeeperMockGetCloudHashParams ¶
type NodeKeeperMockGetCloudHashParams struct {
// contains filtered or unexported fields
}
NodeKeeperMockGetCloudHashParams contains parameters of the NodeKeeper.GetCloudHash
type NodeKeeperMockGetCloudHashResults ¶
type NodeKeeperMockGetCloudHashResults struct {
// contains filtered or unexported fields
}
NodeKeeperMockGetCloudHashResults contains results of the NodeKeeper.GetCloudHash
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 ¶
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 ¶
type NodeKeeperMockMoveSyncToActiveParams struct {
// contains filtered or unexported fields
}
NodeKeeperMockMoveSyncToActiveParams contains parameters of the NodeKeeper.MoveSyncToActive
type NodeKeeperMockSetCloudHashExpectation ¶ added in v0.7.5
type NodeKeeperMockSetCloudHashExpectation struct { Counter uint64 // contains filtered or unexported fields }
NodeKeeperMockSetCloudHashExpectation specifies expectation struct of the NodeKeeper.SetCloudHash
type NodeKeeperMockSetCloudHashParams ¶ added in v0.6.3
type NodeKeeperMockSetCloudHashParams struct {
// contains filtered or unexported fields
}
NodeKeeperMockSetCloudHashParams contains parameters of the NodeKeeper.SetCloudHash
type NodeKeeperMockSetInitialSnapshotExpectation ¶
type NodeKeeperMockSetInitialSnapshotExpectation struct { Counter uint64 // contains filtered or unexported fields }
NodeKeeperMockSetInitialSnapshotExpectation specifies expectation struct of the NodeKeeper.SetInitialSnapshot
type NodeKeeperMockSetInitialSnapshotParams ¶
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 ¶
func (mmGetAccessor *NodeNetworkMock) GetAccessor(p1 insolar.PulseNumber) (a1 mm_network.Accessor)
GetAccessor implements network.NodeNetwork
func (*NodeNetworkMock) GetAccessorAfterCounter ¶
func (mmGetAccessor *NodeNetworkMock) GetAccessorAfterCounter() uint64
GetAccessorAfterCounter returns a count of finished NodeNetworkMock.GetAccessor invocations
func (*NodeNetworkMock) GetAccessorBeforeCounter ¶
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 ¶
func (mmGetOrigin *NodeNetworkMock) GetOriginAfterCounter() uint64
GetOriginAfterCounter returns a count of finished NodeNetworkMock.GetOrigin invocations
func (*NodeNetworkMock) GetOriginBeforeCounter ¶
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 ¶
func (m *NodeNetworkMock) MinimockGetAccessorDone() bool
MinimockGetAccessorDone returns true if the count of the GetAccessor invocations corresponds the number of defined expectations
func (*NodeNetworkMock) MinimockGetAccessorInspect ¶
func (m *NodeNetworkMock) MinimockGetAccessorInspect()
MinimockGetAccessorInspect logs each unmet expectation
func (*NodeNetworkMock) MinimockGetOriginDone ¶
func (m *NodeNetworkMock) MinimockGetOriginDone() bool
MinimockGetOriginDone returns true if the count of the GetOrigin invocations corresponds the number of defined expectations
func (*NodeNetworkMock) MinimockGetOriginInspect ¶
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 ¶
type NodeNetworkMockGetAccessorExpectation struct { Counter uint64 // contains filtered or unexported fields }
NodeNetworkMockGetAccessorExpectation specifies expectation struct of the NodeNetwork.GetAccessor
func (*NodeNetworkMockGetAccessorExpectation) Then ¶
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 ¶
type NodeNetworkMockGetAccessorParams struct {
// contains filtered or unexported fields
}
NodeNetworkMockGetAccessorParams contains parameters of the NodeNetwork.GetAccessor
type NodeNetworkMockGetAccessorResults ¶
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 ¶
type NodeNetworkMockGetOriginResults struct {
// contains filtered or unexported fields
}
NodeNetworkMockGetOriginResults contains results of the NodeNetwork.GetOrigin
type OriginProviderMock ¶
type OriginProviderMock struct { GetOriginMock mOriginProviderMockGetOrigin // contains filtered or unexported fields }
OriginProviderMock implements network.OriginProvider
func NewOriginProviderMock ¶
func NewOriginProviderMock(t minimock.Tester) *OriginProviderMock
NewOriginProviderMock returns a mock for network.OriginProvider
func (*OriginProviderMock) GetOrigin ¶
func (mmGetOrigin *OriginProviderMock) GetOrigin() (n1 insolar.NetworkNode)
GetOrigin implements network.OriginProvider
func (*OriginProviderMock) GetOriginAfterCounter ¶
func (mmGetOrigin *OriginProviderMock) GetOriginAfterCounter() uint64
GetOriginAfterCounter returns a count of finished OriginProviderMock.GetOrigin invocations
func (*OriginProviderMock) GetOriginBeforeCounter ¶
func (mmGetOrigin *OriginProviderMock) GetOriginBeforeCounter() uint64
GetOriginBeforeCounter returns a count of OriginProviderMock.GetOrigin invocations
func (*OriginProviderMock) MinimockFinish ¶
func (m *OriginProviderMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*OriginProviderMock) MinimockGetOriginDone ¶
func (m *OriginProviderMock) MinimockGetOriginDone() bool
MinimockGetOriginDone returns true if the count of the GetOrigin invocations corresponds the number of defined expectations
func (*OriginProviderMock) MinimockGetOriginInspect ¶
func (m *OriginProviderMock) MinimockGetOriginInspect()
MinimockGetOriginInspect logs each unmet expectation
func (*OriginProviderMock) MinimockWait ¶
func (m *OriginProviderMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type OriginProviderMockGetOriginExpectation ¶
type OriginProviderMockGetOriginExpectation struct { Counter uint64 // contains filtered or unexported fields }
OriginProviderMockGetOriginExpectation specifies expectation struct of the OriginProvider.GetOrigin
type OriginProviderMockGetOriginResults ¶
type OriginProviderMockGetOriginResults struct {
// contains filtered or unexported fields
}
OriginProviderMockGetOriginResults contains results of the OriginProvider.GetOrigin
type PulseAccessorMock ¶
type PulseAccessorMock struct { GetLatestPulseMock mPulseAccessorMockGetLatestPulse GetPulseMock mPulseAccessorMockGetPulse // contains filtered or unexported fields }
PulseAccessorMock implements storage.PulseAccessor
func NewPulseAccessorMock ¶
func NewPulseAccessorMock(t minimock.Tester) *PulseAccessorMock
NewPulseAccessorMock returns a mock for storage.PulseAccessor
func (*PulseAccessorMock) GetLatestPulse ¶
func (mmGetLatestPulse *PulseAccessorMock) GetLatestPulse(ctx context.Context) (p1 insolar.Pulse, err error)
GetLatestPulse implements storage.PulseAccessor
func (*PulseAccessorMock) GetLatestPulseAfterCounter ¶
func (mmGetLatestPulse *PulseAccessorMock) GetLatestPulseAfterCounter() uint64
GetLatestPulseAfterCounter returns a count of finished PulseAccessorMock.GetLatestPulse invocations
func (*PulseAccessorMock) GetLatestPulseBeforeCounter ¶
func (mmGetLatestPulse *PulseAccessorMock) GetLatestPulseBeforeCounter() uint64
GetLatestPulseBeforeCounter returns a count of PulseAccessorMock.GetLatestPulse invocations
func (*PulseAccessorMock) GetPulse ¶
func (mmGetPulse *PulseAccessorMock) GetPulse(ctx context.Context, p1 insolar.PulseNumber) (p2 insolar.Pulse, err error)
GetPulse implements storage.PulseAccessor
func (*PulseAccessorMock) GetPulseAfterCounter ¶
func (mmGetPulse *PulseAccessorMock) GetPulseAfterCounter() uint64
GetPulseAfterCounter returns a count of finished PulseAccessorMock.GetPulse invocations
func (*PulseAccessorMock) GetPulseBeforeCounter ¶
func (mmGetPulse *PulseAccessorMock) GetPulseBeforeCounter() uint64
GetPulseBeforeCounter returns a count of PulseAccessorMock.GetPulse invocations
func (*PulseAccessorMock) MinimockFinish ¶
func (m *PulseAccessorMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*PulseAccessorMock) MinimockGetLatestPulseDone ¶
func (m *PulseAccessorMock) MinimockGetLatestPulseDone() bool
MinimockGetLatestPulseDone returns true if the count of the GetLatestPulse invocations corresponds the number of defined expectations
func (*PulseAccessorMock) MinimockGetLatestPulseInspect ¶
func (m *PulseAccessorMock) MinimockGetLatestPulseInspect()
MinimockGetLatestPulseInspect logs each unmet expectation
func (*PulseAccessorMock) MinimockGetPulseDone ¶
func (m *PulseAccessorMock) MinimockGetPulseDone() bool
MinimockGetPulseDone returns true if the count of the GetPulse invocations corresponds the number of defined expectations
func (*PulseAccessorMock) MinimockGetPulseInspect ¶
func (m *PulseAccessorMock) MinimockGetPulseInspect()
MinimockGetPulseInspect logs each unmet expectation
func (*PulseAccessorMock) MinimockWait ¶
func (m *PulseAccessorMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type PulseAccessorMockGetLatestPulseExpectation ¶
type PulseAccessorMockGetLatestPulseExpectation struct { Counter uint64 // contains filtered or unexported fields }
PulseAccessorMockGetLatestPulseExpectation specifies expectation struct of the PulseAccessor.GetLatestPulse
func (*PulseAccessorMockGetLatestPulseExpectation) Then ¶
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 ¶
type PulseAccessorMockGetLatestPulseParams struct {
// contains filtered or unexported fields
}
PulseAccessorMockGetLatestPulseParams contains parameters of the PulseAccessor.GetLatestPulse
type PulseAccessorMockGetLatestPulseResults ¶
type PulseAccessorMockGetLatestPulseResults struct {
// contains filtered or unexported fields
}
PulseAccessorMockGetLatestPulseResults contains results of the PulseAccessor.GetLatestPulse
type PulseAccessorMockGetPulseExpectation ¶
type PulseAccessorMockGetPulseExpectation struct { Counter uint64 // contains filtered or unexported fields }
PulseAccessorMockGetPulseExpectation specifies expectation struct of the PulseAccessor.GetPulse
func (*PulseAccessorMockGetPulseExpectation) Then ¶
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 ¶
type PulseAccessorMockGetPulseParams struct {
// contains filtered or unexported fields
}
PulseAccessorMockGetPulseParams contains parameters of the PulseAccessor.GetPulse
type PulseAccessorMockGetPulseResults ¶
type PulseAccessorMockGetPulseResults struct {
// contains filtered or unexported fields
}
PulseAccessorMockGetPulseResults contains results of the PulseAccessor.GetPulse
type PulseAppenderMock ¶
type PulseAppenderMock struct { AppendPulseMock mPulseAppenderMockAppendPulse // contains filtered or unexported fields }
PulseAppenderMock implements storage.PulseAppender
func NewPulseAppenderMock ¶
func NewPulseAppenderMock(t minimock.Tester) *PulseAppenderMock
NewPulseAppenderMock returns a mock for storage.PulseAppender
func (*PulseAppenderMock) AppendPulse ¶
func (mmAppendPulse *PulseAppenderMock) AppendPulse(ctx context.Context, pulse insolar.Pulse) (err error)
AppendPulse implements storage.PulseAppender
func (*PulseAppenderMock) AppendPulseAfterCounter ¶
func (mmAppendPulse *PulseAppenderMock) AppendPulseAfterCounter() uint64
AppendPulseAfterCounter returns a count of finished PulseAppenderMock.AppendPulse invocations
func (*PulseAppenderMock) AppendPulseBeforeCounter ¶
func (mmAppendPulse *PulseAppenderMock) AppendPulseBeforeCounter() uint64
AppendPulseBeforeCounter returns a count of PulseAppenderMock.AppendPulse invocations
func (*PulseAppenderMock) MinimockAppendPulseDone ¶
func (m *PulseAppenderMock) MinimockAppendPulseDone() bool
MinimockAppendPulseDone returns true if the count of the AppendPulse invocations corresponds the number of defined expectations
func (*PulseAppenderMock) MinimockAppendPulseInspect ¶
func (m *PulseAppenderMock) MinimockAppendPulseInspect()
MinimockAppendPulseInspect logs each unmet expectation
func (*PulseAppenderMock) MinimockFinish ¶
func (m *PulseAppenderMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*PulseAppenderMock) MinimockWait ¶
func (m *PulseAppenderMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type PulseAppenderMockAppendPulseExpectation ¶
type PulseAppenderMockAppendPulseExpectation struct { Counter uint64 // contains filtered or unexported fields }
PulseAppenderMockAppendPulseExpectation specifies expectation struct of the PulseAppender.AppendPulse
func (*PulseAppenderMockAppendPulseExpectation) Then ¶
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 ¶
type PulseAppenderMockAppendPulseParams struct {
// contains filtered or unexported fields
}
PulseAppenderMockAppendPulseParams contains parameters of the PulseAppender.AppendPulse
type PulseAppenderMockAppendPulseResults ¶
type PulseAppenderMockAppendPulseResults struct {
// contains filtered or unexported fields
}
PulseAppenderMockAppendPulseResults contains results of the PulseAppender.AppendPulse
type PulseCalculatorMock ¶
type PulseCalculatorMock struct { BackwardsMock mPulseCalculatorMockBackwards ForwardsMock mPulseCalculatorMockForwards // contains filtered or unexported fields }
PulseCalculatorMock implements storage.PulseCalculator
func NewPulseCalculatorMock ¶
func NewPulseCalculatorMock(t minimock.Tester) *PulseCalculatorMock
NewPulseCalculatorMock returns a mock for storage.PulseCalculator
func (*PulseCalculatorMock) Backwards ¶
func (mmBackwards *PulseCalculatorMock) Backwards(ctx context.Context, pn insolar.PulseNumber, steps int) (p1 insolar.Pulse, err error)
Backwards implements storage.PulseCalculator
func (*PulseCalculatorMock) BackwardsAfterCounter ¶
func (mmBackwards *PulseCalculatorMock) BackwardsAfterCounter() uint64
BackwardsAfterCounter returns a count of finished PulseCalculatorMock.Backwards invocations
func (*PulseCalculatorMock) BackwardsBeforeCounter ¶
func (mmBackwards *PulseCalculatorMock) BackwardsBeforeCounter() uint64
BackwardsBeforeCounter returns a count of PulseCalculatorMock.Backwards invocations
func (*PulseCalculatorMock) Forwards ¶
func (mmForwards *PulseCalculatorMock) Forwards(ctx context.Context, pn insolar.PulseNumber, steps int) (p1 insolar.Pulse, err error)
Forwards implements storage.PulseCalculator
func (*PulseCalculatorMock) ForwardsAfterCounter ¶
func (mmForwards *PulseCalculatorMock) ForwardsAfterCounter() uint64
ForwardsAfterCounter returns a count of finished PulseCalculatorMock.Forwards invocations
func (*PulseCalculatorMock) ForwardsBeforeCounter ¶
func (mmForwards *PulseCalculatorMock) ForwardsBeforeCounter() uint64
ForwardsBeforeCounter returns a count of PulseCalculatorMock.Forwards invocations
func (*PulseCalculatorMock) MinimockBackwardsDone ¶
func (m *PulseCalculatorMock) MinimockBackwardsDone() bool
MinimockBackwardsDone returns true if the count of the Backwards invocations corresponds the number of defined expectations
func (*PulseCalculatorMock) MinimockBackwardsInspect ¶
func (m *PulseCalculatorMock) MinimockBackwardsInspect()
MinimockBackwardsInspect logs each unmet expectation
func (*PulseCalculatorMock) MinimockFinish ¶
func (m *PulseCalculatorMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*PulseCalculatorMock) MinimockForwardsDone ¶
func (m *PulseCalculatorMock) MinimockForwardsDone() bool
MinimockForwardsDone returns true if the count of the Forwards invocations corresponds the number of defined expectations
func (*PulseCalculatorMock) MinimockForwardsInspect ¶
func (m *PulseCalculatorMock) MinimockForwardsInspect()
MinimockForwardsInspect logs each unmet expectation
func (*PulseCalculatorMock) MinimockWait ¶
func (m *PulseCalculatorMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type PulseCalculatorMockBackwardsExpectation ¶
type PulseCalculatorMockBackwardsExpectation struct { Counter uint64 // contains filtered or unexported fields }
PulseCalculatorMockBackwardsExpectation specifies expectation struct of the PulseCalculator.Backwards
func (*PulseCalculatorMockBackwardsExpectation) Then ¶
func (e *PulseCalculatorMockBackwardsExpectation) Then(p1 insolar.Pulse, err error) *PulseCalculatorMock
Then sets up PulseCalculator.Backwards return parameters for the expectation previously defined by the When method
type PulseCalculatorMockBackwardsParams ¶
type PulseCalculatorMockBackwardsParams struct {
// contains filtered or unexported fields
}
PulseCalculatorMockBackwardsParams contains parameters of the PulseCalculator.Backwards
type PulseCalculatorMockBackwardsResults ¶
type PulseCalculatorMockBackwardsResults struct {
// contains filtered or unexported fields
}
PulseCalculatorMockBackwardsResults contains results of the PulseCalculator.Backwards
type PulseCalculatorMockForwardsExpectation ¶
type PulseCalculatorMockForwardsExpectation struct { Counter uint64 // contains filtered or unexported fields }
PulseCalculatorMockForwardsExpectation specifies expectation struct of the PulseCalculator.Forwards
func (*PulseCalculatorMockForwardsExpectation) Then ¶
func (e *PulseCalculatorMockForwardsExpectation) Then(p1 insolar.Pulse, err error) *PulseCalculatorMock
Then sets up PulseCalculator.Forwards return parameters for the expectation previously defined by the When method
type PulseCalculatorMockForwardsParams ¶
type PulseCalculatorMockForwardsParams struct {
// contains filtered or unexported fields
}
PulseCalculatorMockForwardsParams contains parameters of the PulseCalculator.Forwards
type PulseCalculatorMockForwardsResults ¶
type PulseCalculatorMockForwardsResults struct {
// contains filtered or unexported fields
}
PulseCalculatorMockForwardsResults contains results of the PulseCalculator.Forwards
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 ¶
func (mmHandlePulse *PulseHandlerMock) HandlePulseAfterCounter() uint64
HandlePulseAfterCounter returns a count of finished PulseHandlerMock.HandlePulse invocations
func (*PulseHandlerMock) HandlePulseBeforeCounter ¶
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 ¶
func (m *PulseHandlerMock) MinimockHandlePulseDone() bool
MinimockHandlePulseDone returns true if the count of the HandlePulse invocations corresponds the number of defined expectations
func (*PulseHandlerMock) MinimockHandlePulseInspect ¶
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 ¶
type PulseRangeHasherMock struct { GetRangeHashMock mPulseRangeHasherMockGetRangeHash ValidateRangeHashMock mPulseRangeHasherMockValidateRangeHash // contains filtered or unexported fields }
PulseRangeHasherMock implements storage.PulseRangeHasher
func NewPulseRangeHasherMock ¶
func NewPulseRangeHasherMock(t minimock.Tester) *PulseRangeHasherMock
NewPulseRangeHasherMock returns a mock for storage.PulseRangeHasher
func (*PulseRangeHasherMock) GetRangeHash ¶
func (mmGetRangeHash *PulseRangeHasherMock) GetRangeHash(p1 insolar.PulseRange) (ba1 []byte, err error)
GetRangeHash implements storage.PulseRangeHasher
func (*PulseRangeHasherMock) GetRangeHashAfterCounter ¶
func (mmGetRangeHash *PulseRangeHasherMock) GetRangeHashAfterCounter() uint64
GetRangeHashAfterCounter returns a count of finished PulseRangeHasherMock.GetRangeHash invocations
func (*PulseRangeHasherMock) GetRangeHashBeforeCounter ¶
func (mmGetRangeHash *PulseRangeHasherMock) GetRangeHashBeforeCounter() uint64
GetRangeHashBeforeCounter returns a count of PulseRangeHasherMock.GetRangeHash invocations
func (*PulseRangeHasherMock) MinimockFinish ¶
func (m *PulseRangeHasherMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*PulseRangeHasherMock) MinimockGetRangeHashDone ¶
func (m *PulseRangeHasherMock) MinimockGetRangeHashDone() bool
MinimockGetRangeHashDone returns true if the count of the GetRangeHash invocations corresponds the number of defined expectations
func (*PulseRangeHasherMock) MinimockGetRangeHashInspect ¶
func (m *PulseRangeHasherMock) MinimockGetRangeHashInspect()
MinimockGetRangeHashInspect logs each unmet expectation
func (*PulseRangeHasherMock) MinimockValidateRangeHashDone ¶
func (m *PulseRangeHasherMock) MinimockValidateRangeHashDone() bool
MinimockValidateRangeHashDone returns true if the count of the ValidateRangeHash invocations corresponds the number of defined expectations
func (*PulseRangeHasherMock) MinimockValidateRangeHashInspect ¶
func (m *PulseRangeHasherMock) MinimockValidateRangeHashInspect()
MinimockValidateRangeHashInspect logs each unmet expectation
func (*PulseRangeHasherMock) MinimockWait ¶
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 ¶
func (mmValidateRangeHash *PulseRangeHasherMock) ValidateRangeHash(p1 insolar.PulseRange, ba1 []byte) (b1 bool, err error)
ValidateRangeHash implements storage.PulseRangeHasher
func (*PulseRangeHasherMock) ValidateRangeHashAfterCounter ¶
func (mmValidateRangeHash *PulseRangeHasherMock) ValidateRangeHashAfterCounter() uint64
ValidateRangeHashAfterCounter returns a count of finished PulseRangeHasherMock.ValidateRangeHash invocations
func (*PulseRangeHasherMock) ValidateRangeHashBeforeCounter ¶
func (mmValidateRangeHash *PulseRangeHasherMock) ValidateRangeHashBeforeCounter() uint64
ValidateRangeHashBeforeCounter returns a count of PulseRangeHasherMock.ValidateRangeHash invocations
type PulseRangeHasherMockGetRangeHashExpectation ¶
type PulseRangeHasherMockGetRangeHashExpectation struct { Counter uint64 // contains filtered or unexported fields }
PulseRangeHasherMockGetRangeHashExpectation specifies expectation struct of the PulseRangeHasher.GetRangeHash
func (*PulseRangeHasherMockGetRangeHashExpectation) Then ¶
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 ¶
type PulseRangeHasherMockGetRangeHashParams struct {
// contains filtered or unexported fields
}
PulseRangeHasherMockGetRangeHashParams contains parameters of the PulseRangeHasher.GetRangeHash
type PulseRangeHasherMockGetRangeHashResults ¶
type PulseRangeHasherMockGetRangeHashResults struct {
// contains filtered or unexported fields
}
PulseRangeHasherMockGetRangeHashResults contains results of the PulseRangeHasher.GetRangeHash
type PulseRangeHasherMockValidateRangeHashExpectation ¶
type PulseRangeHasherMockValidateRangeHashExpectation struct { Counter uint64 // contains filtered or unexported fields }
PulseRangeHasherMockValidateRangeHashExpectation specifies expectation struct of the PulseRangeHasher.ValidateRangeHash
func (*PulseRangeHasherMockValidateRangeHashExpectation) Then ¶
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 ¶
type PulseRangeHasherMockValidateRangeHashParams struct {
// contains filtered or unexported fields
}
PulseRangeHasherMockValidateRangeHashParams contains parameters of the PulseRangeHasher.ValidateRangeHash
type PulseRangeHasherMockValidateRangeHashResults ¶
type PulseRangeHasherMockValidateRangeHashResults struct {
// contains filtered or unexported fields
}
PulseRangeHasherMockValidateRangeHashResults contains results of the PulseRangeHasher.ValidateRangeHash
type RoutingTableMock ¶
type RoutingTableMock struct { ResolveMock mRoutingTableMockResolve // contains filtered or unexported fields }
RoutingTableMock implements network.RoutingTable
func NewRoutingTableMock ¶
func NewRoutingTableMock(t minimock.Tester) *RoutingTableMock
NewRoutingTableMock returns a mock for network.RoutingTable
func (*RoutingTableMock) MinimockFinish ¶
func (m *RoutingTableMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*RoutingTableMock) MinimockResolveDone ¶
func (m *RoutingTableMock) MinimockResolveDone() bool
MinimockResolveDone returns true if the count of the Resolve invocations corresponds the number of defined expectations
func (*RoutingTableMock) MinimockResolveInspect ¶
func (m *RoutingTableMock) MinimockResolveInspect()
MinimockResolveInspect logs each unmet expectation
func (*RoutingTableMock) MinimockWait ¶
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 ¶
func (mmResolve *RoutingTableMock) ResolveAfterCounter() uint64
ResolveAfterCounter returns a count of finished RoutingTableMock.Resolve invocations
func (*RoutingTableMock) ResolveBeforeCounter ¶
func (mmResolve *RoutingTableMock) ResolveBeforeCounter() uint64
ResolveBeforeCounter returns a count of RoutingTableMock.Resolve invocations
type RoutingTableMockResolveExpectation ¶
type RoutingTableMockResolveExpectation struct { Counter uint64 // contains filtered or unexported fields }
RoutingTableMockResolveExpectation specifies expectation struct of the RoutingTable.Resolve
func (*RoutingTableMockResolveExpectation) Then ¶
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 ¶
type RoutingTableMockResolveParams struct {
// contains filtered or unexported fields
}
RoutingTableMockResolveParams contains parameters of the RoutingTable.Resolve
type RoutingTableMockResolveResults ¶
type RoutingTableMockResolveResults struct {
// contains filtered or unexported fields
}
RoutingTableMockResolveResults contains results of the RoutingTable.Resolve
type SnapshotStorageMock ¶
type SnapshotStorageMock struct { AppendMock mSnapshotStorageMockAppend ForPulseNumberMock mSnapshotStorageMockForPulseNumber // contains filtered or unexported fields }
SnapshotStorageMock implements storage.SnapshotStorage
func NewSnapshotStorageMock ¶
func NewSnapshotStorageMock(t minimock.Tester) *SnapshotStorageMock
NewSnapshotStorageMock returns a mock for storage.SnapshotStorage
func (*SnapshotStorageMock) Append ¶
func (mmAppend *SnapshotStorageMock) Append(pulse insolar.PulseNumber, snapshot *node.Snapshot) (err error)
Append implements storage.SnapshotStorage
func (*SnapshotStorageMock) AppendAfterCounter ¶
func (mmAppend *SnapshotStorageMock) AppendAfterCounter() uint64
AppendAfterCounter returns a count of finished SnapshotStorageMock.Append invocations
func (*SnapshotStorageMock) AppendBeforeCounter ¶
func (mmAppend *SnapshotStorageMock) AppendBeforeCounter() uint64
AppendBeforeCounter returns a count of SnapshotStorageMock.Append invocations
func (*SnapshotStorageMock) ForPulseNumber ¶
func (mmForPulseNumber *SnapshotStorageMock) ForPulseNumber(p1 insolar.PulseNumber) (sp1 *node.Snapshot, err error)
ForPulseNumber implements storage.SnapshotStorage
func (*SnapshotStorageMock) ForPulseNumberAfterCounter ¶
func (mmForPulseNumber *SnapshotStorageMock) ForPulseNumberAfterCounter() uint64
ForPulseNumberAfterCounter returns a count of finished SnapshotStorageMock.ForPulseNumber invocations
func (*SnapshotStorageMock) ForPulseNumberBeforeCounter ¶
func (mmForPulseNumber *SnapshotStorageMock) ForPulseNumberBeforeCounter() uint64
ForPulseNumberBeforeCounter returns a count of SnapshotStorageMock.ForPulseNumber invocations
func (*SnapshotStorageMock) MinimockAppendDone ¶
func (m *SnapshotStorageMock) MinimockAppendDone() bool
MinimockAppendDone returns true if the count of the Append invocations corresponds the number of defined expectations
func (*SnapshotStorageMock) MinimockAppendInspect ¶
func (m *SnapshotStorageMock) MinimockAppendInspect()
MinimockAppendInspect logs each unmet expectation
func (*SnapshotStorageMock) MinimockFinish ¶
func (m *SnapshotStorageMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*SnapshotStorageMock) MinimockForPulseNumberDone ¶
func (m *SnapshotStorageMock) MinimockForPulseNumberDone() bool
MinimockForPulseNumberDone returns true if the count of the ForPulseNumber invocations corresponds the number of defined expectations
func (*SnapshotStorageMock) MinimockForPulseNumberInspect ¶
func (m *SnapshotStorageMock) MinimockForPulseNumberInspect()
MinimockForPulseNumberInspect logs each unmet expectation
func (*SnapshotStorageMock) MinimockWait ¶
func (m *SnapshotStorageMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type SnapshotStorageMockAppendExpectation ¶
type SnapshotStorageMockAppendExpectation struct { Counter uint64 // contains filtered or unexported fields }
SnapshotStorageMockAppendExpectation specifies expectation struct of the SnapshotStorage.Append
func (*SnapshotStorageMockAppendExpectation) Then ¶
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 ¶
type SnapshotStorageMockAppendParams struct {
// contains filtered or unexported fields
}
SnapshotStorageMockAppendParams contains parameters of the SnapshotStorage.Append
type SnapshotStorageMockAppendResults ¶
type SnapshotStorageMockAppendResults struct {
// contains filtered or unexported fields
}
SnapshotStorageMockAppendResults contains results of the SnapshotStorage.Append
type SnapshotStorageMockForPulseNumberExpectation ¶
type SnapshotStorageMockForPulseNumberExpectation struct { Counter uint64 // contains filtered or unexported fields }
SnapshotStorageMockForPulseNumberExpectation specifies expectation struct of the SnapshotStorage.ForPulseNumber
func (*SnapshotStorageMockForPulseNumberExpectation) Then ¶
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 ¶
type SnapshotStorageMockForPulseNumberParams struct {
// contains filtered or unexported fields
}
SnapshotStorageMockForPulseNumberParams contains parameters of the SnapshotStorage.ForPulseNumber
type SnapshotStorageMockForPulseNumberResults ¶
type SnapshotStorageMockForPulseNumberResults struct {
// contains filtered or unexported fields
}
SnapshotStorageMockForPulseNumberResults contains results of the SnapshotStorage.ForPulseNumber
type StreamTransportMock ¶
type StreamTransportMock struct { AddressMock mStreamTransportMockAddress DialMock mStreamTransportMockDial StartMock mStreamTransportMockStart StopMock mStreamTransportMockStop // contains filtered or unexported fields }
StreamTransportMock implements transport.StreamTransport
func NewStreamTransportMock ¶
func NewStreamTransportMock(t minimock.Tester) *StreamTransportMock
NewStreamTransportMock returns a mock for transport.StreamTransport
func (*StreamTransportMock) Address ¶
func (mmAddress *StreamTransportMock) Address() (s1 string)
Address implements transport.StreamTransport
func (*StreamTransportMock) AddressAfterCounter ¶
func (mmAddress *StreamTransportMock) AddressAfterCounter() uint64
AddressAfterCounter returns a count of finished StreamTransportMock.Address invocations
func (*StreamTransportMock) AddressBeforeCounter ¶
func (mmAddress *StreamTransportMock) AddressBeforeCounter() uint64
AddressBeforeCounter returns a count of StreamTransportMock.Address invocations
func (*StreamTransportMock) Dial ¶
func (mmDial *StreamTransportMock) Dial(ctx context.Context, address string) (r1 io.ReadWriteCloser, err error)
Dial implements transport.StreamTransport
func (*StreamTransportMock) DialAfterCounter ¶
func (mmDial *StreamTransportMock) DialAfterCounter() uint64
DialAfterCounter returns a count of finished StreamTransportMock.Dial invocations
func (*StreamTransportMock) DialBeforeCounter ¶
func (mmDial *StreamTransportMock) DialBeforeCounter() uint64
DialBeforeCounter returns a count of StreamTransportMock.Dial invocations
func (*StreamTransportMock) MinimockAddressDone ¶
func (m *StreamTransportMock) MinimockAddressDone() bool
MinimockAddressDone returns true if the count of the Address invocations corresponds the number of defined expectations
func (*StreamTransportMock) MinimockAddressInspect ¶
func (m *StreamTransportMock) MinimockAddressInspect()
MinimockAddressInspect logs each unmet expectation
func (*StreamTransportMock) MinimockDialDone ¶
func (m *StreamTransportMock) MinimockDialDone() bool
MinimockDialDone returns true if the count of the Dial invocations corresponds the number of defined expectations
func (*StreamTransportMock) MinimockDialInspect ¶
func (m *StreamTransportMock) MinimockDialInspect()
MinimockDialInspect logs each unmet expectation
func (*StreamTransportMock) MinimockFinish ¶
func (m *StreamTransportMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*StreamTransportMock) MinimockStartDone ¶
func (m *StreamTransportMock) MinimockStartDone() bool
MinimockStartDone returns true if the count of the Start invocations corresponds the number of defined expectations
func (*StreamTransportMock) MinimockStartInspect ¶
func (m *StreamTransportMock) MinimockStartInspect()
MinimockStartInspect logs each unmet expectation
func (*StreamTransportMock) MinimockStopDone ¶
func (m *StreamTransportMock) MinimockStopDone() bool
MinimockStopDone returns true if the count of the Stop invocations corresponds the number of defined expectations
func (*StreamTransportMock) MinimockStopInspect ¶
func (m *StreamTransportMock) MinimockStopInspect()
MinimockStopInspect logs each unmet expectation
func (*StreamTransportMock) MinimockWait ¶
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 ¶
func (mmStart *StreamTransportMock) Start(ctx context.Context) (err error)
Start implements transport.StreamTransport
func (*StreamTransportMock) StartAfterCounter ¶
func (mmStart *StreamTransportMock) StartAfterCounter() uint64
StartAfterCounter returns a count of finished StreamTransportMock.Start invocations
func (*StreamTransportMock) StartBeforeCounter ¶
func (mmStart *StreamTransportMock) StartBeforeCounter() uint64
StartBeforeCounter returns a count of StreamTransportMock.Start invocations
func (*StreamTransportMock) Stop ¶
func (mmStop *StreamTransportMock) Stop(ctx context.Context) (err error)
Stop implements transport.StreamTransport
func (*StreamTransportMock) StopAfterCounter ¶
func (mmStop *StreamTransportMock) StopAfterCounter() uint64
StopAfterCounter returns a count of finished StreamTransportMock.Stop invocations
func (*StreamTransportMock) StopBeforeCounter ¶
func (mmStop *StreamTransportMock) StopBeforeCounter() uint64
StopBeforeCounter returns a count of StreamTransportMock.Stop invocations
type StreamTransportMockAddressExpectation ¶
type StreamTransportMockAddressExpectation struct { Counter uint64 // contains filtered or unexported fields }
StreamTransportMockAddressExpectation specifies expectation struct of the StreamTransport.Address
type StreamTransportMockAddressResults ¶
type StreamTransportMockAddressResults struct {
// contains filtered or unexported fields
}
StreamTransportMockAddressResults contains results of the StreamTransport.Address
type StreamTransportMockDialExpectation ¶
type StreamTransportMockDialExpectation struct { Counter uint64 // contains filtered or unexported fields }
StreamTransportMockDialExpectation specifies expectation struct of the StreamTransport.Dial
func (*StreamTransportMockDialExpectation) Then ¶
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 ¶
type StreamTransportMockDialParams struct {
// contains filtered or unexported fields
}
StreamTransportMockDialParams contains parameters of the StreamTransport.Dial
type StreamTransportMockDialResults ¶
type StreamTransportMockDialResults struct {
// contains filtered or unexported fields
}
StreamTransportMockDialResults contains results of the StreamTransport.Dial
type StreamTransportMockStartExpectation ¶
type StreamTransportMockStartExpectation struct { Counter uint64 // contains filtered or unexported fields }
StreamTransportMockStartExpectation specifies expectation struct of the StreamTransport.Start
func (*StreamTransportMockStartExpectation) Then ¶
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 ¶
type StreamTransportMockStartParams struct {
// contains filtered or unexported fields
}
StreamTransportMockStartParams contains parameters of the StreamTransport.Start
type StreamTransportMockStartResults ¶
type StreamTransportMockStartResults struct {
// contains filtered or unexported fields
}
StreamTransportMockStartResults contains results of the StreamTransport.Start
type StreamTransportMockStopExpectation ¶
type StreamTransportMockStopExpectation struct { Counter uint64 // contains filtered or unexported fields }
StreamTransportMockStopExpectation specifies expectation struct of the StreamTransport.Stop
func (*StreamTransportMockStopExpectation) Then ¶
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 ¶
type StreamTransportMockStopParams struct {
// contains filtered or unexported fields
}
StreamTransportMockStopParams contains parameters of the StreamTransport.Stop
type StreamTransportMockStopResults ¶
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_calculator_mock.go
- pulse_handler_mock.go
- pulse_range_hasher_mock.go
- routing_table_mock.go
- snapshot_storage_mock.go
- stream_transport_mock.go