aboutsummaryrefslogtreecommitdiff
path: root/tests/run-coverage-file.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-25 08:13:23 -0500
committerCraig Jennings <c@cjennings.net>2026-05-25 08:13:23 -0500
commitc4a55619086d941052f9c59fc710796c90e5e8ba (patch)
treed9239112394a962ea035ffeb928c3212f937ca7c /tests/run-coverage-file.el
parent92eaba30ae35727509f1d9d6dcc467c248f627dc (diff)
downloaddotemacs-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/run-coverage-file.el')
0 files changed, 0 insertions, 0 deletions