OpenCoverage

qqmlcleanup.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlcleanup.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QQmlCleanup::QQmlCleanup()-
5: prev(nullptr), next(nullptr), engine(nullptr)-
6{-
7}
executed 260 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquicklayouts
  • tst_quicktestmainwithsetup
  • tst_testfiltering
260
8-
9-
10-
11-
12QQmlCleanup::QQmlCleanup(QQmlEngine *engine)-
13: prev(nullptr), next(nullptr), engine(nullptr)-
14{-
15 if (!engine
!engineDescription
TRUEevaluated 4768 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
FALSEevaluated 286 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlopenmetaobject
  • tst_qquickdesignersupport
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
)
286-4768
16 return;
executed 4768 times by 17 tests: return;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
4768
17-
18 addToEngine(engine);-
19}
executed 286 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlopenmetaobject
  • tst_qquickdesignersupport
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
286
20-
21-
22-
23-
24-
25void QQmlCleanup::addToEngine(QQmlEngine *engine)-
26{-
27 ((engine) ? static_cast<void>(0) : qt_assert("engine", __FILE__, 83));-
28 ((QQmlEnginePrivate::isEngineThread(engine)) ? static_cast<void>(0) : qt_assert("QQmlEnginePrivate::isEngineThread(engine)", __FILE__, 84));-
29-
30 this->engine = engine;-
31-
32 QQmlEnginePrivate *p = QQmlEnginePrivate::get(engine);-
33-
34 if (p->cleanup
p->cleanupDescription
TRUEevaluated 112 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickpathview
FALSEevaluated 424 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlopenmetaobject
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
) next = p->cleanup;
executed 112 times by 6 tests: next = p->cleanup;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickpathview
112-424
35 p->cleanup = this;-
36 prev = &p->cleanup;-
37 if (next
nextDescription
TRUEevaluated 112 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickpathview
FALSEevaluated 424 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlopenmetaobject
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
) next->prev = &next;
executed 112 times by 6 tests: next->prev = &next;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qquickpathview
112-424
38}
executed 536 times by 17 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmlopenmetaobject
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickdesignersupport
  • tst_qquicklayouts
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_testfiltering
536
39QQmlCleanup::~QQmlCleanup()-
40{-
41 ((!prev || engine) ? static_cast<void>(0) : qt_assert("!prev || engine", __FILE__, 107));-
42 ((!prev || QQmlEnginePrivate::isEngineThread(engine)) ? static_cast<void>(0) : qt_assert("!prev || QQmlEnginePrivate::isEngineThread(engine)", __FILE__, 108));-
43-
44 if (prev
prevDescription
TRUEevaluated 205 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 5103 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
) *
executed 205 times by 3 tests: *prev = next;
Executed by:
  • tst_examples
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
prev = next;
executed 205 times by 3 tests: *prev = next;
Executed by:
  • tst_examples
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
205-5103
45 if (next
nextDescription
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickpathview
FALSEevaluated 5292 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
) next->prev = prev;
executed 16 times by 2 tests: next->prev = prev;
Executed by:
  • tst_examples
  • tst_qquickpathview
16-5292
46 prev = nullptr;-
47 next = nullptr;-
48}
executed 5308 times by 23 tests: end of block
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_quicktestmainwithsetup
  • tst_signalspy
  • tst_testfiltering
5308
49-
50-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0