| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qmltest/quicktestresult_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | class QUrl; | - |
| 5 | class QuickTestResultPrivate; | - |
| 6 | - | |
| 7 | class __attribute__((visibility("default"))) QuickTestResult : public QObject | - |
| 8 | { | - |
| 9 | public: | - |
| 10 | #pragma GCC diagnostic push | - |
| 11 | - | |
| 12 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 13 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
| 14 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 15 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 16 | #pragma GCC diagnostic pop | - |
| 17 | struct QPrivateSignal {}; | - |
| 18 | - | |
| 19 | - | |
| 20 | - | |
| 21 | - | |
| 22 | - | |
| 23 | - | |
| 24 | - | |
| 25 | - | |
| 26 | - | |
| 27 | public: | - |
| 28 | QuickTestResult(QObject *parent = nullptr); | - |
| 29 | ~QuickTestResult() override; | - |
| 30 | - | |
| 31 | - | |
| 32 | enum RunMode | - |
| 33 | { | - |
| 34 | RepeatUntilValidMeasurement, | - |
| 35 | RunOnce | - |
| 36 | }; | - |
| 37 | friend constexpr const QMetaObject *qt_getEnumMetaObject(RunMode) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(RunMode) noexcept { return "RunMode"; } | - |
| 38 | - | |
| 39 | QString testCaseName() const; | - |
| 40 | void setTestCaseName(const QString &name); | - |
| 41 | - | |
| 42 | QString functionName() const; | - |
| 43 | void setFunctionName(const QString &name); | - |
| 44 | - | |
| 45 | QString dataTag() const; | - |
| 46 | void setDataTag(const QString &tag); | - |
| 47 | - | |
| 48 | bool isFailed() const; | - |
| 49 | - | |
| 50 | bool isSkipped() const; | - |
| 51 | void setSkipped(bool skip); | - |
| 52 | - | |
| 53 | int passCount() const; | - |
| 54 | int failCount() const; | - |
| 55 | int skipCount() const; | - |
| 56 | - | |
| 57 | QStringList functionsToRun() const; | - |
| 58 | - | |
| 59 | public : | - |
| 60 | void reset(); | - |
| 61 | - | |
| 62 | void startLogging(); | - |
| 63 | void stopLogging(); | - |
| 64 | - | |
| 65 | void initTestTable(); | - |
| 66 | void clearTestTable(); | - |
| 67 | - | |
| 68 | void finishTestData(); | - |
| 69 | void finishTestDataCleanup(); | - |
| 70 | void finishTestFunction(); | - |
| 71 | - | |
| 72 | void stringify(QQmlV4Function *args); | - |
| 73 | - | |
| 74 | void fail(const QString &message, const QUrl &location, int line); | - |
| 75 | bool verify(bool success, const QString &message, | - |
| 76 | const QUrl &location, int line); | - |
| 77 | bool compare(bool success, const QString &message, | - |
| 78 | const QVariant &val1, const QVariant &val2, | - |
| 79 | const QUrl &location, int line); | - |
| 80 | bool fuzzyCompare(const QVariant &actual, const QVariant &expected, qreal delta); | - |
| 81 | void skip(const QString &message, const QUrl &location, int line); | - |
| 82 | bool expectFail(const QString &tag, const QString &comment, | - |
| 83 | const QUrl &location, int line); | - |
| 84 | bool expectFailContinue(const QString &tag, const QString &comment, | - |
| 85 | const QUrl &location, int line); | - |
| 86 | void warn(const QString &message, const QUrl &location, int line); | - |
| 87 | - | |
| 88 | void ignoreWarning(const QJSValue &message); | - |
| 89 | - | |
| 90 | void wait(int ms); | - |
| 91 | void sleep(int ms); | - |
| 92 | bool waitForRendering(QQuickItem *item, int timeout = 5000); | - |
| 93 | - | |
| 94 | void startMeasurement(); | - |
| 95 | void beginDataRun(); | - |
| 96 | void endDataRun(); | - |
| 97 | bool measurementAccepted(); | - |
| 98 | bool needsMoreMeasurements(); | - |
| 99 | - | |
| 100 | void startBenchmark(RunMode runMode, const QString &tag); | - |
| 101 | bool isBenchmarkDone() const; | - |
| 102 | void nextBenchmark(); | - |
| 103 | void stopBenchmark(); | - |
| 104 | - | |
| 105 | QObject *grabImage(QQuickItem *item); | - |
| 106 | - | |
| 107 | QObject *findChild(QObject *parent, const QString &objectName); | - |
| 108 | - | |
| 109 | public: | - |
| 110 | - | |
| 111 | static void parseArgs(int argc, char *argv[]); | - |
| 112 | static void setProgramName(const char *name); | - |
| 113 | static void setCurrentAppname(const char *appname); | - |
| 114 | static int exitCode(); | - |
| 115 | - | |
| 116 | public : | - |
| 117 | void programNameChanged(); | - |
| 118 | void testCaseNameChanged(); | - |
| 119 | void functionNameChanged(); | - |
| 120 | void dataTagChanged(); | - |
| 121 | void skippedChanged(); | - |
| 122 | - | |
| 123 | private: | - |
| 124 | QScopedPointer<QuickTestResultPrivate> d_ptr; | - |
| 125 | - | |
| 126 | inline QuickTestResultPrivate* d_func() { return executed 340 times by 4 tests: reinterpret_cast<QuickTestResultPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QuickTestResultPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 340 times by 4 tests: } inline const QuickTestResultPrivate* d_func() const { returnreturn reinterpret_cast<QuickTestResultPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 384 times by 2 tests: reinterpret_cast<const QuickTestResultPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QuickTestResultPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 384 times by 2 tests: } friend class QuickTestResultPrivate;return reinterpret_cast<const QuickTestResultPrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 340-384 |
| 127 | QuickTestResult(const QuickTestResult &) = delete; QuickTestResult &operator=(const QuickTestResult &) = delete; | - |
| 128 | }; | - |
| 129 | - | |
| 130 | - | |
| Switch to Source code | Preprocessed file |