summaryrefslogtreecommitdiff
path: root/tests/test-coverage-core--command.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
commit7c7199c9ed249d527b8e2769a93392b646db582d (patch)
tree40b670f58c74ab1d5cd4c63687635f2b4b7d3169 /tests/test-coverage-core--command.el
parent3d781fcc84aa3f32b4341583b79d74a697276c76 (diff)
downloaddotemacs-7c7199c9ed249d527b8e2769a93392b646db582d.tar.gz
dotemacs-7c7199c9ed249d527b8e2769a93392b646db582d.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-coverage-core--command.el')
0 files changed, 0 insertions, 0 deletions