OpenCoverage

qqmllistcompositor.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/util/qqmllistcompositor.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7QQmlListCompositor::iterator &QQmlListCompositor::iterator::operator +=(int difference)-
8{-
9-
10 decrementIndexes(offset);-
11-
12-
13 if (!(range->flags & groupFlag)
!(range->flags & groupFlag)Description
TRUEevaluated 13557 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 215019 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
)
13557-215019
14 offset = 0;
executed 13557 times by 11 tests: offset = 0;
Executed by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
13557
15-
16 offset += difference;-
17-
18-
19 while (offset <= 0
offset <= 0Description
TRUEevaluated 151124 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
FALSEevaluated 199558 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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
&& range->previous->flags
range->previous->flagsDescription
TRUEevaluated 122106 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 29018 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
) {
29018-199558
20 range = range->previous;-
21 if (range->flags & groupFlag
range->flags & groupFlagDescription
TRUEevaluated 109902 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 12204 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
)
12204-109902
22 offset += range->count;
executed 109902 times by 23 tests: offset += range->count;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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_qquickvisualdatamodel
  • tst_scenegraph
109902
23 decrementIndexes(range->count);-
24 }
executed 122106 times by 23 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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_qquickvisualdatamodel
  • tst_scenegraph
122106
25-
26-
27-
28 while (range->flags
range->flagsDescription
TRUEevaluated 349431 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
FALSEevaluated 38 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
&& (offset >= range->count
offset >= range->countDescription
TRUEevaluated 104447 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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 244984 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
|| !(range->flags & groupFlag)
!(range->flags & groupFlag)Description
TRUEevaluated 16446 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 228538 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
)) {
38-349431
29 if (range->flags & groupFlag
range->flags & groupFlagDescription
TRUEevaluated 103903 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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 16990 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
)
16990-103903
30 offset -= range->count;
executed 103903 times by 24 tests: offset -= range->count;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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
103903
31 incrementIndexes(range->count);-
32 range = range->next;-
33 }
executed 120893 times by 24 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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
120893
34-
35-
36 incrementIndexes(offset);-
37-
38 return
executed 228576 times by 26 tests: return *this;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
*this;
executed 228576 times by 26 tests: return *this;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
228576
39}-
40-
41QQmlListCompositor::insert_iterator &QQmlListCompositor::insert_iterator::operator +=(int difference)-
42{-
43 iterator::operator +=(difference);-
44-
45-
46-
47 if (offset == 0
offset == 0Description
TRUEevaluated 294 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 168 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
&& range->previous->append()
range->previous->append()Description
TRUEevaluated 34 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 260 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
34-294
48 range = range->previous;-
49 offset = range->inGroup()
range->inGroup()Description
TRUEevaluated 32 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
? range->count : 0;
2-32
50 }
executed 34 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
34
51-
52 return
executed 462 times by 4 tests: return *this;
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
*this;
executed 462 times by 4 tests: return *this;
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
462
53}-
54-
55-
56-
57-
58-
59-
60QQmlListCompositor::QQmlListCompositor()-
61 : m_end(m_ranges.next, 0, Default, 2)-
62 , m_cacheIt(m_end)-
63 , m_groupCount(2)-
64 , m_defaultFlags(PrependFlag | DefaultFlag)-
65 , m_removeFlags(AppendFlag | PrependFlag | GroupMask)-
66 , m_moveId(0)-
67{-
68}
executed 5714 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
5714
69-
70-
71-
72-
73-
74QQmlListCompositor::~QQmlListCompositor()-
75{-
76 for (Range *next, *range = m_ranges.next; range != &m_ranges
range != &m_rangesDescription
TRUEevaluated 10837 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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
  • tst_qtqmlmodules
  • ...
FALSEevaluated 5648 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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
  • tst_qtqmlmodules
  • ...
; range = next) {
5648-10837
77 next = range->next;-
78 delete range;-
79 }
executed 10837 times by 26 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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
  • tst_qtqmlmodules
  • ...
10837
80}
executed 5648 times by 26 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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
  • tst_qtqmlmodules
  • ...
