pub fn is_cfg_test(item: &impl HasAttrs) -> bool
Checks whether item is gated on #[cfg(test)].
item
#[cfg(test)]