Function clippy_utils::is_in_cfg_test
source · pub fn is_in_cfg_test(tcx: TyCtxt<'_>, id: HirId) -> boolExpand description
Checks if the item containing the given HirId has #[cfg(test)] attribute applied
Note: Add //@compile-flags: --test to UI tests with a #[cfg(test)] function