network

package
v0.7.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestNetwork

func GetTestNetwork() core.Network

Types

type ClaimQueueMock added in v0.6.3

type ClaimQueueMock struct {
	FrontFunc       func() (r packets.ReferendumClaim)
	FrontCounter    uint64
	FrontPreCounter uint64
	FrontMock       mClaimQueueMockFront

	LengthFunc       func() (r int)
	LengthCounter    uint64
	LengthPreCounter uint64
	LengthMock       mClaimQueueMockLength

	PopFunc       func() (r packets.ReferendumClaim)
	PopCounter    uint64
	PopPreCounter uint64
	PopMock       mClaimQueueMockPop
	// contains filtered or unexported fields
}

ClaimQueueMock implements github.com/insolar/insolar/network.ClaimQueue

func NewClaimQueueMock added in v0.6.3

func NewClaimQueueMock(t minimock.Tester) *ClaimQueueMock

NewClaimQueueMock returns a mock for github.com/insolar/insolar/network.ClaimQueue

func (*ClaimQueueMock) AllMocksCalled added in v0.6.3

func (m *ClaimQueueMock) AllMocksCalled() bool

AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())

func (*ClaimQueueMock) CheckMocksCalled added in v0.6.3

func (m *ClaimQueueMock) CheckMocksCalled()

CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*ClaimQueueMock) Finish added in v0.6.3

func (m *ClaimQueueMock) Finish()

Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller

func (*ClaimQueueMock) Front added in v0.6.3

func (m *ClaimQueueMock) Front() (r packets.ReferendumClaim)

Front implements github.com/insolar/insolar/network.ClaimQueue interface

func (*ClaimQueueMock) FrontFinished added in v0.7.5

func (m *ClaimQueueMock) FrontFinished() bool

FrontFinished returns true if mock invocations count is ok

func (*ClaimQueueMock) FrontMinimockCounter added in v0.6.3

func (m *ClaimQueueMock) FrontMinimockCounter() uint64

FrontMinimockCounter returns a count of ClaimQueueMock.FrontFunc invocations

func (*ClaimQueueMock) FrontMinimockPreCounter added in v0.6.3

func (m *ClaimQueueMock) FrontMinimockPreCounter() uint64

FrontMinimockPreCounter returns the value of ClaimQueueMock.Front invocations

func (*ClaimQueueMock) Length added in v0.6.3

func (m *ClaimQueueMock) Length() (r int)

Length implements github.com/insolar/insolar/network.ClaimQueue interface

func (*ClaimQueueMock) LengthFinished added in v0.7.5

func (m *ClaimQueueMock) LengthFinished() bool

LengthFinished returns true if mock invocations count is ok

func (*ClaimQueueMock) LengthMinimockCounter added in v0.6.3

func (m *ClaimQueueMock) LengthMinimockCounter() uint64

LengthMinimockCounter returns a count of ClaimQueueMock.LengthFunc invocations

func (*ClaimQueueMock) LengthMinimockPreCounter added in v0.6.3

func (m *ClaimQueueMock) LengthMinimockPreCounter() uint64

LengthMinimockPreCounter returns the value of ClaimQueueMock.Length invocations

func (*ClaimQueueMock) MinimockFinish added in v0.6.3

func (m *ClaimQueueMock) MinimockFinish()

MinimockFinish checks that all mocked methods of the interface have been called at least once

func (*ClaimQueueMock) MinimockWait added in v0.6.3

func (m *ClaimQueueMock) MinimockWait(timeout time.Duration)

MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller

func (*ClaimQueueMock) Pop added in v0.6.3

func (m *ClaimQueueMock) Pop() (r packets.ReferendumClaim)

Pop implements github.com/insolar/insolar/network.ClaimQueue interface

func (*ClaimQueueMock) PopFinished added in v0.7.5

func (m *ClaimQueueMock) PopFinished() bool

PopFinished returns true if mock invocations count is ok

func (*ClaimQueueMock) PopMinimockCounter added in v0.6.3

func (m *ClaimQueueMock) PopMinimockCounter() uint64

PopMinimockCounter returns a count of ClaimQueueMock.PopFunc invocations

func (*ClaimQueueMock) PopMinimockPreCounter added in v0.6.3

func (m *ClaimQueueMock) PopMinimockPreCounter() uint64

PopMinimockPreCounter returns the value of ClaimQueueMock.Pop invocations

func (*ClaimQueueMock) ValidateCallCounters added in v0.6.3

func (m *ClaimQueueMock) ValidateCallCounters()

ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*ClaimQueueMock) Wait added in v0.6.3

func (m *ClaimQueueMock) Wait(timeout time.Duration)

Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller

type ClaimQueueMockFrontExpectation added in v0.7.5

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

func (*ClaimQueueMockFrontExpectation) Return added in v0.7.5

type ClaimQueueMockFrontResult added in v0.7.5

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

type ClaimQueueMockLengthExpectation added in v0.7.5

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

func (*ClaimQueueMockLengthExpectation) Return added in v0.7.5

func (e *ClaimQueueMockLengthExpectation) Return(r int)

type ClaimQueueMockLengthResult added in v0.7.5

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

type ClaimQueueMockPopExpectation added in v0.7.5

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

func (*ClaimQueueMockPopExpectation) Return added in v0.7.5

type ClaimQueueMockPopResult added in v0.7.5

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

type ConsensusNetworkMock added in v0.6.3

type ConsensusNetworkMock struct {
	GetNodeIDFunc       func() (r core.RecordRef)
	GetNodeIDCounter    uint64
	GetNodeIDPreCounter uint64
	GetNodeIDMock       mConsensusNetworkMockGetNodeID

	NewRequestBuilderFunc       func() (r network.RequestBuilder)
	NewRequestBuilderCounter    uint64
	NewRequestBuilderPreCounter uint64
	NewRequestBuilderMock       mConsensusNetworkMockNewRequestBuilder

	PublicAddressFunc       func() (r string)
	PublicAddressCounter    uint64
	PublicAddressPreCounter uint64
	PublicAddressMock       mConsensusNetworkMockPublicAddress

	RegisterRequestHandlerFunc       func(p types.PacketType, p1 network.ConsensusRequestHandler)
	RegisterRequestHandlerCounter    uint64
	RegisterRequestHandlerPreCounter uint64
	RegisterRequestHandlerMock       mConsensusNetworkMockRegisterRequestHandler

	SendRequestFunc       func(p network.Request, p1 core.RecordRef) (r error)
	SendRequestCounter    uint64
	SendRequestPreCounter uint64
	SendRequestMock       mConsensusNetworkMockSendRequest

	StartFunc       func(p context.Context)
	StartCounter    uint64
	StartPreCounter uint64
	StartMock       mConsensusNetworkMockStart

	StopFunc       func()
	StopCounter    uint64
	StopPreCounter uint64
	StopMock       mConsensusNetworkMockStop
	// contains filtered or unexported fields
}

ConsensusNetworkMock implements github.com/insolar/insolar/network.ConsensusNetwork

func NewConsensusNetworkMock added in v0.6.3

func NewConsensusNetworkMock(t minimock.Tester) *ConsensusNetworkMock

NewConsensusNetworkMock returns a mock for github.com/insolar/insolar/network.ConsensusNetwork

func (*ConsensusNetworkMock) AllMocksCalled added in v0.6.3

func (m *ConsensusNetworkMock) AllMocksCalled() bool

AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())

func (*ConsensusNetworkMock) CheckMocksCalled added in v0.6.3

func (m *ConsensusNetworkMock) CheckMocksCalled()

CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*ConsensusNetworkMock) Finish added in v0.6.3

func (m *ConsensusNetworkMock) Finish()

Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller

func (*ConsensusNetworkMock) GetNodeID added in v0.6.3

func (m *ConsensusNetworkMock) GetNodeID() (r core.RecordRef)

GetNodeID implements github.com/insolar/insolar/network.ConsensusNetwork interface

func (*ConsensusNetworkMock) GetNodeIDFinished added in v0.7.5

func (m *ConsensusNetworkMock) GetNodeIDFinished() bool

GetNodeIDFinished returns true if mock invocations count is ok

func (*ConsensusNetworkMock) GetNodeIDMinimockCounter added in v0.6.3

func (m *ConsensusNetworkMock) GetNodeIDMinimockCounter() uint64

GetNodeIDMinimockCounter returns a count of ConsensusNetworkMock.GetNodeIDFunc invocations

func (*ConsensusNetworkMock) GetNodeIDMinimockPreCounter added in v0.6.3

func (m *ConsensusNetworkMock) GetNodeIDMinimockPreCounter() uint64

GetNodeIDMinimockPreCounter returns the value of ConsensusNetworkMock.GetNodeID invocations

func (*ConsensusNetworkMock) MinimockFinish added in v0.6.3

func (m *ConsensusNetworkMock) MinimockFinish()

MinimockFinish checks that all mocked methods of the interface have been called at least once

func (*ConsensusNetworkMock) MinimockWait added in v0.6.3

func (m *ConsensusNetworkMock) MinimockWait(timeout time.Duration)

MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller

func (*ConsensusNetworkMock) NewRequestBuilder added in v0.6.3

func (m *ConsensusNetworkMock) NewRequestBuilder() (r network.RequestBuilder)

NewRequestBuilder implements github.com/insolar/insolar/network.ConsensusNetwork interface

func (*ConsensusNetworkMock) NewRequestBuilderFinished added in v0.7.5

func (m *ConsensusNetworkMock) NewRequestBuilderFinished() bool

NewRequestBuilderFinished returns true if mock invocations count is ok

func (*ConsensusNetworkMock) NewRequestBuilderMinimockCounter added in v0.6.3

func (m *ConsensusNetworkMock) NewRequestBuilderMinimockCounter() uint64

NewRequestBuilderMinimockCounter returns a count of ConsensusNetworkMock.NewRequestBuilderFunc invocations

func (*ConsensusNetworkMock) NewRequestBuilderMinimockPreCounter added in v0.6.3

func (m *ConsensusNetworkMock) NewRequestBuilderMinimockPreCounter() uint64

NewRequestBuilderMinimockPreCounter returns the value of ConsensusNetworkMock.NewRequestBuilder invocations

func (*ConsensusNetworkMock) PublicAddress added in v0.6.3

func (m *ConsensusNetworkMock) PublicAddress() (r string)

PublicAddress implements github.com/insolar/insolar/network.ConsensusNetwork interface

func (*ConsensusNetworkMock) PublicAddressFinished added in v0.7.5

func (m *ConsensusNetworkMock) PublicAddressFinished() bool

PublicAddressFinished returns true if mock invocations count is ok

func (*ConsensusNetworkMock) PublicAddressMinimockCounter added in v0.6.3

func (m *ConsensusNetworkMock) PublicAddressMinimockCounter() uint64

PublicAddressMinimockCounter returns a count of ConsensusNetworkMock.PublicAddressFunc invocations

func (*ConsensusNetworkMock) PublicAddressMinimockPreCounter added in v0.6.3

func (m *ConsensusNetworkMock) PublicAddressMinimockPreCounter() uint64

PublicAddressMinimockPreCounter returns the value of ConsensusNetworkMock.PublicAddress invocations

func (*ConsensusNetworkMock) RegisterRequestHandler added in v0.6.3

func (m *ConsensusNetworkMock) RegisterRequestHandler(p types.PacketType, p1 network.ConsensusRequestHandler)

RegisterRequestHandler implements github.com/insolar/insolar/network.ConsensusNetwork interface

func (*ConsensusNetworkMock) RegisterRequestHandlerFinished added in v0.7.5

func (m *ConsensusNetworkMock) RegisterRequestHandlerFinished() bool

RegisterRequestHandlerFinished returns true if mock invocations count is ok

func (*ConsensusNetworkMock) RegisterRequestHandlerMinimockCounter added in v0.6.3

func (m *ConsensusNetworkMock) RegisterRequestHandlerMinimockCounter() uint64

