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 267528 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-267528
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 267489 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-267489
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 251597 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 15892 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 15892 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-251597
37 static bool fatalWarnings = !qEnvironmentVariableIsEmpty("QT_FATAL_WARNINGS");-
38 return
executed 251597 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 251597 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
  • ...
251597
39 }-
40-
41 return
executed 15892 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 15892 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
  • ...
15892
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 24 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-24
49 return
executed 24 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 24 times by 4 tests: return envcontrol;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
24
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 120 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 120 times by 4 tests: return logToConsole;
Executed by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
120
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 252232 times by 139 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 252232 times by 139 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
  • ...
252232
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 687 times by 29 tests
Evaluated by:
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QFileSystemWatcher
  • 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
  • ...
)
0-687
93 qt_message_fatal(QtDebugMsg, context, message);
never executed: qt_message_fatal(QtDebugMsg, context, message);
0
94}
executed 687 times by 29 tests: end of block
Executed by:
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QFileSystemWatcher
  • 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
  • ...
687
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 95 times by 3 tests
Evaluated by:
  • tst_QLogging
  • tst_qlogging - unknown status
  • tst_selftests - unknown status
)
0-95
103 qt_message_fatal(QtInfoMsg, context, message);
never executed: qt_message_fatal(QtInfoMsg, context, message);
0
104}
executed 95 times by 3 tests: end of block
Executed by:
  • tst_QLogging
  • tst_qlogging - unknown status
  • tst_selftests - unknown status
95
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 15095 times by 53 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_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • ...
dbg;
executed 15095 times by 53 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_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • ...
15095
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 251374 times by 126 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-251374
263 qt_message_fatal(QtWarningMsg, context, message);
never executed: qt_message_fatal(QtWarningMsg, context, message);
0
264}
executed 251374 times by 126 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
  • ...
251374
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 222 times by 19 tests: return dbg;
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QDebug
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QIODevice
  • tst_QLogging
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QNoDebug
  • tst_QObject
  • tst_QProcess
  • tst_QSqlQueryModel
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_qlogging - unknown status
dbg;
executed 222 times by 19 tests: return dbg;
Executed by:
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QDebug
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QIODevice
  • tst_QLogging
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QNoDebug
  • tst_QObject
  • tst_QProcess
  • tst_QSqlQueryModel
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_qlogging - unknown status
222
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 435 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-435
667 setPattern(QLatin1String(defaultPattern));-
668 }
executed 435 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 {
435
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 387 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 380 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)
380-387
677 delete [] literals[i];
executed 387 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
  • ...
387
678 delete [] literals;-
679 literals = 0;-
680 delete [] tokens;-
681 tokens = 0;-
682}
executed 380 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
  • ...
