# Packages
Package beaconmock provides a mock beacon node server and client primarily for testing.
No description provided by the author
Command genchangelog provides a tool to generate a changelog.md file from a git commit range.
Package integration provides integration tests that includes multiple instances communicating via loopback networking.
No description provided by the author
No description provided by the author
Package validatormock provides mock validator client functionality.
Command verifypr provides a tool to verify charon PRs against the template defined in docs/contibuting.md.
# Functions
AvailableAddr returns an available local tcp address.
AvailableMultiAddr returns an available local tcp address as a multiaddr.
No description provided by the author
No description provided by the author
No description provided by the author
EnsureCleanup calls cleanupFunc in one of two cases: - 100ms before the test deadline is exceeded when it is run with `-timeout`, or - on test cleanup.
GenerateInsecureK1Key returns a new deterministic insecure secp256k1 private using the provided seed for testing purposes only.
GetFreePort returns a free port on the machine on which the test is ran.
No description provided by the author
No description provided by the author
NewEth2Fuzzer returns a fuzzer for valid eth2 types using the provided seed, unless seed is zero in which case it uses current time.
No description provided by the author
NewTCPNodeCallback returns a callback that can be used to connect a TCP node to all other TCP nodes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RandomBool returns a random boolean.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RandomCapellaVersionedProposal returns a random versioned proposal containing capella beacon block.
RandomCapellaVersionedSignedBeaconBlock returns a random signed capella beacon block.
No description provided by the author
RandomCapellaVersionedSignedProposal returns a random versioned signed proposal containing capella beacon block.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RandomCorePubKey returns a random core workflow pubkey.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RandomDenebVersionedProposal returns a random versioned proposal containing deneb beacon block.
RandomDenebVersionedSignedBeaconBlock returns a random signed deneb beacon block.
No description provided by the author
RandomDenebVersionedSignedProposal returns a random versioned signed proposal containing deneb beacon block.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RandomEth2PubKey returns a random eth2 phase0 bls pubkey.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RandomSecp256k1Signature returns a random byte slice of length 65 with the last byte set to 0, 1, 27 or 28.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RequireGoldenBytes asserts that a golden testdata file exists containing the exact data.
RequireGoldenJSON asserts that a golden testdata file exists containing the JSON serialised form of the data object.
RequireGoldenProto asserts that a golden testdata file exists containing the prototext serialised form of the protobuf message.
RequireNoError extends require.NoError with additional error stack trace and structured field logging for improved test debugging.
RequireProtoEqual compares two protobuf messages and fails the test if they are not equal.
RequireProtosEqual compares two protobuf slices and fails the test if they are not equal.
SkipIfBindErr skips the test if the error is "bind: address already in use".
WithFilename configures a custom golden test filename.
# Variables
nolint:revive // keep slot variable name for clarity.
nolint:revive // keep slot variable name for clarity.