OpenCoverage

qparallelanimationgroupjob.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/animations/qparallelanimationgroupjob.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QParallelAnimationGroupJob::QParallelAnimationGroupJob()-
5 : QAnimationGroupJob()-
6 , m_previousLoop(0)-
7 , m_previousCurrentTime(0)-
8{-
9}
executed 20972 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
20972
10-
11QParallelAnimationGroupJob::~QParallelAnimationGroupJob()-
12{-
13}-
14-
15int QParallelAnimationGroupJob::duration() const-
16{-
17 int ret = 0;-
18-
19 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEevaluated 733753 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 401890 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
; animation = animation->nextSibling()) {
401890-733753
20 int currentDuration = animation->totalDuration();-
21 if (currentDuration == -1
currentDuration == -1Description
TRUEevaluated 310 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
FALSEevaluated 733443 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
310-733443
22 return
executed 310 times by 5 tests: return -1;
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
-1;
executed 310 times by 5 tests: return -1;
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
310
23 ret = qMax(ret, currentDuration);-
24 }
executed 733443 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
733443
25-
26 return
executed 401890 times by 12 tests: return ret;
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
ret;
executed 401890 times by 12 tests: return ret;
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
401890
27}-
28-
29void QParallelAnimationGroupJob::updateCurrentTime(int )-
30{-
31 if (!firstChild()
!firstChild()Description
TRUEnever evaluated
FALSEevaluated 78694 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
0-78694
32 return;
never executed: return;
0
33-
34 if (m_currentLoop > m_previousLoop
m_currentLoop > m_previousLoopDescription
TRUEevaluated 98 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
FALSEevaluated 78596 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) {
98-78596
35-
36 int dura = duration();-
37 if (dura < 0
dura < 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
FALSEevaluated 96 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
) {
2-96
38-
39-
40-
41 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
; animation = animation->nextSibling()) {
2-6
42 int currentDuration = animation->totalDuration();-
43 if (currentDuration >= 0
currentDuration >= 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
)
2-4
44 dura = qMax(dura, currentDuration);
executed 2 times by 1 test: dura = qMax(dura, currentDuration);
Executed by:
  • tst_qparallelanimationgroupjob
2
45 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qparallelanimationgroupjob
6
46 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qparallelanimationgroupjob
2
47 if (dura > 0
dura > 0Description
TRUEevaluated 98 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
FALSEnever evaluated
) {
0-98
48 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEevaluated 296 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
FALSEevaluated 98 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
; animation = animation->nextSibling()) {
98-296
49 if (!animation->isStopped()
!animation->isStopped()Description
TRUEevaluated 112 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
FALSEevaluated 184 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
)
112-184
50 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; animation->setCurrentTime(dura); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 112 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; }
executed 112 times by 2 tests: end of block
Executed by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
;
0-112
51 }
executed 296 times by 2 tests: end of block
Executed by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
296
52 }
executed 98 times by 2 tests: end of block
Executed by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
98
53 }
executed 98 times by 2 tests: end of block
Executed by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
else if (m_currentLoop < m_previousLoop
m_currentLoop < m_previousLoopDescription
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
FALSEevaluated 78552 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) {
44-78552
54-
55 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEevaluated 132 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
FALSEevaluated 44 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
; animation = animation->nextSibling()) {
44-132
56-
57-
58 applyGroupState(animation);-
59 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; animation->setCurrentTime(0); if (wasDeleted
wasDeletedDescription
TRUEnever evaluated
FALSEevaluated 132 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEnever evaluated
FALSEnever evaluated
) *
never executed: *prevWasDeleted = true;
prevWasDeleted = true;
never executed: *prevWasDeleted = true;
return;
never executed: return;
} m_wasDeleted = prevWasDeleted; };
0-132
60 animation->stop();-
61 }
executed 132 times by 1 test: end of block
Executed by:
  • tst_qparallelanimationgroupjob
132
62 }
executed 44 times by 1 test: end of block
Executed by:
  • tst_qparallelanimationgroupjob
