Create a minimal Chunk for use in tests.
(content: str, file_path: str = "src/module.py")
| 11 | |
| 12 | |
| 13 | def make_chunk(content: str, file_path: str = "src/module.py") -> Chunk: |
| 14 | """Create a minimal Chunk for use in tests.""" |
| 15 | return Chunk( |
| 16 | content=content, |
| 17 | file_path=file_path, |
| 18 | start_line=1, |
| 19 | end_line=content.count("\n") + 1, |
| 20 | language="python", |
| 21 | ) |
| 22 | |
| 23 | |
| 24 | @pytest.fixture |
no test coverage detected