package mocks

import "github.com/centrifuge/go-substrate-rpc-client/v4/rpc/mmr/mocks"

Index

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())
}

Source Files

mmr.go

Version
v4.2.1 (latest)
Published
Dec 5, 2023
Platform
linux/amd64
Imports
2 packages
Last checked
1 week ago

Tools for package owners.