Build work items with the given chunk counts.
(chunk_counts: list[int])
| 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.""" |
no test coverage detected