pub fn is_test_module_or_function(tcx: TyCtxt<'_>, item: &Item<'_>) -> bool
Expand description

Checks whether item either has test attribute applied, or is a module with test in its name.

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