OpenCoverage

qqmlvaluetypeproxybinding.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlvaluetypeproxybinding.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QQmlValueTypeProxyBinding::QQmlValueTypeProxyBinding(QObject *o, QQmlPropertyIndex index)-
5 : QQmlAbstractBinding(),-
6 m_bindings(nullptr)-
7{-
8 m_target = o;-
9 m_targetIndex = index;-
10}
executed 1364 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickfontloader_static
  • tst_qquickimage
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquicktext
1364
11-
12QQmlValueTypeProxyBinding::~QQmlValueTypeProxyBinding()-
13{-
14 QQmlAbstractBinding *binding = m_bindings.data();-
15 while (binding
bindingDescription
TRUEevaluated 2178 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickflipable
  • tst_qquickfontloader_static
  • tst_qquickimage
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquicktext
FALSEevaluated 1362 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickflipable
  • tst_qquickfontloader_static
  • tst_qquickimage
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquicktext
) {
1362-2178
16 binding->setAddedToObject(false);-
17 binding = binding->nextBinding();-
18 }
executed 2178 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickflipable
  • tst_qquickfontloader_static
  • tst_qquickimage
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquicktext
2178
19}
executed 1362 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickflipable
  • tst_qquickfontloader_static
  • tst_qquickimage
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquicktext
1362
20-
21void QQmlValueTypeProxyBinding::setEnabled(bool e, QQmlPropertyData::WriteFlags flags)-
22{-
23 QQmlAbstractBinding *b = m_bindings.data();-
24 while (b
bDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
) {
8-10
25 b->setEnabled(e, flags);-
26 b = b->nextBinding();-
27 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qqmlvaluetypes
8
28}
executed 10 times by 1 test: end of block
Executed by:
  • tst_qqmlvaluetypes
10
29-
30bool QQmlValueTypeProxyBinding::isValueTypeProxy() const-
31{-
32 return
executed 1170 times by 9 tests: return true;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickimage
  • tst_qquickpathview
  • tst_qquicktext
true;
executed 1170 times by 9 tests: return true;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickimage
  • tst_qquickpathview
  • tst_qquicktext
1170
33}-
34-
35QQmlAbstractBinding *QQmlValueTypeProxyBinding::subBindings() const-
36{-
37 return
executed 2 times by 1 test: return m_bindings.data();
Executed by:
  • tst_qqmlecmascript
m_bindings.data();
executed 2 times by 1 test: return m_bindings.data();
Executed by:
  • tst_qqmlecmascript
2
38}-
39-
40QQmlAbstractBinding *QQmlValueTypeProxyBinding::binding(QQmlPropertyIndex propertyIndex) const-
41{-
42 QQmlAbstractBinding *binding = m_bindings.data();-
43-
44 while (binding
bindingDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
&& binding->targetPropertyIndex() != propertyIndex
binding->targe... propertyIndexDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
)
4-20
45 binding = binding->nextBinding();
executed 4 times by 1 test: binding = binding->nextBinding();
Executed by:
  • tst_qqmlvaluetypes
4
46-
47 return
executed 24 times by 1 test: return binding;
Executed by:
  • tst_qqmlvaluetypes
binding;
executed 24 times by 1 test: return binding;
Executed by:
  • tst_qqmlvaluetypes
24
48}-
49-
50-
51-
52-
53void QQmlValueTypeProxyBinding::removeBindings(quint32 mask)-
54{-
55 QQmlAbstractBinding *binding = m_bindings.data();-
56 QQmlAbstractBinding *lastBinding = nullptr;-
57-
58 while (binding
bindingDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypes
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypes
) {
8
59 const int valueTypeIndex = binding->targetPropertyIndex().valueTypeIndex();-
60 if (valueTypeIndex != -1
valueTypeIndex != -1Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypes
FALSEnever evaluated
&& (
(mask & (1 << valueTypeIndex))Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypes
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
mask & (1 << valueTypeIndex))
(mask & (1 << valueTypeIndex))Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypes
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypes
) {
0-8
61 QQmlAbstractBinding *remove = binding;-
62 remove->setAddedToObject(false);-
63 binding = remove->nextBinding();-
64-
65 if (lastBinding == nullptr
lastBinding == nullptrDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypes
FALSEnever evaluated
)
0-6
66 m_bindings = remove->nextBinding();
executed 6 times by 2 tests: m_bindings = remove->nextBinding();
Executed by:
  • tst_examples
  • tst_qqmlvaluetypes
6
67 else-
68 lastBinding->setNextBinding(remove->nextBinding());
never executed: lastBinding->setNextBinding(remove->nextBinding());
0
69 } else {-
70 lastBinding = binding;-
71 binding = binding->nextBinding();-
72 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlvaluetypes
2
73 }-
74}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlvaluetypes
8
75-
76-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0