OpenCoverage

qtestelement.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/testlib/qtestelement.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QTestElement::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:
  • tst_selftests - unknown status
34010
10-
11QTestElement::~QTestElement()-
12{-
13 delete listOfChildren;-
14}
executed 34010 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
34010
15-
16bool QTestElement::addLogElement(QTestElement *element)-
17{-
18 if (!element
!elementDescription
TRUEnever evaluated
FALSEevaluated 32685 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
)
0-32685
19 return
never executed: return false;
false;
never executed: return false;
0
20-
21 if (element->elementType() != QTest::LET_Undefined
element->eleme...:LET_UndefinedDescription
TRUEevaluated 32685 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEnever evaluated
) {
0-32685
22 element->addToList(&listOfChildren);-
23 element->setParent(this);-
24 return
executed 32685 times by 1 test: return true;
Executed by:
  • tst_selftests - unknown status
true;
executed 32685 times by 1 test: return true;
Executed by:
  • tst_selftests - unknown status
32685
25 }-
26-
27 return
never executed: return false;
false;
never executed: return false;
0
28}-
29-
30QTestElement *QTestElement::childElements() const-
31{-
32 return
executed 72782 times by 1 test: return listOfChildren;
Executed by:
  • tst_selftests - unknown status
listOfChildren;
executed 72782 times by 1 test: return listOfChildren;
Executed by:
  • tst_selftests - unknown status
72782
33}-
34-
35const QTestElement *QTestElement::parentElement() const-
36{-
37 return
executed 240817 times by 1 test: return parent;
Executed by:
  • tst_selftests - unknown status
parent;
executed 240817 times by 1 test: return parent;
Executed by:
  • tst_selftests - unknown status
240817
38}-
39-
40void QTestElement::setParent(const QTestElement *p)-
41{-
42 parent = p;-
43}
executed 34225 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
34225
44-
45-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9