merkle

package
v0.9.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 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 {
	GetCloudProofMock mCalculatorMockGetCloudProof

	GetGlobuleProofMock mCalculatorMockGetGlobuleProof

	GetPulseProofMock mCalculatorMockGetPulseProof

	IsValidMock mCalculatorMockIsValid
	// contains filtered or unexported fields
}

CalculatorMock implements merkle.Calculator

func NewCalculatorMock

func NewCalculatorMock(t minimock.Tester) *CalculatorMock

NewCalculatorMock returns a mock for merkle.Calculator

func (*CalculatorMock) GetCloudProof

func (mmGetCloudProof *CalculatorMock) GetCloudProof(cp1 *mm_merkle.CloudEntry) (o1 mm_merkle.OriginHash, cp2 *mm_merkle.CloudProof, err error)

GetCloudProof implements merkle.Calculator

func (*CalculatorMock) GetCloudProofAfterCounter added in v0.9.0

func (mmGetCloudProof *CalculatorMock) GetCloudProofAfterCounter() uint64

GetCloudProofAfterCounter returns a count of finished CalculatorMock.GetCloudProof invocations

func (*CalculatorMock) GetCloudProofBeforeCounter added in v0.9.0

func (mmGetCloudProof *CalculatorMock) GetCloudProofBeforeCounter() uint64

GetCloudProofBeforeCounter returns a count of CalculatorMock.GetCloudProof invocations

func (*CalculatorMock) GetGlobuleProof

func (mmGetGlobuleProof *CalculatorMock) GetGlobuleProof(gp1 *mm_merkle.GlobuleEntry) (o1 mm_merkle.OriginHash, gp2 *mm_merkle.GlobuleProof, err error)

GetGlobuleProof implements merkle.Calculator

func (*CalculatorMock) GetGlobuleProofAfterCounter added in v0.9.0

func (mmGetGlobuleProof *CalculatorMock) GetGlobuleProofAfterCounter() uint64

GetGlobuleProofAfterCounter returns a count of finished CalculatorMock.GetGlobuleProof invocations

func (*CalculatorMock) GetGlobuleProofBeforeCounter added in v0.9.0

func (mmGetGlobuleProof *CalculatorMock) GetGlobuleProofBeforeCounter() uint64

GetGlobuleProofBeforeCounter returns a count of CalculatorMock.GetGlobuleProof invocations

func (*CalculatorMock) GetPulseProof

func (mmGetPulseProof *CalculatorMock) GetPulseProof(pp1 *mm_merkle.PulseEntry) (o1 mm_merkle.OriginHash, pp2 *mm_merkle.PulseProof, err error)

GetPulseProof implements merkle.Calculator

func (*CalculatorMock) GetPulseProofAfterCounter added in v0.9.0

func (mmGetPulseProof *CalculatorMock) GetPulseProofAfterCounter() uint64

GetPulseProofAfterCounter returns a count of finished CalculatorMock.GetPulseProof invocations

func (*CalculatorMock) GetPulseProofBeforeCounter added in v0.9.0

func (mmGetPulseProof *CalculatorMock) GetPulseProofBeforeCounter() uint64

GetPulseProofBeforeCounter returns a count of CalculatorMock.GetPulseProof invocations

func (*CalculatorMock) IsValid

func (mmIsValid *CalculatorMock) IsValid(p1 mm_merkle.Proof, o1 mm_merkle.OriginHash, p2 crypto.PublicKey) (b1 bool)

IsValid implements merkle.Calculator

func (*CalculatorMock) IsValidAfterCounter added in v0.9.0

func (mmIsValid *CalculatorMock) IsValidAfterCounter() uint64

IsValidAfterCounter returns a count of finished CalculatorMock.IsValid invocations

func (*CalculatorMock) IsValidBeforeCounter added in v0.9.0

func (mmIsValid *CalculatorMock) IsValidBeforeCounter() uint64

IsValidBeforeCounter returns a count of CalculatorMock.IsValid invocations

func (*CalculatorMock) MinimockFinish

func (m *CalculatorMock) MinimockFinish()

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

func (*CalculatorMock) MinimockGetCloudProofDone added in v0.9.0

func (m *CalculatorMock) MinimockGetCloudProofDone() bool

MinimockGetCloudProofDone returns true if the count of the GetCloudProof invocations corresponds the number of defined expectations

