OpenCoverage

qqmlchangeset.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/util/qqmlchangeset.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3QQmlChangeSet::QQmlChangeSet()-
4 : m_difference(0)-
5{-
6}
executed 26258 times by 29 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
26258
7-
8-
9-
10-
11-
12QQmlChangeSet::QQmlChangeSet(const QQmlChangeSet &changeSet)-
13 : m_removes(changeSet.m_removes)-
14 , m_inserts(changeSet.m_inserts)-
15 , m_changes(changeSet.m_changes)-
16 , m_difference(changeSet.m_difference)-
17{-
18}
executed 110 times by 3 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qqmlobjectmodel
  • tst_qquickvisualdatamodel
110
19-
20-
21-
22-
23-
24QQmlChangeSet::~QQmlChangeSet()-
25{-
26}-
27-
28-
29-
30-
31-
32QQmlChangeSet &QQmlChangeSet::operator =(const QQmlChangeSet &changeSet)-
33{-
34 m_removes = changeSet.m_removes;-
35 m_inserts = changeSet.m_inserts;-
36 m_changes = changeSet.m_changes;-
37 m_difference = changeSet.m_difference;-
38 return
executed 28 times by 2 tests: return *this;
Executed by:
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
*this;
executed 28 times by 2 tests: return *this;
Executed by:
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
28
39}-
40-
41-
42-
43-
44-
45void QQmlChangeSet::insert(int index, int count)-
46{-
47 insert(QVector<Change>() << Change(index, count));-
48}
executed 810 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qqmlobjectmodel
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
810
49-
50-
51-
52-
53-
54void QQmlChangeSet::remove(int index, int count)-
55{-
56 QVector<Change> removes;-
57 removes.append(Change(index, count));-
58 remove(&removes, nullptr);-
59}
executed 566 times by 7 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qqmlobjectmodel
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
566
60void QQmlChangeSet::move(int from, int to, int count, int moveId)-
61{-
62 QVector<Change> removes;-
63 removes.append(Change(from, count, moveId));-
64 QVector<Change> inserts;-
65 inserts.append(Change(to, count, moveId));-
66 remove(&removes, &inserts);-
67 insert(inserts);-
68}
executed 794 times by 5 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qqmlobjectmodel
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
794
69-
70-
71-
72-
73-
74void QQmlChangeSet::change(int index, int count)-
75{-
76 QVector<Change> changes;-
77 changes.append(Change(index, count));-
78 change(changes);-
79}
executed 66 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
66
80-
81-
82-
83-
84-
85void QQmlChangeSet::apply(const QQmlChangeSet &changeSet)-
86{-
87 QVector<Change> r = changeSet.m_removes;-
88 QVector<Change> i = changeSet.m_inserts;-
89 QVector<Change> c = changeSet.m_changes;-
90 remove(&r, &i);-
91 insert(i);-
92 change(c);-
93}
executed 16970 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
16970
94void QQmlChangeSet::remove(const QVector<Change> &removes, QVector<Change> *inserts)-
95{-
96 QVector<Change> r = removes;-
97 remove(&r, inserts);-
98}
executed 5944 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
5944
99-
100void QQmlChangeSet::remove(QVector<Change> *removes, QVector<Change> *inserts)-
101{-
102 int removeCount = 0;-
103 int insertCount = 0;-
104 QVector<Change>::iterator insert = m_inserts.begin();-
105 QVector<Change>::iterator change = m_changes.begin();-
106 QVector<Change>::iterator rit = removes->begin();-
107 for (; rit != removes->end()
rit != removes->end()Description
TRUEevaluated 9708 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 32876 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
; ++rit) {
9708-32876
108 int index = rit->index + removeCount;-
109 int count = rit->count;-
110-
111-
112-
113 for (; change != m_changes.end()
change != m_changes.end()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 9700 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
&& change->end() < rit->index
change->end() < rit->indexDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
; ++change)
0-9700
114 change->index -= removeCount;
never executed: change->index -= removeCount;
0
115-
116 for (; change != m_changes.end()
change != m_changes.end()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 9702 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
&& change->index > rit->end()
change->index > rit->end()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
; ++change) {
2-9702
117 change->count -= qMin(change->end(), rit->end()) - qMax(change->index, rit->index);-
118 if (change->count == 0
change->count == 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
) {
0-2
119 change = m_changes.erase(change);-
120 }
never executed: end of block
else if (rit->index < change->index
rit->index < change->indexDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEnever evaluated
) {
0-2
121 change->index = rit->index;-
122 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
2
123 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
2
124-
125-
126-
127 for (; insert != m_inserts.end()
insert != m_inserts.end()Description
TRUEevaluated 2344 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 8750 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
&& insert->end() <= index
insert->end() <= indexDescription
TRUEevaluated 1386 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
FALSEevaluated 958 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
; ++insert) {
958-8750
128 insertCount += insert->count;-
129 insert->index -= removeCount;-
130 }
executed 1386 times by 2 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
1386
131-
132 rit->index -= insertCount;-
133-
134-
135 while (insert != m_inserts.end()
insert != m_inserts.end()Description
TRUEevaluated 1146 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 9026 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
&& insert->index < index + count
insert->index < index + countDescription
TRUEevaluated 876 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 270 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
270-9026
136 int offset = index - insert->index;-
137 const int difference = qMin(insert->end(), index + count) - qMax(insert->index, index);-
138-
139-
140-
141-
142 if (offset < 0
offset < 0Description
TRUEevaluated 256 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
FALSEevaluated 620 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
&& rit->moveId != -1
rit->moveId != -1Description
TRUEevaluated 138 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 118 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
) {
118-620
143 rit = removes->insert(rit, Change(-
144 rit->index, -offset, rit->moveId, rit->offset));-
145 ++rit;-
146 rit->count -= -offset;-
147 rit->offset += -offset;-
148 index += -offset;-
149 count -= -offset;-
150 removeCount += -offset;-
151 offset = 0;-
152 }
executed 138 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
else if (offset > 0
offset > 0Description
TRUEevaluated 260 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 478 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
&& insert->moveId != -1
insert->moveId != -1Description
TRUEevaluated 138 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 122 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
122-478
153 insert = m_inserts.insert(insert, Change(-
154 insert->index - removeCount, offset, insert->moveId, insert->offset));-
155 ++insert;-
156 insert->index += offset;-
157 insert->count -= offset;-
158 insert->offset += offset;-
159 rit->index -= offset;-
160 insertCount += offset;-
161 }
executed 138 times by 4 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
138
162-
163-
164-
165 if (rit->moveId != -1
rit->moveId != -1Description
TRUEevaluated 548 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 328 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
&& difference > 0
difference > 0Description
TRUEevaluated 548 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEnever evaluated
&& inserts
insertsDescription
TRUEevaluated 548 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEnever evaluated
) {
0-548
166 for (QVector<Change>::iterator iit = inserts->begin(); iit != inserts->end()
iit != inserts->end()Description
TRUEevaluated 1120 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 548 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
; ++iit) {
548-1120
167 if (iit->moveId != rit->moveId
iit->moveId != rit->moveIdDescription
TRUEevaluated 518 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 602 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
518-602
168 || rit->offset > iit->offset + iit->count
rit->offset > ...t + iit->countDescription
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 560 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
42-560
169 || iit->offset > rit->offset + difference
iit->offset > ...t + differenceDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 554 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
6-554
170 continue;
executed 566 times by 4 tests: continue;
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
566
171 }-
172-
173-
174 const int overlapOffset = rit->offset - iit->offset;-
175 if (overlapOffset > 0
overlapOffset > 0Description
TRUEevaluated 140 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 414 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
140-414
176 iit = inserts->insert(iit, Change(-
177 iit->index, overlapOffset, iit->moveId, iit->offset));-
178 ++iit;-
179 iit->index += overlapOffset;-
180 iit->count -= overlapOffset;-
181 iit->offset += overlapOffset;-
182 }
executed 140 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
140
183 if (iit->offset >= rit->offset
iit->offset >= rit->offsetDescription
TRUEevaluated 554 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-554
184 && iit->offset + iit->count <= rit->offset + difference
iit->offset + ...t + differenceDescription
TRUEevaluated 350 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 204 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
) {
204-350
185-
186-
187 iit->moveId = insert->moveId;-
188 iit->offset = insert->offset + qMax(0, -overlapOffset);-
189 }
executed 350 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
else {
350
190-
191-
192 const int count-
193 = qMin(iit->offset + iit->count, rit->offset + difference)-
194 - qMax(iit->offset, rit->offset);-
195 iit = inserts->insert(iit, Change(-
196 iit->index,-
197 count,-
198 insert->moveId,-
199 insert->offset + qMax(0, -overlapOffset)));-
200 ++iit;-
201 iit->index += count;-
202 iit->count -= count;-
203 iit->offset += count;-
204 }
executed 204 times by 3 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
204
205 }-
206 }
executed 548 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
548
207-
208-
209 insert->count -= difference;-
210 insert->offset += difference;-
211 rit->count -= difference;-
212 rit->offset += difference;-
213-
214 index += difference;-
215 count -= difference;-
216 removeCount += difference;-
217-
218 if (insert->count == 0
insert->count == 0Description
TRUEevaluated 412 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 464 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
412-464
219 insert = m_inserts.erase(insert);-
220 }
executed 412 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
else if (rit->count == -offset
rit->count == -offsetDescription
TRUEevaluated 268 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
FALSEevaluated 196 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
|| rit->count == 0
rit->count == 0Description
TRUEevaluated 144 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
FALSEevaluated 52 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
) {
52-412
221 insert->index += difference;-
222 break;
executed 412 times by 3 tests: break;
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
412
223 } else {-
224 insert->index -= removeCount - difference;-
225 rit->index -= insert->count;-
226 insertCount += insert->count;-
227 ++insert;-
228 }
executed 52 times by 3 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
52
229 }-
230 removeCount += rit->count;-
231 }
executed 9708 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
9708
232 for (; insert != m_inserts.end()
insert != m_inserts.end()Description
TRUEevaluated 5730 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 32876 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
; ++insert)
5730-32876
233 insert->index -= removeCount;
executed 5730 times by 5 tests: insert->index -= removeCount;
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
5730
234-
235 removeCount = 0;-
236 QVector<Change>::iterator remove = m_removes.begin();-
237 for (rit = removes->begin(); rit != removes->end()
rit != removes->end()Description
TRUEevaluated 9506 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 32876 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
; ++rit) {
9506-32876
238 if (rit->count == 0
rit->count == 0Description
TRUEevaluated 620 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 8886 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
)
620-8886
239 continue;
executed 620 times by 7 tests: continue;
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
620
240-
241 for (QVector<Change>::iterator next = rit + 1; next != removes->end()
next != removes->end()Description
TRUEevaluated 816 times by 5 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 8410 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
816-8410
242 && next->index == rit->index
next->index == rit->indexDescription
TRUEevaluated 762 times by 5 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 54 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
54-762
243 && next->moveId == -1
next->moveId == -1Description
TRUEevaluated 416 times by 5 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 346 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
346-416
244 && rit->moveId == -1
rit->moveId == -1Description
TRUEevaluated 340 times by 5 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 76 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
; ++next) {
76-340
245 next->count += rit->count;-
246 rit = next;-
247 }
executed 340 times by 5 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
340
248 int index = rit->index + removeCount;-
249-
250-
251 for (; remove != m_removes.end()
remove != m_removes.end()Description
TRUEevaluated 1797 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 7614 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
&& index > remove->index
index > remove->indexDescription
TRUEevaluated 525 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 1272 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
; ++remove)
525-7614
252 remove->index -= removeCount;
executed 525 times by 4 tests: remove->index -= removeCount;
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
525
253 while (remove != m_removes.end()
remove != m_removes.end()Description
TRUEevaluated 1483 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 8464 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
&& index + rit->count >= remove->index
index + rit->c... remove->indexDescription
TRUEevaluated 1061 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 422 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
422-8464
254 int count = 0;-
255 const int offset = remove->index - index;-
256 QVector<Change>::iterator rend = remove;-
257 for (; rend != m_removes.end()
rend != m_removes.end()Description
TRUEevaluated 1141 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 654 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
654-1141
258 && rit->moveId == -1
rit->moveId == -1Description
TRUEevaluated 913 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 228 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
228-913
259 && rend->moveId == -1
rend->moveId == -1Description
TRUEevaluated 789 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 124 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
124-789
260 && index + rit->count >= rend->index
index + rit->c...>= rend->indexDescription
TRUEevaluated 734 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 55 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
; ++rend) {
55-734
261 count += rend->count;-
262 }
executed 734 times by 4 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
734
263 if (remove != rend
remove != rendDescription
TRUEevaluated 715 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 346 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
346-715
264-
265-
266 int difference = 0;-
267 if (rend == m_removes.end()
rend == m_removes.end()Description
TRUEevaluated 654 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 61 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
) {
61-654
268 difference = rit->count;-
269 }
executed 654 times by 4 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
else if (rit->index + rit->count < rend->index - removeCount
rit->index + r... - removeCountDescription
TRUEevaluated 57 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
) {
4-654
270 difference = rit->count;-
271 }
executed 57 times by 3 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
else if (rend->moveId != -1
rend->moveId != -1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEnever evaluated
) {
0-57
272 difference = rend->index - removeCount - rit->index;-
273 index += difference;-
274 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
4
275 count += difference;-
276-
277 rit->count -= difference;-
278 removeCount += difference;-
279 remove->index = rit->index;-
280 remove->count = count;-
281 remove = m_removes.erase(++remove, rend);-
282 }
executed 715 times by 4 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
else {
715
283-
284-
285 if (offset > 0
offset > 0Description
TRUEevaluated 206 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
FALSEevaluated 140 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
140-206
286 remove = m_removes.insert(remove, Change(-
287 rit->index, offset, rit->moveId, rit->offset));-
288 ++remove;-
289 rit->count -= offset;-
290 rit->offset += offset;-
291 removeCount += offset;-
292 index += offset;-
293 }
executed 206 times by 2 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
206
294 remove->index = rit->index;-
295-
296 ++remove;-
297 }
executed 346 times by 4 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
346
298 }-
299-
300 if (rit->count > 0
rit->count > 0Description
TRUEevaluated 8113 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 773 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
773-8113
301 remove = m_removes.insert(remove, *rit);-
302 ++remove;-
303 }
executed 8113 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
8113
304 removeCount += rit->count;-
305 }
executed 8886 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
8886
306 for (; remove != m_removes.end()
remove != m_removes.end()Description
TRUEevaluated 2931 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 32876 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
; ++remove)
2931-32876
307 remove->index -= removeCount;
executed 2931 times by 4 tests: remove->index -= removeCount;
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
2931
308 m_difference -= removeCount;-
309}
executed 32876 times by 29 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
32876
310-
311-
312-
313-
314-
315void QQmlChangeSet::insert(const QVector<Change> &inserts)-
316{-
317 int insertCount = 0;-
318 QVector<Change>::iterator insert = m_inserts.begin();-
319 QVector<Change>::iterator change = m_changes.begin();-
320 for (QVector<Change>::const_iterator iit = inserts.begin(); iit != inserts.end()
iit != inserts.end()Description
TRUEevaluated 29464 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
FALSEevaluated 60200 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
; ++iit) {
29464-60200
321 if (iit->count == 0
iit->count == 0Description
TRUEevaluated 1504 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktableview
FALSEevaluated 27960 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
)
1504-27960
322 continue;
executed 1504 times by 11 tests: continue;
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktableview
1504
323 int index = iit->index - insertCount;-
324-
325 Change current = *iit;-
326-
327 for (QVector<Change>::const_iterator next = iit + 1; next != inserts.end()
next != inserts.end()Description
TRUEevaluated 724 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 27268 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
724-27268
328 && next->index == iit->index + iit->count
next->index ==...x + iit->countDescription
TRUEevaluated 620 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 104 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
104-620
329 && next->moveId == -1
next->moveId == -1Description
TRUEevaluated 172 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 448 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
172-448
330 && iit->moveId == -1
iit->moveId == -1Description
TRUEevaluated 32 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
FALSEevaluated 140 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
; ++next) {
32-140
331 current.count += next->count;-
332 iit = next;-
333 }
executed 32 times by 2 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickvisualdatamodel
32
334-
335-
336-
337 for (; change != m_changes.end()
change != m_changes.end()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 27958 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
&& change->index >= index
change->index >= indexDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
; ++change)
2-27958
338 change->index += insertCount;
executed 12 times by 1 test: change->index += insertCount;
Executed by:
  • tst_qqmlhangeset
12
339-
340-
341 if (change != m_changes.end()
change != m_changes.end()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 27958 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
&& change->index < index + iit->count
change->index ...x + iit->countDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEnever evaluated
) {
0-27958
342 int offset = index - change->index;-
343 change = m_changes.insert(change, Change(change->index + insertCount, offset));-
344 ++change;-
345 change->index += iit->count + offset;-
346 change->count -= offset;-
347 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
2
348-
349-
350-
351 for (; insert != m_inserts.end()
insert != m_inserts.end()Description
TRUEevaluated 6384 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 22901 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
&& index > insert->index + insert->count
index > insert... insert->countDescription
TRUEevaluated 1325 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 5059 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
; ++insert)
1325-22901
352 insert->index += insertCount;
executed 1325 times by 4 tests: insert->index += insertCount;
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
1325
353 if (insert == m_inserts.end()
insert == m_inserts.end()Description
TRUEevaluated 22901 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
FALSEevaluated 5059 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
5059-22901
354 insert = m_inserts.insert(insert, current);-
355 ++insert;-
356 }
executed 22901 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
else {
22901
357 const int offset = index - insert->index;-
358-
359 if (offset < 0
offset < 0Description
TRUEevaluated 425 times by 4 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 4634 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
425-4634
360-
361-
362 insert = m_inserts.insert(insert, current);-
363 ++insert;-
364 }
executed 425 times by 4 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
else if (iit->moveId == -1
iit->moveId == -1Description
TRUEevaluated 4480 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 154 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
&& insert->moveId == -1
insert->moveId == -1Description
TRUEevaluated 4320 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 160 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
) {
154-4480
365-
366-
367 if (offset < insert->count
offset < insert->countDescription
TRUEevaluated 256 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 4064 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
256-4064
368 insert->index -= current.count;-
369 insert->count += current.count;-
370 }
executed 256 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
else {
256
371 insert->index += insertCount;-
372 insert->count += current.count;-
373 ++insert;-
374 }
executed 4064 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
4064
375 } else if (offset < insert->count
offset < insert->countDescription
TRUEevaluated 288 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 26 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
) {
26-288
376-
377-
378 if (offset > 0
offset > 0Description
TRUEevaluated 180 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 108 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
) {
108-180
379 insert = m_inserts.insert(insert, Change(-
380 insert->index + insertCount, offset, insert->moveId, insert->offset));-
381 ++insert;-
382 insert->index += offset;-
383 insert->count -= offset;-
384 insert->offset += offset;-
385 }
executed 180 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
180
386 insert = m_inserts.insert(insert, current);-
387 ++insert;-
388 }
executed 288 times by 3 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
else {
288
389 insert->index += insertCount;-
390 ++insert;-
391 insert = m_inserts.insert(insert, current);-
392 ++insert;-
393 }
executed 26 times by 3 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
26
394 }-
395 insertCount += current.count;-
396 }
executed 27960 times by 27 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
27960
397 for (; insert != m_inserts.end()
insert != m_inserts.end()Description
TRUEevaluated 1947 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 60200 times by 29 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
; ++insert)
1947-60200
398 insert->index += insertCount;
executed 1947 times by 5 tests: insert->index += insertCount;
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
1947
399 m_difference += insertCount;-
400}
executed 60200 times by 29 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlhangeset
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlobjectmodel
  • 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
  • ...
60200
401-
402-
403-
404-
405-
406-
407void QQmlChangeSet::move(const QVector<Change> &removes, const QVector<Change> &inserts)-
408{-
409 QVector<Change> r = removes;-
410 QVector<Change> i = inserts;-
411 remove(&r, &i);-
412 insert(i);-
413}
executed 8602 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
  • ...
8602
414-
415-
416-
417-
418-
419void QQmlChangeSet::change(const QVector<Change> &changes)-
420{-
421 QVector<Change> c = changes;-
422 change(&c);-
423}
executed 17888 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
17888
424-
425void QQmlChangeSet::change(QVector<Change> *changes)-
426{-
427 QVector<Change>::iterator insert = m_inserts.begin();-
428 QVector<Change>::iterator change = m_changes.begin();-
429 for (QVector<Change>::iterator cit = changes->begin(); cit != changes->end()
cit != changes->end()Description
TRUEevaluated 916 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 17888 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
; ++cit) {
916-17888
430 for (; insert != m_inserts.end()
insert != m_inserts.end()Description
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 896 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
&& insert->end() < cit->index
insert->end() < cit->indexDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
; ++insert) {}
executed 10 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
10-896
431 for (; insert != m_inserts.end()
insert != m_inserts.end()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 912 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
&& insert->index < cit->end()
insert->index < cit->end()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
; ++insert) {
4-912
432 const int offset = insert->index - cit->index;-
433 const int count = cit->count + cit->index - insert->index - insert->count;-
434 if (offset == 0
offset == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
) {
4-12
435 cit->index = insert->index + insert->count;-
436 cit->count = count;-
437 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
else {
4
438 cit = changes->insert(++cit, Change(insert->index + insert->count, count));-
439 --cit;-
440 cit->count = offset;-
441 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
12
442 }-
443-
444 for (; change != m_changes.end()
change != m_changes.end()Description
TRUEevaluated 220 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
FALSEevaluated 700 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
&& change->index + change->count < cit->index
change->index ...t < cit->indexDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 216 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
; ++change) {}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
4-700
445 if (change == m_changes.end()
change == m_changes.end()Description
TRUEevaluated 700 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 216 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
|| change->index > cit->index + cit->count
change->index ...x + cit->countDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 214 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
) {
2-700
446 if (cit->count > 0
cit->count > 0Description
TRUEevaluated 684 times by 3 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
) {
18-684
447 change = m_changes.insert(change, *cit);-
448 ++change;-
449 }
executed 684 times by 3 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
684
450 }
executed 702 times by 3 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
else {
702
451 if (cit->index < change->index
cit->index < change->indexDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 206 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
) {
8-206
452 change->count += change->index - cit->index;-
453 change->index = cit->index;-
454 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
8
455-
456 if (cit->index + cit->count > change->index + change->count
cit->index + c... change->countDescription
TRUEevaluated 46 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
FALSEevaluated 168 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
) {
46-168
457 change->count = cit->index + cit->count - change->index;-
458 QVector<Change>::iterator cbegin = change;-
459 QVector<Change>::iterator cend = ++cbegin;-
460 for (; cend != m_changes.end()
cend != m_changes.end()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 46 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
&& cend->index <= change->index + change->count
cend->index <=... change->countDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEnever evaluated
; ++cend) {
0-46
461 if (cend->index + cend->count > change->index + change->count
cend->index + ... change->countDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEnever evaluated
)
0-2
462 change->count = cend->index + cend->count - change->index;
executed 2 times by 1 test: change->count = cend->index + cend->count - change->index;
Executed by:
  • tst_qqmlhangeset
2
463 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
2
464 if (cbegin != cend
cbegin != cendDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlhangeset
FALSEevaluated 44 times by 2 tests
Evaluated by:
  • tst_qqmlhangeset
  • tst_qquicklistview
) {
2-44
465 change = m_changes.erase(cbegin, cend);-
466 --change;-
467 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlhangeset
2
468 }
executed 46 times by 2 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquicklistview
46
469 }
executed 214 times by 2 tests: end of block
Executed by:
  • tst_qqmlhangeset
  • tst_qquicklistview
214
470 }-
471}
executed 17888 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlhangeset
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
17888
472-
473-
474-
475-
476-
477QDebug operator <<(QDebug debug, const QQmlChangeSet &set)-
478{-
479 debug.nospace() << "QQmlChangeSet(";-
480 const QVector<QQmlChangeSet::Change> &removes = set.removes();-
481 for (const QQmlChangeSet::Change &remove : removes)-
482 debug << remove;
executed 6 times by 1 test: debug << remove;
Executed by:
  • tst_qqmlhangeset
6
483 const QVector<QQmlChangeSet::Change> &inserts = set.inserts();-
484 for (const QQmlChangeSet::Change &insert : inserts)-
485 debug << insert;
executed 6 times by 1 test: debug << insert;
Executed by:
  • tst_qqmlhangeset
6
486 const QVector<QQmlChangeSet::Change> &changes = set.changes();-
487 for (const QQmlChangeSet::Change &change : changes)-
488 debug << change;
executed 2 times by 1 test: debug << change;
Executed by:
  • tst_qqmlhangeset
2
489 return
executed 4 times by 1 test: return debug.nospace() << ')';
Executed by:
  • tst_qqmlhangeset
debug.nospace() << ')';
executed 4 times by 1 test: return debug.nospace() << ')';
Executed by:
  • tst_qqmlhangeset
4
490}-
491-
492-
493-
494-
495-
496QDebug operator <<(QDebug debug, const QQmlChangeSet::Change &change)-
497{-
498 return
executed 14 times by 1 test: return (debug.nospace() << "Change(" << change.index << ',' << change.count << ')').space();
Executed by:
  • tst_qqmlhangeset
(debug.nospace() << "Change(" << change.index << ',' << change.count << ')').space();
executed 14 times by 1 test: return (debug.nospace() << "Change(" << change.index << ',' << change.count << ')').space();
Executed by:
  • tst_qqmlhangeset
14
499}-
500-
501-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0