consensusdata

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodingSpecTest

type EncodingSpecTest struct {
	Name string
	Obj  *types.ConsensusData
}

func Encoding

func Encoding() *EncodingSpecTest

Encoding tests encoding of a ConsensusData struct

func (*EncodingSpecTest) Run

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

func (*EncodingSpecTest) TestName

func (test *EncodingSpecTest) TestName() string

type ValidationSpecTest

type ValidationSpecTest struct {
	Name        string
	Obj         *types.ConsensusData
	ExpectedErr string
}

func BlockAndBlindedBlock

func BlockAndBlindedBlock() *ValidationSpecTest

BlockAndBlindedBlock tests a non nil block and blinded

func DutyNil

func DutyNil() *ValidationSpecTest

DutyNil tests a nil duty obj

func EmptySyncCommitteeAggregator

func EmptySyncCommitteeAggregator() *ValidationSpecTest

EmptySyncCommitteeAggregator tests a invalid sync committee aggregator

func NilBlock

func NilBlock() *ValidationSpecTest

NilBlock tests a nil block proposer

func NoAggregatorData

func NoAggregatorData() *ValidationSpecTest

NoAggregatorData tests a nil aggregator data

func NoAttestationData

func NoAttestationData() *ValidationSpecTest

NoAttestationData tests an invalid attester consensus data

func ValidAggregator

func ValidAggregator() *ValidationSpecTest

ValidAggregator tests a valid aggregator consensus data

func ValidAttester

func ValidAttester() *ValidationSpecTest

ValidAttester tests a valid attester consensus data

func ValidBlindedProposer

func ValidBlindedProposer() *ValidationSpecTest

ValidBlindedProposer tests a valid blinded block proposer

func ValidProposer

func ValidProposer() *ValidationSpecTest

ValidProposer tests a valid block proposer

func ValidSyncCommitteeAggregator

func ValidSyncCommitteeAggregator() *ValidationSpecTest

ValidSyncCommitteeAggregator tests a valid sync committee aggregator

func (*ValidationSpecTest) Run

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

func (*ValidationSpecTest) TestName

func (test *ValidationSpecTest) TestName() string

Jump to

Keyboard shortcuts

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