]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Test] lua_feedback_parsers: add unit tests for DSN and ARF 5982/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 13 Apr 2026 13:00:28 +0000 (14:00 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 13 Apr 2026 13:00:28 +0000 (14:00 +0100)
commitb36122da2162971832362a7b636581bf67440fb3
treef631763a2ed3c227eb002da0485aac56012bcd69
parent4d3314c15b8186864adb30d8c827d2a04c487c37
[Test] lua_feedback_parsers: add unit tests for DSN and ARF

Cover the pure helpers (strip_angles, parse_field_blocks) directly via
internal exports and exercise parse_dsn / parse_arf end-to-end on
synthetic tasks built with rspamd_task.load_from_string. Tests cover
header folding, repeated fields, CRLF normalisation, original-message
extraction, and detection of non-report messages.
lualib/lua_feedback_parsers.lua
test/lua/unit/lua_feedback_parsers.lua [new file with mode: 0644]