aboutsummaryrefslogtreecommitdiff
path: root/tests/test-dirvish-config-wallpaper-program.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-10 13:27:51 -0500
committerCraig Jennings <c@cjennings.net>2026-05-10 13:27:51 -0500
commitde3f34b0039c7ce0e94b05ef894a12e3a1485104 (patch)
treef6212c017de71fae64ae7af2dcbce00726e03ec4 /tests/test-dirvish-config-wallpaper-program.el
parent79f02926403016e37c4366e524f72fc529c6fcad (diff)
downloaddotemacs-de3f34b0039c7ce0e94b05ef894a12e3a1485104.tar.gz
dotemacs-de3f34b0039c7ce0e94b05ef894a12e3a1485104.zip
refactor(dirvish): extract cj/--duplicate-file-name helper
The name-mangling logic in `cj/dirvish-duplicate-file' was inline -- inseparable from the dired side effects (existence check, copy, revert). Extract to `cj/--duplicate-file-name', a pure function from FILE to FILE-WITH-COPY-SUFFIX. Seven Normal/Boundary tests cover the cases I care about: typical extension, elisp file, no extension, multi-dot extensions (only the last dot counts), leading-dot dotfiles, relative paths, spaces in the base name. The wrapper retains the dired-mode interactive shape and now reads as a thin shell over the pure helper.
Diffstat (limited to 'tests/test-dirvish-config-wallpaper-program.el')
0 files changed, 0 insertions, 0 deletions