qlogging.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/global/qlogging.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7static long qt_gettid()-
8{-
9-
10-
11 return
executed 8 times by 1 test: return syscall(186);
Executed by:
  • tst_qlogging - unknown status
syscall(186);
executed 8 times by 1 test: return syscall(186);
Executed by:
  • tst_qlogging - unknown status
8
12}-
13-
14-
15-
16-
17-
18-
19-
20-
21__attribute__((__noreturn__))-
22-
23static void qt_message_fatal(QtMsgType, const QMessageLogContext &context, const QString &message);-
24static void qt_message_print(QtMsgType, const QMessageLogContext &context, const QString &message);-
25-
26static bool isFatal(QtMsgType msgType)-
27{-
28 if (msgType == QtFatalMsg
msgType == QtFatalMsgDescription
TRUEnever evaluated
FALSEevaluated 227099 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
)
0-227099
29 return
never executed: return true;
true;
never executed: return true;
0
30-
31 if (msgType == QtCriticalMsg
msgType == QtCriticalMsgDescription
TRUEevaluated 39 times by 4 tests
Evaluated by:
  • tst_QDebug
  • tst_QLogging
  • tst_qlogging - unknown status
  • tst_selftests - unknown status
FALSEevaluated 227060 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
) {
39-227060
32 static bool fatalCriticals = !qEnvironmentVariableIsEmpty("QT_FATAL_CRITICALS");-
33 return
executed 39 times by 4 tests: return fatalCriticals;
Executed by:
  • tst_QDebug
  • tst_QLogging
  • tst_qlogging - unknown status
  • tst_selftests - unknown status
fatalCriticals;
executed 39 times by 4 tests: return fatalCriticals;
Executed by:
  • tst_QDebug
  • tst_QLogging
  • tst_qlogging - unknown status
  • tst_selftests - unknown status
39
34 }-
35-
36 if (msgType == QtWarningMsg
msgType == QtWarningMsgDescription
TRUEevaluated 211553 times by 129 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDir
  • ...
FALSEevaluated 15507 times by 72 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBrush
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLocalSocket
  • ...
|| msgType == QtCriticalMsg
msgType == QtCriticalMsgDescription
TRUEnever evaluated
FALSEevaluated 15507 times by 72 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBrush
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLocalSocket
  • ...
) {
0-211553
37 static bool fatalWarnings = !qEnvironmentVariableIsEmpty("QT_FATAL_WARNINGS");-
38 return
executed 211553 times by 129 tests: return fatalWarnings;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDir
  • ...
fatalWarnings;
executed 211553 times by 129 tests: return fatalWarnings;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDir
  • ...
211553
39 }-
40-
41 return
executed 15507 times by 72 tests: return false;
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBrush
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLocalSocket
  • ...
false;
executed 15507 times by 72 tests: return false;
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBrush
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLocalSocket
  • ...
15507
42}-
43-
44static bool willLogToConsole()-
45{-
46 bool ok = true;-
47 uint envcontrol = qgetenv("QT_LOGGING_TO_CONSOLE").toUInt(&ok);-
48 if (ok
okDescription
TRUEevaluated 23 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
FALSEnever evaluated
)
0-23
49 return
executed 23 times by 4 tests: return envcontrol;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
envcontrol;
executed 23 times by 4 tests: return envcontrol;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
23
50-
51-
52-
53-
54-
55 int devtty = qt_safe_open("/dev/tty", 00);-
56 if (devtty == -1
devtty == -1Description
TRUEnever evaluated
FALSEnever evaluated
&& ((*
(*__errno_location ()) == 2Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ()) == 2
(*__errno_location ()) == 2Description
TRUEnever evaluated
FALSEnever evaluated
|| (*
(*__errno_location ()) == 1Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ()) == 1
(*__errno_location ()) == 1Description
TRUEnever evaluated
FALSEnever evaluated
)) {
0
57-
58 return
never executed: return isatty(2);
isatty(2);
never executed: return isatty(2);
0
59 } else if (devtty != -1
devtty != -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
60-
61 qt_safe_close(devtty);-
62 return
never executed: return true;
true;
never executed: return true;
0
63 }-
64-
65-
66 return
never executed: return false;
false;
never executed: return false;
0
67-
68-
69-
70-
71}-
72-
73__attribute__((visibility("default"))) bool qt_logging_to_console()-
74{-
75 static const bool logToConsole = willLogToConsole();-
76 return
executed 119 times by 4 tests: return logToConsole;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
logToConsole;
executed 119 times by 4 tests: return logToConsole;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
119
77}-
78__attribute__((noinline))-
79static QString qt_message(QtMsgType msgType, const QMessageLogContext &context, const char *msg, va_list ap)-
80{-
81 QString buf = QString::vasprintf(msg, ap);-
82 qt_message_print(msgType, context, buf);-
83 return
executed 212037 times by 138 tests: return buf;
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
buf;
executed 212037 times by 138 tests: return buf;
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
212037
84}-
85void QMessageLogger::debug(const char *msg, ...) const-
86{-
87 va_list ap;-
88 __builtin_va_start(ap,msg);-
89 const QString message = qt_message(QtDebugMsg, context, msg, ap);-
90 __builtin_va_end(ap);-
91-
92 if (isFatal(QtDebugMsg)
isFatal(QtDebugMsg)Description
TRUEnever evaluated
FALSEevaluated 558 times by 28 tests
Evaluated by:
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QLogging
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QReadWriteLock
  • tst_QSharedPointer
  • tst_QSocks5SocketEngine
  • tst_QSql
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QtConcurrentRun
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • ...
)
0-558
93 qt_message_fatal(QtDebugMsg, context, message);
never executed: qt_message_fatal(QtDebugMsg, context, message);
0
94}
executed 558 times by 28 tests: end of block
Executed by:
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QLogging
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QReadWriteLock
  • tst_QSharedPointer
  • tst_QSocks5SocketEngine
  • tst_QSql
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QSslSocket
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QtConcurrentRun
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • ...
558
95void QMessageLogger::info(const char *msg, ...) const-
96{-
97 va_list ap;-
98 __builtin_va_start(ap,msg);-
99 const QString message = qt_message(QtInfoMsg, context, msg, ap);-
100 __builtin_va_end(ap);-
101-
102 if (isFatal(QtInfoMsg)
isFatal(QtInfoMsg)Description
TRUEnever evaluated
FALSEevaluated 83 times by 3 tests
Evaluated by:
  • tst_QLogging
  • tst_qlogging - unknown status
  • tst_selftests - unknown status
)
0-83
103 qt_message_fatal(QtInfoMsg, context, message);
never executed: qt_message_fatal(QtInfoMsg, context, message);
0
104}
executed 83 times by 3 tests: end of block
Executed by:
  • tst_QLogging
  • tst_qlogging - unknown status
  • tst_selftests - unknown status
