aboutsummaryrefslogtreecommitdiff
path: root/tests/test-calendar-sync--format-timezone-offset.el
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
commitb3307be2c928246bae665f61d03d412f6973561d (patch)
tree9a123d2f97e9d5213b7060e01c30c5a2d8d70b97 /tests/test-calendar-sync--format-timezone-offset.el
parentdd907fde706f5a9dec0473ff465dff2ee9d9ff6a (diff)
downloaddotemacs-b3307be2c928246bae665f61d03d412f6973561d.tar.gz
dotemacs-b3307be2c928246bae665f61d03d412f6973561d.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 'tests/test-calendar-sync--format-timezone-offset.el')
0 files changed, 0 insertions, 0 deletions