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

Checks if the function containing the given HirId is a #[test] function

Note: If you use this function, please add a #[test] case in tests/ui_test.