| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qmldebug/qqmldebugmessageclient.cpp | 
| Switch to Source code | Preprocessed file | 
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | QQmlDebugMessageClient::QQmlDebugMessageClient(QQmlDebugConnection *client) | - | ||||||
| 5 | : QQmlDebugClient(QLatin1String("DebugMessages"), client) | - | ||||||
| 6 | { | - | ||||||
| 7 | } executed 36 times by 1 test:  end of blockExecuted by: 
  | 36 | ||||||
| 8 | - | |||||||
| 9 | void QQmlDebugMessageClient::messageReceived(const QByteArray &data) | - | ||||||
| 10 | { | - | ||||||
| 11 | QDataStream ds(data); | - | ||||||
| 12 | QByteArray command; | - | ||||||
| 13 | ds >> command; | - | ||||||
| 14 | - | |||||||
| 15 |     if (command == "MESSAGE"
  | 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()
  | 0-18 | ||||||
| 28 | QByteArray category; | - | ||||||
| 29 | ds >> category; | - | ||||||
| 30 | info.category = QString::fromUtf8(category); | - | ||||||
| 31 |             if (!ds.atEnd()
  | 0-18 | ||||||
| 32 |                 ds >> info.timestamp; executed 18 times by 1 test:  ds >> info.timestamp;Executed by: 
  | 18 | ||||||
| 33 |         } executed 18 times by 1 test:  end of blockExecuted by: 
  | 18 | ||||||
| 34 | message(QtMsgType(type), QString::fromUtf8(debugMessage), info); | - | ||||||
| 35 |     } executed 18 times by 1 test:  end of blockExecuted by: 
  | 18 | ||||||
| 36 | } executed 18 times by 1 test:  end of blockExecuted by: 
  | 18 | ||||||
| 37 | - | |||||||
| 38 | - | |||||||
| Switch to Source code | Preprocessed file |