OpenCoverage

qqmllist.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmllist.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5QQmlListReferencePrivate::QQmlListReferencePrivate()-
6: propertyType(-1), refCount(1)-
7{-
8}
executed 208 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
208
9-
10QQmlListReference QQmlListReferencePrivate::init(const QQmlListProperty<QObject> &prop, int propType, QQmlEngine *engine)-
11{-
12 QQmlListReference rv;-
13-
14 if (!prop.object
!prop.objectDescription
TRUEnever evaluated
FALSEevaluated 56 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) return
never executed: return rv;
rv;
never executed: return rv;
0-56
15-
16 QQmlEnginePrivate *p = engine
engineDescription
TRUEevaluated 52 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmllistreference
  • tst_qquickitem2
?QQmlEnginePrivate::get(engine):nullptr;
4-52
17-
18 int listType = p
pDescription
TRUEevaluated 52 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qqmllistreference
  • tst_qquickitem2
?p->listType(propType):QQmlMetaType::listType(propType);
4-52
19 if (listType == -1
listType == -1Description
TRUEnever evaluated
FALSEevaluated 56 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) return
never executed: return rv;
rv;
never executed: return rv;
0-56
20-
21 rv.d = new QQmlListReferencePrivate;-
22 rv.d->object = prop.object;-
23 rv.d->elementType = QQmlPropertyPrivate::rawMetaObjectForType(p, listType);-
24 rv.d->property = prop;-
25 rv.d->propertyType = propType;-
26-
27 return
executed 56 times by 9 tests: return rv;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
rv;
executed 56 times by 9 tests: return rv;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
56
28}-
29-
30void QQmlListReferencePrivate::addref()-
31{-
32 ((refCount > 0) ? static_cast<void>(0) : qt_assert("refCount > 0", __FILE__, 74));-
33 ++refCount;-
34}
executed 78 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
78
35-
36void QQmlListReferencePrivate::release()-
37{-
38 ((refCount > 0) ? static_cast<void>(0) : qt_assert("refCount > 0", __FILE__, 80));-
39 --refCount;-
40 if (!refCount
!refCountDescription
TRUEevaluated 208 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
FALSEevaluated 78 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
)
78-208
41 delete this;
executed 208 times by 16 tests: delete this;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
208
42}
executed 286 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
286
43QQmlListReference::QQmlListReference()-
44: d(nullptr)-
45{-
46}
executed 86 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
86
47QQmlListReference::QQmlListReference(QObject *object, const char *property, QQmlEngine *engine)-
48: d(nullptr)-
49{-
50 if (!object
!objectDescription
TRUEnever evaluated
FALSEevaluated 182 times by 9 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickshape
  • tst_qquickstates
|| !property
!propertyDescription
TRUEnever evaluated
FALSEevaluated 182 times by 9 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickshape
  • tst_qquickstates
) return;
never executed: return;
0-182
51-
52 QQmlPropertyData local;-
53 QQmlPropertyData *data =-
54 QQmlPropertyCache::property(engine, object, QLatin1String(property), nullptr, local);-
55-
56 if (!data
!dataDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_qqmllistreference
FALSEevaluated 154 times by 9 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickshape
  • tst_qquickstates
|| !data->isQList()
!data->isQList()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistreference
FALSEevaluated 152 times by 9 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickshape
  • tst_qquickstates
) return;
executed 30 times by 1 test: return;
Executed by:
  • tst_qqmllistreference
2-154
57-
58 QQmlEnginePrivate *p = engine
engineDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 146 times by 9 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickshape
  • tst_qquickstates
?QQmlEnginePrivate::get(engine):nullptr;
6-146
59-
60 int listType = p
pDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 146 times by 9 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickshape
  • tst_qquickstates
?p->listType(data->propType()):QQmlMetaType::listType(data->propType());
6-146
61 if (listType == -1
listType == -1Description
TRUEnever evaluated
FALSEevaluated 152 times by 9 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickshape
  • tst_qquickstates
) return;
never executed: return;
0-152
62-
63 d = new QQmlListReferencePrivate;-
64 d->object = object;-
65 d->elementType = p
pDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlproperty
FALSEevaluated 146 times by 9 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickshape
  • tst_qquickstates
? p->rawMetaObjectForType(listType) : QQmlMetaType::qmlType(listType).baseMetaObject();
6-146
66 d->propertyType = data->propType();-
67-
68 void *args[] = { &d->property, nullptr };-
69 QMetaObject::metacall(object, QMetaObject::ReadProperty, data->coreIndex(), args);-
70}
executed 152 times by 9 tests: end of block
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickdesignersupport
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickshape
  • tst_qquickstates
