Refactor channelmanager tests into more appropriate submodule tests
Fix #2958
Previously channelmanager had a single test module withint channelmanager.rs
This changes introduces moving refactoring 23 tests of channelmanager into following test groups
Group 1: Key Send and Payment Verification
- test_keysend_dup_hash_partial_mpp
- test_keysend_dup_payment_hash
- test_keysend_hash_mismatch
- test_keysend_msg_with_secret_err
- bad_inbound_payment_hash
- reject_excessively_underpaying_htlcs
- test_final_incorrect_cltv
- test_payment_display
- test_malformed_forward_htlcs_ser
Group 2: Channel Management and Limits
- test_notify_limits
- test_drop_disconnected_peers_when_removing_channels
- test_outpoint_to_peer_coverage
- test_api_calls_with_unkown_counterparty_node
- test_api_calls_with_unavailable_channel
- test_connection_limiting
- test_outbound_chans_unlimited
- test_0conf_limiting
- test_trigger_lnd_force_close
- test_multi_hop_missing_secret
Group 3: Anchor Channel and Configuration Tests
- test_inbound_anchors_manual_acceptance
- test_anchors_zero_fee_htlc_tx_fallback
- test_update_channel_config
Codecov Report
Attention: Patch coverage is 97.88315% with 25 lines in your changes are missing coverage. Please review.
Project coverage is 89.77%. Comparing base (
1890e80) to head (2e4f552). Report is 11 commits behind head on main.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@ Coverage Diff @@
## main #2977 +/- ##
==========================================
- Coverage 89.82% 89.77% -0.06%
==========================================
Files 116 119 +3
Lines 96466 96480 +14
Branches 96466 96480 +14
==========================================
- Hits 86655 86615 -40
- Misses 7264 7304 +40
- Partials 2547 2561 +14
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Note that you'll probably have to rebase this after #2731 adds a new test.
Will take care of that for sure :+1:
@TheBlueMatt updated changes from main after the merge of #2731 Took care of added test
This might need a rebase by now - sorry!
This might need a rebase by now - sorry!
Thanks, will rebase with main. do we have some new tests in channelmanager ? Asking so that I don't accidentally remove the tests
Asking so that I don't accidentally remove the tests
If you do the move-only parts in a separate move-only commit it'll be pretty easy to see with git show --color-move --color-move-ws=ignore-space-change :)
Rebased with main
Looks like this needs rebase, sadly.
Looks like this needs rebase, sadly.
oops..., I will try to complete this PR after this rebase