5648
81-
82-
83-
84-
85-
86-
87inline QQmlListCompositor::Range *QQmlListCompositor::insert(-
88 Range *before, void *list, int index, int count, uint flags)-
89{-
90 return
executed 35671 times by 28 tests: return new Range(before, list, index, count, flags);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
new Range(before, list, index, count, flags);
executed 35671 times by 28 tests: return new Range(before, list, index, count, flags);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
35671
91}-
92-
93-
94-
95-
96-
97-
98-
99inline QQmlListCompositor::Range *QQmlListCompositor::erase(-
100 Range *range)-
101{-
102 Range *next = range->next;-
103 next->previous = range->previous;-
104 next->previous->next = range->next;-
105 delete range;-
106 return
executed 24766 times by 23 tests: return next;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • 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
next;
executed 24766 times by 23 tests: return next;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • 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
24766
107}-
108-
109-
110-
111-
112-
113void QQmlListCompositor::setGroupCount(int count)-
114{-
115 m_groupCount = count;-
116 m_end = iterator(&m_ranges, 0, Default, m_groupCount);-
117 m_cacheIt = m_end;-
118}
executed 5712 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
5712
119-
120-
121-
122-
123-
124int QQmlListCompositor::count(Group group) const-
125{-
126 return
executed 1201325 times by 28 tests: return m_end.index[group];
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
m_end.index[group];
executed 1201325 times by 28 tests: return m_end.index[group];
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
1201325
127}-
128-
129-
130-
131-
132-
133-
134-
135QQmlListCompositor::iterator QQmlListCompositor::find(Group group, int index)-
136{-
137 -
138 ((index >=0 && index < count(group)) ? static_cast<void>(0) : qt_assert("index >=0 && index < count(group)", __FILE__, 365));-
139 if (m_cacheIt == m_end
m_cacheIt == m_endDescription
TRUEevaluated 18670 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
FALSEevaluated 209444 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
) {
18670-209444
140 m_cacheIt = iterator(m_ranges.next, 0, group, m_groupCount);-
141 m_cacheIt += index;-
142 }
executed 18670 times by 26 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
else {
18670
143 const int offset = index - m_cacheIt.index[group];-
144 m_cacheIt.setGroup(group);-
145 m_cacheIt += offset;-
146 }
executed 209444 times by 26 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
209444
147 ((m_cacheIt.index[group] == index) ? static_cast<void>(0) : qt_assert("m_cacheIt.index[group] == index", __FILE__, 374));-
148 ((m_cacheIt->inGroup(group)) ? static_cast<void>(0) : qt_assert("m_cacheIt->inGroup(group)", __FILE__, 375));-
149 -
150 return
executed 228114 times by 26 tests: return m_cacheIt;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
m_cacheIt;
executed 228114 times by 26 tests: return m_cacheIt;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
228114
151}-
152-
153-
154-
155-
156-
157-
158-
159QQmlListCompositor::iterator QQmlListCompositor::find(Group group, int index) const-
160{-
161 return
executed 2 times by 1 test: return const_cast<QQmlListCompositor *>(this)->find(group, index);
Executed by:
  • tst_qqmllistcompositor
const_cast<QQmlListCompositor *>(this)->find(group, index);
executed 2 times by 1 test: return const_cast<QQmlListCompositor *>(this)->find(group, index);
Executed by:
  • tst_qqmllistcompositor
2
162}-
163QQmlListCompositor::insert_iterator QQmlListCompositor::findInsertPosition(Group group, int index)-
164{-
165 -
166 ((index >=0 && index <= count(group)) ? static_cast<void>(0) : qt_assert("index >=0 && index <= count(group)", __FILE__, 406));-
167 insert_iterator it;-
168 if (m_cacheIt == m_end
m_cacheIt == m_endDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 362 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
) {
40-362
169 it = iterator(m_ranges.next, 0, group, m_groupCount);-
170 it += index;-
171 }
executed 40 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
else {
40
172 const int offset = index - m_cacheIt.index[group];-
173 it = m_cacheIt;-
174 it.setGroup(group);-
175 it += offset;-
176 }
executed 362 times by 2 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
362
177 ((it.index[group] == index) ? static_cast<void>(0) : qt_assert("it.index[group] == index", __FILE__, 417));-
178 return
executed 402 times by 2 tests: return it;
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
it;
executed 402 times by 2 tests: return it;
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
402
179}-
180void QQmlListCompositor::append(-
181 void *list, int index, int count, uint flags, QVector<Insert> *inserts)-
182{-
183 -
184 insert(m_end, list, index, count, flags, inserts);-
185}
executed 6084 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
6084
186void QQmlListCompositor::insert(-
187 Group group, int before, void *list, int index, int count, uint flags, QVector<Insert> *inserts)-
188{-
189 -
190 insert(findInsertPosition(group, before), list, index, count, flags, inserts);-
191}
executed 82 times by 2 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
82
192QQmlListCompositor::iterator QQmlListCompositor::insert(-
193 iterator before, void *list, int index, int count, uint flags, QVector<Insert> *inserts)-
194{-
195 -
196 if (inserts
insertsDescription
TRUEevaluated 5622 times by 27 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_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
FALSEevaluated 948 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
) {
948-5622
197 inserts->append(Insert(before, count, flags & GroupMask));-
198 }
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
199 if (before.offset > 0
before.offset > 0Description
TRUEevaluated 172 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 6398 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
) {
172-6398
200-
201-
202 *before = insert(-
203 *before, before->list, before->index, before.offset, before->flags & ~AppendFlag)->next;-
204 before->index += before.offset;-
205 before->count -= before.offset;-
206 before.offset = 0;-
207 }
executed 172 times by 2 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
172
208-
209-
210 if (!(flags & AppendFlag)
!(flags & AppendFlag)Description
TRUEevaluated 852 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 5718 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
&& *
*before != m_ranges.nextDescription
TRUEevaluated 572 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 280 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
before != m_ranges.next
*before != m_ranges.nextDescription
TRUEevaluated 572 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 280 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
280-5718
211 && before->previous->list == list
before->previous->list == listDescription
TRUEevaluated 246 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 326 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
246-326
212 && before->previous->flags == flags
before->previo...flags == flagsDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 236 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
10-236
213 && (!list
!listDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
|| before->previous->end() == index
before->previo...end() == indexDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
)) {
0-8
214-
215-
216 before->previous->count += count;-
217 before.incrementIndexes(count, flags);-
218 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
else {
2
219 *before = insert(*before, list, index, count, flags);-
220 before.offset = 0;-
221 }
executed 6568 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
6568
222-
223 if (!(flags & AppendFlag)
!(flags & AppendFlag)Description
TRUEevaluated 852 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 5718 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
&& before->next != &m_ranges
before->next != &m_rangesDescription
TRUEevaluated 380 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 472 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
380-5718
224 && before->list == before->next->list
before->list =...re->next->listDescription
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 308 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
72-308
225 && before->flags == before->next->flags
before->flags ...e->next->flagsDescription
TRUEnever evaluated
FALSEevaluated 72 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
0-72
226 && (!list
!listDescription
TRUEnever evaluated
FALSEnever evaluated
|| before->end() == before->next->index
before->end() ...e->next->indexDescription
TRUEnever evaluated
FALSEnever evaluated
)) {
0
227-
228 before->next->index = before->index;-
229 before->next->count += before->count;-
230 *before = erase(*before);-
231 }
never executed: end of block
0
232-
233 m_end.incrementIndexes(count, flags);-
234 m_cacheIt = before;-
235 -
236 return
executed 6570 times by 28 tests: return before;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
before;
executed 6570 times by 28 tests: return before;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
6570
237}-
238void QQmlListCompositor::setFlags(-
239 Group fromGroup, int from, int count, Group group, int flags, QVector<Insert> *inserts)-
240{-
241 -
242 setFlags(find(fromGroup, from), count, group, flags, inserts);-
243}
executed 144 times by 2 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
144
244void QQmlListCompositor::setFlags(-
245 iterator from, int count, Group group, uint flags, QVector<Insert> *inserts)-
246{-
247 -
248 if (!flags
!flagsDescription
TRUEnever evaluated
FALSEevaluated 88773 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
|| !count
!countDescription
TRUEnever evaluated
FALSEevaluated 88773 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
)
0-88773
249 return;
never executed: return;
0
250-
251 if (from != group
from != groupDescription
TRUEnever evaluated
FALSEevaluated 88773 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
) {
0-88773
252-
253 from.incrementIndexes(from->count - from.offset);-
254 from.offset = 0;-
255 *from = from->next;-
256 }
never executed: end of block
else if (from.offset > 0
from.offset > 0Description
TRUEevaluated 4081 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 84692 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
) {
0-84692
257-
258 *from = insert(*from, from->list, from->index, from.offset, from->flags & ~AppendFlag)->next;-
259 from->index += from.offset;-
260 from->count -= from.offset;-
261 from.offset = 0;-
262 }
executed 4081 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
4081
263-
264 for (; count > 0
count > 0Description
TRUEevaluated 88801 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
FALSEevaluated 16231 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
; *from = from->next) {
16231-88801
265 if (from != from.group
from != from.groupDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 88793 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
) {
8-88793
266-
267 from.incrementIndexes(from->count);-
268 continue;
executed 8 times by 2 tests: continue;
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
8
269 }-
270-
271 const int difference = qMin(count, from->count);-
272 count -= difference;-
273-
274-
275 const uint insertFlags = ~from->flags & flags;-
276 const uint setFlags = (from->flags | flags) & ~AppendFlag;-
277 if (insertFlags
insertFlagsDescription
TRUEevaluated 88597 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
FALSEevaluated 196 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
&& inserts
insertsDescription
TRUEevaluated 472 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 88125 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
)
196-88597
278 inserts->append(Insert(from, difference, insertFlags | (from->flags & CacheFlag)));
executed 472 times by 3 tests: inserts->append(Insert(from, difference, insertFlags | (from->flags & CacheFlag)));
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
472
279 m_end.incrementIndexes(difference, insertFlags);-
280 from.incrementIndexes(difference, setFlags);-
281-
282 if (from->previous != &m_ranges
from->previous != &m_rangesDescription
TRUEevaluated 82776 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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 6017 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
6017-82776
283 && from->previous->list == from->list
from->previous... == from->listDescription
TRUEevaluated 82552 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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 224 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
224-82552
284 && (!from->list
!from->listDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 82550 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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
|| from->previous->end() == from->index
from->previous...== from->indexDescription
TRUEevaluated 82466 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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 84 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
)
2-82550
285 && from->previous->flags == setFlags
from->previous...gs == setFlagsDescription
TRUEevaluated 78312 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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 4156 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
) {
4156-78312
286-
287-
288 from->previous->count += difference;-
289 from->index += difference;-
290 from->count -= difference;-
291 if (from->count == 0
from->count == 0Description
TRUEevaluated 5770 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • 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 72542 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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_qquickvisualdatamodel
  • tst_scenegraph
) {
5770-72542
292-
293-
294 if (from->append()
from->append()Description
TRUEevaluated 2635 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • 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 3135 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
)
2635-3135
295 from->previous->flags |= AppendFlag;
executed 2635 times by 22 tests: from->previous->flags |= AppendFlag;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • 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
2635
296 *from = erase(*from)->previous;-
297 continue;
executed 5770 times by 22 tests: continue;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • 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
5770
298 } else {-
299 break;
executed 72542 times by 23 tests: break;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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_qquickvisualdatamodel
  • tst_scenegraph
72542
300 }-
301 } else if (!insertFlags
!insertFlagsDescription
TRUEevaluated 172 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 10309 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
) {
172-10309
302-
303 from.incrementIndexes(from->count - difference);-
304 continue;
executed 172 times by 2 tests: continue;
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
172
305 } else if (difference < from->count
difference < from->countDescription
TRUEevaluated 5559 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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 4750 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
) {
4750-5559
306-
307-
308 *from = insert(*from, from->list, from->index, difference, setFlags)->next;-
309 from->index += difference;-
310 from->count -= difference;-
311 }
executed 5559 times by 24 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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
else {
5559
312-
313 from->flags |= flags;-
314 continue;
executed 4750 times by 14 tests: continue;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
4750
315 }-
316 from.incrementIndexes(from->count);-
317 }
executed 5559 times by 24 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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
5559
318-
319 if (from->previous != &m_ranges
from->previous != &m_rangesDescription
TRUEevaluated 88773 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
FALSEnever evaluated
0-88773
320 && from->previous->list == from->list
from->previous... == from->listDescription
TRUEevaluated 80136 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 8637 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
8637-80136
321 && (!from->list
!from->listDescription
TRUEevaluated 54 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 80082 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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_qquickvisualdatamodel
  • tst_scenegraph
|| from->previous->end() == from->index
from->previous...== from->indexDescription
TRUEevaluated 79969 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 113 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
)
54-80082
322 && from->previous->flags == (from->flags & ~AppendFlag)
from->previous...& ~AppendFlag)Description
TRUEevaluated 6974 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 73049 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • 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_qquickvisualdatamodel
  • tst_scenegraph
) {
6974-73049
323-
324 from.offset = from->previous->count;-
325 from->previous->count += from->count;-
326 from->previous->flags = from->flags;-
327 *from = erase(*from)->previous;-
328 }
executed 6974 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
6974
329 m_cacheIt = from;-
330 -
331}
executed 88773 times by 26 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • 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
  • ...
