mocks

package
v6.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MMR

type MMR struct {
	mock.Mock
}

MMR is an autogenerated mock type for the MMR type

func NewMMR

func NewMMR(t NewMMRT) *MMR

NewMMR creates a new instance of MMR. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MMR) GenerateProof

func (_m *MMR) GenerateProof(leafIndex uint64, blockHash types.Hash) (types.GenerateMMRProofResponse, error)

GenerateProof provides a mock function with given fields: leafIndex, blockHash

func (*MMR) GenerateProofLatest

func (_m *MMR) GenerateProofLatest(leafIndex uint64) (types.GenerateMMRProofResponse, error)

GenerateProofLatest provides a mock function with given fields: leafIndex

type NewMMRT

type NewMMRT interface {
	mock.TestingT
	Cleanup(func())
}

Jump to

Keyboard shortcuts

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