RegisterRequestHandlerMinimockCounter returns a count of ConsensusNetworkMock.RegisterRequestHandlerFunc invocations

func (*ConsensusNetworkMock) RegisterRequestHandlerMinimockPreCounter added in v0.6.3

func (m *ConsensusNetworkMock) RegisterRequestHandlerMinimockPreCounter() uint64

RegisterRequestHandlerMinimockPreCounter returns the value of ConsensusNetworkMock.RegisterRequestHandler invocations

func (*ConsensusNetworkMock) SendRequest added in v0.6.3

func (m *ConsensusNetworkMock) SendRequest(p network.Request, p1 core.RecordRef) (r error)

SendRequest implements github.com/insolar/insolar/network.ConsensusNetwork interface

func (*ConsensusNetworkMock) SendRequestFinished added in v0.7.5

func (m *ConsensusNetworkMock) SendRequestFinished() bool

SendRequestFinished returns true if mock invocations count is ok

func (*ConsensusNetworkMock) SendRequestMinimockCounter added in v0.6.3

func (m *ConsensusNetworkMock) SendRequestMinimockCounter() uint64

SendRequestMinimockCounter returns a count of ConsensusNetworkMock.SendRequestFunc invocations

func (*ConsensusNetworkMock) SendRequestMinimockPreCounter added in v0.6.3

func (m *ConsensusNetworkMock) SendRequestMinimockPreCounter() uint64

SendRequestMinimockPreCounter returns the value of ConsensusNetworkMock.SendRequest invocations

func (*ConsensusNetworkMock) Start added in v0.6.3

func (m *ConsensusNetworkMock) Start(p context.Context)

Start implements github.com/insolar/insolar/network.ConsensusNetwork interface

func (*ConsensusNetworkMock) StartFinished added in v0.7.5

func (m *ConsensusNetworkMock) StartFinished() bool

StartFinished returns true if mock invocations count is ok

func (*ConsensusNetworkMock) StartMinimockCounter added in v0.6.3

func (m *ConsensusNetworkMock) StartMinimockCounter() uint64

StartMinimockCounter returns a count of ConsensusNetworkMock.StartFunc invocations

func (*ConsensusNetworkMock) StartMinimockPreCounter added in v0.6.3

func (m *ConsensusNetworkMock) StartMinimockPreCounter() uint64

StartMinimockPreCounter returns the value of ConsensusNetworkMock.Start invocations

func (*ConsensusNetworkMock) Stop added in v0.6.3

func (m *ConsensusNetworkMock) Stop()

Stop implements github.com/insolar/insolar/network.ConsensusNetwork interface

func (*ConsensusNetworkMock) StopFinished added in v0.7.5

func (m *ConsensusNetworkMock) StopFinished() bool

StopFinished returns true if mock invocations count is ok

func (*ConsensusNetworkMock) StopMinimockCounter added in v0.6.3

func (m *ConsensusNetworkMock) StopMinimockCounter() uint64

StopMinimockCounter returns a count of ConsensusNetworkMock.StopFunc invocations

func (*ConsensusNetworkMock) StopMinimockPreCounter added in v0.6.3

func (m *ConsensusNetworkMock) StopMinimockPreCounter() uint64

StopMinimockPreCounter returns the value of ConsensusNetworkMock.Stop invocations

func (*ConsensusNetworkMock) ValidateCallCounters added in v0.6.3

func (m *ConsensusNetworkMock) ValidateCallCounters()

ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*ConsensusNetworkMock) Wait added in v0.6.3

func (m *ConsensusNetworkMock) Wait(timeout time.Duration)

Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller

type ConsensusNetworkMockGetNodeIDExpectation added in v0.7.5

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

func (*ConsensusNetworkMockGetNodeIDExpectation) Return added in v0.7.5

type ConsensusNetworkMockGetNodeIDResult added in v0.7.5

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

type ConsensusNetworkMockNewRequestBuilderExpectation added in v0.7.5

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

func (*ConsensusNetworkMockNewRequestBuilderExpectation) Return added in v0.7.5

type ConsensusNetworkMockNewRequestBuilderResult added in v0.7.5

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

type ConsensusNetworkMockPublicAddressExpectation added in v0.7.5

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

func (*ConsensusNetworkMockPublicAddressExpectation) Return added in v0.7.5

type ConsensusNetworkMockPublicAddressResult added in v0.7.5

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

type ConsensusNetworkMockRegisterRequestHandlerExpectation added in v0.7.5

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

type ConsensusNetworkMockRegisterRequestHandlerInput added in v0.7.5

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

type ConsensusNetworkMockSendRequestExpectation added in v0.7.5

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

func (*ConsensusNetworkMockSendRequestExpectation) Return added in v0.7.5

type ConsensusNetworkMockSendRequestInput added in v0.7.5

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

type ConsensusNetworkMockSendRequestResult added in v0.7.5

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

type ConsensusNetworkMockStartExpectation added in v0.7.5

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

type ConsensusNetworkMockStartInput added in v0.7.5

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

type ConsensusNetworkMockStopExpectation added in v0.7.5

type ConsensusNetworkMockStopExpectation struct {
}

type HostNetworkMock added in v0.6.3

type HostNetworkMock struct {
	BuildResponseFunc       func(p context.Context, p1 network.Request, p2 interface{}) (r network.Response)
	BuildResponseCounter    uint64
	BuildResponsePreCounter uint64
	BuildResponseMock       mHostNetworkMockBuildResponse

	GetNodeIDFunc       func() (r core.RecordRef)
	GetNodeIDCounter    uint64
	GetNodeIDPreCounter uint64
	GetNodeIDMock       mHostNetworkMockGetNodeID

	NewRequestBuilderFunc       func() (r network.RequestBuilder)
	NewRequestBuilderCounter    uint64
	NewRequestBuilderPreCounter uint64
	NewRequestBuilderMock       mHostNetworkMockNewRequestBuilder

	PublicAddressFunc       func() (r string)
	PublicAddressCounter    uint64
	PublicAddressPreCounter uint64
	PublicAddressMock       mHostNetworkMockPublicAddress

	RegisterRequestHandlerFunc       func(p types.PacketType, p1 network.RequestHandler)
	RegisterRequestHandlerCounter    uint64
	RegisterRequestHandlerPreCounter uint64
	RegisterRequestHandlerMock       mHostNetworkMockRegisterRequestHandler

	SendRequestFunc       func(p context.Context, p1 network.Request, p2 core.RecordRef) (r network.Future, r1 error)
	SendRequestCounter    uint64
	SendRequestPreCounter uint64
	SendRequestMock       mHostNetworkMockSendRequest

	StartFunc       func(p context.Context)
	StartCounter    uint64
	StartPreCounter uint64
	StartMock       mHostNetworkMockStart

	StopFunc       func()
	StopCounter    uint64
	StopPreCounter uint64
	StopMock       mHostNetworkMockStop
	// contains filtered or unexported fields
}

HostNetworkMock implements github.com/insolar/insolar/network.HostNetwork

func NewHostNetworkMock added in v0.6.3

func NewHostNetworkMock(t minimock.Tester) *HostNetworkMock

NewHostNetworkMock returns a mock for github.com/insolar/insolar/network.HostNetwork

func (*HostNetworkMock) AllMocksCalled added in v0.6.3

func (m *HostNetworkMock) AllMocksCalled() bool

AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())

func (*HostNetworkMock) BuildResponse added in v0.6.3

func (m *HostNetworkMock) BuildResponse(p context.Context, p1 network.Request, p2 interface{}) (r network.Response)

BuildResponse implements github.com/insolar/insolar/network.HostNetwork interface

func (*HostNetworkMock) BuildResponseFinished added in v0.7.5

func (m *HostNetworkMock) BuildResponseFinished() bool

BuildResponseFinished returns true if mock invocations count is ok

func (*HostNetworkMock) BuildResponseMinimockCounter added in v0.6.3

func (m *HostNetworkMock) BuildResponseMinimockCounter() uint64

BuildResponseMinimockCounter returns a count of HostNetworkMock.BuildResponseFunc invocations

func (*HostNetworkMock) BuildResponseMinimockPreCounter added in v0.6.3

func (m *HostNetworkMock) BuildResponseMinimockPreCounter() uint64

BuildResponseMinimockPreCounter returns the value of HostNetworkMock.BuildResponse invocations

func (*HostNetworkMock) CheckMocksCalled added in v0.6.3

func (m *HostNetworkMock) CheckMocksCalled()

CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*HostNetworkMock) Finish added in v0.6.3

func (m *HostNetworkMock) Finish()

Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller

func (*HostNetworkMock) GetNodeID added in v0.6.3

func (m *HostNetworkMock) GetNodeID() (r core.RecordRef)

GetNodeID implements github.com/insolar/insolar/network.HostNetwork interface

func (*HostNetworkMock) GetNodeIDFinished added in v0.7.5

func (m *HostNetworkMock) GetNodeIDFinished() bool

GetNodeIDFinished returns true if mock invocations count is ok

func (*HostNetworkMock) GetNodeIDMinimockCounter added in v0.6.3

func (m *HostNetworkMock) GetNodeIDMinimockCounter() uint64

GetNodeIDMinimockCounter returns a count of HostNetworkMock.GetNodeIDFunc invocations

func (*HostNetworkMock) GetNodeIDMinimockPreCounter added in v0.6.3

func (m *HostNetworkMock) GetNodeIDMinimockPreCounter() uint64

GetNodeIDMinimockPreCounter returns the value of HostNetworkMock.GetNodeID invocations

func (*HostNetworkMock) MinimockFinish added in v0.6.3

func (m *HostNetworkMock) MinimockFinish()

MinimockFinish checks that all mocked methods of the interface have been called at least once

func (*HostNetworkMock) MinimockWait added in v0.6.3

func (m *HostNetworkMock) MinimockWait(timeout time.Duration)

MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller

func (*HostNetworkMock) NewRequestBuilder added in v0.6.3

func (m *HostNetworkMock) NewRequestBuilder() (r network.RequestBuilder)

NewRequestBuilder implements github.com/insolar/insolar/network.HostNetwork interface

func (*HostNetworkMock) NewRequestBuilderFinished added in v0.7.5

func (m *HostNetworkMock) NewRequestBuilderFinished() bool

NewRequestBuilderFinished returns true if mock invocations count is ok

func (*HostNetworkMock) NewRequestBuilderMinimockCounter added in v0.6.3

func (m *HostNetworkMock) NewRequestBuilderMinimockCounter() uint64

NewRequestBuilderMinimockCounter returns a count of HostNetworkMock.NewRequestBuilderFunc invocations

func (*HostNetworkMock) NewRequestBuilderMinimockPreCounter added in v0.6.3

func (m *HostNetworkMock) NewRequestBuilderMinimockPreCounter() uint64

NewRequestBuilderMinimockPreCounter returns the value of HostNetworkMock.NewRequestBuilder invocations

func (*HostNetworkMock) PublicAddress added in v0.6.3

func (m *HostNetworkMock) PublicAddress() (r string)

PublicAddress implements github.com/insolar/insolar/network.HostNetwork interface

func (*HostNetworkMock) PublicAddressFinished added in v0.7.5

func (m *HostNetworkMock) PublicAddressFinished() bool

PublicAddressFinished returns true if mock invocations count is ok

func (*HostNetworkMock) PublicAddressMinimockCounter added in v0.6.3

func (m *HostNetworkMock) PublicAddressMinimockCounter() uint64

PublicAddressMinimockCounter returns a count of HostNetworkMock.PublicAddressFunc invocations

func (*HostNetworkMock) PublicAddressMinimockPreCounter added in v0.6.3

func (m *HostNetworkMock) PublicAddressMinimockPreCounter() uint64

PublicAddressMinimockPreCounter returns the value of HostNetworkMock.PublicAddress invocations

func (*HostNetworkMock) RegisterRequestHandler added in v0.6.3

func (m *HostNetworkMock) RegisterRequestHandler(p types.PacketType, p1 network.RequestHandler)

