valcheck

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiSpecTest

type MultiSpecTest struct {
	Name  string
	Tests []*SpecTest
}

func (*MultiSpecTest) GetPostState

func (tests *MultiSpecTest) GetPostState() (interface{}, error)

func (*MultiSpecTest) Run

func (test *MultiSpecTest) Run(t *testing.T)

func (*MultiSpecTest) TestName

func (test *MultiSpecTest) TestName() string

type SpecTest

type SpecTest struct {
	Name              string
	Network           types.BeaconNetwork
	RunnerRole        types.RunnerRole
	DutySlot          phase0.Slot // DutySlot is used only for the RoleCommittee since the BeaconVoteValueCheckF requires the duty's slot
	Input             []byte
	SlashableSlots    map[string][]phase0.Slot // map share pk to a list of slashable slots
	ShareValidatorsPK []types.ShareValidatorPK `json:"omitempty"` // Optional. Specify validators shares for beacon vote value check
	ExpectedError     string
	AnyError          bool
}

func (*SpecTest) GetPostState

func (tests *SpecTest) GetPostState() (interface{}, error)

func (*SpecTest) Run

func (test *SpecTest) Run(t *testing.T)

func (*SpecTest) TestName

func (test *SpecTest) TestName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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