MCPcopy Create free account
hub / github.com/idank/explainshell / _make_items

Method _make_items

tests/extraction/test_runner.py:1041–1046  ·  view source on GitHub ↗

Build work items with the given chunk counts.

(chunk_counts: list[int])

Source from the content-addressed store, hash-verified

1039
1040 @staticmethod
1041 def _make_items(chunk_counts: list[int]) -> list[WorkItem]:
1042 """Build work items with the given chunk counts."""
1043 return [
1044 WorkItem(f"/fake/file{i}.1.gz", _make_prepared(f"file{i}", n))
1045 for i, n in enumerate(chunk_counts)
1046 ]
1047
1048 def test_single_chunk_files_even_split(self):
1049 """4 single-chunk files with batch_size=2 → 2 batches of 2."""

Calls 2

WorkItemClass · 0.90
_make_preparedFunction · 0.70

Tested by

no test coverage detected