diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-16 01:34:03 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-16 01:34:03 -0500 |
| commit | 2a98feaf1285b495e7d6d1eed2abf02620188e29 (patch) | |
| tree | 472415397aa9e5d6e0364c4d9a28ffbc9948bea7 /modules/prog-lsp.el | |
| parent | 1ca46c2b477afd014ef993ed0ca5ca50e257adce (diff) | |
| download | dotemacs-2a98feaf1285b495e7d6d1eed2abf02620188e29.tar.gz dotemacs-2a98feaf1285b495e7d6d1eed2abf02620188e29.zip | |
test(ai-conversations): add 36 ERT tests covering helpers and entry points
ai-conversations.el shipped without direct tests. This file covers
every helper and interactive entry point across Normal / Boundary /
Error.
Helpers: `cj/gptel--slugify-topic` (ASCII, empty input, all-special,
unicode stripped, idempotent, trim, digits); `cj/gptel--timestamp-
from-filename` (normal decode, year-edge boundaries, malformed
inputs returning nil); `cj/gptel--existing-topics` and `cj/gptel--
latest-file-for-topic` (multi-topic / multi-timestamp temp dirs,
empty dir, missing dir, prefix-overlap isolation); `cj/gptel--
conversation-candidates` (newest-first and oldest-first sort order,
display-string shape, error on missing dir); `cj/gptel--save-buffer-
to-file` (visibility headers prepended, round-trip through `cj/
gptel--strip-visibility-headers`).
Autosave: post-response hook saves only when gptel-mode + enabled +
filepath are all set; autosave-after-send swallows write errors via
`message` instead of signaling; the install-once guard prevents
double-registration.
Interactive entry points: save/delete exercised via `cl-letf` stubs
on `completing-read` and `y-or-n-p`.
Per-test temp directories; no writes outside them.
Diffstat (limited to 'modules/prog-lsp.el')
0 files changed, 0 insertions, 0 deletions
