mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-11 05:20:05 +00:00
52 lines
2.1 KiB
Go
52 lines
2.1 KiB
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"path"
|
|
)
|
|
|
|
type testFunc func() error
|
|
|
|
var (
|
|
epochProcessingDivision = "epoch_processing"
|
|
)
|
|
|
|
// Epoch processing cases
|
|
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"
|
|
)
|
|
|
|
// transitionCoreTest
|
|
var finality = "finality/finality"
|
|
|
|
func placeholderTest() error {
|
|
fmt.Println("hallo")
|
|
return nil
|
|
}
|
|
|
|
// 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,
|
|
finality: finalityTestFunction,
|
|
}
|