380
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 448 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-448
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 timeArgs.clear();-
693-
694 backtraceArgs.clear();-
695-
696-
697-
698 QList<QString> lexemes;-
699 QString lexeme;-
700 bool inPlaceholder = false;-
701 for (int i = 0; i < pattern.size()
i < pattern.size()Description
TRUEevaluated 21226 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 457 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) {
457-21226
702 const QChar c = pattern.at(i);-
703 if ((
(c == QLatin1Char('%'))Description
TRUEevaluated 1880 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 19346 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 1880 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 19346 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
  • ...
1880-19346
704 && !inPlaceholder
!inPlaceholderDescription
TRUEevaluated 1880 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-1880
705 if ((
(i + 1 < pattern.size())Description
TRUEevaluated 1880 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 1880 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-1880
706 && pattern.at(i + 1) == QLatin1Char('{')
pattern.at(i +...atin1Char('{')Description
TRUEevaluated 1880 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-1880
707-
708 if (!lexeme.isEmpty()
!lexeme.isEmpty()Description
TRUEevaluated 528 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 1352 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
  • ...
) {
528-1352
709 lexemes.append(lexeme);-
710 lexeme.clear();-
711 }
executed 528 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
  • ...
528
712 inPlaceholder = true;-
713 }
executed 1880 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
  • ...
1880
714 }
executed 1880 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
  • ...
1880
715-
716 lexeme.append(c);-
717-
718 if ((c == QLatin1Char('}')
c == QLatin1Char('}')Description
TRUEevaluated 1880 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 19346 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 1880 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-19346
719-
720 lexemes.append(lexeme);-
721 lexeme.clear();-
722 inPlaceholder = false;-
723 }
executed 1880 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
  • ...
1880
724 }
executed 21226 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
  • ...
21226
725 if (!lexeme.isEmpty()
!lexeme.isEmpty()Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 444 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-444
726 lexemes.append(lexeme);
executed 13 times by 1 test: lexemes.append(lexeme);
Executed by:
  • tst_qlogging - unknown status
13
727-
728-
729 QVarLengthArray<const char*> literalsVar;-
730 tokens = new const char*[lexemes.size() + 1];-
731 tokens[lexemes.size()] = 0;-
732-
733 bool nestedIfError = false;-
734 bool inIf = false;-
735 QString error;-
736-
737 for (int i = 0; i < lexemes.size()
i < lexemes.size()Description
TRUEevaluated 2421 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 457 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) {
457-2421
738 const QString lexeme = lexemes.at(i);-
739 if (lexeme.startsWith(QLatin1String("%{"))
lexeme.startsW...1String("%{"))Description
TRUEevaluated 1880 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 541 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
  • ...
541-1880
740 && lexeme.endsWith(QLatin1Char('}'))
lexeme.endsWit...tin1Char('}'))Description
TRUEevaluated 1880 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-1880
741-
742 if (lexeme == QLatin1String(typeTokenC)
lexeme == QLat...ng(typeTokenC)Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 1877 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-1877
743 tokens[i] = typeTokenC;-
744 }
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 442 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 1435 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-1435
745 tokens[i] = categoryTokenC;
executed 442 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
  • ...
442
746 else if (lexeme == QLatin1String(messageTokenC)
lexeme == QLat...messageTokenC)Description
TRUEevaluated 455 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 980 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
  • ...
)
455-980
747 tokens[i] = messageTokenC;
executed 455 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
  • ...
455
748 else if (lexeme == QLatin1String(fileTokenC)
lexeme == QLat...ng(fileTokenC)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 979 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-979
749 tokens[i] = fileTokenC;
executed 1 time by 1 test: tokens[i] = fileTokenC;
Executed by:
  • tst_qmessagehandler
1
750 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 977 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-977
751 tokens[i] = lineTokenC;
executed 2 times by 2 tests: tokens[i] = lineTokenC;
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
2
752 else if (lexeme == QLatin1String(functionTokenC)
lexeme == QLat...unctionTokenC)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 975 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-975
753 tokens[i] = functionTokenC;
executed 2 times by 2 tests: tokens[i] = functionTokenC;
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
2
754 else if (lexeme == QLatin1String(pidTokenC)
lexeme == QLat...ing(pidTokenC)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 974 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-974
755 tokens[i] = pidTokenC;
executed 1 time by 1 test: tokens[i] = pidTokenC;
Executed by:
  • tst_qlogging - unknown status
1
756 else if (lexeme == QLatin1String(appnameTokenC)
lexeme == QLat...appnameTokenC)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 973 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-973
757 tokens[i] = appnameTokenC;
executed 1 time by 1 test: tokens[i] = appnameTokenC;
Executed by:
  • tst_qlogging - unknown status
1
758 else if (lexeme == QLatin1String(threadidTokenC)
lexeme == QLat...hreadidTokenC)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 972 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-972
759 tokens[i] = threadidTokenC;
executed 1 time by 1 test: tokens[i] = threadidTokenC;
Executed by:
  • tst_qlogging - unknown status
1
760 else if (lexeme == QLatin1String(qthreadptrTokenC)
lexeme == QLat...readptrTokenC)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 971 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-971
761 tokens[i] = qthreadptrTokenC;
executed 1 time by 1 test: tokens[i] = qthreadptrTokenC;
Executed by:
  • tst_qlogging - unknown status
1
762 else if (lexeme.startsWith(QLatin1String(timeTokenC))
lexeme.startsW...g(timeTokenC))Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 965 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-965
763 tokens[i] = timeTokenC;-
764 int spaceIdx = lexeme.indexOf(QChar::fromLatin1(' '));-
765 if (spaceIdx > 0
spaceIdx > 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEnever evaluated
)
0-6
766 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
767 else-
768 timeArgs.append(QString());
never executed: timeArgs.append(QString());
0
769 } else if (lexeme.startsWith(QLatin1String(backtraceTokenC))
lexeme.startsW...ktraceTokenC))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 963 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-963
770-
771 tokens[i] = backtraceTokenC;-
772 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
773 int backtraceDepth = 5;-
774 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
775 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
776 QRegularExpressionMatch m = depthRx.match(lexeme);-
777 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
778 int depth = m.capturedRef(1).toInt();-
779 if (depth <= 0
depth <= 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
)
0-1
780 error += QLatin1String("QT_MESSAGE_PATTERN: %{backtrace} depth must be a number greater than 0\n");
never executed: error += QLatin1String("QT_MESSAGE_PATTERN: %{backtrace} depth must be a number greater than 0\n");
0
781 else-
782 backtraceDepth = depth;
executed 1 time by 1 test: backtraceDepth = depth;
Executed by:
  • tst_qlogging - unknown status
1
783 }-
784 m = separatorRx.match(lexeme);-
785 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
786 backtraceSeparator = m.captured(1);
executed 1 time by 1 test: backtraceSeparator = m.captured(1);
Executed by:
  • tst_qlogging - unknown status
1
787 BacktraceParams backtraceParams;-
788 backtraceParams.backtraceDepth = backtraceDepth;-
789 backtraceParams.backtraceSeparator = backtraceSeparator;-
790 backtraceArgs.append(backtraceParams);-
791-
792-
793-
794-
795 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
2
796 else if (lexeme == QLatin1String(ifCategoryTokenC)
lexeme == QLat...ategoryTokenC)Description
TRUEevaluated 442 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 521 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 442 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 442 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-521
797 else if (lexeme == QLatin1String(ifDebugTokenC)
lexeme == QLat...ifDebugTokenC)Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 512 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-512
798 else if (lexeme == QLatin1String(ifInfoTokenC)
lexeme == QLat...(ifInfoTokenC)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 506 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-506
799 else if (lexeme == QLatin1String(ifWarningTokenC)
lexeme == QLat...WarningTokenC)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 496 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-496
800 else if (lexeme == QLatin1String(ifCriticalTokenC)
lexeme == QLat...riticalTokenC)Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 489 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-489
801 else if (lexeme == QLatin1String(ifFatalTokenC)
lexeme == QLat...ifFatalTokenC)Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 482 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-482
802-
803 else if (lexeme == QLatin1String(endifTokenC)
lexeme == QLat...g(endifTokenC)Description
TRUEevaluated 480 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-480
804 tokens[i] = endifTokenC;-
805 if (!inIf
!inIfDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 479 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-479
806 error += QLatin1String("QT_MESSAGE_PATTERN: %{endif} without an %{if-*}\n");
executed 1 time by 1 test: error += QLatin1String("QT_MESSAGE_PATTERN: %{endif} without an %{if-*}\n");
Executed by:
  • tst_qlogging - unknown status
1
807 inIf = false;-
808 }
executed 480 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 {
480
809 tokens[i] = emptyTokenC;-
810 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
811 .arg(lexeme);-
812 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
2
813 } else {-
814 char *literal = new char[lexeme.size() + 1];-
815 strncpy(literal, lexeme.toLatin1().constData(), lexeme.size());-
816 literal[lexeme.size()] = '\0';-
817 literalsVar.append(literal);-
818 tokens[i] = literal;-
819 }
executed 541 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
  • ...
541
820 }-
821 if (nestedIfError
nestedIfErrorDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 456 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-456
822 error += QLatin1String("QT_MESSAGE_PATTERN: %{if-*} cannot be nested\n");
executed 1 time by 1 test: error += QLatin1String("QT_MESSAGE_PATTERN: %{if-*} cannot be nested\n");
Executed by:
  • tst_qlogging - unknown status
1
823 else if (inIf
inIfDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 455 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-455
824 error += QLatin1String("QT_MESSAGE_PATTERN: missing %{endif}\n");
executed 1 time by 1 test: error += QLatin1String("QT_MESSAGE_PATTERN: missing %{endif}\n");
Executed by:
  • tst_qlogging - unknown status
1
825 if (!error.isEmpty()
!error.isEmpty()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 454 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-454
826 {-
827 fprintf(stderr, "%s", error.toLocal8Bit().constData());-
828 fflush(stderr);-
829 }-
830 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
3
831 literals = new const char*[literalsVar.size() + 1];-
832 literals[literalsVar.size()] = 0;-
833 memcpy(literals, literalsVar.constData(), literalsVar.size() * sizeof(const char*));-
834}
executed 457 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
  • ...
457
835static QStringList backtraceFramesForLogMessage(int frameCount)-
836{-
837 QStringList result;-
838 if (frameCount == 0
frameCount == 0Description
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
)
0-16
839 return
never executed: return result;
result;
never executed: return result;
0
840-
841-
842-
843-
844-
845-
846 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; }()),-
847 QRegularExpression::OptimizeOnFirstUsageOption);-
848-
849 QVarLengthArray<void*, 32> buffer(7 + frameCount);-
850 int n = backtrace(buffer.data(), buffer.size());-
851 if (n > 0
n > 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEnever evaluated
) {
0-16
852 int numberPrinted = 0;-
853 for (int i = 0; i < n
i < nDescription
TRUEevaluated 156 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
&& numberPrinted < frameCount
numberPrinted < frameCountDescription
TRUEevaluated 156 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEnever evaluated
; ++i) {
0-156
854 QScopedPointer<char*, QScopedPointerPodDeleter> strings(backtrace_symbols(buffer.data() + i, 1));-
855 QString trace = QString::fromLatin1(strings.data()[0]);-
856 QRegularExpressionMatch m = rx.match(trace);-
857 if (m.hasMatch()
m.hasMatch()Description
TRUEevaluated 156 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEnever evaluated
) {
0-156
858 QString library = m.captured(1);-
859 QString function = m.captured(2);-
860-
861-
862 if (!numberPrinted
!numberPrintedDescription
TRUEevaluated 128 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 112 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
16-128
863 && (function.isEmpty()
function.isEmpty()Description
TRUEevaluated 76 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-76
864 || 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
865 continue;
executed 112 times by 1 test: continue;
Executed by:
  • tst_qlogging - unknown status
112
866 }-
867-
868 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
869 QScopedPointer<char, QScopedPointerPodDeleter> demangled(-
870 abi::__cxa_demangle(function.toUtf8(), 0, 0, 0));-
871 if (demangled
demangledDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEnever evaluated
)
0-8
872 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
873 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
8
874-
875 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
876 result.append(QLatin1Char('?') + library + QLatin1Char('?'));-
877 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
else {
10
878 result.append(function);-
879 }
executed 34 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
34
880 } else {-
881 if (numberPrinted == 0
numberPrinted == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
882-
883 continue;
never executed: continue;
0
884 }-
885 result.append(([]() -> 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
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}()));
0
886 }
never executed: end of block
0
887 numberPrinted++;-
888 }
executed 44 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
44
889 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
16
890 return
executed 16 times by 1 test: return result;
Executed by:
  • tst_qlogging - unknown status
result;
executed 16 times by 1 test: return result;
Executed by:
  • tst_qlogging - unknown status
16
891}-
892-
893static QString formatBacktraceForLogMessage(const QMessagePattern::BacktraceParams backtraceParams,-
894 const char *function)-
895{-
896 QString backtraceSeparator = backtraceParams.backtraceSeparator;-
897 int backtraceDepth = backtraceParams.backtraceDepth;-
898-
899 QStringList frames = backtraceFramesForLogMessage(backtraceDepth);-
900 if (frames.isEmpty()
frames.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
)
0-16
901 return
never executed: return QString();
QString();
never executed: return QString();
0
902-
903-
904 if (function
functionDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEnever evaluated
&& frames.at(0).startsWith(QLatin1Char('?'))
frames.at(0).s...tin1Char('?'))Description
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
)
0-16
905 frames[0] = QString::fromUtf8(qCleanupFuncinfo(function));
never executed: frames[0] = QString::fromUtf8(qCleanupFuncinfo(function));
0
906-
907 return
executed 16 times by 1 test: return frames.join(backtraceSeparator);
Executed by:
  • tst_qlogging - unknown status
frames.join(backtraceSeparator);
executed 16 times by 1 test: return frames.join(backtraceSeparator);
Executed by:
  • tst_qlogging - unknown status
16
908}-
909namespace { 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 380 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 380 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 380 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 254330 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 254330 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-254330
910QString qFormatLogMessage(QtMsgType type, const QMessageLogContext &context, const QString &str)-
911{-
912 QString message;-
913-
914 QMutexLocker lock(&QMessagePattern::mutex);-
915-
916 QMessagePattern *pattern = qMessagePattern();-
917 if (!pattern
!patternDescription
TRUEnever evaluated
FALSEevaluated 254286 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-254286
918-
919 message.append(str);-
920 return
never executed: return message;
message;
never executed: return message;
0
921 }-
922-
923 bool skip = false;-
924-
925-
926 int timeArgsIdx = 0;-
927-
928 int backtraceArgsIdx = 0;-
929-
930-
931-
932-
933 for (int i = 0; pattern->tokens[i] != 0
pattern->tokens[i] != 0Description
TRUEevaluated 1271809 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 254286 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) {
254286-1271809
934 const char *token = pattern->tokens[i];-
935 if (token == endifTokenC
token == endifTokenCDescription
TRUEevaluated 254276 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 1017533 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
  • ...
) {
254276-1017533
936 skip = false;-
937 }
executed 254276 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 508439 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 509094 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
  • ...
) {
254276-509094
938-
939-
940-
941 if (token == timeTokenC
token == timeTokenCDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 508429 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-508429
942 timeArgsIdx++;
executed 10 times by 1 test: timeArgsIdx++;
Executed by:
  • tst_qlogging - unknown status
10
943-
944 else if (token == backtraceTokenC
token == backtraceTokenCDescription
TRUEnever evaluated
FALSEevaluated 508429 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-508429
945 backtraceArgsIdx++;
never executed: backtraceArgsIdx++;
0
946-
947-
948 }
executed 508439 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 254276 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 254818 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
  • ...
) {
254276-508439
949 message.append(str);-
950 }
executed 254276 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 254815 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-254815
951 message.append(QLatin1String(context.category));-
952 }
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 254801 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-254801
953 switch (type) {-
954 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
955 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
956 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
957 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
958 case
never executed: case QtFatalMsg:
QtFatalMsg:
never executed: case QtFatalMsg:
message.append(QLatin1String("fatal")); break;
never executed: break;
0
959 }-
960 }
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 254800 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-254800
961 if (context.file
context.fileDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEnever evaluated
)
0-1
962 message.append(QLatin1String(context.file));
executed 1 time by 1 test: message.append(QLatin1String(context.file));
Executed by:
  • tst_qmessagehandler
1
963 else-
964 message.append(QLatin1String("unknown"));
never executed: message.append(QLatin1String("unknown"));
0
965 } else if (token == lineTokenC
token == lineTokenCDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 254791 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-254791
966 message.append(QString::number(context.line));-
967 }
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 254782 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-254782
968 if (context.function
context.functionDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEnever evaluated
)
0-9
969 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
970 else-
971 message.append(QLatin1String("unknown"));
never executed: message.append(QLatin1String("unknown"));
0
972-
973 } else if (token == pidTokenC
token == pidTokenCDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 254774 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-254774
974 message.append(QString::number(QCoreApplication::applicationPid()));-
975 }
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 254766 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-254766
976 message.append(QCoreApplication::applicationName());-
977 }
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 254758 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-254758
978-
979 message.append(QString::number(qt_gettid()));-
980 }
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 254750 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-254750
981 message.append(QLatin1String("0x"));-
982 message.append(QString::number(qlonglong(QThread::currentThread()->currentThread()), 16));-
983-
984 }
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 254734 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-254734
985 QMessagePattern::BacktraceParams backtraceParams = pattern->backtraceArgs.at(backtraceArgsIdx);-
986 backtraceArgsIdx++;-
987 message.append(formatBacktraceForLogMessage(backtraceParams, context.function));-
988-
989 }
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 254696 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-254696
990 QString timeFormat = pattern->timeArgs.at(timeArgsIdx);-
991 timeArgsIdx++;-
992 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
993 quint64 ms = pattern->timer.elapsed();-
994 message.append(QString::asprintf("%6d.%03d", uint(ms / 1000), uint(ms % 1000)));-
995 }
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
996-
997-
998 QElapsedTimer now;-
999 now.start();-
1000 uint ms = now.msecsSinceReference();-
1001 message.append(QString::asprintf("%6d.%03d", uint(ms / 1000), uint(ms % 1000)));-
1002 }
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
1003 message.append(QDateTime::currentDateTime().toString(Qt::ISODate));-
1004 }
never executed: end of block
else {
0
1005 message.append(QDateTime::currentDateTime().toString(timeFormat));-
1006 }
executed 30 times by 1 test: end of block
Executed by:
  • tst_qlogging - unknown status
