OpenCoverage

qcontinuinganimationgroupjob.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/animations/qcontinuinganimationgroupjob.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QContinuingAnimationGroupJob::QContinuingAnimationGroupJob()-
5{-
6}-
7-
8QContinuingAnimationGroupJob::~QContinuingAnimationGroupJob()-
9{-
10}-
11-
12void QContinuingAnimationGroupJob::updateCurrentTime(int )-
13{-
14 ((firstChild()) ? static_cast<void>(0) : qt_assert("firstChild()", __FILE__, 55));-
15-
16 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEevaluated 1106 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
FALSEevaluated 1093 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
; animation = animation->nextSibling()) {
1093-1106
17 if (animation->state() == state()
animation->state() == state()Description
TRUEevaluated 1106 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
FALSEnever evaluated
) {
0-1106
18 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; animation->setCurrentTime(m_currentTime); if (wasDeleted
wasDeletedDescription
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_qquickbehaviors
  • tst_qquicksmoothedanimation
FALSEevaluated 1093 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_qquickbehaviors
  • tst_qquicksmoothedanimation
FALSEnever evaluated
) *
executed 13 times by 2 tests: *prevWasDeleted = true;
Executed by:
  • tst_qquickbehaviors
  • tst_qquicksmoothedanimation
prevWasDeleted = true;
executed 13 times by 2 tests: *prevWasDeleted = true;
Executed by:
  • tst_qquickbehaviors
  • tst_qquicksmoothedanimation
return;
executed 13 times by 2 tests: return;
Executed by:
  • tst_qquickbehaviors
  • tst_qquicksmoothedanimation
} m_wasDeleted = prevWasDeleted; };
0-1093
19 }
executed 1093 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
1093
20 }
executed 1093 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
1093
21}
executed 1093 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
1093
22-
23void QContinuingAnimationGroupJob::updateState(QAbstractAnimationJob::State newState,-
24 QAbstractAnimationJob::State oldState)-
25{-
26 QAnimationGroupJob::updateState(newState, oldState);-
27-
28 switch (newState) {-
29 case
executed 99 times by 5 tests: case Stopped:
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
Stopped:
executed 99 times by 5 tests: case Stopped:
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
99
30 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEevaluated 45 times by 5 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
FALSEevaluated 99 times by 5 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
; animation = animation->nextSibling())
45-99
31 animation->stop();
executed 45 times by 5 tests: animation->stop();
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
45
32 break;
executed 99 times by 5 tests: break;
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
99
33 case
executed 2 times by 1 test: case Paused:
Executed by:
  • tst_qquicksmoothedanimation
Paused:
executed 2 times by 1 test: case Paused:
Executed by:
  • tst_qquicksmoothedanimation
2
34 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicksmoothedanimation
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicksmoothedanimation
; animation = animation->nextSibling())
2
35 if (animation->isRunning()
animation->isRunning()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicksmoothedanimation
FALSEnever evaluated
)
0-2
36 animation->pause();
executed 2 times by 1 test: animation->pause();
Executed by:
  • tst_qquicksmoothedanimation
2
37 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qquicksmoothedanimation
2
38 case
executed 121 times by 6 tests: case Running:
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
Running:
executed 121 times by 6 tests: case Running:
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
121
39 if (!firstChild()
!firstChild()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicksmoothedanimation
FALSEevaluated 119 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
) {
2-119
40 stop();-
41 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquicksmoothedanimation
2
42 }-
43 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEevaluated 119 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
FALSEevaluated 119 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
; animation = animation->nextSibling()) {
119
44 resetUncontrolledAnimationFinishTime(animation);-
45 animation->setDirection(m_direction);-
46 animation->start();-
47 }
executed 119 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
119
48 break;
executed 119 times by 6 tests: break;
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
119
49 }-
50}
executed 220 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
220
51-
52void QContinuingAnimationGroupJob::updateDirection(QAbstractAnimationJob::Direction direction)-
53{-
54 if (!isStopped()
!isStopped()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
55 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEnever evaluated
FALSEnever evaluated
; animation = animation->nextSibling()) {
0
56 animation->setDirection(direction);-
57 }
never executed: end of block
0
58 }
never executed: end of block
0
59}
never executed: end of block
0
60-
61void QContinuingAnimationGroupJob::uncontrolledAnimationFinished(QAbstractAnimationJob *animation)-
62{-
63 ((animation && (animation->duration() == -1)) ? static_cast<void>(0) : qt_assert("animation && (animation->duration() == -1)", __FILE__, 104));-
64 int uncontrolledRunningCount = 0;-
65-
66 for (QAbstractAnimationJob *child = firstChild(); child
childDescription
TRUEevaluated 45 times by 5 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
FALSEevaluated 45 times by 5 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
; child = child->nextSibling()) {
45
67 if (child == animation
child == animationDescription
TRUEevaluated 45 times by 5 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
FALSEnever evaluated
)
0-45
68 setUncontrolledAnimationFinishTime(animation, animation->currentTime());
executed 45 times by 5 tests: setUncontrolledAnimationFinishTime(animation, animation->currentTime());
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
45
69 else if (uncontrolledAnimationFinishTime(child) == -1
uncontrolledAn...e(child) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
70 ++
never executed: ++uncontrolledRunningCount;
uncontrolledRunningCount;
never executed: ++uncontrolledRunningCount;
0
71 }
executed 45 times by 5 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
45
72-
73 if (uncontrolledRunningCount > 0
uncontrolledRunningCount > 0Description
TRUEnever evaluated
FALSEevaluated 45 times by 5 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
)
0-45
74 return;
never executed: return;
0
75-
76 setUncontrolledAnimationFinishTime(this, currentTime());-
77 stop();-
78}
executed 45 times by 5 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
45
79-
80void QContinuingAnimationGroupJob::debugAnimation(QDebug d) const-
81{-
82 d << "ContinuingAnimationGroupJob(" << hex << (const void *) this << dec << ")";-
83-
84 debugChildren(d);-
85}
never executed: end of block
0
86-
87-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0