qt6-bb10/src/testlib
Marc Mutz b4c5887939 QSignalSpy: inline verify(obj, func) into the only caller
First, realize that we don't need the isObjectValid() call, because
that's done by verify(QObject*,QMetaMethod) later.

That leaves said fromSignal() and verify(QObject*, QMetaMethod) calls,
which we can just inline into the (QObject*, Func) ctor, thus making
said constructor SCARY, having extracted all template-independent code
into other functions/ctors.

Task-number: QTBUG-123544
Change-Id: I6b8afc541f75936045e2d28cfde51a34f98a1fdd
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2024-03-22 15:31:40 +01:00
..
3rdparty Update Valgrind to version 3.22.0 2024-02-06 16:23:42 +01:00
doc Correct doc snippet license 2024-02-28 19:15:51 +01:00
CMakeLists.txt Remove the use of GENERATE_PRIVATE_CPP_EXPORTS argument 2024-01-17 20:30:36 +01:00
configure.cmake Implement the batch_tests feature 2022-08-24 02:46:37 +02:00
qabstractitemmodeltester.cpp Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qabstractitemmodeltester.h Use QAbstractItemModelTester or QFileSystemModel 2022-05-18 12:58:06 +02:00
qabstracttestlogger.cpp Add QTest option for repeating the entire test execution 2023-11-15 11:07:09 +00:00
qabstracttestlogger_p.h Add QTest option for repeating the entire test execution 2023-11-15 11:07:09 +00:00
qappletestlogger.cpp QAppleTestLogger: Add source link to failure messages 2024-01-22 15:51:21 +01:00
qappletestlogger_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qasciikey.cpp Rename Qt::Key_mu to Qt::Key_micro 2023-08-24 13:51:36 +00:00
qbenchmark.cpp QBENCHMARK: mark loop operations as noexcept 2023-11-15 23:40:24 +01:00
qbenchmark.h QBENCHMARK: mark loop operations as noexcept 2023-11-15 23:40:24 +01:00
qbenchmark_p.h QBENCHMARK: mark loop operations as noexcept 2023-11-15 23:40:24 +01:00
qbenchmarkevent.cpp QBenchlib: add support for a measurer reporting multiple results 2022-11-09 02:18:45 -07:00
qbenchmarkevent_p.h QBenchlib: add support for a measurer reporting multiple results 2022-11-09 02:18:45 -07:00
qbenchmarkmeasurement.cpp QBenchlib: add support for a measurer reporting multiple results 2022-11-09 02:18:45 -07:00
qbenchmarkmeasurement_p.h QBenchlib: add support for a measurer reporting multiple results 2022-11-09 02:18:45 -07:00
qbenchmarkmetric.cpp Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
qbenchmarkmetric.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbenchmarkmetric_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbenchmarkperfevents.cpp Fix some narrowing conversion warnings 2023-04-08 13:24:04 +02:00
qbenchmarkperfevents_p.h QBenchlib: add support for a measurer reporting multiple results 2022-11-09 02:18:45 -07:00
qbenchmarktimemeasurers_p.h QBenchlib: add support for a measurer reporting multiple results 2022-11-09 02:18:45 -07:00
qbenchmarkvalgrind.cpp QBenchlib: add support for a measurer reporting multiple results 2022-11-09 02:18:45 -07:00
qbenchmarkvalgrind_p.h QBenchlib: add support for a measurer reporting multiple results 2022-11-09 02:18:45 -07:00
qcomparisontesthelper.cpp TestLib: provide helper functions to test relational operators 2023-11-13 16:35:54 +01:00
qcomparisontesthelper_p.h Introduce macros to simplify testing comparison 2024-01-19 12:58:57 +00:00
qcsvbenchmarklogger.cpp QBenchlib: use QBenchmarkMeasurerBase::Measurement in QBenchmarkResult 2022-11-09 02:18:44 -07:00
qcsvbenchmarklogger_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qemulationdetector_p.h Change license in files to avoid LGPL and non-LGPL license mix 2024-02-20 16:22:28 +01:00
qjunittestlogger.cpp Remove the manual undef of the min/max macros, or def NOMINMAX 2023-06-08 01:18:04 +02:00
qjunittestlogger_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qplaintestlogger.cpp Add QTest option for repeating the entire test execution 2023-11-15 11:07:09 +00:00
qplaintestlogger_p.h Add QTest option for repeating the entire test execution 2023-11-15 11:07:09 +00:00
qpropertytesthelper_p.h Fix a compiler warning (GCC 13.2.1) -Wpessimizing-move 2023-11-20 22:19:19 +00:00
qsignaldumper.cpp SignalDumper: protect access to ignoreClasses 2024-01-19 22:28:00 +00:00
qsignaldumper_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qsignalspy.h QSignalSpy: inline verify(obj, func) into the only caller 2024-03-22 15:31:40 +01:00
qsignalspy.qdoc QSignalSpy: fix clazy-function-args-by-value 2024-03-21 11:20:49 +01:00
qt_cmdline.cmake Implement the batch_tests feature 2022-08-24 02:46:37 +02:00
qtaptestlogger.cpp QTest: Rename QCOMPARE_XX parameters to add meaning 2023-03-08 15:10:21 +01:00
qtaptestlogger_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qteamcitylogger.cpp QtMiscUtils: add isAsciiPrintable() helper 2023-03-18 12:00:56 +02:00
qteamcitylogger_p.h Convert teamcity logger to use QTestCharBuffer 2022-09-13 14:50:59 +02:00
qtest.h QTest: simplify toString(tuple) 2023-12-06 10:46:54 +01:00
qtest_gui.h testlib: Add test function for simulating wheel events 2023-12-20 01:15:17 +01:00
qtest_network.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtest_widgets.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestaccessible.h testlib: use const methods more 2023-09-08 19:17:35 +03:00
qtestassert.h Testlib: Make QTEST_ASSERT usable in constexpr functions 2023-07-17 08:33:40 +00:00
qtestblacklist.cpp testlib: Remove the "cmake" key from BLACKLIST files 2024-01-24 08:31:33 +01:00
qtestblacklist_p.h Make checkBlackLists() return bool 2023-11-03 16:31:57 +03:00
qtestcase.cpp Port to QDirListing 2024-03-03 14:02:07 +02:00
qtestcase.h QTest: rename local `timeout` variable in QTRY_IMPL macro 2024-02-09 15:11:50 +01:00
qtestcase.qdoc QDoc: Drop default arguments from some \fn documentation strings 2024-03-13 15:43:10 +01:00
qtestcase_p.h Remove the use of Q_TESTLIB_PRIVATE_EXPORT 2023-12-22 19:07:27 +01:00
qtestcoreelement_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestdata.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestdata.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestelement.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestelement_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestelementattribute.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestelementattribute_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestevent.h Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qtestevent.qdoc QDoc: Drop default arguments from some \fn documentation strings 2024-03-13 15:43:10 +01:00
qtesteventloop.h QTestEventLoop: add enterLoop(std::chrono::milliseconds) overload 2023-03-03 21:36:48 +02:00
qtesthelpers_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestjunitstreamer.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestjunitstreamer_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestkeyboard.h Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qtestlog.cpp QTest: make failOnWarning() functional on temp objects destruction 2023-11-22 20:15:38 +00:00
qtestlog_p.h Add QTest option for repeating the entire test execution 2023-11-15 11:07:09 +00:00
qtestmouse.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestmouse.h Silence a warning in release build 2023-12-01 13:22:00 +02:00
qtestregistry.cpp Implement the batch_tests feature 2022-08-24 02:46:37 +02:00
qtestregistry_p.h Add "We mean it" header 2022-10-05 09:05:54 +02:00
qtestresult.cpp QTest: make failOnWarning() functional on temp objects destruction 2023-11-22 20:15:38 +00:00
qtestresult_p.h QTestLib: rework QTest::compare_helper() 2022-06-03 20:37:51 +00:00
qtestspontaneevent.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestsystem.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtesttable.cpp Make adding new rows to QTestTable more efficient 2024-01-15 20:52:54 +00:00
qtesttable_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtesttouch.h Replace usages of Q_CLANG_QDOC with Q_QDOC 2022-10-21 09:48:36 +02:00
qtestutil_macos.mm Fix typos in docs and comments 2022-06-15 21:31:02 +02:00
qtestutil_macos_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtestwheel.h testlib: Add test function for simulating wheel events 2023-12-20 01:15:17 +01:00
qttestglobal.h Do not generate the deprecated 'QtTest/qtest_global.h' 2023-08-24 13:39:45 +02:00
qxctestlogger.mm Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qxctestlogger_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qxmltestlogger.cpp QBenchlib: use QBenchmarkMeasurerBase::Measurement in QBenchmarkResult 2022-11-09 02:18:44 -07:00
qxmltestlogger_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
selfcover.cmake Doc: Change links from froglogic to qt domain 2022-12-09 11:40:49 +01:00