@@ -56,7 +56,7 @@ use crate::types::features::{Bolt12InvoiceFeatures, ChannelFeatures, ChannelType
5656#[cfg(any(feature = "_test_utils", test))]
5757use crate::types::features::Bolt11InvoiceFeatures;
5858use crate::routing::router::{BlindedTail, InFlightHtlcs, Path, Payee, PaymentParameters, RouteParameters, Router};
59- #[cfg(test)]
59+ #[cfg(any( test, feature = "_test_utils") )]
6060use crate::routing::router::Route;
6161use crate::ln::onion_payment::{check_incoming_htlc_cltv, create_recv_pending_htlc_info, create_fwd_pending_htlc_info, decode_incoming_update_add_htlc_onion, InboundHTLCErr, NextPacketDetails};
6262use crate::ln::msgs;
@@ -128,8 +128,8 @@ use core::ops::Deref;
128128use bitcoin::hex::impl_fmt_traits;
129129// Re-export this for use in the public API.
130130pub use crate::ln::outbound_payment::{Bolt12PaymentError, ProbeSendFailure, Retry, RetryableSendFailure, RecipientOnionFields};
131- #[cfg(test)]
132- pub(crate) use crate::ln::outbound_payment::PaymentSendFailure;
131+ #[cfg(any( test, feature = "_test_utils") )]
132+ pub use crate::ln::outbound_payment::PaymentSendFailure;
133133use crate::ln::script::ShutdownScript;
134134
135135// We hold various information about HTLC relay in the HTLC objects in Channel itself:
@@ -4627,8 +4627,8 @@ where
46274627 // [`TestRouter::expect_find_route`] instead.
46284628 //
46294629 // [`TestRouter::expect_find_route`]: crate::util::test_utils::TestRouter::expect_find_route
4630- #[cfg(test)]
4631- pub(crate) fn send_payment_with_route(
4630+ #[cfg(any( test, feature = "_test_utils") )]
4631+ pub fn send_payment_with_route(
46324632 &self, route: Route, payment_hash: PaymentHash, recipient_onion: RecipientOnionFields,
46334633 payment_id: PaymentId
46344634 ) -> Result<(), PaymentSendFailure> {
0 commit comments