func (*CalculatorMock) MinimockGetCloudProofInspect added in v0.9.0

func (m *CalculatorMock) MinimockGetCloudProofInspect()

MinimockGetCloudProofInspect logs each unmet expectation

func (*CalculatorMock) MinimockGetGlobuleProofDone added in v0.9.0

func (m *CalculatorMock) MinimockGetGlobuleProofDone() bool

MinimockGetGlobuleProofDone returns true if the count of the GetGlobuleProof invocations corresponds the number of defined expectations

func (*CalculatorMock) MinimockGetGlobuleProofInspect added in v0.9.0

func (m *CalculatorMock) MinimockGetGlobuleProofInspect()

MinimockGetGlobuleProofInspect logs each unmet expectation

func (*CalculatorMock) MinimockGetPulseProofDone added in v0.9.0

func (m *CalculatorMock) MinimockGetPulseProofDone() bool

MinimockGetPulseProofDone returns true if the count of the GetPulseProof invocations corresponds the number of defined expectations

func (*CalculatorMock) MinimockGetPulseProofInspect added in v0.9.0

func (m *CalculatorMock) MinimockGetPulseProofInspect()

MinimockGetPulseProofInspect logs each unmet expectation

func (*CalculatorMock) MinimockIsValidDone added in v0.9.0

func (m *CalculatorMock) MinimockIsValidDone() bool

MinimockIsValidDone returns true if the count of the IsValid invocations corresponds the number of defined expectations

func (*CalculatorMock) MinimockIsValidInspect added in v0.9.0

func (m *CalculatorMock) MinimockIsValidInspect()

MinimockIsValidInspect logs each unmet expectation

func (*CalculatorMock) MinimockWait

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

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

type CalculatorMockGetCloudProofExpectation added in v0.7.5

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

CalculatorMockGetCloudProofExpectation specifies expectation struct of the Calculator.GetCloudProof

func (*CalculatorMockGetCloudProofExpectation) Then added in v0.9.0

Then sets up Calculator.GetCloudProof return parameters for the expectation previously defined by the When method

type CalculatorMockGetCloudProofParams

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

CalculatorMockGetCloudProofParams contains parameters of the Calculator.GetCloudProof

type CalculatorMockGetCloudProofResults added in v0.9.0

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

CalculatorMockGetCloudProofResults contains results of the Calculator.GetCloudProof

type CalculatorMockGetGlobuleProofExpectation added in v0.7.5

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

CalculatorMockGetGlobuleProofExpectation specifies expectation struct of the Calculator.GetGlobuleProof

func (*CalculatorMockGetGlobuleProofExpectation) Then added in v0.9.0

Then sets up Calculator.GetGlobuleProof return parameters for the expectation previously defined by the When method

type CalculatorMockGetGlobuleProofParams

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

CalculatorMockGetGlobuleProofParams contains parameters of the Calculator.GetGlobuleProof

type CalculatorMockGetGlobuleProofResults added in v0.9.0

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

CalculatorMockGetGlobuleProofResults contains results of the Calculator.GetGlobuleProof

type CalculatorMockGetPulseProofExpectation added in v0.7.5

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

CalculatorMockGetPulseProofExpectation specifies expectation struct of the Calculator.GetPulseProof

func (*CalculatorMockGetPulseProofExpectation) Then added in v0.9.0

Then sets up Calculator.GetPulseProof return parameters for the expectation previously defined by the When method

type CalculatorMockGetPulseProofParams

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

CalculatorMockGetPulseProofParams contains parameters of the Calculator.GetPulseProof

type CalculatorMockGetPulseProofResults added in v0.9.0

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

CalculatorMockGetPulseProofResults contains results of the Calculator.GetPulseProof

type CalculatorMockIsValidExpectation added in v0.7.5

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

CalculatorMockIsValidExpectation specifies expectation struct of the Calculator.IsValid

func (*CalculatorMockIsValidExpectation) Then added in v0.9.0

Then sets up Calculator.IsValid return parameters for the expectation previously defined by the When method

type CalculatorMockIsValidParams

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

CalculatorMockIsValidParams contains parameters of the Calculator.IsValid

type CalculatorMockIsValidResults added in v0.9.0

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

CalculatorMockIsValidResults contains results of the Calculator.IsValid

Jump to

Keyboard shortcuts

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