aboutsummaryrefslogtreecommitdiff
path: root/tests/test-custom-comments-public-wrappers.el
Commit message (Collapse)AuthorAgeFilesLines
* refactor(comments): extract shared comment-syntax resolutionCraig Jennings13 days1-0/+25
| | | | The comment-start/comment-end resolution was copied into six command wrappers. One cj/--comment-read-syntax now owns it; the block-banner wrapper keeps its own block-specific prompt.
* test(custom-comments): cover the eight interactive comment wrappersCraig Jennings2026-05-141-0/+192
The internal `cj/--comment-*` helpers were covered in the sibling test files; their interactive wrappers were the gap. 11 new tests drive each wrapper through its full prompt cycle (read-string / read-from-minibuffer / completing-read all stubbed) and assert the wrapper produces output containing the supplied text. The length-option branches for `cj/comment-simple-divider` are exercised across all three values (fill-column / half-column / match-text), and `cj/comment-hyphen`'s thin delegate to `cj/comment-inline-border` with "-" is covered too. The wrappers split between `read-string` and `read-from-minibuffer` for their text input (box uses minibuffer; the rest use read-string); the tests stub each function explicitly to drive the right path.