mockTraceSource

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBlockReader

type MockBlockReader struct {
	BlockCount       int
	Blocks           [][]byte
	CaseDataPerBlock [][]int
	//if > 0, return error for all blocks with a greater index
	FailAfter int
}

func (MockBlockReader) GetBlock

func (m MockBlockReader) GetBlock(nr int) ([]byte, []int, error)

func (MockBlockReader) TotalBlockCount

func (m MockBlockReader) TotalBlockCount() int

Jump to

Keyboard shortcuts

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