OpenCoverage

qqmldebugclient.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qmldebug/qqmldebugclient.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5QQmlDebugClient::QQmlDebugClient(const QString &name, QQmlDebugConnection *parent) :-
6 QObject(*(new QQmlDebugClientPrivate(name, parent)), parent)-
7{-
8 QQmlDebugClientPrivate * const d = d_func();-
9 d->addToConnection();-
10}
executed 3180 times by 11 tests: end of block
Executed by:
  • tst_qdebugmessageservice
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
3180
11-
12QQmlDebugClient::QQmlDebugClient(QQmlDebugClientPrivate &dd) :-
13 QObject(dd, dd.connection.data())-
14{-
15 QQmlDebugClientPrivate * const d = d_func();-
16 d->addToConnection();-
17}
executed 80 times by 2 tests: end of block
Executed by:
  • tst_qqmlenginecontrol
  • tst_qqmlprofilerservice
80
18-
19QQmlDebugClient::~QQmlDebugClient()-
20{-
21 QQmlDebugClientPrivate * const d = d_func();-
22 if (d->connection && !d->connection->removeClient(d->name)
!d->connection...lient(d->name)Description
TRUEnever evaluated
FALSEevaluated 3198 times by 11 tests
Evaluated by:
  • tst_qdebugmessageservice
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
)
0-3198
23 QMessageLogger(__FILE__, 66, __PRETTY_FUNCTION__).warning() << "QQmlDebugClient: Plugin not registered" << d->name;
never executed: QMessageLogger(__FILE__, 66, __PRETTY_FUNCTION__).warning() << "QQmlDebugClient: Plugin not registered" << d->name;
0
24}
executed 3260 times by 11 tests: end of block
Executed by:
  • tst_qdebugmessageservice
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
3260
25-
26QQmlDebugClientPrivate::QQmlDebugClientPrivate(const QString &name,-
27 QQmlDebugConnection *connection) :-
28 name(name), connection(connection)-
29{-
30}
executed 3260 times by 11 tests: end of block
Executed by:
  • tst_qdebugmessageservice
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
3260
31-
32void QQmlDebugClientPrivate::addToConnection()-
33{-
34 QQmlDebugClient * const q = q_func();-
35 if (connection && !connection->addClient(name, q)
!connection->a...lient(name, q)Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
FALSEevaluated 3202 times by 11 tests
Evaluated by:
  • tst_qdebugmessageservice
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
) {
4-3202
36 QMessageLogger(__FILE__, 79, __PRETTY_FUNCTION__).warning() << "QQmlDebugClient: Conflicting plugin name" << name;-
37 connection = nullptr;-
38 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
4
39}
executed 3260 times by 11 tests: end of block
Executed by:
  • tst_qdebugmessageservice
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
3260
40-
41QString QQmlDebugClient::name() const-
42{-
43 const QQmlDebugClientPrivate * const d = d_func();-
44 return
executed 246 times by 4 tests: return d->name;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebuglocal
  • tst_qqmlprofilerservice
d->name;
executed 246 times by 4 tests: return d->name;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebuglocal
  • tst_qqmlprofilerservice
246
45}-
46-
47float QQmlDebugClient::serviceVersion() const-
48{-
49 const QQmlDebugClientPrivate * const d = d_func();-
50 return
executed 4 times by 2 tests: return d->connection->serviceVersion(d->name);
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
d->connection->serviceVersion(d->name);
executed 4 times by 2 tests: return d->connection->serviceVersion(d->name);
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
4
51}-
52-
53QQmlDebugClient::State QQmlDebugClient::state() const-
54{-
55 const QQmlDebugClientPrivate * const d = d_func();-
56 if (!d->connection
!d->connectionDescription
TRUEevaluated 58 times by 3 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
  • tst_qqmlenginedebugservice
FALSEevaluated 18653 times by 11 tests
Evaluated by:
  • tst_qdebugmessageservice
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
|| !d->connection->isConnected()
!d->connection->isConnected()Description
TRUEevaluated 54 times by 3 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
  • tst_qqmlprofilerservice
FALSEevaluated 18599 times by 11 tests
Evaluated by:
  • tst_qdebugmessageservice
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
)
54-18653
57 return
executed 112 times by 4 tests: return NotConnected;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
  • tst_qqmlenginedebugservice
  • tst_qqmlprofilerservice
NotConnected;
executed 112 times by 4 tests: return NotConnected;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
  • tst_qqmlenginedebugservice
  • tst_qqmlprofilerservice
112
58-
59 if (d->connection->serviceVersion(d->name) != -1
d->connection-...d->name) != -1Description
TRUEevaluated 17209 times by 11 tests
Evaluated by:
  • tst_qdebugmessageservice
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
FALSEevaluated 1390 times by 9 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
)
1390-17209
60 return
executed 17209 times by 11 tests: return Enabled;
Executed by:
  • tst_qdebugmessageservice
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
Enabled;
executed 17209 times by 11 tests: return Enabled;
Executed by:
  • tst_qdebugmessageservice
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
17209
61-
62 return
executed 1390 times by 9 tests: return Unavailable;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
Unavailable;
executed 1390 times by 9 tests: return Unavailable;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
1390
63}-
64-
65void QQmlDebugClient::sendMessage(const QByteArray &message)-
66{-
67 QQmlDebugClientPrivate * const d = d_func();-
68 d->connection->sendMessage(d->name, message);-
69}
executed 1782 times by 9 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginecontrol
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
1782
70-
71QQmlDebugConnection *QQmlDebugClient::connection() const-
72{-
73 const QQmlDebugClientPrivate * const d = d_func();-
74 return
executed 3787 times by 6 tests: return d->connection;
Executed by:
  • tst_qdebugmessageservice
  • tst_qqmldebugjs
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
d->connection;
executed 3787 times by 6 tests: return d->connection;
Executed by:
  • tst_qdebugmessageservice
  • tst_qqmldebugjs
  • tst_qqmlenginedebuginspectorintegration
  • tst_qqmlenginedebugservice
  • tst_qqmlinspector
  • tst_qqmlprofilerservice
3787
75}-
76-
77void QQmlDebugClient::messageReceived(const QByteArray &message)-
78{-
79 (void)message;;-
80}
executed 30 times by 2 tests: end of block
Executed by:
  • tst_qqmldebuggingenabler
  • tst_qqmldebugjs
30
81-
82-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0