Skip to content

Run rustfmt on payment_tests and functional_tests and split up the latter #3751

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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

TheBlueMatt
Copy link
Collaborator

functional_tests' time has come, and there's some easy batches of tests to move into separate files. Even at the end its still 10k LoC, but that's better than the 14K it started as (let alone how long it'd be if it were naively rustfmt'd).

`funtional_tests.rs` has gotten incredibly huge over the years, so
here we move some channel reserve tests into a new file.
`funtional_tests.rs` has gotten incredibly huge over the years, so
here we move some further channel reserve tests into a new file.

We do so separately from the previous commit to ensure git
identifies the changes as move-only.
`funtional_tests.rs` has gotten incredibly huge over the years, so
here we move some simple HTLC unit tests into a new file.
`funtional_tests.rs` has gotten incredibly huge over the years, so
here we move all the channel fee-related tests out to their own
file.
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Apr 28, 2025

👋 Thanks for assigning @joostjager 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.

In general we shouldn't have tests lying around that are useless as
its dead code and may break due to harmless protocol changes. Here,
we drop a few useless tests.
@TheBlueMatt TheBlueMatt force-pushed the 2025-04-rustfmt-tests-1 branch from 293c6af to 820cb58 Compare April 28, 2025 14:54
@wpaulino wpaulino requested review from joostjager and removed request for wpaulino April 28, 2025 20:27
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.

2 participants