OpenCoverage

qqmllistaccessor.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/util/qqmllistaccessor.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8QQmlListAccessor::QQmlListAccessor()-
9: m_type(Invalid)-
10{-
11}
executed 5622 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
5622
12-
13QQmlListAccessor::~QQmlListAccessor()-
14{-
15}-
16-
17QVariant QQmlListAccessor::list() const-
18{-
19 return
executed 5492 times by 25 tests: return d;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
d;
executed 5492 times by 25 tests: return d;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
5492
20}-
21-
22void QQmlListAccessor::setList(const QVariant &v, QQmlEngine *engine)-
23{-
24 d = v;-
25-
26-
27-
28 if (d.userType() == qMetaTypeId<QJSValue>()
d.userType() =...Id<QJSValue>()Description
TRUEevaluated 46 times by 2 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qquickvisualdatamodel
FALSEevaluated 5436 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
)
46-5436
29 d = d.value<QJSValue>().toVariant();
executed 46 times by 2 tests: d = d.value<QJSValue>().toVariant();
Executed by:
  • tst_qqmlinstantiator
  • tst_qquickvisualdatamodel
46
30-
31 QQmlEnginePrivate *enginePrivate = engine
engineDescription
TRUEevaluated 4966 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 516 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
?QQmlEnginePrivate::get(engine):nullptr;
516-4966
32-
33 if (!d.isValid()
!d.isValid()Description
TRUEevaluated 548 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 4934 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) {
548-4934
34 m_type = Invalid;-
35 }
executed 548 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
else if (d.userType() == QVariant::StringList
d.userType() =...nt::StringListDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickrepeater
FALSEevaluated 4924 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) {
10-4924
36 m_type = StringList;-
37 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickrepeater
else if (d.userType() == QMetaType::QVariantList
d.userType() =...::QVariantListDescription
TRUEevaluated 194 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 4730 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) {
10-4730
38 m_type = VariantList;-
39 }
executed 194 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
else if (d.canConvert(QVariant::Int)
d.canConvert(QVariant::Int)Description
TRUEevaluated 546 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 4184 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
) {
194-4184
40 m_type = Integer;-
41 }
executed 546 times by 21 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
else if ((!enginePrivate
!enginePrivateDescription
TRUEnever evaluated
FALSEevaluated 4184 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
&& QQmlMetaType::isQObject(d.userType())
QQmlMetaType::...(d.userType())Description
TRUEnever evaluated
FALSEnever evaluated
) ||
0-4184
42 (enginePrivate
enginePrivateDescription
TRUEevaluated 4184 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
FALSEnever evaluated
&& enginePrivate->isQObject(d.userType())
enginePrivate-...(d.userType())Description
TRUEevaluated 3966 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
FALSEevaluated 218 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
)) {
0-4184
43 QObject *data = enginePrivate
enginePrivateDescription
TRUEevaluated 3966 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
FALSEnever evaluated
?enginePrivate->toQObject(d):QQmlMetaType::toQObject(d);
0-3966
44 d = QVariant::fromValue(data);-
45 m_type = Instance;-
46 }
executed 3966 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
else if (d.userType() == qMetaTypeId<QQmlListReference>()
d.userType() =...stReference>()Description
TRUEevaluated 22 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 196 times by 3 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qquickpositioners
  • tst_qquickrepeater
) {
22-3966
47 m_type = ListProperty;-
48 }
executed 22 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
else {
22
49 m_type = Instance;-
50 }
executed 196 times by 3 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qquickpositioners
  • tst_qquickrepeater
196
51}-
52-
53int QQmlListAccessor::count() const-
54{-
55 switch(m_type) {-
56 case
executed 530 times by 2 tests: case StringList:
Executed by:
  • tst_examples
  • tst_qquickrepeater
StringList:
executed 530 times by 2 tests: case StringList:
Executed by:
  • tst_examples
  • tst_qquickrepeater
530
57 return
executed 530 times by 2 tests: return qvariant_cast<QStringList>(d).count();
Executed by:
  • tst_examples
  • tst_qquickrepeater
qvariant_cast<QStringList>(d).count();
executed 530 times by 2 tests: return qvariant_cast<QStringList>(d).count();
Executed by:
  • tst_examples
  • tst_qquickrepeater
530
58 case
executed 6014 times by 9 tests: case VariantList:
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
VariantList:
executed 6014 times by 9 tests: case VariantList:
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
6014
59 return
executed 6014 times by 9 tests: return qvariant_cast<QVariantList>(d).count();
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
qvariant_cast<QVariantList>(d).count();
executed 6014 times by 9 tests: return qvariant_cast<QVariantList>(d).count();
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
6014
60 case
executed 1926 times by 3 tests: case ListProperty:
Executed by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
ListProperty:
executed 1926 times by 3 tests: case ListProperty:
Executed by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1926
61 return
executed 1926 times by 3 tests: return ((const QQmlListReference *)d.constData())->count();
Executed by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
((const QQmlListReference *)d.constData())->count();
executed 1926 times by 3 tests: return ((const QQmlListReference *)d.constData())->count();
Executed by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1926
62 case
executed 10 times by 1 test: case Instance:
Executed by:
  • tst_qquickvisualdatamodel
Instance:
executed 10 times by 1 test: case Instance:
Executed by:
  • tst_qquickvisualdatamodel
10
63 return
executed 10 times by 1 test: return 1;
Executed by:
  • tst_qquickvisualdatamodel
1;
executed 10 times by 1 test: return 1;
Executed by:
  • tst_qquickvisualdatamodel
10
64 case
executed 34212 times by 21 tests: case Integer:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
Integer:
executed 34212 times by 21 tests: case Integer:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
34212
65 return
executed 34212 times by 21 tests: return d.toInt();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
d.toInt();
executed 34212 times by 21 tests: return d.toInt();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
34212
66 default
never executed: default:
:
never executed: default:
0
67 case
never executed: case Invalid:
Invalid:
never executed: case Invalid:
0
68 return
never executed: return 0;
0;
never executed: return 0;
0
69 }-
70}-
71-
72QVariant QQmlListAccessor::at(int idx) const-
73{-
74 ((idx >= 0 && idx < count()) ? static_cast<void>(0) : qt_assert("idx >= 0 && idx < count()", __FILE__, 118));-
75 switch(m_type) {-
76 case
executed 130 times by 2 tests: case StringList:
Executed by:
  • tst_examples
  • tst_qquickrepeater
StringList:
executed 130 times by 2 tests: case StringList:
Executed by:
  • tst_examples
  • tst_qquickrepeater
130
77 return
executed 130 times by 2 tests: return QVariant::fromValue(qvariant_cast<QStringList>(d).at(idx));
Executed by:
  • tst_examples
  • tst_qquickrepeater
QVariant::fromValue(qvariant_cast<QStringList>(d).at(idx));
executed 130 times by 2 tests: return QVariant::fromValue(qvariant_cast<QStringList>(d).at(idx));
Executed by:
  • tst_examples
  • tst_qquickrepeater
130
78 case
executed 1442 times by 5 tests: case VariantList:
Executed by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
VariantList:
executed 1442 times by 5 tests: case VariantList:
Executed by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
1442
79 return
executed 1442 times by 5 tests: return qvariant_cast<QVariantList>(d).at(idx);
Executed by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
qvariant_cast<QVariantList>(d).at(idx);
executed 1442 times by 5 tests: return qvariant_cast<QVariantList>(d).at(idx);
Executed by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
1442
80 case
executed 494 times by 3 tests: case ListProperty:
Executed by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
ListProperty:
executed 494 times by 3 tests: case ListProperty:
Executed by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
494
81 return
executed 494 times by 3 tests: return QVariant::fromValue(((const QQmlListReference *)d.constData())->at(idx));
Executed by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
QVariant::fromValue(((const QQmlListReference *)d.constData())->at(idx));
executed 494 times by 3 tests: return QVariant::fromValue(((const QQmlListReference *)d.constData())->at(idx));
Executed by:
  • tst_examples
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
494
82 case
executed 2 times by 1 test: case Instance:
Executed by:
  • tst_qquickvisualdatamodel
Instance:
executed 2 times by 1 test: case Instance:
Executed by:
  • tst_qquickvisualdatamodel
2
83 return
executed 2 times by 1 test: return d;
Executed by:
  • tst_qquickvisualdatamodel
d;
executed 2 times by 1 test: return d;
Executed by:
  • tst_qquickvisualdatamodel
2
84 case
executed 8483 times by 21 tests: case Integer:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
Integer:
executed 8483 times by 21 tests: case Integer:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
8483
85 return
executed 8483 times by 21 tests: return QVariant(idx);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
QVariant(idx);
executed 8483 times by 21 tests: return QVariant(idx);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
  • tst_scenegraph
8483
86 default
never executed: default:
:
never executed: default:
0
87 case
never executed: case Invalid:
Invalid:
never executed: case Invalid:
0
88 return
never executed: return QVariant();
QVariant();
never executed: return QVariant();
0
89 }-
90}-
91-
92bool QQmlListAccessor::isValid() const-
93{-
94 return
never executed: return m_type != Invalid;
m_type != Invalid;
never executed: return m_type != Invalid;
0
95}-
96-
97-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0