pub fn is_test_file(path: &Path) -> boolExpand description
Detect if a file path represents a test file based on path-based heuristics.
Checks for:
- Directory patterns: tests/, test/,
__tests__/, spec/ - Filename patterns:
- Rust:
test_*.rs,*_test.rs - Python:
test_*.py,*_test.py - Go:
*_test.go - Java:
Test*.java,*Test.java - TypeScript/JavaScript:
*.test.ts,*.test.js,*.spec.ts,*.spec.js
- Rust:
Returns true if the path matches any test heuristic, false otherwise.