30
1007-
1008 } else if (token == ifCategoryTokenC
token == ifCategoryTokenCDescription
TRUEevaluated 254182 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-254182
1009 if (!context.category
!context.categoryDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_qmessagehandler
FALSEevaluated 254177 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 254174 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 254174 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-254177
1010 skip = true;
executed 254179 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
  • ...
254179
1011-
1012-
1013-
1014 }
executed 254182 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-254182
1015 }
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
1016 }
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
1017 }
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
1018 }
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
1019-
1020 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
else {
14
1021 message.append(QLatin1String(token));-
1022 }
executed 416 times by 3 tests: end of block
Executed by:
  • tst_QSslSocket
  • tst_qlogging - unknown status
  • tst_qmessagehandler
416
1023 }-
1024 return
executed 254286 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 254286 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
  • ...
254286
1025}-
1026-
1027-
1028-
1029typedef void (*QtMsgHandler)(QtMsgType, const char *);-
1030__attribute__((visibility("default"))) QtMsgHandler qInstallMsgHandler(QtMsgHandler);-
1031-
1032-
1033static void qDefaultMsgHandler(QtMsgType type, const char *buf);-
1034static void qDefaultMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &buf);-
1035-
1036-
1037static QBasicAtomicPointer<void (QtMsgType, const char*)> msgHandler = { qDefaultMsgHandler };-
1038-
1039static QBasicAtomicPointer<void (QtMsgType, const QMessageLogContext &, const QString &)> messageHandler = { qDefaultMessageHandler };-
1040static void qDefaultMessageHandler(QtMsgType type, const QMessageLogContext &context,-
1041 const QString &buf)-
1042{-
1043 QString logMessage = qFormatLogMessage(type, context, buf);-
1044-
1045-
1046-
1047 if (logMessage.isNull()
logMessage.isNull()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qlogging - unknown status
FALSEevaluated 120 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
)
2-120
1048 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qlogging - unknown status
2
1049-
1050 if (!qt_logging_to_console()
!qt_logging_to_console()Description
TRUEnever evaluated
FALSEevaluated 120 times by 4 tests
Evaluated by:
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
) {
0-120
1051 }
never executed: end of block
0
1052 fprintf(stderr, "%s\n", logMessage.toLocal8Bit().constData());-
1053 fflush(stderr);-
1054}
executed 120 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
120
1055-
1056-
1057-
1058-
1059static void qDefaultMsgHandler(QtMsgType type, const char *buf)-
1060{-
1061 QMessageLogContext emptyContext;-
1062 qDefaultMessageHandler(type, emptyContext, QString::fromLocal8Bit(buf));-
1063}
never executed: end of block
0
1064-
1065-
1066-
1067static thread_local bool msgHandlerGrabbed = false;-
1068-
1069static bool grabMessageHandler()-
1070{-
1071 if (msgHandlerGrabbed
msgHandlerGrabbedDescription
TRUEnever evaluated
FALSEevaluated 267571 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-267571
1072 return
never executed: return false;
false;
never executed: return false;
0
1073-
1074 msgHandlerGrabbed = true;-
1075 return
executed 267571 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 267571 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
  • ...
267571
1076}-
1077-
1078static void ungrabMessageHandler()-
1079{-
1080 msgHandlerGrabbed = false;-
1081}
executed 267571 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
  • ...
267571
1082-
1083-
1084-
1085-
1086-
1087-
1088static void qt_message_print(QtMsgType msgType, const QMessageLogContext &context, const QString &message)-
1089{-
1090-
1091-
1092 if (!context.category
!context.categoryDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDebug
FALSEevaluated 267581 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 255497 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 12084 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 255497 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 12084 times by 6 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNoDebug
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_qlogging - unknown status
) {
2-267581
1093 if (QLoggingCategory *defaultCategory = QLoggingCategory::defaultCategory()
QLoggingCatego...aultCategory()Description
TRUEevaluated 255499 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-255499
1094 if (!defaultCategory->isEnabled(msgType)
!defaultCatego...abled(msgType)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QLogging
FALSEevaluated 255487 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-255487
1095 return;
executed 12 times by 1 test: return;
Executed by:
  • tst_QLogging
12
1096 }
executed 255487 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
  • ...
255487
1097 }
executed 255487 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
  • ...
255487
1098-
1099-
1100-
1101-
1102 if (grabMessageHandler()
grabMessageHandler()Description
TRUEevaluated 267571 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-267571
1103-
1104 if (msgHandler.load() == qDefaultMsgHandler
msgHandler.loa...aultMsgHandlerDescription
TRUEevaluated 267569 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-267569
1105 || 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
1106 (*messageHandler.load())(msgType, context, message);-
1107 }
executed 267570 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 {
267570
1108 (*msgHandler.load())(msgType, message.toLocal8Bit().constData());-
1109 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_qmessagehandler
1
1110 ungrabMessageHandler();-
1111 }
executed 267571 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 {
267571
1112 fprintf(stderr, "%s\n", message.toLocal8Bit().constData());-
1113 }
never executed: end of block
0
1114}-
1115-
1116static void qt_message_fatal(QtMsgType, const QMessageLogContext &context, const QString &message)-
1117{-
1118 (void)context;;-
1119 (void)message;;-
1120-
1121-
1122-
1123 abort();
executed 55 times by 2 tests: abort();
Executed by:
  • tst_qnetworkreply - unknown status
  • tst_selftests - unknown status
55
1124-
1125-
1126-
1127}-
1128-
1129-
1130-
1131-
1132-
1133void qt_message_output(QtMsgType msgType, const QMessageLogContext &context, const QString &message)-
1134{-
1135 qt_message_print(msgType, context, message);-
1136 if (isFatal(msgType)
isFatal(msgType)Description
TRUEnever evaluated
FALSEevaluated 15351 times by 64 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • ...
)
0-15351
1137 qt_message_fatal(msgType, context, message);
never executed: qt_message_fatal(msgType, context, message);
0
1138}
executed 15351 times by 64 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • ...
15351
1139-
1140void qErrnoWarning(const char *msg, ...)-
1141{-
1142-
1143-
1144 va_list ap;-
1145 __builtin_va_start(ap,msg);-
1146 QString buf = QString::vasprintf(msg, ap);-
1147 __builtin_va_end(ap);-
1148-
1149 buf += QLatin1String(" (") + qt_error_string(-1) + QLatin1Char(')');-
1150 QMessageLogContext context;-
1151 qt_message_output(QtCriticalMsg, context, buf);-
1152}
never executed: end of block
0
1153-
1154void qErrnoWarning(int code, const char *msg, ...)-
1155{-
1156-
1157-
1158 va_list ap;-
1159 __builtin_va_start(ap,msg);-
1160 QString buf = QString::vasprintf(msg, ap);-
1161 __builtin_va_end(ap);-
1162-
1163 buf += QLatin1String(" (") + qt_error_string(code) + QLatin1Char(')');-
1164 QMessageLogContext context;-
1165 qt_message_output(QtCriticalMsg, context, buf);-
1166}
never executed: end of block
0
1167QtMessageHandler qInstallMessageHandler(QtMessageHandler h)-
1168{-
1169 if (!h
!hDescription
TRUEevaluated 172 times by 2 tests
Evaluated by:
  • tst_QDebug
  • tst_qmessagehandler
FALSEevaluated 2953 times by 507 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-2953
1170 h = qDefaultMessageHandler;
executed 172 times by 2 tests: h = qDefaultMessageHandler;
Executed by:
  • tst_QDebug
  • tst_qmessagehandler
172
1171-
1172 return
executed 3125 times by 507 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 3125 times by 507 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
  • ...
3125
1173}-
1174-
1175QtMsgHandler qInstallMsgHandler(QtMsgHandler h)-
1176{-
1177 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
1178 h = qDefaultMsgHandler;
executed 169 times by 1 test: h = qDefaultMsgHandler;
Executed by:
  • tst_qmessagehandler
169
1179-
1180 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
1181}-
1182-
1183void qSetMessagePattern(const QString &pattern)-
1184{-
1185 QMutexLocker lock(&QMessagePattern::mutex);-
1186-
1187 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
1188 qMessagePattern()->setPattern(pattern);
executed 9 times by 2 tests: qMessagePattern()->setPattern(pattern);
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
9
1189}
executed 35 times by 2 tests: end of block
Executed by:
  • tst_qlogging - unknown status
  • tst_qmessagehandler
35
1190-
1191-
1192-
1193-
1194-
1195-
1196void QMessageLogContext::copy(const QMessageLogContext &logContext)-
1197{-
1198 this->category = logContext.category;-
1199 this->file = logContext.file;-
1200 this->line = logContext.line;-
1201 this->function = logContext.function;-
1202}
executed 15349 times by 64 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMdiSubWindow
  • ...
15349
1203-
Switch to Source codePreprocessed file

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