-
Notifications
You must be signed in to change notification settings - Fork 411
Move and Rustfmt Channel Type Negotiation Tests #3827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
👋 Thanks for assigning @tankyleo as a reviewer! |
I think we can go ahead with review here independent of #3792, because it's touching different files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Rewrote the first three commits on my own machine, they match except for these tiny variable names.
- Manual mutation testing against the
get_initial_channel_type
tests
LGTM
InitFeatures::empty(), | ||
ChannelTypeFeatures::only_static_remote_key(), | ||
|cfg: &mut UserConfig| { | ||
cfg.channel_handshake_config.announce_for_forwarding = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: UserConfig::default
sets announce_for_forwarding = false
already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced with a comment 👍
👋 The first review has been submitted! Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer. |
Add straightforward unit tests for get_initial_channel_type, which will be expanded when we add zero_fee_commitment type.
56eff67
to
e7e0124
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3827 +/- ##
==========================================
+ Coverage 89.90% 90.41% +0.50%
==========================================
Files 160 161 +1
Lines 129222 133876 +4654
Branches 129222 133876 +4654
==========================================
+ Hits 116182 121046 +4864
+ Misses 10348 10127 -221
- Partials 2692 2703 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
✅ Added second reviewer: @wpaulino |
🔔 1st Reminder Hey @tankyleo! This PR has been waiting for your review. |
This PR:
channel.rs
's tests to usetest_utils::FeeEstimator
channel_type
negotiation into their own fileget_initial_channel_type