#[cfg(feature = "test_build")]
macro_rules! private_test_fn {
($( #[$meta:meta] )* $name:ident $( $body:tt )*) => {
$( #[$meta] )*
pub fn $name $( $body )*
};
}
#[cfg(not(feature = "test_build"))]
macro_rules! private_test_fn {
($( #[$meta:meta] )* $name:ident $( $body:tt )*) => {
#[allow(dead_code)]
$( #[$meta] )*
fn $name $( $body )*
};
}
#[cfg(feature = "test_build")]
macro_rules! crate_test_fn {
($( #[$meta:meta] )* $name:ident $( $body:tt )*) => {
$( #[$meta] )*
pub fn $name $( $body )*
};
}
#[cfg(not(feature = "test_build"))]
macro_rules! crate_test_fn {
($( #[$meta:meta] )* $name:ident $( $body:tt )*) => {
#[allow(dead_code)]
$( #[$meta] )*
pub(crate) fn $name $( $body )*
};
}