Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | | - |
4 | QTestElement::QTestElement(int type) | - |
5 | : QTestCoreElement<QTestElement>(type) | - |
6 | , listOfChildren(0) | - |
7 | , parent(0) | - |
8 | { | - |
9 | } | 0 |
10 | | - |
11 | QTestElement::~QTestElement() | - |
12 | { | - |
13 | delete listOfChildren; | - |
14 | } | 0 |
15 | | - |
16 | bool QTestElement::addLogElement(QTestElement *element) | - |
17 | { | - |
18 | if (!element) never evaluated: !element | 0 |
19 | return false; never executed: return false; | 0 |
20 | | - |
21 | if (element->elementType() != QTest::LET_Undefined) { never evaluated: element->elementType() != QTest::LET_Undefined | 0 |
22 | element->addToList(&listOfChildren); | - |
23 | element->setParent(this); | - |
24 | return true; never executed: return true; | 0 |
25 | } | - |
26 | | - |
27 | return false; never executed: return false; | 0 |
28 | } | - |
29 | | - |
30 | QTestElement *QTestElement::childElements() const | - |
31 | { | - |
32 | return listOfChildren; never executed: return listOfChildren; | 0 |
33 | } | - |
34 | | - |
35 | const QTestElement *QTestElement::parentElement() const | - |
36 | { | - |
37 | return parent; never executed: return parent; | 0 |
38 | } | - |
39 | | - |
40 | void QTestElement::setParent(const QTestElement *p) | - |
41 | { | - |
42 | parent = p; | - |
43 | } | 0 |
44 | | - |
45 | | - |
46 | | - |
| | |