(path: Path)
| 26 | |
| 27 | |
| 28 | def _assert_one_line(path: Path): |
| 29 | text = path.read_text(encoding="utf-8") |
| 30 | assert len(text.splitlines()) == 1, f"{path.name} spans {len(text.splitlines())} lines" |
| 31 | # compact separators: no space after ',' or ':' outside string values |
| 32 | assert '": ' not in text and '", ' not in text and "}, " not in text |
| 33 | return json.loads(text) |
| 34 | |
| 35 | |
| 36 | def _node(nid: str, source_file: str = "a.py") -> dict: |
no outgoing calls
no test coverage detected