| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | | - |
| 37 | | - |
| 38 | | - |
| 39 | | - |
| 40 | #include <QtTest/private/qtestresult_p.h> | - |
| 41 | #include <QtTest/qtestassert.h> | - |
| 42 | #include <QtTest/private/qtestlog_p.h> | - |
| 43 | #include <QtTest/private/qplaintestlogger_p.h> | - |
| 44 | #include <QtTest/private/qbenchmark_p.h> | - |
| 45 | #include <QtTest/private/qbenchmarkmetric_p.h> | - |
| 46 | | - |
| 47 | #include <stdarg.h> | - |
| 48 | #include <stdio.h> | - |
| 49 | #include <stdlib.h> | - |
| 50 | #include <string.h> | - |
| 51 | | - |
| 52 | #ifdef Q_OS_WINCE | - |
| 53 | #include <QtCore/QString> | - |
| 54 | #endif | - |
| 55 | | - |
| 56 | #ifdef min // windows.h without NOMINMAX is included by the benchmark headers. | - |
| 57 | # undef min | - |
| 58 | #endif | - |
| 59 | #ifdef max | - |
| 60 | # undef max | - |
| 61 | #endif | - |
| 62 | | - |
| 63 | #include <QtCore/QByteArray> | - |
| 64 | #include <QtCore/qmath.h> | - |
| 65 | #include <QtCore/QLibraryInfo> | - |
| 66 | | - |
| 67 | #ifdef Q_OS_ANDROID | - |
| 68 | # include <android/log.h> | - |
| 69 | #endif | - |
| 70 | | - |
| 71 | #ifdef Q_OS_WIN | - |
| 72 | # include <qt_windows.h> | - |
| 73 | #endif | - |
| 74 | | - |
| 75 | QT_BEGIN_NAMESPACE | - |
| 76 | | - |
| 77 | namespace QTest { | - |
| 78 | | - |
| 79 | static const char *incidentType2String(QAbstractTestLogger::IncidentTypes type) | - |
| 80 | { | - |
| 81 | switch (type) { | - |
| 82 | case QAbstractTestLogger::Pass:executed 121692 times by 507 tests: case QAbstractTestLogger::Pass:Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 121692 |
| 83 | return "PASS ";executed 121692 times by 507 tests: return "PASS ";Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 121692 |
| 84 | case QAbstractTestLogger::XFail:executed 285 times by 38 tests: case QAbstractTestLogger::XFail:Executed by:- tst_LargeFile
- tst_QAbstractPrintDialog
- tst_QAuthenticator
- tst_QColumnView
- tst_QDBusAbstractInterface
- tst_QDateTime
- tst_QEventLoop
- tst_QFile
- tst_QGraphicsAnchorLayout
- tst_QGraphicsLayoutItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGuiEventLoop
- tst_QHttpNetworkConnection
- tst_QLatin1String
- tst_QLineEdit
- tst_QNetworkCookie
- tst_QNetworkReply
- tst_QPlainTextEdit
- tst_QRect
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QSqlDatabase
- tst_QSqlTableModel
- ...
| 285 |
| 85 | return "XFAIL ";executed 285 times by 38 tests: return "XFAIL ";Executed by:- tst_LargeFile
- tst_QAbstractPrintDialog
- tst_QAuthenticator
- tst_QColumnView
- tst_QDBusAbstractInterface
- tst_QDateTime
- tst_QEventLoop
- tst_QFile
- tst_QGraphicsAnchorLayout
- tst_QGraphicsLayoutItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGuiEventLoop
- tst_QHttpNetworkConnection
- tst_QLatin1String
- tst_QLineEdit
- tst_QNetworkCookie
- tst_QNetworkReply
- tst_QPlainTextEdit
- tst_QRect
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QSqlDatabase
- tst_QSqlTableModel
- ...
| 285 |
| 86 | case QAbstractTestLogger::Fail:executed 1070 times by 23 tests: case QAbstractTestLogger::Fail:Executed by:- tst_Gestures
- tst_QCommandLineParser
- tst_QFile
- tst_QGlyphRun
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QLocalSocket
- tst_QLocale
- tst_QLockFile
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QOpenGLWidget
- tst_QProcess
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QThreadStorage
- tst_QUdpSocket
- tst_QWidget
- tst_qmake
- tst_selftests - unknown status
| 1070 |
| 87 | return "FAIL! ";executed 1070 times by 23 tests: return "FAIL! ";Executed by:- tst_Gestures
- tst_QCommandLineParser
- tst_QFile
- tst_QGlyphRun
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QLocalSocket
- tst_QLocale
- tst_QLockFile
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QOpenGLWidget
- tst_QProcess
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QThreadStorage
- tst_QUdpSocket
- tst_QWidget
- tst_qmake
- tst_selftests - unknown status
| 1070 |
| 88 | case QAbstractTestLogger::XPass:executed 44 times by 1 test: case QAbstractTestLogger::XPass:Executed by:- tst_selftests - unknown status
| 44 |
| 89 | return "XPASS ";executed 44 times by 1 test: return "XPASS ";Executed by:- tst_selftests - unknown status
| 44 |
| 90 | case QAbstractTestLogger::BlacklistedPass:executed 531 times by 19 tests: case QAbstractTestLogger::BlacklistedPass:Executed by:- tst_QDBusAbstractAdaptor
- tst_QGestureRecognizer
- tst_QGraphicsView
- tst_QMdiArea
- tst_QNetworkInterface
- tst_QNetworkReply
- tst_QPauseAnimation
- tst_QSemaphore
- tst_QSizeGrip
- tst_QSocks5SocketEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_QSslSocket_onDemandCertificates_member
- tst_QTcpServer
- tst_QTextDocumentLayout
- tst_QTouchEvent
- tst_QUdpSocket
- tst_Spdy
- tst_selftests - unknown status
| 531 |
| 91 | return "BPASS ";executed 531 times by 19 tests: return "BPASS ";Executed by:- tst_QDBusAbstractAdaptor
- tst_QGestureRecognizer
- tst_QGraphicsView
- tst_QMdiArea
- tst_QNetworkInterface
- tst_QNetworkReply
- tst_QPauseAnimation
- tst_QSemaphore
- tst_QSizeGrip
- tst_QSocks5SocketEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_QSslSocket_onDemandCertificates_member
- tst_QTcpServer
- tst_QTextDocumentLayout
- tst_QTouchEvent
- tst_QUdpSocket
- tst_Spdy
- tst_selftests - unknown status
| 531 |
| 92 | case QAbstractTestLogger::BlacklistedFail:executed 14 times by 7 tests: case QAbstractTestLogger::BlacklistedFail:Executed by:- tst_QAction
- tst_QCompleter
- tst_QFtp
- tst_QSocks5SocketEngine
- tst_QSslSocket_onDemandCertificates_member
- tst_QWidget
- tst_selftests - unknown status
| 14 |
| 93 | return "BFAIL ";executed 14 times by 7 tests: return "BFAIL ";Executed by:- tst_QAction
- tst_QCompleter
- tst_QFtp
- tst_QSocks5SocketEngine
- tst_QSslSocket_onDemandCertificates_member
- tst_QWidget
- tst_selftests - unknown status
| 14 |
| 94 | } | - |
| 95 | return "??????"; never executed: return "??????"; | 0 |
| 96 | } | - |
| 97 | | - |
| 98 | static const char *benchmarkResult2String() | - |
| 99 | { | - |
| 100 | return "RESULT ";executed 94 times by 2 tests: return "RESULT ";Executed by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 94 |
| 101 | } | - |
| 102 | | - |
| 103 | static const char *messageType2String(QAbstractTestLogger::MessageTypes type) | - |
| 104 | { | - |
| 105 | switch (type) { | - |
| 106 | case QAbstractTestLogger::Skip:executed 842 times by 56 tests: case QAbstractTestLogger::Skip:Executed by:- tst_Compiler
- tst_Lancelot
- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QCssParser
- tst_QDBusConnection_NoApplication
- tst_QDBusLocalCalls
- tst_QDataStream
- tst_QDateTime
- tst_QDialog
- tst_QDir
- tst_QDockWidget
- tst_QFileInfo
- tst_QFiledialog
- tst_QFont
- tst_QFontDatabase
- tst_QFtp
- tst_QGLThreads
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QImageReader
- tst_QItemView
- tst_QLockFile
- tst_QMainWindow
- ...
| 842 |
| 107 | return "SKIP ";executed 842 times by 56 tests: return "SKIP ";Executed by:- tst_Compiler
- tst_Lancelot
- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QCssParser
- tst_QDBusConnection_NoApplication
- tst_QDBusLocalCalls
- tst_QDataStream
- tst_QDateTime
- tst_QDialog
- tst_QDir
- tst_QDockWidget
- tst_QFileInfo
- tst_QFiledialog
- tst_QFont
- tst_QFontDatabase
- tst_QFtp
- tst_QGLThreads
- tst_QGraphicsProxyWidget
- tst_QIODevice
- tst_QImageReader
- tst_QItemView
- tst_QLockFile
- tst_QMainWindow
- ...
| 842 |
| 108 | case QAbstractTestLogger::Warn:executed 79 times by 13 tests: case QAbstractTestLogger::Warn:Executed by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QMouseEvent
- tst_QPluginLoader
- tst_QSqlQuery
- tst_QString_NoCastFromByteArray
- tst_QTreeView
- tst_QWidget
- tst_selftests - unknown status
| 79 |
| 109 | return "WARNING";executed 79 times by 13 tests: return "WARNING";Executed by:- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QLocalSocket
- tst_QMimeDatabase
- tst_QMouseEvent
- tst_QPluginLoader
- tst_QSqlQuery
- tst_QString_NoCastFromByteArray
- tst_QTreeView
- tst_QWidget
- tst_selftests - unknown status
| 79 |
| 110 | case QAbstractTestLogger::QWarning:executed 20639 times by 69 tests: case QAbstractTestLogger::QWarning:Executed by:- tst_Gestures
- tst_LargeFile
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QBuffer
- tst_QByteArray
- tst_QColor
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialogButtonBox
- tst_QDirModel
- tst_QDrag
- tst_QEventLoop
- tst_QFileSystemWatcher
- tst_QFormLayout
- tst_QGLBuffer
- tst_QGlyphRun
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsProxyWidget
- ...
| 20639 |
| 111 | return "QWARN ";executed 20639 times by 69 tests: return "QWARN ";Executed by:- tst_Gestures
- tst_LargeFile
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QBuffer
- tst_QByteArray
- tst_QColor
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialogButtonBox
- tst_QDirModel
- tst_QDrag
- tst_QEventLoop
- tst_QFileSystemWatcher
- tst_QFormLayout
- tst_QGLBuffer
- tst_QGlyphRun
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsProxyWidget
- ...
| 20639 |
| 112 | case QAbstractTestLogger::QDebug:executed 1949 times by 55 tests: case QAbstractTestLogger::QDebug:Executed by:- tst_Gestures
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QBrush
- tst_QColumnView
- tst_QDBusInterface
- tst_QDateTime
- tst_QElapsedTimer
- tst_QEventLoop
- tst_QFileSystemWatcher
- tst_QFtp
- tst_QGraphicsScene
- tst_QGuiEventLoop
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QMdiSubWindow
- tst_QMimeDatabase
- tst_QMutex
- tst_QNetworkConfigurationManager
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- ...
| 1949 |
| 113 | return "QDEBUG ";executed 1949 times by 55 tests: return "QDEBUG ";Executed by:- tst_Gestures
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QBrush
- tst_QColumnView
- tst_QDBusInterface
- tst_QDateTime
- tst_QElapsedTimer
- tst_QEventLoop
- tst_QFileSystemWatcher
- tst_QFtp
- tst_QGraphicsScene
- tst_QGuiEventLoop
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QMdiSubWindow
- tst_QMimeDatabase
- tst_QMutex
- tst_QNetworkConfigurationManager
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- ...
| 1949 |
| 114 | case QAbstractTestLogger::QInfo:executed 22 times by 1 test: case QAbstractTestLogger::QInfo:Executed by:- tst_selftests - unknown status
| 22 |
| 115 | return "QINFO ";executed 22 times by 1 test: return "QINFO ";Executed by:- tst_selftests - unknown status
| 22 |
| 116 | case QAbstractTestLogger::QSystem:executed 12 times by 1 test: case QAbstractTestLogger::QSystem:Executed by:- tst_selftests - unknown status
| 12 |
| 117 | return "QSYSTEM";executed 12 times by 1 test: return "QSYSTEM";Executed by:- tst_selftests - unknown status
| 12 |
| 118 | case QAbstractTestLogger::QFatal:executed 25 times by 2 tests: case QAbstractTestLogger::QFatal:Executed by:- tst_QNetworkReply
- tst_selftests - unknown status
| 25 |
| 119 | return "QFATAL ";executed 25 times by 2 tests: return "QFATAL ";Executed by:- tst_QNetworkReply
- tst_selftests - unknown status
| 25 |
| 120 | case QAbstractTestLogger::Info:executed 652 times by 1 test: case QAbstractTestLogger::Info:Executed by:- tst_selftests - unknown status
| 652 |
| 121 | return "INFO ";executed 652 times by 1 test: return "INFO ";Executed by:- tst_selftests - unknown status
| 652 |
| 122 | } | - |
| 123 | return "??????"; never executed: return "??????"; | 0 |
| 124 | } | - |
| 125 | | - |
| 126 | template <typename T> | - |
| 127 | static int countSignificantDigits(T num) | - |
| 128 | { | - |
| 129 | if (num <= 0)| TRUE | evaluated 50 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | evaluated 138 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
| 50-138 |
| 130 | return 0;executed 50 times by 2 tests: return 0;Executed by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 50 |
| 131 | | - |
| 132 | int digits = 0; | - |
| 133 | qreal divisor = 1; | - |
| 134 | | - |
| 135 | while (num / divisor >= 1) {| TRUE | evaluated 410 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | evaluated 138 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
| 138-410 |
| 136 | divisor *= 10; | - |
| 137 | ++digits; | - |
| 138 | }executed 410 times by 2 tests: end of blockExecuted by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 410 |
| 139 | | - |
| 140 | return digits;executed 138 times by 2 tests: return digits;Executed by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 138 |
| 141 | } | - |
| 142 | | - |
| 143 | | - |
| 144 | template <typename T> QString formatResult(T number, int significantDigits) | - |
| 145 | { | - |
| 146 | if (number < T(0))| TRUE | never evaluated | | FALSE | evaluated 188 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
| 0-188 |
| 147 | return QLatin1String("NAN"); never executed: return QLatin1String("NAN"); | 0 |
| 148 | if (number == T(0))| TRUE | evaluated 50 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | evaluated 138 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
| 50-138 |
| 149 | return QLatin1String("0");executed 50 times by 2 tests: return QLatin1String("0");Executed by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 50 |
| 150 | | - |
| 151 | QString beforeDecimalPoint = QString::number(qint64(number), 'f', 0); | - |
| 152 | QString afterDecimalPoint = QString::number(number, 'f', 20); | - |
| 153 | afterDecimalPoint.remove(0, beforeDecimalPoint.count() + 1); | - |
| 154 | | - |
| 155 | int beforeUse = qMin(beforeDecimalPoint.count(), significantDigits); | - |
| 156 | int beforeRemove = beforeDecimalPoint.count() - beforeUse; | - |
| 157 | | - |
| 158 | | - |
| 159 | beforeDecimalPoint.chop(beforeRemove); | - |
| 160 | for (int i = 0; i < beforeRemove; ++i) {| TRUE | never evaluated | | FALSE | evaluated 138 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
| 0-138 |
| 161 | beforeDecimalPoint.append(QLatin1Char('0')); | - |
| 162 | } never executed: end of block | 0 |
| 163 | | - |
| 164 | int afterUse = significantDigits - beforeUse; | - |
| 165 | | - |
| 166 | | - |
| 167 | if (beforeDecimalPoint == QLatin1String("0") && afterDecimalPoint.isEmpty() == false) {| TRUE | never evaluated | | FALSE | evaluated 138 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
| TRUE | never evaluated | | FALSE | never evaluated |
| 0-138 |
| 168 | ++afterUse; | - |
| 169 | | - |
| 170 | int i = 0; | - |
| 171 | while (i < afterDecimalPoint.count() && afterDecimalPoint.at(i) == QLatin1Char('0')) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 172 | ++i; | - |
| 173 | } never executed: end of block | 0 |
| 174 | | - |
| 175 | afterUse += i; | - |
| 176 | } never executed: end of block | 0 |
| 177 | | - |
| 178 | int afterRemove = afterDecimalPoint.count() - afterUse; | - |
| 179 | afterDecimalPoint.chop(afterRemove); | - |
| 180 | | - |
| 181 | QChar separator = QLatin1Char(','); | - |
| 182 | QChar decimalPoint = QLatin1Char('.'); | - |
| 183 | | - |
| 184 | | - |
| 185 | int length = beforeDecimalPoint.length(); | - |
| 186 | for (int i = beforeDecimalPoint.length() -1; i >= 1; --i) {| TRUE | evaluated 266 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 138 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
| 138-266 |
| 187 | if ((length - i) % 3 == 0)| TRUE | evaluated 40 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 226 times by 1 testEvaluated by:- tst_selftests - unknown status
|
| 40-226 |
| 188 | beforeDecimalPoint.insert(i, separator);executed 40 times by 1 test: beforeDecimalPoint.insert(i, separator);Executed by:- tst_selftests - unknown status
| 40 |
| 189 | }executed 266 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
| 266 |
| 190 | | - |
| 191 | QString print; | - |
| 192 | print = beforeDecimalPoint; | - |
| 193 | if (afterUse > 0)| TRUE | evaluated 4 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 134 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
| 4-134 |
| 194 | print.append(decimalPoint);executed 4 times by 1 test: print.append(decimalPoint);Executed by:- tst_selftests - unknown status
| 4 |
| 195 | | - |
| 196 | print += afterDecimalPoint; | - |
| 197 | | - |
| 198 | | - |
| 199 | return print;executed 138 times by 2 tests: return print;Executed by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 138 |
| 200 | } | - |
| 201 | | - |
| 202 | template <typename T> | - |
| 203 | int formatResult(char * buffer, int bufferSize, T number, int significantDigits) | - |
| 204 | { | - |
| 205 | QString result = formatResult(number, significantDigits); | - |
| 206 | qstrncpy(buffer, result.toLatin1().constData(), bufferSize); | - |
| 207 | int size = result.count(); | - |
| 208 | return size;executed 188 times by 2 tests: return size;Executed by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 188 |
| 209 | } | - |
| 210 | } | - |
| 211 | | - |
| 212 | #if defined(Q_OS_WIN) | - |
| 213 | Q_CORE_EXPORT bool qt_logging_to_console(); | - |
| 214 | #endif | - |
| 215 | | - |
| 216 | void QPlainTestLogger::outputMessage(const char *str) | - |
| 217 | { | - |
| 218 | #if defined(Q_OS_WINCE) | - |
| 219 | QString strUtf16 = QString::fromLocal8Bit(str); | - |
| 220 | const int maxOutputLength = 255; | - |
| 221 | do { | - |
| 222 | QString tmp = strUtf16.left(maxOutputLength); | - |
| 223 | OutputDebugString((wchar_t*)tmp.utf16()); | - |
| 224 | strUtf16.remove(0, maxOutputLength); | - |
| 225 | } while (!strUtf16.isEmpty()); | - |
| 226 | if (stream != stdout) | - |
| 227 | #elif defined(Q_OS_WIN) | - |
| 228 | | - |
| 229 | if (!qt_logging_to_console() && stream == stdout) { | - |
| 230 | OutputDebugStringA(str); | - |
| 231 | return; | - |
| 232 | } | - |
| 233 | #elif defined(Q_OS_ANDROID) | - |
| 234 | __android_log_write(ANDROID_LOG_INFO, "QTestLib", str); | - |
| 235 | #endif | - |
| 236 | outputString(str); | - |
| 237 | }executed 149654 times by 507 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 149654 |
| 238 | | - |
| 239 | void QPlainTestLogger::printMessage(const char *type, const char *msg, const char *file, int line) | - |
| 240 | { | - |
| 241 | QTEST_ASSERT(type); never executed: qt_assert("type",__FILE__,241); | TRUE | never evaluated | | FALSE | evaluated 147856 times by 507 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
| 0-147856 |
| 242 | QTEST_ASSERT(msg); never executed: qt_assert("msg",__FILE__,242); | TRUE | never evaluated | | FALSE | evaluated 147856 times by 507 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
| 0-147856 |
| 243 | | - |
| 244 | QTestCharBuffer buf; | - |
| 245 | | - |
| 246 | const char *fn = QTestResult::currentTestFunction() ? QTestResult::currentTestFunction()| TRUE | evaluated 147856 times by 507 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| | FALSE | never evaluated |
| 0-147856 |
| 247 | : "UnknownTestFunc"; | - |
| 248 | const char *tag = QTestResult::currentDataTag() ? QTestResult::currentDataTag() : "";| TRUE | evaluated 115651 times by 328 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- ...
| | FALSE | evaluated 32205 times by 507 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
| 32205-115651 |
| 249 | const char *gtag = QTestResult::currentGlobalDataTag()| TRUE | evaluated 3022 times by 15 testsEvaluated by:- tst_QDBusLocalCalls
- tst_QDnsLookup
- tst_QFtp
- tst_QHostInfo
- tst_QSqlDriver
- tst_QSqlRelationalTableModel
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_Utf8
- tst_qdbusxml2cpp
- tst_selftests - unknown status
| | FALSE | evaluated 144834 times by 507 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
| 3022-144834 |
| 250 | ? QTestResult::currentGlobalDataTag() | - |
| 251 | : ""; | - |
| 252 | const char *filler = (tag[0] && gtag[0]) ? ":" : "";| TRUE | evaluated 115634 times by 328 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- ...
| | FALSE | evaluated 32222 times by 507 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
| TRUE | evaluated 2092 times by 11 testsEvaluated by:- tst_QDBusLocalCalls
- tst_QDnsLookup
- tst_QFtp
- tst_QHostInfo
- tst_QSslSocket
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_Utf8
- tst_qdbusxml2cpp
- tst_selftests - unknown status
| | FALSE | evaluated 113542 times by 318 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_char
- tst_QAtomicInteger_char16_t
- tst_QAtomicInteger_char32_t
- tst_QAtomicInteger_int
- tst_QAtomicInteger_long
- ...
|
| 2092-115634 |
| 253 | if (file) {| TRUE | evaluated 2469 times by 105 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAction
- tst_QAuthenticator
- tst_QByteArray
- tst_QColumnView
- tst_QCommandLineParser
- tst_QCompleter
- tst_QCssParser
- tst_QDBusAbstractInterface
- tst_QDBusConnection_NoApplication
- tst_QDBusLocalCalls
- tst_QDataStream
- tst_QDateTime
- tst_QDialog
- tst_QDir
- tst_QDockWidget
- tst_QEventLoop
- tst_QFile
- tst_QFileInfo
- ...
| | FALSE | evaluated 145387 times by 507 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
| 2469-145387 |
| 254 | QTest::qt_asprintf(&buf, "%s: %s::%s(%s%s%s)%s%s\n" | - |
| 255 | #ifdef Q_OS_WIN | - |
| 256 | "%s(%d) : failure location\n" | - |
| 257 | #else | - |
| 258 | " Loc: [%s(%d)]\n" | - |
| 259 | #endif | - |
| 260 | , type, QTestResult::currentTestObjectName(), fn, gtag, filler, tag, | - |
| 261 | msg[0] ? " " : "", msg, file, line); | - |
| 262 | } else {executed 2469 times by 105 tests: end of blockExecuted by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAction
- tst_QAuthenticator
- tst_QByteArray
- tst_QColumnView
- tst_QCommandLineParser
- tst_QCompleter
- tst_QCssParser
- tst_QDBusAbstractInterface
- tst_QDBusConnection_NoApplication
- tst_QDBusLocalCalls
- tst_QDataStream
- tst_QDateTime
- tst_QDialog
- tst_QDir
- tst_QDockWidget
- tst_QEventLoop
- tst_QFile
- tst_QFileInfo
- ...
| 2469 |
| 263 | QTest::qt_asprintf(&buf, "%s: %s::%s(%s%s%s)%s%s\n", | - |
| 264 | type, QTestResult::currentTestObjectName(), fn, gtag, filler, tag, | - |
| 265 | msg[0] ? " " : "", msg); | - |
| 266 | }executed 145387 times by 507 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 145387 |
| 267 | | - |
| 268 | | - |
| 269 | memcpy(buf.data(), type, strlen(type)); | - |
| 270 | outputMessage(buf.data()); | - |
| 271 | }executed 147856 times by 507 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 147856 |
| 272 | | - |
| 273 | void QPlainTestLogger::printBenchmarkResult(const QBenchmarkResult &result) | - |
| 274 | { | - |
| 275 | const char *bmtag = QTest::benchmarkResult2String(); | - |
| 276 | | - |
| 277 | char buf1[1024]; | - |
| 278 | qsnprintf( | - |
| 279 | buf1, sizeof(buf1), "%s: %s::%s", | - |
| 280 | bmtag, | - |
| 281 | QTestResult::currentTestObjectName(), | - |
| 282 | result.context.slotName.toLatin1().data()); | - |
| 283 | | - |
| 284 | char bufTag[1024]; | - |
| 285 | bufTag[0] = 0; | - |
| 286 | QByteArray tag = result.context.tag.toLocal8Bit(); | - |
| 287 | if (tag.isEmpty() == false) {| TRUE | evaluated 78 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | evaluated 16 times by 1 testEvaluated by:- tst_selftests - unknown status
|
| 16-78 |
| 288 | qsnprintf(bufTag, sizeof(bufTag), ":\"%s\"", tag.data()); | - |
| 289 | }executed 78 times by 2 tests: end of blockExecuted by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 78 |
| 290 | | - |
| 291 | | - |
| 292 | char fillFormat[8]; | - |
| 293 | int fillLength = 5; | - |
| 294 | qsnprintf(fillFormat, sizeof(fillFormat), ":\n%%%ds", fillLength); | - |
| 295 | char fill[1024]; | - |
| 296 | qsnprintf(fill, sizeof(fill), fillFormat, ""); | - |
| 297 | | - |
| 298 | const char * unitText = QTest::benchmarkMetricUnit(result.metric); | - |
| 299 | | - |
| 300 | qreal valuePerIteration = qreal(result.value) / qreal(result.iterations); | - |
| 301 | char resultBuffer[100] = ""; | - |
| 302 | QTest::formatResult(resultBuffer, 100, valuePerIteration, QTest::countSignificantDigits(result.value)); | - |
| 303 | | - |
| 304 | char buf2[1024]; | - |
| 305 | qsnprintf(buf2, sizeof(buf2), "%s %s", resultBuffer, unitText); | - |
| 306 | | - |
| 307 | char buf2_[1024]; | - |
| 308 | QByteArray iterationText = " per iteration"; | - |
| 309 | Q_ASSERT(result.iterations > 0); | - |
| 310 | qsnprintf(buf2_, sizeof(buf2_), "%s", iterationText.data()); | - |
| 311 | | - |
| 312 | char buf3[1024]; | - |
| 313 | Q_ASSERT(result.iterations > 0); | - |
| 314 | QTest::formatResult(resultBuffer, 100, result.value, QTest::countSignificantDigits(result.value)); | - |
| 315 | qsnprintf(buf3, sizeof(buf3), " (total: %s, iterations: %d)", resultBuffer, result.iterations); | - |
| 316 | | - |
| 317 | char buf[1024]; | - |
| 318 | | - |
| 319 | if (result.setByMacro) {| TRUE | evaluated 94 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| | FALSE | never evaluated |
| 0-94 |
| 320 | qsnprintf(buf, sizeof(buf), "%s%s%s%s%s%s\n", buf1, bufTag, fill, buf2, buf2_, buf3); | - |
| 321 | } else {executed 94 times by 2 tests: end of blockExecuted by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 94 |
| 322 | qsnprintf(buf, sizeof(buf), "%s%s%s%s\n", buf1, bufTag, fill, buf2); | - |
| 323 | } never executed: end of block | 0 |
| 324 | | - |
| 325 | memcpy(buf, bmtag, strlen(bmtag)); | - |
| 326 | outputMessage(buf); | - |
| 327 | }executed 94 times by 2 tests: end of blockExecuted by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 94 |
| 328 | | - |
| 329 | QPlainTestLogger::QPlainTestLogger(const char *filename) | - |
| 330 | : QAbstractTestLogger(filename) | - |
| 331 | { | - |
| 332 | }executed 855 times by 506 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 855 |
| 333 | | - |
| 334 | QPlainTestLogger::~QPlainTestLogger() | - |
| 335 | { | - |
| 336 | } | - |
| 337 | | - |
| 338 | void QPlainTestLogger::startLogging() | - |
| 339 | { | - |
| 340 | QAbstractTestLogger::startLogging(); | - |
| 341 | | - |
| 342 | char buf[1024]; | - |
| 343 | if (QTestLog::verboseLevel() < 0) {| TRUE | evaluated 2 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 851 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
| 2-851 |
| 344 | qsnprintf(buf, sizeof(buf), "Testing %s\n", QTestResult::currentTestObjectName()); | - |
| 345 | } else {executed 2 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
| 2 |
| 346 | qsnprintf(buf, sizeof(buf), | - |
| 347 | "********* Start testing of %s *********\n" | - |
| 348 | "Config: Using QtTest library " QTEST_VERSION_STR | - |
| 349 | ", %s\n", QTestResult::currentTestObjectName(), QLibraryInfo::build()); | - |
| 350 | }executed 851 times by 506 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 851 |
| 351 | outputMessage(buf); | - |
| 352 | }executed 853 times by 506 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 853 |
| 353 | | - |
| 354 | void QPlainTestLogger::stopLogging() | - |
| 355 | { | - |
| 356 | char buf[1024]; | - |
| 357 | const int timeMs = qRound(QTestLog::msecsTotalTime()); | - |
| 358 | if (QTestLog::verboseLevel() < 0) {| TRUE | evaluated 2 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 849 times by 506 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
| 2-849 |
| 359 | qsnprintf(buf, sizeof(buf), "Totals: %d passed, %d failed, %d skipped, %d blacklisted, %dms\n", | - |
| 360 | QTestLog::passCount(), QTestLog::failCount(), | - |
| 361 | QTestLog::skipCount(), QTestLog::blacklistCount(), timeMs); | - |
| 362 | } else {executed 2 times by 1 test: end of blockExecuted by:- tst_selftests - unknown status
| 2 |
| 363 | qsnprintf(buf, sizeof(buf), | - |
| 364 | "Totals: %d passed, %d failed, %d skipped, %d blacklisted, %dms\n" | - |
| 365 | "********* Finished testing of %s *********\n", | - |
| 366 | QTestLog::passCount(), QTestLog::failCount(), | - |
| 367 | QTestLog::skipCount(), QTestLog::blacklistCount(), timeMs, | - |
| 368 | QTestResult::currentTestObjectName()); | - |
| 369 | }executed 849 times by 506 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 849 |
| 370 | outputMessage(buf); | - |
| 371 | | - |
| 372 | QAbstractTestLogger::stopLogging(); | - |
| 373 | }executed 851 times by 506 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 851 |
| 374 | | - |
| 375 | | - |
| 376 | void QPlainTestLogger::enterTestFunction(const char * ) | - |
| 377 | { | - |
| 378 | if (QTestLog::verboseLevel() >= 1)| TRUE | evaluated 340 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 12547 times by 507 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
| 340-12547 |
| 379 | printMessage(QTest::messageType2String(Info), "entering");executed 340 times by 1 test: printMessage(QTest::messageType2String(Info), "entering");Executed by:- tst_selftests - unknown status
| 340 |
| 380 | }executed 12887 times by 507 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 12887 |
| 381 | | - |
| 382 | void QPlainTestLogger::leaveTestFunction() | - |
| 383 | { | - |
| 384 | } | - |
| 385 | | - |
| 386 | void QPlainTestLogger::addIncident(IncidentTypes type, const char *description, | - |
| 387 | const char *file, int line) | - |
| 388 | { | - |
| 389 | | - |
| 390 | if ((type == QAbstractTestLogger::Pass || type == QAbstractTestLogger::XFail)| TRUE | evaluated 121698 times by 507 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| | FALSE | evaluated 1946 times by 73 testsEvaluated by:- tst_Gestures
- tst_LargeFile
- tst_QAbstractPrintDialog
- tst_QAction
- tst_QAuthenticator
- tst_QColumnView
- tst_QCommandLineParser
- tst_QCompleter
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDateTime
- tst_QEventLoop
- tst_QFile
- tst_QFtp
- tst_QGestureRecognizer
- tst_QGlyphRun
- tst_QGraphicsAnchorLayout
- tst_QGraphicsLayoutItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QGuiEventLoop
- tst_QHttpNetworkConnection
- tst_QLatin1String
- ...
|
| TRUE | evaluated 287 times by 38 testsEvaluated by:- tst_LargeFile
- tst_QAbstractPrintDialog
- tst_QAuthenticator
- tst_QColumnView
- tst_QDBusAbstractInterface
- tst_QDateTime
- tst_QEventLoop
- tst_QFile
- tst_QGraphicsAnchorLayout
- tst_QGraphicsLayoutItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGuiEventLoop
- tst_QHttpNetworkConnection
- tst_QLatin1String
- tst_QLineEdit
- tst_QNetworkCookie
- tst_QNetworkReply
- tst_QPlainTextEdit
- tst_QRect
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QSqlDatabase
- tst_QSqlTableModel
- ...
| | FALSE | evaluated 1659 times by 42 testsEvaluated by:- tst_Gestures
- tst_QAction
- tst_QCommandLineParser
- tst_QCompleter
- tst_QDBusAbstractAdaptor
- tst_QFile
- tst_QFtp
- tst_QGestureRecognizer
- tst_QGlyphRun
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QLocalSocket
- tst_QLocale
- tst_QLockFile
- tst_QMdiArea
- tst_QNetworkCookieJar
- tst_QNetworkInterface
- tst_QNetworkReply
- tst_QOpenGLWidget
- tst_QPauseAnimation
- tst_QProcess
- tst_QSemaphore
- tst_QSizeGrip
- tst_QSocks5SocketEngine
- ...
|
| 287-121698 |
| 391 | && QTestLog::verboseLevel() < 0)| TRUE | evaluated 8 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 121977 times by 507 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
|
| 8-121977 |
| 392 | return;executed 8 times by 1 test: return;Executed by:- tst_selftests - unknown status
| 8 |
| 393 | | - |
| 394 | printMessage(QTest::incidentType2String(type), description, file, line); | - |
| 395 | }executed 123636 times by 507 tests: end of blockExecuted by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSocket
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- ...
| 123636 |
| 396 | | - |
| 397 | void QPlainTestLogger::addBenchmarkResult(const QBenchmarkResult &result) | - |
| 398 | { | - |
| 399 | | - |
| 400 | if (QTestLog::verboseLevel() < 0)| TRUE | never evaluated | | FALSE | evaluated 94 times by 2 testsEvaluated by:- tst_QByteDataBuffer
- tst_selftests - unknown status
|
| 0-94 |
| 401 | return; never executed: return; | 0 |
| 402 | | - |
| 403 | printBenchmarkResult(result); | - |
| 404 | }executed 94 times by 2 tests: end of blockExecuted by:- tst_QByteDataBuffer
- tst_selftests - unknown status
| 94 |
| 405 | | - |
| 406 | void QPlainTestLogger::addMessage(MessageTypes type, const QString &message, | - |
| 407 | const char *file, int line) | - |
| 408 | { | - |
| 409 | | - |
| 410 | if (type != QAbstractTestLogger::QFatal && QTestLog::verboseLevel() < 0)| TRUE | evaluated 23869 times by 135 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QBuffer
- tst_QByteArray
- tst_QColor
- tst_QColumnView
- tst_QCssParser
- tst_QDBusConnection_NoApplication
- tst_QDBusInterface
- tst_QDBusLocalCalls
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDialog
- ...
| | FALSE | evaluated 25 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_selftests - unknown status
|
| TRUE | evaluated 14 times by 1 testEvaluated by:- tst_selftests - unknown status
| | FALSE | evaluated 23855 times by 135 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QBuffer
- tst_QByteArray
- tst_QColor
- tst_QColumnView
- tst_QCssParser
- tst_QDBusConnection_NoApplication
- tst_QDBusInterface
- tst_QDBusLocalCalls
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDialog
- ...
|
| 14-23869 |
| 411 | return;executed 14 times by 1 test: return;Executed by:- tst_selftests - unknown status
| 14 |
| 412 | | - |
| 413 | printMessage(QTest::messageType2String(type), qPrintable(message), file, line); | - |
| 414 | }executed 23880 times by 135 tests: end of blockExecuted by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QBrush
- tst_QBuffer
- tst_QByteArray
- tst_QColor
- tst_QColumnView
- tst_QCssParser
- tst_QDBusConnection_NoApplication
- tst_QDBusInterface
- tst_QDBusLocalCalls
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDialog
- ...
| 23880 |
| 415 | | - |
| 416 | QT_END_NAMESPACE | - |
| | |