diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-25 17:11:13 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-25 17:11:13 -0500 |
| commit | dae7a12e099a094f9b924c623302ad567d796f0e (patch) | |
| tree | afe9244eb83f3e487eaafee4dc6f30bf46036fbd /todo.org | |
| parent | 37917d5b34155c072752697e0309011d3f17a56e (diff) | |
| download | dotemacs-dae7a12e099a094f9b924c623302ad567d796f0e.tar.gz dotemacs-dae7a12e099a094f9b924c623302ad567d796f0e.zip | |
docs(todo): log mu4e org-contacts completion coverage under hardening
Diffstat (limited to 'todo.org')
| -rw-r--r-- | todo.org | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -1876,15 +1876,17 @@ Add =(eval-when-compile (defvar contacts-file))= and near the existing requires so the compile is clean and the cross-module dependency is explicit at the top of the file. -**** TODO [#C] Add coverage for =mu4e-org-contacts-integration.el= completion logic :tests:solo: - -No tests exist for =cj/org-contacts-completion-at-point=, -=cj/mu4e-org-contacts-tab-complete=, =cj/mu4e-org-contacts-comma- -complete=, or =cj/mu4e-org-contacts-insert-email=. The header-field -detection (=mail-abbrev-in-expansion-header-p=) and the TAB-cycle -branch are the highest-value coverage targets. Stub -=cj/get-all-contact-emails= and run against a temp buffer in -=mu4e-compose-mode= / =org-msg-edit-mode= where applicable. +**** 2026-05-25 Mon @ 17:10:47 -0500 Added mu4e org-contacts completion coverage + +Added =tests/test-mu4e-org-contacts-integration.el= (10 tests). The capf +(cj/org-contacts-completion-at-point) is checked for the header-field and +compose-mode gating both ways, the bounds/table it returns when contacts +exist, and the empty-contacts case. TAB (cj/mu4e-org-contacts-tab-complete) +is checked across all three branches: completion-at-point in a header, +org-cycle in the org-msg body, indent elsewhere. Comma completion and the +direct-insert no-op-outside-header path round it out. mail-abbrev-in-expansion-header-p, +the mode actions, and cj/get-all-contact-emails are stubbed, so the run is +headless with no mu4e/org-contacts dependency. *** DOING [#B] Harden programming workflow modules :harden: |