83
105void QMessageLogger::debug(const QLoggingCategory &cat, const char *msg, ...) const-
106{-
107 if (!cat.isDebugEnabled()
!cat.isDebugEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
108 return;
never executed: return;
0
109-
110 QMessageLogContext ctxt;-
111 ctxt.copy(context);-
112 ctxt.category = cat.categoryName();-
113-
114 va_list ap;-
115 __builtin_va_start(ap,msg);-
116 const QString message = qt_message(QtDebugMsg, ctxt, msg, ap);-
117 __builtin_va_end(ap);-
118-
119 if (isFatal(QtDebugMsg)
isFatal(QtDebugMsg)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
120 qt_message_fatal(QtDebugMsg, ctxt, message);
never executed: qt_message_fatal(QtDebugMsg, ctxt, message);
0
121}
never executed: end of block
0
122void QMessageLogger::debug(QMessageLogger::CategoryFunction catFunc,-
123 const char *msg, ...) const-
124{-
125 const QLoggingCategory &cat = (*catFunc)();-
126 if (!cat.isDebugEnabled()
!cat.isDebugEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
127 return;
never executed: return;
0
128-
129 QMessageLogContext ctxt;-
130 ctxt.copy(context);-
131 ctxt.category = cat.categoryName();-
132-
133 va_list ap;-
134 __builtin_va_start(ap,msg);-
135 const QString message = qt_message(QtDebugMsg, ctxt, msg, ap);-
136 __builtin_va_end(ap);-
137-
138 if (isFatal(QtDebugMsg)
isFatal(QtDebugMsg)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
139 qt_message_fatal(QtDebugMsg, ctxt, message);
never executed: qt_message_fatal(QtDebugMsg, ctxt, message);
0
140}
never executed: end of block
0
141QDebug QMessageLogger::debug() const-
142{-
143 QDebug dbg = QDebug(QtDebugMsg);-
144 QMessageLogContext &ctxt = dbg.stream->context;-
145 ctxt.copy(context);-
146 return
executed 14851 times by 54 tests: return dbg;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QBrush
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • ...
dbg;
executed 14851 times by 54 tests: return dbg;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QBrush
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • ...
14851
147}-
148-
149-
150-
151-
152-
153-
154-
155QDebug QMessageLogger::debug(const QLoggingCategory &cat) const-
156{-
157 QDebug dbg = QDebug(QtDebugMsg);-
158 if (!cat.isDebugEnabled()
!cat.isDebugEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
159 dbg.stream->message_output = false;
never executed: dbg.stream->message_output = false;
0
160-
161 QMessageLogContext &ctxt = dbg.stream->context;-
162 ctxt.copy(context);-
163 ctxt.category = cat.categoryName();-
164-
165 return
never executed: return dbg;
dbg;
never executed: return dbg;
0
166}-
167-
168-
169-
170-
171-
172-
173-
174QDebug QMessageLogger::debug(QMessageLogger::CategoryFunction catFunc) const-
175{-
176 return
never executed: return debug((*catFunc)());
debug((*catFunc)());
never executed: return debug((*catFunc)());
0
177}-
178QNoDebug QMessageLogger::noDebug() const noexcept-
179{-
180 return
never executed: return QNoDebug();
QNoDebug();
never executed: return QNoDebug();
0
181}-
182void QMessageLogger::info(const QLoggingCategory &cat, const char *msg, ...) const-
183{-
184 if (!cat.isInfoEnabled()
!cat.isInfoEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
185 return;
never executed: return;
0
186-
187 QMessageLogContext ctxt;-
188 ctxt.copy(context);-
189 ctxt.category = cat.categoryName();-
190-
191 va_list ap;-
192 __builtin_va_start(ap,msg);-
193 const QString message = qt_message(QtInfoMsg, ctxt, msg, ap);-
194 __builtin_va_end(ap);-
195-
196 if (isFatal(QtInfoMsg)
isFatal(QtInfoMsg)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
197 qt_message_fatal(QtInfoMsg, ctxt, message);
never executed: qt_message_fatal(QtInfoMsg, ctxt, message);
0
198}
never executed: end of block
0
199void QMessageLogger::info(QMessageLogger::CategoryFunction catFunc,-
200 const char *msg, ...) const-
201{-
202 const QLoggingCategory &cat = (*catFunc)();-
203 if (!cat.isInfoEnabled()
!cat.isInfoEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
204 return;
never executed: return;
0
205-
206 QMessageLogContext ctxt;-
207 ctxt.copy(context);-
208 ctxt.category = cat.categoryName();-
209-
210 va_list ap;-
211 __builtin_va_start(ap,msg);-
212 const QString message = qt_message(QtInfoMsg, ctxt, msg, ap);-
213 __builtin_va_end(ap);-
214-
215 if (isFatal(QtInfoMsg)
isFatal(QtInfoMsg)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
216 qt_message_fatal(QtInfoMsg, ctxt, message);
never executed: qt_message_fatal(QtInfoMsg, ctxt, message);
0
217}
never executed: end of block
0
218QDebug QMessageLogger::info() const-
219{-
220 QDebug dbg = QDebug(QtInfoMsg);-
221 QMessageLogContext &ctxt = dbg.stream->context;-
222 ctxt.copy(context);-
223 return
executed 14 times by 1 test: return dbg;
Executed by:
  • tst_QLogging
dbg;
executed 14 times by 1 test: return dbg;
Executed by:
  • tst_QLogging
14
224}-
225-
226-
227-
228-
229-
230-
231-
232QDebug QMessageLogger::info(const QLoggingCategory &cat) const-
233{-
234 QDebug dbg = QDebug(QtInfoMsg);-
235 if (!cat.isInfoEnabled()
!cat.isInfoEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
236 dbg.stream->message_output = false;
never executed: dbg.stream->message_output = false;
0
237-
238 QMessageLogContext &ctxt = dbg.stream->context;-
239 ctxt.copy(context);-
240 ctxt.category = cat.categoryName();-
241-
242 return
never executed: return dbg;
dbg;
never executed: return dbg;
0
243}-
244-
245-
246-
247-
248-
249-
250-
251QDebug QMessageLogger::info(QMessageLogger::CategoryFunction catFunc) const-
252{-
253 return
never executed: return info((*catFunc)());
info((*catFunc)());
never executed: return info((*catFunc)());
0
254}-
255void QMessageLogger::warning(const char *msg, ...) const-
256{-
257 va_list ap;-
258 __builtin_va_start(ap,msg);-
259 const QString message = qt_message(QtWarningMsg, context, msg, ap);-
260 __builtin_va_end(ap);-
261-
262 if (isFatal(QtWarningMsg)
isFatal(QtWarningMsg)Description
TRUEnever evaluated
FALSEevaluated 211328 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDir
  • ...
)
0-211328
263 qt_message_fatal(QtWarningMsg, context, message);
never executed: qt_message_fatal(QtWarningMsg, context, message);
0
264}
executed 211328 times by 125 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDir
  • ...
211328
265void QMessageLogger::warning(const QLoggingCategory &cat, const char *msg, ...) const-
266{-
267 if (!cat.isWarningEnabled()
!cat.isWarningEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
268 return;
never executed: return;
0
269-
270 QMessageLogContext ctxt;-
271 ctxt.copy(context);-
272 ctxt.category = cat.categoryName();-
273-
274 va_list ap;-
275 __builtin_va_start(ap,msg);-
276 const QString message = qt_message(QtWarningMsg, ctxt, msg, ap);-
277 __builtin_va_end(ap);-
278-
279 if (isFatal(QtWarningMsg)
isFatal(QtWarningMsg)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
280 qt_message_fatal(QtWarningMsg, ctxt, message);
never executed: qt_message_fatal(QtWarningMsg, ctxt, message);
0
281}
never executed: end of block
0
282void QMessageLogger::warning(QMessageLogger::CategoryFunction catFunc,-
283 const char *msg, ...) const-
284{-
285 const QLoggingCategory &cat = (*catFunc)();-
286 if (!cat.isWarningEnabled()
!cat.isWarningEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
287 return;
never executed: return;
0
288-
289 QMessageLogContext ctxt;-
290 ctxt.copy(context);-
291 ctxt.category = cat.categoryName();-
292-
293 va_list ap;-
294 __builtin_va_start(ap,msg);-
295 const QString message = qt_message(QtWarningMsg, ctxt, msg, ap);-
296 __builtin_va_end(ap);-
297-
298 if (isFatal(QtWarningMsg)
isFatal(QtWarningMsg)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
299 qt_message_fatal(QtWarningMsg, ctxt, message);
never executed: qt_message_fatal(QtWarningMsg, ctxt, message);
0
300}
never executed: end of block
0
301-
302-
303-
304-
305-
306-
307-
308QDebug QMessageLogger::warning() const-
309{-
310 QDebug dbg = QDebug(QtWarningMsg);-
311 QMessageLogContext &ctxt = dbg.stream->context;-
312 ctxt.copy(context);-
313 return
executed 224 times by 20 tests: return dbg;
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QDebug
  • tst_QFile
  • tst_QGuiApplication
  • tst_QIODevice
  • tst_QLogging
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QNoDebug
  • tst_QObject
  • tst_QProcess
  • tst_QSqlQueryModel
  • tst_QSslSocket
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_qlogging - unknown status
dbg;
executed 224 times by 20 tests: return dbg;
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QDebug
  • tst_QFile
  • tst_QGuiApplication
  • tst_QIODevice
  • tst_QLogging
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QNoDebug
  • tst_QObject
  • tst_QProcess
  • tst_QSqlQueryModel
  • tst_QSslSocket
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_qlogging - unknown status
224
314}-
315-
316-
317-
318-
319-
320-
321QDebug QMessageLogger::warning(const QLoggingCategory &cat) const-
322{-
323 QDebug dbg = QDebug(QtWarningMsg);-
324 if (!cat.isWarningEnabled()
!cat.isWarningEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
325 dbg.stream->message_output = false;
never executed: dbg.stream->message_output = false;
0
326-
327 QMessageLogContext &ctxt = dbg.stream->context;-
328 ctxt.copy(context);-
329 ctxt.category = cat.categoryName();-
330-
331 return
never executed: return dbg;
dbg;
never executed: return dbg;
0
332}-
333-
334-
335-
336-
337-
338-
339-
340QDebug QMessageLogger::warning(QMessageLogger::CategoryFunction catFunc) const-
341{-
342 return
never executed: return warning((*catFunc)());
warning((*catFunc)());
never executed: return warning((*catFunc)());
0
343}-
344void QMessageLogger::critical(const char *msg, ...) const-
345{-
346 va_list ap;-
347 __builtin_va_start(ap,msg);-
348 const QString message = qt_message(QtCriticalMsg, context, msg, ap);-
349 __builtin_va_end(ap);-
350-
351 if (isFatal(QtCriticalMsg)
isFatal(QtCriticalMsg)Description
TRUEnever evaluated
FALSEevaluated 21 times by 3 tests
Evaluated by:
  • tst_QLogging
  • tst_qlogging - unknown status
  • tst_selftests - unknown status
)
0-21
352 qt_message_fatal(QtCriticalMsg, context, message);
never executed: qt_message_fatal(QtCriticalMsg, context, message);
0
353}
executed 21 times by 3 tests: end of block
Executed by:
  • tst_QLogging
  • tst_qlogging - unknown status
  • tst_selftests - unknown status
21
354void QMessageLogger::critical(const QLoggingCategory &cat, const char *msg, ...) const-
355{-
356 if (!cat.isCriticalEnabled()
!cat.isCriticalEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
357 return;
never executed: return;
0
358-
359 QMessageLogContext ctxt;-
360 ctxt.copy(context);-
361 ctxt.category = cat.categoryName();-
362-
363 va_list ap;-
364 __builtin_va_start(ap,msg);-
365 const QString message = qt_message(QtCriticalMsg, ctxt, msg, ap);-
366 __builtin_va_end(ap);-
367-
368 if (isFatal(QtCriticalMsg)
isFatal(QtCriticalMsg)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
369 qt_message_fatal(QtCriticalMsg, ctxt, message);
never executed: qt_message_fatal(QtCriticalMsg, ctxt, message);
0
370}
never executed: end of block
0
371void QMessageLogger::critical(QMessageLogger::CategoryFunction catFunc,-
372 const char *msg, ...) const-
373{-
374 const QLoggingCategory &cat = (*catFunc)();-
375 if (!cat.isCriticalEnabled()
!cat.isCriticalEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
376 return;
never executed: return;
0
377-
378 QMessageLogContext ctxt;-
379 ctxt.copy(context);-
380 ctxt.category = cat.categoryName();-
381-
382 va_list ap;-
383 __builtin_va_start(ap,msg);-
384 const QString message = qt_message(QtCriticalMsg, ctxt, msg, ap);-
385 __builtin_va_end(ap);-
386-
387 if (isFatal(QtCriticalMsg)
isFatal(QtCriticalMsg)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
388 qt_message_fatal(QtCriticalMsg, ctxt, message);
never executed: qt_message_fatal(QtCriticalMsg, ctxt, message);
0
389}
never executed: end of block
0
390-
391-
392-
393-
394-
395-
396-
397QDebug QMessageLogger::critical() const-
398{-
399 QDebug dbg = QDebug(QtCriticalMsg);-
400 QMessageLogContext &ctxt = dbg.stream->context;-
401 ctxt.copy(context);-
402 return
executed 18 times by 2 tests: return dbg;
Executed by:
  • tst_QDebug
  • tst_QLogging
dbg;
executed 18 times by 2 tests: return dbg;
Executed by:
  • tst_QDebug
  • tst_QLogging
18
403}-
404-
405-
406-
407-
408-
409-
410-
411QDebug QMessageLogger::critical(const QLoggingCategory &cat) const-
412{-
413 QDebug dbg = QDebug(QtCriticalMsg);-
414 if (!cat.isCriticalEnabled()
!cat.isCriticalEnabled()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
415 dbg.stream->message_output = false;
never executed: dbg.stream->message_output = false;
0
416-
417 QMessageLogContext &ctxt = dbg.stream->context;-
418 ctxt.copy(context);-
419 ctxt.category = cat.categoryName();-
420-
421 return
never executed: return dbg;
dbg;
never executed: return dbg;
0
422}-
423-
424-
425-
426-
427-
428-
429-
430QDebug QMessageLogger::critical(QMessageLogger::CategoryFunction catFunc) const-
431{-
432 return
never executed: return critical((*catFunc)());
critical((*catFunc)());
never executed: return critical((*catFunc)());
0
433}-
434void QMessageLogger::fatal(const char *msg, ...) const noexcept-
435{-
436 QString message;-
437-
438 va_list ap;-
439 __builtin_va_start(ap,msg);-
440 do { message = qt_message(QtFatalMsg, context, msg, ap); } while (0);-
441 __builtin_va_end(ap);-
442-
443 qt_message_fatal(QtFatalMsg, context, message);-
444}
never executed: end of block
0
445-
446-
447-
448-
449__attribute__((visibility("default"))) QByteArray qCleanupFuncinfo(QByteArray info)-
450{-
451-
452-
453-
454-
455 if (info.isEmpty()
info.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 161 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
0-161
456 return
never executed: return info;
info;
never executed: return info;
0
457-
458 int pos;-
459-
460-
461-
462 pos = info.size() - 1;-
463 if (info.endsWith(']')
info.endsWith(']')Description
TRUEevaluated 23 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 138 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
&& !(info.startsWith('+')
info.startsWith('+')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_qmessagehandler
|| info.startsWith('-')
info.startsWith('-')Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_qmessagehandler
)) {
1-138
464 while (--
--posDescription
TRUEevaluated 3336 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_qmessagehandler
pos
--posDescription
TRUEevaluated 3336 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_qmessagehandler
) {
20-3336
465 if (info.at(pos) == '['
info.at(pos) == '['Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 3316 times by 1 test
Evaluated by:
  • tst_qmessagehandler
)
20-3316
466 info.truncate(pos);
executed 20 times by 1 test: info.truncate(pos);
Executed by:
  • tst_qmessagehandler
20
467 }
executed 3336 times by 1 test: end of block
Executed by:
  • tst_qmessagehandler
3336
468 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_qmessagehandler
20
469-
470-
471 static const char operator_call[] = "operator()";-
472 static const char operator_lessThan[] = "operator<";-
473 static const char operator_greaterThan[] = "operator>";-
474 static const char operator_lessThanEqual[] = "operator<=";-
475 static const char operator_greaterThanEqual[] = "operator>=";-
476-
477-
478 info.replace("operator ", "operator");-
479-
480-
481 for(;;) {-
482 int parencount = 0;-
483 pos = info.lastIndexOf(')');-
484 if (pos == -1
pos == -1Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 168 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
5-168
485-
486 return
executed 5 times by 1 test: return info;
Executed by:
  • tst_qmessagehandler
info;
executed 5 times by 1 test: return info;
Executed by:
  • tst_qmessagehandler
5
487 }-
488-
489-
490 --pos;-
491 ++parencount;-
492 while (pos
posDescription
TRUEevaluated 1276 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEnever evaluated
&& parencount
parencountDescription
TRUEevaluated 1108 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 168 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
0-1276
493 if (info.at(pos) == ')'
info.at(pos) == ')'Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 1096 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
12-1096
494 ++
executed 12 times by 1 test: ++parencount;
Executed by:
  • tst_qmessagehandler
parencount;
executed 12 times by 1 test: ++parencount;
Executed by:
  • tst_qmessagehandler
12
495 else if (info.at(pos) == '('
info.at(pos) == '('Description
TRUEevaluated 180 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 916 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
180-916
496 --
executed 180 times by 2 tests: --parencount;
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
parencount;
executed 180 times by 2 tests: --parencount;
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
180
497 --pos;-
498 }
executed 1108 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
1108
499 if (parencount != 0
parencount != 0Description
TRUEnever evaluated
FALSEevaluated 168 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
0-168
500 return
never executed: return info;
info;
never executed: return info;
0
501-
502 info.truncate(++pos);-
503-
504 if (info.at(pos - 1) == ')'
info.at(pos - 1) == ')'Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 154 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
14-154
505 if (info.indexOf(operator_call) == pos - (int)strlen(operator_call)
info.indexOf(o...operator_call)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qmessagehandler
)
2-12
506 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qmessagehandler
2
507-
508-
509-
510-
511 info.remove(0, info.indexOf('('));-
512 info.chop(1);-
513 continue;
executed 12 times by 1 test: continue;
Executed by:
  • tst_qmessagehandler
12
514 } else {-
515 break;
executed 154 times by 2 tests: break;
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
154
516 }-
517 }-
518-
519-
520 int parencount = 0;-
521 int templatecount = 0;-
522 --pos;-
523-
524-
525 if (pos > -1
pos > -1Description
TRUEevaluated 156 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEnever evaluated
) {
0-156
526 switch (info.at(pos)) {-
527 case
executed 2 times by 1 test: case ')':
Executed by:
  • tst_qmessagehandler
')':
executed 2 times by 1 test: case ')':
Executed by:
  • tst_qmessagehandler
2
528 if (info.indexOf(operator_call) == pos - (int)strlen(operator_call) + 1
info.indexOf(o...ator_call) + 1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEnever evaluated
)
0-2
529 pos -= 2;
executed 2 times by 1 test: pos -= 2;
Executed by:
  • tst_qmessagehandler
2
530 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qmessagehandler
2
531 case
executed 2 times by 1 test: case '<':
Executed by:
  • tst_qmessagehandler
'<':
executed 2 times by 1 test: case '<':
Executed by:
  • tst_qmessagehandler
2
532 if (info.indexOf(operator_lessThan) == pos - (int)strlen(operator_lessThan) + 1
info.indexOf(o..._lessThan) + 1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEnever evaluated
)
0-2
533 --
executed 2 times by 1 test: --pos;
Executed by:
  • tst_qmessagehandler
pos;
executed 2 times by 1 test: --pos;
Executed by:
  • tst_qmessagehandler
2
534 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qmessagehandler
2
535 case
executed 8 times by 1 test: case '>':
Executed by:
  • tst_qmessagehandler
'>':
executed 8 times by 1 test: case '>':
Executed by:
  • tst_qmessagehandler
8
536 if (info.indexOf(operator_greaterThan) == pos - (int)strlen(operator_greaterThan) + 1
info.indexOf(o...eaterThan) + 1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qmessagehandler
)
2-6
537 --
executed 2 times by 1 test: --pos;
Executed by:
  • tst_qmessagehandler
pos;
executed 2 times by 1 test: --pos;
Executed by:
  • tst_qmessagehandler
2
538 break;
executed 8 times by 1 test: break;
Executed by:
  • tst_qmessagehandler
8
539 case
executed 3 times by 1 test: case '=':
Executed by:
  • tst_qmessagehandler
'=':
executed 3 times by 1 test: case '=':
Executed by:
  • tst_qmessagehandler
{
3
540 int operatorLength = (int)strlen(operator_lessThanEqual);-
541 if (info.indexOf(operator_lessThanEqual) == pos - operatorLength + 1
info.indexOf(o...atorLength + 1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmessagehandler
)
1-2
542 pos -= 2;
executed 1 time by 1 test: pos -= 2;
Executed by:
  • tst_qmessagehandler
1
543 else if (info.indexOf(operator_greaterThanEqual) == pos - operatorLength + 1
info.indexOf(o...atorLength + 1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
)
1
544 pos -= 2;
executed 1 time by 1 test: pos -= 2;
Executed by:
  • tst_qmessagehandler
1
545 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_qmessagehandler
3
546 }-
547 default
executed 141 times by 2 tests: default:
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
:
executed 141 times by 2 tests: default:
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
141
548 break;
executed 141 times by 2 tests: break;
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
141
549 }-
550 }-
551-
552 while (pos > -1
pos > -1Description
TRUEevaluated 5144 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
13-5144
553 if (parencount < 0
parencount < 0Description
TRUEnever evaluated
FALSEevaluated 5144 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
|| templatecount < 0
templatecount < 0Description
TRUEnever evaluated
FALSEevaluated 5144 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
0-5144
554 return
never executed: return info;
info;
never executed: return info;
0
555-
556 char c = info.at(pos);-
557 if (c == ')'
c == ')'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 5143 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
1-5143
558 ++
executed 1 time by 1 test: ++parencount;
Executed by:
  • tst_qmessagehandler
parencount;
executed 1 time by 1 test: ++parencount;
Executed by:
  • tst_qmessagehandler
1
559 else if (c == '('
c == '('Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 5142 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
1-5142
560 --
executed 1 time by 1 test: --parencount;
Executed by:
  • tst_qmessagehandler
parencount;
executed 1 time by 1 test: --parencount;
Executed by:
  • tst_qmessagehandler
1
561 else if (c == '>'
c == '>'Description
TRUEevaluated 82 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 5060 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
82-5060
562 ++
executed 82 times by 1 test: ++templatecount;
Executed by:
  • tst_qmessagehandler
templatecount;
executed 82 times by 1 test: ++templatecount;
Executed by:
  • tst_qmessagehandler
82
563 else if (c == '<'
c == '<'Description
TRUEevaluated 82 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 4978 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
82-4978
564 --
executed 82 times by 1 test: --templatecount;
Executed by:
  • tst_qmessagehandler
templatecount;
executed 82 times by 1 test: --templatecount;
Executed by:
  • tst_qmessagehandler
82
565 else if (c == ' '
c == ' 'Description
TRUEevaluated 293 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 4685 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
&& templatecount == 0
templatecount == 0Description
TRUEevaluated 143 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 150 times by 1 test
Evaluated by:
  • tst_qmessagehandler
&& parencount == 0
parencount == 0Description
TRUEevaluated 143 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEnever evaluated
)
0-4685
566 break;
executed 143 times by 2 tests: break;
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
143
567-
568 --pos;-
569 }
executed 5001 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
5001
570 info = info.mid(pos + 1);-
571-
572-
573 while ((
(info.at(0) == '*')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 157 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
info.at(0) == '*')
(info.at(0) == '*')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 157 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
1-157
574 || (
(info.at(0) == '&')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 156 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
info.at(0) == '&')
(info.at(0) == '&')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 156 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
1-156
575 info = info.mid(1);
executed 2 times by 1 test: info = info.mid(1);
Executed by:
  • tst_qmessagehandler
2
576-
577-
578-
579 while ((
(pos = info.la...Of('>')) != -1Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 153 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
pos = info.lastIndexOf('>')) != -1
(pos = info.la...Of('>')) != -1Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 153 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
27-153
580 if (!info.contains('<')
!info.contains('<')Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qmessagehandler
)
3-24
581 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_qmessagehandler
3
582-
583-
584 int end = pos;-
585 templatecount = 1;-
586 --pos;-
587 while (pos
posDescription
TRUEevaluated 1654 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEnever evaluated
&& templatecount
templatecountDescription
TRUEevaluated 1630 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qmessagehandler
) {
0-1654
588 char c = info.at(pos);-
589 if (c == '>'
c == '>'Description
TRUEevaluated 58 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 1572 times by 1 test
Evaluated by:
  • tst_qmessagehandler
)
58-1572
590 ++
executed 58 times by 1 test: ++templatecount;
Executed by:
  • tst_qmessagehandler
templatecount;
executed 58 times by 1 test: ++templatecount;
Executed by:
  • tst_qmessagehandler
58
591 else if (c == '<'
c == '<'Description
TRUEevaluated 82 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 1490 times by 1 test
Evaluated by:
  • tst_qmessagehandler
)
82-1490
592 --
executed 82 times by 1 test: --templatecount;
Executed by:
  • tst_qmessagehandler
templatecount;
executed 82 times by 1 test: --templatecount;
Executed by:
  • tst_qmessagehandler
82
593 --pos;-
594 }
executed 1630 times by 1 test: end of block
Executed by:
  • tst_qmessagehandler
1630
595 ++pos;-
596 info.remove(pos, end - pos + 1);-
597 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_qmessagehandler
24
598-
599 return
executed 156 times by 2 tests: return info;
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
info;
executed 156 times by 2 tests: return info;
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
156
600}-
601-
602-
603static const char categoryTokenC[] = "%{category}";-
604static const char typeTokenC[] = "%{type}";-
605static const char messageTokenC[] = "%{message}";-
606static const char fileTokenC[] = "%{file}";-
607static const char lineTokenC[] = "%{line}";-
608static const char functionTokenC[] = "%{function}";-
609static const char pidTokenC[] = "%{pid}";-
610static const char appnameTokenC[] = "%{appname}";-
611static const char threadidTokenC[] = "%{threadid}";-
612static const char qthreadptrTokenC[] = "%{qthreadptr}";-
613static const char timeTokenC[] = "%{time";-
614static const char backtraceTokenC[] = "%{backtrace";-
615static const char ifCategoryTokenC[] = "%{if-category}";-
616static const char ifDebugTokenC[] = "%{if-debug}";-
617static const char ifInfoTokenC[] = "%{if-info}";-
618static const char ifWarningTokenC[] = "%{if-warning}";-
619static const char ifCriticalTokenC[] = "%{if-critical}";-
620static const char ifFatalTokenC[] = "%{if-fatal}";-
621static const char endifTokenC[] = "%{endif}";-
622static const char emptyTokenC[] = "";-
623-
624static const char defaultPattern[] = "%{if-category}%{category}: %{endif}%{message}";-
625-
626-
627struct QMessagePattern {-
628 QMessagePattern();-
629 ~QMessagePattern();-
630-
631 void setPattern(const QString &pattern);-
632-
633-
634 const char **literals;-
635 const char **tokens;-
636 QList<QString> timeArgs;-
637-
638 QElapsedTimer timer;-
639-
640-
641 struct BacktraceParams {-
642 QString backtraceSeparator;-
643 int backtraceDepth;-
644 };-
645 QVector<BacktraceParams> backtraceArgs;-
646-
647-
648 bool fromEnvironment;-
649 static QBasicMutex mutex;-
650};-
651-
652template<> class QTypeInfo<QMessagePattern::BacktraceParams > { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QMessagePattern::BacktraceParams)>sizeof(void*)), isPointer = false, isIntegral = QtPrivate::is_integral< QMessagePattern::BacktraceParams >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QMessagePattern::BacktraceParams) }; static inline const char *name() { return "QMessagePattern::BacktraceParams"; } };-
653-
654-
655QBasicMutex QMessagePattern::mutex;-
656-
657QMessagePattern::QMessagePattern()-
658 : literals(0)-
659 , tokens(0)-
660 , fromEnvironment(false)-
661{-
662-
663 timer.start();-
664-
665 const QString envPattern = QString::fromLocal8Bit(qgetenv("QT_MESSAGE_PATTERN"));-
666 if (envPattern.isEmpty()
envPattern.isEmpty()Description
TRUEevaluated 382 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
) {
13-382
667 setPattern(QLatin1String(defaultPattern));-
668 }
executed 382 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
else {
382
669 setPattern(envPattern);-
670 fromEnvironment = true;-
671 }
executed 13 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
13
672}-
673-
674QMessagePattern::~QMessagePattern()-
675{-
676 for (int i = 0; literals[i]
literals[i]Description
TRUEevaluated 342 times by 108 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qbrush - unknown status
  • tst_qbuffer - unknown status
  • tst_qbytearray - unknown status
  • tst_qcolor - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdatastream - unknown status
  • tst_qdatetime - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdialogbuttonbox - unknown status
  • tst_qdirmodel - unknown status
  • tst_qdrag - unknown status
  • ...
FALSEevaluated 335 times by 108 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qbrush - unknown status
  • tst_qbuffer - unknown status
  • tst_qbytearray - unknown status
  • tst_qcolor - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdatastream - unknown status
  • tst_qdatetime - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdialogbuttonbox - unknown status
  • tst_qdirmodel - unknown status
  • tst_qdrag - unknown status
  • ...
; ++i)
335-342
677 delete [] literals[i];
executed 342 times by 108 tests: delete [] literals[i];
Executed by:
  • tst_gestures - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qbrush - unknown status
  • tst_qbuffer - unknown status
  • tst_qbytearray - unknown status
  • tst_qcolor - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdatastream - unknown status
  • tst_qdatetime - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdialogbuttonbox - unknown status
  • tst_qdirmodel - unknown status
  • tst_qdrag - unknown status
  • ...
342
678 delete [] literals;-
679 literals = 0;-
680 delete [] tokens;-
681 tokens = 0;-
682}
executed 335 times by 108 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qbrush - unknown status
  • tst_qbuffer - unknown status
  • tst_qbytearray - unknown status
  • tst_qcolor - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdatastream - unknown status
  • tst_qdatetime - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdialogbuttonbox - unknown status
  • tst_qdirmodel - unknown status
  • tst_qdrag - unknown status
  • ...
335
683-
684void QMessagePattern::setPattern(const QString &pattern)-
685{-
686 if (literals
literalsDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 395 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
9-395
687 for (int i = 0; literals[i]
literals[i]Description
TRUEevaluated 48 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
; ++i)
9-48
688 delete [] literals[i];
executed 48 times by 2 tests: delete [] literals[i];
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
48
689 delete [] literals;-
690 }
executed 9 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
9
691 delete [] tokens;-
692-
693-
694 QList<QString> lexemes;-
695 QString lexeme;-
696 bool inPlaceholder = false;-
697 for (int i = 0; i < pattern.size()
i < pattern.size()Description
TRUEevaluated 18841 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 404 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
; ++i) {
404-18841
698 const QChar c = pattern.at(i);-
699 if ((
(c == QLatin1Char('%'))Description
TRUEevaluated 1668 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 17173 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
c == QLatin1Char('%'))
(c == QLatin1Char('%'))Description
TRUEevaluated 1668 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 17173 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
1668-17173
700 && !inPlaceholder
!inPlaceholderDescription
TRUEevaluated 1668 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEnever evaluated
) {
0-1668
701 if ((
(i + 1 < pattern.size())Description
TRUEevaluated 1668 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEnever evaluated
i + 1 < pattern.size())
(i + 1 < pattern.size())Description
TRUEevaluated 1668 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEnever evaluated
0-1668
702 && pattern.at(i + 1) == QLatin1Char('{')
pattern.at(i +...atin1Char('{')Description
TRUEevaluated 1668 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEnever evaluated
) {
0-1668
703-
704 if (!lexeme.isEmpty()
!lexeme.isEmpty()Description
TRUEevaluated 475 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 1193 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
475-1193
705 lexemes.append(lexeme);-
706 lexeme.clear();-
707 }
executed 475 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
475
708 inPlaceholder = true;-
709 }
executed 1668 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
1668
710 }
executed 1668 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
1668
711-
712 lexeme.append(c);-
713-
714 if ((c == QLatin1Char('}')
c == QLatin1Char('}')Description
TRUEevaluated 1668 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 17173 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
&& inPlaceholder
inPlaceholderDescription
TRUEevaluated 1668 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEnever evaluated
)) {
0-17173
715-
716 lexemes.append(lexeme);-
717 lexeme.clear();-
718 inPlaceholder = false;-
719 }
executed 1668 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
1668
720 }
executed 18841 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
18841
721 if (!lexeme.isEmpty()
!lexeme.isEmpty()Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 391 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
13-391
722 lexemes.append(lexeme);
executed 13 times by 1 test: lexemes.append(lexeme);
Executed by:
  • tst_qlogging - unknown status
13
723-
724-
725 QVarLengthArray<const char*> literalsVar;-
726 tokens = new const char*[lexemes.size() + 1];-
727 tokens[lexemes.size()] = 0;-
728-
729 bool nestedIfError = false;-
730 bool inIf = false;-
731 QString error;-
732-
733 for (int i = 0; i < lexemes.size()
i < lexemes.size()Description
TRUEevaluated 2156 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 404 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
; ++i) {
404-2156
734 const QString lexeme = lexemes.at(i);-
735 if (lexeme.startsWith(QLatin1String("%{"))
lexeme.startsW...1String("%{"))Description
TRUEevaluated 1668 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 488 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
488-1668
736 && lexeme.endsWith(QLatin1Char('}'))
lexeme.endsWit...tin1Char('}'))Description
TRUEevaluated 1668 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEnever evaluated
) {
0-1668
737-
738 if (lexeme == QLatin1String(typeTokenC)
lexeme == QLat...ng(typeTokenC)Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 1665 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
3-1665
739 tokens[i] = typeTokenC;-
740 }
executed 3 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
else if (lexeme == QLatin1String(categoryTokenC)
lexeme == QLat...ategoryTokenC)Description
TRUEevaluated 389 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 1276 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
3-1276
741 tokens[i] = categoryTokenC;
executed 389 times by 106 tests: tokens[i] = categoryTokenC;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
389
742 else if (lexeme == QLatin1String(messageTokenC)
lexeme == QLat...messageTokenC)Description
TRUEevaluated 402 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 874 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
402-874
743 tokens[i] = messageTokenC;
executed 402 times by 106 tests: tokens[i] = messageTokenC;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
402
744 else if (lexeme == QLatin1String(fileTokenC)
lexeme == QLat...ng(fileTokenC)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 873 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
1-873
745 tokens[i] = fileTokenC;
executed 1 time by 1 test: tokens[i] = fileTokenC;
Executed by:
  • tst_qmessagehandler
1
746 else if (lexeme == QLatin1String(lineTokenC)
lexeme == QLat...ng(lineTokenC)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 871 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
2-871
747 tokens[i] = lineTokenC;
executed 2 times by 2 tests: tokens[i] = lineTokenC;
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
2
748 else if (lexeme == QLatin1String(functionTokenC)
lexeme == QLat...unctionTokenC)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 869 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
2-869
749 tokens[i] = functionTokenC;
executed 2 times by 2 tests: tokens[i] = functionTokenC;
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
2
750 else if (lexeme == QLatin1String(pidTokenC)
lexeme == QLat...ing(pidTokenC)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 868 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
1-868
751 tokens[i] = pidTokenC;
executed 1 time by 1 test: tokens[i] = pidTokenC;
Executed by:
  • tst_qlogging - unknown status
1
752 else if (lexeme == QLatin1String(appnameTokenC)
lexeme == QLat...appnameTokenC)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 867 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
1-867
753 tokens[i] = appnameTokenC;
executed 1 time by 1 test: tokens[i] = appnameTokenC;
Executed by:
  • tst_qlogging - unknown status
1
754 else if (lexeme == QLatin1String(threadidTokenC)
lexeme == QLat...hreadidTokenC)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 866 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
1-866
755 tokens[i] = threadidTokenC;
executed 1 time by 1 test: tokens[i] = threadidTokenC;
Executed by:
  • tst_qlogging - unknown status
1
756 else if (lexeme == QLatin1String(qthreadptrTokenC)
lexeme == QLat...readptrTokenC)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 865 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
1-865
757 tokens[i] = qthreadptrTokenC;
executed 1 time by 1 test: tokens[i] = qthreadptrTokenC;
Executed by:
  • tst_qlogging - unknown status
1
758 else if (lexeme.startsWith(QLatin1String(timeTokenC))
lexeme.startsW...g(timeTokenC))Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 859 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
6-859
759 tokens[i] = timeTokenC;-
760 int spaceIdx = lexeme.indexOf(QChar::fromLatin1(' '));-
761 if (spaceIdx > 0
spaceIdx > 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEnever evaluated
)
0-6
762 timeArgs.append(lexeme.mid(spaceIdx + 1, lexeme.length() - spaceIdx - 2));
executed 6 times by 1 test: timeArgs.append(lexeme.mid(spaceIdx + 1, lexeme.length() - spaceIdx - 2));
Executed by:
  • tst_qlogging - unknown status
6
763 else-
764 timeArgs.append(QString());
never executed: timeArgs.append(QString());
0
765 } else if (lexeme.startsWith(QLatin1String(backtraceTokenC))
lexeme.startsW...ktraceTokenC))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 857 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
2-857
766-
767 tokens[i] = backtraceTokenC;-
768 QString backtraceSeparator = ([]() -> QString { enum { Size = sizeof(u"" "|")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "|" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
qstring_literal_temp;
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
}());
2
769 int backtraceDepth = 5;-
770 QRegularExpression depthRx(([]() -> QString { enum { Size = sizeof(u"" " depth=(?|\"([^\"]*)\"|([^ }]*))")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" " depth=(?|\"([^\"]*)\"|([^ }]*))" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
qstring_literal_temp;
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
}()));
2
771 QRegularExpression separatorRx(([]() -> QString { enum { Size = sizeof(u"" " separator=(?|\"([^\"]*)\"|([^ }]*))")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" " separator=(?|\"([^\"]*)\"|([^ }]*))" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
qstring_literal_temp;
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
}()));
2
772 QRegularExpressionMatch m = depthRx.match(lexeme);-
773 if (m.hasMatch()
m.hasMatch()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
) {
1
774 int depth = m.capturedRef(1).toInt();-
775 if (depth <= 0
depth <= 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
)
0-1
776 error += ([]() -> QString { enum { Size = sizeof(u"" "QT_MESSAGE_PATTERN: %{backtrace} depth must be a number greater than 0\n")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "QT_MESSAGE_PATTERN: %{backtrace} depth must be a number greater than 0\n" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
never executed: error += ([]() -> QString { enum { Size = sizeof(u"" "QT_MESSAGE_PATTERN: %{backtrace} depth must be a number greater than 0\n")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "QT_MESSAGE_PATTERN: %{backtrace} depth must be a number greater than 0\n" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
0
777 else-
778 backtraceDepth = depth;
executed 1 time by 1 test: backtraceDepth = depth;
Executed by:
  • tst_qlogging - unknown status
1
779 }-
780 m = separatorRx.match(lexeme);-
781 if (m.hasMatch()
m.hasMatch()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
)
1
782 backtraceSeparator = m.captured(1);
executed 1 time by 1 test: backtraceSeparator = m.captured(1);
Executed by:
  • tst_qlogging - unknown status
1
783 BacktraceParams backtraceParams;-
784 backtraceParams.backtraceDepth = backtraceDepth;-
785 backtraceParams.backtraceSeparator = backtraceSeparator;-
786 backtraceArgs.append(backtraceParams);-
787-
788-
789-
790-
791 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
2
792 else if (lexeme == QLatin1String(ifCategoryTokenC)
lexeme == QLat...ategoryTokenC)Description
TRUEevaluated 389 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 468 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) { if (inIf
inIfDescription
TRUEnever evaluated
FALSEevaluated 389 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) nestedIfError = true;
never executed: nestedIfError = true;
tokens[i] = ifCategoryTokenC; inIf = true; }
executed 389 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
0-468
793 else if (lexeme == QLatin1String(ifDebugTokenC)
lexeme == QLat...ifDebugTokenC)Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 459 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) { if (inIf
inIfDescription
TRUEnever evaluated
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) nestedIfError = true;
never executed: nestedIfError = true;
tokens[i] = ifDebugTokenC; inIf = true; }
executed 9 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
0-459
794 else if (lexeme == QLatin1String(ifInfoTokenC)
lexeme == QLat...(ifInfoTokenC)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 453 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) { if (inIf
inIfDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qmessagehandler
) nestedIfError = true;
never executed: nestedIfError = true;
tokens[i] = ifInfoTokenC; inIf = true; }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qmessagehandler
0-453
795 else if (lexeme == QLatin1String(ifWarningTokenC)
lexeme == QLat...WarningTokenC)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 443 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) { if (inIf
inIfDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) nestedIfError = true;
executed 1 time by 1 test: nestedIfError = true;
Executed by:
  • tst_qlogging - unknown status
tokens[i] = ifWarningTokenC; inIf = true; }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
1-443
796 else if (lexeme == QLatin1String(ifCriticalTokenC)
lexeme == QLat...riticalTokenC)Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 436 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) { if (inIf
inIfDescription
TRUEnever evaluated
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) nestedIfError = true;
never executed: nestedIfError = true;
tokens[i] = ifCriticalTokenC; inIf = true; }
executed 7 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
0-436
797 else if (lexeme == QLatin1String(ifFatalTokenC)
lexeme == QLat...ifFatalTokenC)Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 429 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) { if (inIf
inIfDescription
TRUEnever evaluated
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) nestedIfError = true;
never executed: nestedIfError = true;
tokens[i] = ifFatalTokenC; inIf = true; }
executed 7 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
0-429
798-
799 else if (lexeme == QLatin1String(endifTokenC)
lexeme == QLat...g(endifTokenC)Description
TRUEevaluated 427 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
) {
2-427
800 tokens[i] = endifTokenC;-
801 if (!inIf
!inIfDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 426 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
&& !nestedIfError
!nestedIfErrorDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEnever evaluated
)
0-426
802 error += ([]() -> QString { enum { Size = sizeof(u"" "QT_MESSAGE_PATTERN: %{endif} without an %{if-*}\n")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "QT_MESSAGE_PATTERN: %{endif} without an %{if-*}\n" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
qstring_literal_temp;
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
}());
executed 1 time by 1 test: error += ([]() -> QString { enum { Size = sizeof(u"" "QT_MESSAGE_PATTERN: %{endif} without an %{if-*}\n")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "QT_MESSAGE_PATTERN: %{endif} without an %{if-*}\n" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_qlogging - unknown status
1
803 inIf = false;-
804 }
executed 427 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
else {
427
805 tokens[i] = emptyTokenC;-
806 error += ([]() -> QString { enum { Size = sizeof(u"" "QT_MESSAGE_PATTERN: Unknown placeholder %1\n")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "QT_MESSAGE_PATTERN: Unknown placeholder %1\n" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
qstring_literal_temp;
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
}())
2
807 .arg(lexeme);-
808 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
2
809 } else {-
810 char *literal = new char[lexeme.size() + 1];-
811 strncpy(literal, lexeme.toLatin1().constData(), lexeme.size());-
812 literal[lexeme.size()] = '\0';-
813 literalsVar.append(literal);-
814 tokens[i] = literal;-
815 }
executed 488 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
488
816 }-
817 if (nestedIfError
nestedIfErrorDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 403 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
1-403
818 error += ([]() -> QString { enum { Size = sizeof(u"" "QT_MESSAGE_PATTERN: %{if-*} cannot be nested\n")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "QT_MESSAGE_PATTERN: %{if-*} cannot be nested\n" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
qstring_literal_temp;
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
}());
executed 1 time by 1 test: error += ([]() -> QString { enum { Size = sizeof(u"" "QT_MESSAGE_PATTERN: %{if-*} cannot be nested\n")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "QT_MESSAGE_PATTERN: %{if-*} cannot be nested\n" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_qlogging - unknown status
1
819 else if (inIf
inIfDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 402 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
1-402
820 error += ([]() -> QString { enum { Size = sizeof(u"" "QT_MESSAGE_PATTERN: missing %{endif}\n")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "QT_MESSAGE_PATTERN: missing %{endif}\n" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
qstring_literal_temp;
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qlogging - unknown status
}());
executed 1 time by 1 test: error += ([]() -> QString { enum { Size = sizeof(u"" "QT_MESSAGE_PATTERN: missing %{endif}\n")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "QT_MESSAGE_PATTERN: missing %{endif}\n" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_qlogging - unknown status
1
821 if (!error.isEmpty()
!error.isEmpty()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 401 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
3-401
822 {-
823 fprintf(stderr, "%s", error.toLocal8Bit().constData());-
824 fflush(stderr);-
825 }-
826 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
3
827 literals = new const char*[literalsVar.size() + 1];-
828 literals[literalsVar.size()] = 0;-
829 memcpy(literals, literalsVar.constData(), literalsVar.size() * sizeof(const char*));-
830}
executed 404 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
404
831namespace { namespace Q_QGS_qMessagePattern { typedef QMessagePattern Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 335 times by 108 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qbrush - unknown status
  • tst_qbuffer - unknown status
  • tst_qbytearray - unknown status
  • tst_qcolor - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdatastream - unknown status
  • tst_qdatetime - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdialogbuttonbox - unknown status
  • tst_qdirmodel - unknown status
  • tst_qdrag - unknown status
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 335 times by 108 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_gestures - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qbrush - unknown status
  • tst_qbuffer - unknown status
  • tst_qbytearray - unknown status
  • tst_qcolor - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdatastream - unknown status
  • tst_qdatetime - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdialogbuttonbox - unknown status
  • tst_qdirmodel - unknown status
  • tst_qdrag - unknown status
  • ...
}
executed 335 times by 108 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qbrush - unknown status
  • tst_qbuffer - unknown status
  • tst_qbytearray - unknown status
  • tst_qcolor - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdatastream - unknown status
  • tst_qdatetime - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdialogbuttonbox - unknown status
  • tst_qdirmodel - unknown status
  • tst_qdrag - unknown status
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 213926 times by 106 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
&holder.value;
executed 213926 times by 106 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
} } } static QGlobalStatic<QMessagePattern, Q_QGS_qMessagePattern::innerFunction, Q_QGS_qMessagePattern::guard> qMessagePattern;
0-213926
832QString qFormatLogMessage(QtMsgType type, const QMessageLogContext &context, const QString &str)-
833{-
834 QString message;-
835-
836 QMutexLocker lock(&QMessagePattern::mutex);-
837-
838 QMessagePattern *pattern = qMessagePattern();-
839 if (!pattern
!patternDescription
TRUEnever evaluated
FALSEevaluated 213882 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
0-213882
840-
841 message.append(str);-
842 return
never executed: return message;
message;
never executed: return message;
0
843 }-
844-
845 bool skip = false;-
846-
847-
848 int timeArgsIdx = 0;-
849-
850 int backtraceArgsIdx = 0;-
851-
852-
853-
854-
855 for (int i = 0; pattern->tokens[i] != 0
pattern->tokens[i] != 0Description
TRUEevaluated 1069789 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 213882 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
; ++i) {
213882-1069789
856 const char *token = pattern->tokens[i];-
857 if (token == endifTokenC
token == endifTokenCDescription
TRUEevaluated 213872 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 855917 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
213872-855917
858 skip = false;-
859 }
executed 213872 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
else if (skip
skipDescription
TRUEevaluated 427631 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 428286 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
213872-428286
860-
861-
862-
863 if (token == timeTokenC
token == timeTokenCDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 427621 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
10-427621
864 timeArgsIdx++;
executed 10 times by 1 test: timeArgsIdx++;
Executed by:
  • tst_qlogging - unknown status
10
865-
866 else if (token == backtraceTokenC
token == backtraceTokenCDescription
TRUEnever evaluated
FALSEevaluated 427621 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
)
0-427621
867 backtraceArgsIdx++;
never executed: backtraceArgsIdx++;
0
868-
869-
870 }
executed 427631 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
else if (token == messageTokenC
token == messageTokenCDescription
TRUEevaluated 213872 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 214414 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
213872-427631
871 message.append(str);-
872 }
executed 213872 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
else if (token == categoryTokenC
token == categoryTokenCDescription
TRUEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QSslSocket
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 214411 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
3-214411
873 message.append(QLatin1String(context.category));-
874 }
executed 3 times by 3 tests: end of block
Executed by:
  • tst_QSslSocket
  • tst_qlogging - unknown status
  • tst_qmessagehandler
else if (token == typeTokenC
token == typeTokenCDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 214397 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
3-214397
875 switch (type) {-
876 case
executed 6 times by 2 tests: case QtDebugMsg:
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
QtDebugMsg:
executed 6 times by 2 tests: case QtDebugMsg:
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
message.append(QLatin1String("debug")); break;
executed 6 times by 2 tests: break;
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
6
877 case
executed 2 times by 1 test: case QtInfoMsg:
Executed by:
  • tst_qlogging - unknown status
QtInfoMsg:
executed 2 times by 1 test: case QtInfoMsg:
Executed by:
  • tst_qlogging - unknown status
message.append(QLatin1String("info")); break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qlogging - unknown status
2
878 case
executed 4 times by 1 test: case QtWarningMsg:
Executed by:
  • tst_qlogging - unknown status
QtWarningMsg:
executed 4 times by 1 test: case QtWarningMsg:
Executed by:
  • tst_qlogging - unknown status
message.append(QLatin1String("warning")); break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qlogging - unknown status
4
879 case
executed 2 times by 1 test: case QtCriticalMsg:
Executed by:
  • tst_qlogging - unknown status
QtCriticalMsg:
executed 2 times by 1 test: case QtCriticalMsg:
Executed by:
  • tst_qlogging - unknown status
message.append(QLatin1String("critical")); break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qlogging - unknown status
2
880 case
never executed: case QtFatalMsg:
QtFatalMsg:
never executed: case QtFatalMsg:
message.append(QLatin1String("fatal")); break;
never executed: break;
0
881 }-
882 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
else if (token == fileTokenC
token == fileTokenCDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 214396 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
1-214396
883 if (context.file
context.fileDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEnever evaluated
)
0-1
884 message.append(QLatin1String(context.file));
executed 1 time by 1 test: message.append(QLatin1String(context.file));
Executed by:
  • tst_qmessagehandler
1
885 else-
886 message.append(QLatin1String("unknown"));
never executed: message.append(QLatin1String("unknown"));
0
887 } else if (token == lineTokenC
token == lineTokenCDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 214387 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
9-214387
888 message.append(QString::number(context.line));-
889 }
executed 9 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
else if (token == functionTokenC
token == functionTokenCDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 214378 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
9-214378
890 if (context.function
context.functionDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEnever evaluated
)
0-9
891 message.append(QString::fromLatin1(qCleanupFuncinfo(context.function)));
executed 9 times by 2 tests: message.append(QString::fromLatin1(qCleanupFuncinfo(context.function)));
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
9
892 else-
893 message.append(QLatin1String("unknown"));
never executed: message.append(QLatin1String("unknown"));
0
894-
895 } else if (token == pidTokenC
token == pidTokenCDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 214370 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
8-214370
896 message.append(QString::number(QCoreApplication::applicationPid()));-
897 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
else if (token == appnameTokenC
token == appnameTokenCDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 214362 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
8-214362
898 message.append(QCoreApplication::applicationName());-
899 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
else if (token == threadidTokenC
token == threadidTokenCDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 214354 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
8-214354
900-
901 message.append(QString::number(qt_gettid()));-
902 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
else if (token == qthreadptrTokenC
token == qthreadptrTokenCDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 214346 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
8-214346
903 message.append(QLatin1String("0x"));-
904 message.append(QString::number(qlonglong(QThread::currentThread()->currentThread()), 16));-
905-
906 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
else if (token == backtraceTokenC
token == backtraceTokenCDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 214330 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
8-214330
907 QMessagePattern::BacktraceParams backtraceParams = pattern->backtraceArgs.at(backtraceArgsIdx);-
908 QString backtraceSeparator = backtraceParams.backtraceSeparator;-
909 int backtraceDepth = backtraceParams.backtraceDepth;-
910 backtraceArgsIdx++;-
911 QVarLengthArray<void*, 32> buffer(7 + backtraceDepth);-
912 int n = backtrace(buffer.data(), buffer.size());-
913 if (n > 0
n > 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEnever evaluated
) {
0-16
914 int numberPrinted = 0;-
915 for (int i = 0; i < n
i < nDescription
TRUEevaluated 134 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
&& numberPrinted < backtraceDepth
numberPrinted < backtraceDepthDescription
TRUEevaluated 124 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
; ++i) {
6-134
916 QScopedPointer<char*, QScopedPointerPodDeleter> strings(backtrace_symbols(buffer.data() + i, 1));-
917 QString trace = QString::fromLatin1(strings.data()[0]);-
918-
919-
920-
921-
922-
923 static QRegularExpression rx(([]() -> QString { enum { Size = sizeof(u"" "^(?:[^(]*/)?([^(/]+)\\(([^+]*)(?:[\\+[a-f0-9x]*)?\\) \\[[a-f0-9x]*\\]$")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "^(?:[^(]*/)?([^(/]+)\\(([^+]*)(?:[\\+[a-f0-9x]*)?\\) \\[[a-f0-9x]*\\]$" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()),-
924 QRegularExpression::OptimizeOnFirstUsageOption);-
925-
926 QRegularExpressionMatch m = rx.match(trace);-
927 if (m.hasMatch()
m.hasMatch()Description
TRUEevaluated 124 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEnever evaluated
) {
0-124
928-
929 QString library = m.captured(1);-
930 QString function = m.captured(2);-
931 if (!numberPrinted
!numberPrintedDescription
TRUEevaluated 96 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
&& library.contains(QLatin1String("Qt5Core"))
library.contai...ng("Qt5Core"))Description
TRUEevaluated 80 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
16-96
932 && (function.isEmpty()
function.isEmpty()Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
|| function.contains(QLatin1String("Message"), Qt::CaseInsensitive)
function.conta...seInsensitive)Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
4-44
933 || function.contains(QLatin1String("QDebug"))
function.conta...ing("QDebug"))Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEnever evaluated
)) {
0-4
934 continue;
executed 80 times by 1 test: continue;
Executed by:
  • tst_qlogging - unknown status
80
935 }-
936-
937 if (function.startsWith(QLatin1String("_Z"))
function.start...1String("_Z"))Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
) {
8-36
938 QScopedPointer<char, QScopedPointerPodDeleter> demangled(-
939 abi::__cxa_demangle(function.toUtf8(), 0, 0, 0));-
940 if (demangled
demangledDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEnever evaluated
)
0-8
941 function = QString::fromUtf8(qCleanupFuncinfo(demangled.data()));
executed 8 times by 1 test: function = QString::fromUtf8(qCleanupFuncinfo(demangled.data()));
Executed by:
  • tst_qlogging - unknown status
8
942 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
8
943-
944 if (numberPrinted > 0
numberPrinted > 0Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
)
16-28
945 message.append(backtraceSeparator);
executed 28 times by 1 test: message.append(backtraceSeparator);
Executed by:
  • tst_qlogging - unknown status
28
946-
947 if (function.isEmpty()
function.isEmpty()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
) {
10-34
948 if (numberPrinted == 0
numberPrinted == 0Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
&& context.function
context.functionDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-10
949 message += QString::fromUtf8(qCleanupFuncinfo(context.function));
never executed: message += QString::fromUtf8(qCleanupFuncinfo(context.function));
0
950 else-
951 message += QLatin1Char('?') + library + QLatin1Char('?');
executed 10 times by 1 test: message += QLatin1Char('?') + library + QLatin1Char('?');
Executed by:
  • tst_qlogging - unknown status
10
952 } else {-
953 message += function;-
954 }
executed 34 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
34
955-
956 } else {-
957 if (numberPrinted == 0
numberPrinted == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
958 continue;
never executed: continue;
0
959 message += backtraceSeparator + QLatin1String("???");-
960 }
never executed: end of block
0
961 numberPrinted++;-
962 }
executed 44 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
44
963 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
16
964-
965 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
else if (token == timeTokenC
token == timeTokenCDescription
TRUEevaluated 38 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 214292 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
) {
16-214292
966 QString timeFormat = pattern->timeArgs.at(timeArgsIdx);-
967 timeArgsIdx++;-
968 if (timeFormat == QLatin1String("process")
timeFormat == ...ing("process")Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
) {
8-30
969 quint64 ms = pattern->timer.elapsed();-
970 message.append(QString::asprintf("%6d.%03d", uint(ms / 1000), uint(ms % 1000)));-
971 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
else if (timeFormat == QLatin1String("boot")
timeFormat == ...String("boot")Description
TRUEnever evaluated
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
) {
0-30
972-
973-
974 QElapsedTimer now;-
975 now.start();-
976 uint ms = now.msecsSinceReference();-
977 message.append(QString::asprintf("%6d.%03d", uint(ms / 1000), uint(ms % 1000)));-
978 }
never executed: end of block
else if (timeFormat.isEmpty()
timeFormat.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
) {
0-30
979 message.append(QDateTime::currentDateTime().toString(Qt::ISODate));-
980 }
never executed: end of block
else {
0
981 message.append(QDateTime::currentDateTime().toString(timeFormat));-
982 }
executed 30 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
30
983-
984 } else if (token == ifCategoryTokenC
token == ifCategoryTokenCDescription
TRUEevaluated 213778 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 514 times by 3 tests
Evaluated by:
  • tst_QSslSocket
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
514-213778
985 if (!context.category
!context.categoryDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 213773 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
|| (
(strcmp(contex...efault") == 0)Description
TRUEevaluated 213770 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QSslSocket
  • tst_qlogging - unknown status
  • tst_qmessagehandler
strcmp(context.category, "default") == 0)
(strcmp(contex...efault") == 0)Description
TRUEevaluated 213770 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QSslSocket
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
3-213773
986 skip = true;
executed 213775 times by 106 tests: skip = true;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
213775
987-
988-
989-
990 }
executed 213778 times by 106 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
else if (token == ifDebugTokenC
token == ifDebugTokenCDescription
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 484 times by 3 tests
Evaluated by:
  • tst_QSslSocket
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) { skip = type != QtDebugMsg;
30-213778
991 }
executed 30 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
else if (token == ifInfoTokenC
token == ifInfoTokenCDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 478 times by 3 tests
Evaluated by:
  • tst_QSslSocket
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) { skip = type != QtInfoMsg;
6-478
992 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qmessagehandler
else if (token == ifWarningTokenC
token == ifWarningTokenCDescription
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 444 times by 3 tests
Evaluated by:
  • tst_QSslSocket
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) { skip = type != QtWarningMsg;
6-444
993 }
executed 34 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
else if (token == ifCriticalTokenC
token == ifCriticalTokenCDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 430 times by 3 tests
Evaluated by:
  • tst_QSslSocket
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) { skip = type != QtCriticalMsg;
14-430
994 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
else if (token == ifFatalTokenC
token == ifFatalTokenCDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 416 times by 3 tests
Evaluated by:
  • tst_QSslSocket
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) { skip = type != QtFatalMsg;
14-416
995-
996 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
else {
14
997 message.append(QLatin1String(token));-
998 }
executed 416 times by 3 tests: end of block
Executed by:
  • tst_QSslSocket
  • tst_qlogging - unknown status
  • tst_qmessagehandler
416
999 }-
1000 return
executed 213882 times by 106 tests: return message;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
message;
executed 213882 times by 106 tests: return message;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
213882
1001}-
1002-
1003-
1004-
1005typedef void (*QtMsgHandler)(QtMsgType, const char *);-
1006__attribute__((visibility("default"))) QtMsgHandler qInstallMsgHandler(QtMsgHandler);-
1007-
1008-
1009static void qDefaultMsgHandler(QtMsgType type, const char *buf);-
1010static void qDefaultMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &buf);-
1011-
1012-
1013static QBasicAtomicPointer<void (QtMsgType, const char*)> msgHandler = { qDefaultMsgHandler };-
1014-
1015static QBasicAtomicPointer<void (QtMsgType, const QMessageLogContext &, const QString &)> messageHandler = { qDefaultMessageHandler };-
1016static void qDefaultMessageHandler(QtMsgType type, const QMessageLogContext &context,-
1017 const QString &buf)-
1018{-
1019 QString logMessage = qFormatLogMessage(type, context, buf);-
1020-
1021-
1022-
1023 if (logMessage.isNull()
logMessage.isNull()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 119 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
)
2-119
1024 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qlogging - unknown status
2
1025-
1026 if (!qt_logging_to_console()
!qt_logging_to_console()Description
TRUEnever evaluated
FALSEevaluated 119 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
) {
0-119
1027 }
never executed: end of block
0
1028 fprintf(stderr, "%s\n", logMessage.toLocal8Bit().constData());-
1029 fflush(stderr);-
1030}
executed 119 times by 4 tests: end of block
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
119
1031-
1032-
1033-
1034-
1035static void qDefaultMsgHandler(QtMsgType type, const char *buf)-
1036{-
1037 QMessageLogContext emptyContext;-
1038 qDefaultMessageHandler(type, emptyContext, QString::fromLocal8Bit(buf));-
1039}
never executed: end of block
0
1040-
1041-
1042-
1043static thread_local bool msgHandlerGrabbed = false;-
1044-
1045static bool grabMessageHandler()-
1046{-
1047 if (msgHandlerGrabbed
msgHandlerGrabbedDescription
TRUEnever evaluated
FALSEevaluated 227134 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
)
0-227134
1048 return
never executed: return false;
false;
never executed: return false;
0
1049-
1050 msgHandlerGrabbed = true;-
1051 return
executed 227134 times by 161 tests: return true;
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
true;
executed 227134 times by 161 tests: return true;
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
227134
1052}-
1053-
1054static void ungrabMessageHandler()-
1055{-
1056 msgHandlerGrabbed = false;-
1057}
executed 227134 times by 162 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
227134
1058-
1059-
1060-
1061-
1062-
1063-
1064static void qt_message_print(QtMsgType msgType, const QMessageLogContext &context, const QString &message)-
1065{-
1066-
1067-
1068 if (!context.category
!context.categoryDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDebug
FALSEevaluated 227114 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
|| (
(strcmp(contex...efault") == 0)Description
TRUEevaluated 215047 times by 159 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
FALSEevaluated 12097 times by 6 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNoDebug
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_qlogging - unknown status
strcmp(context.category, "default") == 0)
(strcmp(contex...efault") == 0)Description
TRUEevaluated 215047 times by 159 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
FALSEevaluated 12097 times by 6 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNoDebug
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_qlogging - unknown status
) {
2-227114
1069 if (QLoggingCategory *defaultCategory = QLoggingCategory::defaultCategory()
QLoggingCatego...aultCategory()Description
TRUEevaluated 215049 times by 159 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
FALSEnever evaluated
) {
0-215049
1070 if (!defaultCategory->isEnabled(msgType)
!defaultCatego...abled(msgType)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QLogging
FALSEevaluated 215037 times by 159 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
)
12-215037
1071 return;
executed 12 times by 1 test: return;
Executed by:
  • tst_QLogging
12
1072 }
executed 215037 times by 159 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
215037
1073 }
executed 215037 times by 159 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
215037
1074-
1075-
1076-
1077-
1078 if (grabMessageHandler()
grabMessageHandler()Description
TRUEevaluated 227134 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
FALSEnever evaluated
) {
0-227134
1079-
1080 if (msgHandler.load() == qDefaultMsgHandler
msgHandler.loa...aultMsgHandlerDescription
TRUEevaluated 227132 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmessagehandler
2-227132
1081 || messageHandler.load() != qDefaultMessageHandler
messageHandler...MessageHandlerDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
) {
1
1082 (*messageHandler.load())(msgType, context, message);-
1083 }
executed 227133 times by 162 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
else {
227133
1084 (*msgHandler.load())(msgType, message.toLocal8Bit().constData());-
1085 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_qmessagehandler
1
1086 ungrabMessageHandler();-
1087 }
executed 227134 times by 162 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
else {
227134
1088 fprintf(stderr, "%s\n", message.toLocal8Bit().constData());-
1089 }
never executed: end of block
0
1090}-
1091-
1092static void qt_message_fatal(QtMsgType, const QMessageLogContext &context, const QString &message)-
1093{-
1094 (void)context;;-
1095 (void)message;;-
1096-
1097-
1098-
1099 abort();
executed 47 times by 2 tests: abort();
Executed by:
  • tst_qnetworkreply - unknown status
  • tst_selftests - unknown status
47
1100-
1101-
1102-
1103}-
1104-
1105-
1106-
1107-
1108-
1109void qt_message_output(QtMsgType msgType, const QMessageLogContext &context, const QString &message)-
1110{-
1111 qt_message_print(msgType, context, message);-
1112 if (isFatal(msgType)
isFatal(msgType)Description
TRUEnever evaluated
FALSEevaluated 15109 times by 66 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_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QLogging
  • ...
)
0-15109
1113 qt_message_fatal(msgType, context, message);
never executed: qt_message_fatal(msgType, context, message);
0
1114}
executed 15109 times by 66 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_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QLogging
  • ...
15109
1115-
1116void qErrnoWarning(const char *msg, ...)-
1117{-
1118-
1119-
1120 va_list ap;-
1121 __builtin_va_start(ap,msg);-
1122 QString buf = QString::vasprintf(msg, ap);-
1123 __builtin_va_end(ap);-
1124-
1125 buf += QLatin1String(" (") + qt_error_string(-1) + QLatin1Char(')');-
1126 QMessageLogContext context;-
1127 qt_message_output(QtCriticalMsg, context, buf);-
1128}
never executed: end of block
0
1129-
1130void qErrnoWarning(int code, const char *msg, ...)-
1131{-
1132-
1133-
1134 va_list ap;-
1135 __builtin_va_start(ap,msg);-
1136 QString buf = QString::vasprintf(msg, ap);-
1137 __builtin_va_end(ap);-
1138-
1139 buf += QLatin1String(" (") + qt_error_string(code) + QLatin1Char(')');-
1140 QMessageLogContext context;-
1141 qt_message_output(QtCriticalMsg, context, buf);-
1142}
never executed: end of block
0
1143QtMessageHandler qInstallMessageHandler(QtMessageHandler h)-
1144{-
1145 if (!h
!hDescription
TRUEevaluated 172 times by 2 tests
Evaluated by:
  • tst_QDebug
  • tst_qmessagehandler
FALSEevaluated 2787 times by 540 tests
Evaluated 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
  • ...
)
172-2787
1146 h = qDefaultMessageHandler;
executed 172 times by 2 tests: h = qDefaultMessageHandler;
Executed by:
  • tst_QDebug
  • tst_qmessagehandler
172
1147-
1148 return
executed 2959 times by 540 tests: return messageHandler.fetchAndStoreRelaxed(h);
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
  • ...
messageHandler.fetchAndStoreRelaxed(h);
executed 2959 times by 540 tests: return messageHandler.fetchAndStoreRelaxed(h);
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
  • ...
2959
1149}-
1150-
1151QtMsgHandler qInstallMsgHandler(QtMsgHandler h)-
1152{-
1153 if (!h
!hDescription
TRUEevaluated 169 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qmessagehandler
)
3-169
1154 h = qDefaultMsgHandler;
executed 169 times by 1 test: h = qDefaultMsgHandler;
Executed by:
  • tst_qmessagehandler
169
1155-
1156 return
executed 172 times by 1 test: return msgHandler.fetchAndStoreRelaxed(h);
Executed by:
  • tst_qmessagehandler
msgHandler.fetchAndStoreRelaxed(h);
executed 172 times by 1 test: return msgHandler.fetchAndStoreRelaxed(h);
Executed by:
  • tst_qmessagehandler
172
1157}-
1158-
1159void qSetMessagePattern(const QString &pattern)-
1160{-
1161 QMutexLocker lock(&QMessagePattern::mutex);-
1162-
1163 if (!qMessagePattern()->fromEnvironment
!qMessagePatte...romEnvironmentDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 26 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
)
9-26
1164 qMessagePattern()->setPattern(pattern);
executed 9 times by 2 tests: qMessagePattern()->setPattern(pattern);
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
9
1165}
executed 35 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
35
1166-
1167-
1168-
1169-
1170-
1171-
1172void QMessageLogContext::copy(const QMessageLogContext &logContext)-
1173{-
1174 this->category = logContext.category;-
1175 this->file = logContext.file;-
1176 this->line = logContext.line;-
1177 this->function = logContext.function;-
1178}
executed 15107 times by 66 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_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QLogging
  • ...
15107
1179-
Switch to Source codePreprocessed file

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