Documentation ¶
Index ¶
- type CalculatorMock
- func (m *CalculatorMock) AllMocksCalled() bool
- func (m *CalculatorMock) CheckMocksCalled()
- func (m *CalculatorMock) Finish()
- func (m *CalculatorMock) GetCloudProof(p *merkle.CloudEntry) (r merkle.OriginHash, r1 *merkle.CloudProof, r2 error)
- func (m *CalculatorMock) GetCloudProofMinimockCounter() uint64
- func (m *CalculatorMock) GetCloudProofMinimockPreCounter() uint64
- func (m *CalculatorMock) GetGlobuleProof(p *merkle.GlobuleEntry) (r merkle.OriginHash, r1 *merkle.GlobuleProof, r2 error)
- func (m *CalculatorMock) GetGlobuleProofMinimockCounter() uint64
- func (m *CalculatorMock) GetGlobuleProofMinimockPreCounter() uint64
- func (m *CalculatorMock) GetPulseProof(p *merkle.PulseEntry) (r merkle.OriginHash, r1 *merkle.PulseProof, r2 error)
- func (m *CalculatorMock) GetPulseProofMinimockCounter() uint64
- func (m *CalculatorMock) GetPulseProofMinimockPreCounter() uint64
- func (m *CalculatorMock) IsValid(p merkle.Proof, p1 merkle.OriginHash, p2 crypto.PublicKey) (r bool)
- func (m *CalculatorMock) IsValidMinimockCounter() uint64
- func (m *CalculatorMock) IsValidMinimockPreCounter() uint64
- func (m *CalculatorMock) MinimockFinish()
- func (m *CalculatorMock) MinimockWait(timeout time.Duration)
- func (m *CalculatorMock) ValidateCallCounters()
- func (m *CalculatorMock) Wait(timeout time.Duration)
- type CalculatorMockGetCloudProofParams
- type CalculatorMockGetGlobuleProofParams
- type CalculatorMockGetPulseProofParams
- type CalculatorMockIsValidParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalculatorMock ¶
type CalculatorMock struct { GetCloudProofFunc func(p *merkle.CloudEntry) (r merkle.OriginHash, r1 *merkle.CloudProof, r2 error) GetCloudProofCounter uint64 GetCloudProofPreCounter uint64 GetCloudProofMock mCalculatorMockGetCloudProof GetGlobuleProofFunc func(p *merkle.GlobuleEntry) (r merkle.OriginHash, r1 *merkle.GlobuleProof, r2 error) GetGlobuleProofCounter uint64 GetGlobuleProofPreCounter uint64 GetGlobuleProofMock mCalculatorMockGetGlobuleProof GetPulseProofFunc func(p *merkle.PulseEntry) (r merkle.OriginHash, r1 *merkle.PulseProof, r2 error) GetPulseProofCounter uint64 GetPulseProofPreCounter uint64 GetPulseProofMock mCalculatorMockGetPulseProof IsValidFunc func(p merkle.Proof, p1 merkle.OriginHash, p2 crypto.PublicKey) (r bool) IsValidCounter uint64 IsValidPreCounter uint64 IsValidMock mCalculatorMockIsValid // contains filtered or unexported fields }
CalculatorMock implements github.com/insolar/insolar/network/merkle.Calculator
func NewCalculatorMock ¶
func NewCalculatorMock(t minimock.Tester) *CalculatorMock
NewCalculatorMock returns a mock for github.com/insolar/insolar/network/merkle.Calculator
func (*CalculatorMock) AllMocksCalled ¶
func (m *CalculatorMock) AllMocksCalled() bool
AllMocksCalled returns true if all mocked methods were called before the execution of AllMocksCalled, it can be used with assert/require, i.e. assert.True(mock.AllMocksCalled())
func (*CalculatorMock) CheckMocksCalled ¶
func (m *CalculatorMock) CheckMocksCalled()
CheckMocksCalled checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*CalculatorMock) Finish ¶
func (m *CalculatorMock) Finish()
Finish checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish or use Finish method of minimock.Controller
func (*CalculatorMock) GetCloudProof ¶
func (m *CalculatorMock) GetCloudProof(p *merkle.CloudEntry) (r merkle.OriginHash, r1 *merkle.CloudProof, r2 error)
GetCloudProof implements github.com/insolar/insolar/network/merkle.Calculator interface
func (*CalculatorMock) GetCloudProofMinimockCounter ¶
func (m *CalculatorMock) GetCloudProofMinimockCounter() uint64
GetCloudProofMinimockCounter returns a count of CalculatorMock.GetCloudProofFunc invocations
func (*CalculatorMock) GetCloudProofMinimockPreCounter ¶
func (m *CalculatorMock) GetCloudProofMinimockPreCounter() uint64
GetCloudProofMinimockPreCounter returns the value of CalculatorMock.GetCloudProof invocations
func (*CalculatorMock) GetGlobuleProof ¶
func (m *CalculatorMock) GetGlobuleProof(p *merkle.GlobuleEntry) (r merkle.OriginHash, r1 *merkle.GlobuleProof, r2 error)
GetGlobuleProof implements github.com/insolar/insolar/network/merkle.Calculator interface
func (*CalculatorMock) GetGlobuleProofMinimockCounter ¶
func (m *CalculatorMock) GetGlobuleProofMinimockCounter() uint64
GetGlobuleProofMinimockCounter returns a count of CalculatorMock.GetGlobuleProofFunc invocations
func (*CalculatorMock) GetGlobuleProofMinimockPreCounter ¶
func (m *CalculatorMock) GetGlobuleProofMinimockPreCounter() uint64
GetGlobuleProofMinimockPreCounter returns the value of CalculatorMock.GetGlobuleProof invocations
func (*CalculatorMock) GetPulseProof ¶
func (m *CalculatorMock) GetPulseProof(p *merkle.PulseEntry) (r merkle.OriginHash, r1 *merkle.PulseProof, r2 error)
GetPulseProof implements github.com/insolar/insolar/network/merkle.Calculator interface
func (*CalculatorMock) GetPulseProofMinimockCounter ¶
func (m *CalculatorMock) GetPulseProofMinimockCounter() uint64
GetPulseProofMinimockCounter returns a count of CalculatorMock.GetPulseProofFunc invocations
func (*CalculatorMock) GetPulseProofMinimockPreCounter ¶
func (m *CalculatorMock) GetPulseProofMinimockPreCounter() uint64
GetPulseProofMinimockPreCounter returns the value of CalculatorMock.GetPulseProof invocations
func (*CalculatorMock) IsValid ¶
func (m *CalculatorMock) IsValid(p merkle.Proof, p1 merkle.OriginHash, p2 crypto.PublicKey) (r bool)
IsValid implements github.com/insolar/insolar/network/merkle.Calculator interface
func (*CalculatorMock) IsValidMinimockCounter ¶
func (m *CalculatorMock) IsValidMinimockCounter() uint64
IsValidMinimockCounter returns a count of CalculatorMock.IsValidFunc invocations
func (*CalculatorMock) IsValidMinimockPreCounter ¶
func (m *CalculatorMock) IsValidMinimockPreCounter() uint64
IsValidMinimockPreCounter returns the value of CalculatorMock.IsValid invocations
func (*CalculatorMock) MinimockFinish ¶
func (m *CalculatorMock) MinimockFinish()
MinimockFinish checks that all mocked methods of the interface have been called at least once
func (*CalculatorMock) MinimockWait ¶
func (m *CalculatorMock) MinimockWait(timeout time.Duration)
MinimockWait waits for all mocked methods to be called at least once this method is called by minimock.Controller
func (*CalculatorMock) ValidateCallCounters ¶
func (m *CalculatorMock) ValidateCallCounters()
ValidateCallCounters checks that all mocked methods of the interface have been called at least once Deprecated: please use MinimockFinish method or use Finish method of minimock.Controller
func (*CalculatorMock) Wait ¶
func (m *CalculatorMock) Wait(timeout time.Duration)
Wait waits for all mocked methods to be called at least once Deprecated: please use MinimockWait or use Wait method of minimock.Controller
type CalculatorMockGetCloudProofParams ¶
type CalculatorMockGetCloudProofParams struct {
// contains filtered or unexported fields
}
CalculatorMockGetCloudProofParams represents input parameters of the Calculator.GetCloudProof
type CalculatorMockGetGlobuleProofParams ¶
type CalculatorMockGetGlobuleProofParams struct {
// contains filtered or unexported fields
}
CalculatorMockGetGlobuleProofParams represents input parameters of the Calculator.GetGlobuleProof
type CalculatorMockGetPulseProofParams ¶
type CalculatorMockGetPulseProofParams struct {
// contains filtered or unexported fields
}
CalculatorMockGetPulseProofParams represents input parameters of the Calculator.GetPulseProof
type CalculatorMockIsValidParams ¶
type CalculatorMockIsValidParams struct {
// contains filtered or unexported fields
}
CalculatorMockIsValidParams represents input parameters of the Calculator.IsValid