test: add unit tests for compare_size_results.py

Mirrors test_compare_test_results.py: covers human_kb formatting,
load_sizes (date-keyed and flat), compare() including threshold
boundaries on both growth and shrinkage, format_report, and an
end-to-end main() check that the comment file is only written when
something significant is reported.

Wired into code-quality.yml alongside the existing compare_test_results
unit tests.
This commit is contained in:
Sylvestre Ledru
2026-04-11 14:52:17 +02:00
parent ed9fcb357d
commit 56210f1137
3 changed files with 166 additions and 1 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ jobs:
- name: Run Python unit tests
shell: bash
run: |
python3 -m unittest util/test_compare_test_results.py
python3 -m unittest util/test_compare_test_results.py util/test_compare_size_results.py
pre_commit:
name: Pre-commit hooks