OpenCoverage

qdebug.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qdebug.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4using QtMiscUtils::toHexUpper;-
5using QtMiscUtils::fromHex;-
6QDebug::~QDebug()-
7{-
8 if (!--stream->ref
!--stream->refDescription
TRUEevaluated 15700 times by 69 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QLocalSocket
  • ...
FALSEevaluated 3800 times by 37 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QFile
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QLocalSocket
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QObject
  • ...
) {
3800-15700
9 if (stream->space
stream->spaceDescription
TRUEevaluated 15411 times by 63 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
FALSEevaluated 289 times by 14 tests
Evaluated by:
  • tst_QBuffer
  • tst_QDebug
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QIODevice
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QWidget
&& stream->buffer.endsWith(QLatin1Char(' '))
stream->buffer...tin1Char(' '))Description
TRUEevaluated 15159 times by 58 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • ...
FALSEevaluated 252 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkReply
  • tst_QWidget
  • tst_QWindow
)
252-15411
10 stream->buffer.chop(1);
executed 15159 times by 58 tests: stream->buffer.chop(1);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • ...
15159
11 if (stream->message_output
stream->message_outputDescription
TRUEevaluated 15351 times by 64 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • ...
FALSEevaluated 349 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDebug
  • tst_QFile
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkReply
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QWidget
  • tst_QWindow
) {
349-15351
12 qt_message_output(stream->type,-
13 stream->context,-
14 stream->buffer);-
15 }
executed 15351 times by 64 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • ...
15351
16 delete stream;-
17 }
executed 15700 times by 69 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QLocalSocket
  • ...
15700
18}
executed 19500 times by 69 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QLocalSocket
  • ...
