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