Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | namespace QV4 { | - |
7 | | - |
8 | template <typename T> | - |
9 | struct TemporaryAssignment | - |
10 | { | - |
11 | TemporaryAssignment(T &var, const T& temporaryValue) | - |
12 | : variable(var) | - |
13 | , savedValue(var) | - |
14 | { | - |
15 | variable = temporaryValue; | - |
16 | }executed 119771 times by 14 tests: end of block Executed by:- tst_ecmascripttests
- tst_examples
- tst_qjsengine
- tst_qjsonbinding
- tst_qjsvalue
- tst_qjsvalueiterator
- tst_qmlcachegen
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmllistmodelworkerscript
- tst_qqmlxmlhttprequest
- tst_qquickworkerscript
- tst_qv4assembler
- tst_qv4debugger
| 119771 |
17 | ~TemporaryAssignment() | - |
18 | { | - |
19 | variable = savedValue; | - |
20 | }executed 119680 times by 14 tests: end of block Executed by:- tst_ecmascripttests
- tst_examples
- tst_qjsengine
- tst_qjsonbinding
- tst_qjsvalue
- tst_qjsvalueiterator
- tst_qmlcachegen
- tst_qqmldebugjs
- tst_qqmlecmascript
- tst_qqmllistmodelworkerscript
- tst_qqmlxmlhttprequest
- tst_qquickworkerscript
- tst_qv4assembler
- tst_qv4debugger
| 119680 |
21 | T &variable; | - |
22 | T savedValue; | - |
23 | private: | - |
24 | TemporaryAssignment(const TemporaryAssignment<T>&); | - |
25 | TemporaryAssignment operator=(const TemporaryAssignment<T>&); | - |
26 | }; | - |
27 | | - |
28 | | - |
29 | | - |
30 | class BitVector | - |
31 | { | - |
32 | std::vector<bool> bits; | - |
33 | | - |
34 | public: | - |
35 | BitVector(int size = 0, bool value = false) | - |
36 | : bits(size, value) | - |
37 | {}executed 260 times by 24 tests: end of block Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 260 |
38 | | - |
39 | void clear() | - |
40 | { bits = std::vector<bool>(bits.size(), false); } never executed: end of block | 0 |
41 | | - |
42 | void reserve(int size) | - |
43 | { bits.reserve(size); } never executed: end of block | 0 |
44 | | - |
45 | int size() const | - |
46 | { | - |
47 | ((bits.size() < 0x7fffffff) ? static_cast<void>(0) : qt_assert("bits.size() < INT_MAX", __FILE__, 101)); | - |
48 | returnexecuted 163328 times by 24 tests: return static_cast<int>(bits.size()); Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
static_cast<int>(bits.size());executed 163328 times by 24 tests: return static_cast<int>(bits.size()); Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 163328 |
49 | } | - |
50 | | - |
51 | void resize(int newSize) | - |
52 | { bits.resize(newSize); } never executed: end of block | 0 |
53 | | - |
54 | void resize(int newSize, bool newValue) | - |
55 | { bits.resize(newSize, newValue); }executed 470 times by 24 tests: end of block Executed by:- tst_examples
- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 470 |
56 | | - |
57 | void assign(int newSize, bool value) | - |
58 | { bits.assign(newSize, value); } never executed: end of block | 0 |
59 | | - |
60 | int findNext(int start, bool value, bool wrapAround) const | - |
61 | { | - |
62 | size_t pos = std::distance(bits.begin(), | - |
63 | std::find(bits.begin() + start, bits.end(), value)); | - |
64 | if (wrapAroundTRUE | never evaluated | FALSE | evaluated 54286 times by 23 testsEvaluated by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
|
&& pos >= static_cast<size_t>(size())TRUE | never evaluated | FALSE | never evaluated |
) | 0-54286 |
65 | pos = std::distance(bits.begin(), never executed: pos = std::distance(bits.begin(), std::find(bits.begin(), bits.begin() + start, value)); | 0 |
66 | std::find(bits.begin(), bits.begin() + start, value)); never executed: pos = std::distance(bits.begin(), std::find(bits.begin(), bits.begin() + start, value)); | 0 |
67 | | - |
68 | pos = qMin(pos, static_cast<size_t>(size())); | - |
69 | | - |
70 | ((pos <= static_cast<size_t>(size())) ? static_cast<void>(0) : qt_assert("pos <= static_cast<size_t>(size())", __FILE__, 134)); | - |
71 | ((pos < 0x7fffffff) ? static_cast<void>(0) : qt_assert("pos < INT_MAX", __FILE__, 135)); | - |
72 | | - |
73 | returnexecuted 54286 times by 23 tests: return static_cast<int>(pos); Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
static_cast<int>(pos);executed 54286 times by 23 tests: return static_cast<int>(pos); Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 54286 |
74 | } | - |
75 | | - |
76 | bool at(int idx) const | - |
77 | { return never executed: return bits.at(idx); bits.at(idx);never executed: return bits.at(idx); } | 0 |
78 | | - |
79 | void setBit(int idx) | - |
80 | { bits[idx] = true; }executed 14020 times by 23 tests: end of block Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 14020 |
81 | | - |
82 | void clearBit(int idx) | - |
83 | { bits[idx] = false; }executed 54286 times by 23 tests: end of block Executed by:- tst_qquickage
- tst_qquickangleddirection
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickellipseextruder
- tst_qquickfriction
- tst_qquickgravity
- tst_qquickgroupgoal
- tst_qquickimageparticle
- tst_qquickitemparticle
- tst_qquicklineextruder
- tst_qquickmaskextruder
- tst_qquickparticlegroup
- tst_qquickparticlesystem
- tst_qquickpointattractor
- tst_qquickpointdirection
- tst_qquickrectangleextruder
- tst_qquickspritegoal
- tst_qquicktargetdirection
- tst_qquicktrailemitter
- tst_qquickturbulence
- tst_qquickwander
| 54286 |
84 | }; | - |
85 | } | - |
86 | | - |
87 | | - |
| | |