Documentation ¶
Index ¶
- type GatewayMock
- func (mmAuther *GatewayMock) Auther() (a1 mm_network.Auther)
- func (mmAuther *GatewayMock) AutherAfterCounter() uint64
- func (mmAuther *GatewayMock) AutherBeforeCounter() uint64
- func (mmBootstrapper *GatewayMock) Bootstrapper() (b1 mm_network.Bootstrapper)
- func (mmBootstrapper *GatewayMock) BootstrapperAfterCounter() uint64
- func (mmBootstrapper *GatewayMock) BootstrapperBeforeCounter() uint64
- func (mmCancelNodeState *GatewayMock) CancelNodeState()
- func (mmCancelNodeState *GatewayMock) CancelNodeStateAfterCounter() uint64
- func (mmCancelNodeState *GatewayMock) CancelNodeStateBeforeCounter() uint64
- func (mmEphemeralMode *GatewayMock) EphemeralMode(o1 census.OnlinePopulation) (b1 bool)
- func (mmEphemeralMode *GatewayMock) EphemeralModeAfterCounter() uint64
- func (mmEphemeralMode *GatewayMock) EphemeralModeBeforeCounter() uint64
- func (mmFailState *GatewayMock) FailState(ctx context.Context, reason string)
- func (mmFailState *GatewayMock) FailStateAfterCounter() uint64
- func (mmFailState *GatewayMock) FailStateBeforeCounter() uint64
- func (mmGetState *GatewayMock) GetState() (s1 mm_network.State)
- func (mmGetState *GatewayMock) GetStateAfterCounter() uint64
- func (mmGetState *GatewayMock) GetStateBeforeCounter() uint64
- func (m *GatewayMock) MinimockAutherDone() bool
- func (m *GatewayMock) MinimockAutherInspect()
- func (m *GatewayMock) MinimockBootstrapperDone() bool
- func (m *GatewayMock) MinimockBootstrapperInspect()
- func (m *GatewayMock) MinimockCancelNodeStateDone() bool
- func (m *GatewayMock) MinimockCancelNodeStateInspect()
- func (m *GatewayMock) MinimockEphemeralModeDone() bool
- func (m *GatewayMock) MinimockEphemeralModeInspect()
- func (m *GatewayMock) MinimockFailStateDone() bool
- func (m *GatewayMock) MinimockFailStateInspect()
- func (m *GatewayMock) MinimockFinish()
- func (m *GatewayMock) MinimockGetStateDone() bool
- func (m *GatewayMock) MinimockGetStateInspect()
- func (m *GatewayMock) MinimockNewGatewayDone() bool
- func (m *GatewayMock) MinimockNewGatewayInspect()
- func (m *GatewayMock) MinimockOnConsensusFinishedDone() bool
- func (m *GatewayMock) MinimockOnConsensusFinishedInspect()
- func (m *GatewayMock) MinimockOnPulseFromConsensusDone() bool
- func (m *GatewayMock) MinimockOnPulseFromConsensusInspect()
- func (m *GatewayMock) MinimockRequestNodeStateDone() bool
- func (m *GatewayMock) MinimockRequestNodeStateInspect()
- 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, s1 mm_network.State) (g1 mm_network.Gateway)
- func (mmNewGateway *GatewayMock) NewGatewayAfterCounter() uint64
- func (mmNewGateway *GatewayMock) NewGatewayBeforeCounter() uint64
- func (mmOnConsensusFinished *GatewayMock) OnConsensusFinished(ctx context.Context, r1 mm_network.Report)
- func (mmOnConsensusFinished *GatewayMock) OnConsensusFinishedAfterCounter() uint64
- func (mmOnConsensusFinished *GatewayMock) OnConsensusFinishedBeforeCounter() uint64
- func (mmOnPulseFromConsensus *GatewayMock) OnPulseFromConsensus(ctx context.Context, n1 mm_network.NetworkedPulse)
- func (mmOnPulseFromConsensus *GatewayMock) OnPulseFromConsensusAfterCounter() uint64
- func (mmOnPulseFromConsensus *GatewayMock) OnPulseFromConsensusBeforeCounter() uint64
- func (mmRequestNodeState *GatewayMock) RequestNodeState(n1 chorus.NodeStateFunc)
- func (mmRequestNodeState *GatewayMock) RequestNodeStateAfterCounter() uint64
- func (mmRequestNodeState *GatewayMock) RequestNodeStateBeforeCounter() uint64
- func (mmRun *GatewayMock) Run(ctx context.Context, d1 pulse.Data)
- func (mmRun *GatewayMock) RunAfterCounter() uint64
- func (mmRun *GatewayMock) RunBeforeCounter() uint64
- func (mmUpdateState *GatewayMock) UpdateState(ctx context.Context, b1 beat.Beat)
- func (mmUpdateState *GatewayMock) UpdateStateAfterCounter() uint64
- func (mmUpdateState *GatewayMock) UpdateStateBeforeCounter() uint64
- type GatewayMockAutherExpectation
- type GatewayMockAutherResults
- type GatewayMockBootstrapperExpectation
- type GatewayMockBootstrapperResults
- type GatewayMockCancelNodeStateExpectation
- type GatewayMockEphemeralModeExpectation
- type GatewayMockEphemeralModeParams
- type GatewayMockEphemeralModeResults
- type GatewayMockFailStateExpectation
- type GatewayMockFailStateParams
- type GatewayMockGetStateExpectation
- type GatewayMockGetStateResults
- type GatewayMockNewGatewayExpectation
- type GatewayMockNewGatewayParams
- type GatewayMockNewGatewayResults
- type GatewayMockOnConsensusFinishedExpectation
- type GatewayMockOnConsensusFinishedParams
- type GatewayMockOnPulseFromConsensusExpectation
- type GatewayMockOnPulseFromConsensusParams
- type GatewayMockRequestNodeStateExpectation
- type GatewayMockRequestNodeStateParams
- type GatewayMockRunExpectation
- type GatewayMockRunParams
- type GatewayMockUpdateStateExpectation
- type GatewayMockUpdateStateParams
- type GatewayerMock
- func (mmGateway *GatewayerMock) Gateway() (g1 mm_network.Gateway)
- func (mmGateway *GatewayerMock) GatewayAfterCounter() uint64
- func (mmGateway *GatewayerMock) GatewayBeforeCounter() uint64
- func (m *GatewayerMock) MinimockFinish()
- func (m *GatewayerMock) MinimockGatewayDone() bool
- func (m *GatewayerMock) MinimockGatewayInspect()
- func (m *GatewayerMock) MinimockSwitchStateDone() bool
- func (m *GatewayerMock) MinimockSwitchStateInspect()
- func (m *GatewayerMock) MinimockWait(timeout mm_time.Duration)
- func (mmSwitchState *GatewayerMock) SwitchState(ctx context.Context, s1 mm_network.State, d1 pulse.Data)
- func (mmSwitchState *GatewayerMock) SwitchStateAfterCounter() uint64
- func (mmSwitchState *GatewayerMock) SwitchStateBeforeCounter() uint64
- type GatewayerMockGatewayExpectation
- type GatewayerMockGatewayResults
- type GatewayerMockSwitchStateExpectation
- type GatewayerMockSwitchStateParams
- type HostNetworkMock
- func (mmBuildResponse *HostNetworkMock) BuildResponse(ctx context.Context, request mm_network.Packet, responseData interface{}) (p1 mm_network.Packet)
- func (mmBuildResponse *HostNetworkMock) BuildResponseAfterCounter() uint64
- func (mmBuildResponse *HostNetworkMock) BuildResponseBeforeCounter() uint64
- func (m *HostNetworkMock) MinimockBuildResponseDone() bool
- func (m *HostNetworkMock) MinimockBuildResponseInspect()
- func (m *HostNetworkMock) MinimockFinish()
- func (m *HostNetworkMock) MinimockPublicAddressDone() bool
- func (m *HostNetworkMock) MinimockPublicAddressInspect()
- func (m *HostNetworkMock) MinimockRegisterRequestHandlerDone() bool
- func (m *HostNetworkMock) MinimockRegisterRequestHandlerInspect()
- func (m *HostNetworkMock) MinimockSendRequestDone() bool
- func (m *HostNetworkMock) MinimockSendRequestInspect()
- func (m *HostNetworkMock) MinimockSendRequestToHostDone() bool
- func (m *HostNetworkMock) MinimockSendRequestToHostInspect()
- func (m *HostNetworkMock) MinimockStartDone() bool
- func (m *HostNetworkMock) MinimockStartInspect()
- func (m *HostNetworkMock) MinimockStopDone() bool
- func (m *HostNetworkMock) MinimockStopInspect()
- func (m *HostNetworkMock) MinimockWait(timeout mm_time.Duration)
- func (mmPublicAddress *HostNetworkMock) PublicAddress() (s1 string)
- func (mmPublicAddress *HostNetworkMock) PublicAddressAfterCounter() uint64
- func (mmPublicAddress *HostNetworkMock) PublicAddressBeforeCounter() uint64
- func (mmRegisterRequestHandler *HostNetworkMock) RegisterRequestHandler(t types.PacketType, handler mm_network.RequestHandler)
- func (mmRegisterRequestHandler *HostNetworkMock) RegisterRequestHandlerAfterCounter() uint64
- func (mmRegisterRequestHandler *HostNetworkMock) RegisterRequestHandlerBeforeCounter() uint64
- func (mmSendRequest *HostNetworkMock) SendRequest(ctx context.Context, t types.PacketType, requestData interface{}, ...) (f1 mm_network.Future, err error)
- func (mmSendRequest *HostNetworkMock) SendRequestAfterCounter() uint64
- func (mmSendRequest *HostNetworkMock) SendRequestBeforeCounter() uint64
- func (mmSendRequestToHost *HostNetworkMock) SendRequestToHost(ctx context.Context, t types.PacketType, requestData interface{}, ...) (f1 mm_network.Future, err error)
- func (mmSendRequestToHost *HostNetworkMock) SendRequestToHostAfterCounter() uint64
- func (mmSendRequestToHost *HostNetworkMock) SendRequestToHostBeforeCounter() uint64
- func (mmStart *HostNetworkMock) Start(ctx context.Context) (err error)
- func (mmStart *HostNetworkMock) StartAfterCounter() uint64
- func (mmStart *HostNetworkMock) StartBeforeCounter() uint64
- func (mmStop *HostNetworkMock) Stop(ctx context.Context) (err error)
- func (mmStop *HostNetworkMock) StopAfterCounter() uint64
- func (mmStop *HostNetworkMock) StopBeforeCounter() uint64
- type HostNetworkMockBuildResponseExpectation
- type HostNetworkMockBuildResponseParams
- type HostNetworkMockBuildResponseResults
- type HostNetworkMockPublicAddressExpectation
- type HostNetworkMockPublicAddressResults
- type HostNetworkMockRegisterRequestHandlerExpectation
- type HostNetworkMockRegisterRequestHandlerParams
- type HostNetworkMockSendRequestExpectation
- type HostNetworkMockSendRequestParams
- type HostNetworkMockSendRequestResults
- type HostNetworkMockSendRequestToHostExpectation
- type HostNetworkMockSendRequestToHostParams
- type HostNetworkMockSendRequestToHostResults
- type HostNetworkMockStartExpectation
- type HostNetworkMockStartParams
- type HostNetworkMockStartResults
- type HostNetworkMockStopExpectation
- type HostNetworkMockStopParams
- type HostNetworkMockStopResults
- type 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(g1 reference.Global) (hp1 *legacyhost.Host, err error)
- func (mmResolve *RoutingTableMock) ResolveAfterCounter() uint64
- func (mmResolve *RoutingTableMock) ResolveBeforeCounter() uint64
- type RoutingTableMockResolveExpectation
- type RoutingTableMockResolveParams
- type RoutingTableMockResolveResults
- 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 GatewayMock ¶
type GatewayMock struct { AutherMock mGatewayMockAuther BootstrapperMock mGatewayMockBootstrapper CancelNodeStateMock mGatewayMockCancelNodeState EphemeralModeMock mGatewayMockEphemeralMode FailStateMock mGatewayMockFailState GetStateMock mGatewayMockGetState NewGatewayMock mGatewayMockNewGateway OnConsensusFinishedMock mGatewayMockOnConsensusFinished OnPulseFromConsensusMock mGatewayMockOnPulseFromConsensus RequestNodeStateMock mGatewayMockRequestNodeState 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) 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) CancelNodeState ¶
func (mmCancelNodeState *GatewayMock) CancelNodeState()
CancelNodeState implements network.Gateway
func (*GatewayMock) CancelNodeStateAfterCounter ¶
func (mmCancelNodeState *GatewayMock) CancelNodeStateAfterCounter() uint64
CancelNodeStateAfterCounter returns a count of finished GatewayMock.CancelNodeState invocations
func (*GatewayMock) CancelNodeStateBeforeCounter ¶
func (mmCancelNodeState *GatewayMock) CancelNodeStateBeforeCounter() uint64
CancelNodeStateBeforeCounter returns a count of GatewayMock.CancelNodeState invocations
func (*GatewayMock) EphemeralMode ¶
func (mmEphemeralMode *GatewayMock) EphemeralMode(o1 census.OnlinePopulation) (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) FailState ¶
func (mmFailState *GatewayMock) FailState(ctx context.Context, reason string)
FailState implements network.Gateway
func (*GatewayMock) FailStateAfterCounter ¶
func (mmFailState *GatewayMock) FailStateAfterCounter() uint64
FailStateAfterCounter returns a count of finished GatewayMock.FailState invocations
func (*GatewayMock) FailStateBeforeCounter ¶
func (mmFailState *GatewayMock) FailStateBeforeCounter() uint64
FailStateBeforeCounter returns a count of GatewayMock.FailState invocations
func (*GatewayMock) GetState ¶
func (mmGetState *GatewayMock) GetState() (s1 mm_network.State)
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) 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) MinimockCancelNodeStateDone ¶
func (m *GatewayMock) MinimockCancelNodeStateDone() bool
MinimockCancelNodeStateDone returns true if the count of the CancelNodeState invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockCancelNodeStateInspect ¶
func (m *GatewayMock) MinimockCancelNodeStateInspect()
MinimockCancelNodeStateInspect 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) MinimockFailStateDone ¶
func (m *GatewayMock) MinimockFailStateDone() bool
MinimockFailStateDone returns true if the count of the FailState invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockFailStateInspect ¶
func (m *GatewayMock) MinimockFailStateInspect()
MinimockFailStateInspect 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) MinimockRequestNodeStateDone ¶
func (m *GatewayMock) MinimockRequestNodeStateDone() bool
MinimockRequestNodeStateDone returns true if the count of the RequestNodeState invocations corresponds the number of defined expectations
func (*GatewayMock) MinimockRequestNodeStateInspect ¶
func (m *GatewayMock) MinimockRequestNodeStateInspect()
MinimockRequestNodeStateInspect 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, s1 mm_network.State) (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, r1 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, n1 mm_network.NetworkedPulse)
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) RequestNodeState ¶
func (mmRequestNodeState *GatewayMock) RequestNodeState(n1 chorus.NodeStateFunc)
RequestNodeState implements network.Gateway
func (*GatewayMock) RequestNodeStateAfterCounter ¶
func (mmRequestNodeState *GatewayMock) RequestNodeStateAfterCounter() uint64
RequestNodeStateAfterCounter returns a count of finished GatewayMock.RequestNodeState invocations
func (*GatewayMock) RequestNodeStateBeforeCounter ¶
func (mmRequestNodeState *GatewayMock) RequestNodeStateBeforeCounter() uint64
RequestNodeStateBeforeCounter returns a count of GatewayMock.RequestNodeState invocations
func (*GatewayMock) Run ¶
func (mmRun *GatewayMock) Run(ctx context.Context, d1 pulse.Data)
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, b1 beat.Beat)
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 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 GatewayMockCancelNodeStateExpectation ¶
type GatewayMockCancelNodeStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockCancelNodeStateExpectation specifies expectation struct of the Gateway.CancelNodeState
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 GatewayMockFailStateExpectation ¶
type GatewayMockFailStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockFailStateExpectation specifies expectation struct of the Gateway.FailState
type GatewayMockFailStateParams ¶
type GatewayMockFailStateParams struct {
// contains filtered or unexported fields
}
GatewayMockFailStateParams contains parameters of the Gateway.FailState
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 GatewayMockRequestNodeStateExpectation ¶
type GatewayMockRequestNodeStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
GatewayMockRequestNodeStateExpectation specifies expectation struct of the Gateway.RequestNodeState
type GatewayMockRequestNodeStateParams ¶
type GatewayMockRequestNodeStateParams struct {
// contains filtered or unexported fields
}
GatewayMockRequestNodeStateParams contains parameters of the Gateway.RequestNodeState
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 { 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) 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) 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, s1 mm_network.State, d1 pulse.Data)
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 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 ¶
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 ¶
func NewHostNetworkMock(t minimock.Tester) *HostNetworkMock
NewHostNetworkMock returns a mock for network.HostNetwork
func (*HostNetworkMock) BuildResponse ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (mmSendRequest *HostNetworkMock) SendRequest(ctx context.Context, t types.PacketType, requestData interface{}, receiver reference.Global) (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 *legacyhost.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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type HostNetworkMockRegisterRequestHandlerExpectation struct { Counter uint64 // contains filtered or unexported fields }
HostNetworkMockRegisterRequestHandlerExpectation specifies expectation struct of the HostNetwork.RegisterRequestHandler
type HostNetworkMockRegisterRequestHandlerParams ¶
type HostNetworkMockRegisterRequestHandlerParams struct {
// contains filtered or unexported fields
}
HostNetworkMockRegisterRequestHandlerParams contains parameters of the HostNetwork.RegisterRequestHandler
type HostNetworkMockSendRequestExpectation ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 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) Resolve ¶
func (mmResolve *RoutingTableMock) Resolve(g1 reference.Global) (hp1 *legacyhost.Host, err error)
Resolve implements network.RoutingTable
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 *legacyhost.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 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