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 34010 times by 1 test: end of block Executed by:
| 34010 | ||||||
10 | - | |||||||
11 | QTestElement::~QTestElement() | - | ||||||
12 | { | - | ||||||
13 | delete listOfChildren; | - | ||||||
14 | } executed 34010 times by 1 test: end of block Executed by:
| 34010 | ||||||
15 | - | |||||||
16 | bool QTestElement::addLogElement(QTestElement *element) | - | ||||||
17 | { | - | ||||||
18 | if (!element
| 0-32685 | ||||||
19 | return never executed: false;return false; never executed: return false; | 0 | ||||||
20 | - | |||||||
21 | if (element->elementType() != QTest::LET_Undefined
| 0-32685 | ||||||
22 | element->addToList(&listOfChildren); | - | ||||||
23 | element->setParent(this); | - | ||||||
24 | return executed 32685 times by 1 test: true;return true; Executed by:
executed 32685 times by 1 test: return true; Executed by:
| 32685 | ||||||
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 72782 times by 1 test: listOfChildren;return listOfChildren; Executed by:
executed 72782 times by 1 test: return listOfChildren; Executed by:
| 72782 | ||||||
33 | } | - | ||||||
34 | - | |||||||
35 | const QTestElement *QTestElement::parentElement() const | - | ||||||
36 | { | - | ||||||
37 | return executed 240817 times by 1 test: parent;return parent; Executed by:
executed 240817 times by 1 test: return parent; Executed by:
| 240817 | ||||||
38 | } | - | ||||||
39 | - | |||||||
40 | void QTestElement::setParent(const QTestElement *p) | - | ||||||
41 | { | - | ||||||
42 | parent = p; | - | ||||||
43 | } executed 34225 times by 1 test: end of block Executed by:
| 34225 | ||||||
44 | - | |||||||
45 | - | |||||||
Switch to Source code | Preprocessed file |