aboutsummaryrefslogtreecommitdiff
path: root/tests/test-setup-email.bats
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-14 03:43:46 -0500
committerCraig Jennings <c@cjennings.net>2026-05-14 03:43:46 -0500
commit86ea8b7f2fe59b5f26cd403ef70945c4c259cd51 (patch)
treea16c7e75d39eec720a8ae0fc66785c5b4f3a8e86 /tests/test-setup-email.bats
parentab285f501f7c340c99faf4e695a21b1675ad59a4 (diff)
downloaddotemacs-86ea8b7f2fe59b5f26cd403ef70945c4c259cd51.tar.gz
dotemacs-86ea8b7f2fe59b5f26cd403ef70945c4c259cd51.zip
test(external-open): cover xdg-open, open-this-file-with, find-file-auto
Sibling tests in `test-external-open-lib-*.el` covered the pure helpers (`cj/external-open-command`, `cj/external-open-launcher-p`). This batch covers the user-facing wrappers: - `cj/xdg-open`: posix path triggers `call-process` with the open program; errors when no file is associated; errors when no command resolves on the host. - `cj/open-this-file-with`: errors outside a file-visiting buffer; posix path spawns a detached process via `call-process-shell-command` with `nohup ... >/dev/null 2>&1 &`. - `cj/find-file-auto`: routes a `.mp4` (in `default-open-extensions`) to `cj/xdg-open`, passes `.txt` through to the original `find-file`, and falls through cleanly for a nil filename argument. Host predicates, call-process, and the underlying `cj/xdg-open` are stubbed throughout.
Diffstat (limited to 'tests/test-setup-email.bats')
0 files changed, 0 insertions, 0 deletions