RegisterRequestHandler implements github.com/insolar/insolar/network.HostNetwork interface

func (*HostNetworkMock) RegisterRequestHandlerFinished added in v0.7.5

func (m *HostNetworkMock) RegisterRequestHandlerFinished() bool

RegisterRequestHandlerFinished returns true if mock invocations count is ok

func (*HostNetworkMock) RegisterRequestHandlerMinimockCounter added in v0.6.3

func (m *HostNetworkMock) RegisterRequestHandlerMinimockCounter() uint64

RegisterRequestHandlerMinimockCounter returns a count of HostNetworkMock.RegisterRequestHandlerFunc invocations

func (*HostNetworkMock) RegisterRequestHandlerMinimockPreCounter added in v0.6.3

func (m *HostNetworkMock) RegisterRequestHandlerMinimockPreCounter() uint64

RegisterRequestHandlerMinimockPreCounter returns the value of HostNetworkMock.RegisterRequestHandler invocations

func (*HostNetworkMock) SendRequest added in v0.6.3

func (m *HostNetworkMock) SendRequest(p context.Context, p1 network.Request, p2 core.RecordRef) (r network.Future, r1 error)

SendRequest implements github.com/insolar/insolar/network.HostNetwork interface

func (*HostNetworkMock) SendRequestFinished added in v0.7.5

func (m *HostNetworkMock) SendRequestFinished() bool

SendRequestFinished returns true if mock invocations count is ok

func (*HostNetworkMock) SendRequestMinimockCounter added in v0.6.3

func (m *HostNetworkMock) SendRequestMinimockCounter() uint64

SendRequestMinimockCounter returns a count of HostNetworkMock.SendRequestFunc invocations

func (*HostNetworkMock) SendRequestMinimockPreCounter added in v0.6.3

func (m *HostNetworkMock) SendRequestMinimockPreCounter() uint64

SendRequestMinimockPreCounter returns the value of HostNetworkMock.SendRequest invocations

func (*HostNetworkMock) Start added in v0.6.3

func (m *HostNetworkMock) Start(p context.Context)

Start implements github.com/insolar/insolar/network.HostNetwork interface

func (*HostNetworkMock) StartFinished added in v0.7.5

func (m *HostNetworkMock) StartFinished() bool

StartFinished returns true if mock invocations count is ok

func (*HostNetworkMock) StartMinimockCounter added in v0.6.3

func (m *HostNetworkMock) StartMinimockCounter() uint64

StartMinimockCounter returns a count of HostNetworkMock.StartFunc invocations

func (*HostNetworkMock) StartMinimockPreCounter added in v0.6.3

func (m *HostNetworkMock) StartMinimockPreCounter() uint64

StartMinimockPreCounter returns the value of HostNetworkMock.Start invocations

func (*HostNetworkMock) Stop added in v0.6.3

func (m *HostNetworkMock) Stop()

Stop implements github.com/insolar/insolar/network.HostNetwork interface

func (*HostNetworkMock) StopFinished added in v0.7.5

func (m *HostNetworkMock) StopFinished() bool

StopFinished returns true if mock invocations count is ok

func (*HostNetworkMock) StopMinimockCounter added in v0.6.3

func (m *HostNetworkMock) StopMinimockCounter() uint64

StopMinimockCounter returns a count of HostNetworkMock.StopFunc invocations

func (*HostNetworkMock) StopMinimockPreCounter added in v0.6.3

func (m *HostNetworkMock) StopMinimockPreCounter() uint64

StopMinimockPreCounter returns the value of HostNetworkMock.Stop invocations

func (*HostNetworkMock) ValidateCallCounters added in v0.6.3

func (m *HostNetworkMock) ValidateCallCounters()

ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*HostNetworkMock) Wait added in v0.6.3

func (m *HostNetworkMock) Wait(timeout time.Duration)

Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller

type HostNetworkMockBuildResponseExpectation added in v0.7.5

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

func (*HostNetworkMockBuildResponseExpectation) Return added in v0.7.5

type HostNetworkMockBuildResponseInput added in v0.7.5

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

type HostNetworkMockBuildResponseResult added in v0.7.5

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

type HostNetworkMockGetNodeIDExpectation added in v0.7.5

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

func (*HostNetworkMockGetNodeIDExpectation) Return added in v0.7.5

type HostNetworkMockGetNodeIDResult added in v0.7.5

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

type HostNetworkMockNewRequestBuilderExpectation added in v0.7.5

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

func (*HostNetworkMockNewRequestBuilderExpectation) Return added in v0.7.5

type HostNetworkMockNewRequestBuilderResult added in v0.7.5

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

type HostNetworkMockPublicAddressExpectation added in v0.7.5

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

func (*HostNetworkMockPublicAddressExpectation) Return added in v0.7.5

type HostNetworkMockPublicAddressResult added in v0.7.5

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

type HostNetworkMockRegisterRequestHandlerExpectation added in v0.7.5

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

type HostNetworkMockRegisterRequestHandlerInput added in v0.7.5

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

type HostNetworkMockSendRequestExpectation added in v0.7.5

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

func (*HostNetworkMockSendRequestExpectation) Return added in v0.7.5

type HostNetworkMockSendRequestInput added in v0.7.5

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

type HostNetworkMockSendRequestResult added in v0.7.5

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

type HostNetworkMockStartExpectation added in v0.7.5

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

type HostNetworkMockStartInput added in v0.7.5

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

type HostNetworkMockStopExpectation added in v0.7.5

type HostNetworkMockStopExpectation struct {
}

type NodeKeeperMock added in v0.6.3

type NodeKeeperMock struct {
	AddActiveNodesFunc       func(p []core.Node)
	AddActiveNodesCounter    uint64
	AddActiveNodesPreCounter uint64
	AddActiveNodesMock       mNodeKeeperMockAddActiveNodes

	AddPendingClaimFunc       func(p packets.ReferendumClaim) (r bool)
	AddPendingClaimCounter    uint64
	AddPendingClaimPreCounter uint64
	AddPendingClaimMock       mNodeKeeperMockAddPendingClaim

	GetActiveNodeFunc       func(p core.RecordRef) (r core.Node)
	GetActiveNodeCounter    uint64
	GetActiveNodePreCounter uint64
	GetActiveNodeMock       mNodeKeeperMockGetActiveNode

	GetActiveNodeByShortIDFunc       func(p core.ShortNodeID) (r core.Node)
	GetActiveNodeByShortIDCounter    uint64
	GetActiveNodeByShortIDPreCounter uint64
	GetActiveNodeByShortIDMock       mNodeKeeperMockGetActiveNodeByShortID

	GetActiveNodesFunc       func() (r []core.Node)
	GetActiveNodesCounter    uint64
	GetActiveNodesPreCounter uint64
	GetActiveNodesMock       mNodeKeeperMockGetActiveNodes

	GetActiveNodesByRoleFunc       func(p core.DynamicRole) (r []core.RecordRef)
	GetActiveNodesByRoleCounter    uint64
	GetActiveNodesByRolePreCounter uint64
	GetActiveNodesByRoleMock       mNodeKeeperMockGetActiveNodesByRole

	GetClaimQueueFunc       func() (r network.ClaimQueue)
	GetClaimQueueCounter    uint64
	GetClaimQueuePreCounter uint64
	GetClaimQueueMock       mNodeKeeperMockGetClaimQueue

	GetCloudHashFunc       func() (r []byte)
	GetCloudHashCounter    uint64
	GetCloudHashPreCounter uint64
	GetCloudHashMock       mNodeKeeperMockGetCloudHash

	GetOriginFunc       func() (r core.Node)
	GetOriginCounter    uint64
	GetOriginPreCounter uint64
	GetOriginMock       mNodeKeeperMockGetOrigin

	GetOriginClaimFunc       func() (r *packets.NodeJoinClaim, r1 error)
	GetOriginClaimCounter    uint64
	GetOriginClaimPreCounter uint64
	GetOriginClaimMock       mNodeKeeperMockGetOriginClaim

	GetSparseUnsyncListFunc       func(p int) (r network.UnsyncList)
	GetSparseUnsyncListCounter    uint64
	GetSparseUnsyncListPreCounter uint64
	GetSparseUnsyncListMock       mNodeKeeperMockGetSparseUnsyncList

	GetStateFunc       func() (r network.NodeKeeperState)
	GetStateCounter    uint64
	GetStatePreCounter uint64
	GetStateMock       mNodeKeeperMockGetState

	GetUnsyncListFunc       func() (r network.UnsyncList)
	GetUnsyncListCounter    uint64
	GetUnsyncListPreCounter uint64
	GetUnsyncListMock       mNodeKeeperMockGetUnsyncList

	IsBootstrappedFunc       func() (r bool)
	IsBootstrappedCounter    uint64
	IsBootstrappedPreCounter uint64
	IsBootstrappedMock       mNodeKeeperMockIsBootstrapped

	MoveSyncToActiveFunc       func()
	MoveSyncToActiveCounter    uint64
	MoveSyncToActivePreCounter uint64
	MoveSyncToActiveMock       mNodeKeeperMockMoveSyncToActive

	NodesJoinedDuringPreviousPulseFunc       func() (r bool)
	NodesJoinedDuringPreviousPulseCounter    uint64
	NodesJoinedDuringPreviousPulsePreCounter uint64
	NodesJoinedDuringPreviousPulseMock       mNodeKeeperMockNodesJoinedDuringPreviousPulse

	SetCloudHashFunc       func(p []byte)
	SetCloudHashCounter    uint64
	SetCloudHashPreCounter uint64
	SetCloudHashMock       mNodeKeeperMockSetCloudHash

	SetIsBootstrappedFunc       func(p bool)
	SetIsBootstrappedCounter    uint64
	SetIsBootstrappedPreCounter uint64
	SetIsBootstrappedMock       mNodeKeeperMockSetIsBootstrapped

	SetStateFunc       func(p network.NodeKeeperState)
	SetStateCounter    uint64
	SetStatePreCounter uint64
	SetStateMock       mNodeKeeperMockSetState

	SyncFunc       func(p network.UnsyncList)
	SyncCounter    uint64
	SyncPreCounter uint64
	SyncMock       mNodeKeeperMockSync
	// contains filtered or unexported fields
}

NodeKeeperMock implements github.com/insolar/insolar/network.NodeKeeper

func NewNodeKeeperMock added in v0.6.3

func NewNodeKeeperMock(t minimock.Tester) *NodeKeeperMock

NewNodeKeeperMock returns a mock for github.com/insolar/insolar/network.NodeKeeper

func (*NodeKeeperMock) AddActiveNodes added in v0.6.3

func (m *NodeKeeperMock) AddActiveNodes(p []core.Node)

AddActiveNodes implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) AddActiveNodesFinished added in v0.7.5

func (m *NodeKeeperMock) AddActiveNodesFinished() bool

AddActiveNodesFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) AddActiveNodesMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) AddActiveNodesMinimockCounter() uint64

AddActiveNodesMinimockCounter returns a count of NodeKeeperMock.AddActiveNodesFunc invocations

func (*NodeKeeperMock) AddActiveNodesMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) AddActiveNodesMinimockPreCounter() uint64

AddActiveNodesMinimockPreCounter returns the value of NodeKeeperMock.AddActiveNodes invocations

func (*NodeKeeperMock) AddPendingClaim added in v0.6.3

func (m *NodeKeeperMock) AddPendingClaim(p packets.ReferendumClaim) (r bool)

AddPendingClaim implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) AddPendingClaimFinished added in v0.7.5

func (m *NodeKeeperMock) AddPendingClaimFinished() bool

AddPendingClaimFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) AddPendingClaimMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) AddPendingClaimMinimockCounter() uint64

AddPendingClaimMinimockCounter returns a count of NodeKeeperMock.AddPendingClaimFunc invocations

func (*NodeKeeperMock) AddPendingClaimMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) AddPendingClaimMinimockPreCounter() uint64

