@@ -117,6 +117,8 @@ use crate::ln::features::{BlindedHopFeatures, Bolt12InvoiceFeatures, InvoiceRequ
117
117
use crate :: ln:: inbound_payment:: { ExpandedKey , IV_LEN } ;
118
118
use crate :: ln:: msgs:: DecodeError ;
119
119
use crate :: offers:: invoice_macros:: { invoice_accessors_common, invoice_builder_methods_common} ;
120
+ #[ cfg( test) ]
121
+ use crate :: offers:: invoice_macros:: invoice_builder_methods_test;
120
122
use crate :: offers:: invoice_request:: { INVOICE_REQUEST_PAYER_ID_TYPE , INVOICE_REQUEST_TYPES , IV_BYTES as INVOICE_REQUEST_IV_BYTES , InvoiceRequest , InvoiceRequestContents , InvoiceRequestTlvStream , InvoiceRequestTlvStreamRef } ;
121
123
use crate :: offers:: merkle:: { SignError , SignFn , SignatureTlvStream , SignatureTlvStreamRef , TaggedHash , TlvStream , WithoutSignatures , self } ;
122
124
use crate :: offers:: nonce:: Nonce ;
@@ -385,6 +387,9 @@ impl<'a> InvoiceBuilder<'a, DerivedSigningPubkey> {
385
387
impl < ' a , S : SigningPubkeyStrategy > InvoiceBuilder < ' a , S > {
386
388
invoice_builder_methods ! ( self , Self , Self , self , S , mut ) ;
387
389
invoice_builder_methods_common ! ( self , Self , self . invoice. fields_mut( ) , Self , self , S , Bolt12Invoice , mut ) ;
390
+
391
+ #[ cfg( test) ]
392
+ invoice_builder_methods_test ! ( self , Self , self . invoice. fields_mut( ) , Self , self , mut ) ;
388
393
}
389
394
390
395
#[ cfg( all( c_bindings, not( test) ) ) ]
@@ -399,6 +404,7 @@ impl<'a> InvoiceWithExplicitSigningPubkeyBuilder<'a> {
399
404
invoice_explicit_signing_pubkey_builder_methods ! ( self , & mut Self ) ;
400
405
invoice_builder_methods ! ( self , & mut Self , & mut Self , self , ExplicitSigningPubkey ) ;
401
406
invoice_builder_methods_common ! ( self , & mut Self , self . invoice. fields_mut( ) , & mut Self , self , ExplicitSigningPubkey , Bolt12Invoice ) ;
407
+ invoice_builder_methods_test ! ( self , & mut Self , self . invoice. fields_mut( ) , & mut Self , self ) ;
402
408
}
403
409
404
410
#[ cfg( all( c_bindings, not( test) ) ) ]
@@ -413,6 +419,7 @@ impl<'a> InvoiceWithDerivedSigningPubkeyBuilder<'a> {
413
419
invoice_derived_signing_pubkey_builder_methods ! ( self , & mut Self ) ;
414
420
invoice_builder_methods ! ( self , & mut Self , & mut Self , self , DerivedSigningPubkey ) ;
415
421
invoice_builder_methods_common ! ( self , & mut Self , self . invoice. fields_mut( ) , & mut Self , self , DerivedSigningPubkey , Bolt12Invoice ) ;
422
+ invoice_builder_methods_test ! ( self , & mut Self , self . invoice. fields_mut( ) , & mut Self , self ) ;
416
423
}
417
424
418
425
#[ cfg( c_bindings) ]
0 commit comments