Function clippy_utils::is_in_test
source ยท pub fn is_in_test(tcx: TyCtxt<'_>, hir_id: HirId) -> boolExpand description
Checks if the node is in a #[test] function or has any parent node marked #[cfg(test)]
pub fn is_in_test(tcx: TyCtxt<'_>, hir_id: HirId) -> boolChecks if the node is in a #[test] function or has any parent node marked #[cfg(test)]