#[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 )*
};
}
#[cfg(feature = "test_build")]
macro_rules! private_test_const_fn {
($( #[$meta:meta] )* $name:ident $( $body:tt )*) => {
$( #[$meta] )*
pub const fn $name $( $body )*
};
}
#[cfg(not(feature = "test_build"))]
macro_rules! private_test_const_fn {
($( #[$meta:meta] )* $name:ident $( $body:tt )*) => {
#[allow(dead_code)]
$( #[$meta] )*
const fn $name $( $body )*
};
}
#[cfg(feature = "test_build")]
macro_rules! crate_test_const_fn {
($( #[$meta:meta] )* $name:ident $( $body:tt )*) => {
$( #[$meta] )*
pub const fn $name $( $body )*
};
}
#[cfg(not(feature = "test_build"))]
macro_rules! crate_test_const_fn {
($( #[$meta:meta] )* $name:ident $( $body:tt )*) => {
#[allow(dead_code)]
$( #[$meta] )*
pub(crate) const fn $name $( $body )*
};
}
#[cfg(feature = "test_build")]
macro_rules! crate_test_mod {
($( #[$meta:meta] )* $name:ident) => {
$( #[$meta] )*
pub mod $name;
};
}
#[cfg(not(feature = "test_build"))]
macro_rules! crate_test_mod {
($( #[$meta:meta] )* $name:ident) => {
$( #[$meta] )*
#[allow(dead_code)]
pub(crate) mod $name;
};
}
#[cfg(feature = "test_build")]
macro_rules! crate_test_const {
($( #[$meta:meta] )* $name:ident $( $body:tt )*) => {
$( #[$meta] )*
pub const $name $( $body )*
};
}
#[cfg(not(feature = "test_build"))]
macro_rules! crate_test_const {
($( #[$meta:meta] )* $name:ident $( $body:tt )*) => {
$( #[$meta] )*
pub(crate) const $name $( $body )*
};
}