qt6-bb10/tests/auto
Marc Mutz ac1e88f58a tst_QFormDataBuilder: DRY the moveSemantics() test
Packages everything needed to build the actual serialization into a
helper function that's parametrized with a function_ref. Said helper
provides the function_ref with a default-constructed QFormDataBuilder
as an argument to the function, but since we're checking move
semantics here, it also expects to receive, via the return type, the
builder object to eventually use for building. This need not be the
same as the one it originally supplied.

If this looks a bit complicated, it's a necessary evil for
conveniently rolling out this way of performing the test to the rest
of the test functions, to eventually, finally get rid of using QDebug
to introspect individual QHttpParts when, in reality, we're only
interested in the QHttpMultiPart's wire serialization (iow: the
observable behavior).

Centralize the QSKIP in the helper function. This increases compile
coverage of the rest of the code, but requires QTEST_THROW_ON_SKIP,
so add a check for that alongside the QTEST_THROW_ON_FAIL one.

Task-number: QTBUG-125985
Change-Id: Ib6217a02159c79f48f0036e90d7bbbf43e69d0ba
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
(cherry picked from commit 9fcafa715ecb1c6e45fc51d599178bbde3cc1b12)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-06-20 23:10:15 +00:00
..
bic/data Add binary compatibility file for 6.7.0 2024-04-17 10:18:37 +00:00
cmake Remove GENERATE_CPP_EXPORTS argument 2024-06-13 14:39:17 +00:00
concurrent Fix truncation warning in generation_helpers 2024-03-18 20:10:34 +01:00
corelib Skip tst_QFuture::whenAllDifferentTypes and whenAnyDifferentTypes on VxWorks 2024-06-20 19:30:41 +00:00
dbus QDBusSignature: accept empty strings as valid 2024-05-10 13:17:20 -07:00
gui QTextHtmlParser: parse border color correctly 2024-06-20 22:59:08 +00:00
guiapplauncher Convert "Color Editor Factory" Example to snippets 2024-04-19 13:39:41 +02:00
network tst_QFormDataBuilder: DRY the moveSemantics() test 2024-06-20 23:10:15 +00:00
opengl
other a11y: Notify of name change when setting window title used as a11y name 2024-05-22 08:50:31 +02:00
printsupport Change license for tests files 2024-02-04 09:56:42 +01:00
shared Introduce flag to use typographical line metrics for fonts 2024-05-31 19:30:53 +02:00
sql SQL/IBase: add partial support for SQL_INT128 datatype 2024-06-05 13:16:46 +00:00
testlib Fix misspelled QTEST_THROW_ON_FAILURE 2024-06-17 23:17:50 +00:00
tools tst_moc: fix 'inline function used but never defined' GCC warning 2024-06-18 08:09:09 +00:00
wasm Add copyright and licensing to build system files missing it 2024-05-21 17:23:21 +02:00
widgets Let QWindowContainer know when its top level is about to be destroyed 2024-06-20 19:30:49 +00:00
xml Add copyright and licensing to build system files missing it 2024-05-21 17:23:21 +02:00
CMakeLists.txt wasm: Enable qstandardpaths test 2024-05-06 16:01:28 +02:00
network-settings.h Change license for tests files 2024-02-04 09:56:42 +01:00