summaryrefslogtreecommitdiff
path: root/scripts/setup-telega.sh
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-14 07:51:02 -0500
committerCraig Jennings <c@cjennings.net>2026-05-14 07:51:02 -0500
commitd35c230e8a3ca71087d7177c4413ac002f27cc69 (patch)
treefb75008eaa0fc0aaaf0b0c2ccabcaae24de8420d /scripts/setup-telega.sh
parent559264a6d626a12ff4f6db4b086f3cfbb7456220 (diff)
downloaddotemacs-d35c230e8a3ca71087d7177c4413ac002f27cc69.tar.gz
dotemacs-d35c230e8a3ca71087d7177c4413ac002f27cc69.zip
test(system-defaults): switch to single top-level require so undercover instruments
The helper-functions test was per-test reloading system-defaults.el via `(load ...)' inside a `cl-letf' sandbox that stubs the side-effecting primitives (server-start, set-locale-environment, etc). Tests passed, but the coverage gauge stayed stuck at 1/12 because undercover.el only instruments the first load of a matching source; subsequent re-loads inside test bodies don't get tracked, so the function bodies showed as uncovered even though every test called them. Rewrite the test to call `(require 'system-defaults)' once at top level, wrapped in the same `cl-letf' stubs. The functions get instrumented exactly once. Drop the now-unused per-test sandbox macro. Add two more tests for the `(when (memq ...))' list-without- comp guard and the non-string-message format branch so coverage reaches 12/12. (`test-system-defaults-vc-follow-symlinks.el' still uses the per-test `(load ...)' pattern because that test *is* the load-side-effect verification, not a function-body test.)
Diffstat (limited to 'scripts/setup-telega.sh')
0 files changed, 0 insertions, 0 deletions