19500
19-
20-
21-
22-
23void QDebug::putUcs4(uint ucs4)-
24{-
25 maybeQuote('\'');-
26 if (ucs4 < 0x20
ucs4 < 0x20Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QDebug
) {
1-7
27 stream->ts << "\\x" << hex << ucs4 << reset;-
28 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QVariant
else if (ucs4 < 0x80
ucs4 < 0x80Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QDebug
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDebug
) {
1-5
29 stream->ts << char(ucs4);-
30 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_QDebug
else {
5
31 if (ucs4 < 0x10000
ucs4 < 0x10000Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDebug
FALSEnever evaluated
)
0-2
32 stream->ts << "\\u" << qSetFieldWidth(4);
executed 2 times by 1 test: stream->ts << "\\u" << qSetFieldWidth(4);
Executed by:
  • tst_QDebug
2
33 else-
34 stream->ts << "\\U" << qSetFieldWidth(8);
never executed: stream->ts << "\\U" << qSetFieldWidth(8);
0
35 stream->ts << hex << qSetPadChar(QLatin1Char('0')) << ucs4 << reset;-
36 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QDebug
2
37 maybeQuote('\'');-
38}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QVariant
8
39-
40-
41-
42-
43static inline bool isPrintable(uint ucs4)-
44{ return
executed 3 times by 1 test: return QChar::isPrint(ucs4);
Executed by:
  • tst_QDebug
QChar::isPrint(ucs4);
executed 3 times by 1 test: return QChar::isPrint(ucs4);
Executed by:
  • tst_QDebug
}
3
45static inline bool isPrintable(ushort uc)-
46{ return
executed 202559 times by 34 tests: return QChar::isPrint(uc);
Executed by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • ...
QChar::isPrint(uc);
executed 202559 times by 34 tests: return QChar::isPrint(uc);
Executed by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • ...
}
202559
47static inline bool isPrintable(uchar c)-
48{ return
executed 173 times by 3 tests: return c >= ' ' && c < 0x7f;
Executed by:
  • tst_QDebug
  • tst_QObject
  • tst_QVariant
c >= ' ' && c < 0x7f;
executed 173 times by 3 tests: return c >= ' ' && c < 0x7f;
Executed by:
  • tst_QDebug
  • tst_QObject
  • tst_QVariant
}
173
49-
50template <typename Char>-
51static inline void putEscapedString(QTextStreamPrivate *d, const Char *begin, int length, bool isUnicode = true)-
52{-
53 QChar quote(QLatin1Char('"'));-
54 d->write(&quote, 1);-
55-
56 bool lastWasHexEscape = false;-
57 const Char *end = begin + length;-
58 for (const Char *p = begin; p != end
p != endDescription
TRUEevaluated 17501 times by 35 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • ...
FALSEevaluated 13165 times by 36 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QPrinterInfo
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • ...
; ++p) {
13165-17501
59-
60 if (__builtin_expect(!!(lastWasHexEscape), false)
__builtin_expe...scape), false)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QDebug
FALSEevaluated 17496 times by 35 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • ...
) {
5-17496
61 if (fromHex(*p) != -1
fromHex(*p) != -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDebug
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDebug
) {
1-4
62-
63 QChar quotes[] = { QLatin1Char('"'), QLatin1Char('"') };-
64 d->write(quotes, 2);-
65 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QDebug
1
66 lastWasHexEscape = false;-
67 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_QDebug
5
68-
69 if (sizeof(Char) == sizeof(QChar)
sizeof(Char) == sizeof(QChar)Description
TRUEevaluated 17328 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • ...
FALSEevaluated 173 times by 3 tests
Evaluated by:
  • tst_QDebug
  • tst_QObject
  • tst_QVariant
) {
173-17328
70-
71 int runLength = 0;-
72 while (p + runLength != end
p + runLength != endDescription
TRUEevaluated 202559 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • ...
FALSEevaluated 13103 times by 33 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • tst_QString
  • ...
&&
13103-202559
73 isPrintable(p[runLength])
isPrintable(p[runLength])Description
TRUEevaluated 202448 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • ...
FALSEevaluated 111 times by 2 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QDebug
&& p[runLength] != '\\'
p[runLength] != '\\'Description
TRUEevaluated 198761 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • ...
FALSEevaluated 3687 times by 2 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QDebug
&& p[runLength] != '"'
p[runLength] != '"'Description
TRUEevaluated 198334 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • ...
FALSEevaluated 427 times by 4 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QDBusInterface
  • tst_QDebug
  • tst_QTextDocument
)
111-202448
74 ++
executed 198334 times by 34 tests: ++runLength;
Executed by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • ...
runLength;
executed 198334 times by 34 tests: ++runLength;
Executed by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • ...
198334
75 if (runLength
runLengthDescription
TRUEevaluated 15064 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • ...
FALSEevaluated 2264 times by 4 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QDBusInterface
  • tst_QDebug
  • tst_QTextDocument
) {
2264-15064
76 d->write(reinterpret_cast<const QChar *>(p), runLength);-
77 p += runLength - 1;-
78 continue;
executed 15064 times by 34 tests: continue;
Executed by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • ...
15064
79 }-
80 }
executed 2264 times by 4 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QDBusInterface
  • tst_QDebug
  • tst_QTextDocument
else if (isPrintable(*p)
isPrintable(*p)Description
TRUEevaluated 164 times by 3 tests
Evaluated by:
  • tst_QDebug
  • tst_QObject
  • tst_QVariant
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QDebug
&& *
*p != '\\'Description
TRUEevaluated 162 times by 3 tests
Evaluated by:
  • tst_QDebug
  • tst_QObject
  • tst_QVariant
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDebug
p != '\\'
*p != '\\'Description
TRUEevaluated 162 times by 3 tests
Evaluated by:
  • tst_QDebug
  • tst_QObject
  • tst_QVariant
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDebug
&& *
*p != '"'Description
TRUEevaluated 158 times by 3 tests
Evaluated by:
  • tst_QDebug
  • tst_QObject
  • tst_QVariant
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDebug
p != '"'
*p != '"'Description
TRUEevaluated 158 times by 3 tests
Evaluated by:
  • tst_QDebug
  • tst_QObject
  • tst_QVariant
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDebug
) {
2-2264
81 QChar c = QLatin1Char(*p);-
82 d->write(&c, 1);-
83 continue;
executed 158 times by 3 tests: continue;
Executed by:
  • tst_QDebug
  • tst_QObject
  • tst_QVariant
158
84 }-
85-
86-
87 int buflen = 2;-
88 ushort buf[sizeof "\\U12345678" - 1];-
89 buf[0] = '\\';-
90-
91 switch (*p) {-
92 case
executed 288 times by 4 tests: case '"':
Executed by:
  • tst_NetworkSelfTest
  • tst_QDBusInterface
  • tst_QDebug
  • tst_QTextDocument
'"':
executed 288 times by 4 tests: case '"':
Executed by:
  • tst_NetworkSelfTest
  • tst_QDBusInterface
  • tst_QDebug
  • tst_QTextDocument
288
93 case
executed 1921 times by 2 tests: case '\\':
Executed by:
  • tst_NetworkSelfTest
  • tst_QDebug
'\\':
executed 1921 times by 2 tests: case '\\':
Executed by:
  • tst_NetworkSelfTest
  • tst_QDebug
1921
94 buf[1] = *p;-
95 break;
executed 2209 times by 4 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QDBusInterface
  • tst_QDebug
  • tst_QTextDocument
2209
96 case
never executed: case '\b':
'\b':
never executed: case '\b':
0
97 buf[1] = 'b';-
98 break;
never executed: break;
0
99 case
never executed: case '\f':
'\f':
never executed: case '\f':
0
100 buf[1] = 'f';-
101 break;
never executed: break;
0
102 case
executed 52 times by 2 tests: case '\n':
Executed by:
  • tst_QDBusInterface
  • tst_QDebug
'\n':
executed 52 times by 2 tests: case '\n':
Executed by:
  • tst_QDBusInterface
  • tst_QDebug
52
103 buf[1] = 'n';-
104 break;
executed 52 times by 2 tests: break;
Executed by:
  • tst_QDBusInterface
  • tst_QDebug
52
105 case
never executed: case '\r':
'\r':
never executed: case '\r':
0
106 buf[1] = 'r';-
107 break;
never executed: break;
0
108 case
executed 1 time by 1 test: case '\t':
Executed by:
  • tst_QDebug
'\t':
executed 1 time by 1 test: case '\t':
Executed by:
  • tst_QDebug
1
109 buf[1] = 't';-
110 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QDebug
1
111 default
executed 17 times by 1 test: default:
Executed by:
  • tst_QDebug
:
executed 17 times by 1 test: default:
Executed by:
  • tst_QDebug
17
112 if (!isUnicode
!isUnicodeDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QDebug
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QDebug
) {
5-12
113-
114 buf[1] = 'x';-
115 buf[2] = toHexUpper(uchar(*p) >> 4);-
116 buf[3] = toHexUpper(uchar(*p));-
117 buflen = 4;-
118 lastWasHexEscape = true;-
119 break;
executed 5 times by 1 test: break;
Executed by:
  • tst_QDebug
5
120 }-
121 if (QChar::isHighSurrogate(*p)
QChar::isHighSurrogate(*p)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QDebug
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QDebug
) {
5-7
122 if ((
(p + 1) != endDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDebug
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDebug
p + 1) != end
(p + 1) != endDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDebug
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDebug
&& QChar::isLowSurrogate(p[1])
QChar::isLowSurrogate(p[1])Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDebug
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDebug
) {
1-4
123-
124 uint ucs4 = QChar::surrogateToUcs4(*p, p[1]);-
125 if (isPrintable(ucs4)
isPrintable(ucs4)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDebug
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDebug
) {
1-2
126 buf[0] = *p;-
127 buf[1] = p[1];-
128 buflen = 2;-
129 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QDebug
else {
1
130 buf[1] = 'U';-
131 buf[2] = '0';-
132 buf[3] = '0';-
133 buf[4] = toHexUpper(ucs4 >> 20);-
134 buf[5] = toHexUpper(ucs4 >> 16);-
135 buf[6] = toHexUpper(ucs4 >> 12);-
136 buf[7] = toHexUpper(ucs4 >> 8);-
137 buf[8] = toHexUpper(ucs4 >> 4);-
138 buf[9] = toHexUpper(ucs4);-
139 buflen = 10;-
140 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QDebug
2
141 ++p;-
142 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QDebug
3
143 }-
144-
145 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QDebug
2
146 buf[1] = 'u';-
147 buf[2] = toHexUpper(ushort(*p) >> 12);-
148 buf[3] = toHexUpper(ushort(*p) >> 8);-
149 buf[4] = toHexUpper(*p >> 4);-
150 buf[5] = toHexUpper(*p);-
151 buflen = 6;-
152 }
executed 9 times by 1 test: end of block
Executed by:
  • tst_QDebug
9
153 d->write(reinterpret_cast<QChar *>(buf), buflen);-
154 }
executed 2279 times by 4 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QDBusInterface
  • tst_QDebug
  • tst_QTextDocument
2279
155-
156 d->write(&quote, 1);-
157}
executed 13165 times by 36 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QPrinterInfo
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • ...
13165
158-
159-
160-
161-
162-
163void QDebug::putString(const QChar *begin, size_t length)-
164{-
165 if (stream->testFlag(Stream::NoQuotes)
stream->testFl...eam::NoQuotes)Description
TRUEevaluated 1624 times by 10 tests
Evaluated by:
  • tst_QDebug
  • tst_QFile
  • tst_QMimeDatabase
  • tst_QNoDebug
  • tst_QOpenGlConfig
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
FALSEevaluated 13148 times by 35 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPrinterInfo
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • ...
) {
1624-13148
166-
167-
168 stream->ts.d_ptr->putString(begin, int(length));-
169 }
executed 1624 times by 10 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QFile
  • tst_QMimeDatabase
  • tst_QNoDebug
  • tst_QOpenGlConfig
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
else {
1624
170-
171 QDebugStateSaver saver(*this);-
172 stream->ts.d_ptr->params.reset();-
173 putEscapedString(stream->ts.d_ptr.data(), reinterpret_cast<const ushort *>(begin), int(length));-
174 }
executed 13148 times by 35 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPrinterInfo
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • ...
13148
175}-
176-
177-
178-
179-
180-
181void QDebug::putByteArray(const char *begin, size_t length, Latin1Content content)-
182{-
183 if (stream->testFlag(Stream::NoQuotes)
stream->testFl...eam::NoQuotes)Description
TRUEevaluated 34 times by 4 tests
Evaluated by:
  • tst_QDebug
  • tst_QMetaObject
  • tst_QOpenGlConfig
  • tst_QWidget
FALSEevaluated 17 times by 3 tests
Evaluated by:
  • tst_QDebug
  • tst_QObject
  • tst_QVariant
) {
17-34
184-
185-
186 QString string = content == ContainsLatin1
content == ContainsLatin1Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QDebug
FALSEevaluated 29 times by 4 tests
Evaluated by:
  • tst_QDebug
  • tst_QMetaObject
  • tst_QOpenGlConfig
  • tst_QWidget
? QString::fromLatin1(begin, int(length)) : QString::fromUtf8(begin, int(length));
5-29
187 stream->ts.d_ptr->putString(string);-
188 }
executed 34 times by 4 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QMetaObject
  • tst_QOpenGlConfig
  • tst_QWidget
else {
34
189-
190 QDebugStateSaver saver(*this);-
191 stream->ts.d_ptr->params.reset();-
192 putEscapedString(stream->ts.d_ptr.data(), reinterpret_cast<const uchar *>(begin),-
193 int(length), content == ContainsLatin1);-
194 }
executed 17 times by 3 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QObject
  • tst_QVariant
17
195}-
196QDebug &QDebug::resetFormat()-
197{-
198 stream->ts.reset();-
199 stream->space = true;-
200 if (stream->context.version > 1
stream->context.version > 1Description
TRUEevaluated 921 times by 12 tests
Evaluated by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QNetworkConfigurationManager
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QWidget
FALSEnever evaluated
)
0-921
201 stream->flags = 0;
executed 921 times by 12 tests: stream->flags = 0;
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QNetworkConfigurationManager
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QWidget
921
202 stream->setVerbosity(Stream::DefaultVerbosity);-
203 return
executed 921 times by 12 tests: return *this;
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QNetworkConfigurationManager
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QWidget
*this;
executed 921 times by 12 tests: return *this;
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QNetworkConfigurationManager
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QWidget
921
204}-
205class QDebugStateSaverPrivate-
206{-
207public:-
208 QDebugStateSaverPrivate(QDebug &dbg)-
209 : m_dbg(dbg),-
210 m_spaces(dbg.autoInsertSpaces()),-
211 m_flags(0),-
212 m_streamParams(dbg.stream->ts.d_ptr->params)-
213 {-
214 if (m_dbg.stream->context.version > 1
m_dbg.stream->...xt.version > 1Description
TRUEevaluated 14874 times by 50 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
FALSEnever evaluated
)
0-14874
215 m_flags = m_dbg.stream->flags;
executed 14874 times by 50 tests: m_flags = m_dbg.stream->flags;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
14874
216 }
executed 14874 times by 50 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
14874
217 void restoreState()-
218 {-
219 const bool currentSpaces = m_dbg.autoInsertSpaces();-
220 if (currentSpaces
currentSpacesDescription
TRUEevaluated 12813 times by 27 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDebug
  • tst_QGraphicsScene
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QWidget
  • ...
FALSEevaluated 2061 times by 34 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QLocalSocket
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QNoDebug
  • tst_QObject
  • tst_QSslSocket
  • ...
&& !m_spaces
!m_spacesDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDebug
FALSEevaluated 12812 times by 27 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDebug
  • tst_QGraphicsScene
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QWidget
  • ...
)
1-12813
221 if (m_dbg.stream->buffer.endsWith(QLatin1Char(' '))
m_dbg.stream->...tin1Char(' '))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDebug
FALSEnever evaluated
)
0-1
222 m_dbg.stream->buffer.chop(1);
executed 1 time by 1 test: m_dbg.stream->buffer.chop(1);
Executed by:
  • tst_QDebug
1
223-
224 m_dbg.setAutoInsertSpaces(m_spaces);-
225 m_dbg.stream->ts.d_ptr->params = m_streamParams;-
226 if (m_dbg.stream->context.version > 1
m_dbg.stream->...xt.version > 1Description
TRUEevaluated 14874 times by 50 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
FALSEnever evaluated
)
0-14874
227 m_dbg.stream->flags = m_flags;
executed 14874 times by 50 tests: m_dbg.stream->flags = m_flags;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
14874
228-
229 if (!currentSpaces
!currentSpacesDescription
TRUEevaluated 2061 times by 34 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QLocalSocket
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QNoDebug
  • tst_QObject
  • tst_QSslSocket
  • ...
FALSEevaluated 12813 times by 27 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QDebug
  • tst_QGraphicsScene
  • tst_QHostInfo
  • tst_QLogging
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPrinterInfo
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlThread
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QWidget
  • ...
&& m_spaces
m_spacesDescription
TRUEevaluated 517 times by 24 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QBrush
  • tst_QDate
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QLocalSocket
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkConfigurationManager
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTextLayout
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
  • tst_QWidgetsVariant
  • tst_QWindow
FALSEevaluated 1544 times by 25 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QNoDebug
  • tst_QObject
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
  • tst_QWidgetsVariant
  • tst_qstandardpaths
)
517-12813
230 m_dbg.stream->ts << ' ';
executed 517 times by 24 tests: m_dbg.stream->ts << ' ';
Executed by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QBrush
  • tst_QDate
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QLocalSocket
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkConfigurationManager
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTextLayout
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
  • tst_QWidgetsVariant
  • tst_QWindow
517
231 }
executed 14874 times by 50 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
14874
232-
233 QDebug &m_dbg;-
234-
235-
236 const bool m_spaces;-
237 int m_flags;-
238-
239-
240 const QTextStreamPrivate::Params m_streamParams;-
241};-
242QDebugStateSaver::QDebugStateSaver(QDebug &dbg)-
243 : d(new QDebugStateSaverPrivate(dbg))-
244{-
245}
executed 14874 times by 50 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
14874
246-
247-
248-
249-
250-
251-
252-
253QDebugStateSaver::~QDebugStateSaver()-
254{-
255 d->restoreState();-
256}
executed 14874 times by 50 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDebug
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
14874
257void qt_QMetaEnum_flagDebugOperator(QDebug &debug, size_t sizeofT, int value)-
258{-
259 qt_QMetaEnum_flagDebugOperator<int>(debug, sizeofT, value);-
260}
executed 13 times by 2 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QNetworkConfigurationManager
13
261-
262-
263-
264-
265-
266QDebug qt_QMetaEnum_debugOperator(QDebug &dbg, int value, const QMetaObject *meta, const char *name)-
267{-
268 QDebugStateSaver saver(dbg);-
269 QMetaEnum me = meta->enumerator(meta->indexOfEnumerator(name));-
270 const char *key = me.valueToKey(value);-
271 dbg.nospace() << meta->className() << "::" << name << '(';-
272 if (key
keyDescription
TRUEevaluated 183 times by 9 tests
Evaluated by:
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QMetaObject
  • tst_QNoDebug
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
  • tst_QWidgetsVariant
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_QWidget
)
20-183
273 dbg << key;
executed 183 times by 9 tests: dbg << key;
Executed by:
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QMetaObject
  • tst_QNoDebug
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
  • tst_QWidgetsVariant
183
274 else-
275 dbg << value;
executed 20 times by 1 test: dbg << value;
Executed by:
  • tst_QWidget
20
276 dbg << ')';-
277 return
executed 203 times by 9 tests: return dbg;
Executed by:
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QMetaObject
  • tst_QNoDebug
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
  • tst_QWidgetsVariant
dbg;
executed 203 times by 9 tests: return dbg;
Executed by:
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QMetaObject
  • tst_QNoDebug
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
  • tst_QWidgetsVariant
203
278}-
279-
280QDebug qt_QMetaEnum_flagDebugOperator(QDebug &debug, quint64 value, const QMetaObject *meta, const char *name)-
281{-
282 QDebugStateSaver saver(debug);-
283 debug.resetFormat();-
284 debug.noquote();-
285 debug.nospace();-
286 debug << "QFlags<";-
287 const QMetaEnum me = meta->enumerator(meta->indexOfEnumerator(name));-
288 if (const
const char *scope = me.scope()Description
TRUEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QWidget
FALSEnever evaluated
char *scope = me.scope()
const char *scope = me.scope()Description
TRUEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QWidget
FALSEnever evaluated
)
0-23
289 debug << scope << "::";
executed 23 times by 2 tests: debug << scope << "::";
Executed by:
  • tst_QMetaObject
  • tst_QWidget
23
290 debug << me.name() << ">(" << me.valueToKeys(value) << ')';-
291 return
executed 23 times by 2 tests: return debug;
Executed by:
  • tst_QMetaObject
  • tst_QWidget
debug;
executed 23 times by 2 tests: return debug;
Executed by:
  • tst_QMetaObject
  • tst_QWidget
23
292}-
293-
294-
295-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9