@@ -117,6 +117,8 @@ use crate::ln::features::{BlindedHopFeatures, Bolt12InvoiceFeatures, InvoiceRequ
117117use crate :: ln:: inbound_payment:: { ExpandedKey , IV_LEN } ;
118118use crate :: ln:: msgs:: DecodeError ;
119119use crate :: offers:: invoice_macros:: { invoice_accessors_common, invoice_builder_methods_common} ;
120+ #[ cfg( test) ]
121+ use crate :: offers:: invoice_macros:: invoice_builder_methods_test;
120122use crate :: offers:: invoice_request:: { INVOICE_REQUEST_PAYER_ID_TYPE , INVOICE_REQUEST_TYPES , IV_BYTES as INVOICE_REQUEST_IV_BYTES , InvoiceRequest , InvoiceRequestContents , InvoiceRequestTlvStream , InvoiceRequestTlvStreamRef } ;
121123use crate :: offers:: merkle:: { SignError , SignFn , SignatureTlvStream , SignatureTlvStreamRef , TaggedHash , TlvStream , WithoutSignatures , self } ;
122124use crate :: offers:: nonce:: Nonce ;
@@ -385,6 +387,9 @@ impl<'a> InvoiceBuilder<'a, DerivedSigningPubkey> {
385387impl < ' a , S : SigningPubkeyStrategy > InvoiceBuilder < ' a , S > {
386388 invoice_builder_methods ! ( self , Self , Self , self , S , mut ) ;
387389 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 ) ;
388393}
389394
390395#[ cfg( all( c_bindings, not( test) ) ) ]
@@ -399,6 +404,7 @@ impl<'a> InvoiceWithExplicitSigningPubkeyBuilder<'a> {
399404 invoice_explicit_signing_pubkey_builder_methods ! ( self , & mut Self ) ;
400405 invoice_builder_methods ! ( self , & mut Self , & mut Self , self , ExplicitSigningPubkey ) ;
401406 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 ) ;
402408}
403409
404410#[ cfg( all( c_bindings, not( test) ) ) ]
@@ -413,6 +419,7 @@ impl<'a> InvoiceWithDerivedSigningPubkeyBuilder<'a> {
413419 invoice_derived_signing_pubkey_builder_methods ! ( self , & mut Self ) ;
414420 invoice_builder_methods ! ( self , & mut Self , & mut Self , self , DerivedSigningPubkey ) ;
415421 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 ) ;
416423}
417424
418425#[ cfg( c_bindings) ]
0 commit comments