Skip to content

Conversation

@elnosh
Copy link
Contributor

@elnosh elnosh commented Nov 20, 2025

No description provided.

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Nov 20, 2025

I've assigned @wpaulino as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

❌ Patch coverage is 99.66777% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.34%. Comparing base (e663517) to head (8423ffa).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
lightning/src/ln/async_payments_tests.rs 93.33% 1 Missing ⚠️
lightning/src/ln/functional_test_utils.rs 97.50% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4238      +/-   ##
==========================================
+ Coverage   89.33%   89.34%   +0.01%     
==========================================
  Files         180      180              
  Lines      139302   139304       +2     
  Branches   139302   139304       +2     
==========================================
+ Hits       124439   124462      +23     
+ Misses      12240    12217      -23     
- Partials     2623     2625       +2     
Flag Coverage Δ
fuzzing 35.04% <0.00%> (-0.01%) ⬇️
tests 88.68% <99.66%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

use lightning::ln::functional_test_utils::expect_payment_sent;
use lightning::ln::functional_test_utils::test_default_channel_config;
use lightning::ln::functional_test_utils::SendEvent;
use lightning::ln::functional_test_utils::{check_added_monitors, create_funding_transaction};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We usually just import lightning::ln::functional_test_utils::*, no need to import all of these manually. There are a few more like this throughout the diff as well.

@ldk-reviews-bot
Copy link

👋 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.

@elnosh elnosh force-pushed the remove-testutils-macros branch from b5e05cd to 51de9f2 Compare November 21, 2025 21:57
@@ -1,14 +1,11 @@
use lightning::check_closed_broadcast;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be removed now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't I still need it? since macros are available at the root of the crate. Removing it fails, I don't think it is imported as part of use lightning::ln::functional_test_utils::*;. Same for the other ones.

check_added_monitors, check_spends, get_local_commitment_txn, get_monitor,
get_route_and_payment_hash,
};
use crate::{check_spends, get_local_commitment_txn, get_monitor, get_route_and_payment_hash};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These too

mod tests {
use super::*;
use crate::chain::ChannelMonitorUpdateStatus;
use crate::check_closed_broadcast;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@TheBlueMatt
Copy link
Collaborator

Looks like this needs rebase now @elnosh

Replace calls to `check_added_monitors` macro
to the identically-named function.
@elnosh elnosh force-pushed the remove-testutils-macros branch from 51de9f2 to 8423ffa Compare December 9, 2025 16:54
@wpaulino wpaulino merged commit ef844f2 into lightningdevkit:main Dec 9, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants