diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-23 03:46:52 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-23 03:46:52 -0500 |
| commit | f530f06949e19d772bb65f68d93b9f951932fc12 (patch) | |
| tree | ba7e6f9c1cc7328037a4530d88c4331e31d2fca5 /todo.org | |
| parent | 0c1ba4a21228c8adc338b2652dd4b80d3ca84b2d (diff) | |
| download | dotemacs-f530f06949e19d772bb65f68d93b9f951932fc12.tar.gz dotemacs-f530f06949e19d772bb65f68d93b9f951932fc12.zip | |
docs(todo): close flyspell-and-abbrev coverage
Diffstat (limited to 'todo.org')
| -rw-r--r-- | todo.org | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -1587,16 +1587,8 @@ defconst =cj/--spell-checker-executables=, so adding nuspell (or any other checker) is a one-line edit. Top-level =(require 'cl-lib)= added since the new helper uses =cl-some=. -**** TODO [#C] Add coverage for =cj/flyspell-then-abbrev= and helpers in =flyspell-and-abbrev.el= :tests:solo: - -The interactive flow has real logic worth pinning: previous- -misspelling overlay walk in =cj/find-previous-flyspell-overlay= -(face-change check, list reversal), the abbrev-table choice in -=cj/flyspell-then-abbrev= (prefix arg switches local vs global), and -the buffer-type dispatch in =cj/flyspell-on-for-buffer-type= (prog- -mode -> flyspell-prog-mode vs text-mode -> flyspell-mode). None of -these have tests. Pure-logic helpers can be exercised against -synthetic overlay buffers without aspell on the path. +**** 2026-05-23 Sat @ 03:44:50 -0500 Covered flyspell-and-abbrev testable seams +Added =test-flyspell-and-abbrev.el= (8 cases): =cj/--require-spell-checker= (PATH gate, mocked), =cj/find-previous-flyspell-overlay= against synthetic overlays (closest-previous match, non-flyspell skipped, nil when none), and =cj/flyspell-on-for-buffer-type= (prog-mode -> flyspell-prog-mode, text-mode -> flyspell-mode). Left =cj/flyspell-then-abbrev= to manual testing — pinning its flyspell-UI orchestration would mean mocking flyspell internals rather than our logic. Added in the test-flyspell-abbrev commit. *** DOING [#B] Harden UI and navigation modules :harden: |
