nimbus-eth2/tests/official
Jacek Sieka c74ba5c0c6
ssz: move ref support outside (#943)
* ssz: move ref support outside

Instead of allocating ref's inside SSZ, move it to separate helper:

* makes `ref` allocations explicit
* less magic inside SSZ
* `ref` in nim generally means reference whereas SSZ was loading as
value - if a type indeed used references it would get copies instead of
references to a single value on roundtrip which is unexpected

TODO: EF tests would benefit from some refactoring since they all do the
same thing practically..

Co-authored-by: Zahary Karadjov <zahary@gmail.com>
2020-04-29 22:12:07 +02:00
..
all_fixtures_require_ssz.nim Generate markdown test reports 2020-03-13 14:38:59 +00:00
fixtures_utils.nim 0.11.1 beacon chain spec update (#836) 2020-03-30 11:31:44 +00:00
test_fixture_bls.nim Generate markdown test reports 2020-03-13 14:38:59 +00:00
test_fixture_const_sanity_check.nim refactor some Merkle proof generation code outside tests; remove unused variables/functions 2020-04-15 09:59:49 +00:00
test_fixture_operations_attestations.nim ssz: move ref support outside (#943) 2020-04-29 22:12:07 +02:00
test_fixture_operations_attester_slashings.nim ssz: move ref support outside (#943) 2020-04-29 22:12:07 +02:00
test_fixture_operations_block_header.nim ssz: move ref support outside (#943) 2020-04-29 22:12:07 +02:00
test_fixture_operations_deposits.nim ssz: move ref support outside (#943) 2020-04-29 22:12:07 +02:00
test_fixture_operations_proposer_slashings.nim ssz: move ref support outside (#943) 2020-04-29 22:12:07 +02:00
test_fixture_operations_voluntary_exit.nim ssz: move ref support outside (#943) 2020-04-29 22:12:07 +02:00
test_fixture_sanity_blocks.nim ssz: move ref support outside (#943) 2020-04-29 22:12:07 +02:00
test_fixture_sanity_slots.nim ssz: move ref support outside (#943) 2020-04-29 22:12:07 +02:00
test_fixture_shuffling.nim measure/find slow tests (#624) 2019-12-05 11:27:00 +01:00
test_fixture_ssz_consensus_objects.nim ssz: move ref support outside (#943) 2020-04-29 22:12:07 +02:00
test_fixture_ssz_consensus_objects.nim.cfg Ssz fixes (#566) 2019-11-19 12:04:51 +01:00
test_fixture_ssz_generic_types.nim Pass the test suite with a BeaconState ref type 2020-04-26 13:04:53 +03:00
test_fixture_state_transition_epoch.nim ssz: move ref support outside (#943) 2020-04-29 22:12:07 +02:00