nimbus-eth2/tests/consensus_spec
Etan Kissling dd1f362536
align `Beacon(Block(Body)?|State)Type` with other fork sugar (#5483)
The templates for `BeaconBlock`, `BeaconBlockBody` and `BeaconState`
are the only ones using a `macro` mechanism for code generation.
This prevents using the dot-syntax style `consensusFork.BeaconFoo`
in some situations, and also tends to trigger naming conflicts,
requiring the `Type` suffix. Furthermore, the `macro` only works
for types that are re-defined in every single `ConsensusFork`.

Replacing with the simpler but more verbose approach used for other
types for consistency and to avoid the downsides of the `macro`.

Furthermore, simplify `test_fixture_sanity_blocks` to use `forks` sugar.
2023-10-05 14:01:40 +02:00
..
altair automated consensus spec URL updating to v1.4.0-beta.2 (#5453) 2023-09-21 18:06:51 +00:00
bellatrix restore full test coverage for process_rewards_and_penalties (#5407) 2023-09-08 16:42:18 +00:00
capella restore full test coverage for process_rewards_and_penalties (#5407) 2023-09-08 16:42:18 +00:00
deneb restore full test coverage for process_rewards_and_penalties (#5407) 2023-09-08 16:42:18 +00:00
phase0 fix relative import paths for Nim 2.0 (#5397) 2023-09-06 08:17:59 +00:00
README.md test fixture cleanups (#2976) 2021-10-12 13:36:52 +02:00
all_tests.nim add Bellatrix fork and transition tests; "Ethereum Foundation" -> EF (#3242) 2022-01-05 09:42:56 +01:00
consensus_spec_tests_preset.nim rename directory tests/consensus_specs/{eip4844,deneb}/ (#4628) 2023-02-15 21:07:31 +00:00
fixtures_utils.nim automated consensus spec URL updating to v1.4.0-beta.1 (#5280) 2023-08-09 03:58:47 +00:00
os_ops.nim Fix Windows MAX_PATH constraint issue in CI. (#4576) 2023-02-10 21:59:38 +01:00
test_fixture_fork.nim bump unittest2, clean up suite names (#5384) 2023-09-04 13:05:11 +00:00
test_fixture_fork_choice.nim simplify fork choice test (#5467) 2023-09-29 13:26:34 +00:00
test_fixture_light_client_single_merkle_proof.nim align `Beacon(Block(Body)?|State)Type` with other fork sugar (#5483) 2023-10-05 14:01:40 +02:00
test_fixture_light_client_sync.nim reduce redundant zero initialization for LC data objects (#5479) 2023-10-04 18:11:45 +02:00
test_fixture_light_client_update_ranking.nim fix relative import paths for Nim 2.0 (#5397) 2023-09-06 08:17:59 +00:00
test_fixture_sanity_blocks.nim align `Beacon(Block(Body)?|State)Type` with other fork sugar (#5483) 2023-10-05 14:01:40 +02:00
test_fixture_sanity_slots.nim fix relative import paths for Nim 2.0 (#5397) 2023-09-06 08:17:59 +00:00
test_fixture_ssz_generic_types.nim Fix Windows MAX_PATH constraint issue in CI. (#4576) 2023-02-10 21:59:38 +01:00
test_fixture_transition.nim bump unittest2, clean up suite names (#5384) 2023-09-04 13:05:11 +00:00

README.md

Tests based on scenarios generated from the consensus spec.