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