aboutsummaryrefslogtreecommitdiff
path: root/tests/test-coverage-core--intersect.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
commit2a9257006fcde777e217708b4593461a9e6c07a8 (patch)
tree1d4931fbe6132cc2a4e15b59787a58ef46f2fbc2 /tests/test-coverage-core--intersect.el
parentf2c45a7146568bea7eea12270688c8c8ed814c86 (diff)
downloaddotemacs-2a9257006fcde777e217708b4593461a9e6c07a8.tar.gz
dotemacs-2a9257006fcde777e217708b4593461a9e6c07a8.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--intersect.el')
0 files changed, 0 insertions, 0 deletions