OpenCoverage

qquickglobal.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickglobal.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11class QQuickColorProvider : public QQmlColorProvider-
12{-
13public:-
14 QVariant colorFromString(const QString &s, bool *ok) override-
15 {-
16 QColor c(s);-
17 if (c.isValid()
c.isValid()Description
TRUEevaluated 142 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlqt
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlqt
) {
12-142
18 if (ok
okDescription
TRUEevaluated 142 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlqt
FALSEnever evaluated
) *
executed 142 times by 2 tests: *ok = true;
Executed by:
  • tst_examples
  • tst_qqmlqt
ok = true;
executed 142 times by 2 tests: *ok = true;
Executed by:
  • tst_examples
  • tst_qqmlqt
0-142
19 return
executed 142 times by 2 tests: return QVariant(c);
Executed by:
  • tst_examples
  • tst_qqmlqt
QVariant(c);
executed 142 times by 2 tests: return QVariant(c);
Executed by:
  • tst_examples
  • tst_qqmlqt
142
20 }-
21-
22 if (ok
okDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlqt
FALSEnever evaluated
) *
executed 12 times by 1 test: *ok = false;
Executed by:
  • tst_qqmlqt
ok = false;
executed 12 times by 1 test: *ok = false;
Executed by:
  • tst_qqmlqt
0-12
23 return
executed 12 times by 1 test: return QVariant();
Executed by:
  • tst_qqmlqt
QVariant();
executed 12 times by 1 test: return QVariant();
Executed by:
  • tst_qqmlqt
12
24 }-
25-
26 unsigned rgbaFromString(const QString &s, bool *ok) override-
27 {-
28 QColor c(s);-
29 if (c.isValid()
c.isValid()Description
TRUEevaluated 36657 times by 83 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
) {
2-36657
30 if (ok
okDescription
TRUEevaluated 36657 times by 83 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • ...
FALSEnever evaluated
) *
executed 36657 times by 83 tests: *ok = true;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • ...
ok = true;
executed 36657 times by 83 tests: *ok = true;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • ...
0-36657
31 return
executed 36657 times by 83 tests: return c.rgba();
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • ...
c.rgba();
executed 36657 times by 83 tests: return c.rgba();
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • ...
36657
32 }-
33-
34 if (ok
okDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
) *
executed 2 times by 1 test: *ok = false;
Executed by:
  • tst_qquickanimations
ok = false;
executed 2 times by 1 test: *ok = false;
Executed by:
  • tst_qquickanimations
0-2
35 return
executed 2 times by 1 test: return 0;
Executed by:
  • tst_qquickanimations
0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_qquickanimations
2
36 }-
37-
38 QString stringFromRgba(unsigned rgba)-
39 {-
40 QColor c(QColor::fromRgba(rgba));-
41 if (c.isValid()
c.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
42 return
never executed: return QVariant(c).toString();
QVariant(c).toString();
never executed: return QVariant(c).toString();
0
43 }-
44-
45 return
never executed: return QString();
QString();
never executed: return QString();
0
46 }-
47-
48 QVariant fromRgbF(double r, double g, double b, double a) override-
49 {-
50 return
executed 1484 times by 13 tests: return QVariant(QColor::fromRgbF(r, g, b, a));
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickloader
  • tst_scenegraph
QVariant(QColor::fromRgbF(r, g, b, a));
executed 1484 times by 13 tests: return QVariant(QColor::fromRgbF(r, g, b, a));
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickloader
  • tst_scenegraph
1484
51 }-
52-
53 QVariant fromHslF(double h, double s, double l, double a) override-
54 {-
55 return
executed 430 times by 3 tests: return QVariant(QColor::fromHslF(h, s, l, a));
Executed by:
  • tst_examples
  • tst_qqmlqt
  • tst_qquickaccessible
QVariant(QColor::fromHslF(h, s, l, a));
executed 430 times by 3 tests: return QVariant(QColor::fromHslF(h, s, l, a));
Executed by:
  • tst_examples
  • tst_qqmlqt
  • tst_qquickaccessible
430
56 }-
57-
58 QVariant fromHsvF(double h, double s, double v, double a) override-
59 {-
60 return
executed 8 times by 1 test: return QVariant(QColor::fromHsvF(h, s, v, a));
Executed by:
  • tst_qqmlqt
QVariant(QColor::fromHsvF(h, s, v, a));
executed 8 times by 1 test: return QVariant(QColor::fromHsvF(h, s, v, a));
Executed by:
  • tst_qqmlqt
8
61 }-
62-
63 QVariant lighter(const QVariant &var, qreal factor) override-
64 {-
65 QColor color = var.value<QColor>();-
66 color = color.lighter(int(qRound(factor*100.)));-
67 return
executed 6 times by 1 test: return QVariant::fromValue(color);
Executed by:
  • tst_qqmlqt
QVariant::fromValue(color);
executed 6 times by 1 test: return QVariant::fromValue(color);
Executed by:
  • tst_qqmlqt
6
68 }-
69-
70 QVariant darker(const QVariant &var, qreal factor) override-
71 {-
72 QColor color = var.value<QColor>();-
73 color = color.darker(int(qRound(factor*100.)));-
74 return
executed 184 times by 2 tests: return QVariant::fromValue(color);
Executed by:
  • tst_examples
  • tst_qqmlqt
QVariant::fromValue(color);
executed 184 times by 2 tests: return QVariant::fromValue(color);
Executed by:
  • tst_examples
  • tst_qqmlqt
184
75 }-
76-
77 QVariant tint(const QVariant &baseVar, const QVariant &tintVar) override-
78 {-
79 QColor tintColor = tintVar.value<QColor>();-
80-
81 int tintAlpha = tintColor.alpha();-
82 if (tintAlpha == 0xFF
tintAlpha == 0xFFDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlqt
FALSEevaluated 28 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlqt
) {
2-28
83 return
executed 2 times by 1 test: return tintVar;
Executed by:
  • tst_qqmlqt
tintVar;
executed 2 times by 1 test: return tintVar;
Executed by:
  • tst_qqmlqt
2
84 } else if (tintAlpha == 0x00
tintAlpha == 0x00Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlqt
FALSEevaluated 26 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qqmlqt
) {
2-26
85 return
executed 2 times by 1 test: return baseVar;
Executed by:
  • tst_qqmlqt
baseVar;
executed 2 times by 1 test: return baseVar;
Executed by:
  • tst_qqmlqt
2
86 }-
87-
88-
89 QColor baseColor = baseVar.value<QColor>();-
90 qreal a = tintColor.alphaF();-
91 qreal inv_a = 1.0 - a;-
92-
93 qreal r = tintColor.redF() * a + baseColor.redF() * inv_a;-
94 qreal g = tintColor.greenF() * a + baseColor.greenF() * inv_a;-
95 qreal b = tintColor.blueF() * a + baseColor.blueF() * inv_a;-
96-
97 return
executed 26 times by 2 tests: return QVariant::fromValue(QColor::fromRgbF(r, g, b, a + inv_a * baseColor.alphaF()));
Executed by:
  • tst_examples
  • tst_qqmlqt
QVariant::fromValue(QColor::fromRgbF(r, g, b, a + inv_a * baseColor.alphaF()));
executed 26 times by 2 tests: return QVariant::fromValue(QColor::fromRgbF(r, g, b, a + inv_a * baseColor.alphaF()));
Executed by:
  • tst_examples
  • tst_qqmlqt
26
98 }-
99};-
100class QQuickValueTypeProvider : public QQmlValueTypeProvider-
101{-
102public:-
103-
104-
105-
106-
107-
108-
109-
110 static QVector2D vector2DFromString(const QString &s, bool *ok)-
111 {-
112 if (s.count(QLatin1Char(',')) == 1
s.count(QLatin1Char(',')) == 1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
) {
2-20
113 int index = s.indexOf(QLatin1Char(','));-
114-
115 bool xGood, yGood;-
116 float xCoord = s.leftRef(index).toFloat(&xGood);-
117 float yCoord = s.midRef(index + 1).toFloat(&yGood);-
118-
119 if (xGood
xGoodDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
&& yGood
yGoodDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) {
0-2
120 if (ok
okDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) *
executed 2 times by 1 test: *ok = true;
Executed by:
  • tst_qqmlvaluetypeproviders
ok = true;
executed 2 times by 1 test: *ok = true;
Executed by:
  • tst_qqmlvaluetypeproviders
0-2
121 return
executed 2 times by 1 test: return QVector2D(xCoord, yCoord);
Executed by:
  • tst_qqmlvaluetypeproviders
QVector2D(xCoord, yCoord);
executed 2 times by 1 test: return QVector2D(xCoord, yCoord);
Executed by:
  • tst_qqmlvaluetypeproviders
2
122 }-
123 }
never executed: end of block
0
124-
125 if (ok
okDescription
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
FALSEnever evaluated
) *
executed 20 times by 5 tests: *ok = false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
ok = false;
executed 20 times by 5 tests: *ok = false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
0-20
126 return
executed 20 times by 5 tests: return QVector2D();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
QVector2D();
executed 20 times by 5 tests: return QVector2D();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
20
127 }-
128-
129 static QVector3D vector3DFromString(const QString &s, bool *ok)-
130 {-
131 if (s.count(QLatin1Char(',')) == 2
s.count(QLatin1Char(',')) == 2Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
) {
6-20
132 int index = s.indexOf(QLatin1Char(','));-
133 int index2 = s.indexOf(QLatin1Char(','), index+1);-
134-
135 bool xGood, yGood, zGood;-
136 float xCoord = s.leftRef(index).toFloat(&xGood);-
137 float yCoord = s.midRef(index + 1, index2 - index - 1).toFloat(&yGood);-
138 float zCoord = s.midRef(index2 + 1).toFloat(&zGood);-
139-
140 if (xGood
xGoodDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
&& yGood
yGoodDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
&& zGood
zGoodDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) {
0-6
141 if (ok
okDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) *
executed 6 times by 2 tests: *ok = true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
ok = true;
executed 6 times by 2 tests: *ok = true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
0-6
142 return
executed 6 times by 2 tests: return QVector3D(xCoord, yCoord, zCoord);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
QVector3D(xCoord, yCoord, zCoord);
executed 6 times by 2 tests: return QVector3D(xCoord, yCoord, zCoord);
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
6
143 }-
144 }
never executed: end of block
0
145-
146 if (ok
okDescription
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
FALSEnever evaluated
) *
executed 20 times by 5 tests: *ok = false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
ok = false;
executed 20 times by 5 tests: *ok = false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
0-20
147 return
executed 20 times by 5 tests: return QVector3D();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
QVector3D();
executed 20 times by 5 tests: return QVector3D();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
20
148 }-
149-
150 static QVector4D vector4DFromString(const QString &s, bool *ok)-
151 {-
152 if (s.count(QLatin1Char(',')) == 3
s.count(QLatin1Char(',')) == 3Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
) {
2-20
153 int index = s.indexOf(QLatin1Char(','));-
154 int index2 = s.indexOf(QLatin1Char(','), index+1);-
155 int index3 = s.indexOf(QLatin1Char(','), index2+1);-
156-
157 bool xGood, yGood, zGood, wGood;-
158 float xCoord = s.leftRef(index).toFloat(&xGood);-
159 float yCoord = s.midRef(index + 1, index2 - index - 1).toFloat(&yGood);-
160 float zCoord = s.midRef(index2 + 1, index3 - index2 - 1).toFloat(&zGood);-
161 float wCoord = s.midRef(index3 + 1).toFloat(&wGood);-
162-
163 if (xGood
xGoodDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
&& yGood
yGoodDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
&& zGood
zGoodDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
&& wGood
wGoodDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) {
0-2
164 if (ok
okDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) *
executed 2 times by 1 test: *ok = true;
Executed by:
  • tst_qqmlvaluetypeproviders
ok = true;
executed 2 times by 1 test: *ok = true;
Executed by:
  • tst_qqmlvaluetypeproviders
0-2
165 return
executed 2 times by 1 test: return QVector4D(xCoord, yCoord, zCoord, wCoord);
Executed by:
  • tst_qqmlvaluetypeproviders
QVector4D(xCoord, yCoord, zCoord, wCoord);
executed 2 times by 1 test: return QVector4D(xCoord, yCoord, zCoord, wCoord);
Executed by:
  • tst_qqmlvaluetypeproviders
2
166 }-
167 }
never executed: end of block
0
168-
169 if (ok
okDescription
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
FALSEnever evaluated
) *
executed 20 times by 5 tests: *ok = false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
ok = false;
executed 20 times by 5 tests: *ok = false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
0-20
170 return
executed 20 times by 5 tests: return QVector4D();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
QVector4D();
executed 20 times by 5 tests: return QVector4D();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
20
171 }-
172-
173 static QQuaternion quaternionFromString(const QString &s, bool *ok)-
174 {-
175 if (s.count(QLatin1Char(',')) == 3
s.count(QLatin1Char(',')) == 3Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
) {
2-20
176 int index = s.indexOf(QLatin1Char(','));-
177 int index2 = s.indexOf(QLatin1Char(','), index+1);-
178 int index3 = s.indexOf(QLatin1Char(','), index2+1);-
179-
180 bool sGood, xGood, yGood, zGood;-
181 qreal sCoord = s.leftRef(index).toDouble(&sGood);-
182 qreal xCoord = s.midRef(index+1, index2-index-1).toDouble(&xGood);-
183 qreal yCoord = s.midRef(index2+1, index3-index2-1).toDouble(&yGood);-
184 qreal zCoord = s.midRef(index3+1).toDouble(&zGood);-
185-
186 if (sGood
sGoodDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
&& xGood
xGoodDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
&& yGood
yGoodDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
&& zGood
zGoodDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) {
0-2
187 if (ok
okDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) *
executed 2 times by 1 test: *ok = true;
Executed by:
  • tst_qqmlvaluetypeproviders
ok = true;
executed 2 times by 1 test: *ok = true;
Executed by:
  • tst_qqmlvaluetypeproviders
0-2
188 return
executed 2 times by 1 test: return QQuaternion(sCoord, xCoord, yCoord, zCoord);
Executed by:
  • tst_qqmlvaluetypeproviders
QQuaternion(sCoord, xCoord, yCoord, zCoord);
executed 2 times by 1 test: return QQuaternion(sCoord, xCoord, yCoord, zCoord);
Executed by:
  • tst_qqmlvaluetypeproviders
2
189 }-
190 }
never executed: end of block
0
191-
192 if (ok
okDescription
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
FALSEnever evaluated
) *
executed 20 times by 5 tests: *ok = false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
ok = false;
executed 20 times by 5 tests: *ok = false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
0-20
193 return
executed 20 times by 5 tests: return QQuaternion();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
QQuaternion();
executed 20 times by 5 tests: return QQuaternion();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
20
194 }-
195-
196 static QMatrix4x4 matrix4x4FromString(const QString &s, bool *ok)-
197 {-
198 if (s.count(QLatin1Char(',')) == 15
s.count(QLatin...ar(',')) == 15Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
) {
2-20
199 float matValues[16];-
200 bool vOK = true;-
201 QStringRef mutableStr(&s);-
202 for (int i = 0; vOK
vOKDescription
TRUEevaluated 34 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
&& i < 16
i < 16Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
; ++i) {
0-34
203 int cidx = mutableStr.indexOf(QLatin1Char(','));-
204 matValues[i] = mutableStr.left(cidx).toDouble(&vOK);-
205 mutableStr = mutableStr.mid(cidx + 1);-
206 }
executed 32 times by 1 test: end of block
Executed by:
  • tst_qqmlvaluetypeproviders
32
207-
208 if (vOK
vOKDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) {
0-2
209 if (ok
okDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) *
executed 2 times by 1 test: *ok = true;
Executed by:
  • tst_qqmlvaluetypeproviders
ok = true;
executed 2 times by 1 test: *ok = true;
Executed by:
  • tst_qqmlvaluetypeproviders
0-2
210 return
executed 2 times by 1 test: return QMatrix4x4(matValues);
Executed by:
  • tst_qqmlvaluetypeproviders
QMatrix4x4(matValues);
executed 2 times by 1 test: return QMatrix4x4(matValues);
Executed by:
  • tst_qqmlvaluetypeproviders
2
211 }-
212 }
never executed: end of block
0
213-
214 if (ok
okDescription
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
FALSEnever evaluated
) *
executed 20 times by 5 tests: *ok = false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
ok = false;
executed 20 times by 5 tests: *ok = false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
0-20
215 return
executed 20 times by 5 tests: return QMatrix4x4();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
QMatrix4x4();
executed 20 times by 5 tests: return QMatrix4x4();
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
20
216 }-
217-
218 static QFont fontFromObject(QQmlV4Handle object, QV4::ExecutionEngine *v4, bool *ok)-
219 {-
220 if (ok
okDescription
TRUEevaluated 60 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
)
0-60
221 *
executed 60 times by 3 tests: *ok = false;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
ok = false;
executed 60 times by 3 tests: *ok = false;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
60
222 QFont retn;-
223 QV4::Scope scope(v4);-
224 QV4::ScopedObject obj(scope, object);-
225 if (!obj
!objDescription
TRUEnever evaluated
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
0-60
226 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
227 *
never executed: *ok = false;
ok = false;
never executed: *ok = false;
0
228 return
never executed: return retn;
retn;
never executed: return retn;
0
229 }-
230-
231 QV4::ScopedString s(scope);-
232-
233 QV4::ScopedValue vbold(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "bold")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "bold" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
234 QV4::ScopedValue vcap(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "capitalization")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "capitalization" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
235 QV4::ScopedValue vfam(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "family")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "family" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
236 QV4::ScopedValue vstyle(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "styleName")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "styleName" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
237 QV4::ScopedValue vital(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "italic")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "italic" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
238 QV4::ScopedValue vlspac(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "letterSpacing")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "letterSpacing" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
239 QV4::ScopedValue vpixsz(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "pixelSize")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "pixelSize" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
240 QV4::ScopedValue vpntsz(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "pointSize")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "pointSize" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
241 QV4::ScopedValue vstrk(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "strikeout")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "strikeout" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
242 QV4::ScopedValue vundl(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "underline")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "underline" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
243 QV4::ScopedValue vweight(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "weight")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "weight" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
244 QV4::ScopedValue vwspac(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "wordSpacing")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "wordSpacing" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
245 QV4::ScopedValue vhint(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "hintingPreference")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "hintingPreference" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
246 QV4::ScopedValue vkerning(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "kerning")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "kerning" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
247 QV4::ScopedValue vshaping(scope, obj->get((s = v4->newString(([]() noexcept -> QString { enum { Size = sizeof(u"" "preferShaping")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "preferShaping" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
qstring_literal_temp;
executed 60 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
}())))));
60
248-
249-
250 if (vbold->isBoolean()
vbold->isBoolean()Description
TRUEnever evaluated
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
0-60
251 retn.setBold(vbold->booleanValue());-
252 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *ok = true;
ok = true;
never executed: *ok = true;
0
253 }
never executed: end of block
0
254 if (vcap->isInt32()
vcap->isInt32()Description
TRUEnever evaluated
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
0-60
255 retn.setCapitalization(static_cast<QFont::Capitalization>(vcap->integerValue()));-
256 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *ok = true;
ok = true;
never executed: *ok = true;
0
257 }
never executed: end of block
0
258 if (vfam->isString()
vfam->isString()Description
TRUEevaluated 52 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
) {
8-52
259 retn.setFamily(vfam->toQString());-
260 if (ok
okDescription
TRUEevaluated 52 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) *
executed 52 times by 2 tests: *ok = true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
ok = true;
executed 52 times by 2 tests: *ok = true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
0-52
261 }
executed 52 times by 2 tests: end of block
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
52
262 if (vstyle->isString()
vstyle->isString()Description
TRUEnever evaluated
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
0-60
263 retn.setStyleName(vstyle->toQString());-
264 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *ok = true;
ok = true;
never executed: *ok = true;
0
265 }
never executed: end of block
0
266 if (vital->isBoolean()
vital->isBoolean()Description
TRUEevaluated 24 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEevaluated 36 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
24-36
267 retn.setItalic(vital->booleanValue());-
268 if (ok
okDescription
TRUEevaluated 24 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) *
executed 24 times by 2 tests: *ok = true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
ok = true;
executed 24 times by 2 tests: *ok = true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
0-24
269 }
executed 24 times by 2 tests: end of block
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
24
270 if (vlspac->isNumber()
vlspac->isNumber()Description
TRUEnever evaluated
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
0-60
271 retn.setLetterSpacing(QFont::AbsoluteSpacing, vlspac->asDouble());-
272 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *ok = true;
ok = true;
never executed: *ok = true;
0
273 }
never executed: end of block
0
274 if (vpixsz->isInt32()
vpixsz->isInt32()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlbinding
FALSEevaluated 54 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
6-54
275 retn.setPixelSize(vpixsz->integerValue());-
276 if (ok
okDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qqmlbinding
FALSEnever evaluated
) *
executed 6 times by 1 test: *ok = true;
Executed by:
  • tst_qqmlbinding
ok = true;
executed 6 times by 1 test: *ok = true;
Executed by:
  • tst_qqmlbinding
0-6
277 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qqmlbinding
6
278 if (vpntsz->isNumber()
vpntsz->isNumber()Description
TRUEevaluated 52 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
) {
8-52
279 retn.setPointSize(vpntsz->asDouble());-
280 if (ok
okDescription
TRUEevaluated 52 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) *
executed 52 times by 2 tests: *ok = true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
ok = true;
executed 52 times by 2 tests: *ok = true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
0-52
281 }
executed 52 times by 2 tests: end of block
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
52
282 if (vstrk->isBoolean()
vstrk->isBoolean()Description
TRUEnever evaluated
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
0-60
283 retn.setStrikeOut(vstrk->booleanValue());-
284 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *ok = true;
ok = true;
never executed: *ok = true;
0
285 }
never executed: end of block
0
286 if (vundl->isBoolean()
vundl->isBoolean()Description
TRUEnever evaluated
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
0-60
287 retn.setUnderline(vundl->booleanValue());-
288 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *ok = true;
ok = true;
never executed: *ok = true;
0
289 }
never executed: end of block
0
290 if (vweight->isInt32()
vweight->isInt32()Description
TRUEevaluated 40 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEevaluated 20 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
20-40
291 retn.setWeight(static_cast<QFont::Weight>(vweight->integerValue()));-
292 if (ok
okDescription
TRUEevaluated 40 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) *
executed 40 times by 2 tests: *ok = true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
ok = true;
executed 40 times by 2 tests: *ok = true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
0-40
293 }
executed 40 times by 2 tests: end of block
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
40
294 if (vwspac->isNumber()
vwspac->isNumber()Description
TRUEnever evaluated
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
0-60
295 retn.setWordSpacing(vwspac->asDouble());-
296 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *ok = true;
ok = true;
never executed: *ok = true;
0
297 }
never executed: end of block
0
298 if (vhint->isInt32()
vhint->isInt32()Description
TRUEnever evaluated
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
0-60
299 retn.setHintingPreference(static_cast<QFont::HintingPreference>(vhint->integerValue()));-
300 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *ok = true;
ok = true;
never executed: *ok = true;
0
301 }
never executed: end of block
0
302 if (vkerning->isBoolean()
vkerning->isBoolean()Description
TRUEnever evaluated
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
0-60
303 retn.setKerning(vkerning->booleanValue());-
304 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *ok = true;
ok = true;
never executed: *ok = true;
0
305 }
never executed: end of block
0
306 if (vshaping->isBoolean()
vshaping->isBoolean()Description
TRUEnever evaluated
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
) {
0-60
307 bool enable = vshaping->booleanValue();-
308 if (enable
enableDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
309 retn.setStyleStrategy(static_cast<QFont::StyleStrategy>(retn.styleStrategy() & ~QFont::PreferNoShaping));
never executed: retn.setStyleStrategy(static_cast<QFont::StyleStrategy>(retn.styleStrategy() & ~QFont::PreferNoShaping));
0
310 else-
311 retn.setStyleStrategy(static_cast<QFont::StyleStrategy>(retn.styleStrategy() | QFont::PreferNoShaping));
never executed: retn.setStyleStrategy(static_cast<QFont::StyleStrategy>(retn.styleStrategy() | QFont::PreferNoShaping));
0
312 }-
313-
314 return
executed 60 times by 3 tests: return retn;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
retn;
executed 60 times by 3 tests: return retn;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
60
315 }-
316-
317 static QMatrix4x4 matrix4x4FromObject(QQmlV4Handle object, QV4::ExecutionEngine *v4, bool *ok)-
318 {-
319 if (ok
okDescription
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
)
0-18
320 *
executed 18 times by 2 tests: *ok = false;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
ok = false;
executed 18 times by 2 tests: *ok = false;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
18
321 QV4::Scope scope(v4);-
322 QV4::ScopedArrayObject array(scope, object);-
323 if (!array
!arrayDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlqt
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
)
2-16
324 return
executed 2 times by 1 test: return QMatrix4x4();
Executed by:
  • tst_qqmlqt
QMatrix4x4();
executed 2 times by 1 test: return QMatrix4x4();
Executed by:
  • tst_qqmlqt
2
325-
326 if (array->getLength() != 16
array->getLength() != 16Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlqt
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
)
2-14
327 return
executed 2 times by 1 test: return QMatrix4x4();
Executed by:
  • tst_qqmlqt
QMatrix4x4();
executed 2 times by 1 test: return QMatrix4x4();
Executed by:
  • tst_qqmlqt
2
328-
329 float matVals[16];-
330 QV4::ScopedValue v(scope);-
331 for (quint32 i = 0; i < 16
i < 16Description
TRUEevaluated 224 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
; ++i) {
14-224
332 v = array->get(i);-
333 if (!v->isNumber()
!v->isNumber()Description
TRUEnever evaluated
FALSEevaluated 224 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
)
0-224
334 return
never executed: return QMatrix4x4();
QMatrix4x4();
never executed: return QMatrix4x4();
0
335 matVals[i] = v->asDouble();-
336 }
executed 224 times by 2 tests: end of block
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
224
337-
338 if (ok
okDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) *
executed 14 times by 2 tests: *ok = true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
ok = true;
executed 14 times by 2 tests: *ok = true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
0-14
339 return
executed 14 times by 2 tests: return QMatrix4x4(matVals);
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
QMatrix4x4(matVals);
executed 14 times by 2 tests: return QMatrix4x4(matVals);
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
14
340 }-
341-
342 const QMetaObject *getMetaObjectForMetaType(int type) override-
343 {-
344 switch (type) {-
345 case
executed 3248 times by 20 tests: case QMetaType::QColor:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
QMetaType::QColor:
executed 3248 times by 20 tests: case QMetaType::QColor:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
3248
346 return
executed 3248 times by 20 tests: return &QQuickColorValueType::staticMetaObject;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
&QQuickColorValueType::staticMetaObject;
executed 3248 times by 20 tests: return &QQuickColorValueType::staticMetaObject;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickstates
  • tst_scenegraph
3248
347 case
executed 6131 times by 24 tests: case QMetaType::QFont:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
QMetaType::QFont:
executed 6131 times by 24 tests: case QMetaType::QFont:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
6131
348 return
executed 6131 times by 24 tests: return &QQuickFontValueType::staticMetaObject;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
&QQuickFontValueType::staticMetaObject;
executed 6131 times by 24 tests: return &QQuickFontValueType::staticMetaObject;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
6131
349 case
executed 228 times by 3 tests: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
QMetaType::QVector2D:
executed 228 times by 3 tests: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
228
350 return
executed 228 times by 3 tests: return &QQuickVector2DValueType::staticMetaObject;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
&QQuickVector2DValueType::staticMetaObject;
executed 228 times by 3 tests: return &QQuickVector2DValueType::staticMetaObject;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
228
351 case
executed 2512 times by 9 tests: case QMetaType::QVector3D:
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickflipable
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
QMetaType::QVector3D:
executed 2512 times by 9 tests: case QMetaType::QVector3D:
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickflipable
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
2512
352 return
executed 2512 times by 9 tests: return &QQuickVector3DValueType::staticMetaObject;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickflipable
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
&QQuickVector3DValueType::staticMetaObject;
executed 2512 times by 9 tests: return &QQuickVector3DValueType::staticMetaObject;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickflipable
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickworkerscript
2512
353 case
executed 280 times by 3 tests: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
QMetaType::QVector4D:
executed 280 times by 3 tests: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
280
354 return
executed 280 times by 3 tests: return &QQuickVector4DValueType::staticMetaObject;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
&QQuickVector4DValueType::staticMetaObject;
executed 280 times by 3 tests: return &QQuickVector4DValueType::staticMetaObject;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
280
355 case
executed 124 times by 3 tests: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
QMetaType::QQuaternion:
executed 124 times by 3 tests: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
124
356 return
executed 124 times by 3 tests: return &QQuickQuaternionValueType::staticMetaObject;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
&QQuickQuaternionValueType::staticMetaObject;
executed 124 times by 3 tests: return &QQuickQuaternionValueType::staticMetaObject;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
124
357 case
executed 338 times by 4 tests: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
QMetaType::QMatrix4x4:
executed 338 times by 4 tests: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
338
358 return
executed 338 times by 4 tests: return &QQuickMatrix4x4ValueType::staticMetaObject;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
&QQuickMatrix4x4ValueType::staticMetaObject;
executed 338 times by 4 tests: return &QQuickMatrix4x4ValueType::staticMetaObject;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
338
359 default
executed 334581 times by 123 tests: default:
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
:
executed 334581 times by 123 tests: default:
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
334581
360 break;
executed 334581 times by 123 tests: break;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
334581
361 }-
362-
363 return
executed 334581 times by 123 tests: return nullptr;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
nullptr;
executed 334581 times by 123 tests: return nullptr;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlmetaobject
  • ...
334581
364 }-
365-
366 bool init(int type, QVariant& dst) override-
367 {-
368 switch (type) {-
369 case
executed 198 times by 11 tests: case QMetaType::QColor:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
QMetaType::QColor:
executed 198 times by 11 tests: case QMetaType::QColor:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
198
370 dst.setValue<QColor>(QColor());-
371 return
executed 198 times by 11 tests: return true;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
true;
executed 198 times by 11 tests: return true;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
198
372 case
executed 24 times by 3 tests: case QMetaType::QFont:
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
QMetaType::QFont:
executed 24 times by 3 tests: case QMetaType::QFont:
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
24
373 dst.setValue<QFont>(QFont());-
374 return
executed 24 times by 3 tests: return true;
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
true;
executed 24 times by 3 tests: return true;
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
24
375 case
executed 12 times by 1 test: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector2D:
executed 12 times by 1 test: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlvaluetypeproviders
12
376 dst.setValue<QVector2D>(QVector2D());-
377 return
executed 12 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
true;
executed 12 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
12
378 case
executed 10 times by 1 test: case QMetaType::QVector3D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector3D:
executed 10 times by 1 test: case QMetaType::QVector3D:
Executed by:
  • tst_qqmlvaluetypeproviders
10
379 dst.setValue<QVector3D>(QVector3D());-
380 return
executed 10 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
true;
executed 10 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
10
381 case
executed 14 times by 1 test: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector4D:
executed 14 times by 1 test: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlvaluetypeproviders
14
382 dst.setValue<QVector4D>(QVector4D());-
383 return
executed 14 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
true;
executed 14 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
14
384 case
executed 8 times by 1 test: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QQuaternion:
executed 8 times by 1 test: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlvaluetypeproviders
8
385 dst.setValue<QQuaternion>(QQuaternion());-
386 return
executed 8 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
true;
executed 8 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
8
387 case
executed 16 times by 1 test: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QMatrix4x4:
executed 16 times by 1 test: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlvaluetypeproviders
16
388 dst.setValue<QMatrix4x4>(QMatrix4x4());-
389 return
executed 16 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
true;
executed 16 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
16
390 default
never executed: default:
:
never executed: default:
break;
never executed: break;
0
391 }-
392-
393 return
never executed: return false;
false;
never executed: return false;
0
394 }-
395-
396 bool create(int type, int argc, const void *argv[], QVariant *v) override-
397 {-
398 switch (type) {-
399 case
never executed: case QMetaType::QFont:
QMetaType::QFont:
never executed: case QMetaType::QFont:
0
400 break;
never executed: break;
0
401 case
executed 52 times by 3 tests: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
QMetaType::QVector2D:
executed 52 times by 3 tests: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
52
402 if (argc == 1
argc == 1Description
TRUEevaluated 52 times by 3 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEnever evaluated
) {
0-52
403 const float *xy = reinterpret_cast<const float*>(argv[0]);-
404 QVector2D v2(xy[0], xy[1]);-
405 *v = QVariant(v2);-
406 return
executed 52 times by 3 tests: return true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
true;
executed 52 times by 3 tests: return true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
52
407 }-
408 break;
never executed: break;
0
409 case
executed 84 times by 5 tests: case QMetaType::QVector3D:
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickworkerscript
QMetaType::QVector3D:
executed 84 times by 5 tests: case QMetaType::QVector3D:
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickworkerscript
84
410 if (argc == 1
argc == 1Description
TRUEevaluated 84 times by 5 tests
Evaluated by:
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickworkerscript
FALSEnever evaluated
) {
0-84
411 const float *xyz = reinterpret_cast<const float*>(argv[0]);-
412 QVector3D v3(xyz[0], xyz[1], xyz[2]);-
413 *v = QVariant(v3);-
414 return
executed 84 times by 5 tests: return true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickworkerscript
true;
executed 84 times by 5 tests: return true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickworkerscript
84
415 }-
416 break;
never executed: break;
0
417 case
executed 78 times by 3 tests: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
QMetaType::QVector4D:
executed 78 times by 3 tests: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
78
418 if (argc == 1
argc == 1Description
TRUEevaluated 78 times by 3 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
FALSEnever evaluated
) {
0-78
419 const float *xyzw = reinterpret_cast<const float*>(argv[0]);-
420 QVector4D v4(xyzw[0], xyzw[1], xyzw[2], xyzw[3]);-
421 *v = QVariant(v4);-
422 return
executed 78 times by 3 tests: return true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
true;
executed 78 times by 3 tests: return true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
78
423 }-
424 break;
never executed: break;
0
425 case
executed 18 times by 2 tests: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
QMetaType::QQuaternion:
executed 18 times by 2 tests: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
18
426 if (argc == 1
argc == 1Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
FALSEnever evaluated
) {
0-18
427 const qreal *sxyz = reinterpret_cast<const qreal*>(argv[0]);-
428 QQuaternion q(sxyz[0], sxyz[1], sxyz[2], sxyz[3]);-
429 *v = QVariant(q);-
430 return
executed 18 times by 2 tests: return true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
true;
executed 18 times by 2 tests: return true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
18
431 }-
432 break;
never executed: break;
0
433 case
executed 56 times by 4 tests: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
QMetaType::QMatrix4x4:
executed 56 times by 4 tests: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
56
434 if (argc == 0
argc == 0Description
TRUEnever evaluated
FALSEevaluated 56 times by 4 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
) {
0-56
435 QMatrix4x4 m;-
436 *v = QVariant(m);-
437 return
never executed: return true;
true;
never executed: return true;
0
438 } else if (argc == 1
argc == 1Description
TRUEevaluated 56 times by 4 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
FALSEnever evaluated
) {
0-56
439 const qreal *vals = reinterpret_cast<const qreal*>(argv[0]);-
440 QMatrix4x4 m(vals[0], vals[1], vals[2], vals[3],-
441 vals[4], vals[5], vals[6], vals[7],-
442 vals[8], vals[9], vals[10], vals[11],-
443 vals[12], vals[13], vals[14], vals[15]);-
444 *v = QVariant(m);-
445 return
executed 56 times by 4 tests: return true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
true;
executed 56 times by 4 tests: return true;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickitem2
56
446 }-
447 break;
never executed: break;
0
448 default
never executed: default:
:
never executed: default:
break;
never executed: break;
0
449 }-
450-
451 return
never executed: return false;
false;
never executed: return false;
0
452 }-
453-
454 template<typename T>-
455 bool createFromStringTyped(void *data, size_t dataSize, T initValue)-
456 {-
457 ((dataSize >= sizeof(T)) ? static_cast<void>(0) : qt_assert("dataSize >= sizeof(T)", __FILE__, 516));-
458 T *t = reinterpret_cast<T *>(data);-
459 new (t) T(initValue);-
460 return
never executed: return true;
true;
never executed: return true;
0
461 }-
462-
463 bool createFromString(int type, const QString &s, void *data, size_t dataSize) override-
464 {-
465 bool ok = false;-
466-
467 switch (type) {-
468 case
never executed: case QMetaType::QColor:
QMetaType::QColor:
never executed: case QMetaType::QColor:
0
469 return
never executed: return createFromStringTyped<QColor>(data, dataSize, QColor(s));
createFromStringTyped<QColor>(data, dataSize, QColor(s));
never executed: return createFromStringTyped<QColor>(data, dataSize, QColor(s));
0
470 case
never executed: case QMetaType::QVector2D:
QMetaType::QVector2D:
never executed: case QMetaType::QVector2D:
0
471 return
never executed: return createFromStringTyped<QVector2D>(data, dataSize, vector2DFromString(s, &ok));
createFromStringTyped<QVector2D>(data, dataSize, vector2DFromString(s, &ok));
never executed: return createFromStringTyped<QVector2D>(data, dataSize, vector2DFromString(s, &ok));
0
472 case
never executed: case QMetaType::QVector3D:
QMetaType::QVector3D:
never executed: case QMetaType::QVector3D:
0
473 return
never executed: return createFromStringTyped<QVector3D>(data, dataSize, vector3DFromString(s, &ok));
createFromStringTyped<QVector3D>(data, dataSize, vector3DFromString(s, &ok));
never executed: return createFromStringTyped<QVector3D>(data, dataSize, vector3DFromString(s, &ok));
0
474 case
never executed: case QMetaType::QVector4D:
QMetaType::QVector4D:
never executed: case QMetaType::QVector4D:
0
475 return
never executed: return createFromStringTyped<QVector4D>(data, dataSize, vector4DFromString(s, &ok));
createFromStringTyped<QVector4D>(data, dataSize, vector4DFromString(s, &ok));
never executed: return createFromStringTyped<QVector4D>(data, dataSize, vector4DFromString(s, &ok));
0
476 case
never executed: case QMetaType::QQuaternion:
QMetaType::QQuaternion:
never executed: case QMetaType::QQuaternion:
0
477 return
never executed: return createFromStringTyped<QQuaternion>(data, dataSize, quaternionFromString(s, &ok));
createFromStringTyped<QQuaternion>(data, dataSize, quaternionFromString(s, &ok));
never executed: return createFromStringTyped<QQuaternion>(data, dataSize, quaternionFromString(s, &ok));
0
478 case
never executed: case QMetaType::QMatrix4x4:
QMetaType::QMatrix4x4:
never executed: case QMetaType::QMatrix4x4:
0
479 return
never executed: return createFromStringTyped<QMatrix4x4>(data, dataSize, matrix4x4FromString(s, &ok));
createFromStringTyped<QMatrix4x4>(data, dataSize, matrix4x4FromString(s, &ok));
never executed: return createFromStringTyped<QMatrix4x4>(data, dataSize, matrix4x4FromString(s, &ok));
0
480 default
never executed: default:
:
never executed: default:
break;
never executed: break;
0
481 }-
482-
483 return
never executed: return false;
false;
never executed: return false;
0
484 }-
485-
486 bool createStringFrom(int type, const void *data, QString *s) override-
487 {-
488 if (type == QMetaType::QColor
type == QMetaType::QColorDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
489 const QColor *color = reinterpret_cast<const QColor *>(data);-
490 new (s) QString(QVariant(*color).toString());-
491 return
never executed: return true;
true;
never executed: return true;
0
492 }-
493-
494 return
never executed: return false;
false;
never executed: return false;
0
495 }-
496-
497 bool variantFromString(const QString &s, QVariant *v) override-
498 {-
499 QColor c(s);-
500 if (c.isValid()
c.isValid()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
) {
6-20
501 *v = QVariant::fromValue(c);-
502 return
executed 6 times by 2 tests: return true;
Executed by:
  • tst_examples
  • tst_qquickanimations
true;
executed 6 times by 2 tests: return true;
Executed by:
  • tst_examples
  • tst_qquickanimations
6
503 }-
504-
505 bool ok = false;-
506-
507 QVector2D v2 = vector2DFromString(s, &ok);-
508 if (ok
okDescription
TRUEnever evaluated
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
) {
0-20
509 *v = QVariant::fromValue(v2);-
510 return
never executed: return true;
true;
never executed: return true;
0
511 }-
512-
513 QVector3D v3 = vector3DFromString(s, &ok);-
514 if (ok
okDescription
TRUEnever evaluated
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
) {
0-20
515 *v = QVariant::fromValue(v3);-
516 return
never executed: return true;
true;
never executed: return true;
0
517 }-
518-
519 QVector4D v4 = vector4DFromString(s, &ok);-
520 if (ok
okDescription
TRUEnever evaluated
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
) {
0-20
521 *v = QVariant::fromValue(v4);-
522 return
never executed: return true;
true;
never executed: return true;
0
523 }-
524-
525 QQuaternion q = quaternionFromString(s, &ok);-
526 if (ok
okDescription
TRUEnever evaluated
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
) {
0-20
527 *v = QVariant::fromValue(q);-
528 return
never executed: return true;
true;
never executed: return true;
0
529 }-
530-
531 QMatrix4x4 m = matrix4x4FromString(s, &ok);-
532 if (ok
okDescription
TRUEnever evaluated
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
) {
0-20
533 *v = QVariant::fromValue(m);-
534 return
never executed: return true;
true;
never executed: return true;
0
535 }-
536-
537 return
executed 20 times by 5 tests: return false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
false;
executed 20 times by 5 tests: return false;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qquickimage
  • tst_qquickitem
20
538 }-
539-
540 bool variantFromString(int type, const QString &s, QVariant *v) override-
541 {-
542 bool ok = false;-
543-
544 switch (type) {-
545 case
executed 80748 times by 27 tests: case QMetaType::QColor:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
  • ...
QMetaType::QColor:
executed 80748 times by 27 tests: case QMetaType::QColor:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
  • ...
80748
546 {-
547 QColor c(s);-
548 *v = QVariant::fromValue(c);-
549 return
executed 80748 times by 27 tests: return true;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
  • ...
true;
executed 80748 times by 27 tests: return true;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmlvaluetypeproviders
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
  • ...
80748
550 }-
551 case
executed 2 times by 1 test: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector2D:
executed 2 times by 1 test: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlvaluetypeproviders
2
552 {-
553 *v = QVariant::fromValue(vector2DFromString(s, &ok));-
554 return
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
2
555 }-
556 case
executed 6 times by 2 tests: case QMetaType::QVector3D:
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
QMetaType::QVector3D:
executed 6 times by 2 tests: case QMetaType::QVector3D:
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
6
557 {-
558 *v = QVariant::fromValue(vector3DFromString(s, &ok));-
559 return
executed 6 times by 2 tests: return true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
true;
executed 6 times by 2 tests: return true;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlvaluetypeproviders
6
560 }-
561 case
executed 2 times by 1 test: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector4D:
executed 2 times by 1 test: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlvaluetypeproviders
2
562 {-
563 *v = QVariant::fromValue(vector4DFromString(s, &ok));-
564 return
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
2
565 }-
566 case
executed 2 times by 1 test: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QQuaternion:
executed 2 times by 1 test: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlvaluetypeproviders
2
567 {-
568 *v = QVariant::fromValue(quaternionFromString(s, &ok));-
569 return
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
2
570 }-
571 case
executed 2 times by 1 test: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QMatrix4x4:
executed 2 times by 1 test: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlvaluetypeproviders
2
572 {-
573 *v = QVariant::fromValue(matrix4x4FromString(s, &ok));-
574 return
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_qqmlvaluetypeproviders
2
575 }-
576 default
executed 40 times by 6 tests: default:
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
:
executed 40 times by 6 tests: default:
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
40
577 break;
executed 40 times by 6 tests: break;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
40
578 }-
579-
580 return
executed 40 times by 6 tests: return false;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
false;
executed 40 times by 6 tests: return false;
Executed by:
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickdroparea
  • tst_qquickitemlayer
  • tst_qquickshadereffect
40
581 }-
582-
583 bool variantFromJsObject(int type, QQmlV4Handle object, QV4::ExecutionEngine *v4, QVariant *v) override-
584 {-
585 QV4::Scope scope(v4);-
586-
587 QV4::ScopedObject obj(scope, object);-
588 ((obj) ? static_cast<void>(0) : qt_assert("obj", __FILE__, 647));-
589-
590 bool ok = false;-
591 switch (type) {-
592 case
executed 60 times by 3 tests: case QMetaType::QFont:
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
QMetaType::QFont:
executed 60 times by 3 tests: case QMetaType::QFont:
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
60
593 *v = QVariant::fromValue(fontFromObject(object, v4, &ok));-
594 break;
executed 60 times by 3 tests: break;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
60
595 case
executed 18 times by 2 tests: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
QMetaType::QMatrix4x4:
executed 18 times by 2 tests: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
18
596 *v = QVariant::fromValue(matrix4x4FromObject(object, v4, &ok));-
597 default
executed 18 times by 2 tests: default:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
:
executed 18 times by 2 tests: default:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
code before this statement executed 18 times by 2 tests: default:
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
break;
executed 18 times by 2 tests: break;
Executed by:
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
18
598 }-
599-
600 return
executed 78 times by 3 tests: return ok;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
ok;
executed 78 times by 3 tests: return ok;
Executed by:
  • tst_qqmlbinding
  • tst_qqmlqt
  • tst_qqmlvaluetypeproviders
78
601 }-
602-
603 template<typename T>-
604 bool typedEqual(const void *lhs, const QVariant& rhs)-
605 {-
606 return
executed 474 times by 12 tests: return (*(reinterpret_cast<const T *>(lhs)) == rhs.value<T>());
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
(*(reinterpret_cast<const T *>(lhs)) == rhs.value<T>());
executed 474 times by 12 tests: return (*(reinterpret_cast<const T *>(lhs)) == rhs.value<T>());
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
474
607 }-
608-
609 bool equal(int type, const void *lhs, const QVariant &rhs) override-
610 {-
611 switch (type) {-
612 case
executed 278 times by 11 tests: case QMetaType::QColor:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
QMetaType::QColor:
executed 278 times by 11 tests: case QMetaType::QColor:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
278
613 return
executed 278 times by 11 tests: return typedEqual<QColor>(lhs, rhs);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
typedEqual<QColor>(lhs, rhs);
executed 278 times by 11 tests: return typedEqual<QColor>(lhs, rhs);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
278
614 case
executed 52 times by 3 tests: case QMetaType::QFont:
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
QMetaType::QFont:
executed 52 times by 3 tests: case QMetaType::QFont:
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
52
615 return
executed 52 times by 3 tests: return typedEqual<QFont>(lhs, rhs);
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
typedEqual<QFont>(lhs, rhs);
executed 52 times by 3 tests: return typedEqual<QFont>(lhs, rhs);
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
52
616 case
executed 30 times by 1 test: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector2D:
executed 30 times by 1 test: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlvaluetypeproviders
30
617 return
executed 30 times by 1 test: return typedEqual<QVector2D>(lhs, rhs);
Executed by:
  • tst_qqmlvaluetypeproviders
typedEqual<QVector2D>(lhs, rhs);
executed 30 times by 1 test: return typedEqual<QVector2D>(lhs, rhs);
Executed by:
  • tst_qqmlvaluetypeproviders
30
618 case
executed 26 times by 1 test: case QMetaType::QVector3D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector3D:
executed 26 times by 1 test: case QMetaType::QVector3D:
Executed by:
  • tst_qqmlvaluetypeproviders
26
619 return
executed 26 times by 1 test: return typedEqual<QVector3D>(lhs, rhs);
Executed by:
  • tst_qqmlvaluetypeproviders
typedEqual<QVector3D>(lhs, rhs);
executed 26 times by 1 test: return typedEqual<QVector3D>(lhs, rhs);
Executed by:
  • tst_qqmlvaluetypeproviders
26
620 case
executed 32 times by 1 test: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector4D:
executed 32 times by 1 test: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlvaluetypeproviders
32
621 return
executed 32 times by 1 test: return typedEqual<QVector4D>(lhs, rhs);
Executed by:
  • tst_qqmlvaluetypeproviders
typedEqual<QVector4D>(lhs, rhs);
executed 32 times by 1 test: return typedEqual<QVector4D>(lhs, rhs);
Executed by:
  • tst_qqmlvaluetypeproviders
32
622 case
executed 18 times by 1 test: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QQuaternion:
executed 18 times by 1 test: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlvaluetypeproviders
18
623 return
executed 18 times by 1 test: return typedEqual<QQuaternion>(lhs, rhs);
Executed by:
  • tst_qqmlvaluetypeproviders
typedEqual<QQuaternion>(lhs, rhs);
executed 18 times by 1 test: return typedEqual<QQuaternion>(lhs, rhs);
Executed by:
  • tst_qqmlvaluetypeproviders
18
624 case
executed 38 times by 1 test: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QMatrix4x4:
executed 38 times by 1 test: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlvaluetypeproviders
38
625 return
executed 38 times by 1 test: return typedEqual<QMatrix4x4>(lhs, rhs);
Executed by:
  • tst_qqmlvaluetypeproviders
typedEqual<QMatrix4x4>(lhs, rhs);
executed 38 times by 1 test: return typedEqual<QMatrix4x4>(lhs, rhs);
Executed by:
  • tst_qqmlvaluetypeproviders
38
626 default
never executed: default:
:
never executed: default:
break;
never executed: break;
0
627 }-
628-
629 return
never executed: return false;
false;
never executed: return false;
0
630 }-
631-
632 template<typename T>-
633 bool typedStore(const void *src, void *dst, size_t dstSize)-
634 {-
635 ((dstSize >= sizeof(T)) ? static_cast<void>(0) : qt_assert("dstSize >= sizeof(T)", __FILE__, 694));-
636 const T *srcT = reinterpret_cast<const T *>(src);-
637 T *dstT = reinterpret_cast<T *>(dst);-
638 new (dstT) T(*srcT);-
639 return
never executed: return true;
true;
never executed: return true;
0
640 }-
641-
642 bool store(int type, const void *src, void *dst, size_t dstSize) override-
643 {-
644 (void)dstSize;;-
645 switch (type) {-
646 case
executed 27769 times by 82 tests: case QMetaType::QColor:
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • ...
QMetaType::QColor:
executed 27769 times by 82 tests: case QMetaType::QColor:
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • ...
27769
647 {-
648 ((dstSize >= sizeof(QColor)) ? static_cast<void>(0) : qt_assert("dstSize >= sizeof(QColor)", __FILE__, 707));-
649 const QRgb *rgb = reinterpret_cast<const QRgb *>(src);-
650 QColor *color = reinterpret_cast<QColor *>(dst);-
651 new (color) QColor(QColor::fromRgba(*rgb));-
652 return
executed 27769 times by 82 tests: return true;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • ...
true;
executed 27769 times by 82 tests: return true;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • ...
27769
653 }-
654 default
never executed: default:
:
never executed: default:
break;
never executed: break;
0
655 }-
656-
657 return
never executed: return false;
false;
never executed: return false;
0
658 }-
659-
660 template<typename T>-
661 bool typedRead(const QVariant& src, int dstType, void *dst)-
662 {-
663 T *dstT = reinterpret_cast<T *>(dst);-
664 if (src.type() == static_cast<uint>(dstType)
src.type() == ...uint>(dstType)Description
TRUEevaluated 948 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
FALSEevaluated 168 times by 3 tests
Evaluated by:
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
) {
168-948
665 *dstT = src.value<T>();-
666 }
executed 948 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
else {
948
667 *dstT = T();-
668 }
executed 168 times by 3 tests: end of block
Executed by:
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
168
669 return
executed 1116 times by 12 tests: return true;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
true;
executed 1116 times by 12 tests: return true;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
1116
670 }-
671-
672 bool read(const QVariant &src, void *dst, int dstType) override-
673 {-
674 switch (dstType) {-
675 case
executed 556 times by 11 tests: case QMetaType::QColor:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
QMetaType::QColor:
executed 556 times by 11 tests: case QMetaType::QColor:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
556
676 return
executed 556 times by 11 tests: return typedRead<QColor>(src, dstType, dst);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
typedRead<QColor>(src, dstType, dst);
executed 556 times by 11 tests: return typedRead<QColor>(src, dstType, dst);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
556
677 case
executed 256 times by 3 tests: case QMetaType::QFont:
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
QMetaType::QFont:
executed 256 times by 3 tests: case QMetaType::QFont:
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
256
678 return
executed 256 times by 3 tests: return typedRead<QFont>(src, dstType, dst);
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
typedRead<QFont>(src, dstType, dst);
executed 256 times by 3 tests: return typedRead<QFont>(src, dstType, dst);
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
256
679 case
executed 56 times by 1 test: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector2D:
executed 56 times by 1 test: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlvaluetypeproviders
56
680 return
executed 56 times by 1 test: return typedRead<QVector2D>(src, dstType, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
typedRead<QVector2D>(src, dstType, dst);
executed 56 times by 1 test: return typedRead<QVector2D>(src, dstType, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
56
681 case
executed 44 times by 1 test: case QMetaType::QVector3D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector3D:
executed 44 times by 1 test: case QMetaType::QVector3D:
Executed by:
  • tst_qqmlvaluetypeproviders
44
682 return
executed 44 times by 1 test: return typedRead<QVector3D>(src, dstType, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
typedRead<QVector3D>(src, dstType, dst);
executed 44 times by 1 test: return typedRead<QVector3D>(src, dstType, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
44
683 case
executed 80 times by 1 test: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector4D:
executed 80 times by 1 test: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlvaluetypeproviders
80
684 return
executed 80 times by 1 test: return typedRead<QVector4D>(src, dstType, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
typedRead<QVector4D>(src, dstType, dst);
executed 80 times by 1 test: return typedRead<QVector4D>(src, dstType, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
80
685 case
executed 42 times by 1 test: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QQuaternion:
executed 42 times by 1 test: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlvaluetypeproviders
42
686 return
executed 42 times by 1 test: return typedRead<QQuaternion>(src, dstType, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
typedRead<QQuaternion>(src, dstType, dst);
executed 42 times by 1 test: return typedRead<QQuaternion>(src, dstType, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
42
687 case
executed 82 times by 1 test: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QMatrix4x4:
executed 82 times by 1 test: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlvaluetypeproviders
82
688 return
executed 82 times by 1 test: return typedRead<QMatrix4x4>(src, dstType, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
typedRead<QMatrix4x4>(src, dstType, dst);
executed 82 times by 1 test: return typedRead<QMatrix4x4>(src, dstType, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
82
689 default
never executed: default:
:
never executed: default:
break;
never executed: break;
0
690 }-
691-
692 return
never executed: return false;
false;
never executed: return false;
0
693 }-
694-
695 template<typename T>-
696 bool typedWrite(const void *src, QVariant& dst)-
697 {-
698 const T *srcT = reinterpret_cast<const T *>(src);-
699 if (dst.value<T>() != *srcT
dst.value<T>() != *srcTDescription
TRUEevaluated 458 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
FALSEevaluated 16 times by 4 tests
Evaluated by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
) {
16-458
700 dst = *srcT;-
701 return
executed 458 times by 11 tests: return true;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
true;
executed 458 times by 11 tests: return true;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
458
702 }-
703 return
executed 16 times by 4 tests: return false;
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
false;
executed 16 times by 4 tests: return false;
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
  • tst_qquickdynamicpropertyanimation
16
704 }-
705-
706 bool write(int type, const void *src, QVariant& dst) override-
707 {-
708 switch (type) {-
709 case
executed 278 times by 11 tests: case QMetaType::QColor:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
QMetaType::QColor:
executed 278 times by 11 tests: case QMetaType::QColor:
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
278
710 return
executed 278 times by 11 tests: return typedWrite<QColor>(src, dst);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
typedWrite<QColor>(src, dst);
executed 278 times by 11 tests: return typedWrite<QColor>(src, dst);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlqt
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qquickdynamicpropertyanimation
  • tst_qquickloader
  • tst_qquickstates
278
711 case
executed 52 times by 3 tests: case QMetaType::QFont:
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
QMetaType::QFont:
executed 52 times by 3 tests: case QMetaType::QFont:
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
52
712 return
executed 52 times by 3 tests: return typedWrite<QFont>(src, dst);
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
typedWrite<QFont>(src, dst);
executed 52 times by 3 tests: return typedWrite<QFont>(src, dst);
Executed by:
  • tst_qqmlsettings
  • tst_qqmlvaluetypeproviders
  • tst_qquickapplication
52
713 case
executed 30 times by 1 test: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector2D:
executed 30 times by 1 test: case QMetaType::QVector2D:
Executed by:
  • tst_qqmlvaluetypeproviders
30
714 return
executed 30 times by 1 test: return typedWrite<QVector2D>(src, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
typedWrite<QVector2D>(src, dst);
executed 30 times by 1 test: return typedWrite<QVector2D>(src, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
30
715 case
executed 26 times by 1 test: case QMetaType::QVector3D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector3D:
executed 26 times by 1 test: case QMetaType::QVector3D:
Executed by:
  • tst_qqmlvaluetypeproviders
26
716 return
executed 26 times by 1 test: return typedWrite<QVector3D>(src, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
typedWrite<QVector3D>(src, dst);
executed 26 times by 1 test: return typedWrite<QVector3D>(src, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
26
717 case
executed 32 times by 1 test: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QVector4D:
executed 32 times by 1 test: case QMetaType::QVector4D:
Executed by:
  • tst_qqmlvaluetypeproviders
32
718 return
executed 32 times by 1 test: return typedWrite<QVector4D>(src, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
typedWrite<QVector4D>(src, dst);
executed 32 times by 1 test: return typedWrite<QVector4D>(src, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
32
719 case
executed 18 times by 1 test: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QQuaternion:
executed 18 times by 1 test: case QMetaType::QQuaternion:
Executed by:
  • tst_qqmlvaluetypeproviders
18
720 return
executed 18 times by 1 test: return typedWrite<QQuaternion>(src, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
typedWrite<QQuaternion>(src, dst);
executed 18 times by 1 test: return typedWrite<QQuaternion>(src, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
18
721 case
executed 38 times by 1 test: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlvaluetypeproviders
QMetaType::QMatrix4x4:
executed 38 times by 1 test: case QMetaType::QMatrix4x4:
Executed by:
  • tst_qqmlvaluetypeproviders
38
722 return
executed 38 times by 1 test: return typedWrite<QMatrix4x4>(src, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
typedWrite<QMatrix4x4>(src, dst);
executed 38 times by 1 test: return typedWrite<QMatrix4x4>(src, dst);
Executed by:
  • tst_qqmlvaluetypeproviders
38
723 default
never executed: default:
:
never executed: default:
break;
never executed: break;
0
724 }-
725-
726 return
never executed: return false;
false;
never executed: return false;
0
727 }-
728-
729};-
730-
731-
732class QQuickGuiProvider : public QQmlGuiProvider-
733{-
734public:-
735 QQuickApplication *application(QObject *parent) override-
736 {-
737 return
executed 12 times by 4 tests: return new QQuickApplication(parent);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickapplication
  • tst_qquickscreen
new QQuickApplication(parent);
executed 12 times by 4 tests: return new QQuickApplication(parent);
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickapplication
  • tst_qquickscreen
12
738 }-
739-
740-
741 QInputMethod *inputMethod() override-
742 {-
743 QInputMethod *im = (static_cast<QGuiApplication *>(QCoreApplication::instance()))->inputMethod();-
744 QQmlEngine::setObjectOwnership(im, QQmlEngine::CppOwnership);-
745 return
executed 40 times by 2 tests: return im;
Executed by:
  • tst_qqmlvaluetypes
  • tst_qquickapplication
im;
executed 40 times by 2 tests: return im;
Executed by:
  • tst_qqmlvaluetypes
  • tst_qquickapplication
40
746 }-
747-
748-
749 QStyleHints *styleHints() override-
750 {-
751 QStyleHints *sh = (static_cast<QGuiApplication *>(QCoreApplication::instance()))->styleHints();-
752 QQmlEngine::setObjectOwnership(sh, QQmlEngine::CppOwnership);-
753 return
executed 2 times by 1 test: return sh;
Executed by:
  • tst_qquickapplication
sh;
executed 2 times by 1 test: return sh;
Executed by:
  • tst_qquickapplication
2
754 }-
755-
756 QStringList fontFamilies() override-
757 {-
758 QFontDatabase database;-
759 return
executed 4 times by 2 tests: return database.families();
Executed by:
  • tst_examples
  • tst_qqmlqt
database.families();
executed 4 times by 2 tests: return database.families();
Executed by:
  • tst_examples
  • tst_qqmlqt
4
760 }-
761-
762 bool openUrlExternally(QUrl &url) override-
763 {-
764-
765 return
executed 8 times by 1 test: return QDesktopServices::openUrl(url);
Executed by:
  • tst_qqmlqt
QDesktopServices::openUrl(url);
executed 8 times by 1 test: return QDesktopServices::openUrl(url);
Executed by:
  • tst_qqmlqt
8
766-
767-
768-
769-
770 }-
771-
772 QString pluginName() const override-
773 {-
774 return
executed 2 times by 1 test: return QGuiApplication::platformName();
Executed by:
  • tst_qquickapplication
QGuiApplication::platformName();
executed 2 times by 1 test: return QGuiApplication::platformName();
Executed by:
  • tst_qquickapplication
2
775 }-
776};-
777-
778-
779static QQuickValueTypeProvider *getValueTypeProvider()-
780{-
781 static QQuickValueTypeProvider valueTypeProvider;-
782 return
executed 462 times by 132 tests: return &valueTypeProvider;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
&valueTypeProvider;
executed 462 times by 132 tests: return &valueTypeProvider;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
462
783}-
784-
785static QQuickColorProvider *getColorProvider()-
786{-
787 static QQuickColorProvider colorProvider;-
788 return
executed 374 times by 132 tests: return &colorProvider;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
&colorProvider;
executed 374 times by 132 tests: return &colorProvider;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
374
789}-
790-
791static QQuickGuiProvider *getGuiProvider()-
792{-
793 static QQuickGuiProvider guiProvider;-
794 return
executed 374 times by 132 tests: return &guiProvider;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
&guiProvider;
executed 374 times by 132 tests: return &guiProvider;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
374
795}-
796-
797void QQuick_initializeProviders()-
798{-
799 QQml_addValueTypeProvider(getValueTypeProvider());-
800 QQml_setColorProvider(getColorProvider());-
801 QQml_setGuiProvider(getGuiProvider());-
802}
executed 374 times by 132 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmllistreference
  • ...
374
803-
804void QQuick_deinitializeProviders()-
805{-
806 QQml_removeValueTypeProvider(getValueTypeProvider());-
807 QQml_setColorProvider(nullptr);-
808 QQml_setGuiProvider(nullptr);-
809}
executed 88 times by 3 tests: end of block
Executed by:
  • tst_qmldiskcache
  • tst_qqmlenginecleanup
  • tst_qqmltypeloader
88
810-
811-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0