AddPendingClaimMinimockPreCounter returns the value of NodeKeeperMock.AddPendingClaim invocations

func (*NodeKeeperMock) AllMocksCalled added in v0.6.3

func (m *NodeKeeperMock) AllMocksCalled() bool

AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())

func (*NodeKeeperMock) CheckMocksCalled added in v0.6.3

func (m *NodeKeeperMock) CheckMocksCalled()

CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*NodeKeeperMock) Finish added in v0.6.3

func (m *NodeKeeperMock) Finish()

Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller

func (*NodeKeeperMock) GetActiveNode added in v0.6.3

func (m *NodeKeeperMock) GetActiveNode(p core.RecordRef) (r core.Node)

GetActiveNode implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) GetActiveNodeByShortID added in v0.6.3

func (m *NodeKeeperMock) GetActiveNodeByShortID(p core.ShortNodeID) (r core.Node)

GetActiveNodeByShortID implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) GetActiveNodeByShortIDFinished added in v0.7.5

func (m *NodeKeeperMock) GetActiveNodeByShortIDFinished() bool

GetActiveNodeByShortIDFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) GetActiveNodeByShortIDMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) GetActiveNodeByShortIDMinimockCounter() uint64

GetActiveNodeByShortIDMinimockCounter returns a count of NodeKeeperMock.GetActiveNodeByShortIDFunc invocations

func (*NodeKeeperMock) GetActiveNodeByShortIDMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) GetActiveNodeByShortIDMinimockPreCounter() uint64

GetActiveNodeByShortIDMinimockPreCounter returns the value of NodeKeeperMock.GetActiveNodeByShortID invocations

func (*NodeKeeperMock) GetActiveNodeFinished added in v0.7.5

func (m *NodeKeeperMock) GetActiveNodeFinished() bool

GetActiveNodeFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) GetActiveNodeMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) GetActiveNodeMinimockCounter() uint64

GetActiveNodeMinimockCounter returns a count of NodeKeeperMock.GetActiveNodeFunc invocations

func (*NodeKeeperMock) GetActiveNodeMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) GetActiveNodeMinimockPreCounter() uint64

GetActiveNodeMinimockPreCounter returns the value of NodeKeeperMock.GetActiveNode invocations

func (*NodeKeeperMock) GetActiveNodes added in v0.6.3

func (m *NodeKeeperMock) GetActiveNodes() (r []core.Node)

GetActiveNodes implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) GetActiveNodesByRole added in v0.6.3

func (m *NodeKeeperMock) GetActiveNodesByRole(p core.DynamicRole) (r []core.RecordRef)

GetActiveNodesByRole implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) GetActiveNodesByRoleFinished added in v0.7.5

func (m *NodeKeeperMock) GetActiveNodesByRoleFinished() bool

GetActiveNodesByRoleFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) GetActiveNodesByRoleMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) GetActiveNodesByRoleMinimockCounter() uint64

GetActiveNodesByRoleMinimockCounter returns a count of NodeKeeperMock.GetActiveNodesByRoleFunc invocations

func (*NodeKeeperMock) GetActiveNodesByRoleMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) GetActiveNodesByRoleMinimockPreCounter() uint64

GetActiveNodesByRoleMinimockPreCounter returns the value of NodeKeeperMock.GetActiveNodesByRole invocations

func (*NodeKeeperMock) GetActiveNodesFinished added in v0.7.5

func (m *NodeKeeperMock) GetActiveNodesFinished() bool

GetActiveNodesFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) GetActiveNodesMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) GetActiveNodesMinimockCounter() uint64

GetActiveNodesMinimockCounter returns a count of NodeKeeperMock.GetActiveNodesFunc invocations

func (*NodeKeeperMock) GetActiveNodesMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) GetActiveNodesMinimockPreCounter() uint64

GetActiveNodesMinimockPreCounter returns the value of NodeKeeperMock.GetActiveNodes invocations

func (*NodeKeeperMock) GetClaimQueue added in v0.6.3

func (m *NodeKeeperMock) GetClaimQueue() (r network.ClaimQueue)

GetClaimQueue implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) GetClaimQueueFinished added in v0.7.5

func (m *NodeKeeperMock) GetClaimQueueFinished() bool

GetClaimQueueFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) GetClaimQueueMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) GetClaimQueueMinimockCounter() uint64

GetClaimQueueMinimockCounter returns a count of NodeKeeperMock.GetClaimQueueFunc invocations

func (*NodeKeeperMock) GetClaimQueueMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) GetClaimQueueMinimockPreCounter() uint64

GetClaimQueueMinimockPreCounter returns the value of NodeKeeperMock.GetClaimQueue invocations

func (*NodeKeeperMock) GetCloudHash added in v0.6.3

func (m *NodeKeeperMock) GetCloudHash() (r []byte)

GetCloudHash implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) GetCloudHashFinished added in v0.7.5

func (m *NodeKeeperMock) GetCloudHashFinished() bool

GetCloudHashFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) GetCloudHashMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) GetCloudHashMinimockCounter() uint64

GetCloudHashMinimockCounter returns a count of NodeKeeperMock.GetCloudHashFunc invocations

func (*NodeKeeperMock) GetCloudHashMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) GetCloudHashMinimockPreCounter() uint64

GetCloudHashMinimockPreCounter returns the value of NodeKeeperMock.GetCloudHash invocations

func (*NodeKeeperMock) GetOrigin added in v0.6.3

func (m *NodeKeeperMock) GetOrigin() (r core.Node)

GetOrigin implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) GetOriginClaim added in v0.6.3

func (m *NodeKeeperMock) GetOriginClaim() (r *packets.NodeJoinClaim, r1 error)

GetOriginClaim implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) GetOriginClaimFinished added in v0.7.5

func (m *NodeKeeperMock) GetOriginClaimFinished() bool

GetOriginClaimFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) GetOriginClaimMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) GetOriginClaimMinimockCounter() uint64

GetOriginClaimMinimockCounter returns a count of NodeKeeperMock.GetOriginClaimFunc invocations

func (*NodeKeeperMock) GetOriginClaimMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) GetOriginClaimMinimockPreCounter() uint64

GetOriginClaimMinimockPreCounter returns the value of NodeKeeperMock.GetOriginClaim invocations

func (*NodeKeeperMock) GetOriginFinished added in v0.7.5

func (m *NodeKeeperMock) GetOriginFinished() bool

GetOriginFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) GetOriginMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) GetOriginMinimockCounter() uint64

GetOriginMinimockCounter returns a count of NodeKeeperMock.GetOriginFunc invocations

func (*NodeKeeperMock) GetOriginMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) GetOriginMinimockPreCounter() uint64

GetOriginMinimockPreCounter returns the value of NodeKeeperMock.GetOrigin invocations

func (*NodeKeeperMock) GetSparseUnsyncList added in v0.6.3

func (m *NodeKeeperMock) GetSparseUnsyncList(p int) (r network.UnsyncList)

GetSparseUnsyncList implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) GetSparseUnsyncListFinished added in v0.7.5

func (m *NodeKeeperMock) GetSparseUnsyncListFinished() bool

GetSparseUnsyncListFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) GetSparseUnsyncListMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) GetSparseUnsyncListMinimockCounter() uint64

GetSparseUnsyncListMinimockCounter returns a count of NodeKeeperMock.GetSparseUnsyncListFunc invocations

func (*NodeKeeperMock) GetSparseUnsyncListMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) GetSparseUnsyncListMinimockPreCounter() uint64

GetSparseUnsyncListMinimockPreCounter returns the value of NodeKeeperMock.GetSparseUnsyncList invocations

func (*NodeKeeperMock) GetState added in v0.6.3

func (m *NodeKeeperMock) GetState() (r network.NodeKeeperState)

GetState implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) GetStateFinished added in v0.7.5

func (m *NodeKeeperMock) GetStateFinished() bool

GetStateFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) GetStateMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) GetStateMinimockCounter() uint64

GetStateMinimockCounter returns a count of NodeKeeperMock.GetStateFunc invocations

func (*NodeKeeperMock) GetStateMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) GetStateMinimockPreCounter() uint64

GetStateMinimockPreCounter returns the value of NodeKeeperMock.GetState invocations

func (*NodeKeeperMock) GetUnsyncList added in v0.6.3

func (m *NodeKeeperMock) GetUnsyncList() (r network.UnsyncList)

GetUnsyncList implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) GetUnsyncListFinished added in v0.7.5

func (m *NodeKeeperMock) GetUnsyncListFinished() bool

GetUnsyncListFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) GetUnsyncListMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) GetUnsyncListMinimockCounter() uint64

GetUnsyncListMinimockCounter returns a count of NodeKeeperMock.GetUnsyncListFunc invocations

func (*NodeKeeperMock) GetUnsyncListMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) GetUnsyncListMinimockPreCounter() uint64

GetUnsyncListMinimockPreCounter returns the value of NodeKeeperMock.GetUnsyncList invocations

func (*NodeKeeperMock) IsBootstrapped added in v0.7.5

func (m *NodeKeeperMock) IsBootstrapped() (r bool)

IsBootstrapped implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) IsBootstrappedFinished added in v0.7.5

func (m *NodeKeeperMock) IsBootstrappedFinished() bool

IsBootstrappedFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) IsBootstrappedMinimockCounter added in v0.7.5

func (m *NodeKeeperMock) IsBootstrappedMinimockCounter() uint64

IsBootstrappedMinimockCounter returns a count of NodeKeeperMock.IsBootstrappedFunc invocations

func (*NodeKeeperMock) IsBootstrappedMinimockPreCounter added in v0.7.5

func (m *NodeKeeperMock) IsBootstrappedMinimockPreCounter() uint64

IsBootstrappedMinimockPreCounter returns the value of NodeKeeperMock.IsBootstrapped invocations

func (*NodeKeeperMock) MinimockFinish added in v0.6.3

func (m *NodeKeeperMock) MinimockFinish()

MinimockFinish checks that all mocked methods of the interface have been called at least once

func (*NodeKeeperMock) MinimockWait added in v0.6.3

func (m *NodeKeeperMock) MinimockWait(timeout time.Duration)

MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller

func (*NodeKeeperMock) MoveSyncToActive added in v0.6.3

func (m *NodeKeeperMock) MoveSyncToActive()

MoveSyncToActive implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) MoveSyncToActiveFinished added in v0.7.5

func (m *NodeKeeperMock) MoveSyncToActiveFinished() bool

MoveSyncToActiveFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) MoveSyncToActiveMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) MoveSyncToActiveMinimockCounter() uint64

MoveSyncToActiveMinimockCounter returns a count of NodeKeeperMock.MoveSyncToActiveFunc invocations

func (*NodeKeeperMock) MoveSyncToActiveMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) MoveSyncToActiveMinimockPreCounter() uint64

MoveSyncToActiveMinimockPreCounter returns the value of NodeKeeperMock.MoveSyncToActive invocations

func (*NodeKeeperMock) NodesJoinedDuringPreviousPulse added in v0.6.3

func (m *NodeKeeperMock) NodesJoinedDuringPreviousPulse() (r bool)

NodesJoinedDuringPreviousPulse implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) NodesJoinedDuringPreviousPulseFinished added in v0.7.5

func (m *NodeKeeperMock) NodesJoinedDuringPreviousPulseFinished() bool

NodesJoinedDuringPreviousPulseFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) NodesJoinedDuringPreviousPulseMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) NodesJoinedDuringPreviousPulseMinimockCounter() uint64

NodesJoinedDuringPreviousPulseMinimockCounter returns a count of NodeKeeperMock.NodesJoinedDuringPreviousPulseFunc invocations

func (*NodeKeeperMock) NodesJoinedDuringPreviousPulseMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) NodesJoinedDuringPreviousPulseMinimockPreCounter() uint64

NodesJoinedDuringPreviousPulseMinimockPreCounter returns the value of NodeKeeperMock.NodesJoinedDuringPreviousPulse invocations

