aboutsummaryrefslogtreecommitdiffstats
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-29 16:52:59 +0200
committerDanilo M. <danix@danix.xyz>2026-09-29 16:52:59 +0200
commite168af8d7d9a500759565719f16ed188ba8a8bcd (patch)
tree0246e655d2bcc1051d9e70c263f39692dd3d6e55 /tests/CMakeLists.txt
parentd2793dd583041941348d5a984764160ddd48102b (diff)
downloadqtmaildir-e168af8d7d9a500759565719f16ed188ba8a8bcd.tar.gz
qtmaildir-e168af8d7d9a500759565719f16ed188ba8a8bcd.zip
feat: parse the launch selectors as a value type
--account, --thread and --message, plus the payload that crosses the socket. A value type with no GUI dependency: it is parsed before QApplication exists and both halves need tests no window has to be built for. QDataStream rather than a line-based payload, because a Message-ID may contain a newline. Every read is status-checked, which is what catches a truncated payload: a short read otherwise leaves the fields default-constructed and a half-written id would be applied as an empty one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index bdea4ed..8cc4d8b 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -92,6 +92,7 @@ add_qtmaildir_test(composecontext)
add_qtmaildir_test(composewindow)
add_qtmaildir_test(formattoolbar)
add_qtmaildir_test(senddialog)
+add_qtmaildir_test(launchselectors)
add_qtmaildir_test(translations)
# Asserts on the tracked .ts rather than the generated .qm: an untranslated
# string is dropped by lrelease, so it is invisible in the .qm and shows up