OpenCoverage

qpacket.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/plugins/qmltooling/packetprotocol/qpacket.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3QPacket::QPacket(int version)-
4{-
5 buf.open(QIODevice::WriteOnly);-
6 setDevice(&buf);-
7 setVersion(version);-
8}
executed 16167 times by 12 tests: end of block
Executed by:
  • tst_qdebugmessageservice
  • tst_qpacketprotocol
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
16167
9-
10-
11-
12-
13QPacket::QPacket(int version, const QByteArray &data)-
14{-
15 buf.setData(data);-
16 buf.open(QIODevice::ReadOnly);-
17 setDevice(&buf);-
18 setVersion(version);-
19}
executed 12797 times by 12 tests: end of block
Executed by:
  • tst_qdebugmessageservice
  • tst_qpacketprotocol
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
12797
20-
21-
22-
23-
24const QByteArray &QPacket::data() const-
25{-
26 return
executed 8771 times by 12 tests: return buf.data();
Executed by:
  • tst_qdebugmessageservice
  • tst_qpacketprotocol
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
buf.data();
executed 8771 times by 12 tests: return buf.data();
Executed by:
  • tst_qdebugmessageservice
  • tst_qpacketprotocol
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
8771
27}-
28-
29-
30-
31-
32-
33QByteArray QPacket::squeezedData() const-
34{-
35 QByteArray ret = buf.data();-
36 ret.squeeze();-
37 return
executed 312 times by 1 test: return ret;
Executed by:
  • tst_qqmlprofilerservice
ret;
executed 312 times by 1 test: return ret;
Executed by:
  • tst_qqmlprofilerservice
312
38}-
39-
40-
41-
42-
43void QPacket::clear()-
44{-
45 buf.reset();-
46 QByteArray &buffer = buf.buffer();-
47-
48 buffer.reserve(buffer.capacity());-
49 buffer.truncate(0);-
50}
executed 312 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
312
51-
52-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0