88773
332void QQmlListCompositor::clearFlags(-
333 Group fromGroup, int from, int count, Group group, uint flags, QVector<Remove> *removes)-
334{-
335 -
336 clearFlags(find(fromGroup, from), count, group, flags, removes);-
337}
executed 22472 times by 13 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
22472
338void QQmlListCompositor::clearFlags(-
339 iterator from, int count, Group group, uint flags, QVector<Remove> *removes)-
340{-
341 -
342 if (!flags
!flagsDescription
TRUEnever evaluated
FALSEevaluated 22548 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
|| !count
!countDescription
TRUEnever evaluated
FALSEevaluated 22548 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
)
0-22548
343 return;
never executed: return;
0
344-
345 const bool clearCache = flags & CacheFlag;-
346-
347 if (from != group
from != groupDescription
TRUEnever evaluated
FALSEevaluated 22548 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
0-22548
348-
349 from.incrementIndexes(from->count - from.offset);-
350 from.offset = 0;-
351 *from = from->next;-
352 }
never executed: end of block
else if (from.offset > 0
from.offset > 0Description
TRUEevaluated 8204 times by 9 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 14344 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
0-14344
353-
354 *from = insert(*from, from->list, from->index, from.offset, from->flags & ~AppendFlag)->next;-
355 from->index += from.offset;-
356 from->count -= from.offset;-
357 from.offset = 0;-
358 }
executed 8204 times by 9 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
8204
359-
360 for (; count > 0
count > 0Description
TRUEevaluated 22584 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 22548 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
; *from = from->next) {
22548-22584
361 if (from != group
from != groupDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 22570 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
14-22570
362-
363 from.incrementIndexes(from->count);-
364 continue;
executed 14 times by 2 tests: continue;
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
14
365 }-
366-
367 const int difference = qMin(count, from->count);-
368 count -= difference;-
369-
370-
371-
372 const uint removeFlags = from->flags & flags & ~(AppendFlag | PrependFlag);-
373 const uint clearedFlags = from->flags & ~(flags | AppendFlag | UnresolvedFlag);-
374 if (removeFlags
removeFlagsDescription
TRUEevaluated 22570 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEnever evaluated
&& removes
removesDescription
TRUEevaluated 108 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 22462 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
0-22570
375 const int maskedFlags = clearCache
clearCacheDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 102 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
6-102
376 ? (removeFlags & ~CacheFlag)-
377 : (removeFlags | (from->flags & CacheFlag));-
378 if (maskedFlags
maskedFlagsDescription
TRUEevaluated 102 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
)
6-102
379 removes->append(Remove(from, difference, maskedFlags));
executed 102 times by 3 tests: removes->append(Remove(from, difference, maskedFlags));
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
102
380 }
executed 108 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
108
381 m_end.decrementIndexes(difference, removeFlags);-
382 from.incrementIndexes(difference, clearedFlags);-
383-
384 if (from->previous != &m_ranges
from->previous != &m_rangesDescription
TRUEevaluated 20863 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 1707 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1707-20863
385 && from->previous->list == from->list
from->previous... == from->listDescription
TRUEevaluated 20745 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 118 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
118-20745
386 && (!from->list
!from->listDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 20743 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
|| clearedFlags == CacheFlag
clearedFlags == CacheFlagDescription
TRUEnever evaluated
FALSEevaluated 20743 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
|| from->previous->end() == from->index
from->previous...== from->indexDescription
TRUEevaluated 19379 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 1364 times by 6 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
)
0-20743
387 && from->previous->flags == clearedFlags
from->previous...= clearedFlagsDescription
TRUEevaluated 11119 times by 6 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 8262 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
8262-11119
388-
389-
390 from->previous->count += difference;-
391 from->index += difference;-
392 from->count -= difference;-
393 if (from->count == 0
from->count == 0Description
TRUEevaluated 986 times by 6 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 10133 times by 6 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
986-10133
394-
395 if (from->append()
from->append()Description
TRUEevaluated 280 times by 6 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 706 times by 5 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
)
280-706
396 from->previous->flags |= AppendFlag;
executed 280 times by 6 tests: from->previous->flags |= AppendFlag;
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
280
397 *from = erase(*from)->previous;-
398 }
executed 986 times by 6 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
else {
986
399 from.incrementIndexes(from->count);-
400 }
executed 10133 times by 6 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
10133
401 } else if (difference < from->count
difference < from->countDescription
TRUEevaluated 2628 times by 9 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 8823 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
2628-8823
402-
403-
404 if (clearedFlags
clearedFlagsDescription
TRUEevaluated 1908 times by 7 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 720 times by 5 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
)
720-1908
405 *
executed 1908 times by 7 tests: *from = insert(*from, from->list, from->index, difference, clearedFlags)->next;
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
from = insert(*from, from->list, from->index, difference, clearedFlags)->next;
executed 1908 times by 7 tests: *from = insert(*from, from->list, from->index, difference, clearedFlags)->next;
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1908
406 from->index += difference;-
407 from->count -= difference;-
408 from.incrementIndexes(from->count);-
409 }
executed 2628 times by 9 tests: end of block
Executed by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
else if (clearedFlags
clearedFlagsDescription
TRUEevaluated 4581 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 4242 times by 8 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
2628-4581
410-
411 from->flags &= ~flags;-
412 }
executed 4581 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
else {
4581
413-
414 *from = erase(*from)->previous;-
415 }
executed 4242 times by 8 tests: end of block
Executed by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4242
416 }-
417-
418 if (*
*from != &m_rangesDescription
TRUEevaluated 17261 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 5287 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
from != &m_ranges
*from != &m_rangesDescription
TRUEevaluated 17261 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 5287 times by 11 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
&& from->previous != &m_ranges
from->previous != &m_rangesDescription
TRUEevaluated 16589 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 672 times by 7 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
672-17261
419 && from->previous->list == from->list
from->previous... == from->listDescription
TRUEevaluated 16575 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
14-16575
420 && (!from->list
!from->listDescription
TRUEnever evaluated
FALSEevaluated 16575 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
|| from->previous->end() == from->index
from->previous...== from->indexDescription
TRUEevaluated 13504 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 3071 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
)
0-16575
421 && from->previous->flags == (from->flags & ~AppendFlag)
from->previous...& ~AppendFlag)Description
TRUEevaluated 5572 times by 9 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 7932 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
5572-7932
422-
423 from.offset = from->previous->count;-
424 from->previous->count += from->count;-
425 from->previous->flags = from->flags;-
426 *from = erase(*from)->previous;-
427 }
executed 5572 times by 9 tests: end of block
Executed by:
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
5572
428 m_cacheIt = from;-
429 -
430}
executed 22548 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
22548
431-
432bool QQmlListCompositor::verifyMoveTo(-
433 Group fromGroup, int from, Group toGroup, int to, int count, Group group) const-
434{-
435 if (group != toGroup
group != toGroupDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 118 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
2-118
436-
437 iterator fromIt = find(fromGroup, from);-
438-
439 int intersectingCount = 0;-
440-
441 for (; count > 0
count > 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
; *fromIt = fromIt->next) {
2-6
442 if (*
*fromIt == &m_rangesDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
fromIt == &m_ranges
*fromIt == &m_rangesDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
)
0-6
443 return
never executed: return false;
false;
never executed: return false;
0
444 if (!fromIt->inGroup(group)
!fromIt->inGroup(group)Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
)
0-6
445 continue;
never executed: continue;
0
446 if (fromIt->inGroup(toGroup)
fromIt->inGroup(toGroup)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
)
2-4
447 intersectingCount += qMin(count, fromIt->count - fromIt.offset);
executed 2 times by 1 test: intersectingCount += qMin(count, fromIt->count - fromIt.offset);
Executed by:
  • tst_qqmllistcompositor
2
448 count -= fromIt->count - fromIt.offset;-
449 fromIt.offset = 0;-
450 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmllistcompositor
6
451 count = intersectingCount;-
452 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmllistcompositor
2
453-
454 return
executed 120 times by 4 tests: return to >= 0 && to + count <= m_end.index[toGroup];
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
to >= 0 && to + count <= m_end.index[toGroup];
executed 120 times by 4 tests: return to >= 0 && to + count <= m_end.index[toGroup];
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
120
455}-
456void QQmlListCompositor::move(-
457 Group fromGroup,-
458 int from,-
459 Group toGroup,-
460 int to,-
461 int count,-
462 Group moveGroup,-
463 QVector<Remove> *removes,-
464 QVector<Insert> *inserts)-
465{-
466 -
467 ((count > 0) ? static_cast<void>(0) : qt_assert("count > 0", __FILE__, 777));-
468 ((from >=0) ? static_cast<void>(0) : qt_assert("from >=0", __FILE__, 778));-
469 ((verifyMoveTo(fromGroup, from, toGroup, to, count, moveGroup)) ? static_cast<void>(0) : qt_assert("verifyMoveTo(fromGroup, from, toGroup, to, count, moveGroup)", __FILE__, 779));-
470-
471-
472 iterator fromIt = find(fromGroup, from);-
473-
474 if (fromIt != moveGroup
fromIt != moveGroupDescription
TRUEnever evaluated
FALSEevaluated 60 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
0-60
475-
476-
477 fromIt.incrementIndexes(fromIt->count - fromIt.offset);-
478 fromIt.offset = 0;-
479 *fromIt = fromIt->next;-
480 }
never executed: end of block
else if (fromIt.offset > 0
fromIt.offset > 0Description
TRUEevaluated 24 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 36 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
) {
0-36
481-
482-
483-
484 *fromIt = insert(-
485 *fromIt, fromIt->list, fromIt->index, fromIt.offset, fromIt->flags & ~AppendFlag)->next;-
486 fromIt->index += fromIt.offset;-
487 fromIt->count -= fromIt.offset;-
488 fromIt.offset = 0;-
489 }
executed 24 times by 3 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
24
490-
491-
492 Range movedFlags;-
493 for (int moveId = m_moveId; count > 0
count > 0Description
TRUEevaluated 94 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 60 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
;) {
60-94
494 if (fromIt != moveGroup
fromIt != moveGroupDescription
TRUEnever evaluated
FALSEevaluated 94 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
0-94
495-
496 fromIt.incrementIndexes(fromIt->count);-
497 *fromIt = fromIt->next;-
498 continue;
never executed: continue;
0
499 }-
500 int difference = qMin(count, fromIt->count);-
501-
502-
503 new Range(-
504 &movedFlags,-
505 fromIt->list,-
506 fromIt->index,-
507 difference,-
508 fromIt->flags & ~(PrependFlag | AppendFlag));-
509-
510 if (removes
removesDescription
TRUEevaluated 92 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
)
2-92
511 removes->append(Remove(fromIt, difference, fromIt->flags, ++moveId));
executed 92 times by 4 tests: removes->append(Remove(fromIt, difference, fromIt->flags, ++moveId));
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
92
512 count -= difference;-
513 fromIt->count -= difference;-
514-
515-
516-
517 int removeIndex = fromIt->index;-
518 if (fromIt->prepend()
fromIt->prepend()Description
TRUEevaluated 62 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 32 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
32-62
519 && fromIt->previous != &m_ranges
fromIt->previous != &m_rangesDescription
TRUEevaluated 58 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
4-58
520 && fromIt->previous->flags == PrependFlag
fromIt->previo...== PrependFlagDescription
TRUEevaluated 32 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 26 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
26-32
521 && fromIt->previous->list == fromIt->list
fromIt->previo...= fromIt->listDescription
TRUEevaluated 32 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-32
522 && fromIt->previous->end() == fromIt->index
fromIt->previo... fromIt->indexDescription
TRUEevaluated 32 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEnever evaluated
) {
0-32
523-
524 fromIt->previous->count += difference;-
525 }
executed 32 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
else if (fromIt->prepend()
fromIt->prepend()Description
TRUEevaluated 30 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 32 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
) {
30-32
526 *fromIt = insert(*fromIt, fromIt->list, removeIndex, difference, PrependFlag)->next;-
527 }
executed 30 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
30
528 fromIt->index += difference;-
529-
530 if (fromIt->count == 0
fromIt->count == 0Description
TRUEevaluated 76 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 18 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
18-76
531-
532 if (fromIt->append()
fromIt->append()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 68 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
)
8-68
533 fromIt->previous->flags |= AppendFlag;
executed 8 times by 2 tests: fromIt->previous->flags |= AppendFlag;
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
8
534 *fromIt = erase(*fromIt);-
535-
536-
537 if (*
*fromIt != m_ranges.nextDescription
TRUEevaluated 74 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
fromIt != m_ranges.next
*fromIt != m_ranges.nextDescription
TRUEevaluated 74 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
&& fromIt->flags == PrependFlag
fromIt->flags == PrependFlagDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 66 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
2-74
538 && fromIt->previous != &m_ranges
fromIt->previous != &m_rangesDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-8
539 && fromIt->previous->flags == PrependFlag
fromIt->previo...== PrependFlagDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
2-6
540 && fromIt->previous->list == fromIt->list
fromIt->previo...= fromIt->listDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-6
541 && fromIt->previous->end() == fromIt->index
fromIt->previo... fromIt->indexDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEnever evaluated
) {
0-6
542 fromIt.incrementIndexes(fromIt->count);-
543 fromIt->previous->count += fromIt->count;-
544 *fromIt = erase(*fromIt);-
545 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
6
546 }
executed 76 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
else if (count > 0
count > 0Description
TRUEnever evaluated
FALSEevaluated 18 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
0-76
547 *fromIt = fromIt->next;-
548 }
never executed: end of block
0
549 }
executed 94 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
94
550-
551-
552 if (*
*fromIt != m_ranges.nextDescription
TRUEevaluated 58 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
fromIt != m_ranges.next
*fromIt != m_ranges.nextDescription
TRUEevaluated 58 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
2-58
553 && *
*fromIt != &m_rangesDescription
TRUEevaluated 52 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
fromIt != &m_ranges
*fromIt != &m_rangesDescription
TRUEevaluated 52 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
6-52
554 && fromIt->previous->list == fromIt->list
fromIt->previo...= fromIt->listDescription
TRUEevaluated 48 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
4-48
555 && (!fromIt->list
!fromIt->listDescription
TRUEnever evaluated
FALSEevaluated 48 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
|| fromIt->previous->end() == fromIt->index
fromIt->previo... fromIt->indexDescription
TRUEevaluated 46 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
)
0-48
556 && fromIt->previous->flags == (fromIt->flags & ~AppendFlag)
fromIt->previo...& ~AppendFlag)Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 40 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
6-40
557 if (fromIt == fromIt.group
fromIt == fromIt.groupDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
)
2-4
558 fromIt.offset = fromIt->previous->count;
executed 4 times by 1 test: fromIt.offset = fromIt->previous->count;
Executed by:
  • tst_qquickvisualdatamodel
4
559 fromIt.offset = fromIt->previous->count;-
560 fromIt->previous->count += fromIt->count;-
561 fromIt->previous->flags = fromIt->flags;-
562 *fromIt = erase(*fromIt)->previous;-
563 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
6
564-
565-
566 insert_iterator toIt = fromIt;-
567 toIt.setGroup(toGroup);-
568-
569 const int difference = to - toIt.index[toGroup];-
570 toIt += difference;-
571-
572-
573-
574 if (toIt.offset > 0
toIt.offset > 0Description
TRUEevaluated 22 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 38 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
22-38
575 *toIt = insert(*toIt, toIt->list, toIt->index, toIt.offset, toIt->flags & ~AppendFlag)->next;-
576 toIt->index += toIt.offset;-
577 toIt->count -= toIt.offset;-
578 toIt.offset = 0;-
579 }
executed 22 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
22
580-
581-
582-
583 for (Range *range = movedFlags.previous; range != &movedFlags
range != &movedFlagsDescription
TRUEevaluated 94 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 60 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
; range = range->previous) {
60-94
584 if (*
*toIt != &m_rangesDescription
TRUEevaluated 92 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
toIt != &m_ranges
*toIt != &m_rangesDescription
TRUEevaluated 92 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
2-92
585 && range->list == toIt->list
range->list == toIt->listDescription
TRUEevaluated 78 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
14-78
586 && (!range->list
!range->listDescription
TRUEnever evaluated
FALSEevaluated 78 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
|| range->end() == toIt->index
range->end() == toIt->indexDescription
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 56 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
)
0-78
587 && range->flags == (toIt->flags & ~AppendFlag)
range->flags =...& ~AppendFlag)Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
) {
10-12
588 toIt->index -= range->count;-
589 toIt->count += range->count;-
590 }
executed 12 times by 2 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
else {
12
591 *toIt = insert(*toIt, range->list, range->index, range->count, range->flags);-
592 }
executed 82 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
82
593 }-
594-
595-
596 if (*
*toIt != m_ranges.nextDescription
TRUEevaluated 52 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
toIt != m_ranges.next
*toIt != m_ranges.nextDescription
TRUEevaluated 52 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
8-52
597 && toIt->previous->list == toIt->list
toIt->previous... == toIt->listDescription
TRUEevaluated 50 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
2-50
598 && (!toIt->list
!toIt->listDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 48 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
|| (toIt->previous->end() == toIt->index
toIt->previous...== toIt->indexDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
FALSEevaluated 44 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
&& toIt->previous->flags == (toIt->flags & ~AppendFlag)
toIt->previous...& ~AppendFlag)Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
FALSEnever evaluated
))) {
0-48
599 toIt.offset = toIt->previous->count;-
600 toIt->previous->count += toIt->count;-
601 toIt->previous->flags = toIt->flags;-
602 *toIt = erase(*toIt)->previous;-
603 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
6
604-
605 Insert insert(toIt, 0, 0, 0);-
606 for (Range *next, *range = movedFlags.next; range != &movedFlags
range != &movedFlagsDescription
TRUEevaluated 94 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 60 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
; range = next) {
60-94
607 insert.count = range->count;-
608 insert.flags = range->flags;-
609 if (inserts
insertsDescription
TRUEevaluated 92 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
) {
2-92
610 insert.moveId = ++m_moveId;-
611 inserts->append(insert);-
612 }
executed 92 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
92
613 for (int i = 0; i < m_groupCount
i < m_groupCountDescription
TRUEevaluated 404 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 94 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
; ++i) {
94-404
614 if (insert.inGroup(i)
insert.inGroup(i)Description
TRUEevaluated 216 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 188 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
)
188-216
615 insert.index[i] += range->count;
executed 216 times by 4 tests: insert.index[i] += range->count;
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
216
616 }
executed 404 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
404
617-
618 next = range->next;-
619 delete range;-
620 }
executed 94 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
94
621-
622 m_cacheIt = toIt;-
623-
624 -
625}
executed 60 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
60
626-
627-
628-
629-
630-
631void QQmlListCompositor::clear()-
632{-
633 -
634 for (Range *range = m_ranges.next; range != &m_ranges
range != &m_rangesDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
; range = erase(range)) {}
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmllistcompositor
2-6
635 m_end = iterator(m_ranges.next, 0, Default, m_groupCount);-
636 m_cacheIt = m_end;-
637}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmllistcompositor
2
638-
639void QQmlListCompositor::listItemsInserted(-
640 QVector<Insert> *translatedInsertions,-
641 void *list,-
642 const QVector<QQmlChangeSet::Change> &insertions,-
643 const QVector<MovedFlags> *movedFlags)-
644{-
645 -
646 for (iterator it(m_ranges.next, 0, Default, m_groupCount); *
*it != &m_rangesDescription
TRUEevaluated 17121 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 9232 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
it != &m_ranges
*it != &m_rangesDescription
TRUEevaluated 17121 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 9232 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
; *it = it->next) {
9232-17121
647 if (it->list != list
it->list != listDescription
TRUEevaluated 104 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickvisualdatamodel
FALSEevaluated 17017 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
|| it->flags == CacheFlag
it->flags == CacheFlagDescription
TRUEevaluated 1814 times by 7 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 15203 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
) {
104-17017
648-
649 it.incrementIndexes(it->count);-
650 continue;
executed 1918 times by 7 tests: continue;
Executed by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1918
651 } else if (it->flags & MovedFlag
it->flags & MovedFlagDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 15201 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
) {
2-15201
652-
653 it->flags &= ~MovedFlag;-
654 it.incrementIndexes(it->count);-
655 continue;
executed 2 times by 1 test: continue;
Executed by:
  • tst_qqmllistcompositor
2
656 }-
657 for (const QQmlChangeSet::Change &insertion : insertions) {-
658 int offset = insertion.index - it->index;-
659 if ((offset > 0
offset > 0Description
TRUEevaluated 9841 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 5504 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
&& offset < it->count
offset < it->countDescription
TRUEevaluated 1435 times by 7 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 8406 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
)
1435-9841
660 || (offset == 0
offset == 0Description
TRUEevaluated 3489 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 10421 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
&& it->prepend()
it->prepend()Description
TRUEevaluated 3487 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
)
2-10421
661 || (offset == it->count
offset == it->countDescription
TRUEevaluated 6371 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 4052 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
&& it->append()
it->append()Description
TRUEevaluated 4386 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 1985 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
)) {
1985-6371
662-
663 if (it->prepend()
it->prepend()Description
TRUEevaluated 9306 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
) {
2-9306
664-
665 uint flags = m_defaultFlags;-
666 if (insertion.isMove()
insertion.isMove()Description
TRUEevaluated 1172 times by 6 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 8134 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
) {
1172-8134
667-
668-
669 for (QVector<MovedFlags>::const_iterator move = movedFlags->begin();-
670 move != movedFlags->end()
move != movedFlags->end()Description
TRUEevaluated 1252 times by 6 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEnever evaluated
;
0-1252
671 ++move) {-
672 if (move->moveId == insertion.moveId
move->moveId =...sertion.moveIdDescription
TRUEevaluated 1172 times by 6 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 80 times by 4 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
80-1172
673 flags = move->flags;-
674 break;
executed 1172 times by 6 tests: break;
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1172
675 }-
676 }
executed 80 times by 4 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
80
677 }
executed 1172 times by 6 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1172
678 if (flags & ~(AppendFlag | PrependFlag)
flags & ~(Appe...| PrependFlag)Description
TRUEevaluated 9304 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
) {
2-9304
679-
680 Insert translatedInsert(it, insertion.count, flags, insertion.moveId);-
681 for (int i = 0; i < m_groupCount
i < m_groupCountDescription
TRUEevaluated 28150 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 9304 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
; ++i) {
9304-28150
682 if (it->inGroup(i)
it->inGroup(i)Description
TRUEevaluated 15049 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 13101 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
)
13101-15049
683 translatedInsert.index[i] += offset;
executed 15049 times by 14 tests: translatedInsert.index[i] += offset;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
15049
684 }
executed 28150 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
28150
685 translatedInsertions->append(translatedInsert);-
686 }
executed 9304 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
9304
687 if ((
(it->flags & ~...Flag) == flagsDescription
TRUEevaluated 4217 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 5089 times by 8 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
it->flags & ~AppendFlag) == flags
(it->flags & ~...Flag) == flagsDescription
TRUEevaluated 4217 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
FALSEevaluated 5089 times by 8 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
4217-5089
688-
689-
690 it->count += insertion.count;-
691 }
executed 4217 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
else if (offset == 0
offset == 0Description
TRUEevaluated 2283 times by 8 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 2806 times by 7 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2283-4217
692 && it->previous != &m_ranges
it->previous != &m_rangesDescription
TRUEevaluated 1916 times by 7 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 367 times by 8 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
367-1916
693 && it->previous->list == list
it->previous->list == listDescription
TRUEevaluated 1892 times by 7 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
24-1892
694 && it->previous->end() == insertion.index
it->previous->...nsertion.indexDescription
TRUEevaluated 1796 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 96 times by 7 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
96-1796
695 && it->previous->flags == flags
it->previous->flags == flagsDescription
TRUEevaluated 1789 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
) {
7-1789
696-
697-
698 it->previous->count += insertion.count;-
699 it->index += insertion.count;-
700 it.incrementIndexes(insertion.count);-
701 }
executed 1789 times by 5 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
else {
1789
702 if (offset > 0
offset > 0Description
TRUEevaluated 2806 times by 7 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 494 times by 8 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
494-2806
703-
704 it.incrementIndexes(offset);-
705 *it = insert(*it, it->list, it->index, offset, it->flags & ~AppendFlag)->next;-
706 }
executed 2806 times by 7 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2806
707-
708 *it = insert(*it, it->list, insertion.index, insertion.count, flags)->next;-
709 it.incrementIndexes(insertion.count, flags);-
710 it->index += offset + insertion.count;-
711 it->count -= offset;-
712 }
executed 3300 times by 8 tests: end of block
Executed by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
3300
713 m_end.incrementIndexes(insertion.count, flags);-
714 }
executed 9306 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
else {
9306
715-
716-
717 if (offset > 0
offset > 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEnever evaluated
) {
0-2
718 *it = insert(*it, it->list, it->index, offset, it->flags)->next;-
719 it->index += offset;-
720 it->count -= offset;-
721 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmllistcompositor
2
722 it->index += insertion.count;-
723 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmllistcompositor
2
724 } else if (offset <= 0
offset <= 0Description
TRUEevaluated 2017 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 4020 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
) {
2017-4020
725-
726 it->index += insertion.count;-
727 }
executed 2017 times by 5 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
2017
728 }
executed 15345 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
15345
729 it.incrementIndexes(it->count);-
730 }
executed 15201 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
15201
731 m_cacheIt = m_end;-
732 -
733}
executed 9232 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
9232
734void QQmlListCompositor::listItemsInserted(-
735 void *list, int index, int count, QVector<Insert> *translatedInsertions)-
736{-
737 -
738 ((count > 0) ? static_cast<void>(0) : qt_assert("count > 0", __FILE__, 1063));-
739-
740 QVector<QQmlChangeSet::Change> insertions;-
741 insertions.append(QQmlChangeSet::Change(index, count));-
742-
743 listItemsInserted(translatedInsertions, list, insertions);-
744}
executed 8138 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
8138
745-
746void QQmlListCompositor::listItemsRemoved(-
747 QVector<Remove> *translatedRemovals,-
748 void *list,-
749 QVector<QQmlChangeSet::Change> *removals,-
750 QVector<QQmlChangeSet::Change> *insertions,-
751 QVector<MovedFlags> *movedFlags)-
752{-
753 -
754-
755 for (iterator it(m_ranges.next, 0, Default, m_groupCount); *
*it != &m_rangesDescription
TRUEevaluated 8877 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 3706 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
it != &m_ranges
*it != &m_rangesDescription
TRUEevaluated 8877 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 3706 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
; *it = it->next) {
3706-8877
756 if (it->list != list
it->list != listDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 8869 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
|| it->flags == CacheFlag
it->flags == CacheFlagDescription
TRUEevaluated 839 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 8030 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
8-8869
757-
758 it.incrementIndexes(it->count);-
759 continue;
executed 847 times by 5 tests: continue;
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
847
760 }-
761 bool removed = false;-
762 for (QVector<QQmlChangeSet::Change>::iterator removal = removals->begin();-
763 !removed
!removedDescription
TRUEevaluated 15429 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 783 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
&& removal != removals->end()
removal != removals->end()Description
TRUEevaluated 8182 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 7247 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
;
783-15429
764 ++removal) {-
765 int relativeIndex = removal->index - it->index;-
766 int itemsRemoved = removal->count;-
767 if (relativeIndex + removal->count > 0
relativeIndex ...val->count > 0Description
TRUEevaluated 5825 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 2357 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
&& relativeIndex < it->count
relativeIndex < it->countDescription
TRUEevaluated 4108 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 1717 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
) {
1717-5825
768-
769 const int offset = qMax(0, relativeIndex);-
770 int removeCount = qMin(it->count, relativeIndex + removal->count) - offset;-
771 it->count -= removeCount;-
772 int removeFlags = it->flags & m_removeFlags;-
773 Remove translatedRemoval(it, removeCount, it->flags);-
774 for (int i = 0; i < m_groupCount
i < m_groupCountDescription
TRUEevaluated 12428 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 4108 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
; ++i) {
4108-12428
775 if (it->inGroup(i)
it->inGroup(i)Description
TRUEevaluated 7077 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 5351 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
)
5351-7077
776 translatedRemoval.index[i] += offset;
executed 7077 times by 12 tests: translatedRemoval.index[i] += offset;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
7077
777 }
executed 12428 times by 12 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
12428
778 if (removal->isMove()
removal->isMove()Description
TRUEevaluated 1174 times by 6 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 2934 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
1174-2934
779-
780 QVector<QQmlChangeSet::Change>::iterator insertion = insertions->begin();-
781 for (; insertion != insertions->end()
insertion != insertions->end()Description
TRUEevaluated 1254 times by 6 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEnever evaluated
&& insertion->moveId != removal->moveId
insertion->mov...emoval->moveIdDescription
TRUEevaluated 80 times by 4 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 1174 times by 6 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
;
0-1254
782 ++insertion) {}
executed 80 times by 4 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
80
783 ((insertion != insertions->end()) ? static_cast<void>(0) : qt_assert("insertion != insertions->end()", __FILE__, 1108));-
784 ((insertion->count == removal->count) ? static_cast<void>(0) : qt_assert("insertion->count == removal->count", __FILE__, 1109));-
785-
786 if (relativeIndex < 0
relativeIndex < 0Description
TRUEnever evaluated
FALSEevaluated 1174 times by 6 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
0-1174
787-
788-
789 int splitMoveId = ++m_moveId;-
790 removal = removals->insert(removal, QQmlChangeSet::Change(-
791 removal->index, -relativeIndex, splitMoveId));-
792 ++removal;-
793 removal->count -= -relativeIndex;-
794 insertion = insertions->insert(insertion, QQmlChangeSet::Change(-
795 insertion->index, -relativeIndex, splitMoveId));-
796 ++insertion;-
797 insertion->index += -relativeIndex;-
798 insertion->count -= -relativeIndex;-
799 }
never executed: end of block
0
800-
801 if (it->prepend()
it->prepend()Description
TRUEevaluated 1172 times by 6 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
) {
2-1172
802-
803-
804 removeFlags |= it->flags & CacheFlag;-
805 translatedRemoval.moveId = ++m_moveId;-
806 movedFlags->append(MovedFlags(m_moveId, it->flags & ~AppendFlag));-
807-
808 if (removeCount < removal->count
removeCount < removal->countDescription
TRUEevaluated 78 times by 4 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 1094 times by 6 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
78-1094
809-
810-
811 removal = removals->insert(removal, QQmlChangeSet::Change(-
812 removal->index, removeCount, translatedRemoval.moveId));-
813 ++removal;-
814 insertion = insertions->insert(insertion, QQmlChangeSet::Change(-
815 insertion->index, removeCount, translatedRemoval.moveId));-
816 ++insertion;-
817-
818 removal->count -= removeCount;-
819 insertion->index += removeCount;-
820 insertion->count -= removeCount;-
821 }
executed 78 times by 4 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
else {
78
822-
823-
824 removal->moveId = translatedRemoval.moveId;-
825 insertion->moveId = translatedRemoval.moveId;-
826 }
executed 1094 times by 6 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1094
827 } else {-
828-
829-
830-
831 if (offset > 0
offset > 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEnever evaluated
) {
0-2
832 *it = insert(*it, it->list, it->index, offset, it->flags & ~AppendFlag)->next;-
833 it->index += offset;-
834 it->count -= offset;-
835 it.incrementIndexes(offset);-
836 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmllistcompositor
2
837 if (it->previous != &m_ranges
it->previous != &m_rangesDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEnever evaluated
0-2
838 && it->previous->list == it->list
it->previous->list == it->listDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEnever evaluated
0-2
839 && it->end() == insertion->index
it->end() == insertion->indexDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
0-2
840 && it->previous->flags == (it->flags | MovedFlag)
it->previous->...s | MovedFlag)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
841 it->previous->count += removeCount;-
842 }
never executed: end of block
else {
0
843 *it = insert(*it, it->list, insertion->index, removeCount, it->flags | MovedFlag)->next;-
844 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmllistcompositor
2
845-
846 translatedRemoval.flags = 0;-
847 removeFlags = 0;-
848 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmllistcompositor
2
849 } else if (it->inCache()
it->inCache()Description
TRUEevaluated 2101 times by 8 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 833 times by 10 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
833-2101
850-
851-
852-
853 if (offset > 0
offset > 0Description
TRUEevaluated 1052 times by 7 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 1049 times by 8 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
1049-1052
854 *it = insert(*it, it->list, it->index, offset, it->flags & ~AppendFlag)->next;-
855 it->index += offset;-
856 it->count -= offset;-
857 it.incrementIndexes(offset);-
858 }
executed 1052 times by 7 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1052
859 if (it->previous != &m_ranges
it->previous != &m_rangesDescription
TRUEevaluated 1435 times by 7 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 666 times by 7 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
666-1435
860 && it->previous->list == it->list
it->previous->list == it->listDescription
TRUEevaluated 1435 times by 7 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-1435
861 && it->previous->flags == CacheFlag
it->previous->...s == CacheFlagDescription
TRUEevaluated 244 times by 4 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
FALSEevaluated 1191 times by 7 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
244-1191
862 it->previous->count += removeCount;-
863 }
executed 244 times by 4 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
else {
244
864 *it = insert(*it, it->list, -1, removeCount, CacheFlag)->next;-
865 }
executed 1857 times by 8 tests: end of block
Executed by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1857
866 it.index[Cache] += removeCount;-
867 }
executed 2101 times by 8 tests: end of block
Executed by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2101
868 if (removeFlags & GroupMask
removeFlags & GroupMaskDescription
TRUEevaluated 4102 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
)
6-4102
869 translatedRemovals->append(translatedRemoval);
executed 4102 times by 12 tests: translatedRemovals->append(translatedRemoval);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
4102
870 m_end.decrementIndexes(removeCount, removeFlags);-
871 if (it->count == 0
it->count == 0Description
TRUEevaluated 1441 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 2667 times by 8 tests
Evaluated by:
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
&& !it->append()
!it->append()Description
TRUEevaluated 783 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 658 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
658-2667
872-
873 *it = erase(*it)->previous;-
874 removed = true;-
875 }
executed 783 times by 5 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
else if (relativeIndex <= 0
relativeIndex <= 0Description
TRUEevaluated 1594 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 1731 times by 7 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
) {
783-1731
876-
877-
878 it->index = removal->index;-
879 }
executed 1594 times by 12 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1594
880 }
executed 4108 times by 12 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
else if (relativeIndex < 0
relativeIndex < 0Description
TRUEevaluated 2357 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 1717 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
) {
1717-4108
881-
882-
883 it->index -= itemsRemoved;-
884-
885 if (it->previous != &m_ranges
it->previous != &m_rangesDescription
TRUEevaluated 2251 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 106 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
106-2251
886 && it->previous->list == it->list
it->previous->list == it->listDescription
TRUEevaluated 2249 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
2-2249
887 && it->previous->end() == it->index
it->previous->...) == it->indexDescription
TRUEevaluated 1536 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 713 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
713-1536
888 && it->previous->flags == (it->flags & ~AppendFlag)
it->previous->...& ~AppendFlag)Description
TRUEevaluated 40 times by 4 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 1496 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
) {
40-1496
889-
890 it.decrementIndexes(it->previous->count);-
891 it->previous->count += it->count;-
892 it->previous->flags = it->flags;-
893 *it = erase(*it)->previous;-
894 }
executed 40 times by 4 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
40
895 }
executed 2357 times by 5 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
2357
896 }
executed 8182 times by 12 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
8182
897 if (it->flags == CacheFlag
it->flags == CacheFlagDescription
TRUEevaluated 625 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
FALSEevaluated 7405 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
&& it->next->flags == CacheFlag
it->next->flags == CacheFlagDescription
TRUEevaluated 299 times by 4 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 326 times by 4 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
&& it->next->list == it->list
it->next->list == it->listDescription
TRUEevaluated 299 times by 4 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEnever evaluated
) {
0-7405
898-
899 it.index[Cache] += it->next->count;-
900 it->count += it->next->count;-
901 erase(it->next);-
902 }
executed 299 times by 4 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
else if (!removed
!removedDescription
TRUEevaluated 7247 times by 12 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 484 times by 5 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
) {
299-7247
903 it.incrementIndexes(it->count);-
904 }
executed 7247 times by 12 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
7247
905 }
executed 8030 times by 12 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
8030
906 m_cacheIt = m_end;-
907 -
908}
executed 3706 times by 12 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
3706
909void QQmlListCompositor::listItemsRemoved(-
910 void *list, int index, int count, QVector<Remove> *translatedRemovals)-
911{-
912 -
913 ((count >= 0) ? static_cast<void>(0) : qt_assert("count >= 0", __FILE__, 1252));-
914-
915 QVector<QQmlChangeSet::Change> removals;-
916 removals.append(QQmlChangeSet::Change(index, count));-
917 listItemsRemoved(translatedRemovals, list, &removals, nullptr, nullptr);-
918}
executed 2612 times by 12 tests: end of block
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlinstantiator
  • tst_qqmllistcompositor
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2612
919void QQmlListCompositor::listItemsMoved(-
920 void *list,-
921 int from,-
922 int to,-
923 int count,-
924 QVector<Remove> *translatedRemovals,-
925 QVector<Insert> *translatedInsertions)-
926{-
927 -
928 ((count >= 0) ? static_cast<void>(0) : qt_assert("count >= 0", __FILE__, 1279));-
929-
930 QVector<QQmlChangeSet::Change> removals;-
931 QVector<QQmlChangeSet::Change> insertions;-
932 QVector<MovedFlags> movedFlags;-
933 removals.append(QQmlChangeSet::Change(from, count, 0));-
934 insertions.append(QQmlChangeSet::Change(to, count, 0));-
935-
936 listItemsRemoved(translatedRemovals, list, &removals, &insertions, &movedFlags);-
937 listItemsInserted(translatedInsertions, list, insertions, &movedFlags);-
938}
executed 1094 times by 6 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1094
939-
940void QQmlListCompositor::listItemsChanged(-
941 QVector<Change> *translatedChanges,-
942 void *list,-
943 const QVector<QQmlChangeSet::Change> &changes)-
944{-
945 -
946 for (iterator it(m_ranges.next, 0, Default, m_groupCount); *
*it != &m_rangesDescription
TRUEevaluated 548 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 430 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
it != &m_ranges
*it != &m_rangesDescription
TRUEevaluated 548 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 430 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
; *it = it->next) {
430-548
947 if (it->list != list
it->list != listDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 546 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
|| it->flags == CacheFlag
it->flags == CacheFlagDescription
TRUEevaluated 28 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
FALSEevaluated 518 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
2-546
948 it.incrementIndexes(it->count);-
949 continue;
executed 30 times by 2 tests: continue;
Executed by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
30
950 } else if (!it->inGroup()
!it->inGroup()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 516 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
2-516
951 continue;
executed 2 times by 1 test: continue;
Executed by:
  • tst_qqmllistcompositor
2
952 }-
953 for (const QQmlChangeSet::Change &change : changes) {-
954 const int offset = change.index - it->index;-
955 if (offset + change.count > 0
offset + change.count > 0Description
TRUEevaluated 452 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_qquicklistview
&& offset < it->count
offset < it->countDescription
TRUEevaluated 432 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
) {
20-452
956 const int changeOffset = qMax(0, offset);-
957 const int changeCount = qMin(it->count, offset + change.count) - changeOffset;-
958-
959 Change translatedChange(it, changeCount, it->flags);-
960 for (int i = 0; i < m_groupCount
i < m_groupCountDescription
TRUEevaluated 1302 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 432 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
; ++i) {
432-1302
961 if (it->inGroup(i)
it->inGroup(i)Description
TRUEevaluated 846 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 456 times by 3 tests
Evaluated by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
)
456-846
962 translatedChange.index[i] += changeOffset;
executed 846 times by 3 tests: translatedChange.index[i] += changeOffset;
Executed by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
846
963 }
executed 1302 times by 3 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
1302
964 translatedChanges->append(translatedChange);-
965 }
executed 432 times by 3 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
432
966 }
executed 516 times by 3 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
516
967 it.incrementIndexes(it->count);-
968 }
executed 516 times by 3 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
516
969}
executed 430 times by 3 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
430
970void QQmlListCompositor::listItemsChanged(-
971 void *list, int index, int count, QVector<Change> *translatedChanges)-
972{-
973 -
974 ((count >= 0) ? static_cast<void>(0) : qt_assert("count >= 0", __FILE__, 1334));-
975 QVector<QQmlChangeSet::Change> changes;-
976 changes.append(QQmlChangeSet::Change(index, count));-
977 listItemsChanged(translatedChanges, list, changes);-
978}
executed 430 times by 3 tests: end of block
Executed by:
  • tst_qqmllistcompositor
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
430
979-
980void QQmlListCompositor::transition(-
981 Group from,-
982 Group to,-
983 QVector<QQmlChangeSet::Change> *removes,-
984 QVector<QQmlChangeSet::Change> *inserts)-
985{-
986 int removeCount = 0;-
987 for (iterator it(m_ranges.next, 0, Default, m_groupCount); *
*it != &m_rangesDescription
TRUEevaluated 74 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
FALSEevaluated 5636 times by 27 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_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
it != &m_ranges
*it != &m_rangesDescription
TRUEevaluated 74 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
FALSEevaluated 5636 times by 27 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_qquicktableview
  • tst_qquickvisualdatamodel
  • ...
; *it = it->next) {
74-5636
988 if (it == from
it == fromDescription
TRUEevaluated 46 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
&& it != to
it != toDescription
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickvisualdatamodel
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
) {
22-46
989 removes->append(QQmlChangeSet::Change(it.index[from]- removeCount, it->count));-
990 removeCount += it->count;-
991 }
executed 22 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
else if (it != from
it != fromDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
&& it == to
it == toDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickvisualdatamodel
) {
8-28
992 inserts->append(QQmlChangeSet::Change(it.index[to], it->count));-
993 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_qquickvisualdatamodel
20
994 it.incrementIndexes(it->count);-
995 }
executed 74 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickvisualdatamodel
74
996}
executed 5636 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
  • ...
5636
997-
998-
999-
1000-
1001-
1002-
1003QDebug operator <<(QDebug debug, const QQmlListCompositor::Group &group)-
1004{-
1005 switch (group) {-
1006 case
executed 2 times by 1 test: case QQmlListCompositor::Cache:
Executed by:
  • tst_qqmllistcompositor
QQmlListCompositor::Cache:
executed 2 times by 1 test: case QQmlListCompositor::Cache:
Executed by:
  • tst_qqmllistcompositor
return
executed 2 times by 1 test: return debug << "Cache";
Executed by:
  • tst_qqmllistcompositor
debug << "Cache";
executed 2 times by 1 test: return debug << "Cache";
Executed by:
  • tst_qqmllistcompositor
2
1007 case
executed 2 times by 1 test: case QQmlListCompositor::Default:
Executed by:
  • tst_qqmllistcompositor
QQmlListCompositor::Default:
executed 2 times by 1 test: case QQmlListCompositor::Default:
Executed by:
  • tst_qqmllistcompositor
return
executed 2 times by 1 test: return debug << "Default";
Executed by:
  • tst_qqmllistcompositor
debug << "Default";
executed 2 times by 1 test: return debug << "Default";
Executed by:
  • tst_qqmllistcompositor
2
1008 default
executed 2 times by 1 test: default:
Executed by:
  • tst_qqmllistcompositor
:
executed 2 times by 1 test: default:
Executed by:
  • tst_qqmllistcompositor
return
executed 2 times by 1 test: return (debug.nospace() << "Group" << int(group)).space();
Executed by:
  • tst_qqmllistcompositor
(debug.nospace() << "Group" << int(group)).space();
executed 2 times by 1 test: return (debug.nospace() << "Group" << int(group)).space();
Executed by:
  • tst_qqmllistcompositor
2
1009 }-
1010-
1011}-
1012-
1013-
1014-
1015-
1016-
1017-
1018QDebug operator <<(QDebug debug, const QQmlListCompositor::Range &range)-
1019{-
1020 (debug.nospace()-
1021 << "Range("-
1022 << range.list) << ' '-
1023 << range.index << ' '-
1024 << range.count << ' '-
1025 << (range.isUnresolved() ? 'U' : '0')-
1026 << (range.append() ? 'A' : '0')-
1027 << (range.prepend() ? 'P' : '0');-
1028 for (int i = QQmlListCompositor::MaximumGroupCount - 1; i >= 2
i >= 2Description
TRUEevaluated 216 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
; --i)
24-216
1029 debug << (range.inGroup(i) ? '1' : '0');
executed 216 times by 1 test: debug << (range.inGroup(i) ? '1' : '0');
Executed by:
  • tst_qqmllistcompositor
216
1030 return
executed 24 times by 1 test: return (debug << (range.inGroup(QQmlListCompositor::Default) ? 'D' : '0') << (range.inGroup(QQmlListCompositor::Cache) ? 'C' : '0'));
Executed by:
  • tst_qqmllistcompositor
(debug
executed 24 times by 1 test: return (debug << (range.inGroup(QQmlListCompositor::Default) ? 'D' : '0') << (range.inGroup(QQmlListCompositor::Cache) ? 'C' : '0'));
Executed by:
  • tst_qqmllistcompositor
24
1031 << (range.inGroup(QQmlListCompositor::Default) ? 'D' : '0')
executed 24 times by 1 test: return (debug << (range.inGroup(QQmlListCompositor::Default) ? 'D' : '0') << (range.inGroup(QQmlListCompositor::Cache) ? 'C' : '0'));
Executed by:
  • tst_qqmllistcompositor
24
1032 << (range.inGroup(QQmlListCompositor::Cache) ? 'C' : '0'));
executed 24 times by 1 test: return (debug << (range.inGroup(QQmlListCompositor::Default) ? 'D' : '0') << (range.inGroup(QQmlListCompositor::Cache) ? 'C' : '0'));
Executed by:
  • tst_qqmllistcompositor
24
1033}-
1034-
1035static void qt_print_indexes(QDebug &debug, int count, const int *indexes)-
1036{-
1037 for (int i = count - 1; i >= 0
i >= 0Description
TRUEevaluated 112 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
; --i)
28-112
1038 debug << indexes[i];
executed 112 times by 1 test: debug << indexes[i];
Executed by:
  • tst_qqmllistcompositor
112
1039}
executed 28 times by 1 test: end of block
Executed by:
  • tst_qqmllistcompositor
28
1040-
1041-
1042-
1043-
1044-
1045-
1046QDebug operator <<(QDebug debug, const QQmlListCompositor::iterator &it)-
1047{-
1048 (debug.nospace() << "iterator(" << it.group).space() << "offset:" << it.offset;-
1049 qt_print_indexes(debug, it.groupCount, it.index);-
1050 return
never executed: return ((debug << **it).nospace() << ')').space();
((debug << **it).nospace() << ')').space();
never executed: return ((debug << **it).nospace() << ')').space();
0
1051}-
1052-
1053static QDebug qt_print_change(QDebug debug, const char *name, const QQmlListCompositor::Change &change)-
1054{-
1055 debug.nospace() << name << '(' << change.moveId << ' ' << change.count << ' ';-
1056 for (int i = QQmlListCompositor::MaximumGroupCount - 1; i >= 2
i >= 2Description
TRUEevaluated 54 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
; --i)
6-54
1057 debug << (change.inGroup(i) ? '1' : '0');
executed 54 times by 1 test: debug << (change.inGroup(i) ? '1' : '0');
Executed by:
  • tst_qqmllistcompositor
54
1058 debug << (change.inGroup(QQmlListCompositor::Default) ? 'D' : '0')-
1059 << (change.inGroup(QQmlListCompositor::Cache) ? 'C' : '0');-
1060 int i = QQmlListCompositor::MaximumGroupCount - 1;-
1061 for (; i >= 0
i >= 0Description
TRUEevaluated 56 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEnever evaluated
&& !change.inGroup(i)
!change.inGroup(i)Description
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
; --i) {}
executed 50 times by 1 test: end of block
Executed by:
  • tst_qqmllistcompositor
0-56
1062 for (; i >= 0
i >= 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
; --i)
6-16
1063 debug << ' ' << change.index[i];
executed 16 times by 1 test: debug << ' ' << change.index[i];
Executed by:
  • tst_qqmllistcompositor
16
1064 return
executed 6 times by 1 test: return (debug << ')').maybeSpace();
Executed by:
  • tst_qqmllistcompositor
(debug << ')').maybeSpace();
executed 6 times by 1 test: return (debug << ')').maybeSpace();
Executed by:
  • tst_qqmllistcompositor
6
1065}-
1066-
1067-
1068-
1069-
1070-
1071-
1072QDebug operator <<(QDebug debug, const QQmlListCompositor::Change &change)-
1073{-
1074 return
executed 2 times by 1 test: return qt_print_change(debug, "Change", change);
Executed by:
  • tst_qqmllistcompositor
qt_print_change(debug, "Change", change);
executed 2 times by 1 test: return qt_print_change(debug, "Change", change);
Executed by:
  • tst_qqmllistcompositor
2
1075}-
1076-
1077-
1078-
1079-
1080-
1081-
1082QDebug operator <<(QDebug debug, const QQmlListCompositor::Remove &remove)-
1083{-
1084 return
executed 2 times by 1 test: return qt_print_change(debug, "Remove", remove);
Executed by:
  • tst_qqmllistcompositor
qt_print_change(debug, "Remove", remove);
executed 2 times by 1 test: return qt_print_change(debug, "Remove", remove);
Executed by:
  • tst_qqmllistcompositor
2
1085}-
1086-
1087-
1088-
1089-
1090-
1091-
1092QDebug operator <<(QDebug debug, const QQmlListCompositor::Insert &insert)-
1093{-
1094 return
executed 2 times by 1 test: return qt_print_change(debug, "Insert", insert);
Executed by:
  • tst_qqmllistcompositor
qt_print_change(debug, "Insert", insert);
executed 2 times by 1 test: return qt_print_change(debug, "Insert", insert);
Executed by:
  • tst_qqmllistcompositor
2
1095}-
1096-
1097-
1098-
1099-
1100-
1101-
1102QDebug operator <<(QDebug debug, const QQmlListCompositor &list)-
1103{-
1104 int indexes[QQmlListCompositor::MaximumGroupCount];-
1105 for (int i = 0; i < QQmlListCompositor::MaximumGroupCount
i < QQmlListCo...imumGroupCountDescription
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
; ++i)
4-44
1106 indexes[i] = 0;
executed 44 times by 1 test: indexes[i] = 0;
Executed by:
  • tst_qqmllistcompositor
44
1107 debug.nospace() << "QQmlListCompositor(";-
1108 qt_print_indexes(debug, list.m_groupCount, list.m_end.index);-
1109 for (QQmlListCompositor::Range *range = list.m_ranges.next; range != &list.m_ranges
range != &list.m_rangesDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
; range = range->next) {
4-24
1110 (debug << '\n').space();-
1111 qt_print_indexes(debug, list.m_groupCount, indexes);-
1112 debug << ' ' << *range;-
1113-
1114 for (int i = 0; i < list.m_groupCount
i < list.m_groupCountDescription
TRUEevaluated 96 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
; ++i) {
24-96
1115 if (range->inGroup(i)
range->inGroup(i)Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
FALSEevaluated 74 times by 1 test
Evaluated by:
  • tst_qqmllistcompositor
)
22-74
1116 indexes[i] += range->count;
executed 22 times by 1 test: indexes[i] += range->count;
Executed by:
  • tst_qqmllistcompositor
22
1117 }
executed 96 times by 1 test: end of block
Executed by:
  • tst_qqmllistcompositor
96
1118 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_qqmllistcompositor
24
1119 return
executed 4 times by 1 test: return (debug << ')').maybeSpace();
Executed by:
  • tst_qqmllistcompositor
(debug << ')').maybeSpace();
executed 4 times by 1 test: return (debug << ')').maybeSpace();
Executed by:
  • tst_qqmllistcompositor
4
1120}-
1121-
1122-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0