func (*NodeKeeperMock) SetCloudHash added in v0.6.3

func (m *NodeKeeperMock) SetCloudHash(p []byte)

SetCloudHash implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) SetCloudHashFinished added in v0.7.5

func (m *NodeKeeperMock) SetCloudHashFinished() bool

SetCloudHashFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) SetCloudHashMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) SetCloudHashMinimockCounter() uint64

SetCloudHashMinimockCounter returns a count of NodeKeeperMock.SetCloudHashFunc invocations

func (*NodeKeeperMock) SetCloudHashMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) SetCloudHashMinimockPreCounter() uint64

SetCloudHashMinimockPreCounter returns the value of NodeKeeperMock.SetCloudHash invocations

func (*NodeKeeperMock) SetIsBootstrapped added in v0.7.5

func (m *NodeKeeperMock) SetIsBootstrapped(p bool)

SetIsBootstrapped implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) SetIsBootstrappedFinished added in v0.7.5

func (m *NodeKeeperMock) SetIsBootstrappedFinished() bool

SetIsBootstrappedFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) SetIsBootstrappedMinimockCounter added in v0.7.5

func (m *NodeKeeperMock) SetIsBootstrappedMinimockCounter() uint64

SetIsBootstrappedMinimockCounter returns a count of NodeKeeperMock.SetIsBootstrappedFunc invocations

func (*NodeKeeperMock) SetIsBootstrappedMinimockPreCounter added in v0.7.5

func (m *NodeKeeperMock) SetIsBootstrappedMinimockPreCounter() uint64

SetIsBootstrappedMinimockPreCounter returns the value of NodeKeeperMock.SetIsBootstrapped invocations

func (*NodeKeeperMock) SetState added in v0.6.3

func (m *NodeKeeperMock) SetState(p network.NodeKeeperState)

SetState implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) SetStateFinished added in v0.7.5

func (m *NodeKeeperMock) SetStateFinished() bool

SetStateFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) SetStateMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) SetStateMinimockCounter() uint64

SetStateMinimockCounter returns a count of NodeKeeperMock.SetStateFunc invocations

func (*NodeKeeperMock) SetStateMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) SetStateMinimockPreCounter() uint64

SetStateMinimockPreCounter returns the value of NodeKeeperMock.SetState invocations

func (*NodeKeeperMock) Sync added in v0.6.3

func (m *NodeKeeperMock) Sync(p network.UnsyncList)

Sync implements github.com/insolar/insolar/network.NodeKeeper interface

func (*NodeKeeperMock) SyncFinished added in v0.7.5

func (m *NodeKeeperMock) SyncFinished() bool

SyncFinished returns true if mock invocations count is ok

func (*NodeKeeperMock) SyncMinimockCounter added in v0.6.3

func (m *NodeKeeperMock) SyncMinimockCounter() uint64

SyncMinimockCounter returns a count of NodeKeeperMock.SyncFunc invocations

func (*NodeKeeperMock) SyncMinimockPreCounter added in v0.6.3

func (m *NodeKeeperMock) SyncMinimockPreCounter() uint64

SyncMinimockPreCounter returns the value of NodeKeeperMock.Sync invocations

func (*NodeKeeperMock) ValidateCallCounters added in v0.6.3

func (m *NodeKeeperMock) ValidateCallCounters()

ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*NodeKeeperMock) Wait added in v0.6.3

func (m *NodeKeeperMock) Wait(timeout time.Duration)

Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller

type NodeKeeperMockAddActiveNodesExpectation added in v0.7.5

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

type NodeKeeperMockAddActiveNodesInput added in v0.7.5

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

type NodeKeeperMockAddPendingClaimExpectation added in v0.7.5

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

func (*NodeKeeperMockAddPendingClaimExpectation) Return added in v0.7.5

type NodeKeeperMockAddPendingClaimInput added in v0.7.5

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

type NodeKeeperMockAddPendingClaimResult added in v0.7.5

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

type NodeKeeperMockGetActiveNodeByShortIDExpectation added in v0.7.5

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

func (*NodeKeeperMockGetActiveNodeByShortIDExpectation) Return added in v0.7.5

type NodeKeeperMockGetActiveNodeByShortIDInput added in v0.7.5

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

type NodeKeeperMockGetActiveNodeByShortIDResult added in v0.7.5

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

type NodeKeeperMockGetActiveNodeExpectation added in v0.7.5

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

func (*NodeKeeperMockGetActiveNodeExpectation) Return added in v0.7.5

type NodeKeeperMockGetActiveNodeInput added in v0.7.5

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

type NodeKeeperMockGetActiveNodeResult added in v0.7.5

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

type NodeKeeperMockGetActiveNodesByRoleExpectation added in v0.7.5

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

func (*NodeKeeperMockGetActiveNodesByRoleExpectation) Return added in v0.7.5

type NodeKeeperMockGetActiveNodesByRoleInput added in v0.7.5

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

type NodeKeeperMockGetActiveNodesByRoleResult added in v0.7.5

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

type NodeKeeperMockGetActiveNodesExpectation added in v0.7.5

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

func (*NodeKeeperMockGetActiveNodesExpectation) Return added in v0.7.5

type NodeKeeperMockGetActiveNodesResult added in v0.7.5

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

type NodeKeeperMockGetClaimQueueExpectation added in v0.7.5

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

func (*NodeKeeperMockGetClaimQueueExpectation) Return added in v0.7.5

type NodeKeeperMockGetClaimQueueResult added in v0.7.5

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

type NodeKeeperMockGetCloudHashExpectation added in v0.7.5

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

func (*NodeKeeperMockGetCloudHashExpectation) Return added in v0.7.5

type NodeKeeperMockGetCloudHashResult added in v0.7.5

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

type NodeKeeperMockGetOriginClaimExpectation added in v0.7.5

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

func (*NodeKeeperMockGetOriginClaimExpectation) Return added in v0.7.5

type NodeKeeperMockGetOriginClaimResult added in v0.7.5

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

type NodeKeeperMockGetOriginExpectation added in v0.7.5

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

func (*NodeKeeperMockGetOriginExpectation) Return added in v0.7.5

type NodeKeeperMockGetOriginResult added in v0.7.5

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

type NodeKeeperMockGetSparseUnsyncListExpectation added in v0.7.5

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

func (*NodeKeeperMockGetSparseUnsyncListExpectation) Return added in v0.7.5

type NodeKeeperMockGetSparseUnsyncListInput added in v0.7.5

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

type NodeKeeperMockGetSparseUnsyncListResult added in v0.7.5

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

type NodeKeeperMockGetStateExpectation added in v0.7.5

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

func (*NodeKeeperMockGetStateExpectation) Return added in v0.7.5

type NodeKeeperMockGetStateResult added in v0.7.5

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

type NodeKeeperMockGetUnsyncListExpectation added in v0.7.5

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

func (*NodeKeeperMockGetUnsyncListExpectation) Return added in v0.7.5

type NodeKeeperMockGetUnsyncListResult added in v0.7.5

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

type NodeKeeperMockIsBootstrappedExpectation added in v0.7.5

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

func (*NodeKeeperMockIsBootstrappedExpectation) Return added in v0.7.5

type NodeKeeperMockIsBootstrappedResult added in v0.7.5

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

type NodeKeeperMockMoveSyncToActiveExpectation added in v0.7.5

type NodeKeeperMockMoveSyncToActiveExpectation struct {
}

type NodeKeeperMockNodesJoinedDuringPreviousPulseExpectation added in v0.7.5

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

func (*NodeKeeperMockNodesJoinedDuringPreviousPulseExpectation) Return added in v0.7.5

type NodeKeeperMockNodesJoinedDuringPreviousPulseResult added in v0.7.5

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

type NodeKeeperMockSetCloudHashExpectation added in v0.7.5

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

type NodeKeeperMockSetCloudHashInput added in v0.7.5

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

type NodeKeeperMockSetIsBootstrappedExpectation added in v0.7.5

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

type NodeKeeperMockSetIsBootstrappedInput added in v0.7.5

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

type NodeKeeperMockSetStateExpectation added in v0.7.5

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

type NodeKeeperMockSetStateInput added in v0.7.5

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

type NodeKeeperMockSyncExpectation added in v0.7.5

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

type NodeKeeperMockSyncInput added in v0.7.5

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

type NodeMock added in v0.6.3

type NodeMock struct {
	GetGlobuleIDFunc       func() (r core.GlobuleID)
	GetGlobuleIDCounter    uint64
	GetGlobuleIDPreCounter uint64
	GetGlobuleIDMock       mNodeMockGetGlobuleID

	IDFunc       func() (r core.RecordRef)
	IDCounter    uint64
	IDPreCounter uint64
	IDMock       mNodeMockID

	PhysicalAddressFunc       func() (r string)
	PhysicalAddressCounter    uint64
	PhysicalAddressPreCounter uint64
	PhysicalAddressMock       mNodeMockPhysicalAddress

	PublicKeyFunc       func() (r crypto.PublicKey)
	PublicKeyCounter    uint64
	PublicKeyPreCounter uint64
	PublicKeyMock       mNodeMockPublicKey

	RoleFunc       func() (r core.StaticRole)
	RoleCounter    uint64
	RolePreCounter uint64
	RoleMock       mNodeMockRole

	ShortIDFunc       func() (r core.ShortNodeID)
	ShortIDCounter    uint64
	ShortIDPreCounter uint64
	ShortIDMock       mNodeMockShortID

	VersionFunc       func() (r string)
	VersionCounter    uint64
	VersionPreCounter uint64
	VersionMock       mNodeMockVersion
	// contains filtered or unexported fields
}

NodeMock implements github.com/insolar/insolar/core.Node

func NewNodeMock added in v0.6.3

func NewNodeMock(t minimock.Tester) *NodeMock

NewNodeMock returns a mock for github.com/insolar/insolar/core.Node

func (*NodeMock) AllMocksCalled added in v0.6.3

func (m *NodeMock) AllMocksCalled() bool

AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())

func (*NodeMock) CheckMocksCalled added in v0.6.3

func (m *NodeMock) CheckMocksCalled()

CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*NodeMock) Finish added in v0.6.3

func (m *NodeMock) Finish()

Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller

func (*NodeMock) GetGlobuleID added in v0.7.5

func (m *NodeMock) GetGlobuleID() (r core.GlobuleID)

GetGlobuleID implements github.com/insolar/insolar/core.Node interface

func (*NodeMock) GetGlobuleIDFinished added in v0.7.5

func (m *NodeMock) GetGlobuleIDFinished() bool

GetGlobuleIDFinished returns true if mock invocations count is ok

func (*NodeMock) GetGlobuleIDMinimockCounter added in v0.7.5

func (m *NodeMock) GetGlobuleIDMinimockCounter() uint64

GetGlobuleIDMinimockCounter returns a count of NodeMock.GetGlobuleIDFunc invocations

func (*NodeMock) GetGlobuleIDMinimockPreCounter added in v0.7.5

func (m *NodeMock) GetGlobuleIDMinimockPreCounter() uint64

GetGlobuleIDMinimockPreCounter returns the value of NodeMock.GetGlobuleID invocations

func (*NodeMock) ID added in v0.6.3

func (m *NodeMock) ID() (r core.RecordRef)

ID implements github.com/insolar/insolar/core.Node interface

func (*NodeMock) IDFinished added in v0.7.5

func (m *NodeMock) IDFinished() bool

IDFinished returns true if mock invocations count is ok

func (*NodeMock) IDMinimockCounter added in v0.6.3

func (m *NodeMock) IDMinimockCounter() uint64

IDMinimockCounter returns a count of NodeMock.IDFunc invocations

func (*NodeMock) IDMinimockPreCounter added in v0.6.3

func (m *NodeMock) IDMinimockPreCounter() uint64

IDMinimockPreCounter returns the value of NodeMock.ID invocations

func (*NodeMock) MinimockFinish added in v0.6.3

