OpenCoverage

qqmldebugconnector.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/debugger/qqmldebugconnector.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6namespace { namespace Q_QGS_QQmlDebugConnectorLoader { typedef QFactoryLoader 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 32 times by 7 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 32 times by 7 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
}
executed 32 times by 7 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ("org.qt-project.Qt.QQmlDebugConnectorFactory", QLatin1String("/qmltooling")))) : value ("org.qt-project.Qt.QQmlDebugConnectorFactory", QLatin1String("/qmltooling")) { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 32 times by 7 tests: return &holder.value;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
&holder.value;
executed 32 times by 7 tests: return &holder.value;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
} } } static QGlobalStatic<QFactoryLoader, Q_QGS_QQmlDebugConnectorLoader::innerFunction, Q_QGS_QQmlDebugConnectorLoader::guard> QQmlDebugConnectorLoader; QQmlDebugConnector *loadQQmlDebugConnector(const QString &key) { return
executed 32 times by 7 tests: return qLoadPlugin<QQmlDebugConnector, QQmlDebugConnectorFactory>(QQmlDebugConnectorLoader(), key);
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
qLoadPlugin<QQmlDebugConnector, QQmlDebugConnectorFactory>(QQmlDebugConnectorLoader(), key);
executed 32 times by 7 tests: return qLoadPlugin<QQmlDebugConnector, QQmlDebugConnectorFactory>(QQmlDebugConnectorLoader(), key);
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
} QList<QJsonObject> metaDataForQQmlDebugConnector() { return
never executed: return QQmlDebugConnectorLoader()->metaData();
QQmlDebugConnectorLoader()->metaData();
never executed: return QQmlDebugConnectorLoader()->metaData();
}
0-32
7-
8-
9namespace { namespace Q_QGS_QQmlDebugServiceLoader { typedef QFactoryLoader 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 32 times by 7 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 32 times by 7 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
}
executed 32 times by 7 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ("org.qt-project.Qt.QQmlDebugServiceFactory", QLatin1String("/qmltooling")))) : value ("org.qt-project.Qt.QQmlDebugServiceFactory", QLatin1String("/qmltooling")) { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 180 times by 7 tests: return &holder.value;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
&holder.value;
executed 180 times by 7 tests: return &holder.value;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
} } } static QGlobalStatic<QFactoryLoader, Q_QGS_QQmlDebugServiceLoader::innerFunction, Q_QGS_QQmlDebugServiceLoader::guard> QQmlDebugServiceLoader; QQmlDebugService *loadQQmlDebugService(const QString &key) { return
executed 148 times by 5 tests: return qLoadPlugin<QQmlDebugService, QQmlDebugServiceFactory>(QQmlDebugServiceLoader(), key);
Executed by:
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
qLoadPlugin<QQmlDebugService, QQmlDebugServiceFactory>(QQmlDebugServiceLoader(), key);
executed 148 times by 5 tests: return qLoadPlugin<QQmlDebugService, QQmlDebugServiceFactory>(QQmlDebugServiceLoader(), key);
Executed by:
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
} QList<QJsonObject> metaDataForQQmlDebugService() { return
executed 32 times by 7 tests: return QQmlDebugServiceLoader()->metaData();
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
QQmlDebugServiceLoader()->metaData();
executed 32 times by 7 tests: return QQmlDebugServiceLoader()->metaData();
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
}
0-180
10-
11int QQmlDebugConnector::s_dataStreamVersion = QDataStream::Qt_4_7;-
12-
13struct QQmlDebugConnectorParams {-
14 QString pluginKey;-
15 QStringList services;-
16 QString arguments;-
17 QQmlDebugConnector *instance;-
18-
19 QQmlDebugConnectorParams() : instance(nullptr)-
20 {-
21 if (QCoreApplication::instance()
QCoreApplication::instance()Description
TRUEevaluated 336 times by 152 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
FALSEnever evaluated
) {
0-336
22 QCoreApplicationPrivate *appD =-
23 static_cast<QCoreApplicationPrivate*>(QObjectPrivate::get(QCoreApplication::instance()));-
24 if (appD
appDDescription
TRUEevaluated 336 times by 152 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
FALSEnever evaluated
)
0-336
25 arguments = appD->qmljsDebugArgumentsString();
executed 336 times by 152 tests: arguments = appD->qmljsDebugArgumentsString();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
336
26 }
executed 336 times by 152 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
336
27 }
executed 336 times by 152 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
336
28};-
29-
30namespace { namespace Q_QGS_qmlDebugConnectorParams { typedef QQmlDebugConnectorParams 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 336 times by 152 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 336 times by 152 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
}
executed 336 times by 152 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 440896 times by 152 tests: return &holder.value;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
&holder.value;
executed 440896 times by 152 tests: return &holder.value;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
} } } static QGlobalStatic<QQmlDebugConnectorParams, Q_QGS_qmlDebugConnectorParams::innerFunction, Q_QGS_qmlDebugConnectorParams::guard> qmlDebugConnectorParams;
0-440896
31-
32void QQmlDebugConnector::setPluginKey(const QString &key)-
33{-
34 QQmlDebugConnectorParams *params = qmlDebugConnectorParams();-
35 if (params
paramsDescription
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
FALSEnever evaluated
&& params->pluginKey != key
params->pluginKey != keyDescription
TRUEevaluated 6 times by 3 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
FALSEevaluated 6 times by 3 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
) {
0-12
36 if (params->instance
params->instanceDescription
TRUEnever evaluated
FALSEevaluated 6 times by 3 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
)
0-6
37 QMessageLogger(__FILE__, 87, __PRETTY_FUNCTION__).warning() << "QML debugger: Cannot set plugin key after loading the plugin.";
never executed: QMessageLogger(__FILE__, 87, __PRETTY_FUNCTION__).warning() << "QML debugger: Cannot set plugin key after loading the plugin.";
0
38 else-
39 params->pluginKey = key;
executed 6 times by 3 tests: params->pluginKey = key;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
6
40 }-
41}
executed 12 times by 3 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
12
42-
43void QQmlDebugConnector::setServices(const QStringList &services)-
44{-
45 QQmlDebugConnectorParams *params = qmlDebugConnectorParams();-
46 if (params
paramsDescription
TRUEevaluated 30 times by 6 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
FALSEnever evaluated
)
0-30
47 params->services = services;
executed 30 times by 6 tests: params->services = services;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
30
48}
executed 30 times by 6 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
30
49-
50QString QQmlDebugConnector::commandLineArguments()-
51{-
52 QQmlDebugConnectorParams *params = qmlDebugConnectorParams();-
53 if (!params
!paramsDescription
TRUEnever evaluated
FALSEevaluated 32 times by 7 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
)
0-32
54 return
never executed: return QString();
QString();
never executed: return QString();
0
55 return
executed 32 times by 7 tests: return params->arguments;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
params->arguments;
executed 32 times by 7 tests: return params->arguments;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
32
56}-
57-
58QQmlDebugConnector *QQmlDebugConnector::instance()-
59{-
60 QQmlDebugConnectorParams *params = qmlDebugConnectorParams();-
61 if (!params
!paramsDescription
TRUEnever evaluated
FALSEevaluated 440790 times by 152 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • ...
)
0-440790
62 return
never executed: return nullptr;
nullptr;
never executed: return nullptr;
0
63-
64 if (!QQmlEnginePrivate::qml_debugging_enabled
!QQmlEnginePri...ugging_enabledDescription
TRUEevaluated 430777 times by 142 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • ...
FALSEevaluated 10013 times by 14 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
) {
10013-430777
65 if (!params->arguments.isEmpty()
!params->arguments.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 430777 times by 142 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • ...
) {
0-430777
66 QMessageLogger(__FILE__, 116, __PRETTY_FUNCTION__).warning().noquote() << QString::fromLatin1(-
67 "QML Debugger: Ignoring \"-qmljsdebugger=%1\". Debugging "-
68 "has not been enabled.").arg(params->arguments);-
69 params->arguments.clear();-
70 }
never executed: end of block
0
71 return
executed 430777 times by 142 tests: return nullptr;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • ...
nullptr;
executed 430777 times by 142 tests: return nullptr;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • ...
430777
72 }-
73-
74 if (!params->instance
!params->instanceDescription
TRUEevaluated 9283 times by 14 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 730 times by 7 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
) {
730-9283
75 if (!params->pluginKey.isEmpty()
!params->pluginKey.isEmpty()Description
TRUEevaluated 6 times by 3 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
FALSEevaluated 9277 times by 11 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
) {
6-9277
76 params->instance = loadQQmlDebugConnector(params->pluginKey);-
77 }
executed 6 times by 3 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
else if (params->arguments.isEmpty()
params->arguments.isEmpty()Description
TRUEevaluated 9251 times by 7 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 26 times by 4 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
) {
6-9251
78 return
executed 9251 times by 7 tests: return nullptr;
Executed by:
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
nullptr;
executed 9251 times by 7 tests: return nullptr;
Executed by:
  • tst_qqmllistmodel
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
9251
79 } else if (params->arguments.startsWith(QLatin1String("connector:"))
params->argume..."connector:"))Description
TRUEnever evaluated
FALSEevaluated 26 times by 4 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
) {
0-26
80 static const int connectorBegin = int(strlen("connector:"));-
81-
82 int connectorEnd = params->arguments.indexOf(QLatin1Char(','), connectorBegin);-
83 if (connectorEnd == -1
connectorEnd == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
84 connectorEnd = params->arguments.length();
never executed: connectorEnd = params->arguments.length();
0
85-
86 params->instance = loadQQmlDebugConnector(params->arguments.mid(-
87 connectorBegin,-
88 connectorEnd - connectorBegin));-
89 }
never executed: end of block
else {
0
90 params->instance = loadQQmlDebugConnector(-
91 params->arguments.startsWith(QLatin1String("native")) ?-
92 ([]() noexcept -> QString { enum { Size = sizeof(u"" "QQmlNativeDebugConnector")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "QQmlNativeDebugConnector" }; 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_qqmlnativeconnector
qstring_literal_temp;
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qqmlnativeconnector
}()) :
2
93 ([]() noexcept -> QString { enum { Size = sizeof(u"" "QQmlDebugServer")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "QQmlDebugServer" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 24 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmldebugjs
  • tst_qqmlenginedebugservice
  • tst_qqmlprofilerservice
qstring_literal_temp;
executed 24 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmldebugjs
  • tst_qqmlenginedebugservice
  • tst_qqmlprofilerservice
}()));
24
94 }
executed 26 times by 4 tests: end of block
Executed by:
  • tst_qqmldebugjs
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
26
95-
96 if (params->instance
params->instanceDescription
TRUEevaluated 32 times by 7 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
FALSEnever evaluated
) {
0-32
97 const auto metaData = metaDataForQQmlDebugService();-
98 for (const QJsonObject &object : metaData) {-
99 const auto keys = object.value(QLatin1String("MetaData")).toObject()-
100 .value(QLatin1String("Keys")).toArray();-
101 for (const QJsonValue &key : keys) {-
102 QString keyString = key.toString();-
103 if (params->services.isEmpty()
params->services.isEmpty()Description
TRUEevaluated 126 times by 2 tests
Evaluated by:
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
FALSEevaluated 98 times by 5 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
|| params->services.contains(keyString)
params->servic...ins(keyString)Description
TRUEevaluated 22 times by 3 tests
Evaluated by:
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
FALSEevaluated 76 times by 5 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
)
22-126
104 loadQQmlDebugService(keyString);
executed 148 times by 5 tests: loadQQmlDebugService(keyString);
Executed by:
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
148
105 }
executed 224 times by 7 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
224
106 }
executed 160 times by 7 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
160
107 }
executed 32 times by 7 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
32
108 }
executed 32 times by 7 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
32
109-
110 return
executed 762 times by 7 tests: return params->instance;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
params->instance;
executed 762 times by 7 tests: return params->instance;
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
762
111}-
112-
113QQmlDebugConnectorFactory::~QQmlDebugConnectorFactory()-
114{-
115-
116 QQmlDebugConnectorParams *params = qmlDebugConnectorParams();-
117 if (params
paramsDescription
TRUEevaluated 32 times by 7 tests
Evaluated by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
FALSEnever evaluated
) {
0-32
118 params->pluginKey.clear();-
119 params->arguments.clear();-
120 params->services.clear();-
121 delete params->instance;-
122 params->instance = nullptr;-
123 }
executed 32 times by 7 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
32
124}
executed 32 times by 7 tests: end of block
Executed by:
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlenginedebugservice
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
32
125-
126-
127-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0