OpenCoverage

qquickimageparticle.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickimageparticle.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7const qreal CONV = 0.017453292519943295;-
8class ImageMaterialData-
9{-
10 public:-
11 ImageMaterialData()-
12 : texture(nullptr), colorTable(nullptr)-
13 {}
executed 99 times by 21 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
99
14-
15 ~ImageMaterialData(){-
16 delete texture;-
17 delete colorTable;-
18 }
executed 99 times by 21 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
99
19-
20 QSGTexture *texture;-
21 QSGTexture *colorTable;-
22 float sizeTable[64];-
23 float opacityTable[64];-
24-
25 qreal timestamp;-
26 qreal entry;-
27 QSizeF animSheetSize;-
28};-
29-
30class TabledMaterialData : public ImageMaterialData {};-
31class TabledMaterial : public QSGSimpleMaterialShader<TabledMaterialData>-
32{-
33 static QSGMaterialShader *createShader() { return
executed 2 times by 1 test: return new TabledMaterial;
Executed by:
  • tst_qquickimageparticle
new TabledMaterial;
executed 2 times by 1 test: return new TabledMaterial;
Executed by:
  • tst_qquickimageparticle
} public: static QSGSimpleMaterial<TabledMaterialData> *createMaterial() { return
executed 2 times by 1 test: return new QSGSimpleMaterial<TabledMaterialData>(createShader);
Executed by:
  • tst_qquickimageparticle
new QSGSimpleMaterial<TabledMaterialData>(createShader);
executed 2 times by 1 test: return new QSGSimpleMaterial<TabledMaterialData>(createShader);
Executed by:
  • tst_qquickimageparticle
}
2
34-
35public:-
36 TabledMaterial()-
37 {-
38 QSGShaderSourceBuilder builder;-
39 const bool isES = QOpenGLContext::currentContext()->isOpenGLES();-
40-
41 builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquickimageparticle
qstring_literal_temp;
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquickimageparticle
}()));
2
42 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("TABLE") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "TABLE" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 2 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
ba;
executed 2 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
}()));
2
43 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("DEFORM") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DEFORM" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 2 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
ba;
executed 2 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
}()));
2
44 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 2 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
ba;
executed 2 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
}()));
2
45 if (isES
isESDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
)
0-2
46 builder.removeVersion();
never executed: builder.removeVersion();
0
47-
48 m_vertex_code = builder.source();-
49 builder.clear();-
50-
51 builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquickimageparticle
qstring_literal_temp;
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquickimageparticle
}()));
2
52 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("TABLE") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "TABLE" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 2 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
ba;
executed 2 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
}()));
2
53 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("DEFORM") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DEFORM" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 2 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
ba;
executed 2 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
}()));
2
54 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 2 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
ba;
executed 2 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
}()));
2
55 if (isES
isESDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
)
0-2
56 builder.removeVersion();
never executed: builder.removeVersion();
0
57-
58 m_fragment_code = builder.source();-
59-
60 ((!m_vertex_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_vertex_code.isNull()", __FILE__, 118));-
61 ((!m_fragment_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_fragment_code.isNull()", __FILE__, 119));-
62 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
2
63-
64 const char *vertexShader() const override { return
executed 2 times by 1 test: return m_vertex_code.constData();
Executed by:
  • tst_qquickimageparticle
m_vertex_code.constData();
executed 2 times by 1 test: return m_vertex_code.constData();
Executed by:
  • tst_qquickimageparticle
}
2
65 const char *fragmentShader() const override { return
executed 2 times by 1 test: return m_fragment_code.constData();
Executed by:
  • tst_qquickimageparticle
m_fragment_code.constData();
executed 2 times by 1 test: return m_fragment_code.constData();
Executed by:
  • tst_qquickimageparticle
}
2
66-
67 QList<QByteArray> attributes() const override {-
68 return
executed 2 times by 1 test: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation";
Executed by:
  • tst_qquickimageparticle
QList<QByteArray>() << "vPosTex" << "vData" << "vVec"
executed 2 times by 1 test: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation";
Executed by:
  • tst_qquickimageparticle
2
69 << "vColor" << "vDeformVec" << "vRotation";
executed 2 times by 1 test: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation";
Executed by:
  • tst_qquickimageparticle
2
70 };-
71-
72 void initialize() override {-
73 QSGSimpleMaterialShader<TabledMaterialData>::initialize();-
74 program()->bind();-
75 program()->setUniformValue("_qt_texture", 0);-
76 program()->setUniformValue("colortable", 1);-
77 glFuncs = QOpenGLContext::currentContext()->functions();-
78 m_timestamp_id = program()->uniformLocation("timestamp");-
79 m_entry_id = program()->uniformLocation("entry");-
80 m_sizetable_id = program()->uniformLocation("sizetable");-
81 m_opacitytable_id = program()->uniformLocation("opacitytable");-
82 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
2
83-
84 void updateState(const TabledMaterialData* d, const TabledMaterialData*) override {-
85 glFuncs->glActiveTexture(-
86 0x84C1-
87 );-
88 d->colorTable->bind();-
89-
90 glFuncs->glActiveTexture(-
91 0x84C0-
92 );-
93 d->texture->bind();-
94-
95 program()->setUniformValue(m_timestamp_id, (float) d->timestamp);-
96 program()->setUniformValue(m_entry_id, (float) d->entry);-
97 program()->setUniformValueArray(m_sizetable_id, (const float*) d->sizeTable, 64, 1);-
98 program()->setUniformValueArray(m_opacitytable_id, (const float*) d->opacityTable, 64, 1);-
99 }
executed 125 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
125
100-
101 int m_entry_id;-
102 int m_timestamp_id;-
103 int m_sizetable_id;-
104 int m_opacitytable_id;-
105 QByteArray m_vertex_code;-
106 QByteArray m_fragment_code;-
107 QOpenGLFunctions* glFuncs;-
108};-
109-
110class DeformableMaterialData : public ImageMaterialData {};-
111class DeformableMaterial : public QSGSimpleMaterialShader<DeformableMaterialData>-
112{-
113 static QSGMaterialShader *createShader() { return
executed 6 times by 2 tests: return new DeformableMaterial;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
new DeformableMaterial;
executed 6 times by 2 tests: return new DeformableMaterial;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
} public: static QSGSimpleMaterial<DeformableMaterialData> *createMaterial() { return
executed 6 times by 2 tests: return new QSGSimpleMaterial<DeformableMaterialData>(createShader);
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
new QSGSimpleMaterial<DeformableMaterialData>(createShader);
executed 6 times by 2 tests: return new QSGSimpleMaterial<DeformableMaterialData>(createShader);
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
}
6
114-
115public:-
116 DeformableMaterial()-
117 {-
118 QSGShaderSourceBuilder builder;-
119 const bool isES = QOpenGLContext::currentContext()->isOpenGLES();-
120-
121 builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 6 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
qstring_literal_temp;
executed 6 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
}()));
6
122 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("DEFORM") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DEFORM" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 6 times by 2 tests: return ba;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
ba;
executed 6 times by 2 tests: return ba;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
}()));
6
123 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 6 times by 2 tests: return ba;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
ba;
executed 6 times by 2 tests: return ba;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
}()));
6
124 if (isES
isESDescription
TRUEnever evaluated
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
)
0-6
125 builder.removeVersion();
never executed: builder.removeVersion();
0
126-
127 m_vertex_code = builder.source();-
128 builder.clear();-
129-
130 builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 6 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
qstring_literal_temp;
executed 6 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
}()));
6
131 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("DEFORM") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DEFORM" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 6 times by 2 tests: return ba;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
ba;
executed 6 times by 2 tests: return ba;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
}()));
6
132 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 6 times by 2 tests: return ba;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
ba;
executed 6 times by 2 tests: return ba;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
}()));
6
133 if (isES
isESDescription
TRUEnever evaluated
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
)
0-6
134 builder.removeVersion();
never executed: builder.removeVersion();
0
135-
136 m_fragment_code = builder.source();-
137-
138 ((!m_vertex_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_vertex_code.isNull()", __FILE__, 192));-
139 ((!m_fragment_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_fragment_code.isNull()", __FILE__, 193));-
140 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
6
141-
142 const char *vertexShader() const override { return
executed 6 times by 2 tests: return m_vertex_code.constData();
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
m_vertex_code.constData();
executed 6 times by 2 tests: return m_vertex_code.constData();
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
}
6
143 const char *fragmentShader() const override { return
executed 6 times by 2 tests: return m_fragment_code.constData();
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
m_fragment_code.constData();
executed 6 times by 2 tests: return m_fragment_code.constData();
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
}
6
144-
145 QList<QByteArray> attributes() const override {-
146 return
executed 6 times by 2 tests: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation";
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
QList<QByteArray>() << "vPosTex" << "vData" << "vVec"
executed 6 times by 2 tests: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation";
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
6
147 << "vColor" << "vDeformVec" << "vRotation";
executed 6 times by 2 tests: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation";
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
6
148 };-
149-
150 void initialize() override {-
151 QSGSimpleMaterialShader<DeformableMaterialData>::initialize();-
152 program()->bind();-
153 program()->setUniformValue("_qt_texture", 0);-
154 glFuncs = QOpenGLContext::currentContext()->functions();-
155 m_timestamp_id = program()->uniformLocation("timestamp");-
156 m_entry_id = program()->uniformLocation("entry");-
157 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
6
158-
159 void updateState(const DeformableMaterialData* d, const DeformableMaterialData*) override {-
160 d->texture->bind();-
161-
162 program()->setUniformValue(m_timestamp_id, (float) d->timestamp);-
163 program()->setUniformValue(m_entry_id, (float) d->entry);-
164 }
executed 308 times by 2 tests: end of block
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
308
165-
166 int m_entry_id;-
167 int m_timestamp_id;-
168 QByteArray m_vertex_code;-
169 QByteArray m_fragment_code;-
170 QOpenGLFunctions* glFuncs;-
171};-
172-
173class SpriteMaterialData : public ImageMaterialData {};-
174class SpriteMaterial : public QSGSimpleMaterialShader<SpriteMaterialData>-
175{-
176 static QSGMaterialShader *createShader() { return
executed 4 times by 2 tests: return new SpriteMaterial;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
new SpriteMaterial;
executed 4 times by 2 tests: return new SpriteMaterial;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
} public: static QSGSimpleMaterial<SpriteMaterialData> *createMaterial() { return
executed 4 times by 2 tests: return new QSGSimpleMaterial<SpriteMaterialData>(createShader);
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
new QSGSimpleMaterial<SpriteMaterialData>(createShader);
executed 4 times by 2 tests: return new QSGSimpleMaterial<SpriteMaterialData>(createShader);
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
}
4
177-
178public:-
179 SpriteMaterial()-
180 {-
181 QSGShaderSourceBuilder builder;-
182 const bool isES = QOpenGLContext::currentContext()->isOpenGLES();-
183-
184 builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 4 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
qstring_literal_temp;
executed 4 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
}()));
4
185 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("SPRITE") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "SPRITE" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
ba;
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
}()));
4
186 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("TABLE") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "TABLE" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
ba;
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
}()));
4
187 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("DEFORM") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DEFORM" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
ba;
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
}()));
4
188 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
ba;
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
}()));
4
189 if (isES
isESDescription
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
)
0-4
190 builder.removeVersion();
never executed: builder.removeVersion();
0
191-
192 m_vertex_code = builder.source();-
193 builder.clear();-
194-
195 builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 4 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
qstring_literal_temp;
executed 4 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
}()));
4
196 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("SPRITE") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "SPRITE" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
ba;
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
}()));
4
197 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("TABLE") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "TABLE" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
ba;
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
}()));
4
198 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("DEFORM") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DEFORM" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
ba;
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
}()));
4
199 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
ba;
executed 4 times by 2 tests: return ba;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
}()));
4
200 if (isES
isESDescription
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
)
0-4
201 builder.removeVersion();
never executed: builder.removeVersion();
0
202-
203 m_fragment_code = builder.source();-
204-
205 ((!m_vertex_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_vertex_code.isNull()", __FILE__, 259));-
206 ((!m_fragment_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_fragment_code.isNull()", __FILE__, 260));-
207 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4
208-
209 const char *vertexShader() const override { return
executed 4 times by 2 tests: return m_vertex_code.constData();
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
m_vertex_code.constData();
executed 4 times by 2 tests: return m_vertex_code.constData();
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
}
4
210 const char *fragmentShader() const override { return
executed 4 times by 2 tests: return m_fragment_code.constData();
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
m_fragment_code.constData();
executed 4 times by 2 tests: return m_fragment_code.constData();
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
}
4
211-
212 QList<QByteArray> attributes() const override {-
213 return
executed 4 times by 2 tests: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation" << "vAnimData" << "vAnimPos";
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
QList<QByteArray>() << "vPosTex" << "vData" << "vVec"
executed 4 times by 2 tests: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation" << "vAnimData" << "vAnimPos";
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4
214 << "vColor" << "vDeformVec" << "vRotation" << "vAnimData" << "vAnimPos";
executed 4 times by 2 tests: return QList<QByteArray>() << "vPosTex" << "vData" << "vVec" << "vColor" << "vDeformVec" << "vRotation" << "vAnimData" << "vAnimPos";
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4
215 }-
216-
217 void initialize() override {-
218 QSGSimpleMaterialShader<SpriteMaterialData>::initialize();-
219 program()->bind();-
220 program()->setUniformValue("_qt_texture", 0);-
221 program()->setUniformValue("colortable", 1);-
222 glFuncs = QOpenGLContext::currentContext()->functions();-
223-
224 m_timestamp_id = program()->uniformLocation("timestamp");-
225 m_entry_id = program()->uniformLocation("entry");-
226 m_sizetable_id = program()->uniformLocation("sizetable");-
227 m_opacitytable_id = program()->uniformLocation("opacitytable");-
228 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4
229-
230 void updateState(const SpriteMaterialData* d, const SpriteMaterialData*) override {-
231 glFuncs->glActiveTexture(-
232 0x84C1-
233 );-
234 d->colorTable->bind();-
235-
236-
237 glFuncs->glActiveTexture(-
238 0x84C0-
239 );-
240 d->texture->bind();-
241-
242 program()->setUniformValue(m_timestamp_id, (float) d->timestamp);-
243 program()->setUniformValue(m_entry_id, (float) d->entry);-
244 program()->setUniformValueArray(m_sizetable_id, (const float*) d->sizeTable, 64, 1);-
245 program()->setUniformValueArray(m_opacitytable_id, (const float*) d->opacityTable, 64, 1);-
246 }
executed 267 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
267
247-
248 int m_timestamp_id;-
249 int m_entry_id;-
250 int m_sizetable_id;-
251 int m_opacitytable_id;-
252 QByteArray m_vertex_code;-
253 QByteArray m_fragment_code;-
254 QOpenGLFunctions* glFuncs;-
255};-
256-
257class ColoredMaterialData : public ImageMaterialData {};-
258class ColoredMaterial : public QSGSimpleMaterialShader<ColoredMaterialData>-
259{-
260 static QSGMaterialShader *createShader() { return
executed 4 times by 1 test: return new ColoredMaterial;
Executed by:
  • tst_qquickimageparticle
new ColoredMaterial;
executed 4 times by 1 test: return new ColoredMaterial;
Executed by:
  • tst_qquickimageparticle
} public: static QSGSimpleMaterial<ColoredMaterialData> *createMaterial() { return
executed 4 times by 1 test: return new QSGSimpleMaterial<ColoredMaterialData>(createShader);
Executed by:
  • tst_qquickimageparticle
new QSGSimpleMaterial<ColoredMaterialData>(createShader);
executed 4 times by 1 test: return new QSGSimpleMaterial<ColoredMaterialData>(createShader);
Executed by:
  • tst_qquickimageparticle
}
4
261-
262public:-
263 ColoredMaterial()-
264 {-
265 QSGShaderSourceBuilder builder;-
266 const bool isES = QOpenGLContext::currentContext()->isOpenGLES();-
267-
268 builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 4 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquickimageparticle
qstring_literal_temp;
executed 4 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquickimageparticle
}()));
4
269 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 4 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
ba;
executed 4 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
}()));
4
270 if (isES
isESDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
)
0-4
271 builder.removeVersion();
never executed: builder.removeVersion();
0
272-
273 m_vertex_code = builder.source();-
274 builder.clear();-
275-
276 builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 4 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquickimageparticle
qstring_literal_temp;
executed 4 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquickimageparticle
}()));
4
277 builder.addDefinition(([]() -> QByteArray { enum { Size = sizeof("COLOR") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "COLOR" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 4 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
ba;
executed 4 times by 1 test: return ba;
Executed by:
  • tst_qquickimageparticle
}()));
4
278 if (isES
isESDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
)
0-4
279 builder.removeVersion();
never executed: builder.removeVersion();
0
280-
281 m_fragment_code = builder.source();-
282-
283 ((!m_vertex_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_vertex_code.isNull()", __FILE__, 333));-
284 ((!m_fragment_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_fragment_code.isNull()", __FILE__, 334));-
285 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
4
286-
287 const char *vertexShader() const override { return
executed 4 times by 1 test: return m_vertex_code.constData();
Executed by:
  • tst_qquickimageparticle
m_vertex_code.constData();
executed 4 times by 1 test: return m_vertex_code.constData();
Executed by:
  • tst_qquickimageparticle
}
4
288 const char *fragmentShader() const override { return
executed 4 times by 1 test: return m_fragment_code.constData();
Executed by:
  • tst_qquickimageparticle
m_fragment_code.constData();
executed 4 times by 1 test: return m_fragment_code.constData();
Executed by:
  • tst_qquickimageparticle
}
4
289-
290 void activate() override {-
291 QSGSimpleMaterialShader<ColoredMaterialData>::activate();-
292-
293 glEnable(0x8861);-
294 glEnable(0x8642);-
295-
296 }
executed 258 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
258
297-
298 void deactivate() override {-
299 QSGSimpleMaterialShader<ColoredMaterialData>::deactivate();-
300-
301 glDisable(0x8861);-
302 glDisable(0x8642);-
303-
304 }
executed 258 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
258
305-
306 QList<QByteArray> attributes() const override {-
307 return
executed 4 times by 1 test: return QList<QByteArray>() << "vPos" << "vData" << "vVec" << "vColor";
Executed by:
  • tst_qquickimageparticle
QList<QByteArray>() << "vPos" << "vData" << "vVec" << "vColor";
executed 4 times by 1 test: return QList<QByteArray>() << "vPos" << "vData" << "vVec" << "vColor";
Executed by:
  • tst_qquickimageparticle
4
308 }-
309-
310 void initialize() override {-
311 QSGSimpleMaterialShader<ColoredMaterialData>::initialize();-
312 program()->bind();-
313 program()->setUniformValue("_qt_texture", 0);-
314 glFuncs = QOpenGLContext::currentContext()->functions();-
315 m_timestamp_id = program()->uniformLocation("timestamp");-
316 m_entry_id = program()->uniformLocation("entry");-
317 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
4
318-
319 void updateState(const ColoredMaterialData* d, const ColoredMaterialData*) override {-
320 d->texture->bind();-
321-
322 program()->setUniformValue(m_timestamp_id, (float) d->timestamp);-
323 program()->setUniformValue(m_entry_id, (float) d->entry);-
324 }
executed 258 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
258
325-
326 int m_timestamp_id;-
327 int m_entry_id;-
328 QByteArray m_vertex_code;-
329 QByteArray m_fragment_code;-
330 QOpenGLFunctions* glFuncs;-
331};-
332-
333class SimpleMaterialData : public ImageMaterialData {};-
334class SimpleMaterial : public QSGSimpleMaterialShader<SimpleMaterialData>-
335{-
336 static QSGMaterialShader *createShader() { return
executed 48 times by 20 tests: return new SimpleMaterial;
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
new SimpleMaterial;
executed 48 times by 20 tests: return new SimpleMaterial;
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
} public: static QSGSimpleMaterial<SimpleMaterialData> *createMaterial() { return
executed 83 times by 20 tests: return new QSGSimpleMaterial<SimpleMaterialData>(createShader);
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
new QSGSimpleMaterial<SimpleMaterialData>(createShader);
executed 83 times by 20 tests: return new QSGSimpleMaterial<SimpleMaterialData>(createShader);
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
}
48-83
337-
338public:-
339 SimpleMaterial()-
340 {-
341 QSGShaderSourceBuilder builder;-
342 const bool isES = QOpenGLContext::currentContext()->isOpenGLES();-
343-
344 builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.vert")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.vert" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 48 times by 20 tests: return qstring_literal_temp;
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
qstring_literal_temp;
executed 48 times by 20 tests: return qstring_literal_temp;
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
}()));
48
345 if (isES
isESDescription
TRUEnever evaluated
FALSEevaluated 48 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
0-48
346 builder.removeVersion();
never executed: builder.removeVersion();
0
347-
348 m_vertex_code = builder.source();-
349 builder.clear();-
350-
351 builder.appendSourceFile(([]() noexcept -> QString { enum { Size = sizeof(u"" ":/particles/shaders/imageparticle.frag")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" ":/particles/shaders/imageparticle.frag" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 48 times by 20 tests: return qstring_literal_temp;
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
qstring_literal_temp;
executed 48 times by 20 tests: return qstring_literal_temp;
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
}()));
48
352 if (isES
isESDescription
TRUEnever evaluated
FALSEevaluated 48 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
0-48
353 builder.removeVersion();
never executed: builder.removeVersion();
0
354-
355 m_fragment_code = builder.source();-
356-
357 ((!m_vertex_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_vertex_code.isNull()", __FILE__, 407));-
358 ((!m_fragment_code.isNull()) ? static_cast<void>(0) : qt_assert("!m_fragment_code.isNull()", __FILE__, 408));-
359 }
executed 48 times by 20 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
48
360-
361 const char *vertexShader() const override { return
executed 48 times by 20 tests: return m_vertex_code.constData();
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
m_vertex_code.constData();
executed 48 times by 20 tests: return m_vertex_code.constData();
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
}
48
362 const char *fragmentShader() const override { return
executed 48 times by 20 tests: return m_fragment_code.constData();
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
m_fragment_code.constData();
executed 48 times by 20 tests: return m_fragment_code.constData();
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
}
48
363-
364 void activate() override {-
365 QSGSimpleMaterialShader<SimpleMaterialData>::activate();-
366-
367 glEnable(0x8861);-
368 glEnable(0x8642);-
369-
370 }
executed 2952 times by 20 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
2952
371-
372 void deactivate() override {-
373 QSGSimpleMaterialShader<SimpleMaterialData>::deactivate();-
374-
375 glDisable(0x8861);-
376 glDisable(0x8642);-
377-
378 }
executed 2952 times by 20 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
2952
379-
380 QList<QByteArray> attributes() const override {-
381 return
executed 48 times by 20 tests: return QList<QByteArray>() << "vPos" << "vData" << "vVec";
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
QList<QByteArray>() << "vPos" << "vData" << "vVec";
executed 48 times by 20 tests: return QList<QByteArray>() << "vPos" << "vData" << "vVec";
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
48
382 }-
383-
384 void initialize() override {-
385 QSGSimpleMaterialShader<SimpleMaterialData>::initialize();-
386 program()->bind();-
387 program()->setUniformValue("_qt_texture", 0);-
388 glFuncs = QOpenGLContext::currentContext()->functions();-
389 m_timestamp_id = program()->uniformLocation("timestamp");-
390 m_entry_id = program()->uniformLocation("entry");-
391 }
executed 48 times by 20 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
48
392-
393 void updateState(const SimpleMaterialData* d, const SimpleMaterialData*) override {-
394 d->texture->bind();-
395-
396 program()->setUniformValue(m_timestamp_id, (float) d->timestamp);-
397 program()->setUniformValue(m_entry_id, (float) d->entry);-
398 }
executed 3635 times by 20 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
3635
399-
400 int m_timestamp_id;-
401 int m_entry_id;-
402 QByteArray m_vertex_code;-
403 QByteArray m_fragment_code;-
404 QOpenGLFunctions* glFuncs;-
405};-
406-
407void fillUniformArrayFromImage(float* array, const QImage& img, int size)-
408{-
409 if (img.isNull()
img.isNull()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
){
4-8
410 for (int i=0; i<size
i<sizeDescription
TRUEevaluated 512 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
; i++)
8-512
411 array[i] = 1.0;
executed 512 times by 2 tests: array[i] = 1.0;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
512
412 return;
executed 8 times by 2 tests: return;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
8
413 }-
414 QImage scaled = img.scaled(size,1);-
415 for (int i=0; i<size
i<sizeDescription
TRUEevaluated 256 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
; i++)
4-256
416 array[i] = qAlpha(scaled.pixel(i,0))/255.0;
executed 256 times by 1 test: array[i] = qAlpha(scaled.pixel(i,0))/255.0;
Executed by:
  • tst_qquickimageparticle
256
417}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
4
418QQuickImageParticle::QQuickImageParticle(QQuickItem* parent)-
419 : QQuickParticlePainter(parent)-
420 , m_color_variation(0.0)-
421 , m_material(nullptr)-
422 , m_alphaVariation(0.0)-
423 , m_alpha(1.0)-
424 , m_redVariation(0.0)-
425 , m_greenVariation(0.0)-
426 , m_blueVariation(0.0)-
427 , m_rotation(0)-
428 , m_rotationVariation(0)-
429 , m_rotationVelocity(0)-
430 , m_rotationVelocityVariation(0)-
431 , m_autoRotation(false)-
432 , m_xVector(nullptr)-
433 , m_yVector(nullptr)-
434 , m_spriteEngine(nullptr)-
435 , m_spritesInterpolate(true)-
436 , m_explicitColor(false)-
437 , m_explicitRotation(false)-
438 , m_explicitDeformation(false)-
439 , m_explicitAnimation(false)-
440 , m_bypassOptimizations(false)-
441 , perfLevel(Unknown)-
442 , m_lastLevel(Unknown)-
443 , m_debugMode(false)-
444 , m_entryEffect(Fade)-
445 , m_startedImageLoading(0)-
446{-
447 setFlag(ItemHasContents);-
448}
executed 202 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
202
449-
450QQuickImageParticle::~QQuickImageParticle()-
451{-
452 clearShadows();-
453}
executed 202 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
202
454-
455QQmlListProperty<QQuickSprite> QQuickImageParticle::sprites()-
456{-
457 return
executed 22 times by 3 tests: return QQmlListProperty<QQuickSprite>(this, &m_sprites, spriteAppend, spriteCount, spriteAt, spriteClear);
Executed by:
  • tst_examples
  • tst_qquickimageparticle
  • tst_qquickspritegoal
QQmlListProperty<QQuickSprite>(this, &m_sprites, spriteAppend, spriteCount, spriteAt, spriteClear);
executed 22 times by 3 tests: return QQmlListProperty<QQuickSprite>(this, &m_sprites, spriteAppend, spriteCount, spriteAt, spriteClear);
Executed by:
  • tst_examples
  • tst_qquickimageparticle
  • tst_qquickspritegoal
22
458}-
459-
460void QQuickImageParticle::sceneGraphInvalidated()-
461{-
462 m_nodes.clear();-
463 m_material = nullptr;-
464}
never executed: end of block
0
465-
466void QQuickImageParticle::setImage(const QUrl &image)-
467{-
468 if (image.isEmpty()
image.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 180 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
){
0-180
469 if (m_image
m_imageDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
470 m_image.reset();-
471 imageChanged();-
472 }
never executed: end of block
0
473 return;
never executed: return;
0
474 }-
475-
476 if (!m_image
!m_imageDescription
TRUEevaluated 180 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEnever evaluated
)
0-180
477 m_image.reset(new ImageData);
executed 180 times by 21 tests: m_image.reset(new ImageData);
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
180
478 if (image == m_image->source
image == m_image->sourceDescription
TRUEnever evaluated
FALSEevaluated 180 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
0-180
479 return;
never executed: return;
0
480 m_image->source = image;-
481 imageChanged();-
482 reset();-
483}
executed 180 times by 21 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
180
484-
485-
486void QQuickImageParticle::setColortable(const QUrl &table)-
487{-
488 if (table.isEmpty()
table.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
){
0-6
489 if (m_colorTable
m_colorTableDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
490 m_colorTable.reset();-
491 colortableChanged();-
492 }
never executed: end of block
0
493 return;
never executed: return;
0
494 }-
495-
496 if (!m_colorTable
!m_colorTableDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-6
497 m_colorTable.reset(new ImageData);
executed 6 times by 2 tests: m_colorTable.reset(new ImageData);
Executed by:
  • tst_examples
  • tst_qquickimageparticle
6
498 if (table == m_colorTable->source
table == m_colorTable->sourceDescription
TRUEnever evaluated
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
)
0-6
499 return;
never executed: return;
0
500 m_colorTable->source = table;-
501 colortableChanged();-
502 reset();-
503}
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
6
504-
505void QQuickImageParticle::setSizetable(const QUrl &table)-
506{-
507 if (table.isEmpty()
table.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
){
0-6
508 if (m_sizeTable
m_sizeTableDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
509 m_sizeTable.reset();-
510 sizetableChanged();-
511 }
never executed: end of block
0
512 return;
never executed: return;
0
513 }-
514-
515 if (!m_sizeTable
!m_sizeTableDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-6
516 m_sizeTable.reset(new ImageData);
executed 6 times by 2 tests: m_sizeTable.reset(new ImageData);
Executed by:
  • tst_examples
  • tst_qquickimageparticle
6
517 if (table == m_sizeTable->source
table == m_sizeTable->sourceDescription
TRUEnever evaluated
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
)
0-6
518 return;
never executed: return;
0
519 m_sizeTable->source = table;-
520 sizetableChanged();-
521 reset();-
522}
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
6
523-
524void QQuickImageParticle::setOpacitytable(const QUrl &table)-
525{-
526 if (table.isEmpty()
table.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
){
0-2
527 if (m_opacityTable
m_opacityTableDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
528 m_opacityTable.reset();-
529 opacitytableChanged();-
530 }
never executed: end of block
0
531 return;
never executed: return;
0
532 }-
533-
534 if (!m_opacityTable
!m_opacityTableDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-2
535 m_opacityTable.reset(new ImageData);
executed 2 times by 1 test: m_opacityTable.reset(new ImageData);
Executed by:
  • tst_qquickimageparticle
2
536 if (table == m_opacityTable->source
table == m_opa...yTable->sourceDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
)
0-2
537 return;
never executed: return;
0
538 m_opacityTable->source = table;-
539 opacitytableChanged();-
540 reset();-
541}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
2
542-
543void QQuickImageParticle::setColor(const QColor &color)-
544{-
545 if (color == m_color
color == m_colorDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 112 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
)
4-112
546 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_examples
4
547 m_color = color;-
548 colorChanged();-
549 m_explicitColor = true;-
550 if (perfLevel < Colored
perfLevel < ColoredDescription
TRUEevaluated 112 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-112
551 reset();
executed 112 times by 2 tests: reset();
Executed by:
  • tst_examples
  • tst_qquickimageparticle
112
552}
executed 112 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
112
553-
554void QQuickImageParticle::setColorVariation(qreal var)-
555{-
556 if (var == m_color_variation
var == m_color_variationDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 72 times by 1 test
Evaluated by:
  • tst_examples
)
8-72
557 return;
executed 8 times by 1 test: return;
Executed by:
  • tst_examples
8
558 m_color_variation = var;-
559 colorVariationChanged();-
560 m_explicitColor = true;-
561 if (perfLevel < Colored
perfLevel < ColoredDescription
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
)
0-72
562 reset();
executed 72 times by 1 test: reset();
Executed by:
  • tst_examples
72
563}
executed 72 times by 1 test: end of block
Executed by:
  • tst_examples
72
564-
565void QQuickImageParticle::setAlphaVariation(qreal arg)-
566{-
567 if (m_alphaVariation != arg
m_alphaVariation != argDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
) {
0-6
568 m_alphaVariation = arg;-
569 alphaVariationChanged(arg);-
570 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
6
571 m_explicitColor = true;-
572 if (perfLevel < Colored
perfLevel < ColoredDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-6
573 reset();
executed 6 times by 2 tests: reset();
Executed by:
  • tst_examples
  • tst_qquickimageparticle
6
574}
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
6
575-
576void QQuickImageParticle::setAlpha(qreal arg)-
577{-
578 if (m_alpha != arg
m_alpha != argDescription
TRUEevaluated 64 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
) {
2-64
579 m_alpha = arg;-
580 alphaChanged(arg);-
581 }
executed 64 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
64
582 m_explicitColor = true;-
583 if (perfLevel < Colored
perfLevel < ColoredDescription
TRUEevaluated 66 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-66
584 reset();
executed 66 times by 2 tests: reset();
Executed by:
  • tst_examples
  • tst_qquickimageparticle
66
585}
executed 66 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
66
586-
587void QQuickImageParticle::setRedVariation(qreal arg)-
588{-
589 if (m_redVariation != arg
m_redVariation != argDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
) {
0-6
590 m_redVariation = arg;-
591 redVariationChanged(arg);-
592 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
6
593 m_explicitColor = true;-
594 if (perfLevel < Colored
perfLevel < ColoredDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-6
595 reset();
executed 6 times by 2 tests: reset();
Executed by:
  • tst_examples
  • tst_qquickimageparticle
6
596}
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
6
597-
598void QQuickImageParticle::setGreenVariation(qreal arg)-
599{-
600 if (m_greenVariation != arg
m_greenVariation != argDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
) {
0-4
601 m_greenVariation = arg;-
602 greenVariationChanged(arg);-
603 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
4
604 m_explicitColor = true;-
605 if (perfLevel < Colored
perfLevel < ColoredDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-4
606 reset();
executed 4 times by 2 tests: reset();
Executed by:
  • tst_examples
  • tst_qquickimageparticle
4
607}
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
4
608-
609void QQuickImageParticle::setBlueVariation(qreal arg)-
610{-
611 if (m_blueVariation != arg
m_blueVariation != argDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
) {
0-6
612 m_blueVariation = arg;-
613 blueVariationChanged(arg);-
614 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
6
615 m_explicitColor = true;-
616 if (perfLevel < Colored
perfLevel < ColoredDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-6
617 reset();
executed 6 times by 2 tests: reset();
Executed by:
  • tst_examples
  • tst_qquickimageparticle
6
618}
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
6
619-
620void QQuickImageParticle::setRotation(qreal arg)-
621{-
622 if (m_rotation != arg
m_rotation != argDescription
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
FALSEnever evaluated
) {
0-12
623 m_rotation = arg;-
624 rotationChanged(arg);-
625 }
executed 12 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
12
626 m_explicitRotation = true;-
627 if (perfLevel < Deformable
perfLevel < DeformableDescription
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-12
628 reset();
executed 12 times by 3 tests: reset();
Executed by:
  • tst_examples
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
12
629}
executed 12 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
12
630-
631void QQuickImageParticle::setRotationVariation(qreal arg)-
632{-
633 if (m_rotationVariation != arg
m_rotationVariation != argDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
) {
0-2
634 m_rotationVariation = arg;-
635 rotationVariationChanged(arg);-
636 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_examples
2
637 m_explicitRotation = true;-
638 if (perfLevel < Deformable
perfLevel < DeformableDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
)
0-2
639 reset();
executed 2 times by 1 test: reset();
Executed by:
  • tst_examples
2
640}
executed 2 times by 1 test: end of block
Executed by:
  • tst_examples
2
641-
642void QQuickImageParticle::setRotationVelocity(qreal arg)-
643{-
644 if (m_rotationVelocity != arg
m_rotationVelocity != argDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
) {
0-4
645 m_rotationVelocity = arg;-
646 rotationVelocityChanged(arg);-
647 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
4
648 m_explicitRotation = true;-
649 if (perfLevel < Deformable
perfLevel < DeformableDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-4
650 reset();
executed 4 times by 2 tests: reset();
Executed by:
  • tst_examples
  • tst_qquickimageparticle
4
651}
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
4
652-
653void QQuickImageParticle::setRotationVelocityVariation(qreal arg)-
654{-
655 if (m_rotationVelocityVariation != arg
m_rotationVelo...riation != argDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
) {
0-2
656 m_rotationVelocityVariation = arg;-
657 rotationVelocityVariationChanged(arg);-
658 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_examples
2
659 m_explicitRotation = true;-
660 if (perfLevel < Deformable
perfLevel < DeformableDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
)
0-2
661 reset();
executed 2 times by 1 test: reset();
Executed by:
  • tst_examples
2
662}
executed 2 times by 1 test: end of block
Executed by:
  • tst_examples
2
663-
664void QQuickImageParticle::setAutoRotation(bool arg)-
665{-
666 if (m_autoRotation != arg
m_autoRotation != argDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
) {
0-8
667 m_autoRotation = arg;-
668 autoRotationChanged(arg);-
669 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
8
670 m_explicitRotation = true;-
671 if (perfLevel < Deformable
perfLevel < DeformableDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-8
672 reset();
executed 8 times by 2 tests: reset();
Executed by:
  • tst_examples
  • tst_qquickimageparticle
8
673}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
8
674-
675void QQuickImageParticle::setXVector(QQuickDirection* arg)-
676{-
677 if (m_xVector != arg
m_xVector != argDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEnever evaluated
) {
0-2
678 m_xVector = arg;-
679 xVectorChanged(arg);-
680 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
2
681 m_explicitDeformation = true;-
682 if (perfLevel < Deformable
perfLevel < DeformableDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-2
683 reset();
executed 2 times by 1 test: reset();
Executed by:
  • tst_qquickimageparticle
2
684}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
2
685-
686void QQuickImageParticle::setYVector(QQuickDirection* arg)-
687{-
688 if (m_yVector != arg
m_yVector != argDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
) {
0-4
689 m_yVector = arg;-
690 yVectorChanged(arg);-
691 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
4
692 m_explicitDeformation = true;-
693 if (perfLevel < Deformable
perfLevel < DeformableDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-4
694 reset();
executed 4 times by 2 tests: reset();
Executed by:
  • tst_examples
  • tst_qquickimageparticle
4
695}
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
4
696-
697void QQuickImageParticle::setSpritesInterpolate(bool arg)-
698{-
699 if (m_spritesInterpolate != arg
m_spritesInterpolate != argDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
) {
0-2
700 m_spritesInterpolate = arg;-
701 spritesInterpolateChanged(arg);-
702 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_examples
2
703}
executed 2 times by 1 test: end of block
Executed by:
  • tst_examples
2
704-
705void QQuickImageParticle::setBypassOptimizations(bool arg)-
706{-
707 if (m_bypassOptimizations != arg
m_bypassOptimizations != argDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
708 m_bypassOptimizations = arg;-
709 bypassOptimizationsChanged(arg);-
710 }
never executed: end of block
0
711-
712 reset();-
713}
never executed: end of block
0
714-
715void QQuickImageParticle::setEntryEffect(EntryEffect arg)-
716{-
717 if (m_entryEffect != arg
m_entryEffect != argDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
) {
0-12
718 m_entryEffect = arg;-
719 if (m_material
m_materialDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_examples
)
0-12
720 getState<ImageMaterialData>(m_material)->entry = (qreal) m_entryEffect;
never executed: getState<ImageMaterialData>(m_material)->entry = (qreal) m_entryEffect;
0
721 entryEffectChanged(arg);-
722 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_examples
12
723}
executed 12 times by 1 test: end of block
Executed by:
  • tst_examples
12
724-
725void QQuickImageParticle::resetColor()-
726{-
727 m_explicitColor = false;-
728 for (auto groupId : groupIds()) {-
729 for (QQuickParticleData* d : qAsConst(m_system->groupData[groupId]->data)) {-
730 if (d->colorOwner == this
d->colorOwner == thisDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
731 d->colorOwner = nullptr;-
732 }
never executed: end of block
0
733 }
never executed: end of block
0
734 }
never executed: end of block
0
735 m_color = QColor();-
736 m_color_variation = 0.0f;-
737 m_redVariation = 0.0f;-
738 m_blueVariation = 0.0f;-
739 m_greenVariation = 0.0f;-
740 m_alpha = 1.0f;-
741 m_alphaVariation = 0.0f;-
742}
never executed: end of block
0
743-
744void QQuickImageParticle::resetRotation()-
745{-
746 m_explicitRotation = false;-
747 for (auto groupId : groupIds()) {-
748 for (QQuickParticleData* d : qAsConst(m_system->groupData[groupId]->data)) {-
749 if (d->rotationOwner == this
d->rotationOwner == thisDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
750 d->rotationOwner = nullptr;-
751 }
never executed: end of block
0
752 }
never executed: end of block
0
753 }
never executed: end of block
0
754 m_rotation = 0;-
755 m_rotationVariation = 0;-
756 m_rotationVelocity = 0;-
757 m_rotationVelocityVariation = 0;-
758 m_autoRotation = false;-
759}
never executed: end of block
0
760-
761void QQuickImageParticle::resetDeformation()-
762{-
763 m_explicitDeformation = false;-
764 for (auto groupId : groupIds()) {-
765 for (QQuickParticleData* d : qAsConst(m_system->groupData[groupId]->data)) {-
766 if (d->deformationOwner == this
d->deformationOwner == thisDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
767 d->deformationOwner = nullptr;-
768 }
never executed: end of block
0
769 }
never executed: end of block
0
770 }
never executed: end of block
0
771 if (m_xVector
m_xVectorDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
772 delete m_xVector;
never executed: delete m_xVector;
0
773 if (m_yVector
m_yVectorDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
774 delete m_yVector;
never executed: delete m_yVector;
0
775 m_xVector = nullptr;-
776 m_yVector = nullptr;-
777}
never executed: end of block
0
778-
779void QQuickImageParticle::reset()-
780{-
781 QQuickParticlePainter::reset();-
782 m_pleaseReset = true;-
783 update();-
784}
executed 1378 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
1378
785-
786void QQuickImageParticle::createEngine()-
787{-
788 if (m_spriteEngine
m_spriteEngineDescription
TRUEevaluated 32 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickspritegoal
FALSEevaluated 22 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
  • tst_qquickspritegoal
)
22-32
789 delete m_spriteEngine;
executed 32 times by 2 tests: delete m_spriteEngine;
Executed by:
  • tst_examples
  • tst_qquickspritegoal
32
790 if (m_sprites.count()
m_sprites.count()Description
TRUEevaluated 54 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEnever evaluated
) {
0-54
791 m_spriteEngine = new QQuickSpriteEngine(m_sprites, this);-
792 connect(m_spriteEngine, qFlagLocation("2""stateChanged(int)" "\0" __FILE__ ":" "1075"),-
793 this, qFlagLocation("1""spriteAdvance(int)" "\0" __FILE__ ":" "1076"), Qt::DirectConnection);-
794 m_explicitAnimation = true;-
795 }
executed 54 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
  • tst_qquickspritegoal
else {
54
796 m_spriteEngine = nullptr;-
797 m_explicitAnimation = false;-
798 }
never executed: end of block
0
799 reset();-
800}
executed 54 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickimageparticle
  • tst_qquickspritegoal
54
801-
802static QSGGeometry::Attribute SimpleParticle_Attributes[] = {-
803 QSGGeometry::Attribute::create(0, 2, -
804 0x1406-
805 , true),-
806 QSGGeometry::Attribute::create(1, 4, -
807 0x1406-
808 ),-
809 QSGGeometry::Attribute::create(2, 4, -
810 0x1406-
811 )-
812};-
813-
814static QSGGeometry::AttributeSet SimpleParticle_AttributeSet =-
815{-
816 3,-
817 ( 2 + 4 + 4 ) * sizeof(float),-
818 SimpleParticle_Attributes-
819};-
820-
821static QSGGeometry::Attribute ColoredParticle_Attributes[] = {-
822 QSGGeometry::Attribute::create(0, 2, -
823 0x1406-
824 , true),-
825 QSGGeometry::Attribute::create(1, 4, -
826 0x1406-
827 ),-
828 QSGGeometry::Attribute::create(2, 4, -
829 0x1406-
830 ),-
831 QSGGeometry::Attribute::create(3, 4, -
832 0x1401-
833 ),-
834};-
835-
836static QSGGeometry::AttributeSet ColoredParticle_AttributeSet =-
837{-
838 4,-
839 ( 2 + 4 + 4 ) * sizeof(float) + 4 * sizeof(uchar),-
840 ColoredParticle_Attributes-
841};-
842-
843static QSGGeometry::Attribute DeformableParticle_Attributes[] = {-
844 QSGGeometry::Attribute::create(0, 4, -
845 0x1406-
846 ),-
847 QSGGeometry::Attribute::create(1, 4, -
848 0x1406-
849 ),-
850 QSGGeometry::Attribute::create(2, 4, -
851 0x1406-
852 ),-
853 QSGGeometry::Attribute::create(3, 4, -
854 0x1401-
855 ),-
856 QSGGeometry::Attribute::create(4, 4, -
857 0x1406-
858 ),-
859 QSGGeometry::Attribute::create(5, 3, -
860 0x1406-
861 ),-
862};-
863-
864static QSGGeometry::AttributeSet DeformableParticle_AttributeSet =-
865{-
866 6,-
867 (4 + 4 + 4 + 4 + 3) * sizeof(float) + 4 * sizeof(uchar),-
868 DeformableParticle_Attributes-
869};-
870-
871static QSGGeometry::Attribute SpriteParticle_Attributes[] = {-
872 QSGGeometry::Attribute::create(0, 4, -
873 0x1406-
874 ),-
875 QSGGeometry::Attribute::create(1, 4, -
876 0x1406-
877 ),-
878 QSGGeometry::Attribute::create(2, 4, -
879 0x1406-
880 ),-
881 QSGGeometry::Attribute::create(3, 4, -
882 0x1401-
883 ),-
884 QSGGeometry::Attribute::create(4, 4, -
885 0x1406-
886 ),-
887 QSGGeometry::Attribute::create(5, 3, -
888 0x1406-
889 ),-
890 QSGGeometry::Attribute::create(6, 3, -
891 0x1406-
892 ),-
893 QSGGeometry::Attribute::create(7, 4, -
894 0x1406-
895 )-
896};-
897-
898static QSGGeometry::AttributeSet SpriteParticle_AttributeSet =-
899{-
900 8,-
901 (4 + 4 + 4 + 4 + 3 + 3 + 4) * sizeof(float) + 4 * sizeof(uchar),-
902 SpriteParticle_Attributes-
903};-
904-
905void QQuickImageParticle::clearShadows()-
906{-
907 for (auto _container_ = QtPrivate::qMakeForeachContainer(m_shadowData); _container_.control
_container_.controlDescription
TRUEevaluated 303 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEnever evaluated
&& _container_.i != _container_.e
_container_.i != _container_.eDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 301 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
; ++_container_.i, _container_.control ^= 1) for (const QVector<QQuickParticleData*> data = *_container_.i; _container_.control
_container_.controlDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
; _container_.control = 0)
0-303
908 qDeleteAll(data);
executed 2 times by 1 test: qDeleteAll(data);
Executed by:
  • tst_qquickimageparticle
2
909 m_shadowData.clear();-
910}
executed 301 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
301
911-
912-
913QQuickParticleData* QQuickImageParticle::getShadowDatum(QQuickParticleData* datum)-
914{-
915-
916 if (datum->systemIndex == -1
datum->systemIndex == -1Description
TRUEevaluated 75249 times by 3 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 886 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
)
886-75249
917 return
executed 75249 times by 3 tests: return datum;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
datum;
executed 75249 times by 3 tests: return datum;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
75249
918 QQuickParticleGroupData* gd = m_system->groupData[datum->groupId];-
919 if (!m_shadowData.contains(datum->groupId)
!m_shadowData....atum->groupId)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 884 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
) {
2-884
920 QVector<QQuickParticleData*> data;-
921 const int gdSize = gd->size();-
922 data.reserve(gdSize);-
923 for (int i = 0; i < gdSize
i < gdSizeDescription
TRUEevaluated 1000 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
; i++) {
2-1000
924 QQuickParticleData* datum = new QQuickParticleData;-
925 *datum = *(gd->data[i]);-
926 data << datum;-
927 }
executed 1000 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
1000
928 m_shadowData.insert(datum->groupId, data);-
929 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
2
930-
931-
932 return
executed 886 times by 1 test: return m_shadowData[datum->groupId][datum->index];
Executed by:
  • tst_qquickimageparticle
m_shadowData[datum->groupId][datum->index];
executed 886 times by 1 test: return m_shadowData[datum->groupId][datum->index];
Executed by:
  • tst_qquickimageparticle
886
933}-
934-
935bool QQuickImageParticle::loadingSomething()-
936{-
937 return
executed 488 times by 22 tests: return (m_image && m_image->pix.isLoading()) || (m_colorTable && m_colorTable->pix.isLoading()) || (m_sizeTable && m_sizeTable->pix.isLoading()) || (m_opacityTable && m_opacityTable->pix.isLoading()) || (m_spriteEngine && m_spriteEngine->isLoading());
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
(m_image && m_image->pix.isLoading())
executed 488 times by 22 tests: return (m_image && m_image->pix.isLoading()) || (m_colorTable && m_colorTable->pix.isLoading()) || (m_sizeTable && m_sizeTable->pix.isLoading()) || (m_opacityTable && m_opacityTable->pix.isLoading()) || (m_spriteEngine && m_spriteEngine->isLoading());
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
488
938 || (m_colorTable && m_colorTable->pix.isLoading())
executed 488 times by 22 tests: return (m_image && m_image->pix.isLoading()) || (m_colorTable && m_colorTable->pix.isLoading()) || (m_sizeTable && m_sizeTable->pix.isLoading()) || (m_opacityTable && m_opacityTable->pix.isLoading()) || (m_spriteEngine && m_spriteEngine->isLoading());
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
488
939 || (m_sizeTable && m_sizeTable->pix.isLoading())
executed 488 times by 22 tests: return (m_image && m_image->pix.isLoading()) || (m_colorTable && m_colorTable->pix.isLoading()) || (m_sizeTable && m_sizeTable->pix.isLoading()) || (m_opacityTable && m_opacityTable->pix.isLoading()) || (m_spriteEngine && m_spriteEngine->isLoading());
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
488
940 || (m_opacityTable && m_opacityTable->pix.isLoading())
executed 488 times by 22 tests: return (m_image && m_image->pix.isLoading()) || (m_colorTable && m_colorTable->pix.isLoading()) || (m_sizeTable && m_sizeTable->pix.isLoading()) || (m_opacityTable && m_opacityTable->pix.isLoading()) || (m_spriteEngine && m_spriteEngine->isLoading());
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
488
941 || (m_spriteEngine && m_spriteEngine->isLoading());
executed 488 times by 22 tests: return (m_image && m_image->pix.isLoading()) || (m_colorTable && m_colorTable->pix.isLoading()) || (m_sizeTable && m_sizeTable->pix.isLoading()) || (m_opacityTable && m_opacityTable->pix.isLoading()) || (m_spriteEngine && m_spriteEngine->isLoading());
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
488
942}-
943-
944void QQuickImageParticle::mainThreadFetchImageData()-
945{-
946 if (m_image
m_imageDescription
TRUEevaluated 199 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
) {
4-199
947 m_image->pix.clear(this);-
948 m_image->pix.load(qmlEngine(this), m_image->source);-
949 }
executed 199 times by 20 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
199
950-
951 if (m_spriteEngine
m_spriteEngineDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 199 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
4-199
952 m_spriteEngine->startAssemblingImage();
executed 4 times by 2 tests: m_spriteEngine->startAssemblingImage();
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4
953-
954 if (m_colorTable
m_colorTableDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 201 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
2-201
955 m_colorTable->pix.load(qmlEngine(this), m_colorTable->source);
executed 2 times by 1 test: m_colorTable->pix.load(qmlEngine(this), m_colorTable->source);
Executed by:
  • tst_qquickimageparticle
2
956-
957 if (m_sizeTable
m_sizeTableDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 201 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
2-201
958 m_sizeTable->pix.load(qmlEngine(this), m_sizeTable->source);
executed 2 times by 1 test: m_sizeTable->pix.load(qmlEngine(this), m_sizeTable->source);
Executed by:
  • tst_qquickimageparticle
2
959-
960 if (m_opacityTable
m_opacityTableDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 201 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
2-201
961 m_opacityTable->pix.load(qmlEngine(this), m_opacityTable->source);
executed 2 times by 1 test: m_opacityTable->pix.load(qmlEngine(this), m_opacityTable->source);
Executed by:
  • tst_qquickimageparticle
2
962-
963 m_startedImageLoading = 2;-
964}
executed 203 times by 21 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
203
965-
966void QQuickImageParticle::buildParticleNodes(QSGNode** passThrough)-
967{-
968-
969-
970 if (*
*passThroughDescription
TRUEnever evaluated
FALSEevaluated 488 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
passThrough
*passThroughDescription
TRUEnever evaluated
FALSEevaluated 488 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
|| loadingSomething()
loadingSomething()Description
TRUEnever evaluated
FALSEevaluated 488 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
0-488
971 return;
never executed: return;
0
972-
973 if (m_startedImageLoading == 0
m_startedImageLoading == 0Description
TRUEevaluated 321 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 167 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
) {
167-321
974 m_startedImageLoading = 1;-
975-
976 QQuickImageParticle::staticMetaObject.invokeMethod(this, "mainThreadFetchImageData", Qt::QueuedConnection);-
977 }
executed 321 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
else if (m_startedImageLoading == 2
m_startedImageLoading == 2Description
TRUEevaluated 103 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 64 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
) {
64-321
978 finishBuildParticleNodes(passThrough);-
979 }
executed 103 times by 21 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
103
980-
981-
982}
executed 488 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
488
983-
984void QQuickImageParticle::finishBuildParticleNodes(QSGNode** node)-
985{-
986 if (!QOpenGLContext::currentContext()
!QOpenGLContex...rrentContext()Description
TRUEnever evaluated
FALSEevaluated 103 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
0-103
987 return;
never executed: return;
0
988-
989 if (m_count * 4 > 0xffff
m_count * 4 > 0xffffDescription
TRUEnever evaluated
FALSEevaluated 103 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
) {
0-103
990-
991 qmlInfo(this) << "ImageParticle: Too many particles - maximum 16383 per ImageParticle";-
992 return;
never executed: return;
0
993 }-
994-
995 if (count() <= 0
count() <= 0Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickgroupgoal
  • tst_qquickparticlegroup
FALSEevaluated 99 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
4-99
996 return;
executed 4 times by 2 tests: return;
Executed by:
  • tst_qquickgroupgoal
  • tst_qquickparticlegroup
4
997-
998 m_debugMode = m_system->m_debugMode;-
999-
1000 if (m_sprites.count()
m_sprites.count()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 95 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
|| m_bypassOptimizations
m_bypassOptimizationsDescription
TRUEnever evaluated
FALSEevaluated 95 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
) {
0-95
1001 perfLevel = Sprites;-
1002 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
else if (m_colorTable || m_sizeTable || m_opacityTable) {
4
1003 perfLevel = Tabled;-
1004 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
else if (m_autoRotation
m_autoRotationDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 91 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
|| m_rotation || m_rotationVariation
2-91
1005 || m_rotationVelocity || m_rotationVelocityVariation-
1006 || m_xVector
m_xVectorDescription
TRUEnever evaluated
FALSEevaluated 87 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
|| m_yVector
m_yVectorDescription
TRUEnever evaluated
FALSEevaluated 87 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
) {
0-87
1007 perfLevel = Deformable;-
1008 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
else if (m_alphaVariation || m_alpha != 1.0
m_alpha != 1.0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 83 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
|| m_color.isValid()
m_color.isValid()Description
TRUEnever evaluated
FALSEevaluated 83 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
|| m_color_variation
0-83
1009 || m_redVariation || m_blueVariation || m_greenVariation) {-
1010 perfLevel = Colored;-
1011 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
else {
4
1012 perfLevel = Simple;-
1013 }
executed 83 times by 20 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
83
1014-
1015 for (auto groupId : groupIds()) {-
1016-
1017 for (QQuickParticlePainter* p : qAsConst(m_system->groupData[groupId]->painters)) {-
1018 QQuickImageParticle* other = qobject_cast<QQuickImageParticle*>(p);-
1019 if (other
otherDescription
TRUEevaluated 111 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEnever evaluated
){
0-111
1020 if (other->perfLevel > perfLevel
other->perfLevel > perfLevelDescription
TRUEnever evaluated
FALSEevaluated 111 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
) {
0-111
1021 if (other->perfLevel >= Tabled
other->perfLevel >= TabledDescription
TRUEnever evaluated
FALSEnever evaluated
){
0
1022 if (perfLevel < Deformable
perfLevel < DeformableDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1023 perfLevel = Deformable;
never executed: perfLevel = Deformable;
0
1024 }
never executed: end of block
else {
0
1025 perfLevel = other->perfLevel;-
1026 }
never executed: end of block
0
1027 } else if (other->perfLevel < perfLevel
other->perfLevel < perfLevelDescription
TRUEnever evaluated
FALSEevaluated 111 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
) {
0-111
1028 other->reset();-
1029 }
never executed: end of block
0
1030 }
executed 111 times by 21 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
111
1031 }
executed 111 times by 21 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
111
1032 }
executed 111 times by 21 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
111
1033 const GLubyte *glVendor = QOpenGLContext::currentContext()->functions()->glGetString(-
1034 0x1F00-
1035 );-
1036 if (perfLevel < Deformable
perfLevel < DeformableDescription
TRUEevaluated 87 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
&& glVendor
glVendorDescription
TRUEevaluated 87 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEnever evaluated
&& strstr((const char *) glVendor, "nouveau")
strstr((const ...or, "nouveau")Description
TRUEnever evaluated
FALSEevaluated 87 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
0-87
1037 perfLevel = Deformable;
never executed: perfLevel = Deformable;
0
1038-
1039-
1040 if (perfLevel >= Colored
perfLevel >= ColoredDescription
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 83 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
&& !m_color.isValid()
!m_color.isValid()Description
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
)
4-83
1041 m_color = QColor(Qt::white);
executed 12 times by 3 tests: m_color = QColor(Qt::white);
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
12
1042-
1043 clearShadows();-
1044 if (m_material
m_materialDescription
TRUEnever evaluated
FALSEevaluated 99 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
0-99
1045 m_material = nullptr;
never executed: m_material = nullptr;
0
1046-
1047-
1048 QImage colortable;-
1049 QImage sizetable;-
1050 QImage opacitytable;-
1051 QImage image;-
1052 bool imageLoaded = false;-
1053 switch (perfLevel) {-
1054 case
executed 4 times by 2 tests: case Sprites:
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
Sprites:
executed 4 times by 2 tests: case Sprites:
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4
1055 if (!m_spriteEngine
!m_spriteEngineDescription
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
) {
0-4
1056 QMessageLogger(__FILE__, 1312, __PRETTY_FUNCTION__).warning() << "ImageParticle: No sprite engine...";-
1057-
1058-
1059 }
never executed: end of block
else {
0
1060 image = m_spriteEngine->assembledImage();-
1061 if (image.isNull()
image.isNull()Description
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
)
0-4
1062 return;
never executed: return;
0
1063 imageLoaded = true;-
1064 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4
1065 m_material = SpriteMaterial::createMaterial();-
1066 if (imageLoaded
imageLoadedDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEnever evaluated
)
0-4
1067 getState<ImageMaterialData>(m_material)->texture = QSGPlainTexture::fromImage(image);
executed 4 times by 2 tests: getState<ImageMaterialData>(m_material)->texture = QSGPlainTexture::fromImage(image);
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4
1068 getState<ImageMaterialData>(m_material)->animSheetSize = QSizeF(image.size() / image.devicePixelRatioF());-
1069 if (m_spriteEngine
m_spriteEngineDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEnever evaluated
)
0-4
1070 m_spriteEngine->setCount(m_count);
executed 4 times by 2 tests: m_spriteEngine->setCount(m_count);
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4
1071 (void)0;-
1072 case
executed 2 times by 1 test: case Tabled:
Executed by:
  • tst_qquickimageparticle
Tabled:
executed 2 times by 1 test: case Tabled:
Executed by:
  • tst_qquickimageparticle
code before this statement executed 4 times by 2 tests: case Tabled:
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
2-4
1073 if (!m_material
!m_materialDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
)
2-4
1074 m_material = TabledMaterial::createMaterial();
executed 2 times by 1 test: m_material = TabledMaterial::createMaterial();
Executed by:
  • tst_qquickimageparticle
2
1075-
1076 if (m_colorTable
m_colorTableDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
) {
2-4
1077 if (m_colorTable->pix.isReady()
m_colorTable->pix.isReady()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-2
1078 colortable = m_colorTable->pix.image();
executed 2 times by 1 test: colortable = m_colorTable->pix.image();
Executed by:
  • tst_qquickimageparticle
2
1079 else-
1080 qmlWarning(this) << "Error loading color table: " << m_colorTable->pix.error();
never executed: qmlWarning(this) << "Error loading color table: " << m_colorTable->pix.error();
0
1081 }-
1082-
1083 if (m_sizeTable
m_sizeTableDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
) {
2-4
1084 if (m_sizeTable->pix.isReady()
m_sizeTable->pix.isReady()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-2
1085 sizetable = m_sizeTable->pix.image();
executed 2 times by 1 test: sizetable = m_sizeTable->pix.image();
Executed by:
  • tst_qquickimageparticle
2
1086 else-
1087 qmlWarning(this) << "Error loading size table: " << m_sizeTable->pix.error();
never executed: qmlWarning(this) << "Error loading size table: " << m_sizeTable->pix.error();
0
1088 }-
1089-
1090 if (m_opacityTable
m_opacityTableDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
) {
2-4
1091 if (m_opacityTable->pix.isReady()
m_opacityTable->pix.isReady()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-2
1092 opacitytable = m_opacityTable->pix.image();
executed 2 times by 1 test: opacitytable = m_opacityTable->pix.image();
Executed by:
  • tst_qquickimageparticle
2
1093 else-
1094 qmlWarning(this) << "Error loading opacity table: " << m_opacityTable->pix.error();
never executed: qmlWarning(this) << "Error loading opacity table: " << m_opacityTable->pix.error();
0
1095 }-
1096-
1097 if (colortable.isNull()
colortable.isNull()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
){
2-4
1098 colortable = QImage(1,1,QImage::Format_ARGB32_Premultiplied);-
1099 colortable.fill(Qt::white);-
1100 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4
1101 getState<ImageMaterialData>(m_material)->colorTable = QSGPlainTexture::fromImage(colortable);-
1102 fillUniformArrayFromImage(getState<ImageMaterialData>(m_material)->sizeTable, sizetable, 64);-
1103 fillUniformArrayFromImage(getState<ImageMaterialData>(m_material)->opacityTable, opacitytable, 64);-
1104 (void)0;-
1105 case
executed 6 times by 2 tests: case Deformable:
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
Deformable:
executed 6 times by 2 tests: case Deformable:
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
code before this statement executed 6 times by 2 tests: case Deformable:
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
6
1106 if (!m_material
!m_materialDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
)
6
1107 m_material = DeformableMaterial::createMaterial();
executed 6 times by 2 tests: m_material = DeformableMaterial::createMaterial();
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
6
1108 (void)0;-
1109 case
executed 4 times by 1 test: case Colored:
Executed by:
  • tst_qquickimageparticle
Colored:
executed 4 times by 1 test: case Colored:
Executed by:
  • tst_qquickimageparticle
code before this statement executed 12 times by 3 tests: case Colored:
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4-12
1110 if (!m_material
!m_materialDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
)
4-12
1111 m_material = ColoredMaterial::createMaterial();
executed 4 times by 1 test: m_material = ColoredMaterial::createMaterial();
Executed by:
  • tst_qquickimageparticle
4
1112 (void)0;-
1113 default
executed 83 times by 20 tests: default:
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
:
executed 83 times by 20 tests: default:
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
code before this statement executed 16 times by 3 tests: default:
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
16-83
1114 if (!m_material
!m_materialDescription
TRUEevaluated 83 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 16 times by 3 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
)
16-83
1115 m_material = SimpleMaterial::createMaterial();
executed 83 times by 20 tests: m_material = SimpleMaterial::createMaterial();
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
83
1116 if (!imageLoaded
!imageLoadedDescription
TRUEevaluated 95 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
) {
4-95
1117 if (!m_image
!m_imageDescription
TRUEnever evaluated
FALSEevaluated 95 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
|| !m_image->pix.isReady()
!m_image->pix.isReady()Description
TRUEnever evaluated
FALSEevaluated 95 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
) {
0-95
1118 if (m_image
m_imageDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1119 qmlWarning(this) << m_image->pix.error();
never executed: qmlWarning(this) << m_image->pix.error();
0
1120 delete m_material;-
1121 return;
never executed: return;
0
1122 }-
1123-
1124-
1125 getState<ImageMaterialData>(m_material)->texture = QSGPlainTexture::fromImage(m_image->pix.image());-
1126 }
executed 95 times by 20 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
95
1127 getState<ImageMaterialData>(m_material)->texture->setFiltering(QSGTexture::Linear);-
1128 getState<ImageMaterialData>(m_material)->entry = (qreal) m_entryEffect;-
1129 m_material->setFlag(QSGMaterial::Blending | QSGMaterial::RequiresFullMatrix);-
1130 }
executed 99 times by 21 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
99
1131-
1132 m_nodes.clear();-
1133 for (auto groupId : groupIds()) {-
1134 int count = m_system->groupData[groupId]->size();-
1135 QSGGeometryNode* node = new QSGGeometryNode();-
1136 node->setMaterial(m_material);-
1137 node->markDirty(QSGNode::DirtyMaterial);-
1138-
1139 m_nodes.insert(groupId, node);-
1140 m_idxStarts.insert(groupId, m_lastIdxStart);-
1141 m_startsIdx.append(qMakePair<int,int>(m_lastIdxStart, groupId));-
1142 m_lastIdxStart += count;-
1143-
1144-
1145 int vCount = count * 4;-
1146 int iCount = count * 6;-
1147-
1148 QSGGeometry *g;-
1149 if (perfLevel == Sprites
perfLevel == SpritesDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 107 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
4-107
1150 g = new QSGGeometry(SpriteParticle_AttributeSet, vCount, iCount);
executed 4 times by 2 tests: g = new QSGGeometry(SpriteParticle_AttributeSet, vCount, iCount);
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4
1151 else if (perfLevel == Tabled
perfLevel == TabledDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 105 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
2-105
1152 g = new QSGGeometry(DeformableParticle_AttributeSet, vCount, iCount);
executed 2 times by 1 test: g = new QSGGeometry(DeformableParticle_AttributeSet, vCount, iCount);
Executed by:
  • tst_qquickimageparticle
2
1153 else if (perfLevel == Deformable
perfLevel == DeformableDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
FALSEevaluated 99 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
6-99
1154 g = new QSGGeometry(DeformableParticle_AttributeSet, vCount, iCount);
executed 6 times by 2 tests: g = new QSGGeometry(DeformableParticle_AttributeSet, vCount, iCount);
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
6
1155 else if (perfLevel == Colored
perfLevel == ColoredDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 95 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
4-95
1156 g = new QSGGeometry(ColoredParticle_AttributeSet, count, 0);
executed 4 times by 1 test: g = new QSGGeometry(ColoredParticle_AttributeSet, count, 0);
Executed by:
  • tst_qquickimageparticle
4
1157 else-
1158 g = new QSGGeometry(SimpleParticle_AttributeSet, count, 0);
executed 95 times by 20 tests: g = new QSGGeometry(SimpleParticle_AttributeSet, count, 0);
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
95
1159-
1160 node->setFlag(QSGNode::OwnsGeometry);-
1161 node->setGeometry(g);-
1162 if (perfLevel <= Colored
perfLevel <= ColoredDescription
TRUEevaluated 99 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
){
12-99
1163 g->setDrawingMode(-
1164 0x0000-
1165 );-
1166 if (m_debugMode
m_debugModeDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 93 times by 19 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
){
6-93
1167 GLfloat pointSizeRange[2];-
1168 QOpenGLContext::currentContext()->functions()->glGetFloatv(-
1169 0x846D-
1170 , pointSizeRange);-
1171 QMessageLogger(__FILE__, 1423, __PRETTY_FUNCTION__).debug() << "Using point sprites, GL_ALIASED_POINT_SIZE_RANGE " <<pointSizeRange[0] << ":" << pointSizeRange[1];-
1172 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
6
1173 }
executed 99 times by 20 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
else
99
1174 g->setDrawingMode(
executed 12 times by 3 tests: g->setDrawingMode( 0x0004 );
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
12
1175 0x0004
executed 12 times by 3 tests: g->setDrawingMode( 0x0004 );
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
12
1176 );
executed 12 times by 3 tests: g->setDrawingMode( 0x0004 );
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
12
1177-
1178 for (int p=0; p < count
p < countDescription
TRUEevaluated 48570 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 111 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
; ++p)
111-48570
1179 commit(groupId, p);
executed 48570 times by 21 tests: commit(groupId, p);
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
48570
1180-
1181 if (perfLevel == Sprites
perfLevel == SpritesDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 107 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
4-107
1182 initTexCoords<SpriteVertex>((SpriteVertex*)g->vertexData(), vCount);
executed 4 times by 2 tests: initTexCoords<SpriteVertex>((SpriteVertex*)g->vertexData(), vCount);
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4
1183 else if (perfLevel == Tabled
perfLevel == TabledDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 105 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
2-105
1184 initTexCoords<DeformableVertex>((DeformableVertex*)g->vertexData(), vCount);
executed 2 times by 1 test: initTexCoords<DeformableVertex>((DeformableVertex*)g->vertexData(), vCount);
Executed by:
  • tst_qquickimageparticle
2
1185 else if (perfLevel == Deformable
perfLevel == DeformableDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
FALSEevaluated 99 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
6-99
1186 initTexCoords<DeformableVertex>((DeformableVertex*)g->vertexData(), vCount);
executed 6 times by 2 tests: initTexCoords<DeformableVertex>((DeformableVertex*)g->vertexData(), vCount);
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
6
1187-
1188 if (perfLevel > Colored
perfLevel > ColoredDescription
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 99 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
){
12-99
1189 quint16 *indices = g->indexDataAsUShort();-
1190 for (int i=0; i < count
i < countDescription
TRUEevaluated 6000 times by 3 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
; ++i) {
12-6000
1191 int o = i * 4;-
1192 indices[0] = o;-
1193 indices[1] = o + 1;-
1194 indices[2] = o + 2;-
1195 indices[3] = o + 1;-
1196 indices[4] = o + 3;-
1197 indices[5] = o + 2;-
1198 indices += 6;-
1199 }
executed 6000 times by 3 tests: end of block
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
6000
1200 }
executed 12 times by 3 tests: end of block
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
12
1201 }
executed 111 times by 21 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
111
1202-
1203 if (perfLevel == Sprites
perfLevel == SpritesDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 95 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
4-95
1204 spritesUpdate();
executed 4 times by 2 tests: spritesUpdate();
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4
1205-
1206 for (auto _container_ = QtPrivate::qMakeForeachContainer(m_nodes); _container_.control
_container_.controlDescription
TRUEevaluated 210 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEnever evaluated
&& _container_.i != _container_.e
_container_.i != _container_.eDescription
TRUEevaluated 111 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 99 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
; ++_container_.i, _container_.control ^= 1) for (QSGGeometryNode* node = *_container_.i; _container_.control
_container_.controlDescription
TRUEevaluated 111 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 111 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
; _container_.control = 0){
0-210
1207 if (node == *(m_nodes.begin())
node == *(m_nodes.begin())Description
TRUEevaluated 99 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 12 times by 5 tests
Evaluated by:
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquicklineextruder
  • tst_qquickrectangleextruder
  • tst_qquicktrailemitter
)
12-99
1208 node->setFlag(QSGGeometryNode::OwnsMaterial);
executed 99 times by 21 tests: node->setFlag(QSGGeometryNode::OwnsMaterial);
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
99
1209 else-
1210 (*(
executed 12 times by 5 tests: (*(m_nodes.begin()))->appendChildNode(node);
Executed by:
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquicklineextruder
  • tst_qquickrectangleextruder
  • tst_qquicktrailemitter
m_nodes.begin()))->appendChildNode(node);
executed 12 times by 5 tests: (*(m_nodes.begin()))->appendChildNode(node);
Executed by:
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquicklineextruder
  • tst_qquickrectangleextruder
  • tst_qquicktrailemitter
12
1211 }-
1212-
1213 *node = *(m_nodes.begin());-
1214 update();-
1215}
executed 99 times by 21 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
99
1216-
1217static inline bool isOpenGL(QSGRenderContext *rc)-
1218{-
1219 QSGRendererInterface *rif = rc->sceneGraphContext()->rendererInterface(rc);-
1220 return
executed 461 times by 22 tests: return !rif || rif->graphicsApi() == QSGRendererInterface::OpenGL;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
!rif || rif->graphicsApi() == QSGRendererInterface::OpenGL;
executed 461 times by 22 tests: return !rif || rif->graphicsApi() == QSGRendererInterface::OpenGL;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
461
1221}-
1222-
1223QSGNode *QQuickImageParticle::updatePaintNode(QSGNode *node, UpdatePaintNodeData *)-
1224{-
1225 if (!node
!nodeDescription
TRUEevaluated 461 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 3848 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
&& !isOpenGL(QQuickItemPrivate::get(this)->sceneGraphRenderContext())
!isOpenGL(QQui...nderContext())Description
TRUEnever evaluated
FALSEevaluated 461 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
0-3848
1226 return
never executed: return nullptr;
nullptr;
never executed: return nullptr;
0
1227-
1228 if (m_pleaseReset
m_pleaseResetDescription
TRUEevaluated 331 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 3978 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
){
331-3978
1229 if (node
nodeDescription
TRUEevaluated 37 times by 4 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickgroupgoal
  • tst_qquickparticlegroup
  • tst_qquicktrailemitter
FALSEevaluated 294 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
37-294
1230 delete node;
executed 37 times by 4 tests: delete node;
Executed by:
  • tst_qquickage
  • tst_qquickgroupgoal
  • tst_qquickparticlegroup
  • tst_qquicktrailemitter
37
1231 node = nullptr;-
1232-
1233 m_lastLevel = perfLevel;-
1234 m_nodes.clear();-
1235-
1236 m_idxStarts.clear();-
1237 m_startsIdx.clear();-
1238 m_lastIdxStart = 0;-
1239-
1240 m_material = nullptr;-
1241-
1242 m_pleaseReset = false;-
1243 m_startedImageLoading = 0;-
1244 }
executed 331 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
331
1245-
1246 if (m_system
m_systemDescription
TRUEevaluated 4309 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEnever evaluated
&& m_system->isRunning()
m_system->isRunning()Description
TRUEevaluated 4299 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_examples
&& !m_system->isPaused()
!m_system->isPaused()Description
TRUEevaluated 4299 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEnever evaluated
){
0-4309
1247 prepareNextFrame(&node);-
1248 if (node
nodeDescription
TRUEevaluated 3910 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 389 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
) {
389-3910
1249 update();-
1250 for (auto _container_ = QtPrivate::qMakeForeachContainer(m_nodes); _container_.control
_container_.controlDescription
TRUEevaluated 8503 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEnever evaluated
&& _container_.i != _container_.e
_container_.i != _container_.eDescription
TRUEevaluated 4593 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 3910 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
; ++_container_.i, _container_.control ^= 1) for (QSGGeometryNode* n = *_container_.i; _container_.control
_container_.controlDescription
TRUEevaluated 4593 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 4593 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
; _container_.control = 0)
0-8503
1251 n->markDirty(QSGNode::DirtyGeometry);
executed 4593 times by 21 tests: n->markDirty(QSGNode::DirtyGeometry);
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
4593
1252 }
executed 3910 times by 21 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
else if (m_startedImageLoading < 2
m_startedImageLoading < 2Description
TRUEevaluated 385 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickgroupgoal
  • tst_qquickparticlegroup
) {
4-3910
1253 update();-
1254 }
executed 385 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
385
1255 }
executed 4299 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
4299
1256-
1257 return
executed 4309 times by 22 tests: return node;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
node;
executed 4309 times by 22 tests: return node;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
4309
1258}-
1259-
1260void QQuickImageParticle::prepareNextFrame(QSGNode **node)-
1261{-
1262 if (*
*node == nullptrDescription
TRUEevaluated 488 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 3811 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
node == nullptr
*node == nullptrDescription
TRUEevaluated 488 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 3811 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
){
488-3811
1263 buildParticleNodes(node);-
1264 if (m_debugMode
m_debugModeDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 476 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
) {
12-476
1265 QMessageLogger(__FILE__, 1515, __PRETTY_FUNCTION__).debug() << "QQuickImageParticle Feature level: " << perfLevel;-
1266 QMessageLogger(__FILE__, 1516, __PRETTY_FUNCTION__).debug() << "QQuickImageParticle Nodes: ";-
1267 int count = 0;-
1268 for (auto it = m_nodes.keyBegin(), end = m_nodes.keyEnd(); it != end
it != endDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
; ++it) {
12
1269 QMessageLogger(__FILE__, 1519, __PRETTY_FUNCTION__).debug() << "Group " << *it << " (" << m_system->groupData[*it]->size()-
1270 << " particles)";-
1271 count += m_system->groupData[*it]->size();-
1272 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
12
1273 QMessageLogger(__FILE__, 1523, __PRETTY_FUNCTION__).debug() << "Total count: " << count;-
1274 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
12
1275 if (*
*node == nullptrDescription
TRUEevaluated 389 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 99 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
node == nullptr
*node == nullptrDescription
TRUEevaluated 389 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 99 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
99-389
1276 return;
executed 389 times by 22 tests: return;
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
389
1277 }
executed 99 times by 21 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
99
1278 qint64 timeStamp = m_system->systemSync(this);-
1279-
1280 qreal time = timeStamp / 1000.;-
1281-
1282 switch (perfLevel){-
1283 case
executed 267 times by 2 tests: case Sprites:
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
Sprites:
executed 267 times by 2 tests: case Sprites:
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
267
1284-
1285 if (m_spriteEngine
m_spriteEngineDescription
TRUEevaluated 267 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEnever evaluated
)
0-267
1286 m_spriteEngine->updateSprites(timeStamp);
executed 267 times by 2 tests: m_spriteEngine->updateSprites(timeStamp);
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
267
1287 spritesUpdate(time);-
1288 (void)0;-
1289 case
executed 125 times by 1 test: case Tabled:
Executed by:
  • tst_qquickimageparticle
Tabled:
executed 125 times by 1 test: case Tabled:
Executed by:
  • tst_qquickimageparticle
code before this statement executed 267 times by 2 tests: case Tabled:
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
125-267
1290 case
executed 308 times by 2 tests: case Deformable:
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
Deformable:
executed 308 times by 2 tests: case Deformable:
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
308
1291 case
executed 258 times by 1 test: case Colored:
Executed by:
  • tst_qquickimageparticle
Colored:
executed 258 times by 1 test: case Colored:
Executed by:
  • tst_qquickimageparticle
258
1292 case
executed 2952 times by 20 tests: case Simple:
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
Simple:
executed 2952 times by 20 tests: case Simple:
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
2952
1293 default
never executed: default:
:
never executed: default:
0
1294 getState<ImageMaterialData>(m_material)->timestamp = time;-
1295 break;
executed 3910 times by 21 tests: break;
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
3910
1296 }-
1297 for (auto _container_ = QtPrivate::qMakeForeachContainer(m_nodes); _container_.control
_container_.controlDescription
TRUEevaluated 8503 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEnever evaluated
&& _container_.i != _container_.e
_container_.i != _container_.eDescription
TRUEevaluated 4593 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 3910 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
; ++_container_.i, _container_.control ^= 1) for (QSGGeometryNode* node = *_container_.i; _container_.control
_container_.controlDescription
TRUEevaluated 4593 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 4593 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
; _container_.control = 0)
0-8503
1298 node->markDirty(QSGNode::DirtyMaterial);
executed 4593 times by 21 tests: node->markDirty(QSGNode::DirtyMaterial);
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
4593
1299}
executed 3910 times by 21 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
3910
1300-
1301void QQuickImageParticle::spritesUpdate(qreal time)-
1302{-
1303-
1304 for (auto groupId : groupIds()) {-
1305 for (QQuickParticleData* mainDatum : qAsConst(m_system->groupData[groupId]->data)) {-
1306 QSGGeometryNode *node = m_nodes[groupId];-
1307 if (!node
!nodeDescription
TRUEnever evaluated
FALSEevaluated 135500 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
)
0-135500
1308 continue;
never executed: continue;
0
1309-
1310-
1311 QQuickParticleData* datum = (mainDatum->animationOwner == this
mainDatum->ani...nOwner == thisDescription
TRUEevaluated 77381 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 58119 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
? mainDatum : getShadowDatum(mainDatum));
58119-77381
1312 int spriteIdx = 0;-
1313 for (int i = 0; i<m_startsIdx.count()
i<m_startsIdx.count()Description
TRUEevaluated 135500 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEnever evaluated
; i++) {
0-135500
1314 if (m_startsIdx[i].second == groupId
m_startsIdx[i]...ond == groupIdDescription
TRUEevaluated 135500 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEnever evaluated
){
0-135500
1315 spriteIdx = m_startsIdx[i].first + datum->index;-
1316 break;
executed 135500 times by 2 tests: break;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
135500
1317 }-
1318 }
never executed: end of block
0
1319-
1320 double frameAt;-
1321 qreal progress = 0;-
1322-
1323 if (datum->frameDuration > 0
datum->frameDuration > 0Description
TRUEevaluated 135500 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEnever evaluated
) {
0-135500
1324 qreal frame = (time - datum->animT)/(datum->frameDuration / 1000.0);-
1325 frame = qBound((qreal)0.0, frame, (qreal)((qreal)datum->frameCount - 1.0));-
1326 if (m_spritesInterpolate
m_spritesInterpolateDescription
TRUEevaluated 135500 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEnever evaluated
)
0-135500
1327 progress = std::modf(frame,&frameAt);
executed 135500 times by 2 tests: progress = std::modf(frame,&frameAt);
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
135500
1328 else-
1329 std::modf(frame,&frameAt);
never executed: std::modf(frame,&frameAt);
0
1330 } else {-
1331 datum->frameAt++;-
1332 if (datum->frameAt >= datum->frameCount
datum->frameAt...um->frameCountDescription
TRUEnever evaluated
FALSEnever evaluated
){
0
1333 datum->frameAt = 0;-
1334 m_spriteEngine->advance(spriteIdx);-
1335 }
never executed: end of block
0
1336 frameAt = datum->frameAt;-
1337 }
never executed: end of block
0
1338 if (m_spriteEngine->sprite(spriteIdx)->reverse()
m_spriteEngine...dx)->reverse()Description
TRUEnever evaluated
FALSEevaluated 135500 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
)
0-135500
1339 frameAt = (datum->frameCount - 1) - frameAt;
never executed: frameAt = (datum->frameCount - 1) - frameAt;
0
1340 QSizeF sheetSize = getState<ImageMaterialData>(m_material)->animSheetSize;-
1341 qreal y = datum->animY / sheetSize.height();-
1342 qreal w = datum->animWidth / sheetSize.width();-
1343 qreal h = datum->animHeight / sheetSize.height();-
1344 qreal x1 = datum->animX / sheetSize.width();-
1345 x1 += frameAt * w;-
1346 qreal x2 = x1;-
1347 if (frameAt < (datum->frameCount-1)
frameAt < (dat...>frameCount-1)Description
TRUEevaluated 77029 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 58471 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
)
58471-77029
1348 x2 += w;
executed 77029 times by 2 tests: x2 += w;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
77029
1349-
1350 SpriteVertex *spriteVertices = (SpriteVertex *) node->geometry()->vertexData();-
1351 spriteVertices += datum->index*4;-
1352 for (int i=0; i<4
i<4Description
TRUEevaluated 542000 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 135500 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
; i++) {
135500-542000
1353 spriteVertices[i].animX1 = x1;-
1354 spriteVertices[i].animY1 = y;-
1355 spriteVertices[i].animX2 = x2;-
1356 spriteVertices[i].animY2 = y;-
1357 spriteVertices[i].animW = w;-
1358 spriteVertices[i].animH = h;-
1359 spriteVertices[i].animProgress = progress;-
1360 }
executed 542000 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
542000
1361 }
executed 135500 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
135500
1362 }
executed 271 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
271
1363}
executed 271 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
271
1364-
1365void QQuickImageParticle::spriteAdvance(int spriteIdx)-
1366{-
1367 if (!m_startsIdx.count()
!m_startsIdx.count()Description
TRUEnever evaluated
FALSEevaluated 1200 times by 1 test
Evaluated by:
  • tst_qquickspritegoal
)
0-1200
1368 return;
never executed: return;
0
1369-
1370 int gIdx = -1;-
1371 int i;-
1372 for (i = 0; i<m_startsIdx.count()
i<m_startsIdx.count()Description
TRUEevaluated 1200 times by 1 test
Evaluated by:
  • tst_qquickspritegoal
FALSEevaluated 1200 times by 1 test
Evaluated by:
  • tst_qquickspritegoal
; i++) {
1200
1373 if (spriteIdx < m_startsIdx[i].first
spriteIdx < m_...tsIdx[i].firstDescription
TRUEnever evaluated
FALSEevaluated 1200 times by 1 test
Evaluated by:
  • tst_qquickspritegoal
) {
0-1200
1374 gIdx = m_startsIdx[i-1].second;-
1375 break;
never executed: break;
0
1376 }-
1377 }
executed 1200 times by 1 test: end of block
Executed by:
  • tst_qquickspritegoal
1200
1378 if (gIdx == -1
gIdx == -1Description
TRUEevaluated 1200 times by 1 test
Evaluated by:
  • tst_qquickspritegoal
FALSEnever evaluated
)
0-1200
1379 gIdx = m_startsIdx[i-1].second;
executed 1200 times by 1 test: gIdx = m_startsIdx[i-1].second;
Executed by:
  • tst_qquickspritegoal
1200
1380 int pIdx = spriteIdx - m_startsIdx[i-1].first;-
1381-
1382 QQuickParticleData* mainDatum = m_system->groupData[gIdx]->data[pIdx];-
1383 QQuickParticleData* datum = (mainDatum->animationOwner == this
mainDatum->ani...nOwner == thisDescription
TRUEevaluated 1200 times by 1 test
Evaluated by:
  • tst_qquickspritegoal
FALSEnever evaluated
? mainDatum : getShadowDatum(mainDatum));
0-1200
1384-
1385 datum->animIdx = m_spriteEngine->spriteState(spriteIdx);-
1386 datum->animT = m_spriteEngine->spriteStart(spriteIdx)/1000.0;-
1387 datum->frameCount = m_spriteEngine->spriteFrames(spriteIdx);-
1388 datum->frameDuration = m_spriteEngine->spriteDuration(spriteIdx) / datum->frameCount;-
1389 datum->animX = m_spriteEngine->spriteX(spriteIdx);-
1390 datum->animY = m_spriteEngine->spriteY(spriteIdx);-
1391 datum->animWidth = m_spriteEngine->spriteWidth(spriteIdx);-
1392 datum->animHeight = m_spriteEngine->spriteHeight(spriteIdx);-
1393}
executed 1200 times by 1 test: end of block
Executed by:
  • tst_qquickspritegoal
1200
1394-
1395void QQuickImageParticle::reloadColor(const Color4ub &c, QQuickParticleData* d)-
1396{-
1397 d->color = c;-
1398-
1399}
never executed: end of block
0
1400-
1401void QQuickImageParticle::initialize(int gIdx, int pIdx)-
1402{-
1403 Color4ub color;-
1404 QQuickParticleData* datum = m_system->groupData[gIdx]->data[pIdx];-
1405 qreal redVariation = m_color_variation + m_redVariation;-
1406 qreal greenVariation = m_color_variation + m_greenVariation;-
1407 qreal blueVariation = m_color_variation + m_blueVariation;-
1408 int spriteIdx = 0;-
1409 if (m_spriteEngine
m_spriteEngineDescription
TRUEevaluated 2464 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 44412 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
) {
2464-44412
1410 spriteIdx = m_idxStarts[gIdx] + datum->index;-
1411 if (spriteIdx >= m_spriteEngine->count()
spriteIdx >= m...ngine->count()Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 2449 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
)
15-2449
1412 m_spriteEngine->setCount(spriteIdx+1);
executed 15 times by 1 test: m_spriteEngine->setCount(spriteIdx+1);
Executed by:
  • tst_qquickimageparticle
15
1413 }
executed 2464 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
2464
1414-
1415 float rotation;-
1416 float rotationVelocity;-
1417 float autoRotate;-
1418 switch (perfLevel){-
1419 case
executed 2448 times by 2 tests: case Sprites:
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
Sprites:
executed 2448 times by 2 tests: case Sprites:
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
2448
1420-
1421 if (m_explicitAnimation
m_explicitAnimationDescription
TRUEevaluated 2448 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEnever evaluated
&& m_spriteEngine
m_spriteEngineDescription
TRUEevaluated 2448 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEnever evaluated
){
0-2448
1422 if (!datum->animationOwner
!datum->animationOwnerDescription
TRUEevaluated 1996 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 452 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
)
452-1996
1423 datum->animationOwner = this;
executed 1996 times by 2 tests: datum->animationOwner = this;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
1996
1424 QQuickParticleData* writeTo = (datum->animationOwner == this
datum->animationOwner == thisDescription
TRUEevaluated 2448 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEnever evaluated
? datum : getShadowDatum(datum));
0-2448
1425 writeTo->animT = writeTo->t;-
1426-
1427 if (m_spriteEngine
m_spriteEngineDescription
TRUEevaluated 2448 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEnever evaluated
){
0-2448
1428 m_spriteEngine->start(spriteIdx);-
1429 writeTo->frameCount = m_spriteEngine->spriteFrames(spriteIdx);-
1430 writeTo->frameDuration = m_spriteEngine->spriteDuration(spriteIdx) / writeTo->frameCount;-
1431 writeTo->animIdx = 0;-
1432 writeTo->frameAt = -1;-
1433 writeTo->animX = m_spriteEngine->spriteX(spriteIdx);-
1434 writeTo->animY = m_spriteEngine->spriteY(spriteIdx);-
1435 writeTo->animWidth = m_spriteEngine->spriteWidth(spriteIdx);-
1436 writeTo->animHeight = m_spriteEngine->spriteHeight(spriteIdx);-
1437 }
executed 2448 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
2448
1438 }
executed 2448 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
else {
2448
1439 QQuickParticleData* writeTo = getShadowDatum(datum);-
1440 writeTo->animT = datum->t;-
1441 writeTo->frameCount = 1;-
1442 writeTo->frameDuration = 60000000.0;-
1443 writeTo->frameAt = -1;-
1444 writeTo->animIdx = 0;-
1445 writeTo->animT = 0;-
1446 writeTo->animX = writeTo->animY = 0;-
1447 writeTo->animWidth = getState<ImageMaterialData>(m_material)->animSheetSize.width();-
1448 writeTo->animHeight = getState<ImageMaterialData>(m_material)->animSheetSize.height();-
1449 }
never executed: end of block
0
1450 (void)0;-
1451 case
executed 1280 times by 1 test: case Tabled:
Executed by:
  • tst_qquickimageparticle
Tabled:
executed 1280 times by 1 test: case Tabled:
Executed by:
  • tst_qquickimageparticle
code before this statement executed 2448 times by 2 tests: case Tabled:
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
1280-2448
1452 case
executed 3776 times by 2 tests: case Deformable:
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
Deformable:
executed 3776 times by 2 tests: case Deformable:
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
3776
1453-
1454 if (m_explicitDeformation
m_explicitDeformationDescription
TRUEevaluated 1264 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 6240 times by 3 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
){
1264-6240
1455 if (!datum->deformationOwner
!datum->deformationOwnerDescription
TRUEevaluated 998 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 266 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
)
266-998
1456 datum->deformationOwner = this;
executed 998 times by 1 test: datum->deformationOwner = this;
Executed by:
  • tst_qquickimageparticle
998
1457 if (m_xVector
m_xVectorDescription
TRUEevaluated 1264 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEnever evaluated
){
0-1264
1458 const QPointF &ret = m_xVector->sample(QPointF(datum->x, datum->y));-
1459 if (datum->deformationOwner == this
datum->deforma...nOwner == thisDescription
TRUEevaluated 1264 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEnever evaluated
) {
0-1264
1460 datum->xx = ret.x();-
1461 datum->xy = ret.y();-
1462 }
executed 1264 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
else {
1264
1463 getShadowDatum(datum)->xx = ret.x();-
1464 getShadowDatum(datum)->xy = ret.y();-
1465 }
never executed: end of block
0
1466 }-
1467 if (m_yVector
m_yVectorDescription
TRUEevaluated 1264 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEnever evaluated
){
0-1264
1468 const QPointF &ret = m_yVector->sample(QPointF(datum->x, datum->y));-
1469 if (datum->deformationOwner == this
datum->deforma...nOwner == thisDescription
TRUEevaluated 1264 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEnever evaluated
) {
0-1264
1470 datum->yx = ret.x();-
1471 datum->yy = ret.y();-
1472 }
executed 1264 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
else {
1264
1473 getShadowDatum(datum)->yx = ret.x();-
1474 getShadowDatum(datum)->yy = ret.y();-
1475 }
never executed: end of block
0
1476 }-
1477 }
executed 1264 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
1264
1478-
1479 if (m_explicitRotation
m_explicitRotationDescription
TRUEevaluated 3776 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
FALSEevaluated 3728 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
){
3728-3776
1480 if (!datum->rotationOwner
!datum->rotationOwnerDescription
TRUEevaluated 2994 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
FALSEevaluated 782 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
)
782-2994
1481 datum->rotationOwner = this;
executed 2994 times by 2 tests: datum->rotationOwner = this;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
2994
1482 rotation =-
1483 (m_rotation + (m_rotationVariation - 2*QRandomGenerator::global()->bounded(m_rotationVariation)) ) * CONV;-
1484 rotationVelocity =-
1485 (m_rotationVelocity + (m_rotationVelocityVariation - 2*QRandomGenerator::global()->bounded(m_rotationVelocityVariation)) ) * CONV;-
1486 autoRotate = m_autoRotation
m_autoRotationDescription
TRUEevaluated 1264 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 2512 times by 1 test
Evaluated by:
  • tst_qquickcustomaffector
?1.0:0.0;
1264-2512
1487 if (datum->rotationOwner == this
datum->rotationOwner == thisDescription
TRUEevaluated 3776 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
FALSEnever evaluated
) {
0-3776
1488 datum->rotation = rotation;-
1489 datum->rotationVelocity = rotationVelocity;-
1490 datum->autoRotate = autoRotate;-
1491 }
executed 3776 times by 2 tests: end of block
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
else {
3776
1492 getShadowDatum(datum)->rotation = rotation;-
1493 getShadowDatum(datum)->rotationVelocity = rotationVelocity;-
1494 getShadowDatum(datum)->autoRotate = autoRotate;-
1495 }
never executed: end of block
0
1496 }-
1497 (void)0;-
1498 case
executed 2528 times by 1 test: case Colored:
Executed by:
  • tst_qquickimageparticle
Colored:
executed 2528 times by 1 test: case Colored:
Executed by:
  • tst_qquickimageparticle
code before this statement executed 7504 times by 3 tests: case Colored:
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
2528-7504
1499-
1500-
1501 if (m_explicitColor
m_explicitColorDescription
TRUEevaluated 2528 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 7504 times by 3 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
) {
2528-7504
1502 if (!datum->colorOwner
!datum->colorOwnerDescription
TRUEevaluated 1996 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 532 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
)
532-1996
1503 datum->colorOwner = this;
executed 1996 times by 1 test: datum->colorOwner = this;
Executed by:
  • tst_qquickimageparticle
1996
1504 color.r = m_color.red() * (1 - redVariation) + QRandomGenerator::global()->bounded(256) * redVariation;-
1505 color.g = m_color.green() * (1 - greenVariation) + QRandomGenerator::global()->bounded(256) * greenVariation;-
1506 color.b = m_color.blue() * (1 - blueVariation) + QRandomGenerator::global()->bounded(256) * blueVariation;-
1507 color.a = m_alpha * m_color.alpha() * (1 - m_alphaVariation) + QRandomGenerator::global()->bounded(256) * m_alphaVariation;-
1508 if (datum->colorOwner == this
datum->colorOwner == thisDescription
TRUEevaluated 2528 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEnever evaluated
)
0-2528
1509 datum->color = color;
executed 2528 times by 1 test: datum->color = color;
Executed by:
  • tst_qquickimageparticle
2528
1510 else-
1511 getShadowDatum(datum)->color = color;
never executed: getShadowDatum(datum)->color = color;
0
1512 }-
1513 default
executed 46876 times by 21 tests: default:
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
:
executed 46876 times by 21 tests: default:
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
code before this statement executed 10032 times by 3 tests: default:
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
  • tst_qquickspritegoal
10032-46876
1514 break;
executed 46876 times by 21 tests: break;
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
46876
1515 }-
1516}-
1517-
1518void QQuickImageParticle::commit(int gIdx, int pIdx)-
1519{-
1520 if (m_pleaseReset
m_pleaseResetDescription
TRUEnever evaluated
FALSEevaluated 230487 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
0-230487
1521 return;
never executed: return;
0
1522 QSGGeometryNode *node = m_nodes[gIdx];-
1523 if (!node
!nodeDescription
TRUEnever evaluated
FALSEevaluated 230487 times by 21 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickspritegoal
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
)
0-230487
1524 return;
never executed: return;
0
1525 QQuickParticleData* datum = m_system->groupData[gIdx]->data[pIdx];-
1526 SpriteVertex *spriteVertices = (SpriteVertex *) node->geometry()->vertexData();-
1527 DeformableVertex *deformableVertices = (DeformableVertex *) node->geometry()->vertexData();-
1528 ColoredVertex *coloredVertices = (ColoredVertex *) node->geometry()->vertexData();-
1529 SimpleVertex *simpleVertices = (SimpleVertex *) node->geometry()->vertexData();-
1530 switch (perfLevel){-
1531 case
executed 4432 times by 2 tests: case Sprites:
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
Sprites:
executed 4432 times by 2 tests: case Sprites:
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4432
1532 spriteVertices += pIdx*4;-
1533 for (int i=0; i<4
i<4Description
TRUEevaluated 17728 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
FALSEevaluated 4432 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
; i++){
4432-17728
1534 spriteVertices[i].x = datum->x - m_systemOffset.x();-
1535 spriteVertices[i].y = datum->y - m_systemOffset.y();-
1536 spriteVertices[i].t = datum->t;-
1537 spriteVertices[i].lifeSpan = datum->lifeSpan;-
1538 spriteVertices[i].size = datum->size;-
1539 spriteVertices[i].endSize = datum->endSize;-
1540 spriteVertices[i].vx = datum->vx;-
1541 spriteVertices[i].vy = datum->vy;-
1542 spriteVertices[i].ax = datum->ax;-
1543 spriteVertices[i].ay = datum->ay;-
1544 if (m_explicitDeformation
m_explicitDeformationDescription
TRUEnever evaluated
FALSEevaluated 17728 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
&& datum->deformationOwner != this
datum->deforma...nOwner != thisDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-17728
1545 QQuickParticleData* shadow = getShadowDatum(datum);-
1546 spriteVertices[i].xx = shadow->xx;-
1547 spriteVertices[i].xy = shadow->xy;-
1548 spriteVertices[i].yx = shadow->yx;-
1549 spriteVertices[i].yy = shadow->yy;-
1550 }
never executed: end of block
else {
0
1551 spriteVertices[i].xx = datum->xx;-
1552 spriteVertices[i].xy = datum->xy;-
1553 spriteVertices[i].yx = datum->yx;-
1554 spriteVertices[i].yy = datum->yy;-
1555 }
executed 17728 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
17728
1556 if (m_explicitRotation
m_explicitRotationDescription
TRUEnever evaluated
FALSEevaluated 17728 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
&& datum->rotationOwner != this
datum->rotationOwner != thisDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-17728
1557 QQuickParticleData* shadow = getShadowDatum(datum);-
1558 spriteVertices[i].rotation = shadow->rotation;-
1559 spriteVertices[i].rotationVelocity = shadow->rotationVelocity;-
1560 spriteVertices[i].autoRotate = shadow->autoRotate;-
1561 }
never executed: end of block
else {
0
1562 spriteVertices[i].rotation = datum->rotation;-
1563 spriteVertices[i].rotationVelocity = datum->rotationVelocity;-
1564 spriteVertices[i].autoRotate = datum->autoRotate;-
1565 }
executed 17728 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
17728
1566-
1567 if (m_explicitColor
m_explicitColorDescription
TRUEnever evaluated
FALSEevaluated 17728 times by 2 tests
Evaluated by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
&& datum->colorOwner != this
datum->colorOwner != thisDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-17728
1568 QQuickParticleData* shadow = getShadowDatum(datum);-
1569 spriteVertices[i].color.r = shadow->color.r;-
1570 spriteVertices[i].color.g = shadow->color.g;-
1571 spriteVertices[i].color.b = shadow->color.b;-
1572 spriteVertices[i].color.a = shadow->color.a;-
1573 }
never executed: end of block
else {
0
1574 spriteVertices[i].color.r = datum->color.r;-
1575 spriteVertices[i].color.g = datum->color.g;-
1576 spriteVertices[i].color.b = datum->color.b;-
1577 spriteVertices[i].color.a = datum->color.a;-
1578 }
executed 17728 times by 2 tests: end of block
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
17728
1579 }-
1580 break;
executed 4432 times by 2 tests: break;
Executed by:
  • tst_qquickimageparticle
  • tst_qquickspritegoal
4432
1581 case
executed 2264 times by 1 test: case Tabled:
Executed by:
  • tst_qquickimageparticle
Tabled:
executed 2264 times by 1 test: case Tabled:
Executed by:
  • tst_qquickimageparticle
2264
1582 case
executed 6696 times by 2 tests: case Deformable:
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
Deformable:
executed 6696 times by 2 tests: case Deformable:
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
6696
1583 deformableVertices += pIdx*4;-
1584 for (int i=0; i<4
i<4Description
TRUEevaluated 35840 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
FALSEevaluated 8960 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
; i++){
8960-35840
1585 deformableVertices[i].x = datum->x - m_systemOffset.x();-
1586 deformableVertices[i].y = datum->y - m_systemOffset.y();-
1587 deformableVertices[i].t = datum->t;-
1588 deformableVertices[i].lifeSpan = datum->lifeSpan;-
1589 deformableVertices[i].size = datum->size;-
1590 deformableVertices[i].endSize = datum->endSize;-
1591 deformableVertices[i].vx = datum->vx;-
1592 deformableVertices[i].vy = datum->vy;-
1593 deformableVertices[i].ax = datum->ax;-
1594 deformableVertices[i].ay = datum->ay;-
1595 if (m_explicitDeformation
m_explicitDeformationDescription
TRUEevaluated 8992 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 26848 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
&& datum->deformationOwner != this
datum->deforma...nOwner != thisDescription
TRUEevaluated 4000 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 4992 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
) {
4000-26848
1596 QQuickParticleData* shadow = getShadowDatum(datum);-
1597 deformableVertices[i].xx = shadow->xx;-
1598 deformableVertices[i].xy = shadow->xy;-
1599 deformableVertices[i].yx = shadow->yx;-
1600 deformableVertices[i].yy = shadow->yy;-
1601 }
executed 4000 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
else {
4000
1602 deformableVertices[i].xx = datum->xx;-
1603 deformableVertices[i].xy = datum->xy;-
1604 deformableVertices[i].yx = datum->yx;-
1605 deformableVertices[i].yy = datum->yy;-
1606 }
executed 31840 times by 2 tests: end of block
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
31840
1607 if (m_explicitRotation
m_explicitRotationDescription
TRUEevaluated 26784 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
FALSEevaluated 9056 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
&& datum->rotationOwner != this
datum->rotationOwner != thisDescription
TRUEevaluated 12000 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
FALSEevaluated 14784 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
) {
9056-26784
1608 QQuickParticleData* shadow = getShadowDatum(datum);-
1609 deformableVertices[i].rotation = shadow->rotation;-
1610 deformableVertices[i].rotationVelocity = shadow->rotationVelocity;-
1611 deformableVertices[i].autoRotate = shadow->autoRotate;-
1612 }
executed 12000 times by 2 tests: end of block
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
else {
12000
1613 deformableVertices[i].rotation = datum->rotation;-
1614 deformableVertices[i].rotationVelocity = datum->rotationVelocity;-
1615 deformableVertices[i].autoRotate = datum->autoRotate;-
1616 }
executed 23840 times by 2 tests: end of block
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
23840
1617 if (m_explicitColor
m_explicitColorDescription
TRUEnever evaluated
FALSEevaluated 35840 times by 2 tests
Evaluated by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
&& datum->colorOwner != this
datum->colorOwner != thisDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-35840
1618 QQuickParticleData* shadow = getShadowDatum(datum);-
1619 deformableVertices[i].color.r = shadow->color.r;-
1620 deformableVertices[i].color.g = shadow->color.g;-
1621 deformableVertices[i].color.b = shadow->color.b;-
1622 deformableVertices[i].color.a = shadow->color.a;-
1623 }
never executed: end of block
else {
0
1624 deformableVertices[i].color.r = datum->color.r;-
1625 deformableVertices[i].color.g = datum->color.g;-
1626 deformableVertices[i].color.b = datum->color.b;-
1627 deformableVertices[i].color.a = datum->color.a;-
1628 }
executed 35840 times by 2 tests: end of block
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
35840
1629 }-
1630 break;
executed 8960 times by 2 tests: break;
Executed by:
  • tst_qquickcustomaffector
  • tst_qquickimageparticle
8960
1631 case
executed 4512 times by 1 test: case Colored:
Executed by:
  • tst_qquickimageparticle
Colored:
executed 4512 times by 1 test: case Colored:
Executed by:
  • tst_qquickimageparticle
4512
1632 coloredVertices += pIdx*1;-
1633 for (int i=0; i<1
i<1Description
TRUEevaluated 4512 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 4512 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
; i++){
4512
1634 coloredVertices[i].x = datum->x - m_systemOffset.x();-
1635 coloredVertices[i].y = datum->y - m_systemOffset.y();-
1636 coloredVertices[i].t = datum->t;-
1637 coloredVertices[i].lifeSpan = datum->lifeSpan;-
1638 coloredVertices[i].size = datum->size;-
1639 coloredVertices[i].endSize = datum->endSize;-
1640 coloredVertices[i].vx = datum->vx;-
1641 coloredVertices[i].vy = datum->vy;-
1642 coloredVertices[i].ax = datum->ax;-
1643 coloredVertices[i].ay = datum->ay;-
1644 if (m_explicitColor
m_explicitColorDescription
TRUEevaluated 4512 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEnever evaluated
&& datum->colorOwner != this
datum->colorOwner != thisDescription
TRUEevaluated 2016 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
FALSEevaluated 2496 times by 1 test
Evaluated by:
  • tst_qquickimageparticle
) {
0-4512
1645 QQuickParticleData* shadow = getShadowDatum(datum);-
1646 coloredVertices[i].color.r = shadow->color.r;-
1647 coloredVertices[i].color.g = shadow->color.g;-
1648 coloredVertices[i].color.b = shadow->color.b;-
1649 coloredVertices[i].color.a = shadow->color.a;-
1650 }
executed 2016 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
else {
2016
1651 coloredVertices[i].color.r = datum->color.r;-
1652 coloredVertices[i].color.g = datum->color.g;-
1653 coloredVertices[i].color.b = datum->color.b;-
1654 coloredVertices[i].color.a = datum->color.a;-
1655 }
executed 2496 times by 1 test: end of block
Executed by:
  • tst_qquickimageparticle
2496
1656 }-
1657 break;
executed 4512 times by 1 test: break;
Executed by:
  • tst_qquickimageparticle
4512
1658 case
executed 212583 times by 20 tests: case Simple:
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
Simple:
executed 212583 times by 20 tests: case Simple:
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
212583
1659 simpleVertices += pIdx*1;-
1660 for (int i=0; i<1
i<1Description
TRUEevaluated 212583 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
FALSEevaluated 212583 times by 20 tests
Evaluated by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
; i++){
212583
1661 simpleVertices[i].x = datum->x - m_systemOffset.x();-
1662 simpleVertices[i].y = datum->y - m_systemOffset.y();-
1663 simpleVertices[i].t = datum->t;-
1664 simpleVertices[i].lifeSpan = datum->lifeSpan;-
1665 simpleVertices[i].size = datum->size;-
1666 simpleVertices[i].endSize = datum->endSize;-
1667 simpleVertices[i].vx = datum->vx;-
1668 simpleVertices[i].vy = datum->vy;-
1669 simpleVertices[i].ax = datum->ax;-
1670 simpleVertices[i].ay = datum->ay;-
1671 }
executed 212583 times by 20 tests: end of block
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
212583
1672 break;
executed 212583 times by 20 tests: break;
Executed by:
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimageparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquicktargetdirection
  • tst_qquicktrailemitter
  • tst_qquickturbulence
  • tst_qquickwander
212583
1673 default
never executed: default:
:
never executed: default:
0
1674 break;
never executed: break;
0
1675 }-
1676}-
1677-
1678-
1679-
1680-
1681-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0