152
71-
72-
73QQmlListReference::QQmlListReference(const QQmlListReference &o)-
74: d(o.d)-
75{-
76 if (d
dDescription
TRUEevaluated 76 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEnever evaluated
) d->addref();
executed 76 times by 9 tests: d->addref();
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
0-76
77}
executed 76 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
76
78-
79-
80QQmlListReference &QQmlListReference::operator=(const QQmlListReference &o)-
81{-
82 if (o.d
o.dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistreference
FALSEnever evaluated
) o.d->addref();
executed 2 times by 1 test: o.d->addref();
Executed by:
  • tst_qqmllistreference
0-2
83 if (d
dDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistreference
) d->release();
never executed: d->release();
0-2
84 d = o.d;-
85 return
executed 2 times by 1 test: return *this;
Executed by:
  • tst_qqmllistreference
*this;
executed 2 times by 1 test: return *this;
Executed by:
  • tst_qqmllistreference
2
86}-
87-
88-
89QQmlListReference::~QQmlListReference()-
90{-
91 if (d
dDescription
TRUEevaluated 286 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_qqmllistreference
) d->release();
executed 286 times by 16 tests: d->release();
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
58-286
92}
executed 344 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
344
93-
94-
95-
96-
97bool QQmlListReference::isValid() const-
98{-
99 return
executed 3194 times by 15 tests: return d && d->object;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
d && d->object;
executed 3194 times by 15 tests: return d && d->object;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
3194
100}-
101-
102-
103-
104-
105QObject *QQmlListReference::object() const-
106{-
107 if (isValid()
isValid()Description
TRUEevaluated 26 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmllistreference
) return
executed 26 times by 5 tests: return d->object;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
d->object;
executed 26 times by 5 tests: return d->object;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
12-26
108 else return
executed 12 times by 1 test: return nullptr;
Executed by:
  • tst_qqmllistreference
nullptr;
executed 12 times by 1 test: return nullptr;
Executed by:
  • tst_qqmllistreference
12
109}-
110const QMetaObject *QQmlListReference::listElementType() const-
111{-
112 if (isValid()
isValid()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmllistreference
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmllistreference
) return
executed 8 times by 1 test: return d->elementType.metaObject();
Executed by:
  • tst_qqmllistreference
d->elementType.metaObject();
executed 8 times by 1 test: return d->elementType.metaObject();
Executed by:
  • tst_qqmllistreference
8-12
113 else return
executed 12 times by 1 test: return nullptr;
Executed by:
  • tst_qqmllistreference
nullptr;
executed 12 times by 1 test: return nullptr;
Executed by:
  • tst_qqmllistreference
12
114}-
115-
116-
117-
118-
119-
120-
121-
122bool QQmlListReference::canAppend() const-
123{-
124 return
executed 30 times by 1 test: return (isValid() && d->property.append);
Executed by:
  • tst_qqmllistreference
(isValid() && d->property.append);
executed 30 times by 1 test: return (isValid() && d->property.append);
Executed by:
  • tst_qqmllistreference
30
125}-
126-
127-
128-
129-
130-
131-
132-
133bool QQmlListReference::canAt() const-
134{-
135 return
executed 852 times by 13 tests: return (isValid() && d->property.at);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
(isValid() && d->property.at);
executed 852 times by 13 tests: return (isValid() && d->property.at);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
852
136}-
137-
138-
139-
140-
141-
142-
143-
144bool QQmlListReference::canClear() const-
145{-
146 return
executed 32 times by 1 test: return (isValid() && d->property.clear);
Executed by:
  • tst_qqmllistreference
(isValid() && d->property.clear);
executed 32 times by 1 test: return (isValid() && d->property.clear);
Executed by:
  • tst_qqmllistreference
32
147}-
148-
149-
150-
151-
152-
153-
154-
155bool QQmlListReference::canCount() const-
156{-
157 return
executed 2160 times by 13 tests: return (isValid() && d->property.count);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickvisualdatamodel
(isValid() && d->property.count);
executed 2160 times by 13 tests: return (isValid() && d->property.count);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickvisualdatamodel
2160
158}-
159-
160-
161-
162-
163-
164-
165-
166bool QQmlListReference::isManipulable() const-
167{-
168 return
executed 16 times by 1 test: return (isValid() && d->property.append && d->property.count && d->property.at && d->property.clear);
Executed by:
  • tst_qqmllistreference
(isValid()
executed 16 times by 1 test: return (isValid() && d->property.append && d->property.count && d->property.at && d->property.clear);
Executed by:
  • tst_qqmllistreference
16
169 && d->property.append
executed 16 times by 1 test: return (isValid() && d->property.append && d->property.count && d->property.at && d->property.clear);
Executed by:
  • tst_qqmllistreference
16
170 && d->property.count
executed 16 times by 1 test: return (isValid() && d->property.append && d->property.count && d->property.at && d->property.clear);
Executed by:
  • tst_qqmllistreference
16
171 && d->property.at
executed 16 times by 1 test: return (isValid() && d->property.append && d->property.count && d->property.at && d->property.clear);
Executed by:
  • tst_qqmllistreference
16
172 && d->property.clear);
executed 16 times by 1 test: return (isValid() && d->property.append && d->property.count && d->property.at && d->property.clear);
Executed by:
  • tst_qqmllistreference
16
173}-
174-
175-
176-
177-
178-
179-
180-
181bool QQmlListReference::isReadable() const-
182{-
183 return
executed 16 times by 1 test: return (isValid() && d->property.count && d->property.at);
Executed by:
  • tst_qqmllistreference
(isValid() && d->property.count && d->property.at);
executed 16 times by 1 test: return (isValid() && d->property.count && d->property.at);
Executed by:
  • tst_qqmllistreference
16
184}-
185-
186-
187-
188-
189-
190-
191bool QQmlListReference::append(QObject *object) const-
192{-
193 if (!canAppend()
!canAppend()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qqmllistreference
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmllistreference
) return
executed 14 times by 1 test: return false;
Executed by:
  • tst_qqmllistreference
false;
executed 14 times by 1 test: return false;
Executed by:
  • tst_qqmllistreference
6-14
194-
195 if (object
objectDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmllistreference
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistreference
&& !QQmlMetaObject::canConvert(object, d->elementType)
!QQmlMetaObjec...->elementType)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistreference
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistreference
)
2-4
196 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmllistreference
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qqmllistreference
2
197-
198 d->property.append(&d->property, object);-
199-
200 return
executed 4 times by 1 test: return true;
Executed by:
  • tst_qqmllistreference
