OpenCoverage

qquickellipseextruder.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickellipseextruder.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3QQuickEllipseExtruder::QQuickEllipseExtruder(QObject *parent) :-
4 QQuickParticleExtruder(parent)-
5 , m_fill(true)-
6{-
7}
executed 16 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickellipseextruder
16
8QPointF QQuickEllipseExtruder::extrude(const QRectF & r)-
9{-
10 qreal theta = QRandomGenerator::global()->bounded(2 * -
11 3.14159265358979323846-
12 );-
13 qreal mag = m_fill
m_fillDescription
TRUEevaluated 1216 times by 1 test
Evaluated by:
  • tst_qquickellipseextruder
FALSEevaluated 1216 times by 1 test
Evaluated by:
  • tst_qquickellipseextruder
? QRandomGenerator::global()->generateDouble() : 1;
1216
14 return
executed 2432 times by 1 test: return QPointF(r.x() + r.width()/2 + mag * (r.width()/2) * qCos(theta), r.y() + r.height()/2 + mag * (r.height()/2) * qSin(theta));
Executed by:
  • tst_qquickellipseextruder
QPointF(r.x() + r.width()/2 + mag * (r.width()/2) * qCos(theta),
executed 2432 times by 1 test: return QPointF(r.x() + r.width()/2 + mag * (r.width()/2) * qCos(theta), r.y() + r.height()/2 + mag * (r.height()/2) * qSin(theta));
Executed by:
  • tst_qquickellipseextruder
2432
15 r.y() + r.height()/2 + mag * (r.height()/2) * qSin(theta));
executed 2432 times by 1 test: return QPointF(r.x() + r.width()/2 + mag * (r.width()/2) * qCos(theta), r.y() + r.height()/2 + mag * (r.height()/2) * qSin(theta));
Executed by:
  • tst_qquickellipseextruder
2432
16}-
17-
18bool QQuickEllipseExtruder::contains(const QRectF &bounds, const QPointF &point)-
19{-
20 if (!bounds.contains(point)
!bounds.contains(point)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
21 return
never executed: return false;
false;
never executed: return false;
0
22-
23 QPointF relPoint(bounds.center() - point);-
24 qreal xa = relPoint.x()/bounds.width();-
25 qreal yb = relPoint.y()/bounds.height();-
26 return
never executed: return (xa * xa + yb * yb) < 0.25;
(xa * xa + yb * yb) < 0.25;
never executed: return (xa * xa + yb * yb) < 0.25;
0
27}-
28-
29-
30-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0