Adds tests that kill two surviving mutants in src/wallet/coinselection.cpp.
SelectionResult::Merge()
- if (m_algo == SelectionAlgorithm::MANUAL) {
+ if (m_algo != SelectionAlgorithm::MANUAL) {
With this mutant, merged results report the wrong algorithm. The test fails with manual != bnb.
SelectionResult::GetTotalBumpFees()
- return std::accumulate(...) - bump_fee_group_discount;
+ return std::accumulate(...) + bump_fee_group_discount;
With this mutant, the wallet overpays fees. The test fails with 90 != 30.
OutputGroup::EligibleForSpending()
- return m_depth >= (m_from_me ? eligibility_filter.conf_mine : eligibility_filter.conf_theirs)
+ return m_depth > (m_from_me ? eligibility_filter.conf_mine : eligibility_filter.conf_theirs)
With this mutant, a coin with exactly the required number of confirmations is incorrectly rejected. The test checks that a coin with exactly the required confirmations is eligible, while one with fewer confirmations is not. The test passes on the branch and fails with the mutant applied.