func (m *NodeMock) MinimockFinish()

MinimockFinish checks that all mocked methods of the interface have been called at least once

func (*NodeMock) MinimockWait added in v0.6.3

func (m *NodeMock) MinimockWait(timeout time.Duration)

MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller

func (*NodeMock) PhysicalAddress added in v0.6.3

func (m *NodeMock) PhysicalAddress() (r string)

PhysicalAddress implements github.com/insolar/insolar/core.Node interface

func (*NodeMock) PhysicalAddressFinished added in v0.7.5

func (m *NodeMock) PhysicalAddressFinished() bool

PhysicalAddressFinished returns true if mock invocations count is ok

func (*NodeMock) PhysicalAddressMinimockCounter added in v0.6.3

func (m *NodeMock) PhysicalAddressMinimockCounter() uint64

PhysicalAddressMinimockCounter returns a count of NodeMock.PhysicalAddressFunc invocations

func (*NodeMock) PhysicalAddressMinimockPreCounter added in v0.6.3

func (m *NodeMock) PhysicalAddressMinimockPreCounter() uint64

PhysicalAddressMinimockPreCounter returns the value of NodeMock.PhysicalAddress invocations

func (*NodeMock) PublicKey added in v0.6.3

func (m *NodeMock) PublicKey() (r crypto.PublicKey)

PublicKey implements github.com/insolar/insolar/core.Node interface

func (*NodeMock) PublicKeyFinished added in v0.7.5

func (m *NodeMock) PublicKeyFinished() bool

PublicKeyFinished returns true if mock invocations count is ok

func (*NodeMock) PublicKeyMinimockCounter added in v0.6.3

func (m *NodeMock) PublicKeyMinimockCounter() uint64

PublicKeyMinimockCounter returns a count of NodeMock.PublicKeyFunc invocations

func (*NodeMock) PublicKeyMinimockPreCounter added in v0.6.3

func (m *NodeMock) PublicKeyMinimockPreCounter() uint64

PublicKeyMinimockPreCounter returns the value of NodeMock.PublicKey invocations

func (*NodeMock) Role added in v0.6.3

func (m *NodeMock) Role() (r core.StaticRole)

Role implements github.com/insolar/insolar/core.Node interface

func (*NodeMock) RoleFinished added in v0.7.5

func (m *NodeMock) RoleFinished() bool

RoleFinished returns true if mock invocations count is ok

func (*NodeMock) RoleMinimockCounter added in v0.6.3

func (m *NodeMock) RoleMinimockCounter() uint64

RoleMinimockCounter returns a count of NodeMock.RoleFunc invocations

func (*NodeMock) RoleMinimockPreCounter added in v0.6.3

func (m *NodeMock) RoleMinimockPreCounter() uint64

RoleMinimockPreCounter returns the value of NodeMock.Role invocations

func (*NodeMock) ShortID added in v0.6.3

func (m *NodeMock) ShortID() (r core.ShortNodeID)

ShortID implements github.com/insolar/insolar/core.Node interface

func (*NodeMock) ShortIDFinished added in v0.7.5

func (m *NodeMock) ShortIDFinished() bool

ShortIDFinished returns true if mock invocations count is ok

func (*NodeMock) ShortIDMinimockCounter added in v0.6.3

func (m *NodeMock) ShortIDMinimockCounter() uint64

ShortIDMinimockCounter returns a count of NodeMock.ShortIDFunc invocations

func (*NodeMock) ShortIDMinimockPreCounter added in v0.6.3

func (m *NodeMock) ShortIDMinimockPreCounter() uint64

ShortIDMinimockPreCounter returns the value of NodeMock.ShortID invocations

func (*NodeMock) ValidateCallCounters added in v0.6.3

func (m *NodeMock) ValidateCallCounters()

ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*NodeMock) Version added in v0.6.3

func (m *NodeMock) Version() (r string)

Version implements github.com/insolar/insolar/core.Node interface

func (*NodeMock) VersionFinished added in v0.7.5

func (m *NodeMock) VersionFinished() bool

VersionFinished returns true if mock invocations count is ok

func (*NodeMock) VersionMinimockCounter added in v0.6.3

func (m *NodeMock) VersionMinimockCounter() uint64

VersionMinimockCounter returns a count of NodeMock.VersionFunc invocations

func (*NodeMock) VersionMinimockPreCounter added in v0.6.3

func (m *NodeMock) VersionMinimockPreCounter() uint64

VersionMinimockPreCounter returns the value of NodeMock.Version invocations

func (*NodeMock) Wait added in v0.6.3

func (m *NodeMock) Wait(timeout time.Duration)

Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller

type NodeMockGetGlobuleIDExpectation added in v0.7.5

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

func (*NodeMockGetGlobuleIDExpectation) Return added in v0.7.5

type NodeMockGetGlobuleIDResult added in v0.7.5

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

type NodeMockIDExpectation added in v0.7.5

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

func (*NodeMockIDExpectation) Return added in v0.7.5

func (e *NodeMockIDExpectation) Return(r core.RecordRef)

type NodeMockIDResult added in v0.7.5

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

type NodeMockPhysicalAddressExpectation added in v0.7.5

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

func (*NodeMockPhysicalAddressExpectation) Return added in v0.7.5

type NodeMockPhysicalAddressResult added in v0.7.5

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

type NodeMockPublicKeyExpectation added in v0.7.5

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

func (*NodeMockPublicKeyExpectation) Return added in v0.7.5

type NodeMockPublicKeyResult added in v0.7.5

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

type NodeMockRoleExpectation added in v0.7.5

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

func (*NodeMockRoleExpectation) Return added in v0.7.5

type NodeMockRoleResult added in v0.7.5

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

type NodeMockShortIDExpectation added in v0.7.5

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

func (*NodeMockShortIDExpectation) Return added in v0.7.5

type NodeMockShortIDResult added in v0.7.5

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

type NodeMockVersionExpectation added in v0.7.5

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

func (*NodeMockVersionExpectation) Return added in v0.7.5

func (e *NodeMockVersionExpectation) Return(r string)

type NodeMockVersionResult added in v0.7.5

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

type NodeNetworkMock added in v0.6.3

type NodeNetworkMock struct {
	GetActiveNodeFunc       func(p core.RecordRef) (r core.Node)
	GetActiveNodeCounter    uint64
	GetActiveNodePreCounter uint64
	GetActiveNodeMock       mNodeNetworkMockGetActiveNode

	GetActiveNodesFunc       func() (r []core.Node)
	GetActiveNodesCounter    uint64
	GetActiveNodesPreCounter uint64
	GetActiveNodesMock       mNodeNetworkMockGetActiveNodes

	GetActiveNodesByRoleFunc       func(p core.DynamicRole) (r []core.RecordRef)
	GetActiveNodesByRoleCounter    uint64
	GetActiveNodesByRolePreCounter uint64
	GetActiveNodesByRoleMock       mNodeNetworkMockGetActiveNodesByRole

	GetCloudHashFunc       func() (r []byte)
	GetCloudHashCounter    uint64
	GetCloudHashPreCounter uint64
	GetCloudHashMock       mNodeNetworkMockGetCloudHash

	GetOriginFunc       func() (r core.Node)
	GetOriginCounter    uint64
	GetOriginPreCounter uint64
	GetOriginMock       mNodeNetworkMockGetOrigin
	// contains filtered or unexported fields
}

NodeNetworkMock implements github.com/insolar/insolar/core.NodeNetwork

func NewNodeNetworkMock added in v0.6.3

func NewNodeNetworkMock(t minimock.Tester) *NodeNetworkMock

NewNodeNetworkMock returns a mock for github.com/insolar/insolar/core.NodeNetwork

func (*NodeNetworkMock) AllMocksCalled added in v0.6.3

func (m *NodeNetworkMock) AllMocksCalled() bool

AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())

func (*NodeNetworkMock) CheckMocksCalled added in v0.6.3

func (m *NodeNetworkMock) CheckMocksCalled()

CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*NodeNetworkMock) Finish added in v0.6.3

func (m *NodeNetworkMock) Finish()

Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller

func (*NodeNetworkMock) GetActiveNode added in v0.6.3

func (m *NodeNetworkMock) GetActiveNode(p core.RecordRef) (r core.Node)

GetActiveNode implements github.com/insolar/insolar/core.NodeNetwork interface

func (*NodeNetworkMock) GetActiveNodeFinished added in v0.7.5

func (m *NodeNetworkMock) GetActiveNodeFinished() bool

GetActiveNodeFinished returns true if mock invocations count is ok

func (*NodeNetworkMock) GetActiveNodeMinimockCounter added in v0.6.3

func (m *NodeNetworkMock) GetActiveNodeMinimockCounter() uint64

GetActiveNodeMinimockCounter returns a count of NodeNetworkMock.GetActiveNodeFunc invocations

func (*NodeNetworkMock) GetActiveNodeMinimockPreCounter added in v0.6.3

func (m *NodeNetworkMock) GetActiveNodeMinimockPreCounter() uint64

GetActiveNodeMinimockPreCounter returns the value of NodeNetworkMock.GetActiveNode invocations

func (*NodeNetworkMock) GetActiveNodes added in v0.6.3

func (m *NodeNetworkMock) GetActiveNodes() (r []core.Node)

GetActiveNodes implements github.com/insolar/insolar/core.NodeNetwork interface

func (*NodeNetworkMock) GetActiveNodesByRole added in v0.6.3

func (m *NodeNetworkMock) GetActiveNodesByRole(p core.DynamicRole) (r []core.RecordRef)

GetActiveNodesByRole implements github.com/insolar/insolar/core.NodeNetwork interface

func (*NodeNetworkMock) GetActiveNodesByRoleFinished added in v0.7.5

func (m *NodeNetworkMock) GetActiveNodesByRoleFinished() bool

GetActiveNodesByRoleFinished returns true if mock invocations count is ok

func (*NodeNetworkMock) GetActiveNodesByRoleMinimockCounter added in v0.6.3

func (m *NodeNetworkMock) GetActiveNodesByRoleMinimockCounter() uint64

GetActiveNodesByRoleMinimockCounter returns a count of NodeNetworkMock.GetActiveNodesByRoleFunc invocations

func (*NodeNetworkMock) GetActiveNodesByRoleMinimockPreCounter added in v0.6.3

func (m *NodeNetworkMock) GetActiveNodesByRoleMinimockPreCounter() uint64

GetActiveNodesByRoleMinimockPreCounter returns the value of NodeNetworkMock.GetActiveNodesByRole invocations

func (*NodeNetworkMock) GetActiveNodesFinished added in v0.7.5

func (m *NodeNetworkMock) GetActiveNodesFinished() bool

GetActiveNodesFinished returns true if mock invocations count is ok

func (*NodeNetworkMock) GetActiveNodesMinimockCounter added in v0.6.3

func (m *NodeNetworkMock) GetActiveNodesMinimockCounter() uint64

GetActiveNodesMinimockCounter returns a count of NodeNetworkMock.GetActiveNodesFunc invocations

func (*NodeNetworkMock) GetActiveNodesMinimockPreCounter added in v0.6.3

func (m *NodeNetworkMock) GetActiveNodesMinimockPreCounter() uint64

GetActiveNodesMinimockPreCounter returns the value of NodeNetworkMock.GetActiveNodes invocations

func (*NodeNetworkMock) GetCloudHash added in v0.6.3

func (m *NodeNetworkMock) GetCloudHash() (r []byte)

GetCloudHash implements github.com/insolar/insolar/core.NodeNetwork interface

func (*NodeNetworkMock) GetCloudHashFinished added in v0.7.5

func (m *NodeNetworkMock) GetCloudHashFinished() bool

GetCloudHashFinished returns true if mock invocations count is ok

func (*NodeNetworkMock) GetCloudHashMinimockCounter added in v0.6.3

func (m *NodeNetworkMock) GetCloudHashMinimockCounter() uint64