true;
executed 4 times by 1 test: return true;
Executed by:
  • tst_qqmllistreference
4
201}-
202-
203-
204-
205-
206-
207-
208QObject *QQmlListReference::at(int index) const-
209{-
210 if (!canAt()
!canAt()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qqmllistreference
FALSEevaluated 762 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
) return
executed 14 times by 1 test: return nullptr;
Executed by:
  • tst_qqmllistreference
nullptr;
executed 14 times by 1 test: return nullptr;
Executed by:
  • tst_qqmllistreference
14-762
211-
212 return
executed 762 times by 12 tests: return d->property.at(&d->property, index);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
d->property.at(&d->property, index);
executed 762 times by 12 tests: return d->property.at(&d->property, index);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickstates
  • tst_qquickvisualdatamodel
762
213}-
214-
215-
216-
217-
218-
219-
220bool QQmlListReference::clear() const-
221{-
222 if (!canClear()
!canClear()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qqmllistreference
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistreference
) return
executed 14 times by 1 test: return false;
Executed by:
  • tst_qqmllistreference
false;
executed 14 times by 1 test: return false;
Executed by:
  • tst_qqmllistreference
2-14
223-
224 d->property.clear(&d->property);-
225-
226 return
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmllistreference
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmllistreference
2
227}-
228-
229-
230-
231-
232int QQmlListReference::count() const-
233{-
234 if (!canCount()
!canCount()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qqmllistreference
FALSEevaluated 2070 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickvisualdatamodel
) return
executed 14 times by 1 test: return 0;
Executed by:
  • tst_qqmllistreference
0;
executed 14 times by 1 test: return 0;
Executed by:
  • tst_qqmllistreference
14-2070
235-
236 return
executed 2070 times by 13 tests: return d->property.count(&d->property);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickvisualdatamodel
d->property.count(&d->property);
executed 2070 times by 13 tests: return d->property.count(&d->property);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistreference
  • tst_qqmlproperty
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquickmultipointtoucharea
  • tst_qquickpath
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickshape
  • tst_qquickvisualdatamodel
2070
237}-
238-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0