OpenCoverage

qquickgroupgoal.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickgroupgoal.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3QQuickGroupGoalAffector::QQuickGroupGoalAffector(QQuickItem *parent) :-
4 QQuickParticleAffector(parent), m_jump(false)-
5{-
6 m_ignoresTime = true;-
7}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgroupgoal
8
8-
9void QQuickGroupGoalAffector::setGoalState(const QString &arg)-
10{-
11 if (m_goalState != arg
m_goalState != argDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickgroupgoal
) {
2-6
12 m_goalState = arg;-
13 goalStateChanged(arg);-
14 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_examples
6
15}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgroupgoal
8
16-
17bool QQuickGroupGoalAffector::affectParticle(QQuickParticleData *d, qreal dt)-
18{-
19 (void)dt;;-
20 QQuickStochasticEngine *engine = m_system->stateEngine;-
21 bool notUsingEngine = false;-
22 if (!engine
!engineDescription
TRUEevaluated 1328 times by 1 test
Evaluated by:
  • tst_qquickgroupgoal
FALSEnever evaluated
)
0-1328
23 notUsingEngine = true;
executed 1328 times by 1 test: notUsingEngine = true;
Executed by:
  • tst_qquickgroupgoal
1328
24-
25 int index = d->systemIndex;-
26 int goalIdx = m_system->groupIds[m_goalState];-
27 if (notUsingEngine
notUsingEngineDescription
TRUEevaluated 1328 times by 1 test
Evaluated by:
  • tst_qquickgroupgoal
FALSEnever evaluated
){
0-1328
28-
29 m_system->moveGroups(d, goalIdx);-
30 return
executed 1328 times by 1 test: return true;
Executed by:
  • tst_qquickgroupgoal
true;
executed 1328 times by 1 test: return true;
Executed by:
  • tst_qquickgroupgoal
1328
31 }else if (engine->curState(index) != goalIdx
engine->curSta...ex) != goalIdxDescription
TRUEnever evaluated
FALSEnever evaluated
){
0
32 engine->setGoal(goalIdx, index, m_jump);-
33 return
never executed: return true;
true;
never executed: return true;
0
34 }-
35 return
never executed: return false;
false;
never executed: return false;
0
36}-
37-
38-
39-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0