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

Method test_batch_size_one

tests/extraction/test_runner.py:1088–1092  ·  view source on GitHub ↗

batch_size=1 gives each file its own batch.

(self)

Source from the content-addressed store, hash-verified

1086 self.assertEqual(len(batches), 1)
1087
1088 def test_batch_size_one(self):
1089 """batch_size=1 gives each file its own batch."""
1090 items = self._make_items([1, 2, 1])
1091 batches = group_work_items(items, batch_size=1)
1092 self.assertEqual(len(batches), 3)
1093
1094 def test_exact_boundary(self):
1095 """Batch boundary falls exactly between files."""

Callers

nothing calls this directly

Calls 2

_make_itemsMethod · 0.95
group_work_itemsFunction · 0.90

Tested by

no test coverage detected