diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-25 08:13:23 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-25 08:13:23 -0500 |
| commit | c4a55619086d941052f9c59fc710796c90e5e8ba (patch) | |
| tree | d9239112394a962ea035ffeb928c3212f937ca7c /tests/test-cj-window-toggle-lib.el | |
| parent | 92eaba30ae35727509f1d9d6dcc467c248f627dc (diff) | |
| download | dotemacs-c4a55619086d941052f9c59fc710796c90e5e8ba.tar.gz dotemacs-c4a55619086d941052f9c59fc710796c90e5e8ba.zip | |
test(elfeed-config): use real structs so tests survive byte-compilation
The cj/elfeed-process-entries tests faked entries as bare symbols and stubbed the elfeed-entry-link accessor, which only works while elfeed-config loads as interpreted source. Byte-compiled, the cl-defstruct accessor inlines to an elfeed-entry-p check plus an aref, so the stub is bypassed and the inlined check rejects the fake entry. Three tests failed the moment a .elc existed.
I rewrote the five process-entries tests to build genuine elfeed-entry structs with elfeed-entry--create, calling package-initialize so the installed elfeed lands on the load-path, and guarded them with skip-unless for an environment that lacks the package. The elfeed-search UI boundary is still stubbed. The four extract-stream-url tests are unchanged.
This unblocks annotating elfeed-config with its load-graph header, which triggers the byte-compile that surfaced the problem.
Diffstat (limited to 'tests/test-cj-window-toggle-lib.el')
0 files changed, 0 insertions, 0 deletions
