aboutsummaryrefslogtreecommitdiff
path: root/tests/test-coverage-summary.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-20 16:37:45 -0400
committerCraig Jennings <c@cjennings.net>2026-06-20 16:37:45 -0400
commit90b2943f55c2c59d4cb447aedf41d4841f1b1c93 (patch)
treedf27e8e80ef3eb9a850f9611703e5f3a5f90bbe0 /tests/test-coverage-summary.el
parent86ed29176e0699546c4582550d263ca7e703c5ca (diff)
downloaddotemacs-90b2943f55c2c59d4cb447aedf41d4841f1b1c93.tar.gz
dotemacs-90b2943f55c2c59d4cb447aedf41d4841f1b1c93.zip
refactor(theme-studio): defer generate.py's page build behind a lazy _build()
Importing generate.py ran the full assembly at module load -- DEFAULTS, the package inventory, palette/syntax/uimap construction, and the HTML fill -- so face_coverage.py, which imports it only for UI_FACES, paid the whole cost. Move that derivation into a cached _build(); expose the built attributes (HTML, MAP, APPS, ...) lazily via PEP 562 __getattr__. UI_FACES/CATS/COLS and the file bodies stay cheap module constants, the file write stays __main__-guarded, and the page is byte-identical (check-generated current; test_generate green via __getattr__).
Diffstat (limited to 'tests/test-coverage-summary.el')
0 files changed, 0 insertions, 0 deletions