get_tests_for_file
Retrieve test files that correspond to a given source file path using static lookup, supporting Go, Python, TypeScript, and Rust.
Instructions
Given a source file path, return the test files that exercise it. Static lookup — no test execution. Go: test.go in same directory. Python: test.py / *_test.py in same dir and tests/ sibling. TypeScript/JS: *.test.ts, *.spec.ts etc. Rust: returns source file itself (tests inline). Does not require start_lsp.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |