aleo-setup
aleo-setup copied to clipboard
Finish tests for coordinator_state.rs
Unit tests in coordinator_state.rs are unfinished. In particular, the following functions have no associated tests. We need to implement tests for these as part of the broader test suite.
aleo-setup/phase1-coordinator/src/coordinator_state.rs
// TODO (howardwu): Add individual tests and assertions after each of these operations.
{
// Update the current round to aggregated.
state.aggregating_current_round().unwrap();
state.aggregated_current_round().unwrap();
// Update the current round metrics.
state.update_round_metrics();
// Update the state of current round contributors.
state.update_current_contributors().unwrap();
// Update the state of current round verifiers.
state.update_current_verifiers().unwrap();
// Drop disconnected participants from the current round.
state.update_dropped_participants().unwrap();
// Ban any participants who meet the coordinator criteria.
state.update_banned_participants().unwrap();
}