Reduce macro contents in `expect_pending_htlcs_forwardable*` macros 2023-02-macros-for-wilmer
authorMatt Corallo <git@bluematt.me>
Fri, 10 Feb 2023 20:38:14 +0000 (20:38 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 1 Mar 2023 18:31:01 +0000 (18:31 +0000)
commit0512260898c21ae295e9754fec6e635b0a4d92ac
tree11a1fd722698e7d3c530ea2cc4bf2c1d444a5bcc
parent226c43cc931c8a4c141567606e72712a5c6f378b
Reduce macro contents in `expect_pending_htlcs_forwardable*` macros

The `expect_pending_htlcs_forwardable*` macros don't need to be
macros so here we move much of the logic in them to a function and
leave the macro in place to avoid touching every line of code in
the tests.

This reduces the `--profile=test --lib` `Zpretty=expanded` code
size from 301,915 LoC to 295,294 LoC.
lightning/src/ln/functional_test_utils.rs