diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-14 01:17:12 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-14 01:17:12 -0500 |
| commit | 61ddfe9f7a9b2838e9c791027e5692cfd6ee128c (patch) | |
| tree | c599429d976b49b5bf787fc22d2daa9bf68b5ce9 /modules/custom-buffer-file.el | |
| parent | a097e33cbc2027b416f6d4160b55f69bca8c4660 (diff) | |
| download | dotemacs-61ddfe9f7a9b2838e9c791027e5692cfd6ee128c.tar.gz dotemacs-61ddfe9f7a9b2838e9c791027e5692cfd6ee128c.zip | |
test(custom-buffer-file): cover print spooler, diff, eww, email helpers
Sibling tests cover the move/rename/copy/clear family. The remaining helpers and dispatchers were uncovered:
- `cj/print--resolve-spooler`: explicit-string on PATH, explicit-string missing (error), `auto` prefers lpr, `auto` falls back to lp, `auto` with nothing on PATH (error), `auto` returns cached value, invalid spooler symbol (error).
- `cj/copy-buffer-name`: places the current buffer's name on the kill ring with a confirmation message.
- `cj/view-buffer-in-eww`: hands the file off to `eww-open-file` when visiting a file, errors otherwise.
- `cj/--email-handle-is-type-p`: prefix-matches content-types, handles nil handle without signaling.
- `cj/--diff-with-regular-diff`: writes a unified diff into the target buffer with header + diff output.
- `cj/diff-buffer-with-file`: errors when not visiting a file, messages "No differences" when diff -q returns 0.
16 new tests total. `call-process`, `executable-find`, `eww-open-file`, `mm-handle-type`, `diff-mode` are stubbed.
Diffstat (limited to 'modules/custom-buffer-file.el')
0 files changed, 0 insertions, 0 deletions
