Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/testlib/qtestelement.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | QTestElement::QTestElement(int type) | - | ||||||
5 | : QTestCoreElement<QTestElement>(type) | - | ||||||
6 | , listOfChildren(0) | - | ||||||
7 | , parent(0) | - | ||||||
8 | { | - | ||||||
9 | } executed 33961 times by 1 test: end of block Executed by:
| 33961 | ||||||
10 | - | |||||||
11 | QTestElement::~QTestElement() | - | ||||||
12 | { | - | ||||||
13 | delete listOfChildren; | - | ||||||
14 | } executed 33961 times by 1 test: end of block Executed by:
| 33961 | ||||||
15 | - | |||||||
16 | bool QTestElement::addLogElement(QTestElement *element) | - | ||||||
17 | { | - | ||||||
18 | if (!element
| 0-32657 | ||||||
19 | return never executed: false;return false; never executed: return false; | 0 | ||||||
20 | - | |||||||
21 | if (element->elementType() != QTest::LET_Undefined
| 0-32657 | ||||||
22 | element->addToList(&listOfChildren); | - | ||||||
23 | element->setParent(this); | - | ||||||
24 | return executed 32657 times by 1 test: true;return true; Executed by:
executed 32657 times by 1 test: return true; Executed by:
| 32657 | ||||||
25 | } | - | ||||||
26 | - | |||||||
27 | return never executed: false;return false; never executed: return false; | 0 | ||||||
28 | } | - | ||||||
29 | - | |||||||
30 | QTestElement *QTestElement::childElements() const | - | ||||||
31 | { | - | ||||||
32 | return executed 72614 times by 1 test: listOfChildren;return listOfChildren; Executed by:
executed 72614 times by 1 test: return listOfChildren; Executed by:
| 72614 | ||||||
33 | } | - | ||||||
34 | - | |||||||
35 | const QTestElement *QTestElement::parentElement() const | - | ||||||
36 | { | - | ||||||
37 | return executed 240649 times by 1 test: parent;return parent; Executed by:
executed 240649 times by 1 test: return parent; Executed by:
| 240649 | ||||||
38 | } | - | ||||||
39 | - | |||||||
40 | void QTestElement::setParent(const QTestElement *p) | - | ||||||
41 | { | - | ||||||
42 | parent = p; | - | ||||||
43 | } executed 34176 times by 1 test: end of block Executed by:
| 34176 | ||||||
44 | - | |||||||
45 | - | |||||||
Switch to Source code | Preprocessed file |