qtestelement.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4QTestElement::QTestElement(int type) -
5 : QTestCoreElement<QTestElement>(type) -
6 , listOfChildren(0) -
7 , parent(0) -
8{ -
9}
never executed: }
0
10 -
11QTestElement::~QTestElement() -
12{ -
13 delete listOfChildren; -
14}
never executed: }
0
15 -
16bool 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 -
30QTestElement *QTestElement::childElements() const -
31{ -
32 return listOfChildren;
never executed: return listOfChildren;
0
33} -
34 -
35const QTestElement *QTestElement::parentElement() const -
36{ -
37 return parent;
never executed: return parent;
0
38} -
39 -
40void QTestElement::setParent(const QTestElement *p) -
41{ -
42 parent = p; -
43}
never executed: }
0
44 -
45 -
46 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial