mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-11 05:20:05 +00:00
41 lines
1.9 KiB
Go
41 lines
1.9 KiB
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"path"
|
||
|
)
|
||
|
|
||
|
type testFunc func() error
|
||
|
|
||
|
var (
|
||
|
epochProcessingDivision = "epoch_processing"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
caseEffectiveBalanceUpdates = "effective_balance_updates"
|
||
|
caseEth1DataReset = "eth1_data_reset"
|
||
|
caseHistoricalRootsUpdate = "historical_roots_update"
|
||
|
caseInactivityUpdates = "inactivity_updates"
|
||
|
caseJustificationAndFinalization = "justification_and_finalization"
|
||
|
caseParticipationFlagUpdates = "participation_flag_updates"
|
||
|
caseRandaoMixesReset = "randao_mixes_reset"
|
||
|
caseRegistryUpdates = "registry_updates"
|
||
|
caseRewardsAndPenalties = "rewards_and_penalties"
|
||
|
caseSlashings = "slashings"
|
||
|
caseSlashingsReset = "slashings_reset"
|
||
|
)
|
||
|
|
||
|
// Following is just a map for all tests to their execution.
|
||
|
var TestCollection map[string]testFunc = map[string]testFunc{
|
||
|
path.Join(epochProcessingDivision, caseEffectiveBalanceUpdates): effectiveBalancesUpdateTest,
|
||
|
path.Join(epochProcessingDivision, caseEth1DataReset): eth1DataResetTest,
|
||
|
path.Join(epochProcessingDivision, caseHistoricalRootsUpdate): historicalRootsUpdateTest,
|
||
|
path.Join(epochProcessingDivision, caseInactivityUpdates): inactivityUpdateTest,
|
||
|
path.Join(epochProcessingDivision, caseJustificationAndFinalization): justificationFinalizationTest,
|
||
|
path.Join(epochProcessingDivision, caseParticipationFlagUpdates): participationFlagUpdatesTest,
|
||
|
path.Join(epochProcessingDivision, caseRandaoMixesReset): randaoMixesTest,
|
||
|
path.Join(epochProcessingDivision, caseRegistryUpdates): registryUpdatesTest,
|
||
|
path.Join(epochProcessingDivision, caseRewardsAndPenalties): rewardsAndPenaltiesTest,
|
||
|
path.Join(epochProcessingDivision, caseSlashings): slashingsTest,
|
||
|
path.Join(epochProcessingDivision, caseSlashingsReset): slashingsResetTest,
|
||
|
}
|