44
63-
64-
65 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEevaluated 114003 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 78686 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
; animation = animation->nextSibling()) {
78686-114003
66 const int dura = animation->totalDuration();-
67-
68 if (m_currentLoop > m_previousLoop
m_currentLoop > m_previousLoopDescription
TRUEevaluated 296 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
FALSEevaluated 113707 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
296-113707
69-
70-
71 || shouldAnimationStart(animation, m_previousCurrentTime > dura )
shouldAnimatio...tTime > dura )Description
TRUEevaluated 84633 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 29074 times by 9 tests
Evaluated by:
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_scenegraph
) {
29074-84633
72 applyGroupState(animation);-
73 }
executed 84929 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
84929
74-
75 if (animation->state() == state()
animation->state() == state()Description
TRUEevaluated 113615 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 388 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
) {
388-113615
76 { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; animation->setCurrentTime(m_currentTime); if (wasDeleted
wasDeletedDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEevaluated 113607 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
) { if (prevWasDeleted
prevWasDeletedDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanimations
FALSEnever evaluated
) *
executed 8 times by 1 test: *prevWasDeleted = true;
Executed by:
  • tst_qquickanimations
prevWasDeleted = true;
executed 8 times by 1 test: *prevWasDeleted = true;
Executed by:
  • tst_qquickanimations
return;
executed 8 times by 1 test: return;
Executed by:
  • tst_qquickanimations
} m_wasDeleted = prevWasDeleted; };
0-113607
77 if (dura > 0
dura > 0Description
TRUEevaluated 113101 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 506 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
&& m_currentTime > dura
m_currentTime > duraDescription
TRUEevaluated 72 times by 3 tests
Evaluated by:
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
FALSEevaluated 113029 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
72-113101
78 animation->stop();
executed 72 times by 3 tests: animation->stop();
Executed by:
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
72
79 }
executed 113607 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
113607
80 }
executed 113995 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
113995
81 m_previousLoop = m_currentLoop;-
82 m_previousCurrentTime = m_currentTime;-
83}
executed 78686 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
78686
84-
85void QParallelAnimationGroupJob::updateState(QAbstractAnimationJob::State newState,-
86 QAbstractAnimationJob::State oldState)-
87{-
88 QAnimationGroupJob::updateState(newState, oldState);-
89-
90 switch (newState) {-
91 case
executed 19338 times by 10 tests: case Stopped:
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
Stopped:
executed 19338 times by 10 tests: case Stopped:
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
19338
92 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEevaluated 29400 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
FALSEevaluated 19338 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
; animation = animation->nextSibling())
19338-29400
93 animation->stop();
executed 29400 times by 10 tests: animation->stop();
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
29400
94 break;
executed 19338 times by 10 tests: break;
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_scenegraph
19338
95 case
executed 48 times by 3 tests: case Paused:
Executed by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
Paused:
executed 48 times by 3 tests: case Paused:
Executed by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
48
96 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEevaluated 212 times by 3 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
FALSEevaluated 48 times by 3 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
; animation = animation->nextSibling())
48-212
97 if (animation->isRunning()
animation->isRunning()Description
TRUEevaluated 210 times by 3 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
)
2-210
98 animation->pause();
executed 210 times by 3 tests: animation->pause();
Executed by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
210
99 break;
executed 48 times by 3 tests: break;
Executed by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
48
100 case
executed 20959 times by 12 tests: case Running:
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
Running:
executed 20959 times by 12 tests: case Running:
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
20959
101 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEevaluated 31532 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 20959 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
; animation = animation->nextSibling()) {
20959-31532
102 if (oldState == Stopped
oldState == StoppedDescription
TRUEevaluated 31324 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 208 times by 3 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimationcontroller
  • tst_qsequentialanimationgroupjob
) {
208-31324
103 animation->stop();-
104 m_previousLoop = m_direction == Forward
m_direction == ForwardDescription
TRUEevaluated 31206 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 118 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
? 0 : m_loopCount - 1;
118-31206
105 }
executed 31324 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
31324
106 resetUncontrolledAnimationFinishTime(animation);-
107 animation->setDirection(m_direction);-
108 if (shouldAnimationStart(animation, oldState == Stopped)
shouldAnimatio...te == Stopped)Description
TRUEevaluated 31424 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 108 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
)
108-31424
109 animation->start();
executed 31424 times by 12 tests: animation->start();
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
31424
110 }
executed 31532 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
31532
111 break;
executed 20959 times by 12 tests: break;
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
20959
112 }-
113}
executed 40345 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
40345
114-
115bool QParallelAnimationGroupJob::shouldAnimationStart(QAbstractAnimationJob *animation, bool startIfAtEnd) const-
116{-
117 const int dura = animation->totalDuration();-
118-
119 if (dura == -1
dura == -1Description
TRUEevaluated 354 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
FALSEevaluated 144885 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
354-144885
120 return
executed 354 times by 5 tests: return uncontrolledAnimationFinishTime(animation) == -1;
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
uncontrolledAnimationFinishTime(animation) == -1;
executed 354 times by 5 tests: return uncontrolledAnimationFinishTime(animation) == -1;
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
354
121-
122 if (startIfAtEnd
startIfAtEndDescription
TRUEevaluated 31638 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 113247 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
)
31638-113247
123 return
executed 31638 times by 11 tests: return m_currentTime <= dura;
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
m_currentTime <= dura;
executed 31638 times by 11 tests: return m_currentTime <= dura;
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
31638
124 if (m_direction == Forward
m_direction == ForwardDescription
TRUEevaluated 113087 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
FALSEevaluated 160 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
)
160-113087
125 return
executed 113087 times by 12 tests: return m_currentTime < dura;
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
m_currentTime < dura;
executed 113087 times by 12 tests: return m_currentTime < dura;
Executed by:
  • tst_examples
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
113087
126 else-
127 return
executed 160 times by 2 tests: return m_currentTime && m_currentTime <= dura;
Executed by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
m_currentTime && m_currentTime <= dura;
executed 160 times by 2 tests: return m_currentTime && m_currentTime <= dura;
Executed by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
160
128}-
129-
130void QParallelAnimationGroupJob::applyGroupState(QAbstractAnimationJob *animation)-
131{-
132 switch (m_state)-
133 {-
134 case
executed 84787 times by 12 tests: case Running:
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
Running:
executed 84787 times by 12 tests: case Running:
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
84787
135 animation->start();-
136 break;
executed 84787 times by 12 tests: break;
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qpauseanimationjob
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickflipable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • tst_qsequentialanimationgroupjob
  • tst_scenegraph
84787
137 case
never executed: case Paused:
Paused:
never executed: case Paused:
0
138 animation->pause();-
139 break;
never executed: break;
0
140 case
executed 274 times by 2 tests: case Stopped:
Executed by:
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
Stopped:
executed 274 times by 2 tests: case Stopped:
Executed by:
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
274
141 default
never executed: default:
:
never executed: default:
0
142 break;
executed 274 times by 2 tests: break;
Executed by:
  • tst_qanimationgroupjob
  • tst_qparallelanimationgroupjob
274
143 }-
144}-
145-
146void QParallelAnimationGroupJob::updateDirection(QAbstractAnimationJob::Direction direction)-
147{-
148-
149 if (!isStopped()
!isStopped()Description
TRUEnever evaluated
FALSEevaluated 40 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
) {
0-40
150 for (QAbstractAnimationJob *animation = firstChild(); animation
animationDescription
TRUEnever evaluated
FALSEnever evaluated
; animation = animation->nextSibling()) {
0
151 animation->setDirection(direction);-
152 }
never executed: end of block
0
153 }
never executed: end of block
else {
0
154 if (direction == Forward
direction == ForwardDescription
TRUEnever evaluated
FALSEevaluated 40 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
) {
0-40
155 m_previousLoop = 0;-
156 m_previousCurrentTime = 0;-
157 }
never executed: end of block
else {
0
158-
159 m_previousLoop = (m_loopCount == -1
m_loopCount == -1Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
FALSEevaluated 34 times by 2 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
? 0 : m_loopCount - 1);
6-34
160 m_previousCurrentTime = duration();-
161 }
executed 40 times by 2 tests: end of block
Executed by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
40
162 }-
163}-
164-
165void QParallelAnimationGroupJob::uncontrolledAnimationFinished(QAbstractAnimationJob *animation)-
166{-
167 ((animation && (animation->duration() == -1 || animation->loopCount() < 0)) ? static_cast<void>(0) : qt_assert("animation && (animation->duration() == -1 || animation->loopCount() < 0)", __FILE__, 208));-
168 int uncontrolledRunningCount = 0;-
169-
170 for (QAbstractAnimationJob *child = firstChild(); child
childDescription
TRUEevaluated 46 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
FALSEevaluated 20 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
; child = child->nextSibling()) {
20-46
171 if (child == animation
child == animationDescription
TRUEevaluated 20 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
FALSEevaluated 26 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
) {
20-26
172 setUncontrolledAnimationFinishTime(animation, animation->currentTime());-
173 }
executed 20 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
else if (child->duration() == -1
child->duration() == -1Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
|| child->loopCount() < 0
child->loopCount() < 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
) {
6-20
174 if (uncontrolledAnimationFinishTime(child) == -1
uncontrolledAn...e(child) == -1Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
)
6
175 ++
executed 6 times by 1 test: ++uncontrolledRunningCount;
Executed by:
  • tst_qparallelanimationgroupjob
uncontrolledRunningCount;
executed 6 times by 1 test: ++uncontrolledRunningCount;
Executed by:
  • tst_qparallelanimationgroupjob
6
176 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qparallelanimationgroupjob
12
177 }
executed 46 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
46
178-
179 if (uncontrolledRunningCount > 0
uncontrolledRunningCount > 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qparallelanimationgroupjob
FALSEevaluated 14 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
)
6-14
180 return;
executed 6 times by 1 test: return;
Executed by:
  • tst_qparallelanimationgroupjob
6
181-
182 int maxDuration = 0;-
183 bool running = false;-
184 for (QAbstractAnimationJob *job = firstChild(); job
jobDescription
TRUEevaluated 28 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
FALSEevaluated 14 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
; job = job->nextSibling()) {
14-28
185 if (job->state() == Running
job->state() == RunningDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
FALSEevaluated 22 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
)
6-22
186 running = true;
executed 6 times by 2 tests: running = true;
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
6
187 maxDuration = qMax(maxDuration, job->totalDuration());-
188 }
executed 28 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
28
189-
190 setUncontrolledAnimationFinishTime(this, qMax(maxDuration + m_currentLoopStartTime, currentTime()));-
191-
192 if (!running
!runningDescription
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qparallelanimationgroupjob
6-8
193 && ((m_direction == Forward
m_direction == ForwardDescription
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
FALSEnever evaluated
&& m_currentLoop == m_loopCount -1
m_currentLoop ...m_loopCount -1Description
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
FALSEnever evaluated
)
0-8
194 || (m_direction == Backward
m_direction == BackwardDescription
TRUEnever evaluated
FALSEnever evaluated
&& m_currentLoop == 0
m_currentLoop == 0Description
TRUEnever evaluated
FALSEnever evaluated
))) {
0
195 stop();-
196 }
executed 8 times by 3 tests: end of block
Executed by:
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
8
197}
executed 14 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qparallelanimationgroupjob
  • tst_qquickanimations
  • tst_qquickspringanimation
14
198-
199void QParallelAnimationGroupJob::debugAnimation(QDebug d) const-
200{-
201 d << "ParallelAnimationGroupJob(" << hex << (const void *) this << dec << ")";-
202-
203 debugChildren(d);-
204}
never executed: end of block
0
205-
206-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0