testutils

package
v0.9.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlatformCryptographyScheme added in v0.7.5

func NewPlatformCryptographyScheme() insolar.PlatformCryptographyScheme

func RandomString added in v0.3.0

func RandomString() string

RandomString generates random uuid and return it as a string.

Types

type CertificateGetterMock

type CertificateGetterMock struct {
	GetCertMock mCertificateGetterMockGetCert
	// contains filtered or unexported fields
}

CertificateGetterMock implements insolar.CertificateGetter

func NewCertificateGetterMock

func NewCertificateGetterMock(t minimock.Tester) *CertificateGetterMock

NewCertificateGetterMock returns a mock for insolar.CertificateGetter

func (*CertificateGetterMock) GetCert

func (mmGetCert *CertificateGetterMock) GetCert(ctx context.Context, rp1 *mm_insolar.Reference) (c2 mm_insolar.Certificate, err error)

GetCert implements insolar.CertificateGetter

func (*CertificateGetterMock) GetCertAfterCounter

func (mmGetCert *CertificateGetterMock) GetCertAfterCounter() uint64

GetCertAfterCounter returns a count of finished CertificateGetterMock.GetCert invocations

func (*CertificateGetterMock) GetCertBeforeCounter

func (mmGetCert *CertificateGetterMock) GetCertBeforeCounter() uint64

GetCertBeforeCounter returns a count of CertificateGetterMock.GetCert invocations

func (*CertificateGetterMock) MinimockFinish

func (m *CertificateGetterMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*CertificateGetterMock) MinimockGetCertDone

func (m *CertificateGetterMock) MinimockGetCertDone() bool

MinimockGetCertDone returns true if the count of the GetCert invocations corresponds the number of defined expectations

func (*CertificateGetterMock) MinimockGetCertInspect

func (m *CertificateGetterMock) MinimockGetCertInspect()

MinimockGetCertInspect logs each unmet expectation

func (*CertificateGetterMock) MinimockWait

