OpenCoverage

qpodvector_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/ftw/qpodvector_p.h
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtQml module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#ifndef QPODVECTOR_P_H-
41#define QPODVECTOR_P_H-
42-
43//-
44// W A R N I N G-
45// --------------
46//-
47// This file is not part of the Qt API. It exists purely as an-
48// implementation detail. This header file may change from version to-
49// version without notice, or even be removed.-
50//-
51// We mean it.-
52//-
53-
54#include <QtCore/qglobal.h>-
55#include <QDebug>-
56-
57QT_BEGIN_NAMESPACE-
58-
59template<class T, int Increment>-
60class QPODVector-
61{-
62public:-
63 QPODVector()-
64 : m_count(0), m_capacity(0), m_data(nullptr) {}
executed 76680 times by 39 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • ...
76680
65 ~QPODVector() { if (m_data) ::free(m_data); }
executed 76628 times by 39 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • ...
executed 53526 times by 35 tests: ::free(m_data);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
m_dataDescription
TRUEevaluated 53526 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
FALSEevaluated 23102 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickstates
  • tst_qquicktableview
  • tst_qquicktext
  • ...
23102-76628
66-
67 const T &at(int idx) const {-
68 return m_data[idx];
executed 327639 times by 27 tests: return m_data[idx];
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • ...
327639
69 }-
70-
71 T &operator[](int idx) {-
72 return m_data[idx];
executed 264832 times by 32 tests: return m_data[idx];
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlobjectmodel
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • ...
264832
73 }-
74-
75 void clear() {-
76 m_count = 0;-
77 }
executed 67712 times by 26 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • ...
67712
78-
79 void prepend(const T &v) {-
80 insert(0, v);-
81 }
never executed: end of block
0
82-
83 void append(const T &v) {-
84 insert(m_count, v);-
85 }
executed 127457 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • ...
127457
86-
87 void insert(int idx, const T &v) {-
88 if (m_count == m_capacity) {
m_count == m_capacityDescription
TRUEevaluated 42616 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
FALSEevaluated 90861 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qqmlxmlhttprequest
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickstates
  • ...
42616-90861
89 m_capacity += Increment;-
90 m_data = (T *)realloc(static_cast<void *>(m_data), m_capacity * sizeof(T));-
91 }
executed 42616 times by 35 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
42616
92 int moveCount = m_count - idx;-
93 if (moveCount)
moveCountDescription
TRUEevaluated 306 times by 5 tests
Evaluated by:
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 133171 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
306-133171
94 ::memmove(static_cast<void *>(m_data + idx + 1), static_cast<const void *>(m_data + idx), moveCount * sizeof(T));
executed 306 times by 5 tests: ::memmove(static_cast<void *>(m_data + idx + 1), static_cast<const void *>(m_data + idx), moveCount * sizeof(T));
Executed by:
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
306
95 m_count++;-
96 m_data[idx] = v;-
97 }
executed 133477 times by 35 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
133477
98-
99 void reserve(int count) {-
100 if (count >= m_capacity) {
count >= m_capacityDescription
TRUEevaluated 12398 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlqt
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • tst_scenegraph
FALSEnever evaluated
0-12398
101 m_capacity = (count + (Increment-1)) & (0xFFFFFFFF - Increment + 1);-
102 m_data = (T *)realloc(static_cast<void *>(m_data), m_capacity * sizeof(T));-
103 }
executed 12398 times by 24 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlqt
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • tst_scenegraph
12398
104 }
executed 12398 times by 24 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlqt
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • tst_scenegraph
12398
105-
106 void insertBlank(int idx, int count) {-
107 int newSize = m_count + count;-
108 reserve(newSize);-
109 int moveCount = m_count - idx;-
110 if (moveCount)
moveCountDescription
TRUEnever evaluated
FALSEnever evaluated
0
111 ::memmove(static_cast<void *>(m_data + idx + count), static_cast<const void *>(m_data + idx),
never executed: ::memmove(static_cast<void *>(m_data + idx + count), static_cast<const void *>(m_data + idx), moveCount * sizeof(T));
0
112 moveCount * sizeof(T));
never executed: ::memmove(static_cast<void *>(m_data + idx + count), static_cast<const void *>(m_data + idx), moveCount * sizeof(T));
0
113 m_count = newSize;-
114 }
never executed: end of block
0
115-
116 void remove(int idx, int count = 1) {-
117 int moveCount = m_count - (idx + count);-
118 if (moveCount)
moveCountDescription
TRUEevaluated 3260 times by 14 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 3772 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
3260-3772
119 ::memmove(static_cast<void *>(m_data + idx), static_cast<const void *>(m_data + idx + count),
executed 3260 times by 14 tests: ::memmove(static_cast<void *>(m_data + idx), static_cast<const void *>(m_data + idx + count), moveCount * sizeof(T));
Executed by:
  • tst_flickableinterop
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
3260
120 moveCount * sizeof(T));
executed 3260 times by 14 tests: ::memmove(static_cast<void *>(m_data + idx), static_cast<const void *>(m_data + idx + count), moveCount * sizeof(T));
Executed by:
  • tst_flickableinterop
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
3260
121 m_count -= count;-
122 }
executed 7032 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
  • tst_qtqmlmodules
7032
123-
124 void removeOne(const T &v) {-
125 int idx = 0;-
126 while (idx < m_count) {
idx < m_countDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmllistmodelworkerscript
FALSEnever evaluated
0-4
127 if (m_data[idx] == v) {
m_data[idx] == vDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmllistmodelworkerscript
FALSEnever evaluated
0-4
128 remove(idx);-
129 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_qqmllistmodelworkerscript
4
130 }-
131 ++idx;-
132 }
never executed: end of block
0
133 }
never executed: end of block
0
134-
135 int find(const T &v) {-
136 for (int idx = 0; idx < m_count; ++idx)
idx < m_countDescription
TRUEevaluated 203823 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextinput
FALSEevaluated 37714 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlqt
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • tst_scenegraph
37714-203823
137 if (m_data[idx] == v)
m_data[idx] == vDescription
TRUEevaluated 83533 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextinput
FALSEevaluated 120290 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextinput
83533-120290
138 return idx;
executed 83533 times by 10 tests: return idx;
Executed by:
  • tst_examples
  • tst_qqmlqt
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextinput
83533
139 return -1;
executed 37714 times by 24 tests: return -1;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlqt
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • tst_scenegraph
37714
140 }-
141-
142 bool contains(const T &v) {-
143 return find(v) != -1;
never executed: return find(v) != -1;
0
144 }-
145-
146 int count() const {-
147 return m_count;
executed 919915 times by 35 tests: return m_count;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qmlcachegen
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlobjectmodel
  • tst_qqmlqt
  • tst_qqmltranslation
  • tst_qqmlxmlhttprequest
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • ...
919915
148 }-
149-
150 void copyAndClear(QPODVector<T,Increment> &other) {-
151 if (other.m_data) ::free(other.m_data);
never executed: ::free(other.m_data);
other.m_dataDescription
TRUEnever evaluated
FALSEevaluated 39654 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlqt
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • tst_scenegraph
0-39654
152 other.m_count = m_count;-
153 other.m_capacity = m_capacity;-
154 other.m_data = m_data;-
155 m_count = 0;-
156 m_capacity = 0;-
157 m_data = nullptr;-
158 }
executed 39654 times by 24 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlqt
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwindow
  • tst_scenegraph
39654
159-
160 QPODVector<T,Increment> &operator<<(const T &v) { append(v); return *this; }
never executed: return *this;
0
161private:-
162 QPODVector(const QPODVector &);-
163 QPODVector &operator=(const QPODVector &);-
164 int m_count;-
165 int m_capacity;-
166 T *m_data;-
167};-
168-
169QT_END_NAMESPACE-
170-
171#endif-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0