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 | ef528d304a7a1d8a633a4948145b774047af6c3f (patch) | |
| tree | 3bd92ccb4db42690f16abbc453b260e41ecf70f8 /githooks | |
| parent | 7a919adde087f5c1150c15faf88f6cda7c7b90b6 (diff) | |
| download | dotemacs-ef528d304a7a1d8a633a4948145b774047af6c3f.tar.gz dotemacs-ef528d304a7a1d8a633a4948145b774047af6c3f.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 'githooks')
0 files changed, 0 insertions, 0 deletions
