最后更新于:2022-04-02 02:09:51

[TOC] ## 通讯宏 ``` QBENCHMARK QBENCHMARK_ONCE QCOMPARE(actual, expected) QEXPECT_FAIL(dataIndex, comment, mode) QFAIL(message) QFETCH(type, name) QFINDTESTDATA(filename) QSKIP(description) QTEST(actual, testElement) QTEST_APPLESS_MAIN(TestClass) QTEST_GUILESS_MAIN(TestClass) QTEST_MAIN(TestClass) QTRY_COMPARE(actual, expected) QTRY_COMPARE_WITH_TIMEOUT(actual, expected, timeout) QTRY_VERIFY2(condition, message) QTRY_VERIFY(condition) QTRY_VERIFY2_WITH_TIMEOUT(condition, message, timeout) QTRY_VERIFY_WITH_TIMEOUT(condition, timeout) QVERIFY2(condition, message) QVERIFY(condition) QVERIFY_EXCEPTION_THROWN(expression, exceptiontype) QWARN(message) ```
';