pub fn is_in_cfg_test(tcx: TyCtxt<'_>, id: HirId) -> bool
Checks if any parent node of HirId has #[cfg(test)] attribute applied
HirId
#[cfg(test)]