enginetest

package
v1.19.7 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package enginetest provides test utilities for consensus engines

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestEngine

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

TestEngine provides a test implementation for consensus engines

func NewTestEngine

func NewTestEngine() *TestEngine

NewTestEngine creates a new test engine

func (*TestEngine) Height

func (t *TestEngine) Height() uint64

Height returns the current height

func (*TestEngine) IsStarted

func (t *TestEngine) IsStarted() bool

IsStarted returns whether the engine is started

func (*TestEngine) SetHeight

func (t *TestEngine) SetHeight(height uint64)

SetHeight sets the engine height

func (*TestEngine) Start

func (t *TestEngine) Start(ctx context.Context) error

Start starts the test engine

func (*TestEngine) Stop

func (t *TestEngine) Stop(ctx context.Context) error

Stop stops the test engine

Jump to

Keyboard shortcuts

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