MCPcopy
hub / github.com/MinishLab/semble / make_chunk

Function make_chunk

tests/conftest.py:13–21  ·  view source on GitHub ↗

Create a minimal Chunk for use in tests.

(content: str, file_path: str = "src/module.py")

Source from the content-addressed store, hash-verified

11
12
13def 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

Calls 1

ChunkClass · 0.90

Tested by

no test coverage detected