trackermock

package
v1.18.21 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Targeter

type Targeter struct {
	T            *testing.T
	TargetUsageF func(ids.NodeID) float64
}

Targeter is a mock targeter for testing

func NewTargeter

func NewTargeter(t *testing.T) *Targeter

NewTargeter creates a new mock targeter

func (*Targeter) TargetUsage

func (t *Targeter) TargetUsage(nodeID ids.NodeID) float64

Jump to

Keyboard shortcuts

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