Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
added the mutants from PR stacks-network#4576
Browse files Browse the repository at this point in the history
This became caught in the meantime `stacks-common/src/types/mod.rs:103:9: replace StacksEpochId::supports_pox_missed_slot_unlocks `
  • Loading branch information
ASuciuX committed Mar 27, 2024
1 parent 4a0b3ce commit 304b44d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions stackslib/src/chainstate/stacks/boot/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,9 @@ impl StacksChainState {
/// Currently, this just means applying any auto-unlocks to Stackers who qualified.
///
/// This should only be called for PoX v2 cycles.
/// TODO: #4587 create default for StacksTransactionEvent , then check if mutation tests are caught for these cases:
/// Ok(vec![Default::default()])
#[cfg_attr(test, mutants::skip)]
pub fn handle_pox_cycle_start_pox_2(
clarity: &mut ClarityTransactionConnection,
cycle_number: u64,
Expand All @@ -439,6 +442,9 @@ impl StacksChainState {
/// Currently, this just means applying any auto-unlocks to Stackers who qualified.
///
/// This should only be called for PoX v3 cycles.
/// TODO: #4587 create default for StacksTransactionEvent , then check if mutation tests are caught for these cases:
/// Ok(vec![Default::default()])
#[cfg_attr(test, mutants::skip)]
pub fn handle_pox_cycle_start_pox_3(
clarity: &mut ClarityTransactionConnection,
cycle_number: u64,
Expand All @@ -451,6 +457,9 @@ impl StacksChainState {
/// Currently, this just means applying any auto-unlocks to Stackers who qualified.
///
/// This should only be called for PoX v4 cycles.
/// TODO: #4587 create default for StacksTransactionEvent , then check if mutation tests are caught for these cases:
/// Ok(vec![Default::default()])
#[cfg_attr(test, mutants::skip)]
pub fn handle_pox_cycle_start_pox_4(
_clarity: &mut ClarityTransactionConnection,
_cycle_number: u64,
Expand All @@ -463,6 +472,9 @@ impl StacksChainState {
/// Do all the necessary Clarity operations at the start of a PoX reward cycle.
/// Currently, this just means applying any auto-unlocks to Stackers who qualified.
///
/// TODO: #4587 create default for StacksTransactionEvent , then check if mutation tests are caught for these cases:
/// Ok(vec![Default::default()])
#[cfg_attr(test, mutants::skip)]
fn handle_pox_cycle_missed_unlocks(
clarity: &mut ClarityTransactionConnection,
cycle_number: u64,
Expand Down Expand Up @@ -757,6 +769,9 @@ impl StacksChainState {
/// are repeated floor(stacked_amt / threshold) times.
/// If an address appears in `addresses` multiple times, then the address's associated amounts
/// are summed.
/// TODO: #4587 create default for RewardSet , then check if mutation tests are caught for these cases:
/// Default::default()
#[cfg_attr(test,mutants::skip)]
pub fn make_reward_set(
threshold: u128,
mut addresses: Vec<RawRewardSetEntry>,
Expand Down

0 comments on commit 304b44d

Please sign in to comment.