Function clippy_utils::is_cfg_test

source ·
pub fn is_cfg_test(tcx: TyCtxt<'_>, id: HirId) -> bool
Expand description

Checks if id has a #[cfg(test)] attribute applied

This only checks directly applied attributes, to see if a node is inside a #[cfg(test)] parent use is_in_cfg_test