GetCloudHashMinimockCounter returns a count of NodeNetworkMock.GetCloudHashFunc invocations

func (*NodeNetworkMock) GetCloudHashMinimockPreCounter added in v0.6.3

func (m *NodeNetworkMock) GetCloudHashMinimockPreCounter() uint64

GetCloudHashMinimockPreCounter returns the value of NodeNetworkMock.GetCloudHash invocations

func (*NodeNetworkMock) GetOrigin added in v0.6.3

func (m *NodeNetworkMock) GetOrigin() (r core.Node)

GetOrigin implements github.com/insolar/insolar/core.NodeNetwork interface

func (*NodeNetworkMock) GetOriginFinished added in v0.7.5

func (m *NodeNetworkMock) GetOriginFinished() bool

GetOriginFinished returns true if mock invocations count is ok

func (*NodeNetworkMock) GetOriginMinimockCounter added in v0.6.3

func (m *NodeNetworkMock) GetOriginMinimockCounter() uint64

GetOriginMinimockCounter returns a count of NodeNetworkMock.GetOriginFunc invocations

func (*NodeNetworkMock) GetOriginMinimockPreCounter added in v0.6.3

func (m *NodeNetworkMock) GetOriginMinimockPreCounter() uint64

GetOriginMinimockPreCounter returns the value of NodeNetworkMock.GetOrigin invocations

func (*NodeNetworkMock) MinimockFinish added in v0.6.3

func (m *NodeNetworkMock) MinimockFinish()

MinimockFinish checks that all mocked methods of the interface have been called at least once

func (*NodeNetworkMock) MinimockWait added in v0.6.3

func (m *NodeNetworkMock) MinimockWait(timeout time.Duration)

MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller

func (*NodeNetworkMock) ValidateCallCounters added in v0.6.3

func (m *NodeNetworkMock) ValidateCallCounters()

ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*NodeNetworkMock) Wait added in v0.6.3

func (m *NodeNetworkMock) Wait(timeout time.Duration)

Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller

type NodeNetworkMockGetActiveNodeExpectation added in v0.7.5

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

func (*NodeNetworkMockGetActiveNodeExpectation) Return added in v0.7.5

type NodeNetworkMockGetActiveNodeInput added in v0.7.5

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

type NodeNetworkMockGetActiveNodeResult added in v0.7.5

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

type NodeNetworkMockGetActiveNodesByRoleExpectation added in v0.7.5

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

func (*NodeNetworkMockGetActiveNodesByRoleExpectation) Return added in v0.7.5

type NodeNetworkMockGetActiveNodesByRoleInput added in v0.7.5

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

type NodeNetworkMockGetActiveNodesByRoleResult added in v0.7.5

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

type NodeNetworkMockGetActiveNodesExpectation added in v0.7.5

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

func (*NodeNetworkMockGetActiveNodesExpectation) Return added in v0.7.5

type NodeNetworkMockGetActiveNodesResult added in v0.7.5

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

type NodeNetworkMockGetCloudHashExpectation added in v0.7.5

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

func (*NodeNetworkMockGetCloudHashExpectation) Return added in v0.7.5

type NodeNetworkMockGetCloudHashResult added in v0.7.5

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

type NodeNetworkMockGetOriginExpectation added in v0.7.5

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

func (*NodeNetworkMockGetOriginExpectation) Return added in v0.7.5

type NodeNetworkMockGetOriginResult added in v0.7.5

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

type PulseHandlerMock added in v0.6.3

type PulseHandlerMock struct {
	HandlePulseFunc       func(p context.Context, p1 core.Pulse)
	HandlePulseCounter    uint64
	HandlePulsePreCounter uint64
	HandlePulseMock       mPulseHandlerMockHandlePulse
	// contains filtered or unexported fields
}

PulseHandlerMock implements github.com/insolar/insolar/network.PulseHandler

func NewPulseHandlerMock added in v0.6.3

func NewPulseHandlerMock(t minimock.Tester) *PulseHandlerMock

NewPulseHandlerMock returns a mock for github.com/insolar/insolar/network.PulseHandler

func (*PulseHandlerMock) AllMocksCalled added in v0.6.3

func (m *PulseHandlerMock) AllMocksCalled() bool

AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())

func (*PulseHandlerMock) CheckMocksCalled added in v0.6.3

func (m *PulseHandlerMock) CheckMocksCalled()

CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*PulseHandlerMock) Finish added in v0.6.3

func (m *PulseHandlerMock) Finish()

Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller

func (*PulseHandlerMock) HandlePulse added in v0.6.3

func (m *PulseHandlerMock) HandlePulse(p context.Context, p1 core.Pulse)

HandlePulse implements github.com/insolar/insolar/network.PulseHandler interface

func (*PulseHandlerMock) HandlePulseFinished added in v0.7.5

func (m *PulseHandlerMock) HandlePulseFinished() bool

HandlePulseFinished returns true if mock invocations count is ok

func (*PulseHandlerMock) HandlePulseMinimockCounter added in v0.6.3

func (m *PulseHandlerMock) HandlePulseMinimockCounter() uint64

HandlePulseMinimockCounter returns a count of PulseHandlerMock.HandlePulseFunc invocations

func (*PulseHandlerMock) HandlePulseMinimockPreCounter added in v0.6.3

func (m *PulseHandlerMock) HandlePulseMinimockPreCounter() uint64

HandlePulseMinimockPreCounter returns the value of PulseHandlerMock.HandlePulse invocations

func (*PulseHandlerMock) MinimockFinish added in v0.6.3

func (m *PulseHandlerMock) MinimockFinish()

MinimockFinish checks that all mocked methods of the interface have been called at least once

func (*PulseHandlerMock) MinimockWait added in v0.6.3

func (m *PulseHandlerMock) MinimockWait(timeout time.Duration)

MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller

func (*PulseHandlerMock) ValidateCallCounters added in v0.6.3

func (m *PulseHandlerMock) ValidateCallCounters()

ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*PulseHandlerMock) Wait added in v0.6.3

func (m *PulseHandlerMock) Wait(timeout time.Duration)

Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller

type PulseHandlerMockHandlePulseExpectation added in v0.7.5

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

type PulseHandlerMockHandlePulseInput added in v0.7.5

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

type SwitcherWorkAroundMock added in v0.7.5

type SwitcherWorkAroundMock struct {
	IsBootstrappedFunc       func() (r bool)
	IsBootstrappedCounter    uint64
	IsBootstrappedPreCounter uint64
	IsBootstrappedMock       mSwitcherWorkAroundMockIsBootstrapped

	SetIsBootstrappedFunc       func(p bool)
	SetIsBootstrappedCounter    uint64
	SetIsBootstrappedPreCounter uint64
	SetIsBootstrappedMock       mSwitcherWorkAroundMockSetIsBootstrapped
	// contains filtered or unexported fields
}

SwitcherWorkAroundMock implements github.com/insolar/insolar/core.SwitcherWorkAround

func NewSwitcherWorkAroundMock added in v0.7.5

func NewSwitcherWorkAroundMock(t minimock.Tester) *SwitcherWorkAroundMock

NewSwitcherWorkAroundMock returns a mock for github.com/insolar/insolar/core.SwitcherWorkAround

func (*SwitcherWorkAroundMock) AllMocksCalled added in v0.7.5

func (m *SwitcherWorkAroundMock) AllMocksCalled() bool

AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())

func (*SwitcherWorkAroundMock) CheckMocksCalled added in v0.7.5

func (m *SwitcherWorkAroundMock) CheckMocksCalled()

CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*SwitcherWorkAroundMock) Finish added in v0.7.5

func (m *SwitcherWorkAroundMock) Finish()

Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller

func (*SwitcherWorkAroundMock) IsBootstrapped added in v0.7.5

func (m *SwitcherWorkAroundMock) IsBootstrapped() (r bool)

IsBootstrapped implements github.com/insolar/insolar/core.SwitcherWorkAround interface

func (*SwitcherWorkAroundMock) IsBootstrappedFinished added in v0.7.5

func (m *SwitcherWorkAroundMock) IsBootstrappedFinished() bool

IsBootstrappedFinished returns true if mock invocations count is ok

func (*SwitcherWorkAroundMock) IsBootstrappedMinimockCounter added in v0.7.5

func (m *SwitcherWorkAroundMock) IsBootstrappedMinimockCounter() uint64

IsBootstrappedMinimockCounter returns a count of SwitcherWorkAroundMock.IsBootstrappedFunc invocations

func (*SwitcherWorkAroundMock) IsBootstrappedMinimockPreCounter added in v0.7.5

func (m *SwitcherWorkAroundMock) IsBootstrappedMinimockPreCounter() uint64

IsBootstrappedMinimockPreCounter returns the value of SwitcherWorkAroundMock.IsBootstrapped invocations

func (*SwitcherWorkAroundMock) MinimockFinish added in v0.7.5

func (m *SwitcherWorkAroundMock) MinimockFinish()

MinimockFinish checks that all mocked methods of the interface have been called at least once

func (*SwitcherWorkAroundMock) MinimockWait added in v0.7.5

func (m *SwitcherWorkAroundMock) MinimockWait(timeout time.Duration)

MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller

func (*SwitcherWorkAroundMock) SetIsBootstrapped added in v0.7.5

func (m *SwitcherWorkAroundMock) SetIsBootstrapped(p bool)

SetIsBootstrapped implements github.com/insolar/insolar/core.SwitcherWorkAround interface

func (*SwitcherWorkAroundMock) SetIsBootstrappedFinished added in v0.7.5

func (m *SwitcherWorkAroundMock) SetIsBootstrappedFinished() bool

SetIsBootstrappedFinished returns true if mock invocations count is ok

func (*SwitcherWorkAroundMock) SetIsBootstrappedMinimockCounter added in v0.7.5

func (m *SwitcherWorkAroundMock) SetIsBootstrappedMinimockCounter() uint64

SetIsBootstrappedMinimockCounter returns a count of SwitcherWorkAroundMock.SetIsBootstrappedFunc invocations

func (*SwitcherWorkAroundMock) SetIsBootstrappedMinimockPreCounter added in v0.7.5

func (m *SwitcherWorkAroundMock) SetIsBootstrappedMinimockPreCounter() uint64

SetIsBootstrappedMinimockPreCounter returns the value of SwitcherWorkAroundMock.SetIsBootstrapped invocations

func (*SwitcherWorkAroundMock) ValidateCallCounters added in v0.7.5

func (m *SwitcherWorkAroundMock) ValidateCallCounters()

ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*SwitcherWorkAroundMock) Wait added in v0.7.5

func (m *SwitcherWorkAroundMock) Wait(timeout time.Duration)

Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller

type SwitcherWorkAroundMockIsBootstrappedExpectation added in v0.7.5

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

func (*SwitcherWorkAroundMockIsBootstrappedExpectation) Return added in v0.7.5

type SwitcherWorkAroundMockIsBootstrappedResult added in v0.7.5

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

type SwitcherWorkAroundMockSetIsBootstrappedExpectation added in v0.7.5

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

type SwitcherWorkAroundMockSetIsBootstrappedInput added in v0.7.5

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

type UnsyncListMock added in v0.6.3

