summaryrefslogtreecommitdiff
path: root/scripts/setup-telega.sh
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-14 07:51:12 -0500
committerCraig Jennings <c@cjennings.net>2026-05-14 07:51:12 -0500
commitd14474c4955c183f62c8d85b3df1434eac727648 (patch)
tree48786f72fbc020867e84c20b03c1af78d7048526 /scripts/setup-telega.sh
parentd35c230e8a3ca71087d7177c4413ac002f27cc69 (diff)
downloaddotemacs-d14474c4955c183f62c8d85b3df1434eac727648.tar.gz
dotemacs-d14474c4955c183f62c8d85b3df1434eac727648.zip
refactor(system-commands): use string interactive spec so undercover instruments
`cj/system-cmd' had `(interactive (list (read-shell-command "System command: ")))' -- the destructured-list interactive spec. Undercover.el relies on edebug instrumentation, which doesn't see past that form, so the entire function body registered as 0 hits under coverage even though tests call the function directly. Switch to the equivalent string spec `(interactive "sSystem command: ")'. Same UX (prompt, history, single-string result), but the body now instruments correctly and coverage moves from 34/49 to 50/51. Add one more test that captures the `run-at-time' lambda in `cj/system-cmd-restart-emacs' and invokes it directly so the inner `call-process-shell-command' branch registers, taking coverage to 51/51.
Diffstat (limited to 'scripts/setup-telega.sh')
0 files changed, 0 insertions, 0 deletions