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

Method test_exact_boundary

tests/extraction/test_runner.py:1094–1100  ·  view source on GitHub ↗

Batch boundary falls exactly between files.

(self)

Source from the content-addressed store, hash-verified

1092 self.assertEqual(len(batches), 3)
1093
1094 def test_exact_boundary(self):
1095 """Batch boundary falls exactly between files."""
1096 items = self._make_items([2, 2])
1097 batches = group_work_items(items, batch_size=2)
1098 self.assertEqual(len(batches), 2)
1099 self.assertEqual(batches[0], [items[0]])
1100 self.assertEqual(batches[1], [items[1]])
1101
1102
1103if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

_make_itemsMethod · 0.95
group_work_itemsFunction · 0.90

Tested by

no test coverage detected