Function clippy_utils::is_in_test
source ยท pub fn is_in_test(tcx: TyCtxt<'_>, hir_id: HirId) -> bool
Expand 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) -> bool
Checks if the node is in a #[test]
function or has any parent node marked #[cfg(test)]