OpenCoverage

qqmldebugmessageclient.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qmldebug/qqmldebugmessageclient.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QQmlDebugMessageClient::QQmlDebugMessageClient(QQmlDebugConnection *client)-
5 : QQmlDebugClient(QLatin1String("DebugMessages"), client)-
6{-
7}
executed 36 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
36
8-
9void QQmlDebugMessageClient::messageReceived(const QByteArray &data)-
10{-
11 QDataStream ds(data);-
12 QByteArray command;-
13 ds >> command;-
14-
15 if (command == "MESSAGE"
command == "MESSAGE"Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlprofilerservice
FALSEnever evaluated
) {
0-18
16 int type;-
17 int line;-
18 QByteArray debugMessage;-
19 QByteArray file;-
20 QByteArray function;-
21 ds >> type >> debugMessage >> file >> line >> function;-
22 QQmlDebugContextInfo info;-
23 info.line = line;-
24 info.file = QString::fromUtf8(file);-
25 info.function = QString::fromUtf8(function);-
26 info.timestamp = -1;-
27 if (!ds.atEnd()
!ds.atEnd()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlprofilerservice
FALSEnever evaluated
) {
0-18
28 QByteArray category;-
29 ds >> category;-
30 info.category = QString::fromUtf8(category);-
31 if (!ds.atEnd()
!ds.atEnd()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlprofilerservice
FALSEnever evaluated
)
0-18
32 ds >> info.timestamp;
executed 18 times by 1 test: ds >> info.timestamp;
Executed by:
  • tst_qqmlprofilerservice
18
33 }
executed 18 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
18
34 message(QtMsgType(type), QString::fromUtf8(debugMessage), info);-
35 }
executed 18 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
18
36}
executed 18 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
18
37-
38-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0