testing

package
v4.0.0-...-b8b0360 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitlistWithAllBitsSet

func BitlistWithAllBitsSet(length uint64) bitfield.Bitlist

BitlistWithAllBitsSet creates list of bitlists with all bits set.

func Bitlists64WithMultipleBitSet

func Bitlists64WithMultipleBitSet(t testing.TB, n, length, count uint64) []*bitfield.Bitlist64

Bitlists64WithMultipleBitSet creates list of bitlists with random n bits set.

func Bitlists64WithSingleBitSet

func Bitlists64WithSingleBitSet(n, length uint64) []*bitfield.Bitlist64

Bitlists64WithSingleBitSet creates list of bitlists with a single bit set in each.

func BitlistsWithMultipleBitSet

func BitlistsWithMultipleBitSet(t testing.TB, n, length, count uint64) []bitfield.Bitlist

BitlistsWithMultipleBitSet creates list of bitlists with random n bits set.

func BitlistsWithSingleBitSet

func BitlistsWithSingleBitSet(n, length uint64) []bitfield.Bitlist

BitlistsWithSingleBitSet creates list of bitlists with a single bit set in each.

func MakeAttestationsFromBitlists

func MakeAttestationsFromBitlists(bl []bitfield.Bitlist) []*zondpb.Attestation

MakeAttestationsFromBitlists creates list of attestations from list of bitlist.

func MakeSyncContributionsFromBitVector

func MakeSyncContributionsFromBitVector(bl []bitfield.Bitvector128) []*zondpb.SyncCommitteeContribution

MakeSyncContributionsFromBitVector creates list of sync contributions from list of bitvector.

Types

This section is empty.

Jump to

Keyboard shortcuts

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