Documentation ¶
Index ¶
- func GetTestNetwork(t minimock.Tester) insolar.Network
- func NewPlatformCryptographyScheme() insolar.PlatformCryptographyScheme
- func RandomString() string
- type CertificateManagerMock
- func (mmGetCertificate *CertificateManagerMock) GetCertificate() (c1 mm_insolar.Certificate)
- func (mmGetCertificate *CertificateManagerMock) GetCertificateAfterCounter() uint64
- func (mmGetCertificate *CertificateManagerMock) GetCertificateBeforeCounter() uint64
- func (m *CertificateManagerMock) MinimockFinish()
- func (m *CertificateManagerMock) MinimockGetCertificateDone() bool
- func (m *CertificateManagerMock) MinimockGetCertificateInspect()
- func (m *CertificateManagerMock) MinimockWait(timeout mm_time.Duration)
- type CertificateManagerMockGetCertificateExpectation
- type CertificateManagerMockGetCertificateResults
- type CertificateMock
- func (mmGetDiscoveryNodes *CertificateMock) GetDiscoveryNodes() (da1 []mm_insolar.DiscoveryNode)
- func (mmGetDiscoveryNodes *CertificateMock) GetDiscoveryNodesAfterCounter() uint64
- func (mmGetDiscoveryNodes *CertificateMock) GetDiscoveryNodesBeforeCounter() uint64
- func (mmGetDiscoverySigns *CertificateMock) GetDiscoverySigns() (m1 map[mm_insolar.Reference][]byte)
- func (mmGetDiscoverySigns *CertificateMock) GetDiscoverySignsAfterCounter() uint64
- func (mmGetDiscoverySigns *CertificateMock) GetDiscoverySignsBeforeCounter() uint64
- func (mmGetMajorityRule *CertificateMock) GetMajorityRule() (i1 int)
- func (mmGetMajorityRule *CertificateMock) GetMajorityRuleAfterCounter() uint64
- func (mmGetMajorityRule *CertificateMock) GetMajorityRuleBeforeCounter() uint64
- func (mmGetMinRoles *CertificateMock) GetMinRoles() (virtual uint, heavyMaterial uint, lightMaterial uint)
- func (mmGetMinRoles *CertificateMock) GetMinRolesAfterCounter() uint64
- func (mmGetMinRoles *CertificateMock) GetMinRolesBeforeCounter() uint64
- func (mmGetNodeRef *CertificateMock) GetNodeRef() (rp1 *mm_insolar.Reference)
- func (mmGetNodeRef *CertificateMock) GetNodeRefAfterCounter() uint64
- func (mmGetNodeRef *CertificateMock) GetNodeRefBeforeCounter() uint64
- func (mmGetPublicKey *CertificateMock) GetPublicKey() (p1 crypto.PublicKey)
- func (mmGetPublicKey *CertificateMock) GetPublicKeyAfterCounter() uint64
- func (mmGetPublicKey *CertificateMock) GetPublicKeyBeforeCounter() uint64
- func (mmGetRole *CertificateMock) GetRole() (s1 mm_insolar.StaticRole)
- func (mmGetRole *CertificateMock) GetRoleAfterCounter() uint64
- func (mmGetRole *CertificateMock) GetRoleBeforeCounter() uint64
- func (mmGetRootDomainReference *CertificateMock) GetRootDomainReference() (rp1 *mm_insolar.Reference)
- func (mmGetRootDomainReference *CertificateMock) GetRootDomainReferenceAfterCounter() uint64
- func (mmGetRootDomainReference *CertificateMock) GetRootDomainReferenceBeforeCounter() uint64
- func (m *CertificateMock) MinimockFinish()
- func (m *CertificateMock) MinimockGetDiscoveryNodesDone() bool
- func (m *CertificateMock) MinimockGetDiscoveryNodesInspect()
- func (m *CertificateMock) MinimockGetDiscoverySignsDone() bool
- func (m *CertificateMock) MinimockGetDiscoverySignsInspect()
- func (m *CertificateMock) MinimockGetMajorityRuleDone() bool
- func (m *CertificateMock) MinimockGetMajorityRuleInspect()
- func (m *CertificateMock) MinimockGetMinRolesDone() bool
- func (m *CertificateMock) MinimockGetMinRolesInspect()
- func (m *CertificateMock) MinimockGetNodeRefDone() bool
- func (m *CertificateMock) MinimockGetNodeRefInspect()
- func (m *CertificateMock) MinimockGetPublicKeyDone() bool
- func (m *CertificateMock) MinimockGetPublicKeyInspect()
- func (m *CertificateMock) MinimockGetRoleDone() bool
- func (m *CertificateMock) MinimockGetRoleInspect()
- func (m *CertificateMock) MinimockGetRootDomainReferenceDone() bool
- func (m *CertificateMock) MinimockGetRootDomainReferenceInspect()
- func (m *CertificateMock) MinimockSerializeNodePartDone() bool
- func (m *CertificateMock) MinimockSerializeNodePartInspect()
- func (m *CertificateMock) MinimockWait(timeout mm_time.Duration)
- func (mmSerializeNodePart *CertificateMock) SerializeNodePart() (ba1 []byte)
- func (mmSerializeNodePart *CertificateMock) SerializeNodePartAfterCounter() uint64
- func (mmSerializeNodePart *CertificateMock) SerializeNodePartBeforeCounter() uint64
- type CertificateMockGetDiscoveryNodesExpectation
- type CertificateMockGetDiscoveryNodesResults
- type CertificateMockGetDiscoverySignsExpectation
- type CertificateMockGetDiscoverySignsResults
- type CertificateMockGetMajorityRuleExpectation
- type CertificateMockGetMajorityRuleResults
- type CertificateMockGetMinRolesExpectation
- type CertificateMockGetMinRolesResults
- type CertificateMockGetNodeRefExpectation
- type CertificateMockGetNodeRefResults
- type CertificateMockGetPublicKeyExpectation
- type CertificateMockGetPublicKeyResults
- type CertificateMockGetRoleExpectation
- type CertificateMockGetRoleResults
- type CertificateMockGetRootDomainReferenceExpectation
- type CertificateMockGetRootDomainReferenceResults
- type CertificateMockSerializeNodePartExpectation
- type CertificateMockSerializeNodePartResults
- type ContractRequesterMock
- func (mmCall *ContractRequesterMock) Call(ctx context.Context, msg mm_insolar.Message) (r1 mm_insolar.Reply, rp1 *mm_insolar.Reference, err error)
- func (mmCall *ContractRequesterMock) CallAfterCounter() uint64
- func (mmCall *ContractRequesterMock) CallBeforeCounter() uint64
- func (m *ContractRequesterMock) MinimockCallDone() bool
- func (m *ContractRequesterMock) MinimockCallInspect()
- func (m *ContractRequesterMock) MinimockFinish()
- func (m *ContractRequesterMock) MinimockSendRequestDone() bool
- func (m *ContractRequesterMock) MinimockSendRequestInspect()
- func (m *ContractRequesterMock) MinimockSendRequestWithPulseDone() bool
- func (m *ContractRequesterMock) MinimockSendRequestWithPulseInspect()
- func (m *ContractRequesterMock) MinimockWait(timeout mm_time.Duration)
- func (mmSendRequest *ContractRequesterMock) SendRequest(ctx context.Context, ref *mm_insolar.Reference, method string, ...) (r1 mm_insolar.Reply, err error)
- func (mmSendRequest *ContractRequesterMock) SendRequestAfterCounter() uint64
- func (mmSendRequest *ContractRequesterMock) SendRequestBeforeCounter() uint64
- func (mmSendRequestWithPulse *ContractRequesterMock) SendRequestWithPulse(ctx context.Context, ref *mm_insolar.Reference, method string, ...) (r1 mm_insolar.Reply, rp1 *mm_insolar.Reference, err error)
- func (mmSendRequestWithPulse *ContractRequesterMock) SendRequestWithPulseAfterCounter() uint64
- func (mmSendRequestWithPulse *ContractRequesterMock) SendRequestWithPulseBeforeCounter() uint64
- type ContractRequesterMockCallExpectation
- type ContractRequesterMockCallParams
- type ContractRequesterMockCallResults
- type ContractRequesterMockSendRequestExpectation
- type ContractRequesterMockSendRequestParams
- type ContractRequesterMockSendRequestResults
- type ContractRequesterMockSendRequestWithPulseExpectation
- type ContractRequesterMockSendRequestWithPulseParams
- type ContractRequesterMockSendRequestWithPulseResults
- type CryptographyServiceMock
- func (mmGetPublicKey *CryptographyServiceMock) GetPublicKey() (p1 crypto.PublicKey, err error)
- func (mmGetPublicKey *CryptographyServiceMock) GetPublicKeyAfterCounter() uint64
- func (mmGetPublicKey *CryptographyServiceMock) GetPublicKeyBeforeCounter() uint64
- func (m *CryptographyServiceMock) MinimockFinish()
- func (m *CryptographyServiceMock) MinimockGetPublicKeyDone() bool
- func (m *CryptographyServiceMock) MinimockGetPublicKeyInspect()
- func (m *CryptographyServiceMock) MinimockSignDone() bool
- func (m *CryptographyServiceMock) MinimockSignInspect()
- func (m *CryptographyServiceMock) MinimockVerifyDone() bool
- func (m *CryptographyServiceMock) MinimockVerifyInspect()
- func (m *CryptographyServiceMock) MinimockWait(timeout mm_time.Duration)
- func (mmSign *CryptographyServiceMock) Sign(ba1 []byte) (sp1 *mm_insolar.Signature, err error)
- func (mmSign *CryptographyServiceMock) SignAfterCounter() uint64
- func (mmSign *CryptographyServiceMock) SignBeforeCounter() uint64
- func (mmVerify *CryptographyServiceMock) Verify(p1 crypto.PublicKey, s1 mm_insolar.Signature, ba1 []byte) (b1 bool)
- func (mmVerify *CryptographyServiceMock) VerifyAfterCounter() uint64
- func (mmVerify *CryptographyServiceMock) VerifyBeforeCounter() uint64
- type CryptographyServiceMockGetPublicKeyExpectation
- type CryptographyServiceMockGetPublicKeyResults
- type CryptographyServiceMockSignExpectation
- type CryptographyServiceMockSignParams
- type CryptographyServiceMockSignResults
- type CryptographyServiceMockVerifyExpectation
- type CryptographyServiceMockVerifyParams
- type CryptographyServiceMockVerifyResults
- type DelegationTokenFactoryMock
- func (mmIssuePendingExecution *DelegationTokenFactoryMock) IssuePendingExecution(msg mm_insolar.Message, pulse mm_insolar.PulseNumber) (d1 mm_insolar.DelegationToken, err error)
- func (mmIssuePendingExecution *DelegationTokenFactoryMock) IssuePendingExecutionAfterCounter() uint64
- func (mmIssuePendingExecution *DelegationTokenFactoryMock) IssuePendingExecutionBeforeCounter() uint64
- func (m *DelegationTokenFactoryMock) MinimockFinish()
- func (m *DelegationTokenFactoryMock) MinimockIssuePendingExecutionDone() bool
- func (m *DelegationTokenFactoryMock) MinimockIssuePendingExecutionInspect()
- func (m *DelegationTokenFactoryMock) MinimockVerifyDone() bool
- func (m *DelegationTokenFactoryMock) MinimockVerifyInspect()
- func (m *DelegationTokenFactoryMock) MinimockWait(timeout mm_time.Duration)
- func (mmVerify *DelegationTokenFactoryMock) Verify(parcel mm_insolar.Parcel) (b1 bool, err error)
- func (mmVerify *DelegationTokenFactoryMock) VerifyAfterCounter() uint64
- func (mmVerify *DelegationTokenFactoryMock) VerifyBeforeCounter() uint64
- type DelegationTokenFactoryMockIssuePendingExecutionExpectation
- type DelegationTokenFactoryMockIssuePendingExecutionParams
- type DelegationTokenFactoryMockIssuePendingExecutionResults
- type DelegationTokenFactoryMockVerifyExpectation
- type DelegationTokenFactoryMockVerifyParams
- type DelegationTokenFactoryMockVerifyResults
- type DiscoveryNodeMock
- func (mmGetHost *DiscoveryNodeMock) GetHost() (s1 string)
- func (mmGetHost *DiscoveryNodeMock) GetHostAfterCounter() uint64
- func (mmGetHost *DiscoveryNodeMock) GetHostBeforeCounter() uint64
- func (mmGetNodeRef *DiscoveryNodeMock) GetNodeRef() (rp1 *mm_insolar.Reference)
- func (mmGetNodeRef *DiscoveryNodeMock) GetNodeRefAfterCounter() uint64
- func (mmGetNodeRef *DiscoveryNodeMock) GetNodeRefBeforeCounter() uint64
- func (mmGetPublicKey *DiscoveryNodeMock) GetPublicKey() (p1 crypto.PublicKey)
- func (mmGetPublicKey *DiscoveryNodeMock) GetPublicKeyAfterCounter() uint64
- func (mmGetPublicKey *DiscoveryNodeMock) GetPublicKeyBeforeCounter() uint64
- func (mmGetRole *DiscoveryNodeMock) GetRole() (s1 mm_insolar.StaticRole)
- func (mmGetRole *DiscoveryNodeMock) GetRoleAfterCounter() uint64
- func (mmGetRole *DiscoveryNodeMock) GetRoleBeforeCounter() uint64
- func (m *DiscoveryNodeMock) MinimockFinish()
- func (m *DiscoveryNodeMock) MinimockGetHostDone() bool
- func (m *DiscoveryNodeMock) MinimockGetHostInspect()
- func (m *DiscoveryNodeMock) MinimockGetNodeRefDone() bool
- func (m *DiscoveryNodeMock) MinimockGetNodeRefInspect()
- func (m *DiscoveryNodeMock) MinimockGetPublicKeyDone() bool
- func (m *DiscoveryNodeMock) MinimockGetPublicKeyInspect()
- func (m *DiscoveryNodeMock) MinimockGetRoleDone() bool
- func (m *DiscoveryNodeMock) MinimockGetRoleInspect()
- func (m *DiscoveryNodeMock) MinimockWait(timeout mm_time.Duration)
- type DiscoveryNodeMockGetHostExpectation
- type DiscoveryNodeMockGetHostResults
- type DiscoveryNodeMockGetNodeRefExpectation
- type DiscoveryNodeMockGetNodeRefResults
- type DiscoveryNodeMockGetPublicKeyExpectation
- type DiscoveryNodeMockGetPublicKeyResults
- type DiscoveryNodeMockGetRoleExpectation
- type DiscoveryNodeMockGetRoleResults
- type GlobalInsolarLockMock
- func (mmAcquire *GlobalInsolarLockMock) Acquire(ctx context.Context)
- func (mmAcquire *GlobalInsolarLockMock) AcquireAfterCounter() uint64
- func (mmAcquire *GlobalInsolarLockMock) AcquireBeforeCounter() uint64
- func (m *GlobalInsolarLockMock) MinimockAcquireDone() bool
- func (m *GlobalInsolarLockMock) MinimockAcquireInspect()
- func (m *GlobalInsolarLockMock) MinimockFinish()
- func (m *GlobalInsolarLockMock) MinimockReleaseDone() bool
- func (m *GlobalInsolarLockMock) MinimockReleaseInspect()
- func (m *GlobalInsolarLockMock) MinimockWait(timeout mm_time.Duration)
- func (mmRelease *GlobalInsolarLockMock) Release(ctx context.Context)
- func (mmRelease *GlobalInsolarLockMock) ReleaseAfterCounter() uint64
- func (mmRelease *GlobalInsolarLockMock) ReleaseBeforeCounter() uint64
- type GlobalInsolarLockMockAcquireExpectation
- type GlobalInsolarLockMockAcquireParams
- type GlobalInsolarLockMockReleaseExpectation
- type GlobalInsolarLockMockReleaseParams
- type JetReleaserMock
- func (m *JetReleaserMock) MinimockFinish()
- func (m *JetReleaserMock) MinimockThrowTimeoutDone() bool
- func (m *JetReleaserMock) MinimockThrowTimeoutInspect()
- func (m *JetReleaserMock) MinimockUnlockDone() bool
- func (m *JetReleaserMock) MinimockUnlockInspect()
- func (m *JetReleaserMock) MinimockWait(timeout mm_time.Duration)
- func (mmThrowTimeout *JetReleaserMock) ThrowTimeout(ctx context.Context, pulse insolar.PulseNumber)
- func (mmThrowTimeout *JetReleaserMock) ThrowTimeoutAfterCounter() uint64
- func (mmThrowTimeout *JetReleaserMock) ThrowTimeoutBeforeCounter() uint64
- func (mmUnlock *JetReleaserMock) Unlock(ctx context.Context, jetID insolar.ID) (err error)
- func (mmUnlock *JetReleaserMock) UnlockAfterCounter() uint64
- func (mmUnlock *JetReleaserMock) UnlockBeforeCounter() uint64
- type JetReleaserMockThrowTimeoutExpectation
- type JetReleaserMockThrowTimeoutParams
- type JetReleaserMockUnlockExpectation
- type JetReleaserMockUnlockParams
- type JetReleaserMockUnlockResults
- type KeyProcessorMock
- func (mmExportPrivateKeyPEM *KeyProcessorMock) ExportPrivateKeyPEM(p1 crypto.PrivateKey) (ba1 []byte, err error)
- func (mmExportPrivateKeyPEM *KeyProcessorMock) ExportPrivateKeyPEMAfterCounter() uint64
- func (mmExportPrivateKeyPEM *KeyProcessorMock) ExportPrivateKeyPEMBeforeCounter() uint64
- func (mmExportPublicKeyBinary *KeyProcessorMock) ExportPublicKeyBinary(p1 crypto.PublicKey) (ba1 []byte, err error)
- func (mmExportPublicKeyBinary *KeyProcessorMock) ExportPublicKeyBinaryAfterCounter() uint64
- func (mmExportPublicKeyBinary *KeyProcessorMock) ExportPublicKeyBinaryBeforeCounter() uint64
- func (mmExportPublicKeyPEM *KeyProcessorMock) ExportPublicKeyPEM(p1 crypto.PublicKey) (ba1 []byte, err error)
- func (mmExportPublicKeyPEM *KeyProcessorMock) ExportPublicKeyPEMAfterCounter() uint64
- func (mmExportPublicKeyPEM *KeyProcessorMock) ExportPublicKeyPEMBeforeCounter() uint64
- func (mmExtractPublicKey *KeyProcessorMock) ExtractPublicKey(p1 crypto.PrivateKey) (p2 crypto.PublicKey)
- func (mmExtractPublicKey *KeyProcessorMock) ExtractPublicKeyAfterCounter() uint64
- func (mmExtractPublicKey *KeyProcessorMock) ExtractPublicKeyBeforeCounter() uint64
- func (mmGeneratePrivateKey *KeyProcessorMock) GeneratePrivateKey() (p1 crypto.PrivateKey, err error)
- func (mmGeneratePrivateKey *KeyProcessorMock) GeneratePrivateKeyAfterCounter() uint64
- func (mmGeneratePrivateKey *KeyProcessorMock) GeneratePrivateKeyBeforeCounter() uint64
- func (mmImportPrivateKeyPEM *KeyProcessorMock) ImportPrivateKeyPEM(ba1 []byte) (p1 crypto.PrivateKey, err error)
- func (mmImportPrivateKeyPEM *KeyProcessorMock) ImportPrivateKeyPEMAfterCounter() uint64
- func (mmImportPrivateKeyPEM *KeyProcessorMock) ImportPrivateKeyPEMBeforeCounter() uint64
- func (mmImportPublicKeyBinary *KeyProcessorMock) ImportPublicKeyBinary(ba1 []byte) (p1 crypto.PublicKey, err error)
- func (mmImportPublicKeyBinary *KeyProcessorMock) ImportPublicKeyBinaryAfterCounter() uint64
- func (mmImportPublicKeyBinary *KeyProcessorMock) ImportPublicKeyBinaryBeforeCounter() uint64
- func (mmImportPublicKeyPEM *KeyProcessorMock) ImportPublicKeyPEM(ba1 []byte) (p1 crypto.PublicKey, err error)
- func (mmImportPublicKeyPEM *KeyProcessorMock) ImportPublicKeyPEMAfterCounter() uint64
- func (mmImportPublicKeyPEM *KeyProcessorMock) ImportPublicKeyPEMBeforeCounter() uint64
- func (m *KeyProcessorMock) MinimockExportPrivateKeyPEMDone() bool
- func (m *KeyProcessorMock) MinimockExportPrivateKeyPEMInspect()
- func (m *KeyProcessorMock) MinimockExportPublicKeyBinaryDone() bool
- func (m *KeyProcessorMock) MinimockExportPublicKeyBinaryInspect()
- func (m *KeyProcessorMock) MinimockExportPublicKeyPEMDone() bool
- func (m *KeyProcessorMock) MinimockExportPublicKeyPEMInspect()
- func (m *KeyProcessorMock) MinimockExtractPublicKeyDone() bool
- func (m *KeyProcessorMock) MinimockExtractPublicKeyInspect()
- func (m *KeyProcessorMock) MinimockFinish()
- func (m *KeyProcessorMock) MinimockGeneratePrivateKeyDone() bool
- func (m *KeyProcessorMock) MinimockGeneratePrivateKeyInspect()
- func (m *KeyProcessorMock) MinimockImportPrivateKeyPEMDone() bool
- func (m *KeyProcessorMock) MinimockImportPrivateKeyPEMInspect()
- func (m *KeyProcessorMock) MinimockImportPublicKeyBinaryDone() bool
- func (m *KeyProcessorMock) MinimockImportPublicKeyBinaryInspect()
- func (m *KeyProcessorMock) MinimockImportPublicKeyPEMDone() bool
- func (m *KeyProcessorMock) MinimockImportPublicKeyPEMInspect()
- func (m *KeyProcessorMock) MinimockWait(timeout mm_time.Duration)
- type KeyProcessorMockExportPrivateKeyPEMExpectation
- type KeyProcessorMockExportPrivateKeyPEMParams
- type KeyProcessorMockExportPrivateKeyPEMResults
- type KeyProcessorMockExportPublicKeyBinaryExpectation
- type KeyProcessorMockExportPublicKeyBinaryParams
- type KeyProcessorMockExportPublicKeyBinaryResults
- type KeyProcessorMockExportPublicKeyPEMExpectation
- type KeyProcessorMockExportPublicKeyPEMParams
- type KeyProcessorMockExportPublicKeyPEMResults
- type KeyProcessorMockExtractPublicKeyExpectation
- type KeyProcessorMockExtractPublicKeyParams
- type KeyProcessorMockExtractPublicKeyResults
- type KeyProcessorMockGeneratePrivateKeyExpectation
- type KeyProcessorMockGeneratePrivateKeyResults
- type KeyProcessorMockImportPrivateKeyPEMExpectation
- type KeyProcessorMockImportPrivateKeyPEMParams
- type KeyProcessorMockImportPrivateKeyPEMResults
- type KeyProcessorMockImportPublicKeyBinaryExpectation
- type KeyProcessorMockImportPublicKeyBinaryParams
- type KeyProcessorMockImportPublicKeyBinaryResults
- type KeyProcessorMockImportPublicKeyPEMExpectation
- type KeyProcessorMockImportPublicKeyPEMParams
- type KeyProcessorMockImportPublicKeyPEMResults
- type LogicRunnerMock
- func (mmAddUnwantedResponse *LogicRunnerMock) AddUnwantedResponse(ctx context.Context, msg mm_insolar.Message) (err error)
- func (mmAddUnwantedResponse *LogicRunnerMock) AddUnwantedResponseAfterCounter() uint64
- func (mmAddUnwantedResponse *LogicRunnerMock) AddUnwantedResponseBeforeCounter() uint64
- func (mmLRI *LogicRunnerMock) LRI()
- func (mmLRI *LogicRunnerMock) LRIAfterCounter() uint64
- func (mmLRI *LogicRunnerMock) LRIBeforeCounter() uint64
- func (m *LogicRunnerMock) MinimockAddUnwantedResponseDone() bool
- func (m *LogicRunnerMock) MinimockAddUnwantedResponseInspect()
- func (m *LogicRunnerMock) MinimockFinish()
- func (m *LogicRunnerMock) MinimockLRIDone() bool
- func (m *LogicRunnerMock) MinimockLRIInspect()
- func (m *LogicRunnerMock) MinimockOnPulseDone() bool
- func (m *LogicRunnerMock) MinimockOnPulseInspect()
- func (m *LogicRunnerMock) MinimockWait(timeout mm_time.Duration)
- func (mmOnPulse *LogicRunnerMock) OnPulse(ctx context.Context, p1 mm_insolar.Pulse, p2 mm_insolar.Pulse) (err error)
- func (mmOnPulse *LogicRunnerMock) OnPulseAfterCounter() uint64
- func (mmOnPulse *LogicRunnerMock) OnPulseBeforeCounter() uint64
- type LogicRunnerMockAddUnwantedResponseExpectation
- type LogicRunnerMockAddUnwantedResponseParams
- type LogicRunnerMockAddUnwantedResponseResults
- type LogicRunnerMockLRIExpectation
- type LogicRunnerMockOnPulseExpectation
- type LogicRunnerMockOnPulseParams
- type LogicRunnerMockOnPulseResults
- type MachineLogicExecutorMock
- func (mmCallConstructor *MachineLogicExecutorMock) CallConstructor(ctx context.Context, callContext *mm_insolar.LogicCallContext, ...) (objectState []byte, result mm_insolar.Arguments, err error)
- func (mmCallConstructor *MachineLogicExecutorMock) CallConstructorAfterCounter() uint64
- func (mmCallConstructor *MachineLogicExecutorMock) CallConstructorBeforeCounter() uint64
- func (mmCallMethod *MachineLogicExecutorMock) CallMethod(ctx context.Context, callContext *mm_insolar.LogicCallContext, ...) (newObjectState []byte, methodResults mm_insolar.Arguments, err error)
- func (mmCallMethod *MachineLogicExecutorMock) CallMethodAfterCounter() uint64
- func (mmCallMethod *MachineLogicExecutorMock) CallMethodBeforeCounter() uint64
- func (m *MachineLogicExecutorMock) MinimockCallConstructorDone() bool
- func (m *MachineLogicExecutorMock) MinimockCallConstructorInspect()
- func (m *MachineLogicExecutorMock) MinimockCallMethodDone() bool
- func (m *MachineLogicExecutorMock) MinimockCallMethodInspect()
- func (m *MachineLogicExecutorMock) MinimockFinish()
- func (m *MachineLogicExecutorMock) MinimockWait(timeout mm_time.Duration)
- type MachineLogicExecutorMockCallConstructorExpectation
- type MachineLogicExecutorMockCallConstructorParams
- type MachineLogicExecutorMockCallConstructorResults
- type MachineLogicExecutorMockCallMethodExpectation
- type MachineLogicExecutorMockCallMethodParams
- type MachineLogicExecutorMockCallMethodResults
- type MessageBusMock
- func (m *MessageBusMock) MinimockFinish()
- func (m *MessageBusMock) MinimockMustRegisterDone() bool
- func (m *MessageBusMock) MinimockMustRegisterInspect()
- func (m *MessageBusMock) MinimockOnPulseDone() bool
- func (m *MessageBusMock) MinimockOnPulseInspect()
- func (m *MessageBusMock) MinimockRegisterDone() bool
- func (m *MessageBusMock) MinimockRegisterInspect()
- func (m *MessageBusMock) MinimockSendDone() bool
- func (m *MessageBusMock) MinimockSendInspect()
- func (m *MessageBusMock) MinimockWait(timeout mm_time.Duration)
- func (mmMustRegister *MessageBusMock) MustRegister(p mm_insolar.MessageType, handler mm_insolar.MessageHandler)
- func (mmMustRegister *MessageBusMock) MustRegisterAfterCounter() uint64
- func (mmMustRegister *MessageBusMock) MustRegisterBeforeCounter() uint64
- func (mmOnPulse *MessageBusMock) OnPulse(ctx context.Context, p1 mm_insolar.Pulse) (err error)
- func (mmOnPulse *MessageBusMock) OnPulseAfterCounter() uint64
- func (mmOnPulse *MessageBusMock) OnPulseBeforeCounter() uint64
- func (mmRegister *MessageBusMock) Register(p mm_insolar.MessageType, handler mm_insolar.MessageHandler) (err error)
- func (mmRegister *MessageBusMock) RegisterAfterCounter() uint64
- func (mmRegister *MessageBusMock) RegisterBeforeCounter() uint64
- func (mmSend *MessageBusMock) Send(ctx context.Context, m1 mm_insolar.Message, mp1 *mm_insolar.MessageSendOptions) (r1 mm_insolar.Reply, err error)
- func (mmSend *MessageBusMock) SendAfterCounter() uint64
- func (mmSend *MessageBusMock) SendBeforeCounter() uint64
- type MessageBusMockMustRegisterExpectation
- type MessageBusMockMustRegisterParams
- type MessageBusMockOnPulseExpectation
- type MessageBusMockOnPulseParams
- type MessageBusMockOnPulseResults
- type MessageBusMockRegisterExpectation
- type MessageBusMockRegisterParams
- type MessageBusMockRegisterResults
- type MessageBusMockSendExpectation
- type MessageBusMockSendParams
- type MessageBusMockSendResults
- type NetworkMock
- func (mmGetCert *NetworkMock) GetCert(ctx context.Context, rp1 *mm_insolar.Reference) (c2 mm_insolar.Certificate, err error)
- func (mmGetCert *NetworkMock) GetCertAfterCounter() uint64
- func (mmGetCert *NetworkMock) GetCertBeforeCounter() uint64
- func (mmGetState *NetworkMock) GetState() (n1 mm_insolar.NetworkState)
- func (mmGetState *NetworkMock) GetStateAfterCounter() uint64
- func (mmGetState *NetworkMock) GetStateBeforeCounter() uint64
- func (mmLeave *NetworkMock) Leave(ctx context.Context, ETA mm_insolar.PulseNumber)
- func (mmLeave *NetworkMock) LeaveAfterCounter() uint64
- func (mmLeave *NetworkMock) LeaveBeforeCounter() uint64
- func (m *NetworkMock) MinimockFinish()
- func (m *NetworkMock) MinimockGetCertDone() bool
- func (m *NetworkMock) MinimockGetCertInspect()
- func (m *NetworkMock) MinimockGetStateDone() bool
- func (m *NetworkMock) MinimockGetStateInspect()
- func (m *NetworkMock) MinimockLeaveDone() bool
- func (m *NetworkMock) MinimockLeaveInspect()
- func (m *NetworkMock) MinimockRemoteProcedureRegisterDone() bool
- func (m *NetworkMock) MinimockRemoteProcedureRegisterInspect()
- func (m *NetworkMock) MinimockSendCascadeMessageDone() bool
- func (m *NetworkMock) MinimockSendCascadeMessageInspect()
- func (m *NetworkMock) MinimockSendMessageDone() bool
- func (m *NetworkMock) MinimockSendMessageInspect()
- func (m *NetworkMock) MinimockSetOperableFuncDone() bool
- func (m *NetworkMock) MinimockSetOperableFuncInspect()
- func (m *NetworkMock) MinimockWait(timeout mm_time.Duration)
- func (mmRemoteProcedureRegister *NetworkMock) RemoteProcedureRegister(name string, method mm_insolar.RemoteProcedure)
- func (mmRemoteProcedureRegister *NetworkMock) RemoteProcedureRegisterAfterCounter() uint64
- func (mmRemoteProcedureRegister *NetworkMock) RemoteProcedureRegisterBeforeCounter() uint64
- func (mmSendCascadeMessage *NetworkMock) SendCascadeMessage(data mm_insolar.Cascade, method string, msg mm_insolar.Parcel) (err error)
- func (mmSendCascadeMessage *NetworkMock) SendCascadeMessageAfterCounter() uint64
- func (mmSendCascadeMessage *NetworkMock) SendCascadeMessageBeforeCounter() uint64
- func (mmSendMessage *NetworkMock) SendMessage(nodeID mm_insolar.Reference, method string, msg mm_insolar.Parcel) (ba1 []byte, err error)
- func (mmSendMessage *NetworkMock) SendMessageAfterCounter() uint64
- func (mmSendMessage *NetworkMock) SendMessageBeforeCounter() uint64
- func (mmSetOperableFunc *NetworkMock) SetOperableFunc(n1 mm_insolar.NetworkOperableCallback)
- func (mmSetOperableFunc *NetworkMock) SetOperableFuncAfterCounter() uint64
- func (mmSetOperableFunc *NetworkMock) SetOperableFuncBeforeCounter() uint64
- type NetworkMockGetCertExpectation
- type NetworkMockGetCertParams
- type NetworkMockGetCertResults
- type NetworkMockGetStateExpectation
- type NetworkMockGetStateResults
- type NetworkMockLeaveExpectation
- type NetworkMockLeaveParams
- type NetworkMockRemoteProcedureRegisterExpectation
- type NetworkMockRemoteProcedureRegisterParams
- type NetworkMockSendCascadeMessageExpectation
- type NetworkMockSendCascadeMessageParams
- type NetworkMockSendCascadeMessageResults
- type NetworkMockSendMessageExpectation
- type NetworkMockSendMessageParams
- type NetworkMockSendMessageResults
- type NetworkMockSetOperableFuncExpectation
- type NetworkMockSetOperableFuncParams
- type ParcelMock
- func (mmAllowedSenderObjectAndRole *ParcelMock) AllowedSenderObjectAndRole() (rp1 *mm_insolar.Reference, d1 mm_insolar.DynamicRole)
- func (mmAllowedSenderObjectAndRole *ParcelMock) AllowedSenderObjectAndRoleAfterCounter() uint64
- func (mmAllowedSenderObjectAndRole *ParcelMock) AllowedSenderObjectAndRoleBeforeCounter() uint64
- func (mmContext *ParcelMock) Context(ctx context.Context) (c2 context.Context)
- func (mmContext *ParcelMock) ContextAfterCounter() uint64
- func (mmContext *ParcelMock) ContextBeforeCounter() uint64
- func (mmDefaultRole *ParcelMock) DefaultRole() (d1 mm_insolar.DynamicRole)
- func (mmDefaultRole *ParcelMock) DefaultRoleAfterCounter() uint64
- func (mmDefaultRole *ParcelMock) DefaultRoleBeforeCounter() uint64
- func (mmDefaultTarget *ParcelMock) DefaultTarget() (rp1 *mm_insolar.Reference)
- func (mmDefaultTarget *ParcelMock) DefaultTargetAfterCounter() uint64
- func (mmDefaultTarget *ParcelMock) DefaultTargetBeforeCounter() uint64
- func (mmDelegationToken *ParcelMock) DelegationToken() (d1 mm_insolar.DelegationToken)
- func (mmDelegationToken *ParcelMock) DelegationTokenAfterCounter() uint64
- func (mmDelegationToken *ParcelMock) DelegationTokenBeforeCounter() uint64
- func (mmGetCaller *ParcelMock) GetCaller() (rp1 *mm_insolar.Reference)
- func (mmGetCaller *ParcelMock) GetCallerAfterCounter() uint64
- func (mmGetCaller *ParcelMock) GetCallerBeforeCounter() uint64
- func (mmGetSender *ParcelMock) GetSender() (r1 mm_insolar.Reference)
- func (mmGetSender *ParcelMock) GetSenderAfterCounter() uint64
- func (mmGetSender *ParcelMock) GetSenderBeforeCounter() uint64
- func (mmGetSign *ParcelMock) GetSign() (ba1 []byte)
- func (mmGetSign *ParcelMock) GetSignAfterCounter() uint64
- func (mmGetSign *ParcelMock) GetSignBeforeCounter() uint64
- func (mmMessage *ParcelMock) Message() (m1 mm_insolar.Message)
- func (mmMessage *ParcelMock) MessageAfterCounter() uint64
- func (mmMessage *ParcelMock) MessageBeforeCounter() uint64
- func (m *ParcelMock) MinimockAllowedSenderObjectAndRoleDone() bool
- func (m *ParcelMock) MinimockAllowedSenderObjectAndRoleInspect()
- func (m *ParcelMock) MinimockContextDone() bool
- func (m *ParcelMock) MinimockContextInspect()
- func (m *ParcelMock) MinimockDefaultRoleDone() bool
- func (m *ParcelMock) MinimockDefaultRoleInspect()
- func (m *ParcelMock) MinimockDefaultTargetDone() bool
- func (m *ParcelMock) MinimockDefaultTargetInspect()
- func (m *ParcelMock) MinimockDelegationTokenDone() bool
- func (m *ParcelMock) MinimockDelegationTokenInspect()
- func (m *ParcelMock) MinimockFinish()
- func (m *ParcelMock) MinimockGetCallerDone() bool
- func (m *ParcelMock) MinimockGetCallerInspect()
- func (m *ParcelMock) MinimockGetSenderDone() bool
- func (m *ParcelMock) MinimockGetSenderInspect()
- func (m *ParcelMock) MinimockGetSignDone() bool
- func (m *ParcelMock) MinimockGetSignInspect()
- func (m *ParcelMock) MinimockMessageDone() bool
- func (m *ParcelMock) MinimockMessageInspect()
- func (m *ParcelMock) MinimockPulseDone() bool
- func (m *ParcelMock) MinimockPulseInspect()
- func (m *ParcelMock) MinimockSetSenderDone() bool
- func (m *ParcelMock) MinimockSetSenderInspect()
- func (m *ParcelMock) MinimockTypeDone() bool
- func (m *ParcelMock) MinimockTypeInspect()
- func (m *ParcelMock) MinimockWait(timeout mm_time.Duration)
- func (mmPulse *ParcelMock) Pulse() (p1 mm_insolar.PulseNumber)
- func (mmPulse *ParcelMock) PulseAfterCounter() uint64
- func (mmPulse *ParcelMock) PulseBeforeCounter() uint64
- func (mmSetSender *ParcelMock) SetSender(r1 mm_insolar.Reference)
- func (mmSetSender *ParcelMock) SetSenderAfterCounter() uint64
- func (mmSetSender *ParcelMock) SetSenderBeforeCounter() uint64
- func (mmType *ParcelMock) Type() (m1 mm_insolar.MessageType)
- func (mmType *ParcelMock) TypeAfterCounter() uint64
- func (mmType *ParcelMock) TypeBeforeCounter() uint64
- type ParcelMockAllowedSenderObjectAndRoleExpectation
- type ParcelMockAllowedSenderObjectAndRoleResults
- type ParcelMockContextExpectation
- type ParcelMockContextParams
- type ParcelMockContextResults
- type ParcelMockDefaultRoleExpectation
- type ParcelMockDefaultRoleResults
- type ParcelMockDefaultTargetExpectation
- type ParcelMockDefaultTargetResults
- type ParcelMockDelegationTokenExpectation
- type ParcelMockDelegationTokenResults
- type ParcelMockGetCallerExpectation
- type ParcelMockGetCallerResults
- type ParcelMockGetSenderExpectation
- type ParcelMockGetSenderResults
- type ParcelMockGetSignExpectation
- type ParcelMockGetSignResults
- type ParcelMockMessageExpectation
- type ParcelMockMessageResults
- type ParcelMockPulseExpectation
- type ParcelMockPulseResults
- type ParcelMockSetSenderExpectation
- type ParcelMockSetSenderParams
- type ParcelMockTypeExpectation
- type ParcelMockTypeResults
- type PulseDistributorMock
- func (mmDistribute *PulseDistributorMock) Distribute(ctx context.Context, p1 mm_insolar.Pulse)
- func (mmDistribute *PulseDistributorMock) DistributeAfterCounter() uint64
- func (mmDistribute *PulseDistributorMock) DistributeBeforeCounter() uint64
- func (m *PulseDistributorMock) MinimockDistributeDone() bool
- func (m *PulseDistributorMock) MinimockDistributeInspect()
- func (m *PulseDistributorMock) MinimockFinish()
- func (m *PulseDistributorMock) MinimockWait(timeout mm_time.Duration)
- type PulseDistributorMockDistributeExpectation
- type PulseDistributorMockDistributeParams
- type PulseManagerMock
- func (m *PulseManagerMock) MinimockFinish()
- func (m *PulseManagerMock) MinimockSetDone() bool
- func (m *PulseManagerMock) MinimockSetInspect()
- func (m *PulseManagerMock) MinimockWait(timeout mm_time.Duration)
- func (mmSet *PulseManagerMock) Set(ctx context.Context, pulse mm_insolar.Pulse) (err error)
- func (mmSet *PulseManagerMock) SetAfterCounter() uint64
- func (mmSet *PulseManagerMock) SetBeforeCounter() uint64
- type PulseManagerMockSetExpectation
- type PulseManagerMockSetParams
- type PulseManagerMockSetResults
- type TerminationHandlerMock
- func (mmAbort *TerminationHandlerMock) Abort(reason string)
- func (mmAbort *TerminationHandlerMock) AbortAfterCounter() uint64
- func (mmAbort *TerminationHandlerMock) AbortBeforeCounter() uint64
- func (mmLeave *TerminationHandlerMock) Leave(ctx context.Context, p1 mm_insolar.PulseNumber)
- func (mmLeave *TerminationHandlerMock) LeaveAfterCounter() uint64
- func (mmLeave *TerminationHandlerMock) LeaveBeforeCounter() uint64
- func (m *TerminationHandlerMock) MinimockAbortDone() bool
- func (m *TerminationHandlerMock) MinimockAbortInspect()
- func (m *TerminationHandlerMock) MinimockFinish()
- func (m *TerminationHandlerMock) MinimockLeaveDone() bool
- func (m *TerminationHandlerMock) MinimockLeaveInspect()
- func (m *TerminationHandlerMock) MinimockOnLeaveApprovedDone() bool
- func (m *TerminationHandlerMock) MinimockOnLeaveApprovedInspect()
- func (m *TerminationHandlerMock) MinimockTerminatingDone() bool
- func (m *TerminationHandlerMock) MinimockTerminatingInspect()
- func (m *TerminationHandlerMock) MinimockWait(timeout mm_time.Duration)
- func (mmOnLeaveApproved *TerminationHandlerMock) OnLeaveApproved(ctx context.Context)
- func (mmOnLeaveApproved *TerminationHandlerMock) OnLeaveApprovedAfterCounter() uint64
- func (mmOnLeaveApproved *TerminationHandlerMock) OnLeaveApprovedBeforeCounter() uint64
- func (mmTerminating *TerminationHandlerMock) Terminating() (b1 bool)
- func (mmTerminating *TerminationHandlerMock) TerminatingAfterCounter() uint64
- func (mmTerminating *TerminationHandlerMock) TerminatingBeforeCounter() uint64
- type TerminationHandlerMockAbortExpectation
- type TerminationHandlerMockAbortParams
- type TerminationHandlerMockLeaveExpectation
- type TerminationHandlerMockLeaveParams
- type TerminationHandlerMockOnLeaveApprovedExpectation
- type TerminationHandlerMockOnLeaveApprovedParams
- type TerminationHandlerMockTerminatingExpectation
- type TerminationHandlerMockTerminatingResults
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 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 ¶
func (mmCall *ContractRequesterMock) Call(ctx context.Context, msg mm_insolar.Message) (r1 mm_insolar.Reply, rp1 *mm_insolar.Reference, err error)
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 ¶
func (e *ContractRequesterMockCallExpectation) Then(r1 mm_insolar.Reply, rp1 *mm_insolar.Reference, err error) *ContractRequesterMock
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 ¶
func (e *ContractRequesterMockSendRequestExpectation) Then(r1 mm_insolar.Reply, err error) *ContractRequesterMock
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 ¶
func (e *ContractRequesterMockSendRequestWithPulseExpectation) Then(r1 mm_insolar.Reply, rp1 *mm_insolar.Reference, err error) *ContractRequesterMock
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 ¶
func (e *CryptographyServiceMockSignExpectation) Then(sp1 *mm_insolar.Signature, err error) *CryptographyServiceMock
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 ¶
func (e *CryptographyServiceMockVerifyExpectation) Then(b1 bool) *CryptographyServiceMock
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 DelegationTokenFactoryMock ¶ added in v0.6.3
type DelegationTokenFactoryMock struct { IssuePendingExecutionMock mDelegationTokenFactoryMockIssuePendingExecution VerifyMock mDelegationTokenFactoryMockVerify // contains filtered or unexported fields }
DelegationTokenFactoryMock implements insolar.DelegationTokenFactory
func NewDelegationTokenFactoryMock ¶ added in v0.6.3
func NewDelegationTokenFactoryMock(t minimock.Tester) *DelegationTokenFactoryMock
NewDelegationTokenFactoryMock returns a mock for insolar.DelegationTokenFactory
func (*DelegationTokenFactoryMock) IssuePendingExecution ¶ added in v0.6.3
func (mmIssuePendingExecution *DelegationTokenFactoryMock) IssuePendingExecution(msg mm_insolar.Message, pulse mm_insolar.PulseNumber) (d1 mm_insolar.DelegationToken, err error)
IssuePendingExecution implements insolar.DelegationTokenFactory
func (*DelegationTokenFactoryMock) IssuePendingExecutionAfterCounter ¶
func (mmIssuePendingExecution *DelegationTokenFactoryMock) IssuePendingExecutionAfterCounter() uint64
IssuePendingExecutionAfterCounter returns a count of finished DelegationTokenFactoryMock.IssuePendingExecution invocations
func (*DelegationTokenFactoryMock) IssuePendingExecutionBeforeCounter ¶
func (mmIssuePendingExecution *DelegationTokenFactoryMock) IssuePendingExecutionBeforeCounter() uint64
IssuePendingExecutionBeforeCounter returns a count of DelegationTokenFactoryMock.IssuePendingExecution invocations
func (*DelegationTokenFactoryMock) MinimockFinish ¶ added in v0.6.3
func (m *DelegationTokenFactoryMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*DelegationTokenFactoryMock) MinimockIssuePendingExecutionDone ¶
func (m *DelegationTokenFactoryMock) MinimockIssuePendingExecutionDone() bool
MinimockIssuePendingExecutionDone returns true if the count of the IssuePendingExecution invocations corresponds the number of defined expectations
func (*DelegationTokenFactoryMock) MinimockIssuePendingExecutionInspect ¶
func (m *DelegationTokenFactoryMock) MinimockIssuePendingExecutionInspect()
MinimockIssuePendingExecutionInspect logs each unmet expectation
func (*DelegationTokenFactoryMock) MinimockVerifyDone ¶
func (m *DelegationTokenFactoryMock) MinimockVerifyDone() bool
MinimockVerifyDone returns true if the count of the Verify invocations corresponds the number of defined expectations
func (*DelegationTokenFactoryMock) MinimockVerifyInspect ¶
func (m *DelegationTokenFactoryMock) MinimockVerifyInspect()
MinimockVerifyInspect logs each unmet expectation
func (*DelegationTokenFactoryMock) MinimockWait ¶ added in v0.6.3
func (m *DelegationTokenFactoryMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*DelegationTokenFactoryMock) Verify ¶ added in v0.6.3
func (mmVerify *DelegationTokenFactoryMock) Verify(parcel mm_insolar.Parcel) (b1 bool, err error)
Verify implements insolar.DelegationTokenFactory
func (*DelegationTokenFactoryMock) VerifyAfterCounter ¶
func (mmVerify *DelegationTokenFactoryMock) VerifyAfterCounter() uint64
VerifyAfterCounter returns a count of finished DelegationTokenFactoryMock.Verify invocations
func (*DelegationTokenFactoryMock) VerifyBeforeCounter ¶
func (mmVerify *DelegationTokenFactoryMock) VerifyBeforeCounter() uint64
VerifyBeforeCounter returns a count of DelegationTokenFactoryMock.Verify invocations
type DelegationTokenFactoryMockIssuePendingExecutionExpectation ¶ added in v0.7.5
type DelegationTokenFactoryMockIssuePendingExecutionExpectation struct { Counter uint64 // contains filtered or unexported fields }
DelegationTokenFactoryMockIssuePendingExecutionExpectation specifies expectation struct of the DelegationTokenFactory.IssuePendingExecution
func (*DelegationTokenFactoryMockIssuePendingExecutionExpectation) Then ¶
func (e *DelegationTokenFactoryMockIssuePendingExecutionExpectation) Then(d1 mm_insolar.DelegationToken, err error) *DelegationTokenFactoryMock
Then sets up DelegationTokenFactory.IssuePendingExecution return parameters for the expectation previously defined by the When method
type DelegationTokenFactoryMockIssuePendingExecutionParams ¶ added in v0.6.3
type DelegationTokenFactoryMockIssuePendingExecutionParams struct {
// contains filtered or unexported fields
}
DelegationTokenFactoryMockIssuePendingExecutionParams contains parameters of the DelegationTokenFactory.IssuePendingExecution
type DelegationTokenFactoryMockIssuePendingExecutionResults ¶
type DelegationTokenFactoryMockIssuePendingExecutionResults struct {
// contains filtered or unexported fields
}
DelegationTokenFactoryMockIssuePendingExecutionResults contains results of the DelegationTokenFactory.IssuePendingExecution
type DelegationTokenFactoryMockVerifyExpectation ¶ added in v0.7.5
type DelegationTokenFactoryMockVerifyExpectation struct { Counter uint64 // contains filtered or unexported fields }
DelegationTokenFactoryMockVerifyExpectation specifies expectation struct of the DelegationTokenFactory.Verify
func (*DelegationTokenFactoryMockVerifyExpectation) Then ¶
func (e *DelegationTokenFactoryMockVerifyExpectation) Then(b1 bool, err error) *DelegationTokenFactoryMock
Then sets up DelegationTokenFactory.Verify return parameters for the expectation previously defined by the When method
type DelegationTokenFactoryMockVerifyParams ¶ added in v0.6.3
type DelegationTokenFactoryMockVerifyParams struct {
// contains filtered or unexported fields
}
DelegationTokenFactoryMockVerifyParams contains parameters of the DelegationTokenFactory.Verify
type DelegationTokenFactoryMockVerifyResults ¶
type DelegationTokenFactoryMockVerifyResults struct {
// contains filtered or unexported fields
}
DelegationTokenFactoryMockVerifyResults contains results of the DelegationTokenFactory.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 GlobalInsolarLockMock ¶ added in v0.7.5
type GlobalInsolarLockMock struct { AcquireMock mGlobalInsolarLockMockAcquire ReleaseMock mGlobalInsolarLockMockRelease // contains filtered or unexported fields }
GlobalInsolarLockMock implements insolar.GlobalInsolarLock
func NewGlobalInsolarLockMock ¶ added in v0.7.5
func NewGlobalInsolarLockMock(t minimock.Tester) *GlobalInsolarLockMock
NewGlobalInsolarLockMock returns a mock for insolar.GlobalInsolarLock
func (*GlobalInsolarLockMock) Acquire ¶ added in v0.7.5
func (mmAcquire *GlobalInsolarLockMock) Acquire(ctx context.Context)
Acquire implements insolar.GlobalInsolarLock
func (*GlobalInsolarLockMock) AcquireAfterCounter ¶
func (mmAcquire *GlobalInsolarLockMock) AcquireAfterCounter() uint64
AcquireAfterCounter returns a count of finished GlobalInsolarLockMock.Acquire invocations
func (*GlobalInsolarLockMock) AcquireBeforeCounter ¶
func (mmAcquire *GlobalInsolarLockMock) AcquireBeforeCounter() uint64
AcquireBeforeCounter returns a count of GlobalInsolarLockMock.Acquire invocations
func (*GlobalInsolarLockMock) MinimockAcquireDone ¶
func (m *GlobalInsolarLockMock) MinimockAcquireDone() bool
MinimockAcquireDone returns true if the count of the Acquire invocations corresponds the number of defined expectations
func (*GlobalInsolarLockMock) MinimockAcquireInspect ¶
func (m *GlobalInsolarLockMock) MinimockAcquireInspect()
MinimockAcquireInspect logs each unmet expectation
func (*GlobalInsolarLockMock) MinimockFinish ¶ added in v0.7.5
func (m *GlobalInsolarLockMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*GlobalInsolarLockMock) MinimockReleaseDone ¶
func (m *GlobalInsolarLockMock) MinimockReleaseDone() bool
MinimockReleaseDone returns true if the count of the Release invocations corresponds the number of defined expectations
func (*GlobalInsolarLockMock) MinimockReleaseInspect ¶
func (m *GlobalInsolarLockMock) MinimockReleaseInspect()
MinimockReleaseInspect logs each unmet expectation
func (*GlobalInsolarLockMock) MinimockWait ¶ added in v0.7.5
func (m *GlobalInsolarLockMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*GlobalInsolarLockMock) Release ¶ added in v0.7.5
func (mmRelease *GlobalInsolarLockMock) Release(ctx context.Context)
Release implements insolar.GlobalInsolarLock
func (*GlobalInsolarLockMock) ReleaseAfterCounter ¶
func (mmRelease *GlobalInsolarLockMock) ReleaseAfterCounter() uint64
ReleaseAfterCounter returns a count of finished GlobalInsolarLockMock.Release invocations
func (*GlobalInsolarLockMock) ReleaseBeforeCounter ¶
func (mmRelease *GlobalInsolarLockMock) ReleaseBeforeCounter() uint64
ReleaseBeforeCounter returns a count of GlobalInsolarLockMock.Release invocations
type GlobalInsolarLockMockAcquireExpectation ¶ added in v0.7.5
type GlobalInsolarLockMockAcquireExpectation struct { Counter uint64 // contains filtered or unexported fields }
GlobalInsolarLockMockAcquireExpectation specifies expectation struct of the GlobalInsolarLock.Acquire
type GlobalInsolarLockMockAcquireParams ¶
type GlobalInsolarLockMockAcquireParams struct {
// contains filtered or unexported fields
}
GlobalInsolarLockMockAcquireParams contains parameters of the GlobalInsolarLock.Acquire
type GlobalInsolarLockMockReleaseExpectation ¶ added in v0.7.5
type GlobalInsolarLockMockReleaseExpectation struct { Counter uint64 // contains filtered or unexported fields }
GlobalInsolarLockMockReleaseExpectation specifies expectation struct of the GlobalInsolarLock.Release
type GlobalInsolarLockMockReleaseParams ¶
type GlobalInsolarLockMockReleaseParams struct {
// contains filtered or unexported fields
}
GlobalInsolarLockMockReleaseParams contains parameters of the GlobalInsolarLock.Release
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) 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 ¶
func (e *JetReleaserMockUnlockExpectation) Then(err error) *JetReleaserMock
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 ¶
func (e *KeyProcessorMockExportPrivateKeyPEMExpectation) Then(ba1 []byte, err error) *KeyProcessorMock
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 ¶
func (e *KeyProcessorMockExportPublicKeyBinaryExpectation) Then(ba1 []byte, err error) *KeyProcessorMock
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 ¶
func (e *KeyProcessorMockExportPublicKeyPEMExpectation) Then(ba1 []byte, err error) *KeyProcessorMock
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 ¶
func (e *KeyProcessorMockExtractPublicKeyExpectation) Then(p2 crypto.PublicKey) *KeyProcessorMock
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 ¶
func (e *KeyProcessorMockImportPrivateKeyPEMExpectation) Then(p1 crypto.PrivateKey, err error) *KeyProcessorMock
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 ¶
func (e *KeyProcessorMockImportPublicKeyBinaryExpectation) Then(p1 crypto.PublicKey, err error) *KeyProcessorMock
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 ¶
func (e *KeyProcessorMockImportPublicKeyPEMExpectation) Then(p1 crypto.PublicKey, err error) *KeyProcessorMock
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 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.Message) (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 ¶
func (e *LogicRunnerMockAddUnwantedResponseExpectation) Then(err error) *LogicRunnerMock
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 ¶
func (e *LogicRunnerMockOnPulseExpectation) Then(err error) *LogicRunnerMock
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 ¶
func (e *MachineLogicExecutorMockCallConstructorExpectation) Then(objectState []byte, result mm_insolar.Arguments, err error) *MachineLogicExecutorMock
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 ¶
func (e *MachineLogicExecutorMockCallMethodExpectation) Then(newObjectState []byte, methodResults mm_insolar.Arguments, err error) *MachineLogicExecutorMock
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 MessageBusMock ¶ added in v0.6.3
type MessageBusMock struct { MustRegisterMock mMessageBusMockMustRegister OnPulseMock mMessageBusMockOnPulse RegisterMock mMessageBusMockRegister SendMock mMessageBusMockSend // contains filtered or unexported fields }
MessageBusMock implements insolar.MessageBus
func NewMessageBusMock ¶ added in v0.6.3
func NewMessageBusMock(t minimock.Tester) *MessageBusMock
NewMessageBusMock returns a mock for insolar.MessageBus
func (*MessageBusMock) MinimockFinish ¶ added in v0.6.3
func (m *MessageBusMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*MessageBusMock) MinimockMustRegisterDone ¶
func (m *MessageBusMock) MinimockMustRegisterDone() bool
MinimockMustRegisterDone returns true if the count of the MustRegister invocations corresponds the number of defined expectations
func (*MessageBusMock) MinimockMustRegisterInspect ¶
func (m *MessageBusMock) MinimockMustRegisterInspect()
MinimockMustRegisterInspect logs each unmet expectation
func (*MessageBusMock) MinimockOnPulseDone ¶
func (m *MessageBusMock) MinimockOnPulseDone() bool
MinimockOnPulseDone returns true if the count of the OnPulse invocations corresponds the number of defined expectations
func (*MessageBusMock) MinimockOnPulseInspect ¶
func (m *MessageBusMock) MinimockOnPulseInspect()
MinimockOnPulseInspect logs each unmet expectation
func (*MessageBusMock) MinimockRegisterDone ¶
func (m *MessageBusMock) MinimockRegisterDone() bool
MinimockRegisterDone returns true if the count of the Register invocations corresponds the number of defined expectations
func (*MessageBusMock) MinimockRegisterInspect ¶
func (m *MessageBusMock) MinimockRegisterInspect()
MinimockRegisterInspect logs each unmet expectation
func (*MessageBusMock) MinimockSendDone ¶
func (m *MessageBusMock) MinimockSendDone() bool
MinimockSendDone returns true if the count of the Send invocations corresponds the number of defined expectations
func (*MessageBusMock) MinimockSendInspect ¶
func (m *MessageBusMock) MinimockSendInspect()
MinimockSendInspect logs each unmet expectation
func (*MessageBusMock) MinimockWait ¶ added in v0.6.3
func (m *MessageBusMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*MessageBusMock) MustRegister ¶ added in v0.6.3
func (mmMustRegister *MessageBusMock) MustRegister(p mm_insolar.MessageType, handler mm_insolar.MessageHandler)
MustRegister implements insolar.MessageBus
func (*MessageBusMock) MustRegisterAfterCounter ¶
func (mmMustRegister *MessageBusMock) MustRegisterAfterCounter() uint64
MustRegisterAfterCounter returns a count of finished MessageBusMock.MustRegister invocations
func (*MessageBusMock) MustRegisterBeforeCounter ¶
func (mmMustRegister *MessageBusMock) MustRegisterBeforeCounter() uint64
MustRegisterBeforeCounter returns a count of MessageBusMock.MustRegister invocations
func (*MessageBusMock) OnPulse ¶ added in v0.7.5
func (mmOnPulse *MessageBusMock) OnPulse(ctx context.Context, p1 mm_insolar.Pulse) (err error)
OnPulse implements insolar.MessageBus
func (*MessageBusMock) OnPulseAfterCounter ¶
func (mmOnPulse *MessageBusMock) OnPulseAfterCounter() uint64
OnPulseAfterCounter returns a count of finished MessageBusMock.OnPulse invocations
func (*MessageBusMock) OnPulseBeforeCounter ¶
func (mmOnPulse *MessageBusMock) OnPulseBeforeCounter() uint64
OnPulseBeforeCounter returns a count of MessageBusMock.OnPulse invocations
func (*MessageBusMock) Register ¶ added in v0.6.3
func (mmRegister *MessageBusMock) Register(p mm_insolar.MessageType, handler mm_insolar.MessageHandler) (err error)
Register implements insolar.MessageBus
func (*MessageBusMock) RegisterAfterCounter ¶
func (mmRegister *MessageBusMock) RegisterAfterCounter() uint64
RegisterAfterCounter returns a count of finished MessageBusMock.Register invocations
func (*MessageBusMock) RegisterBeforeCounter ¶
func (mmRegister *MessageBusMock) RegisterBeforeCounter() uint64
RegisterBeforeCounter returns a count of MessageBusMock.Register invocations
func (*MessageBusMock) Send ¶ added in v0.6.3
func (mmSend *MessageBusMock) Send(ctx context.Context, m1 mm_insolar.Message, mp1 *mm_insolar.MessageSendOptions) (r1 mm_insolar.Reply, err error)
Send implements insolar.MessageBus
func (*MessageBusMock) SendAfterCounter ¶
func (mmSend *MessageBusMock) SendAfterCounter() uint64
SendAfterCounter returns a count of finished MessageBusMock.Send invocations
func (*MessageBusMock) SendBeforeCounter ¶
func (mmSend *MessageBusMock) SendBeforeCounter() uint64
SendBeforeCounter returns a count of MessageBusMock.Send invocations
type MessageBusMockMustRegisterExpectation ¶ added in v0.7.5
type MessageBusMockMustRegisterExpectation struct { Counter uint64 // contains filtered or unexported fields }
MessageBusMockMustRegisterExpectation specifies expectation struct of the MessageBus.MustRegister
type MessageBusMockMustRegisterParams ¶ added in v0.6.3
type MessageBusMockMustRegisterParams struct {
// contains filtered or unexported fields
}
MessageBusMockMustRegisterParams contains parameters of the MessageBus.MustRegister
type MessageBusMockOnPulseExpectation ¶ added in v0.7.5
type MessageBusMockOnPulseExpectation struct { Counter uint64 // contains filtered or unexported fields }
MessageBusMockOnPulseExpectation specifies expectation struct of the MessageBus.OnPulse
func (*MessageBusMockOnPulseExpectation) Then ¶
func (e *MessageBusMockOnPulseExpectation) Then(err error) *MessageBusMock
Then sets up MessageBus.OnPulse return parameters for the expectation previously defined by the When method
type MessageBusMockOnPulseParams ¶
type MessageBusMockOnPulseParams struct {
// contains filtered or unexported fields
}
MessageBusMockOnPulseParams contains parameters of the MessageBus.OnPulse
type MessageBusMockOnPulseResults ¶
type MessageBusMockOnPulseResults struct {
// contains filtered or unexported fields
}
MessageBusMockOnPulseResults contains results of the MessageBus.OnPulse
type MessageBusMockRegisterExpectation ¶ added in v0.7.5
type MessageBusMockRegisterExpectation struct { Counter uint64 // contains filtered or unexported fields }
MessageBusMockRegisterExpectation specifies expectation struct of the MessageBus.Register
func (*MessageBusMockRegisterExpectation) Then ¶
func (e *MessageBusMockRegisterExpectation) Then(err error) *MessageBusMock
Then sets up MessageBus.Register return parameters for the expectation previously defined by the When method
type MessageBusMockRegisterParams ¶ added in v0.6.3
type MessageBusMockRegisterParams struct {
// contains filtered or unexported fields
}
MessageBusMockRegisterParams contains parameters of the MessageBus.Register
type MessageBusMockRegisterResults ¶
type MessageBusMockRegisterResults struct {
// contains filtered or unexported fields
}
MessageBusMockRegisterResults contains results of the MessageBus.Register
type MessageBusMockSendExpectation ¶ added in v0.7.5
type MessageBusMockSendExpectation struct { Counter uint64 // contains filtered or unexported fields }
MessageBusMockSendExpectation specifies expectation struct of the MessageBus.Send
func (*MessageBusMockSendExpectation) Then ¶
func (e *MessageBusMockSendExpectation) Then(r1 mm_insolar.Reply, err error) *MessageBusMock
Then sets up MessageBus.Send return parameters for the expectation previously defined by the When method
type MessageBusMockSendParams ¶ added in v0.6.3
type MessageBusMockSendParams struct {
// contains filtered or unexported fields
}
MessageBusMockSendParams contains parameters of the MessageBus.Send
type MessageBusMockSendResults ¶
type MessageBusMockSendResults struct {
// contains filtered or unexported fields
}
MessageBusMockSendResults contains results of the MessageBus.Send
type NetworkMock ¶
type NetworkMock struct { GetCertMock mNetworkMockGetCert GetStateMock mNetworkMockGetState LeaveMock mNetworkMockLeave RemoteProcedureRegisterMock mNetworkMockRemoteProcedureRegister SendCascadeMessageMock mNetworkMockSendCascadeMessage SendMessageMock mNetworkMockSendMessage SetOperableFuncMock mNetworkMockSetOperableFunc // contains filtered or unexported fields }
NetworkMock implements insolar.Network
func NewNetworkMock ¶
func NewNetworkMock(t minimock.Tester) *NetworkMock
NewNetworkMock returns a mock for insolar.Network
func (*NetworkMock) GetCert ¶
func (mmGetCert *NetworkMock) GetCert(ctx context.Context, rp1 *mm_insolar.Reference) (c2 mm_insolar.Certificate, err error)
GetCert implements insolar.Network
func (*NetworkMock) GetCertAfterCounter ¶
func (mmGetCert *NetworkMock) GetCertAfterCounter() uint64
GetCertAfterCounter returns a count of finished NetworkMock.GetCert invocations
func (*NetworkMock) GetCertBeforeCounter ¶
func (mmGetCert *NetworkMock) GetCertBeforeCounter() uint64
GetCertBeforeCounter returns a count of NetworkMock.GetCert invocations
func (*NetworkMock) GetState ¶
func (mmGetState *NetworkMock) GetState() (n1 mm_insolar.NetworkState)
GetState implements insolar.Network
func (*NetworkMock) GetStateAfterCounter ¶
func (mmGetState *NetworkMock) GetStateAfterCounter() uint64
GetStateAfterCounter returns a count of finished NetworkMock.GetState invocations
func (*NetworkMock) GetStateBeforeCounter ¶
func (mmGetState *NetworkMock) GetStateBeforeCounter() uint64
GetStateBeforeCounter returns a count of NetworkMock.GetState invocations
func (*NetworkMock) Leave ¶
func (mmLeave *NetworkMock) Leave(ctx context.Context, ETA mm_insolar.PulseNumber)
Leave implements insolar.Network
func (*NetworkMock) LeaveAfterCounter ¶
func (mmLeave *NetworkMock) LeaveAfterCounter() uint64
LeaveAfterCounter returns a count of finished NetworkMock.Leave invocations
func (*NetworkMock) LeaveBeforeCounter ¶
func (mmLeave *NetworkMock) LeaveBeforeCounter() uint64
LeaveBeforeCounter returns a count of NetworkMock.Leave invocations
func (*NetworkMock) MinimockFinish ¶
func (m *NetworkMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*NetworkMock) MinimockGetCertDone ¶
func (m *NetworkMock) MinimockGetCertDone() bool
MinimockGetCertDone returns true if the count of the GetCert invocations corresponds the number of defined expectations
func (*NetworkMock) MinimockGetCertInspect ¶
func (m *NetworkMock) MinimockGetCertInspect()
MinimockGetCertInspect logs each unmet expectation
func (*NetworkMock) MinimockGetStateDone ¶
func (m *NetworkMock) MinimockGetStateDone() bool
MinimockGetStateDone returns true if the count of the GetState invocations corresponds the number of defined expectations
func (*NetworkMock) MinimockGetStateInspect ¶
func (m *NetworkMock) MinimockGetStateInspect()
MinimockGetStateInspect logs each unmet expectation
func (*NetworkMock) MinimockLeaveDone ¶
func (m *NetworkMock) MinimockLeaveDone() bool
MinimockLeaveDone returns true if the count of the Leave invocations corresponds the number of defined expectations
func (*NetworkMock) MinimockLeaveInspect ¶
func (m *NetworkMock) MinimockLeaveInspect()
MinimockLeaveInspect logs each unmet expectation
func (*NetworkMock) MinimockRemoteProcedureRegisterDone ¶
func (m *NetworkMock) MinimockRemoteProcedureRegisterDone() bool
MinimockRemoteProcedureRegisterDone returns true if the count of the RemoteProcedureRegister invocations corresponds the number of defined expectations
func (*NetworkMock) MinimockRemoteProcedureRegisterInspect ¶
func (m *NetworkMock) MinimockRemoteProcedureRegisterInspect()
MinimockRemoteProcedureRegisterInspect logs each unmet expectation
func (*NetworkMock) MinimockSendCascadeMessageDone ¶
func (m *NetworkMock) MinimockSendCascadeMessageDone() bool
MinimockSendCascadeMessageDone returns true if the count of the SendCascadeMessage invocations corresponds the number of defined expectations
func (*NetworkMock) MinimockSendCascadeMessageInspect ¶
func (m *NetworkMock) MinimockSendCascadeMessageInspect()
MinimockSendCascadeMessageInspect logs each unmet expectation
func (*NetworkMock) MinimockSendMessageDone ¶
func (m *NetworkMock) MinimockSendMessageDone() bool
MinimockSendMessageDone returns true if the count of the SendMessage invocations corresponds the number of defined expectations
func (*NetworkMock) MinimockSendMessageInspect ¶
func (m *NetworkMock) MinimockSendMessageInspect()
MinimockSendMessageInspect logs each unmet expectation
func (*NetworkMock) MinimockSetOperableFuncDone ¶
func (m *NetworkMock) MinimockSetOperableFuncDone() bool
MinimockSetOperableFuncDone returns true if the count of the SetOperableFunc invocations corresponds the number of defined expectations
func (*NetworkMock) MinimockSetOperableFuncInspect ¶
func (m *NetworkMock) MinimockSetOperableFuncInspect()
MinimockSetOperableFuncInspect logs each unmet expectation
func (*NetworkMock) MinimockWait ¶
func (m *NetworkMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*NetworkMock) RemoteProcedureRegister ¶
func (mmRemoteProcedureRegister *NetworkMock) RemoteProcedureRegister(name string, method mm_insolar.RemoteProcedure)
RemoteProcedureRegister implements insolar.Network
func (*NetworkMock) RemoteProcedureRegisterAfterCounter ¶
func (mmRemoteProcedureRegister *NetworkMock) RemoteProcedureRegisterAfterCounter() uint64
RemoteProcedureRegisterAfterCounter returns a count of finished NetworkMock.RemoteProcedureRegister invocations
func (*NetworkMock) RemoteProcedureRegisterBeforeCounter ¶
func (mmRemoteProcedureRegister *NetworkMock) RemoteProcedureRegisterBeforeCounter() uint64
RemoteProcedureRegisterBeforeCounter returns a count of NetworkMock.RemoteProcedureRegister invocations
func (*NetworkMock) SendCascadeMessage ¶
func (mmSendCascadeMessage *NetworkMock) SendCascadeMessage(data mm_insolar.Cascade, method string, msg mm_insolar.Parcel) (err error)
SendCascadeMessage implements insolar.Network
func (*NetworkMock) SendCascadeMessageAfterCounter ¶
func (mmSendCascadeMessage *NetworkMock) SendCascadeMessageAfterCounter() uint64
SendCascadeMessageAfterCounter returns a count of finished NetworkMock.SendCascadeMessage invocations
func (*NetworkMock) SendCascadeMessageBeforeCounter ¶
func (mmSendCascadeMessage *NetworkMock) SendCascadeMessageBeforeCounter() uint64
SendCascadeMessageBeforeCounter returns a count of NetworkMock.SendCascadeMessage invocations
func (*NetworkMock) SendMessage ¶
func (mmSendMessage *NetworkMock) SendMessage(nodeID mm_insolar.Reference, method string, msg mm_insolar.Parcel) (ba1 []byte, err error)
SendMessage implements insolar.Network
func (*NetworkMock) SendMessageAfterCounter ¶
func (mmSendMessage *NetworkMock) SendMessageAfterCounter() uint64
SendMessageAfterCounter returns a count of finished NetworkMock.SendMessage invocations
func (*NetworkMock) SendMessageBeforeCounter ¶
func (mmSendMessage *NetworkMock) SendMessageBeforeCounter() uint64
SendMessageBeforeCounter returns a count of NetworkMock.SendMessage invocations
func (*NetworkMock) SetOperableFunc ¶
func (mmSetOperableFunc *NetworkMock) SetOperableFunc(n1 mm_insolar.NetworkOperableCallback)
SetOperableFunc implements insolar.Network
func (*NetworkMock) SetOperableFuncAfterCounter ¶
func (mmSetOperableFunc *NetworkMock) SetOperableFuncAfterCounter() uint64
SetOperableFuncAfterCounter returns a count of finished NetworkMock.SetOperableFunc invocations
func (*NetworkMock) SetOperableFuncBeforeCounter ¶
func (mmSetOperableFunc *NetworkMock) SetOperableFuncBeforeCounter() uint64
SetOperableFuncBeforeCounter returns a count of NetworkMock.SetOperableFunc invocations
type NetworkMockGetCertExpectation ¶
type NetworkMockGetCertExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkMockGetCertExpectation specifies expectation struct of the Network.GetCert
func (*NetworkMockGetCertExpectation) Then ¶
func (e *NetworkMockGetCertExpectation) Then(c2 mm_insolar.Certificate, err error) *NetworkMock
Then sets up Network.GetCert return parameters for the expectation previously defined by the When method
type NetworkMockGetCertParams ¶
type NetworkMockGetCertParams struct {
// contains filtered or unexported fields
}
NetworkMockGetCertParams contains parameters of the Network.GetCert
type NetworkMockGetCertResults ¶
type NetworkMockGetCertResults struct {
// contains filtered or unexported fields
}
NetworkMockGetCertResults contains results of the Network.GetCert
type NetworkMockGetStateExpectation ¶
type NetworkMockGetStateExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkMockGetStateExpectation specifies expectation struct of the Network.GetState
type NetworkMockGetStateResults ¶
type NetworkMockGetStateResults struct {
// contains filtered or unexported fields
}
NetworkMockGetStateResults contains results of the Network.GetState
type NetworkMockLeaveExpectation ¶
type NetworkMockLeaveExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkMockLeaveExpectation specifies expectation struct of the Network.Leave
type NetworkMockLeaveParams ¶
type NetworkMockLeaveParams struct { ETA mm_insolar.PulseNumber // contains filtered or unexported fields }
NetworkMockLeaveParams contains parameters of the Network.Leave
type NetworkMockRemoteProcedureRegisterExpectation ¶
type NetworkMockRemoteProcedureRegisterExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkMockRemoteProcedureRegisterExpectation specifies expectation struct of the Network.RemoteProcedureRegister
type NetworkMockRemoteProcedureRegisterParams ¶
type NetworkMockRemoteProcedureRegisterParams struct {
// contains filtered or unexported fields
}
NetworkMockRemoteProcedureRegisterParams contains parameters of the Network.RemoteProcedureRegister
type NetworkMockSendCascadeMessageExpectation ¶
type NetworkMockSendCascadeMessageExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkMockSendCascadeMessageExpectation specifies expectation struct of the Network.SendCascadeMessage
func (*NetworkMockSendCascadeMessageExpectation) Then ¶
func (e *NetworkMockSendCascadeMessageExpectation) Then(err error) *NetworkMock
Then sets up Network.SendCascadeMessage return parameters for the expectation previously defined by the When method
type NetworkMockSendCascadeMessageParams ¶
type NetworkMockSendCascadeMessageParams struct {
// contains filtered or unexported fields
}
NetworkMockSendCascadeMessageParams contains parameters of the Network.SendCascadeMessage
type NetworkMockSendCascadeMessageResults ¶
type NetworkMockSendCascadeMessageResults struct {
// contains filtered or unexported fields
}
NetworkMockSendCascadeMessageResults contains results of the Network.SendCascadeMessage
type NetworkMockSendMessageExpectation ¶
type NetworkMockSendMessageExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkMockSendMessageExpectation specifies expectation struct of the Network.SendMessage
func (*NetworkMockSendMessageExpectation) Then ¶
func (e *NetworkMockSendMessageExpectation) Then(ba1 []byte, err error) *NetworkMock
Then sets up Network.SendMessage return parameters for the expectation previously defined by the When method
type NetworkMockSendMessageParams ¶
type NetworkMockSendMessageParams struct {
// contains filtered or unexported fields
}
NetworkMockSendMessageParams contains parameters of the Network.SendMessage
type NetworkMockSendMessageResults ¶
type NetworkMockSendMessageResults struct {
// contains filtered or unexported fields
}
NetworkMockSendMessageResults contains results of the Network.SendMessage
type NetworkMockSetOperableFuncExpectation ¶
type NetworkMockSetOperableFuncExpectation struct { Counter uint64 // contains filtered or unexported fields }
NetworkMockSetOperableFuncExpectation specifies expectation struct of the Network.SetOperableFunc
type NetworkMockSetOperableFuncParams ¶
type NetworkMockSetOperableFuncParams struct {
// contains filtered or unexported fields
}
NetworkMockSetOperableFuncParams contains parameters of the Network.SetOperableFunc
type ParcelMock ¶ added in v0.7.5
type ParcelMock struct { AllowedSenderObjectAndRoleMock mParcelMockAllowedSenderObjectAndRole ContextMock mParcelMockContext DefaultRoleMock mParcelMockDefaultRole DefaultTargetMock mParcelMockDefaultTarget DelegationTokenMock mParcelMockDelegationToken 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) DelegationToken ¶ added in v0.7.5
func (mmDelegationToken *ParcelMock) DelegationToken() (d1 mm_insolar.DelegationToken)
DelegationToken implements insolar.Parcel
func (*ParcelMock) DelegationTokenAfterCounter ¶
func (mmDelegationToken *ParcelMock) DelegationTokenAfterCounter() uint64
DelegationTokenAfterCounter returns a count of finished ParcelMock.DelegationToken invocations
func (*ParcelMock) DelegationTokenBeforeCounter ¶
func (mmDelegationToken *ParcelMock) DelegationTokenBeforeCounter() uint64
DelegationTokenBeforeCounter returns a count of ParcelMock.DelegationToken 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) MinimockDelegationTokenDone ¶
func (m *ParcelMock) MinimockDelegationTokenDone() bool
MinimockDelegationTokenDone returns true if the count of the DelegationToken invocations corresponds the number of defined expectations
func (*ParcelMock) MinimockDelegationTokenInspect ¶
func (m *ParcelMock) MinimockDelegationTokenInspect()
MinimockDelegationTokenInspect 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 ¶
func (e *ParcelMockContextExpectation) Then(c2 context.Context) *ParcelMock
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 ParcelMockDelegationTokenExpectation ¶ added in v0.7.5
type ParcelMockDelegationTokenExpectation struct { Counter uint64 // contains filtered or unexported fields }
ParcelMockDelegationTokenExpectation specifies expectation struct of the Parcel.DelegationToken
type ParcelMockDelegationTokenResults ¶
type ParcelMockDelegationTokenResults struct {
// contains filtered or unexported fields
}
ParcelMockDelegationTokenResults contains results of the Parcel.DelegationToken
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 ¶
func (e *PulseManagerMockSetExpectation) Then(err error) *PulseManagerMock
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 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 ¶
func (mmLeave *TerminationHandlerMock) Leave(ctx context.Context, p1 mm_insolar.PulseNumber)
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
Source Files ¶
- certificate_manager_mock.go
- certificate_mock.go
- contract_requester_mock.go
- core.go
- cryptography_service_mock.go
- delegation_token_factory_mock.go
- discovery_node_mock.go
- global_insolar_lock_mock.go
- jet_releaser_mock.go
- key_processor_mock.go
- logic_runner_mock.go
- machine_logic_executor_mock.go
- message_bus_mock.go
- network_mock.go
- parcel_mock.go
- pulse_distributor_mock.go
- pulse_manager_mock.go
- termination_handler_mock.go