func (m *CertificateGetterMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

type CertificateGetterMockGetCertExpectation

type CertificateGetterMockGetCertExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CertificateGetterMockGetCertExpectation specifies expectation struct of the CertificateGetter.GetCert

func (*CertificateGetterMockGetCertExpectation) Then

Then sets up CertificateGetter.GetCert return parameters for the expectation previously defined by the When method

type CertificateGetterMockGetCertParams

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

CertificateGetterMockGetCertParams contains parameters of the CertificateGetter.GetCert

type CertificateGetterMockGetCertResults

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

CertificateGetterMockGetCertResults contains results of the CertificateGetter.GetCert

type CertificateManagerMock added in v0.7.5

type CertificateManagerMock struct {
	GetCertificateMock mCertificateManagerMockGetCertificate
	// contains filtered or unexported fields
}

CertificateManagerMock implements insolar.CertificateManager

func NewCertificateManagerMock added in v0.7.5

func NewCertificateManagerMock(t minimock.Tester) *CertificateManagerMock

NewCertificateManagerMock returns a mock for insolar.CertificateManager

func (*CertificateManagerMock) GetCertificate added in v0.7.5

func (mmGetCertificate *CertificateManagerMock) GetCertificate() (c1 mm_insolar.Certificate)

GetCertificate implements insolar.CertificateManager

func (*CertificateManagerMock) GetCertificateAfterCounter

func (mmGetCertificate *CertificateManagerMock) GetCertificateAfterCounter() uint64

GetCertificateAfterCounter returns a count of finished CertificateManagerMock.GetCertificate invocations

func (*CertificateManagerMock) GetCertificateBeforeCounter

func (mmGetCertificate *CertificateManagerMock) GetCertificateBeforeCounter() uint64

GetCertificateBeforeCounter returns a count of CertificateManagerMock.GetCertificate invocations

func (*CertificateManagerMock) MinimockFinish added in v0.7.5

func (m *CertificateManagerMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*CertificateManagerMock) MinimockGetCertificateDone

func (m *CertificateManagerMock) MinimockGetCertificateDone() bool

MinimockGetCertificateDone returns true if the count of the GetCertificate invocations corresponds the number of defined expectations

func (*CertificateManagerMock) MinimockGetCertificateInspect

func (m *CertificateManagerMock) MinimockGetCertificateInspect()

MinimockGetCertificateInspect logs each unmet expectation

func (*CertificateManagerMock) MinimockWait added in v0.7.5

func (m *CertificateManagerMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

type CertificateManagerMockGetCertificateExpectation added in v0.7.5

type CertificateManagerMockGetCertificateExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CertificateManagerMockGetCertificateExpectation specifies expectation struct of the CertificateManager.GetCertificate

type CertificateManagerMockGetCertificateResults

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

CertificateManagerMockGetCertificateResults contains results of the CertificateManager.GetCertificate

type CertificateMock added in v0.6.3

type CertificateMock struct {
	GetDiscoveryNodesMock mCertificateMockGetDiscoveryNodes

	GetDiscoverySignsMock mCertificateMockGetDiscoverySigns

	GetMajorityRuleMock mCertificateMockGetMajorityRule

	GetMinRolesMock mCertificateMockGetMinRoles

	GetNodeRefMock mCertificateMockGetNodeRef

	GetPublicKeyMock mCertificateMockGetPublicKey

	GetRoleMock mCertificateMockGetRole

	GetRootDomainReferenceMock mCertificateMockGetRootDomainReference

	SerializeNodePartMock mCertificateMockSerializeNodePart
	// contains filtered or unexported fields
}

CertificateMock implements insolar.Certificate

func NewCertificateMock added in v0.6.3

func NewCertificateMock(t minimock.Tester) *CertificateMock

NewCertificateMock returns a mock for insolar.Certificate

func (*CertificateMock) GetDiscoveryNodes added in v0.6.3

func (mmGetDiscoveryNodes *CertificateMock) GetDiscoveryNodes() (da1 []mm_insolar.DiscoveryNode)

GetDiscoveryNodes implements insolar.Certificate

func (*CertificateMock) GetDiscoveryNodesAfterCounter

func (mmGetDiscoveryNodes *CertificateMock) GetDiscoveryNodesAfterCounter() uint64

GetDiscoveryNodesAfterCounter returns a count of finished CertificateMock.GetDiscoveryNodes invocations

func (*CertificateMock) GetDiscoveryNodesBeforeCounter

func (mmGetDiscoveryNodes *CertificateMock) GetDiscoveryNodesBeforeCounter() uint64

GetDiscoveryNodesBeforeCounter returns a count of CertificateMock.GetDiscoveryNodes invocations

func (*CertificateMock) GetDiscoverySigns added in v0.7.5

func (mmGetDiscoverySigns *CertificateMock) GetDiscoverySigns() (m1 map[mm_insolar.Reference][]byte)

GetDiscoverySigns implements insolar.Certificate

func (*CertificateMock) GetDiscoverySignsAfterCounter

func (mmGetDiscoverySigns *CertificateMock) GetDiscoverySignsAfterCounter() uint64

GetDiscoverySignsAfterCounter returns a count of finished CertificateMock.GetDiscoverySigns invocations

func (*CertificateMock) GetDiscoverySignsBeforeCounter

func (mmGetDiscoverySigns *CertificateMock) GetDiscoverySignsBeforeCounter() uint64

GetDiscoverySignsBeforeCounter returns a count of CertificateMock.GetDiscoverySigns invocations

func (*CertificateMock) GetMajorityRule added in v0.8.3

func (mmGetMajorityRule *CertificateMock) GetMajorityRule() (i1 int)

GetMajorityRule implements insolar.Certificate

func (*CertificateMock) GetMajorityRuleAfterCounter

func (mmGetMajorityRule *CertificateMock) GetMajorityRuleAfterCounter() uint64

GetMajorityRuleAfterCounter returns a count of finished CertificateMock.GetMajorityRule invocations

func (*CertificateMock) GetMajorityRuleBeforeCounter

func (mmGetMajorityRule *CertificateMock) GetMajorityRuleBeforeCounter() uint64

GetMajorityRuleBeforeCounter returns a count of CertificateMock.GetMajorityRule invocations

func (*CertificateMock) GetMinRoles added in v0.8.3

func (mmGetMinRoles *CertificateMock) GetMinRoles() (virtual uint, heavyMaterial uint, lightMaterial uint)

GetMinRoles implements insolar.Certificate

func (*CertificateMock) GetMinRolesAfterCounter

func (mmGetMinRoles *CertificateMock) GetMinRolesAfterCounter() uint64

GetMinRolesAfterCounter returns a count of finished CertificateMock.GetMinRoles invocations

func (*CertificateMock) GetMinRolesBeforeCounter

func (mmGetMinRoles *CertificateMock) GetMinRolesBeforeCounter() uint64

GetMinRolesBeforeCounter returns a count of CertificateMock.GetMinRoles invocations

func (*CertificateMock) GetNodeRef added in v0.6.3

func (mmGetNodeRef *CertificateMock) GetNodeRef() (rp1 *mm_insolar.Reference)

GetNodeRef implements insolar.Certificate

func (*CertificateMock) GetNodeRefAfterCounter

func (mmGetNodeRef *CertificateMock) GetNodeRefAfterCounter() uint64

GetNodeRefAfterCounter returns a count of finished CertificateMock.GetNodeRef invocations

func (*CertificateMock) GetNodeRefBeforeCounter

func (mmGetNodeRef *CertificateMock) GetNodeRefBeforeCounter() uint64

GetNodeRefBeforeCounter returns a count of CertificateMock.GetNodeRef invocations

func (*CertificateMock) GetPublicKey added in v0.6.3

func (mmGetPublicKey *CertificateMock) GetPublicKey() (p1 crypto.PublicKey)

GetPublicKey implements insolar.Certificate

func (*CertificateMock) GetPublicKeyAfterCounter

func (mmGetPublicKey *CertificateMock) GetPublicKeyAfterCounter() uint64

GetPublicKeyAfterCounter returns a count of finished CertificateMock.GetPublicKey invocations

func (*CertificateMock) GetPublicKeyBeforeCounter

func (mmGetPublicKey *CertificateMock) GetPublicKeyBeforeCounter() uint64

GetPublicKeyBeforeCounter returns a count of CertificateMock.GetPublicKey invocations

func (*CertificateMock) GetRole added in v0.6.3

func (mmGetRole *CertificateMock) GetRole() (s1 mm_insolar.StaticRole)

GetRole implements insolar.Certificate

func (*CertificateMock) GetRoleAfterCounter

func (mmGetRole *CertificateMock) GetRoleAfterCounter() uint64

GetRoleAfterCounter returns a count of finished CertificateMock.GetRole invocations

func (*CertificateMock) GetRoleBeforeCounter

func (mmGetRole *CertificateMock) GetRoleBeforeCounter() uint64

GetRoleBeforeCounter returns a count of CertificateMock.GetRole invocations

func (*CertificateMock) GetRootDomainReference added in v0.6.3

func (mmGetRootDomainReference *CertificateMock) GetRootDomainReference() (rp1 *mm_insolar.Reference)

GetRootDomainReference implements insolar.Certificate

func (*CertificateMock) GetRootDomainReferenceAfterCounter

func (mmGetRootDomainReference *CertificateMock) GetRootDomainReferenceAfterCounter() uint64

GetRootDomainReferenceAfterCounter returns a count of finished CertificateMock.GetRootDomainReference invocations

func (*CertificateMock) GetRootDomainReferenceBeforeCounter

func (mmGetRootDomainReference *CertificateMock) GetRootDomainReferenceBeforeCounter() uint64

GetRootDomainReferenceBeforeCounter returns a count of CertificateMock.GetRootDomainReference invocations

func (*CertificateMock) MinimockFinish added in v0.6.3

func (m *CertificateMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*CertificateMock) MinimockGetDiscoveryNodesDone

func (m *CertificateMock) MinimockGetDiscoveryNodesDone() bool

MinimockGetDiscoveryNodesDone returns true if the count of the GetDiscoveryNodes invocations corresponds the number of defined expectations

func (*CertificateMock) MinimockGetDiscoveryNodesInspect

func (m *CertificateMock) MinimockGetDiscoveryNodesInspect()

MinimockGetDiscoveryNodesInspect logs each unmet expectation

func (*CertificateMock) MinimockGetDiscoverySignsDone

func (m *CertificateMock) MinimockGetDiscoverySignsDone() bool

MinimockGetDiscoverySignsDone returns true if the count of the GetDiscoverySigns invocations corresponds the number of defined expectations

func (*CertificateMock) MinimockGetDiscoverySignsInspect

func (m *CertificateMock) MinimockGetDiscoverySignsInspect()

MinimockGetDiscoverySignsInspect logs each unmet expectation

func (*CertificateMock) MinimockGetMajorityRuleDone

func (m *CertificateMock) MinimockGetMajorityRuleDone() bool

MinimockGetMajorityRuleDone returns true if the count of the GetMajorityRule invocations corresponds the number of defined expectations

func (*CertificateMock) MinimockGetMajorityRuleInspect

func (m *CertificateMock) MinimockGetMajorityRuleInspect()

MinimockGetMajorityRuleInspect logs each unmet expectation

func (*CertificateMock) MinimockGetMinRolesDone

func (m *CertificateMock) MinimockGetMinRolesDone() bool

MinimockGetMinRolesDone returns true if the count of the GetMinRoles invocations corresponds the number of defined expectations

func (*CertificateMock) MinimockGetMinRolesInspect

func (m *CertificateMock) MinimockGetMinRolesInspect()

MinimockGetMinRolesInspect logs each unmet expectation

func (*CertificateMock) MinimockGetNodeRefDone

func (m *CertificateMock) MinimockGetNodeRefDone() bool

MinimockGetNodeRefDone returns true if the count of the GetNodeRef invocations corresponds the number of defined expectations

func (*CertificateMock) MinimockGetNodeRefInspect

func (m *CertificateMock) MinimockGetNodeRefInspect()

MinimockGetNodeRefInspect logs each unmet expectation

func (*CertificateMock) MinimockGetPublicKeyDone

func (m *CertificateMock) MinimockGetPublicKeyDone() bool

MinimockGetPublicKeyDone returns true if the count of the GetPublicKey invocations corresponds the number of defined expectations

func (*CertificateMock) MinimockGetPublicKeyInspect

func (m *CertificateMock) MinimockGetPublicKeyInspect()

MinimockGetPublicKeyInspect logs each unmet expectation

func (*CertificateMock) MinimockGetRoleDone

func (m *CertificateMock) MinimockGetRoleDone() bool

MinimockGetRoleDone returns true if the count of the GetRole invocations corresponds the number of defined expectations

func (*CertificateMock) MinimockGetRoleInspect

func (m *CertificateMock) MinimockGetRoleInspect()

MinimockGetRoleInspect logs each unmet expectation

func (*CertificateMock) MinimockGetRootDomainReferenceDone

func (m *CertificateMock) MinimockGetRootDomainReferenceDone() bool

MinimockGetRootDomainReferenceDone returns true if the count of the GetRootDomainReference invocations corresponds the number of defined expectations

func (*CertificateMock) MinimockGetRootDomainReferenceInspect

func (m *CertificateMock) MinimockGetRootDomainReferenceInspect()

MinimockGetRootDomainReferenceInspect logs each unmet expectation

func (*CertificateMock) MinimockSerializeNodePartDone

func (m *CertificateMock) MinimockSerializeNodePartDone() bool

MinimockSerializeNodePartDone returns true if the count of the SerializeNodePart invocations corresponds the number of defined expectations

func (*CertificateMock) MinimockSerializeNodePartInspect

func (m *CertificateMock) MinimockSerializeNodePartInspect()

MinimockSerializeNodePartInspect logs each unmet expectation

func (*CertificateMock) MinimockWait added in v0.6.3

func (m *CertificateMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*CertificateMock) SerializeNodePart added in v0.7.5

func (mmSerializeNodePart *CertificateMock) SerializeNodePart() (ba1 []byte)

SerializeNodePart implements insolar.Certificate

func (*CertificateMock) SerializeNodePartAfterCounter

func (mmSerializeNodePart *CertificateMock) SerializeNodePartAfterCounter() uint64

SerializeNodePartAfterCounter returns a count of finished CertificateMock.SerializeNodePart invocations

func (*CertificateMock) SerializeNodePartBeforeCounter

func (mmSerializeNodePart *CertificateMock) SerializeNodePartBeforeCounter() uint64

SerializeNodePartBeforeCounter returns a count of CertificateMock.SerializeNodePart invocations

type CertificateMockGetDiscoveryNodesExpectation added in v0.7.5

type CertificateMockGetDiscoveryNodesExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CertificateMockGetDiscoveryNodesExpectation specifies expectation struct of the Certificate.GetDiscoveryNodes

type CertificateMockGetDiscoveryNodesResults

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

CertificateMockGetDiscoveryNodesResults contains results of the Certificate.GetDiscoveryNodes

type CertificateMockGetDiscoverySignsExpectation added in v0.7.5

type CertificateMockGetDiscoverySignsExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CertificateMockGetDiscoverySignsExpectation specifies expectation struct of the Certificate.GetDiscoverySigns

type CertificateMockGetDiscoverySignsResults

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

CertificateMockGetDiscoverySignsResults contains results of the Certificate.GetDiscoverySigns

type CertificateMockGetMajorityRuleExpectation added in v0.8.3

type CertificateMockGetMajorityRuleExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CertificateMockGetMajorityRuleExpectation specifies expectation struct of the Certificate.GetMajorityRule

type CertificateMockGetMajorityRuleResults

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

CertificateMockGetMajorityRuleResults contains results of the Certificate.GetMajorityRule

type CertificateMockGetMinRolesExpectation added in v0.8.3

type CertificateMockGetMinRolesExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CertificateMockGetMinRolesExpectation specifies expectation struct of the Certificate.GetMinRoles

type CertificateMockGetMinRolesResults

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

CertificateMockGetMinRolesResults contains results of the Certificate.GetMinRoles

type CertificateMockGetNodeRefExpectation added in v0.7.5

type CertificateMockGetNodeRefExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CertificateMockGetNodeRefExpectation specifies expectation struct of the Certificate.GetNodeRef

type CertificateMockGetNodeRefResults

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

CertificateMockGetNodeRefResults contains results of the Certificate.GetNodeRef

type CertificateMockGetPublicKeyExpectation added in v0.7.5

type CertificateMockGetPublicKeyExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CertificateMockGetPublicKeyExpectation specifies expectation struct of the Certificate.GetPublicKey

type CertificateMockGetPublicKeyResults

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

CertificateMockGetPublicKeyResults contains results of the Certificate.GetPublicKey

type CertificateMockGetRoleExpectation added in v0.7.5

type CertificateMockGetRoleExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CertificateMockGetRoleExpectation specifies expectation struct of the Certificate.GetRole

type CertificateMockGetRoleResults

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

CertificateMockGetRoleResults contains results of the Certificate.GetRole

type CertificateMockGetRootDomainReferenceExpectation added in v0.7.5

type CertificateMockGetRootDomainReferenceExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CertificateMockGetRootDomainReferenceExpectation specifies expectation struct of the Certificate.GetRootDomainReference

type CertificateMockGetRootDomainReferenceResults

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

CertificateMockGetRootDomainReferenceResults contains results of the Certificate.GetRootDomainReference

type CertificateMockSerializeNodePartExpectation added in v0.7.5

type CertificateMockSerializeNodePartExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CertificateMockSerializeNodePartExpectation specifies expectation struct of the Certificate.SerializeNodePart

type CertificateMockSerializeNodePartResults

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

CertificateMockSerializeNodePartResults contains results of the Certificate.SerializeNodePart

type ContractRequesterMock added in v0.6.3

type ContractRequesterMock struct {
	CallMock mContractRequesterMockCall

	SendRequestMock mContractRequesterMockSendRequest

	SendRequestWithPulseMock mContractRequesterMockSendRequestWithPulse
	// contains filtered or unexported fields
}

ContractRequesterMock implements insolar.ContractRequester

func NewContractRequesterMock added in v0.6.3

func NewContractRequesterMock(t minimock.Tester) *ContractRequesterMock

NewContractRequesterMock returns a mock for insolar.ContractRequester

func (*ContractRequesterMock) Call

Call implements insolar.ContractRequester

func (*ContractRequesterMock) CallAfterCounter

func (mmCall *ContractRequesterMock) CallAfterCounter() uint64

CallAfterCounter returns a count of finished ContractRequesterMock.Call invocations

func (*ContractRequesterMock) CallBeforeCounter

func (mmCall *ContractRequesterMock) CallBeforeCounter() uint64

CallBeforeCounter returns a count of ContractRequesterMock.Call invocations

func (*ContractRequesterMock) MinimockCallDone

func (m *ContractRequesterMock) MinimockCallDone() bool

MinimockCallDone returns true if the count of the Call invocations corresponds the number of defined expectations

func (*ContractRequesterMock) MinimockCallInspect

func (m *ContractRequesterMock) MinimockCallInspect()

MinimockCallInspect logs each unmet expectation

func (*ContractRequesterMock) MinimockFinish added in v0.6.3

func (m *ContractRequesterMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*ContractRequesterMock) MinimockSendRequestDone

func (m *ContractRequesterMock) MinimockSendRequestDone() bool

MinimockSendRequestDone returns true if the count of the SendRequest invocations corresponds the number of defined expectations

func (*ContractRequesterMock) MinimockSendRequestInspect

func (m *ContractRequesterMock) MinimockSendRequestInspect()

MinimockSendRequestInspect logs each unmet expectation

func (*ContractRequesterMock) MinimockSendRequestWithPulseDone

func (m *ContractRequesterMock) MinimockSendRequestWithPulseDone() bool

MinimockSendRequestWithPulseDone returns true if the count of the SendRequestWithPulse invocations corresponds the number of defined expectations

func (*ContractRequesterMock) MinimockSendRequestWithPulseInspect

func (m *ContractRequesterMock) MinimockSendRequestWithPulseInspect()

MinimockSendRequestWithPulseInspect logs each unmet expectation

func (*ContractRequesterMock) MinimockWait added in v0.6.3

func (m *ContractRequesterMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*ContractRequesterMock) SendRequest added in v0.6.3

func (mmSendRequest *ContractRequesterMock) SendRequest(ctx context.Context, ref *mm_insolar.Reference, method string, argsIn []interface{}) (r1 mm_insolar.Reply, err error)

SendRequest implements insolar.ContractRequester

func (*ContractRequesterMock) SendRequestAfterCounter

func (mmSendRequest *ContractRequesterMock) SendRequestAfterCounter() uint64

SendRequestAfterCounter returns a count of finished ContractRequesterMock.SendRequest invocations

func (*ContractRequesterMock) SendRequestBeforeCounter

func (mmSendRequest *ContractRequesterMock) SendRequestBeforeCounter() uint64

SendRequestBeforeCounter returns a count of ContractRequesterMock.SendRequest invocations

func (*ContractRequesterMock) SendRequestWithPulse

func (mmSendRequestWithPulse *ContractRequesterMock) SendRequestWithPulse(ctx context.Context, ref *mm_insolar.Reference, method string, argsIn []interface{}, pulse mm_insolar.PulseNumber) (r1 mm_insolar.Reply, rp1 *mm_insolar.Reference, err error)

SendRequestWithPulse implements insolar.ContractRequester

func (*ContractRequesterMock) SendRequestWithPulseAfterCounter

func (mmSendRequestWithPulse *ContractRequesterMock) SendRequestWithPulseAfterCounter() uint64

SendRequestWithPulseAfterCounter returns a count of finished ContractRequesterMock.SendRequestWithPulse invocations

func (*ContractRequesterMock) SendRequestWithPulseBeforeCounter

func (mmSendRequestWithPulse *ContractRequesterMock) SendRequestWithPulseBeforeCounter() uint64

SendRequestWithPulseBeforeCounter returns a count of ContractRequesterMock.SendRequestWithPulse invocations

type ContractRequesterMockCallExpectation

type ContractRequesterMockCallExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ContractRequesterMockCallExpectation specifies expectation struct of the ContractRequester.Call

func (*ContractRequesterMockCallExpectation) Then

Then sets up ContractRequester.Call return parameters for the expectation previously defined by the When method

type ContractRequesterMockCallParams

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

ContractRequesterMockCallParams contains parameters of the ContractRequester.Call

type ContractRequesterMockCallResults

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

ContractRequesterMockCallResults contains results of the ContractRequester.Call

type ContractRequesterMockSendRequestExpectation added in v0.7.5

type ContractRequesterMockSendRequestExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ContractRequesterMockSendRequestExpectation specifies expectation struct of the ContractRequester.SendRequest

func (*ContractRequesterMockSendRequestExpectation) Then

Then sets up ContractRequester.SendRequest return parameters for the expectation previously defined by the When method

type ContractRequesterMockSendRequestParams added in v0.6.3

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

ContractRequesterMockSendRequestParams contains parameters of the ContractRequester.SendRequest

type ContractRequesterMockSendRequestResults

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

ContractRequesterMockSendRequestResults contains results of the ContractRequester.SendRequest

type ContractRequesterMockSendRequestWithPulseExpectation

type ContractRequesterMockSendRequestWithPulseExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ContractRequesterMockSendRequestWithPulseExpectation specifies expectation struct of the ContractRequester.SendRequestWithPulse

func (*ContractRequesterMockSendRequestWithPulseExpectation) Then

Then sets up ContractRequester.SendRequestWithPulse return parameters for the expectation previously defined by the When method

type ContractRequesterMockSendRequestWithPulseParams

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

ContractRequesterMockSendRequestWithPulseParams contains parameters of the ContractRequester.SendRequestWithPulse

type ContractRequesterMockSendRequestWithPulseResults

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

ContractRequesterMockSendRequestWithPulseResults contains results of the ContractRequester.SendRequestWithPulse

type CryptographyServiceMock added in v0.6.3

type CryptographyServiceMock struct {
	GetPublicKeyMock mCryptographyServiceMockGetPublicKey

	SignMock mCryptographyServiceMockSign

	VerifyMock mCryptographyServiceMockVerify
	// contains filtered or unexported fields
}

CryptographyServiceMock implements insolar.CryptographyService

func NewCryptographyServiceMock added in v0.6.3

func NewCryptographyServiceMock(t minimock.Tester) *CryptographyServiceMock

NewCryptographyServiceMock returns a mock for insolar.CryptographyService

func (*CryptographyServiceMock) GetPublicKey added in v0.6.3

func (mmGetPublicKey *CryptographyServiceMock) GetPublicKey() (p1 crypto.PublicKey, err error)

GetPublicKey implements insolar.CryptographyService

func (*CryptographyServiceMock) GetPublicKeyAfterCounter

func (mmGetPublicKey *CryptographyServiceMock) GetPublicKeyAfterCounter() uint64

GetPublicKeyAfterCounter returns a count of finished CryptographyServiceMock.GetPublicKey invocations

func (*CryptographyServiceMock) GetPublicKeyBeforeCounter

func (mmGetPublicKey *CryptographyServiceMock) GetPublicKeyBeforeCounter() uint64

GetPublicKeyBeforeCounter returns a count of CryptographyServiceMock.GetPublicKey invocations

func (*CryptographyServiceMock) MinimockFinish added in v0.6.3

func (m *CryptographyServiceMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*CryptographyServiceMock) MinimockGetPublicKeyDone

func (m *CryptographyServiceMock) MinimockGetPublicKeyDone() bool

MinimockGetPublicKeyDone returns true if the count of the GetPublicKey invocations corresponds the number of defined expectations

func (*CryptographyServiceMock) MinimockGetPublicKeyInspect

func (m *CryptographyServiceMock) MinimockGetPublicKeyInspect()

MinimockGetPublicKeyInspect logs each unmet expectation

func (*CryptographyServiceMock) MinimockSignDone

func (m *CryptographyServiceMock) MinimockSignDone() bool

MinimockSignDone returns true if the count of the Sign invocations corresponds the number of defined expectations

func (*CryptographyServiceMock) MinimockSignInspect

func (m *CryptographyServiceMock) MinimockSignInspect()

MinimockSignInspect logs each unmet expectation

func (*CryptographyServiceMock) MinimockVerifyDone

func (m *CryptographyServiceMock) MinimockVerifyDone() bool

MinimockVerifyDone returns true if the count of the Verify invocations corresponds the number of defined expectations

func (*CryptographyServiceMock) MinimockVerifyInspect

func (m *CryptographyServiceMock) MinimockVerifyInspect()

MinimockVerifyInspect logs each unmet expectation

func (*CryptographyServiceMock) MinimockWait added in v0.6.3

func (m *CryptographyServiceMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*CryptographyServiceMock) Sign added in v0.6.3

func (mmSign *CryptographyServiceMock) Sign(ba1 []byte) (sp1 *mm_insolar.Signature, err error)

Sign implements insolar.CryptographyService

func (*CryptographyServiceMock) SignAfterCounter

func (mmSign *CryptographyServiceMock) SignAfterCounter() uint64

SignAfterCounter returns a count of finished CryptographyServiceMock.Sign invocations

func (*CryptographyServiceMock) SignBeforeCounter

func (mmSign *CryptographyServiceMock) SignBeforeCounter() uint64

SignBeforeCounter returns a count of CryptographyServiceMock.Sign invocations

func (*CryptographyServiceMock) Verify added in v0.6.3

func (mmVerify *CryptographyServiceMock) Verify(p1 crypto.PublicKey, s1 mm_insolar.Signature, ba1 []byte) (b1 bool)

Verify implements insolar.CryptographyService

func (*CryptographyServiceMock) VerifyAfterCounter

func (mmVerify *CryptographyServiceMock) VerifyAfterCounter() uint64

VerifyAfterCounter returns a count of finished CryptographyServiceMock.Verify invocations

func (*CryptographyServiceMock) VerifyBeforeCounter

func (mmVerify *CryptographyServiceMock) VerifyBeforeCounter() uint64

VerifyBeforeCounter returns a count of CryptographyServiceMock.Verify invocations

type CryptographyServiceMockGetPublicKeyExpectation added in v0.7.5

type CryptographyServiceMockGetPublicKeyExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CryptographyServiceMockGetPublicKeyExpectation specifies expectation struct of the CryptographyService.GetPublicKey

type CryptographyServiceMockGetPublicKeyResults

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

CryptographyServiceMockGetPublicKeyResults contains results of the CryptographyService.GetPublicKey

type CryptographyServiceMockSignExpectation added in v0.7.5

type CryptographyServiceMockSignExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CryptographyServiceMockSignExpectation specifies expectation struct of the CryptographyService.Sign

func (*CryptographyServiceMockSignExpectation) Then

Then sets up CryptographyService.Sign return parameters for the expectation previously defined by the When method

type CryptographyServiceMockSignParams added in v0.6.3

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

CryptographyServiceMockSignParams contains parameters of the CryptographyService.Sign

type CryptographyServiceMockSignResults

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

CryptographyServiceMockSignResults contains results of the CryptographyService.Sign

type CryptographyServiceMockVerifyExpectation added in v0.7.5

type CryptographyServiceMockVerifyExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

CryptographyServiceMockVerifyExpectation specifies expectation struct of the CryptographyService.Verify

func (*CryptographyServiceMockVerifyExpectation) Then

Then sets up CryptographyService.Verify return parameters for the expectation previously defined by the When method

type CryptographyServiceMockVerifyParams added in v0.6.3

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

CryptographyServiceMockVerifyParams contains parameters of the CryptographyService.Verify

type CryptographyServiceMockVerifyResults

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

CryptographyServiceMockVerifyResults contains results of the CryptographyService.Verify

type DiscoveryNodeMock added in v0.6.3

type DiscoveryNodeMock struct {
	GetHostMock mDiscoveryNodeMockGetHost

	GetNodeRefMock mDiscoveryNodeMockGetNodeRef

	GetPublicKeyMock mDiscoveryNodeMockGetPublicKey

	GetRoleMock mDiscoveryNodeMockGetRole
	// contains filtered or unexported fields
}

DiscoveryNodeMock implements insolar.DiscoveryNode

func NewDiscoveryNodeMock added in v0.6.3

func NewDiscoveryNodeMock(t minimock.Tester) *DiscoveryNodeMock

NewDiscoveryNodeMock returns a mock for insolar.DiscoveryNode

func (*DiscoveryNodeMock) GetHost added in v0.6.3

func (mmGetHost *DiscoveryNodeMock) GetHost() (s1 string)

GetHost implements insolar.DiscoveryNode

func (*DiscoveryNodeMock) GetHostAfterCounter

func (mmGetHost *DiscoveryNodeMock) GetHostAfterCounter() uint64

GetHostAfterCounter returns a count of finished DiscoveryNodeMock.GetHost invocations

func (*DiscoveryNodeMock) GetHostBeforeCounter

func (mmGetHost *DiscoveryNodeMock) GetHostBeforeCounter() uint64

GetHostBeforeCounter returns a count of DiscoveryNodeMock.GetHost invocations

func (*DiscoveryNodeMock) GetNodeRef added in v0.6.3

func (mmGetNodeRef *DiscoveryNodeMock) GetNodeRef() (rp1 *mm_insolar.Reference)

GetNodeRef implements insolar.DiscoveryNode

func (*DiscoveryNodeMock) GetNodeRefAfterCounter

func (mmGetNodeRef *DiscoveryNodeMock) GetNodeRefAfterCounter() uint64

GetNodeRefAfterCounter returns a count of finished DiscoveryNodeMock.GetNodeRef invocations

func (*DiscoveryNodeMock) GetNodeRefBeforeCounter

func (mmGetNodeRef *DiscoveryNodeMock) GetNodeRefBeforeCounter() uint64

GetNodeRefBeforeCounter returns a count of DiscoveryNodeMock.GetNodeRef invocations

func (*DiscoveryNodeMock) GetPublicKey added in v0.6.3

func (mmGetPublicKey *DiscoveryNodeMock) GetPublicKey() (p1 crypto.PublicKey)

GetPublicKey implements insolar.DiscoveryNode

func (*DiscoveryNodeMock) GetPublicKeyAfterCounter

func (mmGetPublicKey *DiscoveryNodeMock) GetPublicKeyAfterCounter() uint64

GetPublicKeyAfterCounter returns a count of finished DiscoveryNodeMock.GetPublicKey invocations

func (*DiscoveryNodeMock) GetPublicKeyBeforeCounter

func (mmGetPublicKey *DiscoveryNodeMock) GetPublicKeyBeforeCounter() uint64

GetPublicKeyBeforeCounter returns a count of DiscoveryNodeMock.GetPublicKey invocations

func (*DiscoveryNodeMock) GetRole

func (mmGetRole *DiscoveryNodeMock) GetRole() (s1 mm_insolar.StaticRole)

GetRole implements insolar.DiscoveryNode

func (*DiscoveryNodeMock) GetRoleAfterCounter

func (mmGetRole *DiscoveryNodeMock) GetRoleAfterCounter() uint64

GetRoleAfterCounter returns a count of finished DiscoveryNodeMock.GetRole invocations

func (*DiscoveryNodeMock) GetRoleBeforeCounter

func (mmGetRole *DiscoveryNodeMock) GetRoleBeforeCounter() uint64

GetRoleBeforeCounter returns a count of DiscoveryNodeMock.GetRole invocations

func (*DiscoveryNodeMock) MinimockFinish added in v0.6.3

func (m *DiscoveryNodeMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*DiscoveryNodeMock) MinimockGetHostDone

func (m *DiscoveryNodeMock) MinimockGetHostDone() bool

MinimockGetHostDone returns true if the count of the GetHost invocations corresponds the number of defined expectations

func (*DiscoveryNodeMock) MinimockGetHostInspect

func (m *DiscoveryNodeMock) MinimockGetHostInspect()

MinimockGetHostInspect logs each unmet expectation

func (*DiscoveryNodeMock) MinimockGetNodeRefDone

func (m *DiscoveryNodeMock) MinimockGetNodeRefDone() bool

MinimockGetNodeRefDone returns true if the count of the GetNodeRef invocations corresponds the number of defined expectations

func (*DiscoveryNodeMock) MinimockGetNodeRefInspect

func (m *DiscoveryNodeMock) MinimockGetNodeRefInspect()

MinimockGetNodeRefInspect logs each unmet expectation

func (*DiscoveryNodeMock) MinimockGetPublicKeyDone

func (m *DiscoveryNodeMock) MinimockGetPublicKeyDone() bool

MinimockGetPublicKeyDone returns true if the count of the GetPublicKey invocations corresponds the number of defined expectations

func (*DiscoveryNodeMock) MinimockGetPublicKeyInspect

func (m *DiscoveryNodeMock) MinimockGetPublicKeyInspect()

MinimockGetPublicKeyInspect logs each unmet expectation

func (*DiscoveryNodeMock) MinimockGetRoleDone

func (m *DiscoveryNodeMock) MinimockGetRoleDone() bool

MinimockGetRoleDone returns true if the count of the GetRole invocations corresponds the number of defined expectations

func (*DiscoveryNodeMock) MinimockGetRoleInspect

func (m *DiscoveryNodeMock) MinimockGetRoleInspect()

MinimockGetRoleInspect logs each unmet expectation

func (*DiscoveryNodeMock) MinimockWait added in v0.6.3

func (m *DiscoveryNodeMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

type DiscoveryNodeMockGetHostExpectation added in v0.7.5

type DiscoveryNodeMockGetHostExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

DiscoveryNodeMockGetHostExpectation specifies expectation struct of the DiscoveryNode.GetHost

type DiscoveryNodeMockGetHostResults

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

DiscoveryNodeMockGetHostResults contains results of the DiscoveryNode.GetHost

type DiscoveryNodeMockGetNodeRefExpectation added in v0.7.5

type DiscoveryNodeMockGetNodeRefExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

DiscoveryNodeMockGetNodeRefExpectation specifies expectation struct of the DiscoveryNode.GetNodeRef

type DiscoveryNodeMockGetNodeRefResults

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

DiscoveryNodeMockGetNodeRefResults contains results of the DiscoveryNode.GetNodeRef

type DiscoveryNodeMockGetPublicKeyExpectation added in v0.7.5

type DiscoveryNodeMockGetPublicKeyExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

DiscoveryNodeMockGetPublicKeyExpectation specifies expectation struct of the DiscoveryNode.GetPublicKey

type DiscoveryNodeMockGetPublicKeyResults

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

DiscoveryNodeMockGetPublicKeyResults contains results of the DiscoveryNode.GetPublicKey

type DiscoveryNodeMockGetRoleExpectation

type DiscoveryNodeMockGetRoleExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

DiscoveryNodeMockGetRoleExpectation specifies expectation struct of the DiscoveryNode.GetRole

type DiscoveryNodeMockGetRoleResults

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

DiscoveryNodeMockGetRoleResults contains results of the DiscoveryNode.GetRole

type JetReleaserMock

type JetReleaserMock struct {
	ThrowTimeoutMock mJetReleaserMockThrowTimeout

	UnlockMock mJetReleaserMockUnlock
	// contains filtered or unexported fields
}

JetReleaserMock implements hot.JetReleaser

func NewJetReleaserMock

func NewJetReleaserMock(t minimock.Tester) *JetReleaserMock

NewJetReleaserMock returns a mock for hot.JetReleaser

func (*JetReleaserMock) MinimockFinish

func (m *JetReleaserMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*JetReleaserMock) MinimockThrowTimeoutDone

func (m *JetReleaserMock) MinimockThrowTimeoutDone() bool

MinimockThrowTimeoutDone returns true if the count of the ThrowTimeout invocations corresponds the number of defined expectations

func (*JetReleaserMock) MinimockThrowTimeoutInspect

func (m *JetReleaserMock) MinimockThrowTimeoutInspect()

MinimockThrowTimeoutInspect logs each unmet expectation

func (*JetReleaserMock) MinimockUnlockDone

func (m *JetReleaserMock) MinimockUnlockDone() bool

MinimockUnlockDone returns true if the count of the Unlock invocations corresponds the number of defined expectations

func (*JetReleaserMock) MinimockUnlockInspect

func (m *JetReleaserMock) MinimockUnlockInspect()

MinimockUnlockInspect logs each unmet expectation

func (*JetReleaserMock) MinimockWait

func (m *JetReleaserMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*JetReleaserMock) ThrowTimeout

func (mmThrowTimeout *JetReleaserMock) ThrowTimeout(ctx context.Context, pulse insolar.PulseNumber)

ThrowTimeout implements hot.JetReleaser

func (*JetReleaserMock) ThrowTimeoutAfterCounter

func (mmThrowTimeout *JetReleaserMock) ThrowTimeoutAfterCounter() uint64

ThrowTimeoutAfterCounter returns a count of finished JetReleaserMock.ThrowTimeout invocations

func (*JetReleaserMock) ThrowTimeoutBeforeCounter

func (mmThrowTimeout *JetReleaserMock) ThrowTimeoutBeforeCounter() uint64

ThrowTimeoutBeforeCounter returns a count of JetReleaserMock.ThrowTimeout invocations

func (*JetReleaserMock) Unlock

func (mmUnlock *JetReleaserMock) Unlock(ctx context.Context, jetID insolar.ID) (err error)

Unlock implements hot.JetReleaser

func (*JetReleaserMock) UnlockAfterCounter

func (mmUnlock *JetReleaserMock) UnlockAfterCounter() uint64

UnlockAfterCounter returns a count of finished JetReleaserMock.Unlock invocations

func (*JetReleaserMock) UnlockBeforeCounter

func (mmUnlock *JetReleaserMock) UnlockBeforeCounter() uint64

UnlockBeforeCounter returns a count of JetReleaserMock.Unlock invocations

type JetReleaserMockThrowTimeoutExpectation

type JetReleaserMockThrowTimeoutExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

JetReleaserMockThrowTimeoutExpectation specifies expectation struct of the JetReleaser.ThrowTimeout

type JetReleaserMockThrowTimeoutParams

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

JetReleaserMockThrowTimeoutParams contains parameters of the JetReleaser.ThrowTimeout

type JetReleaserMockUnlockExpectation

type JetReleaserMockUnlockExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

JetReleaserMockUnlockExpectation specifies expectation struct of the JetReleaser.Unlock

func (*JetReleaserMockUnlockExpectation) Then

Then sets up JetReleaser.Unlock return parameters for the expectation previously defined by the When method

type JetReleaserMockUnlockParams

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

JetReleaserMockUnlockParams contains parameters of the JetReleaser.Unlock

type JetReleaserMockUnlockResults

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

JetReleaserMockUnlockResults contains results of the JetReleaser.Unlock

type KeyProcessorMock added in v0.6.3

type KeyProcessorMock struct {
	ExportPrivateKeyPEMMock mKeyProcessorMockExportPrivateKeyPEM

	ExportPublicKeyBinaryMock mKeyProcessorMockExportPublicKeyBinary

	ExportPublicKeyPEMMock mKeyProcessorMockExportPublicKeyPEM

	ExtractPublicKeyMock mKeyProcessorMockExtractPublicKey

	GeneratePrivateKeyMock mKeyProcessorMockGeneratePrivateKey

	ImportPrivateKeyPEMMock mKeyProcessorMockImportPrivateKeyPEM

	ImportPublicKeyBinaryMock mKeyProcessorMockImportPublicKeyBinary

	ImportPublicKeyPEMMock mKeyProcessorMockImportPublicKeyPEM
	// contains filtered or unexported fields
}

KeyProcessorMock implements insolar.KeyProcessor

func NewKeyProcessorMock added in v0.6.3

func NewKeyProcessorMock(t minimock.Tester) *KeyProcessorMock

NewKeyProcessorMock returns a mock for insolar.KeyProcessor

func (*KeyProcessorMock) ExportPrivateKeyPEM added in v0.7.5

func (mmExportPrivateKeyPEM *KeyProcessorMock) ExportPrivateKeyPEM(p1 crypto.PrivateKey) (ba1 []byte, err error)

ExportPrivateKeyPEM implements insolar.KeyProcessor

func (*KeyProcessorMock) ExportPrivateKeyPEMAfterCounter

func (mmExportPrivateKeyPEM *KeyProcessorMock) ExportPrivateKeyPEMAfterCounter() uint64

ExportPrivateKeyPEMAfterCounter returns a count of finished KeyProcessorMock.ExportPrivateKeyPEM invocations

func (*KeyProcessorMock) ExportPrivateKeyPEMBeforeCounter

func (mmExportPrivateKeyPEM *KeyProcessorMock) ExportPrivateKeyPEMBeforeCounter() uint64

ExportPrivateKeyPEMBeforeCounter returns a count of KeyProcessorMock.ExportPrivateKeyPEM invocations

func (*KeyProcessorMock) ExportPublicKeyBinary added in v0.7.5

func (mmExportPublicKeyBinary *KeyProcessorMock) ExportPublicKeyBinary(p1 crypto.PublicKey) (ba1 []byte, err error)

ExportPublicKeyBinary implements insolar.KeyProcessor

func (*KeyProcessorMock) ExportPublicKeyBinaryAfterCounter

func (mmExportPublicKeyBinary *KeyProcessorMock) ExportPublicKeyBinaryAfterCounter() uint64

ExportPublicKeyBinaryAfterCounter returns a count of finished KeyProcessorMock.ExportPublicKeyBinary invocations

func (*KeyProcessorMock) ExportPublicKeyBinaryBeforeCounter

func (mmExportPublicKeyBinary *KeyProcessorMock) ExportPublicKeyBinaryBeforeCounter() uint64

ExportPublicKeyBinaryBeforeCounter returns a count of KeyProcessorMock.ExportPublicKeyBinary invocations

func (*KeyProcessorMock) ExportPublicKeyPEM added in v0.7.5

func (mmExportPublicKeyPEM *KeyProcessorMock) ExportPublicKeyPEM(p1 crypto.PublicKey) (ba1 []byte, err error)

ExportPublicKeyPEM implements insolar.KeyProcessor

func (*KeyProcessorMock) ExportPublicKeyPEMAfterCounter

func (mmExportPublicKeyPEM *KeyProcessorMock) ExportPublicKeyPEMAfterCounter() uint64

ExportPublicKeyPEMAfterCounter returns a count of finished KeyProcessorMock.ExportPublicKeyPEM invocations

func (*KeyProcessorMock) ExportPublicKeyPEMBeforeCounter

func (mmExportPublicKeyPEM *KeyProcessorMock) ExportPublicKeyPEMBeforeCounter() uint64

ExportPublicKeyPEMBeforeCounter returns a count of KeyProcessorMock.ExportPublicKeyPEM invocations

func (*KeyProcessorMock) ExtractPublicKey added in v0.6.3

func (mmExtractPublicKey *KeyProcessorMock) ExtractPublicKey(p1 crypto.PrivateKey) (p2 crypto.PublicKey)

ExtractPublicKey implements insolar.KeyProcessor

func (*KeyProcessorMock) ExtractPublicKeyAfterCounter

func (mmExtractPublicKey *KeyProcessorMock) ExtractPublicKeyAfterCounter() uint64

ExtractPublicKeyAfterCounter returns a count of finished KeyProcessorMock.ExtractPublicKey invocations

func (*KeyProcessorMock) ExtractPublicKeyBeforeCounter

func (mmExtractPublicKey *KeyProcessorMock) ExtractPublicKeyBeforeCounter() uint64

ExtractPublicKeyBeforeCounter returns a count of KeyProcessorMock.ExtractPublicKey invocations

func (*KeyProcessorMock) GeneratePrivateKey added in v0.6.3

func (mmGeneratePrivateKey *KeyProcessorMock) GeneratePrivateKey() (p1 crypto.PrivateKey, err error)

GeneratePrivateKey implements insolar.KeyProcessor

func (*KeyProcessorMock) GeneratePrivateKeyAfterCounter

func (mmGeneratePrivateKey *KeyProcessorMock) GeneratePrivateKeyAfterCounter() uint64

GeneratePrivateKeyAfterCounter returns a count of finished KeyProcessorMock.GeneratePrivateKey invocations

func (*KeyProcessorMock) GeneratePrivateKeyBeforeCounter

func (mmGeneratePrivateKey *KeyProcessorMock) GeneratePrivateKeyBeforeCounter() uint64

GeneratePrivateKeyBeforeCounter returns a count of KeyProcessorMock.GeneratePrivateKey invocations

func (*KeyProcessorMock) ImportPrivateKeyPEM added in v0.7.5

func (mmImportPrivateKeyPEM *KeyProcessorMock) ImportPrivateKeyPEM(ba1 []byte) (p1 crypto.PrivateKey, err error)

ImportPrivateKeyPEM implements insolar.KeyProcessor

func (*KeyProcessorMock) ImportPrivateKeyPEMAfterCounter

func (mmImportPrivateKeyPEM *KeyProcessorMock) ImportPrivateKeyPEMAfterCounter() uint64

ImportPrivateKeyPEMAfterCounter returns a count of finished KeyProcessorMock.ImportPrivateKeyPEM invocations

func (*KeyProcessorMock) ImportPrivateKeyPEMBeforeCounter

func (mmImportPrivateKeyPEM *KeyProcessorMock) ImportPrivateKeyPEMBeforeCounter() uint64

ImportPrivateKeyPEMBeforeCounter returns a count of KeyProcessorMock.ImportPrivateKeyPEM invocations

func (*KeyProcessorMock) ImportPublicKeyBinary added in v0.7.5

func (mmImportPublicKeyBinary *KeyProcessorMock) ImportPublicKeyBinary(ba1 []byte) (p1 crypto.PublicKey, err error)

ImportPublicKeyBinary implements insolar.KeyProcessor

func (*KeyProcessorMock) ImportPublicKeyBinaryAfterCounter

func (mmImportPublicKeyBinary *KeyProcessorMock) ImportPublicKeyBinaryAfterCounter() uint64

ImportPublicKeyBinaryAfterCounter returns a count of finished KeyProcessorMock.ImportPublicKeyBinary invocations

func (*KeyProcessorMock) ImportPublicKeyBinaryBeforeCounter

func (mmImportPublicKeyBinary *KeyProcessorMock) ImportPublicKeyBinaryBeforeCounter() uint64

ImportPublicKeyBinaryBeforeCounter returns a count of KeyProcessorMock.ImportPublicKeyBinary invocations

func (*KeyProcessorMock) ImportPublicKeyPEM added in v0.7.5

func (mmImportPublicKeyPEM *KeyProcessorMock) ImportPublicKeyPEM(ba1 []byte) (p1 crypto.PublicKey, err error)

ImportPublicKeyPEM implements insolar.KeyProcessor

func (*KeyProcessorMock) ImportPublicKeyPEMAfterCounter

func (mmImportPublicKeyPEM *KeyProcessorMock) ImportPublicKeyPEMAfterCounter() uint64

ImportPublicKeyPEMAfterCounter returns a count of finished KeyProcessorMock.ImportPublicKeyPEM invocations

func (*KeyProcessorMock) ImportPublicKeyPEMBeforeCounter

func (mmImportPublicKeyPEM *KeyProcessorMock) ImportPublicKeyPEMBeforeCounter() uint64

ImportPublicKeyPEMBeforeCounter returns a count of KeyProcessorMock.ImportPublicKeyPEM invocations

func (*KeyProcessorMock) MinimockExportPrivateKeyPEMDone

func (m *KeyProcessorMock) MinimockExportPrivateKeyPEMDone() bool

MinimockExportPrivateKeyPEMDone returns true if the count of the ExportPrivateKeyPEM invocations corresponds the number of defined expectations

func (*KeyProcessorMock) MinimockExportPrivateKeyPEMInspect

func (m *KeyProcessorMock) MinimockExportPrivateKeyPEMInspect()

MinimockExportPrivateKeyPEMInspect logs each unmet expectation

func (*KeyProcessorMock) MinimockExportPublicKeyBinaryDone

func (m *KeyProcessorMock) MinimockExportPublicKeyBinaryDone() bool

MinimockExportPublicKeyBinaryDone returns true if the count of the ExportPublicKeyBinary invocations corresponds the number of defined expectations

func (*KeyProcessorMock) MinimockExportPublicKeyBinaryInspect

func (m *KeyProcessorMock) MinimockExportPublicKeyBinaryInspect()

MinimockExportPublicKeyBinaryInspect logs each unmet expectation

func (*KeyProcessorMock) MinimockExportPublicKeyPEMDone

func (m *KeyProcessorMock) MinimockExportPublicKeyPEMDone() bool

MinimockExportPublicKeyPEMDone returns true if the count of the ExportPublicKeyPEM invocations corresponds the number of defined expectations

func (*KeyProcessorMock) MinimockExportPublicKeyPEMInspect

func (m *KeyProcessorMock) MinimockExportPublicKeyPEMInspect()

MinimockExportPublicKeyPEMInspect logs each unmet expectation

func (*KeyProcessorMock) MinimockExtractPublicKeyDone

func (m *KeyProcessorMock) MinimockExtractPublicKeyDone() bool

MinimockExtractPublicKeyDone returns true if the count of the ExtractPublicKey invocations corresponds the number of defined expectations

func (*KeyProcessorMock) MinimockExtractPublicKeyInspect

func (m *KeyProcessorMock) MinimockExtractPublicKeyInspect()

MinimockExtractPublicKeyInspect logs each unmet expectation

func (*KeyProcessorMock) MinimockFinish added in v0.6.3

func (m *KeyProcessorMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*KeyProcessorMock) MinimockGeneratePrivateKeyDone

func (m *KeyProcessorMock) MinimockGeneratePrivateKeyDone() bool

MinimockGeneratePrivateKeyDone returns true if the count of the GeneratePrivateKey invocations corresponds the number of defined expectations

func (*KeyProcessorMock) MinimockGeneratePrivateKeyInspect

func (m *KeyProcessorMock) MinimockGeneratePrivateKeyInspect()

MinimockGeneratePrivateKeyInspect logs each unmet expectation

func (*KeyProcessorMock) MinimockImportPrivateKeyPEMDone

func (m *KeyProcessorMock) MinimockImportPrivateKeyPEMDone() bool

MinimockImportPrivateKeyPEMDone returns true if the count of the ImportPrivateKeyPEM invocations corresponds the number of defined expectations

func (*KeyProcessorMock) MinimockImportPrivateKeyPEMInspect

func (m *KeyProcessorMock) MinimockImportPrivateKeyPEMInspect()

MinimockImportPrivateKeyPEMInspect logs each unmet expectation

func (*KeyProcessorMock) MinimockImportPublicKeyBinaryDone

func (m *KeyProcessorMock) MinimockImportPublicKeyBinaryDone() bool

MinimockImportPublicKeyBinaryDone returns true if the count of the ImportPublicKeyBinary invocations corresponds the number of defined expectations

func (*KeyProcessorMock) MinimockImportPublicKeyBinaryInspect

func (m *KeyProcessorMock) MinimockImportPublicKeyBinaryInspect()

MinimockImportPublicKeyBinaryInspect logs each unmet expectation

func (*KeyProcessorMock) MinimockImportPublicKeyPEMDone

func (m *KeyProcessorMock) MinimockImportPublicKeyPEMDone() bool

MinimockImportPublicKeyPEMDone returns true if the count of the ImportPublicKeyPEM invocations corresponds the number of defined expectations

func (*KeyProcessorMock) MinimockImportPublicKeyPEMInspect

func (m *KeyProcessorMock) MinimockImportPublicKeyPEMInspect()

MinimockImportPublicKeyPEMInspect logs each unmet expectation

func (*KeyProcessorMock) MinimockWait added in v0.6.3

func (m *KeyProcessorMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

type KeyProcessorMockExportPrivateKeyPEMExpectation added in v0.7.5

type KeyProcessorMockExportPrivateKeyPEMExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

KeyProcessorMockExportPrivateKeyPEMExpectation specifies expectation struct of the KeyProcessor.ExportPrivateKeyPEM

func (*KeyProcessorMockExportPrivateKeyPEMExpectation) Then

Then sets up KeyProcessor.ExportPrivateKeyPEM return parameters for the expectation previously defined by the When method

type KeyProcessorMockExportPrivateKeyPEMParams

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

KeyProcessorMockExportPrivateKeyPEMParams contains parameters of the KeyProcessor.ExportPrivateKeyPEM

type KeyProcessorMockExportPrivateKeyPEMResults

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

KeyProcessorMockExportPrivateKeyPEMResults contains results of the KeyProcessor.ExportPrivateKeyPEM

type KeyProcessorMockExportPublicKeyBinaryExpectation added in v0.7.5

type KeyProcessorMockExportPublicKeyBinaryExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

KeyProcessorMockExportPublicKeyBinaryExpectation specifies expectation struct of the KeyProcessor.ExportPublicKeyBinary

func (*KeyProcessorMockExportPublicKeyBinaryExpectation) Then

Then sets up KeyProcessor.ExportPublicKeyBinary return parameters for the expectation previously defined by the When method

type KeyProcessorMockExportPublicKeyBinaryParams

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

KeyProcessorMockExportPublicKeyBinaryParams contains parameters of the KeyProcessor.ExportPublicKeyBinary

type KeyProcessorMockExportPublicKeyBinaryResults

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

KeyProcessorMockExportPublicKeyBinaryResults contains results of the KeyProcessor.ExportPublicKeyBinary

type KeyProcessorMockExportPublicKeyPEMExpectation added in v0.7.5

type KeyProcessorMockExportPublicKeyPEMExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

KeyProcessorMockExportPublicKeyPEMExpectation specifies expectation struct of the KeyProcessor.ExportPublicKeyPEM

func (*KeyProcessorMockExportPublicKeyPEMExpectation) Then

Then sets up KeyProcessor.ExportPublicKeyPEM return parameters for the expectation previously defined by the When method

type KeyProcessorMockExportPublicKeyPEMParams

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

KeyProcessorMockExportPublicKeyPEMParams contains parameters of the KeyProcessor.ExportPublicKeyPEM

type KeyProcessorMockExportPublicKeyPEMResults

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

KeyProcessorMockExportPublicKeyPEMResults contains results of the KeyProcessor.ExportPublicKeyPEM

type KeyProcessorMockExtractPublicKeyExpectation added in v0.7.5

type KeyProcessorMockExtractPublicKeyExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

KeyProcessorMockExtractPublicKeyExpectation specifies expectation struct of the KeyProcessor.ExtractPublicKey

func (*KeyProcessorMockExtractPublicKeyExpectation) Then

Then sets up KeyProcessor.ExtractPublicKey return parameters for the expectation previously defined by the When method

type KeyProcessorMockExtractPublicKeyParams added in v0.6.3

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

KeyProcessorMockExtractPublicKeyParams contains parameters of the KeyProcessor.ExtractPublicKey

type KeyProcessorMockExtractPublicKeyResults

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

KeyProcessorMockExtractPublicKeyResults contains results of the KeyProcessor.ExtractPublicKey

type KeyProcessorMockGeneratePrivateKeyExpectation added in v0.7.5

type KeyProcessorMockGeneratePrivateKeyExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

KeyProcessorMockGeneratePrivateKeyExpectation specifies expectation struct of the KeyProcessor.GeneratePrivateKey

type KeyProcessorMockGeneratePrivateKeyResults

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

KeyProcessorMockGeneratePrivateKeyResults contains results of the KeyProcessor.GeneratePrivateKey

type KeyProcessorMockImportPrivateKeyPEMExpectation added in v0.7.5

type KeyProcessorMockImportPrivateKeyPEMExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

KeyProcessorMockImportPrivateKeyPEMExpectation specifies expectation struct of the KeyProcessor.ImportPrivateKeyPEM

func (*KeyProcessorMockImportPrivateKeyPEMExpectation) Then

Then sets up KeyProcessor.ImportPrivateKeyPEM return parameters for the expectation previously defined by the When method

type KeyProcessorMockImportPrivateKeyPEMParams

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

KeyProcessorMockImportPrivateKeyPEMParams contains parameters of the KeyProcessor.ImportPrivateKeyPEM

type KeyProcessorMockImportPrivateKeyPEMResults

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

KeyProcessorMockImportPrivateKeyPEMResults contains results of the KeyProcessor.ImportPrivateKeyPEM

type KeyProcessorMockImportPublicKeyBinaryExpectation added in v0.7.5

type KeyProcessorMockImportPublicKeyBinaryExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

KeyProcessorMockImportPublicKeyBinaryExpectation specifies expectation struct of the KeyProcessor.ImportPublicKeyBinary

func (*KeyProcessorMockImportPublicKeyBinaryExpectation) Then

Then sets up KeyProcessor.ImportPublicKeyBinary return parameters for the expectation previously defined by the When method

type KeyProcessorMockImportPublicKeyBinaryParams

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

KeyProcessorMockImportPublicKeyBinaryParams contains parameters of the KeyProcessor.ImportPublicKeyBinary

type KeyProcessorMockImportPublicKeyBinaryResults

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

KeyProcessorMockImportPublicKeyBinaryResults contains results of the KeyProcessor.ImportPublicKeyBinary

type KeyProcessorMockImportPublicKeyPEMExpectation added in v0.7.5

type KeyProcessorMockImportPublicKeyPEMExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

KeyProcessorMockImportPublicKeyPEMExpectation specifies expectation struct of the KeyProcessor.ImportPublicKeyPEM

func (*KeyProcessorMockImportPublicKeyPEMExpectation) Then

Then sets up KeyProcessor.ImportPublicKeyPEM return parameters for the expectation previously defined by the When method

type KeyProcessorMockImportPublicKeyPEMParams

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

KeyProcessorMockImportPublicKeyPEMParams contains parameters of the KeyProcessor.ImportPublicKeyPEM

type KeyProcessorMockImportPublicKeyPEMResults

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

KeyProcessorMockImportPublicKeyPEMResults contains results of the KeyProcessor.ImportPublicKeyPEM

type LeaverMock

type LeaverMock struct {
	LeaveMock mLeaverMockLeave
	// contains filtered or unexported fields
}

LeaverMock implements insolar.Leaver

func NewLeaverMock

func NewLeaverMock(t minimock.Tester) *LeaverMock

NewLeaverMock returns a mock for insolar.Leaver

func (*LeaverMock) Leave

func (mmLeave *LeaverMock) Leave(ctx context.Context, ETA mm_insolar.PulseNumber)

Leave implements insolar.Leaver

func (*LeaverMock) LeaveAfterCounter

func (mmLeave *LeaverMock) LeaveAfterCounter() uint64

LeaveAfterCounter returns a count of finished LeaverMock.Leave invocations

func (*LeaverMock) LeaveBeforeCounter

func (mmLeave *LeaverMock) LeaveBeforeCounter() uint64

LeaveBeforeCounter returns a count of LeaverMock.Leave invocations

func (*LeaverMock) MinimockFinish

func (m *LeaverMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*LeaverMock) MinimockLeaveDone

func (m *LeaverMock) MinimockLeaveDone() bool

MinimockLeaveDone returns true if the count of the Leave invocations corresponds the number of defined expectations

func (*LeaverMock) MinimockLeaveInspect

func (m *LeaverMock) MinimockLeaveInspect()

MinimockLeaveInspect logs each unmet expectation

func (*LeaverMock) MinimockWait

func (m *LeaverMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

type LeaverMockLeaveExpectation

type LeaverMockLeaveExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

LeaverMockLeaveExpectation specifies expectation struct of the Leaver.Leave

type LeaverMockLeaveParams

type LeaverMockLeaveParams struct {
	ETA mm_insolar.PulseNumber
	// contains filtered or unexported fields
}

LeaverMockLeaveParams contains parameters of the Leaver.Leave

type LogicRunnerMock added in v0.6.3

type LogicRunnerMock struct {
	AddUnwantedResponseMock mLogicRunnerMockAddUnwantedResponse

	LRIMock mLogicRunnerMockLRI

	OnPulseMock mLogicRunnerMockOnPulse
	// contains filtered or unexported fields
}

LogicRunnerMock implements insolar.LogicRunner

func NewLogicRunnerMock added in v0.6.3

func NewLogicRunnerMock(t minimock.Tester) *LogicRunnerMock

NewLogicRunnerMock returns a mock for insolar.LogicRunner

func (*LogicRunnerMock) AddUnwantedResponse

func (mmAddUnwantedResponse *LogicRunnerMock) AddUnwantedResponse(ctx context.Context, msg mm_insolar.Payload) (err error)

AddUnwantedResponse implements insolar.LogicRunner

func (*LogicRunnerMock) AddUnwantedResponseAfterCounter

func (mmAddUnwantedResponse *LogicRunnerMock) AddUnwantedResponseAfterCounter() uint64

AddUnwantedResponseAfterCounter returns a count of finished LogicRunnerMock.AddUnwantedResponse invocations

func (*LogicRunnerMock) AddUnwantedResponseBeforeCounter

func (mmAddUnwantedResponse *LogicRunnerMock) AddUnwantedResponseBeforeCounter() uint64

AddUnwantedResponseBeforeCounter returns a count of LogicRunnerMock.AddUnwantedResponse invocations

func (*LogicRunnerMock) LRI

func (mmLRI *LogicRunnerMock) LRI()

LRI implements insolar.LogicRunner

func (*LogicRunnerMock) LRIAfterCounter

func (mmLRI *LogicRunnerMock) LRIAfterCounter() uint64

LRIAfterCounter returns a count of finished LogicRunnerMock.LRI invocations

func (*LogicRunnerMock) LRIBeforeCounter

func (mmLRI *LogicRunnerMock) LRIBeforeCounter() uint64

LRIBeforeCounter returns a count of LogicRunnerMock.LRI invocations

func (*LogicRunnerMock) MinimockAddUnwantedResponseDone

func (m *LogicRunnerMock) MinimockAddUnwantedResponseDone() bool

MinimockAddUnwantedResponseDone returns true if the count of the AddUnwantedResponse invocations corresponds the number of defined expectations

func (*LogicRunnerMock) MinimockAddUnwantedResponseInspect

func (m *LogicRunnerMock) MinimockAddUnwantedResponseInspect()

MinimockAddUnwantedResponseInspect logs each unmet expectation

func (*LogicRunnerMock) MinimockFinish added in v0.6.3

func (m *LogicRunnerMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*LogicRunnerMock) MinimockLRIDone

func (m *LogicRunnerMock) MinimockLRIDone() bool

MinimockLRIDone returns true if the count of the LRI invocations corresponds the number of defined expectations

func (*LogicRunnerMock) MinimockLRIInspect

func (m *LogicRunnerMock) MinimockLRIInspect()

MinimockLRIInspect logs each unmet expectation

func (*LogicRunnerMock) MinimockOnPulseDone

func (m *LogicRunnerMock) MinimockOnPulseDone() bool

MinimockOnPulseDone returns true if the count of the OnPulse invocations corresponds the number of defined expectations

func (*LogicRunnerMock) MinimockOnPulseInspect

func (m *LogicRunnerMock) MinimockOnPulseInspect()

MinimockOnPulseInspect logs each unmet expectation

func (*LogicRunnerMock) MinimockWait added in v0.6.3

func (m *LogicRunnerMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*LogicRunnerMock) OnPulse added in v0.6.3

func (mmOnPulse *LogicRunnerMock) OnPulse(ctx context.Context, p1 mm_insolar.Pulse, p2 mm_insolar.Pulse) (err error)

OnPulse implements insolar.LogicRunner

func (*LogicRunnerMock) OnPulseAfterCounter

func (mmOnPulse *LogicRunnerMock) OnPulseAfterCounter() uint64

OnPulseAfterCounter returns a count of finished LogicRunnerMock.OnPulse invocations

func (*LogicRunnerMock) OnPulseBeforeCounter

func (mmOnPulse *LogicRunnerMock) OnPulseBeforeCounter() uint64

OnPulseBeforeCounter returns a count of LogicRunnerMock.OnPulse invocations

type LogicRunnerMockAddUnwantedResponseExpectation

type LogicRunnerMockAddUnwantedResponseExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

LogicRunnerMockAddUnwantedResponseExpectation specifies expectation struct of the LogicRunner.AddUnwantedResponse

func (*LogicRunnerMockAddUnwantedResponseExpectation) Then

Then sets up LogicRunner.AddUnwantedResponse return parameters for the expectation previously defined by the When method

type LogicRunnerMockAddUnwantedResponseParams

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

LogicRunnerMockAddUnwantedResponseParams contains parameters of the LogicRunner.AddUnwantedResponse

type LogicRunnerMockAddUnwantedResponseResults

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

LogicRunnerMockAddUnwantedResponseResults contains results of the LogicRunner.AddUnwantedResponse

type LogicRunnerMockLRIExpectation

type LogicRunnerMockLRIExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

LogicRunnerMockLRIExpectation specifies expectation struct of the LogicRunner.LRI

type LogicRunnerMockOnPulseExpectation added in v0.7.5

type LogicRunnerMockOnPulseExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

LogicRunnerMockOnPulseExpectation specifies expectation struct of the LogicRunner.OnPulse

func (*LogicRunnerMockOnPulseExpectation) Then

Then sets up LogicRunner.OnPulse return parameters for the expectation previously defined by the When method

type LogicRunnerMockOnPulseParams added in v0.6.3

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

LogicRunnerMockOnPulseParams contains parameters of the LogicRunner.OnPulse

type LogicRunnerMockOnPulseResults

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

LogicRunnerMockOnPulseResults contains results of the LogicRunner.OnPulse

type MachineLogicExecutorMock added in v0.8.0

type MachineLogicExecutorMock struct {
	CallConstructorMock mMachineLogicExecutorMockCallConstructor

	CallMethodMock mMachineLogicExecutorMockCallMethod
	// contains filtered or unexported fields
}

MachineLogicExecutorMock implements insolar.MachineLogicExecutor

func NewMachineLogicExecutorMock added in v0.8.0

func NewMachineLogicExecutorMock(t minimock.Tester) *MachineLogicExecutorMock

NewMachineLogicExecutorMock returns a mock for insolar.MachineLogicExecutor

func (*MachineLogicExecutorMock) CallConstructor added in v0.8.0

func (mmCallConstructor *MachineLogicExecutorMock) CallConstructor(ctx context.Context, callContext *mm_insolar.LogicCallContext, code mm_insolar.Reference, name string, args mm_insolar.Arguments) (objectState []byte, result mm_insolar.Arguments, err error)

CallConstructor implements insolar.MachineLogicExecutor

func (*MachineLogicExecutorMock) CallConstructorAfterCounter

func (mmCallConstructor *MachineLogicExecutorMock) CallConstructorAfterCounter() uint64

CallConstructorAfterCounter returns a count of finished MachineLogicExecutorMock.CallConstructor invocations

func (*MachineLogicExecutorMock) CallConstructorBeforeCounter

func (mmCallConstructor *MachineLogicExecutorMock) CallConstructorBeforeCounter() uint64

CallConstructorBeforeCounter returns a count of MachineLogicExecutorMock.CallConstructor invocations

func (*MachineLogicExecutorMock) CallMethod added in v0.8.0

func (mmCallMethod *MachineLogicExecutorMock) CallMethod(ctx context.Context, callContext *mm_insolar.LogicCallContext, code mm_insolar.Reference, data []byte, method string, args mm_insolar.Arguments) (newObjectState []byte, methodResults mm_insolar.Arguments, err error)

CallMethod implements insolar.MachineLogicExecutor

func (*MachineLogicExecutorMock) CallMethodAfterCounter

func (mmCallMethod *MachineLogicExecutorMock) CallMethodAfterCounter() uint64

CallMethodAfterCounter returns a count of finished MachineLogicExecutorMock.CallMethod invocations

func (*MachineLogicExecutorMock) CallMethodBeforeCounter

func (mmCallMethod *MachineLogicExecutorMock) CallMethodBeforeCounter() uint64

CallMethodBeforeCounter returns a count of MachineLogicExecutorMock.CallMethod invocations

func (*MachineLogicExecutorMock) MinimockCallConstructorDone

func (m *MachineLogicExecutorMock) MinimockCallConstructorDone() bool

MinimockCallConstructorDone returns true if the count of the CallConstructor invocations corresponds the number of defined expectations

func (*MachineLogicExecutorMock) MinimockCallConstructorInspect

func (m *MachineLogicExecutorMock) MinimockCallConstructorInspect()

MinimockCallConstructorInspect logs each unmet expectation

func (*MachineLogicExecutorMock) MinimockCallMethodDone

func (m *MachineLogicExecutorMock) MinimockCallMethodDone() bool

MinimockCallMethodDone returns true if the count of the CallMethod invocations corresponds the number of defined expectations

func (*MachineLogicExecutorMock) MinimockCallMethodInspect

func (m *MachineLogicExecutorMock) MinimockCallMethodInspect()

MinimockCallMethodInspect logs each unmet expectation

func (*MachineLogicExecutorMock) MinimockFinish added in v0.8.0

func (m *MachineLogicExecutorMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*MachineLogicExecutorMock) MinimockWait added in v0.8.0

func (m *MachineLogicExecutorMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

type MachineLogicExecutorMockCallConstructorExpectation added in v0.8.0

type MachineLogicExecutorMockCallConstructorExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

MachineLogicExecutorMockCallConstructorExpectation specifies expectation struct of the MachineLogicExecutor.CallConstructor

func (*MachineLogicExecutorMockCallConstructorExpectation) Then

Then sets up MachineLogicExecutor.CallConstructor return parameters for the expectation previously defined by the When method

type MachineLogicExecutorMockCallConstructorParams

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

MachineLogicExecutorMockCallConstructorParams contains parameters of the MachineLogicExecutor.CallConstructor

type MachineLogicExecutorMockCallConstructorResults

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

MachineLogicExecutorMockCallConstructorResults contains results of the MachineLogicExecutor.CallConstructor

type MachineLogicExecutorMockCallMethodExpectation added in v0.8.0

type MachineLogicExecutorMockCallMethodExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

MachineLogicExecutorMockCallMethodExpectation specifies expectation struct of the MachineLogicExecutor.CallMethod

func (*MachineLogicExecutorMockCallMethodExpectation) Then

Then sets up MachineLogicExecutor.CallMethod return parameters for the expectation previously defined by the When method

type MachineLogicExecutorMockCallMethodParams

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

MachineLogicExecutorMockCallMethodParams contains parameters of the MachineLogicExecutor.CallMethod

type MachineLogicExecutorMockCallMethodResults

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

MachineLogicExecutorMockCallMethodResults contains results of the MachineLogicExecutor.CallMethod

type ParcelMock added in v0.7.5

type ParcelMock struct {
	AllowedSenderObjectAndRoleMock mParcelMockAllowedSenderObjectAndRole

	ContextMock mParcelMockContext

	DefaultRoleMock mParcelMockDefaultRole

	DefaultTargetMock mParcelMockDefaultTarget

	GetCallerMock mParcelMockGetCaller

	GetSenderMock mParcelMockGetSender

	GetSignMock mParcelMockGetSign

	MessageMock mParcelMockMessage

	PulseMock mParcelMockPulse

	SetSenderMock mParcelMockSetSender

	TypeMock mParcelMockType
	// contains filtered or unexported fields
}

ParcelMock implements insolar.Parcel

func NewParcelMock added in v0.7.5

func NewParcelMock(t minimock.Tester) *ParcelMock

NewParcelMock returns a mock for insolar.Parcel

func (*ParcelMock) AllowedSenderObjectAndRole added in v0.7.5

func (mmAllowedSenderObjectAndRole *ParcelMock) AllowedSenderObjectAndRole() (rp1 *mm_insolar.Reference, d1 mm_insolar.DynamicRole)

AllowedSenderObjectAndRole implements insolar.Parcel

func (*ParcelMock) AllowedSenderObjectAndRoleAfterCounter

func (mmAllowedSenderObjectAndRole *ParcelMock) AllowedSenderObjectAndRoleAfterCounter() uint64

AllowedSenderObjectAndRoleAfterCounter returns a count of finished ParcelMock.AllowedSenderObjectAndRole invocations

func (*ParcelMock) AllowedSenderObjectAndRoleBeforeCounter

func (mmAllowedSenderObjectAndRole *ParcelMock) AllowedSenderObjectAndRoleBeforeCounter() uint64

AllowedSenderObjectAndRoleBeforeCounter returns a count of ParcelMock.AllowedSenderObjectAndRole invocations

func (*ParcelMock) Context added in v0.7.5

func (mmContext *ParcelMock) Context(ctx context.Context) (c2 context.Context)

Context implements insolar.Parcel

func (*ParcelMock) ContextAfterCounter

func (mmContext *ParcelMock) ContextAfterCounter() uint64

ContextAfterCounter returns a count of finished ParcelMock.Context invocations

func (*ParcelMock) ContextBeforeCounter

func (mmContext *ParcelMock) ContextBeforeCounter() uint64

ContextBeforeCounter returns a count of ParcelMock.Context invocations

func (*ParcelMock) DefaultRole added in v0.7.5

func (mmDefaultRole *ParcelMock) DefaultRole() (d1 mm_insolar.DynamicRole)

DefaultRole implements insolar.Parcel

func (*ParcelMock) DefaultRoleAfterCounter

func (mmDefaultRole *ParcelMock) DefaultRoleAfterCounter() uint64

DefaultRoleAfterCounter returns a count of finished ParcelMock.DefaultRole invocations

func (*ParcelMock) DefaultRoleBeforeCounter

func (mmDefaultRole *ParcelMock) DefaultRoleBeforeCounter() uint64

DefaultRoleBeforeCounter returns a count of ParcelMock.DefaultRole invocations

func (*ParcelMock) DefaultTarget added in v0.7.5

func (mmDefaultTarget *ParcelMock) DefaultTarget() (rp1 *mm_insolar.Reference)

DefaultTarget implements insolar.Parcel

func (*ParcelMock) DefaultTargetAfterCounter

func (mmDefaultTarget *ParcelMock) DefaultTargetAfterCounter() uint64

DefaultTargetAfterCounter returns a count of finished ParcelMock.DefaultTarget invocations

func (*ParcelMock) DefaultTargetBeforeCounter

func (mmDefaultTarget *ParcelMock) DefaultTargetBeforeCounter() uint64

DefaultTargetBeforeCounter returns a count of ParcelMock.DefaultTarget invocations

func (*ParcelMock) GetCaller added in v0.7.5

func (mmGetCaller *ParcelMock) GetCaller() (rp1 *mm_insolar.Reference)

GetCaller implements insolar.Parcel

func (*ParcelMock) GetCallerAfterCounter

func (mmGetCaller *ParcelMock) GetCallerAfterCounter() uint64

GetCallerAfterCounter returns a count of finished ParcelMock.GetCaller invocations

func (*ParcelMock) GetCallerBeforeCounter

func (mmGetCaller *ParcelMock) GetCallerBeforeCounter() uint64

GetCallerBeforeCounter returns a count of ParcelMock.GetCaller invocations

func (*ParcelMock) GetSender added in v0.7.5

func (mmGetSender *ParcelMock) GetSender() (r1 mm_insolar.Reference)

GetSender implements insolar.Parcel

func (*ParcelMock) GetSenderAfterCounter

func (mmGetSender *ParcelMock) GetSenderAfterCounter() uint64

GetSenderAfterCounter returns a count of finished ParcelMock.GetSender invocations

func (*ParcelMock) GetSenderBeforeCounter

func (mmGetSender *ParcelMock) GetSenderBeforeCounter() uint64

GetSenderBeforeCounter returns a count of ParcelMock.GetSender invocations

func (*ParcelMock) GetSign added in v0.7.5

func (mmGetSign *ParcelMock) GetSign() (ba1 []byte)

GetSign implements insolar.Parcel

func (*ParcelMock) GetSignAfterCounter

func (mmGetSign *ParcelMock) GetSignAfterCounter() uint64

GetSignAfterCounter returns a count of finished ParcelMock.GetSign invocations

func (*ParcelMock) GetSignBeforeCounter

func (mmGetSign *ParcelMock) GetSignBeforeCounter() uint64

GetSignBeforeCounter returns a count of ParcelMock.GetSign invocations

func (*ParcelMock) Message added in v0.7.5

func (mmMessage *ParcelMock) Message() (m1 mm_insolar.Message)

Message implements insolar.Parcel

func (*ParcelMock) MessageAfterCounter

func (mmMessage *ParcelMock) MessageAfterCounter() uint64

MessageAfterCounter returns a count of finished ParcelMock.Message invocations

func (*ParcelMock) MessageBeforeCounter

func (mmMessage *ParcelMock) MessageBeforeCounter() uint64

MessageBeforeCounter returns a count of ParcelMock.Message invocations

func (*ParcelMock) MinimockAllowedSenderObjectAndRoleDone

func (m *ParcelMock) MinimockAllowedSenderObjectAndRoleDone() bool

MinimockAllowedSenderObjectAndRoleDone returns true if the count of the AllowedSenderObjectAndRole invocations corresponds the number of defined expectations

func (*ParcelMock) MinimockAllowedSenderObjectAndRoleInspect

func (m *ParcelMock) MinimockAllowedSenderObjectAndRoleInspect()

MinimockAllowedSenderObjectAndRoleInspect logs each unmet expectation

func (*ParcelMock) MinimockContextDone

func (m *ParcelMock) MinimockContextDone() bool

MinimockContextDone returns true if the count of the Context invocations corresponds the number of defined expectations

func (*ParcelMock) MinimockContextInspect

func (m *ParcelMock) MinimockContextInspect()

MinimockContextInspect logs each unmet expectation

func (*ParcelMock) MinimockDefaultRoleDone

func (m *ParcelMock) MinimockDefaultRoleDone() bool

MinimockDefaultRoleDone returns true if the count of the DefaultRole invocations corresponds the number of defined expectations

func (*ParcelMock) MinimockDefaultRoleInspect

func (m *ParcelMock) MinimockDefaultRoleInspect()

MinimockDefaultRoleInspect logs each unmet expectation

func (*ParcelMock) MinimockDefaultTargetDone

func (m *ParcelMock) MinimockDefaultTargetDone() bool

MinimockDefaultTargetDone returns true if the count of the DefaultTarget invocations corresponds the number of defined expectations

func (*ParcelMock) MinimockDefaultTargetInspect

func (m *ParcelMock) MinimockDefaultTargetInspect()

MinimockDefaultTargetInspect logs each unmet expectation

func (*ParcelMock) MinimockFinish added in v0.7.5

func (m *ParcelMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*ParcelMock) MinimockGetCallerDone

func (m *ParcelMock) MinimockGetCallerDone() bool

MinimockGetCallerDone returns true if the count of the GetCaller invocations corresponds the number of defined expectations

func (*ParcelMock) MinimockGetCallerInspect

func (m *ParcelMock) MinimockGetCallerInspect()

MinimockGetCallerInspect logs each unmet expectation

func (*ParcelMock) MinimockGetSenderDone

func (m *ParcelMock) MinimockGetSenderDone() bool

MinimockGetSenderDone returns true if the count of the GetSender invocations corresponds the number of defined expectations

func (*ParcelMock) MinimockGetSenderInspect

func (m *ParcelMock) MinimockGetSenderInspect()

MinimockGetSenderInspect logs each unmet expectation

func (*ParcelMock) MinimockGetSignDone

func (m *ParcelMock) MinimockGetSignDone() bool

MinimockGetSignDone returns true if the count of the GetSign invocations corresponds the number of defined expectations

func (*ParcelMock) MinimockGetSignInspect

func (m *ParcelMock) MinimockGetSignInspect()

MinimockGetSignInspect logs each unmet expectation

func (*ParcelMock) MinimockMessageDone

func (m *ParcelMock) MinimockMessageDone() bool

MinimockMessageDone returns true if the count of the Message invocations corresponds the number of defined expectations

func (*ParcelMock) MinimockMessageInspect

func (m *ParcelMock) MinimockMessageInspect()

MinimockMessageInspect logs each unmet expectation

func (*ParcelMock) MinimockPulseDone

func (m *ParcelMock) MinimockPulseDone() bool

MinimockPulseDone returns true if the count of the Pulse invocations corresponds the number of defined expectations

func (*ParcelMock) MinimockPulseInspect

func (m *ParcelMock) MinimockPulseInspect()

MinimockPulseInspect logs each unmet expectation

func (*ParcelMock) MinimockSetSenderDone

func (m *ParcelMock) MinimockSetSenderDone() bool

MinimockSetSenderDone returns true if the count of the SetSender invocations corresponds the number of defined expectations

func (*ParcelMock) MinimockSetSenderInspect

func (m *ParcelMock) MinimockSetSenderInspect()

MinimockSetSenderInspect logs each unmet expectation

func (*ParcelMock) MinimockTypeDone

func (m *ParcelMock) MinimockTypeDone() bool

MinimockTypeDone returns true if the count of the Type invocations corresponds the number of defined expectations

func (*ParcelMock) MinimockTypeInspect

func (m *ParcelMock) MinimockTypeInspect()

MinimockTypeInspect logs each unmet expectation

func (*ParcelMock) MinimockWait added in v0.7.5

func (m *ParcelMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*ParcelMock) Pulse added in v0.7.5

func (mmPulse *ParcelMock) Pulse() (p1 mm_insolar.PulseNumber)

Pulse implements insolar.Parcel

func (*ParcelMock) PulseAfterCounter

func (mmPulse *ParcelMock) PulseAfterCounter() uint64

PulseAfterCounter returns a count of finished ParcelMock.Pulse invocations

func (*ParcelMock) PulseBeforeCounter

func (mmPulse *ParcelMock) PulseBeforeCounter() uint64

PulseBeforeCounter returns a count of ParcelMock.Pulse invocations

func (*ParcelMock) SetSender

func (mmSetSender *ParcelMock) SetSender(r1 mm_insolar.Reference)

SetSender implements insolar.Parcel

func (*ParcelMock) SetSenderAfterCounter

func (mmSetSender *ParcelMock) SetSenderAfterCounter() uint64

SetSenderAfterCounter returns a count of finished ParcelMock.SetSender invocations

func (*ParcelMock) SetSenderBeforeCounter

func (mmSetSender *ParcelMock) SetSenderBeforeCounter() uint64

SetSenderBeforeCounter returns a count of ParcelMock.SetSender invocations

func (*ParcelMock) Type added in v0.7.5

func (mmType *ParcelMock) Type() (m1 mm_insolar.MessageType)

Type implements insolar.Parcel

func (*ParcelMock) TypeAfterCounter

func (mmType *ParcelMock) TypeAfterCounter() uint64

TypeAfterCounter returns a count of finished ParcelMock.Type invocations

func (*ParcelMock) TypeBeforeCounter

func (mmType *ParcelMock) TypeBeforeCounter() uint64

TypeBeforeCounter returns a count of ParcelMock.Type invocations

type ParcelMockAllowedSenderObjectAndRoleExpectation added in v0.7.5

type ParcelMockAllowedSenderObjectAndRoleExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ParcelMockAllowedSenderObjectAndRoleExpectation specifies expectation struct of the Parcel.AllowedSenderObjectAndRole

type ParcelMockAllowedSenderObjectAndRoleResults

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

ParcelMockAllowedSenderObjectAndRoleResults contains results of the Parcel.AllowedSenderObjectAndRole

type ParcelMockContextExpectation added in v0.7.5

type ParcelMockContextExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ParcelMockContextExpectation specifies expectation struct of the Parcel.Context

func (*ParcelMockContextExpectation) Then

Then sets up Parcel.Context return parameters for the expectation previously defined by the When method

type ParcelMockContextParams

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

ParcelMockContextParams contains parameters of the Parcel.Context

type ParcelMockContextResults

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

ParcelMockContextResults contains results of the Parcel.Context

type ParcelMockDefaultRoleExpectation added in v0.7.5

type ParcelMockDefaultRoleExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ParcelMockDefaultRoleExpectation specifies expectation struct of the Parcel.DefaultRole

type ParcelMockDefaultRoleResults

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

ParcelMockDefaultRoleResults contains results of the Parcel.DefaultRole

type ParcelMockDefaultTargetExpectation added in v0.7.5

type ParcelMockDefaultTargetExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ParcelMockDefaultTargetExpectation specifies expectation struct of the Parcel.DefaultTarget

type ParcelMockDefaultTargetResults

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

ParcelMockDefaultTargetResults contains results of the Parcel.DefaultTarget

type ParcelMockGetCallerExpectation added in v0.7.5

type ParcelMockGetCallerExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ParcelMockGetCallerExpectation specifies expectation struct of the Parcel.GetCaller

type ParcelMockGetCallerResults

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

ParcelMockGetCallerResults contains results of the Parcel.GetCaller

type ParcelMockGetSenderExpectation added in v0.7.5

type ParcelMockGetSenderExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ParcelMockGetSenderExpectation specifies expectation struct of the Parcel.GetSender

type ParcelMockGetSenderResults

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

ParcelMockGetSenderResults contains results of the Parcel.GetSender

type ParcelMockGetSignExpectation added in v0.7.5

type ParcelMockGetSignExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ParcelMockGetSignExpectation specifies expectation struct of the Parcel.GetSign

type ParcelMockGetSignResults

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

ParcelMockGetSignResults contains results of the Parcel.GetSign

type ParcelMockMessageExpectation added in v0.7.5

type ParcelMockMessageExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ParcelMockMessageExpectation specifies expectation struct of the Parcel.Message

type ParcelMockMessageResults

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

ParcelMockMessageResults contains results of the Parcel.Message

type ParcelMockPulseExpectation added in v0.7.5

type ParcelMockPulseExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ParcelMockPulseExpectation specifies expectation struct of the Parcel.Pulse

type ParcelMockPulseResults

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

ParcelMockPulseResults contains results of the Parcel.Pulse

type ParcelMockSetSenderExpectation

type ParcelMockSetSenderExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ParcelMockSetSenderExpectation specifies expectation struct of the Parcel.SetSender

type ParcelMockSetSenderParams

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

ParcelMockSetSenderParams contains parameters of the Parcel.SetSender

type ParcelMockTypeExpectation added in v0.7.5

type ParcelMockTypeExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

ParcelMockTypeExpectation specifies expectation struct of the Parcel.Type

type ParcelMockTypeResults

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

ParcelMockTypeResults contains results of the Parcel.Type

type PulseDistributorMock added in v0.7.5

type PulseDistributorMock struct {
	DistributeMock mPulseDistributorMockDistribute
	// contains filtered or unexported fields
}

PulseDistributorMock implements insolar.PulseDistributor

func NewPulseDistributorMock added in v0.7.5

func NewPulseDistributorMock(t minimock.Tester) *PulseDistributorMock

NewPulseDistributorMock returns a mock for insolar.PulseDistributor

func (*PulseDistributorMock) Distribute added in v0.7.5

func (mmDistribute *PulseDistributorMock) Distribute(ctx context.Context, p1 mm_insolar.Pulse)

Distribute implements insolar.PulseDistributor

func (*PulseDistributorMock) DistributeAfterCounter

func (mmDistribute *PulseDistributorMock) DistributeAfterCounter() uint64

DistributeAfterCounter returns a count of finished PulseDistributorMock.Distribute invocations

func (*PulseDistributorMock) DistributeBeforeCounter

func (mmDistribute *PulseDistributorMock) DistributeBeforeCounter() uint64

DistributeBeforeCounter returns a count of PulseDistributorMock.Distribute invocations

func (*PulseDistributorMock) MinimockDistributeDone

func (m *PulseDistributorMock) MinimockDistributeDone() bool

MinimockDistributeDone returns true if the count of the Distribute invocations corresponds the number of defined expectations

func (*PulseDistributorMock) MinimockDistributeInspect

func (m *PulseDistributorMock) MinimockDistributeInspect()

MinimockDistributeInspect logs each unmet expectation

func (*PulseDistributorMock) MinimockFinish added in v0.7.5

func (m *PulseDistributorMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*PulseDistributorMock) MinimockWait added in v0.7.5

func (m *PulseDistributorMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

type PulseDistributorMockDistributeExpectation added in v0.7.5

type PulseDistributorMockDistributeExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

PulseDistributorMockDistributeExpectation specifies expectation struct of the PulseDistributor.Distribute

type PulseDistributorMockDistributeParams

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

PulseDistributorMockDistributeParams contains parameters of the PulseDistributor.Distribute

type PulseManagerMock added in v0.6.3

type PulseManagerMock struct {
	SetMock mPulseManagerMockSet
	// contains filtered or unexported fields
}

PulseManagerMock implements insolar.PulseManager

func NewPulseManagerMock added in v0.6.3

func NewPulseManagerMock(t minimock.Tester) *PulseManagerMock

NewPulseManagerMock returns a mock for insolar.PulseManager

func (*PulseManagerMock) MinimockFinish added in v0.6.3

func (m *PulseManagerMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*PulseManagerMock) MinimockSetDone

func (m *PulseManagerMock) MinimockSetDone() bool

MinimockSetDone returns true if the count of the Set invocations corresponds the number of defined expectations

func (*PulseManagerMock) MinimockSetInspect

func (m *PulseManagerMock) MinimockSetInspect()

MinimockSetInspect logs each unmet expectation

func (*PulseManagerMock) MinimockWait added in v0.6.3

func (m *PulseManagerMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*PulseManagerMock) Set added in v0.6.3

func (mmSet *PulseManagerMock) Set(ctx context.Context, pulse mm_insolar.Pulse) (err error)

Set implements insolar.PulseManager

func (*PulseManagerMock) SetAfterCounter

func (mmSet *PulseManagerMock) SetAfterCounter() uint64

SetAfterCounter returns a count of finished PulseManagerMock.Set invocations

func (*PulseManagerMock) SetBeforeCounter

func (mmSet *PulseManagerMock) SetBeforeCounter() uint64

SetBeforeCounter returns a count of PulseManagerMock.Set invocations

type PulseManagerMockSetExpectation added in v0.7.5

type PulseManagerMockSetExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

PulseManagerMockSetExpectation specifies expectation struct of the PulseManager.Set

func (*PulseManagerMockSetExpectation) Then

Then sets up PulseManager.Set return parameters for the expectation previously defined by the When method

type PulseManagerMockSetParams added in v0.6.3

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

PulseManagerMockSetParams contains parameters of the PulseManager.Set

type PulseManagerMockSetResults

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

PulseManagerMockSetResults contains results of the PulseManager.Set

type SyncT

type SyncT struct {
	*testing.T
	// contains filtered or unexported fields
}

func (*SyncT) Error

func (t *SyncT) Error(args ...interface{})

func (*SyncT) Errorf

func (t *SyncT) Errorf(format string, args ...interface{})

func (*SyncT) Fail

func (t *SyncT) Fail()

func (*SyncT) FailNow

func (t *SyncT) FailNow()

func (*SyncT) Failed

func (t *SyncT) Failed() bool

func (*SyncT) Fatal

func (t *SyncT) Fatal(args ...interface{})

func (*SyncT) Fatalf

func (t *SyncT) Fatalf(format string, args ...interface{})

func (*SyncT) Helper

func (t *SyncT) Helper()

func (*SyncT) Log

func (t *SyncT) Log(args ...interface{})

func (*SyncT) Logf

func (t *SyncT) Logf(format string, args ...interface{})

func (*SyncT) Name

func (t *SyncT) Name() string

func (*SyncT) Skip

func (t *SyncT) Skip(args ...interface{})

func (*SyncT) SkipNow

func (t *SyncT) SkipNow()

func (*SyncT) Skipf

func (t *SyncT) Skipf(format string, args ...interface{})

func (*SyncT) Skipped

func (t *SyncT) Skipped() bool

type TerminationHandlerMock

type TerminationHandlerMock struct {
	AbortMock mTerminationHandlerMockAbort

	LeaveMock mTerminationHandlerMockLeave

	OnLeaveApprovedMock mTerminationHandlerMockOnLeaveApproved

	TerminatingMock mTerminationHandlerMockTerminating
	// contains filtered or unexported fields
}

TerminationHandlerMock implements insolar.TerminationHandler

func NewTerminationHandlerMock

func NewTerminationHandlerMock(t minimock.Tester) *TerminationHandlerMock

NewTerminationHandlerMock returns a mock for insolar.TerminationHandler

func (*TerminationHandlerMock) Abort

func (mmAbort *TerminationHandlerMock) Abort(reason string)

Abort implements insolar.TerminationHandler

func (*TerminationHandlerMock) AbortAfterCounter

func (mmAbort *TerminationHandlerMock) AbortAfterCounter() uint64

AbortAfterCounter returns a count of finished TerminationHandlerMock.Abort invocations

func (*TerminationHandlerMock) AbortBeforeCounter

func (mmAbort *TerminationHandlerMock) AbortBeforeCounter() uint64

AbortBeforeCounter returns a count of TerminationHandlerMock.Abort invocations

func (*TerminationHandlerMock) Leave

Leave implements insolar.TerminationHandler

func (*TerminationHandlerMock) LeaveAfterCounter

func (mmLeave *TerminationHandlerMock) LeaveAfterCounter() uint64

LeaveAfterCounter returns a count of finished TerminationHandlerMock.Leave invocations

func (*TerminationHandlerMock) LeaveBeforeCounter

func (mmLeave *TerminationHandlerMock) LeaveBeforeCounter() uint64

LeaveBeforeCounter returns a count of TerminationHandlerMock.Leave invocations

func (*TerminationHandlerMock) MinimockAbortDone

func (m *TerminationHandlerMock) MinimockAbortDone() bool

MinimockAbortDone returns true if the count of the Abort invocations corresponds the number of defined expectations

func (*TerminationHandlerMock) MinimockAbortInspect

func (m *TerminationHandlerMock) MinimockAbortInspect()

MinimockAbortInspect logs each unmet expectation

func (*TerminationHandlerMock) MinimockFinish

func (m *TerminationHandlerMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*TerminationHandlerMock) MinimockLeaveDone

func (m *TerminationHandlerMock) MinimockLeaveDone() bool

MinimockLeaveDone returns true if the count of the Leave invocations corresponds the number of defined expectations

func (*TerminationHandlerMock) MinimockLeaveInspect

func (m *TerminationHandlerMock) MinimockLeaveInspect()

MinimockLeaveInspect logs each unmet expectation

func (*TerminationHandlerMock) MinimockOnLeaveApprovedDone

func (m *TerminationHandlerMock) MinimockOnLeaveApprovedDone() bool

MinimockOnLeaveApprovedDone returns true if the count of the OnLeaveApproved invocations corresponds the number of defined expectations

func (*TerminationHandlerMock) MinimockOnLeaveApprovedInspect

func (m *TerminationHandlerMock) MinimockOnLeaveApprovedInspect()

MinimockOnLeaveApprovedInspect logs each unmet expectation

func (*TerminationHandlerMock) MinimockTerminatingDone

func (m *TerminationHandlerMock) MinimockTerminatingDone() bool

MinimockTerminatingDone returns true if the count of the Terminating invocations corresponds the number of defined expectations

func (*TerminationHandlerMock) MinimockTerminatingInspect

func (m *TerminationHandlerMock) MinimockTerminatingInspect()

MinimockTerminatingInspect logs each unmet expectation

func (*TerminationHandlerMock) MinimockWait

func (m *TerminationHandlerMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*TerminationHandlerMock) OnLeaveApproved

func (mmOnLeaveApproved *TerminationHandlerMock) OnLeaveApproved(ctx context.Context)

OnLeaveApproved implements insolar.TerminationHandler

func (*TerminationHandlerMock) OnLeaveApprovedAfterCounter

func (mmOnLeaveApproved *TerminationHandlerMock) OnLeaveApprovedAfterCounter() uint64

OnLeaveApprovedAfterCounter returns a count of finished TerminationHandlerMock.OnLeaveApproved invocations

func (*TerminationHandlerMock) OnLeaveApprovedBeforeCounter

func (mmOnLeaveApproved *TerminationHandlerMock) OnLeaveApprovedBeforeCounter() uint64

OnLeaveApprovedBeforeCounter returns a count of TerminationHandlerMock.OnLeaveApproved invocations

func (*TerminationHandlerMock) Terminating

func (mmTerminating *TerminationHandlerMock) Terminating() (b1 bool)

Terminating implements insolar.TerminationHandler

func (*TerminationHandlerMock) TerminatingAfterCounter

func (mmTerminating *TerminationHandlerMock) TerminatingAfterCounter() uint64

TerminatingAfterCounter returns a count of finished TerminationHandlerMock.Terminating invocations

func (*TerminationHandlerMock) TerminatingBeforeCounter

func (mmTerminating *TerminationHandlerMock) TerminatingBeforeCounter() uint64

TerminatingBeforeCounter returns a count of TerminationHandlerMock.Terminating invocations

type TerminationHandlerMockAbortExpectation

type TerminationHandlerMockAbortExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

TerminationHandlerMockAbortExpectation specifies expectation struct of the TerminationHandler.Abort

type TerminationHandlerMockAbortParams

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

TerminationHandlerMockAbortParams contains parameters of the TerminationHandler.Abort

type TerminationHandlerMockLeaveExpectation

type TerminationHandlerMockLeaveExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

TerminationHandlerMockLeaveExpectation specifies expectation struct of the TerminationHandler.Leave

type TerminationHandlerMockLeaveParams

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

TerminationHandlerMockLeaveParams contains parameters of the TerminationHandler.Leave

type TerminationHandlerMockOnLeaveApprovedExpectation

type TerminationHandlerMockOnLeaveApprovedExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

TerminationHandlerMockOnLeaveApprovedExpectation specifies expectation struct of the TerminationHandler.OnLeaveApproved

type TerminationHandlerMockOnLeaveApprovedParams

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

TerminationHandlerMockOnLeaveApprovedParams contains parameters of the TerminationHandler.OnLeaveApproved

type TerminationHandlerMockTerminatingExpectation

type TerminationHandlerMockTerminatingExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

TerminationHandlerMockTerminatingExpectation specifies expectation struct of the TerminationHandler.Terminating

type TerminationHandlerMockTerminatingResults

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

TerminationHandlerMockTerminatingResults contains results of the TerminationHandler.Terminating

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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