Function clippy_utils::is_test_module_or_function
source · [−]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.