report

package
v0.0.0-...-2be76b0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestEmptyReportHandling

func TestEmptyReportHandling(t *testing.T)

func TestGenerateFromBlockStore

func TestGenerateFromBlockStore(t *testing.T)

func TestReportErrorHandling

func TestReportErrorHandling(t *testing.T)

func TestReportsAddDataPoint

func TestReportsAddDataPoint(t *testing.T)

func TestToFloat

func TestToFloat(t *testing.T)

Types

type MockBlockStore

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

MockBlockStore implements BlockStore interface for testing

func NewMockBlockStore

func NewMockBlockStore(base, height int64) *MockBlockStore

func (*MockBlockStore) AddBlock

func (m *MockBlockStore) AddBlock(height int64, block *types.Block)

func (*MockBlockStore) Base

func (m *MockBlockStore) Base() int64

func (*MockBlockStore) Height

func (m *MockBlockStore) Height() int64

func (*MockBlockStore) LoadBlock

func (m *MockBlockStore) LoadBlock(height int64) *types.Block

Jump to

Keyboard shortcuts

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