Return True if file appears to be generated by Fory compiler.
(path: Path)
| 58 | |
| 59 | |
| 60 | def is_generated_file(path: Path) -> bool: |
| 61 | """Return True if file appears to be generated by Fory compiler.""" |
| 62 | try: |
| 63 | content = path.read_text(errors="ignore") |
| 64 | except OSError: |
| 65 | return False |
| 66 | return GENERATED_MARKER in content |
| 67 | |
| 68 | |
| 69 | def scan_generated_files(root: Path, relative: bool) -> List[Path]: |
no outgoing calls
no test coverage detected