aboutsummaryrefslogtreecommitdiff
path: root/docs/design/debug-profiling.org
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-23 01:37:52 -0500
committerCraig Jennings <c@cjennings.net>2026-04-23 01:37:52 -0500
commit73a95c7d1c5ba591a3444f92012be4a281e8d08b (patch)
treeca6e185c191d0457e4e0a5312d8726af553ba1eb /docs/design/debug-profiling.org
parent305a58c6fcc5e9321f5b94011124b16ea73e2f00 (diff)
downloaddotemacs-73a95c7d1c5ba591a3444f92012be4a281e8d08b.tar.gz
dotemacs-73a95c7d1c5ba591a3444f92012be4a281e8d08b.zip
test(system-utils): cover identify-external-open-command and eval-buffer
Adds two per-function test files covering the easily-testable functions in system-utils.el. Takes the module from 0/52 (0%) to 10/52 (19.2%) coverage. tests/test-system-utils-identify-external-open-command.el — five tests for cj/identify-external-open-command: one each for the three supported platforms (linux, macos, windows), one documenting the dispatch-order invariant when multiple predicates return t, and one for the unsupported-host error case. env-*-p predicates are stubbed via cl-letf so the tests run correctly on any host. tests/test-system-utils-eval-buffer.el — three tests for cj/eval-buffer-with-confirmation-or-error-message: the valid-elisp success path, an empty-buffer boundary case, and the broken-elisp error path (confirming the condition-case wrapper catches errors rather than propagating). A small macro stubs message to capture what the user would see. Split into two files per the project's per-function test convention (elisp-testing.md). Not covered in this commit and flagged for follow-up: - cj/open-file-with-command and cj/xdg-open mix user-input resolution with process launching. Per elisp-testing.md's "split interactive from internal" rule, a pure file-resolution helper should be extracted before tests are written. - cj/server-shutdown kills Emacs, so it isn't meaningfully testable.
Diffstat (limited to 'docs/design/debug-profiling.org')
0 files changed, 0 insertions, 0 deletions