Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | QParallelAnimationGroupJob::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 | | - |
11 | QParallelAnimationGroupJob::~QParallelAnimationGroupJob() | - |
12 | { | - |
13 | } | - |
14 | | - |
15 | int QParallelAnimationGroupJob::duration() const | - |
16 | { | - |
17 | int ret = 0; | - |
18 | | - |
19 | for (QAbstractAnimationJob *animation = firstChild(); animationTRUE | evaluated 733753 times by 13 testsEvaluated 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
| FALSE | evaluated 401890 times by 12 testsEvaluated 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 == -1TRUE | evaluated 310 times by 5 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | evaluated 733443 times by 12 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
29 | void QParallelAnimationGroupJob::updateCurrentTime(int ) | - |
30 | { | - |
31 | if (!firstChild()TRUE | never evaluated | FALSE | evaluated 78694 times by 13 testsEvaluated 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_previousLoopTRUE | evaluated 98 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| FALSE | evaluated 78596 times by 13 testsEvaluated 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 < 0TRUE | evaluated 2 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 96 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
|
) { | 2-96 |
38 | | - |
39 | | - |
40 | | - |
41 | for (QAbstractAnimationJob *animation = firstChild(); animationTRUE | evaluated 6 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 2 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
|
; animation = animation->nextSibling()) { | 2-6 |
42 | int currentDuration = animation->totalDuration(); | - |
43 | if (currentDuration >= 0TRUE | evaluated 2 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 4 times by 1 testEvaluated 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 > 0TRUE | evaluated 98 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| FALSE | never evaluated |
) { | 0-98 |
48 | for (QAbstractAnimationJob *animation = firstChild(); animationTRUE | evaluated 296 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| FALSE | evaluated 98 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
|
; animation = animation->nextSibling()) { | 98-296 |
49 | if (!animation->isStopped()TRUE | evaluated 112 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| FALSE | evaluated 184 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
|
) | 112-184 |
50 | { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; animation->setCurrentTime(dura); if (wasDeletedTRUE | never evaluated | FALSE | evaluated 112 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
|
) { if (prevWasDeletedTRUE | never evaluated | FALSE | never 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_previousLoopTRUE | evaluated 44 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 78552 times by 13 testsEvaluated 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(); animationTRUE | evaluated 132 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 44 times by 1 testEvaluated 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 (wasDeletedTRUE | never evaluated | FALSE | evaluated 132 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
|
) { if (prevWasDeletedTRUE | never evaluated | FALSE | never 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(); animationTRUE | evaluated 114003 times by 13 testsEvaluated 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
| FALSE | evaluated 78686 times by 13 testsEvaluated 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_previousLoopTRUE | evaluated 296 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| FALSE | evaluated 113707 times by 13 testsEvaluated 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 )TRUE | evaluated 84633 times by 13 testsEvaluated 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
| FALSE | evaluated 29074 times by 9 testsEvaluated 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()TRUE | evaluated 113615 times by 13 testsEvaluated 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
| FALSE | evaluated 388 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
|
) { | 388-113615 |
76 | { bool *prevWasDeleted = m_wasDeleted; bool wasDeleted = false; m_wasDeleted = &wasDeleted; animation->setCurrentTime(m_currentTime); if (wasDeletedTRUE | evaluated 8 times by 1 test | FALSE | evaluated 113607 times by 13 testsEvaluated 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 (prevWasDeletedTRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
) *executed 8 times by 1 test: *prevWasDeleted = true; prevWasDeleted = true;executed 8 times by 1 test: *prevWasDeleted = true; return;executed 8 times by 1 test: return; } m_wasDeleted = prevWasDeleted; }; | 0-113607 |
77 | if (dura > 0TRUE | evaluated 113101 times by 12 testsEvaluated 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
| FALSE | evaluated 506 times by 5 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
|
&& m_currentTime > duraTRUE | evaluated 72 times by 3 testsEvaluated by:- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
| FALSE | evaluated 113029 times by 12 testsEvaluated 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 | | - |
85 | void QParallelAnimationGroupJob::updateState(QAbstractAnimationJob::State newState, | - |
86 | QAbstractAnimationJob::State oldState) | - |
87 | { | - |
88 | QAnimationGroupJob::updateState(newState, oldState); | - |
89 | | - |
90 | switch (newState) { | - |
91 | caseexecuted 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(); animationTRUE | evaluated 29400 times by 10 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickspringanimation
- tst_scenegraph
| FALSE | evaluated 19338 times by 10 testsEvaluated 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 | caseexecuted 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(); animationTRUE | evaluated 212 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimationcontroller
- tst_qsequentialanimationgroupjob
| FALSE | evaluated 48 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimationcontroller
- tst_qsequentialanimationgroupjob
|
; animation = animation->nextSibling()) | 48-212 |
97 | if (animation->isRunning()TRUE | evaluated 210 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimationcontroller
- tst_qsequentialanimationgroupjob
| FALSE | evaluated 2 times by 1 testEvaluated 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 | caseexecuted 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(); animationTRUE | evaluated 31532 times by 12 testsEvaluated 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
| FALSE | evaluated 20959 times by 12 testsEvaluated 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 == StoppedTRUE | evaluated 31324 times by 12 testsEvaluated 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
| FALSE | evaluated 208 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimationcontroller
- tst_qsequentialanimationgroupjob
|
) { | 208-31324 |
103 | animation->stop(); | - |
104 | m_previousLoop = m_direction == ForwardTRUE | evaluated 31206 times by 12 testsEvaluated 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
| FALSE | evaluated 118 times by 2 testsEvaluated 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)TRUE | evaluated 31424 times by 12 testsEvaluated 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
| FALSE | evaluated 108 times by 1 testEvaluated 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 | | - |
115 | bool QParallelAnimationGroupJob::shouldAnimationStart(QAbstractAnimationJob *animation, bool startIfAtEnd) const | - |
116 | { | - |
117 | const int dura = animation->totalDuration(); | - |
118 | | - |
119 | if (dura == -1TRUE | evaluated 354 times by 5 testsEvaluated by:- tst_examples
- tst_qanimationgroupjob
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | evaluated 144885 times by 12 testsEvaluated 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 | returnexecuted 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 (startIfAtEndTRUE | evaluated 31638 times by 11 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qpauseanimationjob
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickflipable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpositioners
- tst_qsequentialanimationgroupjob
- tst_scenegraph
| FALSE | evaluated 113247 times by 12 testsEvaluated 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 | returnexecuted 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 == ForwardTRUE | evaluated 113087 times by 12 testsEvaluated 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
| FALSE | evaluated 160 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
|
) | 160-113087 |
125 | returnexecuted 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 | returnexecuted 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 | | - |
130 | void QParallelAnimationGroupJob::applyGroupState(QAbstractAnimationJob *animation) | - |
131 | { | - |
132 | switch (m_state) | - |
133 | { | - |
134 | caseexecuted 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 | caseexecuted 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 | | - |
146 | void QParallelAnimationGroupJob::updateDirection(QAbstractAnimationJob::Direction direction) | - |
147 | { | - |
148 | | - |
149 | if (!isStopped()TRUE | never evaluated | FALSE | evaluated 40 times by 2 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
|
) { | 0-40 |
150 | for (QAbstractAnimationJob *animation = firstChild(); animationTRUE | never evaluated | FALSE | never 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 == ForwardTRUE | never evaluated | FALSE | evaluated 40 times by 2 testsEvaluated 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 == -1TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 34 times by 2 testsEvaluated 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 | | - |
165 | void 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(); childTRUE | evaluated 46 times by 4 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | evaluated 20 times by 4 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
|
; child = child->nextSibling()) { | 20-46 |
171 | if (child == animationTRUE | evaluated 20 times by 4 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | evaluated 26 times by 2 testsEvaluated 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() == -1TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 20 times by 2 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
|
|| child->loopCount() < 0TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 14 times by 2 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
|
) { | 6-20 |
174 | if (uncontrolledAnimationFinishTime(child) == -1TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 6 times by 1 testEvaluated 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 > 0TRUE | evaluated 6 times by 1 testEvaluated by:- tst_qparallelanimationgroupjob
| FALSE | evaluated 14 times by 4 testsEvaluated 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(); jobTRUE | evaluated 28 times by 4 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | evaluated 14 times by 4 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
|
; job = job->nextSibling()) { | 14-28 |
185 | if (job->state() == RunningTRUE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
| FALSE | evaluated 22 times by 4 testsEvaluated 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 (!runningTRUE | evaluated 8 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qparallelanimationgroupjob
|
| 6-8 |
193 | && ((m_direction == ForwardTRUE | evaluated 8 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | never evaluated |
&& m_currentLoop == m_loopCount -1TRUE | evaluated 8 times by 3 testsEvaluated by:- tst_qparallelanimationgroupjob
- tst_qquickanimations
- tst_qquickspringanimation
| FALSE | never evaluated |
) | 0-8 |
194 | || (m_direction == BackwardTRUE | never evaluated | FALSE | never evaluated |
&& m_currentLoop == 0TRUE | never evaluated | FALSE | never 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 | | - |
199 | void 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 | | - |
| | |