OpenCoverage

qquickutilmodule.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickutilmodule.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7 template <> struct QMetaTypeId< QKeySequence::StandardKey > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const
const int id =....loadAcquire()Description
TRUEevaluated 86 times by 2 tests
Evaluated by:
  • tst_qqmlenginecleanup
  • tst_qqmltypeloader
FALSEevaluated 288 times by 132 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
int id = metatype_id.loadAcquire()
const int id =....loadAcquire()Description
TRUEevaluated 86 times by 2 tests
Evaluated by:
  • tst_qqmlenginecleanup
  • tst_qqmltypeloader
FALSEevaluated 288 times by 132 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
) return
executed 86 times by 2 tests: return id;
Executed by:
  • tst_qqmlenginecleanup
  • tst_qqmltypeloader
id;
executed 86 times by 2 tests: return id;
Executed by:
  • tst_qqmlenginecleanup
  • tst_qqmltypeloader
const int newId = qRegisterMetaType< QKeySequence::StandardKey >("QKeySequence::StandardKey", reinterpret_cast< QKeySequence::StandardKey *>(quintptr(-1))); metatype_id.storeRelease(newId); return
executed 288 times by 132 tests: return newId;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
newId;
executed 288 times by 132 tests: return newId;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
} };
86-288
8-
9-
10void QQuickUtilModule::defineModule()-
11{-
12-
13 qmlRegisterUncreatableType<QInputMethod>("QtQuick",2,0,"InputMethod",-
14 QInputMethod::tr("InputMethod is an abstract class"));-
15-
16 qmlRegisterUncreatableType<QQuickAbstractAnimation>("QtQuick",2,0,"Animation",QQuickAbstractAnimation::tr("Animation is an abstract class"));-
17-
18 qmlRegisterType<QQuickBehavior>("QtQuick",2,0,"Behavior");-
19 qmlRegisterType<QQuickColorAnimation>("QtQuick",2,0,"ColorAnimation");-
20 qmlRegisterType<QQuickSmoothedAnimation>("QtQuick",2,0,"SmoothedAnimation");-
21 qmlRegisterType<QQuickFontLoader>("QtQuick",2,0,"FontLoader");-
22 qmlRegisterType<QQuickNumberAnimation>("QtQuick",2,0,"NumberAnimation");-
23 qmlRegisterType<QQuickParallelAnimation>("QtQuick",2,0,"ParallelAnimation");-
24 qmlRegisterType<QQuickPauseAnimation>("QtQuick",2,0,"PauseAnimation");-
25 qmlRegisterType<QQuickPropertyAction>("QtQuick",2,0,"PropertyAction");-
26 qmlRegisterType<QQuickPropertyAnimation>("QtQuick",2,0,"PropertyAnimation");-
27 qmlRegisterType<QQuickRotationAnimation>("QtQuick",2,0,"RotationAnimation");-
28 qmlRegisterType<QQuickScriptAction>("QtQuick",2,0,"ScriptAction");-
29 qmlRegisterType<QQuickSequentialAnimation>("QtQuick",2,0,"SequentialAnimation");-
30 qmlRegisterType<QQuickSpringAnimation>("QtQuick",2,0,"SpringAnimation");-
31 qmlRegisterType<QQuickAnimationController>("QtQuick",2,0,"AnimationController");-
32 qmlRegisterType<QQuickStateChangeScript>("QtQuick",2,0,"StateChangeScript");-
33 qmlRegisterType<QQuickStateGroup>("QtQuick",2,0,"StateGroup");-
34 qmlRegisterType<QQuickState>("QtQuick",2,0,"State");-
35 qmlRegisterType<QQuickSystemPalette>("QtQuick",2,0,"SystemPalette");-
36 qmlRegisterType<QQuickTransition>("QtQuick",2,0,"Transition");-
37 qmlRegisterType<QQuickVector3dAnimation>("QtQuick",2,0,"Vector3dAnimation");-
38-
39-
40 qmlRegisterType<QValidator>();-
41 qmlRegisterType<QQuickIntValidator>("QtQuick",2,0,"IntValidator");-
42 qmlRegisterType<QQuickDoubleValidator>("QtQuick",2,0,"DoubleValidator");-
43 qmlRegisterType<QRegExpValidator>("QtQuick",2,0,"RegExpValidator");-
44-
45-
46 qmlRegisterUncreatableType<QQuickAnimator>("QtQuick", 2, 2, "Animator", QQuickAbstractAnimation::tr("Animator is an abstract class"));-
47 qmlRegisterType<QQuickXAnimator>("QtQuick", 2, 2, "XAnimator");-
48 qmlRegisterType<QQuickYAnimator>("QtQuick", 2, 2, "YAnimator");-
49 qmlRegisterType<QQuickScaleAnimator>("QtQuick", 2, 2, "ScaleAnimator");-
50 qmlRegisterType<QQuickRotationAnimator>("QtQuick", 2, 2, "RotationAnimator");-
51 qmlRegisterType<QQuickOpacityAnimator>("QtQuick", 2, 2, "OpacityAnimator");-
52-
53 qmlRegisterType<QQuickUniformAnimator>("QtQuick", 2, 2, "UniformAnimator");-
54-
55 qmlRegisterType<QQuickStateOperation>();-
56-
57 qmlRegisterCustomType<QQuickPropertyChanges>("QtQuick",2,0,"PropertyChanges", new QQuickPropertyChangesParser);-
58-
59-
60 qRegisterMetaType<QKeySequence::StandardKey>();-
61 qmlRegisterUncreatableType<QKeySequence, 2>("QtQuick", 2, 2, "StandardKey", ([]() noexcept -> QString { enum { Size = sizeof(u"" "Cannot create an instance of StandardKey.")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Cannot create an instance of StandardKey." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 374 times by 132 tests: return qstring_literal_temp;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
qstring_literal_temp;
executed 374 times by 132 tests: return qstring_literal_temp;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
}()));
374
62-
63-
64 qmlRegisterType<QQuickFontMetrics>("QtQuick", 2, 4, "FontMetrics");-
65 qmlRegisterType<QQuickTextMetrics>("QtQuick", 2, 4, "TextMetrics");-
66-
67-
68 qmlRegisterType<QQuickShortcut>("QtQuick", 2, 5, "Shortcut");-
69 qmlRegisterType<QQuickShortcut,1>("QtQuick", 2, 6, "Shortcut");-
70-
71 qmlRegisterType<QQuickShortcut,9>("QtQuick", 2, 9, "Shortcut");-
72-
73-
74 qmlRegisterUncreatableType<QQuickAbstractAnimation, 12>("QtQuick", 2, 12, "Animation",-
75 QQuickAbstractAnimation::tr("Animation is an abstract class"));-
76}
executed 374 times by 132 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
374
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0