diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-05 09:23:41 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-05 09:23:41 -0500 |
| commit | 1a89ea4cae26d37f584aa8c4266cb4bb9aaa9a0f (patch) | |
| tree | a77cba644bcdc51beeb7815fba73e39c95583dac /scripts/coverage-summary.py | |
| parent | 6737e1b603a0f54d72458bb6332cf1e8b1b26dee (diff) | |
| download | org-drill-1a89ea4cae26d37f584aa8c4266cb4bb9aaa9a0f.tar.gz org-drill-1a89ea4cae26d37f584aa8c4266cb4bb9aaa9a0f.zip | |
refactor: extract org-drill--quality-percent helper for final-report
The quality-percentage formula
(round (* 100 (cl-count Q qualities)) (max 1 (length qualities)))
appeared six times in org-drill-final-report (once per recall
quality 0..5), each time inlined verbatim. Extracted to a single
helper.
Six call sites collapse from three lines each to one. Behavior
identical (the helper documents the (max 1 ...) divisor as an
empty-list guard). Final-report drops from 95 lines to ~80.
Diffstat (limited to 'scripts/coverage-summary.py')
0 files changed, 0 insertions, 0 deletions
