diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-26 17:40:28 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-26 17:40:28 -0500 |
| commit | 1fd3330689b46fd4b2adc5f9450422b93082257d (patch) | |
| tree | e8da6c984d9f335e0175984a0f64dbdda96fa4bd /tests/test-custom-file-buffer-delete-buffer-and-file.el | |
| parent | 4ed034b3485bbc9fe8eae404463304feabf9688c (diff) | |
| download | dotemacs-1fd3330689b46fd4b2adc5f9450422b93082257d.tar.gz dotemacs-1fd3330689b46fd4b2adc5f9450422b93082257d.zip | |
feat+test:custom-file-buffer: add tests and safety refactoring
Add 106 unit tests with full coverage for move-buffer-and-file (51 tests)
and rename-buffer-and-file (55 tests). Refactor both functions using
interactive/non-interactive split pattern for simpler testing and reusability.
Changes:
- Split cj/move-buffer-and-file and cj/rename-buffer-and-file into internal
implementations (cj/--*) and interactive wrappers
- Add ok-if-exists parameter with user confirmation to prevent data loss
- Fix bugs: return values, path expansion, string-match arg order, regex
- Add test utilities for proper buffer cleanup and isolation
- Document interactive/non-interactive pattern in quality-engineer.org
- Document error message testing guidelines in quality-engineer.org
All 106 tests passing.
Diffstat (limited to 'tests/test-custom-file-buffer-delete-buffer-and-file.el')
0 files changed, 0 insertions, 0 deletions
