The columns unit \| pace \| coverage \| decisions \| consumers \| code \| record \| decision lines \| evaluation lines \| spec \| ratio, one row per unit, ordered slow, medium, fast, then units without a valid pace, and by name within a pace, and a total row of the sums. coverage is covered items out of all items; decisions is the number of decision records the intent items cite and consumers the number of declared consumers; code, record, decision lines and evaluation lines are lines; spec is the sum of the last three and ratio is spec per line of code.
Examples
from pathlib import Pathfrom tempfile import TemporaryDirectoryfrom babregen import load_spec, make_sample_repo, measures_tablewith TemporaryDirectory() as tmp: spec = load_spec(make_sample_repo(Path(tmp) /"demo"))print(measures_table(spec))