isTestFile static method
Utility to check if a file is a test file (by path).
Returns true if the file path contains '_test.dart' or is under a '/test/' directory.
Implementation
static bool isTestFile(String path) {
return path.contains('_test.dart') ||
path.contains('/test/') ||
path.contains('\\test\\') ||
path.startsWith('test/') ||
path.startsWith('test\\');
}