merkle

package
v0.7.3-alpha Latest Latest
Warning

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

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

Documentation

Index

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) GetCloudProofFinished added in v0.7.5

func (m *CalculatorMock) GetCloudProofFinished() bool

GetCloudProofFinished returns true if mock invocations count is ok

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) GetGlobuleProofFinished added in v0.7.5

func (m *CalculatorMock) GetGlobuleProofFinished() bool

GetGlobuleProofFinished returns true if mock invocations count is ok

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) GetPulseProofFinished added in v0.7.5

func (m *CalculatorMock) GetPulseProofFinished() bool

GetPulseProofFinished returns true if mock invocations count is ok

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) IsValidFinished added in v0.7.5

func (m *CalculatorMock) IsValidFinished() bool

IsValidFinished returns true if mock invocations count is ok

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 CalculatorMockGetCloudProofExpectation added in v0.7.5

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

func (*CalculatorMockGetCloudProofExpectation) Return added in v0.7.5

type CalculatorMockGetCloudProofInput added in v0.7.5

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

type CalculatorMockGetCloudProofResult added in v0.7.5

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

type CalculatorMockGetGlobuleProofExpectation added in v0.7.5

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

func (*CalculatorMockGetGlobuleProofExpectation) Return added in v0.7.5

type CalculatorMockGetGlobuleProofInput added in v0.7.5

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

type CalculatorMockGetGlobuleProofResult added in v0.7.5

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

type CalculatorMockGetPulseProofExpectation added in v0.7.5

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

func (*CalculatorMockGetPulseProofExpectation) Return added in v0.7.5

type CalculatorMockGetPulseProofInput added in v0.7.5

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

type CalculatorMockGetPulseProofResult added in v0.7.5

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

type CalculatorMockIsValidExpectation added in v0.7.5

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

func (*CalculatorMockIsValidExpectation) Return added in v0.7.5

type CalculatorMockIsValidInput added in v0.7.5

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

type CalculatorMockIsValidResult added in v0.7.5

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

Jump to

Keyboard shortcuts

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