type UnsyncListMock struct {
	AddClaimsFunc       func(p map[core.RecordRef][]packets.ReferendumClaim, p1 map[core.RecordRef]string)
	AddClaimsCounter    uint64
	AddClaimsPreCounter uint64
	AddClaimsMock       mUnsyncListMockAddClaims

	CalculateHashFunc       func() (r []byte, r1 error)
	CalculateHashCounter    uint64
	CalculateHashPreCounter uint64
	CalculateHashMock       mUnsyncListMockCalculateHash

	GetActiveNodeFunc       func(p core.RecordRef) (r core.Node)
	GetActiveNodeCounter    uint64
	GetActiveNodePreCounter uint64
	GetActiveNodeMock       mUnsyncListMockGetActiveNode

	GetActiveNodesFunc       func() (r []core.Node)
	GetActiveNodesCounter    uint64
	GetActiveNodesPreCounter uint64
	GetActiveNodesMock       mUnsyncListMockGetActiveNodes

	IndexToRefFunc       func(p int) (r core.RecordRef, r1 error)
	IndexToRefCounter    uint64
	IndexToRefPreCounter uint64
	IndexToRefMock       mUnsyncListMockIndexToRef

	LengthFunc       func() (r int)
	LengthCounter    uint64
	LengthPreCounter uint64
	LengthMock       mUnsyncListMockLength

	RefToIndexFunc       func(p core.RecordRef) (r int, r1 error)
	RefToIndexCounter    uint64
	RefToIndexPreCounter uint64
	RefToIndexMock       mUnsyncListMockRefToIndex

	RemoveClaimsFunc       func(p core.RecordRef)
	RemoveClaimsCounter    uint64
	RemoveClaimsPreCounter uint64
	RemoveClaimsMock       mUnsyncListMockRemoveClaims
	// contains filtered or unexported fields
}

UnsyncListMock implements github.com/insolar/insolar/network.UnsyncList

func NewUnsyncListMock added in v0.6.3

func NewUnsyncListMock(t minimock.Tester) *UnsyncListMock

NewUnsyncListMock returns a mock for github.com/insolar/insolar/network.UnsyncList

func (*UnsyncListMock) AddClaims added in v0.6.3

func (m *UnsyncListMock) AddClaims(p map[core.RecordRef][]packets.ReferendumClaim, p1 map[core.RecordRef]string)

AddClaims implements github.com/insolar/insolar/network.UnsyncList interface

func (*UnsyncListMock) AddClaimsFinished added in v0.7.5

func (m *UnsyncListMock) AddClaimsFinished() bool

AddClaimsFinished returns true if mock invocations count is ok

func (*UnsyncListMock) AddClaimsMinimockCounter added in v0.6.3

func (m *UnsyncListMock) AddClaimsMinimockCounter() uint64

AddClaimsMinimockCounter returns a count of UnsyncListMock.AddClaimsFunc invocations

func (*UnsyncListMock) AddClaimsMinimockPreCounter added in v0.6.3

func (m *UnsyncListMock) AddClaimsMinimockPreCounter() uint64

AddClaimsMinimockPreCounter returns the value of UnsyncListMock.AddClaims invocations

func (*UnsyncListMock) AllMocksCalled added in v0.6.3

func (m *UnsyncListMock) AllMocksCalled() bool

AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())

func (*UnsyncListMock) CalculateHash added in v0.6.3

func (m *UnsyncListMock) CalculateHash() (r []byte, r1 error)

CalculateHash implements github.com/insolar/insolar/network.UnsyncList interface

func (*UnsyncListMock) CalculateHashFinished added in v0.7.5

func (m *UnsyncListMock) CalculateHashFinished() bool

CalculateHashFinished returns true if mock invocations count is ok

func (*UnsyncListMock) CalculateHashMinimockCounter added in v0.6.3

func (m *UnsyncListMock) CalculateHashMinimockCounter() uint64

CalculateHashMinimockCounter returns a count of UnsyncListMock.CalculateHashFunc invocations

func (*UnsyncListMock) CalculateHashMinimockPreCounter added in v0.6.3

func (m *UnsyncListMock) CalculateHashMinimockPreCounter() uint64

CalculateHashMinimockPreCounter returns the value of UnsyncListMock.CalculateHash invocations

func (*UnsyncListMock) CheckMocksCalled added in v0.6.3

func (m *UnsyncListMock) CheckMocksCalled()

CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*UnsyncListMock) Finish added in v0.6.3

func (m *UnsyncListMock) Finish()

Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller

func (*UnsyncListMock) GetActiveNode added in v0.7.5

func (m *UnsyncListMock) GetActiveNode(p core.RecordRef) (r core.Node)

GetActiveNode implements github.com/insolar/insolar/network.UnsyncList interface

func (*UnsyncListMock) GetActiveNodeFinished added in v0.7.5

func (m *UnsyncListMock) GetActiveNodeFinished() bool

GetActiveNodeFinished returns true if mock invocations count is ok

func (*UnsyncListMock) GetActiveNodeMinimockCounter added in v0.7.5

func (m *UnsyncListMock) GetActiveNodeMinimockCounter() uint64

GetActiveNodeMinimockCounter returns a count of UnsyncListMock.GetActiveNodeFunc invocations

func (*UnsyncListMock) GetActiveNodeMinimockPreCounter added in v0.7.5

func (m *UnsyncListMock) GetActiveNodeMinimockPreCounter() uint64

GetActiveNodeMinimockPreCounter returns the value of UnsyncListMock.GetActiveNode invocations

func (*UnsyncListMock) GetActiveNodes added in v0.7.5

func (m *UnsyncListMock) GetActiveNodes() (r []core.Node)

GetActiveNodes implements github.com/insolar/insolar/network.UnsyncList interface

func (*UnsyncListMock) GetActiveNodesFinished added in v0.7.5

func (m *UnsyncListMock) GetActiveNodesFinished() bool

GetActiveNodesFinished returns true if mock invocations count is ok

func (*UnsyncListMock) GetActiveNodesMinimockCounter added in v0.7.5

func (m *UnsyncListMock) GetActiveNodesMinimockCounter() uint64

GetActiveNodesMinimockCounter returns a count of UnsyncListMock.GetActiveNodesFunc invocations

func (*UnsyncListMock) GetActiveNodesMinimockPreCounter added in v0.7.5

func (m *UnsyncListMock) GetActiveNodesMinimockPreCounter() uint64

GetActiveNodesMinimockPreCounter returns the value of UnsyncListMock.GetActiveNodes invocations

func (*UnsyncListMock) IndexToRef added in v0.6.3

func (m *UnsyncListMock) IndexToRef(p int) (r core.RecordRef, r1 error)

IndexToRef implements github.com/insolar/insolar/network.UnsyncList interface

func (*UnsyncListMock) IndexToRefFinished added in v0.7.5

func (m *UnsyncListMock) IndexToRefFinished() bool

IndexToRefFinished returns true if mock invocations count is ok

func (*UnsyncListMock) IndexToRefMinimockCounter added in v0.6.3

func (m *UnsyncListMock) IndexToRefMinimockCounter() uint64

IndexToRefMinimockCounter returns a count of UnsyncListMock.IndexToRefFunc invocations

func (*UnsyncListMock) IndexToRefMinimockPreCounter added in v0.6.3

func (m *UnsyncListMock) IndexToRefMinimockPreCounter() uint64

IndexToRefMinimockPreCounter returns the value of UnsyncListMock.IndexToRef invocations

func (*UnsyncListMock) Length added in v0.6.3

func (m *UnsyncListMock) Length() (r int)

Length implements github.com/insolar/insolar/network.UnsyncList interface

func (*UnsyncListMock) LengthFinished added in v0.7.5

func (m *UnsyncListMock) LengthFinished() bool

LengthFinished returns true if mock invocations count is ok

func (*UnsyncListMock) LengthMinimockCounter added in v0.6.3

func (m *UnsyncListMock) LengthMinimockCounter() uint64

LengthMinimockCounter returns a count of UnsyncListMock.LengthFunc invocations

func (*UnsyncListMock) LengthMinimockPreCounter added in v0.6.3

func (m *UnsyncListMock) LengthMinimockPreCounter() uint64

LengthMinimockPreCounter returns the value of UnsyncListMock.Length invocations

func (*UnsyncListMock) MinimockFinish added in v0.6.3

func (m *UnsyncListMock) MinimockFinish()

MinimockFinish checks that all mocked methods of the interface have been called at least once

func (*UnsyncListMock) MinimockWait added in v0.6.3

func (m *UnsyncListMock) MinimockWait(timeout time.Duration)

MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller

func (*UnsyncListMock) RefToIndex added in v0.6.3

func (m *UnsyncListMock) RefToIndex(p core.RecordRef) (r int, r1 error)

RefToIndex implements github.com/insolar/insolar/network.UnsyncList interface

func (*UnsyncListMock) RefToIndexFinished added in v0.7.5

func (m *UnsyncListMock) RefToIndexFinished() bool

RefToIndexFinished returns true if mock invocations count is ok

func (*UnsyncListMock) RefToIndexMinimockCounter added in v0.6.3

func (m *UnsyncListMock) RefToIndexMinimockCounter() uint64

RefToIndexMinimockCounter returns a count of UnsyncListMock.RefToIndexFunc invocations

func (*UnsyncListMock) RefToIndexMinimockPreCounter added in v0.6.3

func (m *UnsyncListMock) RefToIndexMinimockPreCounter() uint64

RefToIndexMinimockPreCounter returns the value of UnsyncListMock.RefToIndex invocations

func (*UnsyncListMock) RemoveClaims added in v0.6.3

func (m *UnsyncListMock) RemoveClaims(p core.RecordRef)

RemoveClaims implements github.com/insolar/insolar/network.UnsyncList interface

func (*UnsyncListMock) RemoveClaimsFinished added in v0.7.5

func (m *UnsyncListMock) RemoveClaimsFinished() bool

RemoveClaimsFinished returns true if mock invocations count is ok

func (*UnsyncListMock) RemoveClaimsMinimockCounter added in v0.6.3

func (m *UnsyncListMock) RemoveClaimsMinimockCounter() uint64

RemoveClaimsMinimockCounter returns a count of UnsyncListMock.RemoveClaimsFunc invocations

func (*UnsyncListMock) RemoveClaimsMinimockPreCounter added in v0.6.3

func (m *UnsyncListMock) RemoveClaimsMinimockPreCounter() uint64

RemoveClaimsMinimockPreCounter returns the value of UnsyncListMock.RemoveClaims invocations

func (*UnsyncListMock) ValidateCallCounters added in v0.6.3

func (m *UnsyncListMock) ValidateCallCounters()

ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller

func (*UnsyncListMock) Wait added in v0.6.3

func (m *UnsyncListMock) Wait(timeout time.Duration)

Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller

type UnsyncListMockAddClaimsExpectation added in v0.7.5

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

type UnsyncListMockAddClaimsInput added in v0.7.5

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

type UnsyncListMockCalculateHashExpectation added in v0.7.5

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

func (*UnsyncListMockCalculateHashExpectation) Return added in v0.7.5

type UnsyncListMockCalculateHashResult added in v0.7.5

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

type UnsyncListMockGetActiveNodeExpectation added in v0.7.5

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

func (*UnsyncListMockGetActiveNodeExpectation) Return added in v0.7.5

type UnsyncListMockGetActiveNodeInput added in v0.7.5

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

type UnsyncListMockGetActiveNodeResult added in v0.7.5

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

type UnsyncListMockGetActiveNodesExpectation added in v0.7.5

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

func (*UnsyncListMockGetActiveNodesExpectation) Return added in v0.7.5

type UnsyncListMockGetActiveNodesResult added in v0.7.5

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

type UnsyncListMockIndexToRefExpectation added in v0.7.5

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

func (*UnsyncListMockIndexToRefExpectation) Return added in v0.7.5

type UnsyncListMockIndexToRefInput added in v0.7.5

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

type UnsyncListMockIndexToRefResult added in v0.7.5

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

type UnsyncListMockLengthExpectation added in v0.7.5

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

func (*UnsyncListMockLengthExpectation) Return added in v0.7.5

func (e *UnsyncListMockLengthExpectation) Return(r int)

type UnsyncListMockLengthResult added in v0.7.5

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

type UnsyncListMockRefToIndexExpectation added in v0.7.5

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

func (*UnsyncListMockRefToIndexExpectation) Return added in v0.7.5

type UnsyncListMockRefToIndexInput added in v0.7.5

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

type UnsyncListMockRefToIndexResult added in v0.7.5

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

type UnsyncListMockRemoveClaimsExpectation added in v0.7.5

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

type UnsyncListMockRemoveClaimsInput added in v0.7.5

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

Jump to

Keyboard shortcuts

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