OpenCoverage

qtestcase.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/testlib/qtestcase.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5using QtMiscUtils::toHexUpper;-
6using QtMiscUtils::fromHex;-
7-
8-
9static void stackTrace()-
10{-
11 bool ok = false;-
12 const int disableStackDump = qEnvironmentVariableIntValue("QTEST_DISABLE_STACK_DUMP", &ok);-
13 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
&& disableStackDump == 1
disableStackDump == 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
14 return;
never executed: return;
0
15-
16 fprintf(stderr, "\n========= Received signal, dumping stack ==============\n");-
17 char cmd[512];-
18 qsnprintf(cmd, 512, "gdb --pid %d 2>/dev/null <<EOF\n"-
19 "set prompt\n"-
20 "set height 0\n"-
21 "thread apply all where full\n"-
22 "detach\n"-
23 "quit\n"-
24 "EOF\n",-
25 (int)getpid());-
26 if (system(cmd) == -1
system(cmd) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
27 fprintf(stderr, "calling gdb failed\n");
never executed: fprintf(stderr, "calling gdb failed\n");
0
28 fprintf(stderr, "========= End of stack trace ==============\n");-
29}
never executed: end of block
0
30-
31static bool installCoverageTool(const char * appname, const char * testname)-
32{-
33-
34 if (!qEnvironmentVariableIsEmpty("QT_TESTCOCOON_ACTIVE")
!qEnvironmentV...OCOON_ACTIVE")Description
TRUEevaluated 811 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-811
35 return
executed 811 times by 1 test: return false;
Executed by:
  • tst_selftests - unknown status
false;
executed 811 times by 1 test: return false;
Executed by:
  • tst_selftests - unknown status
811
36-
37-
38 qputenv("QT_TESTCOCOON_ACTIVE", "1");-
39-
40-
41 __coveragescanner_install(appname);-
42 __coveragescanner_testname(testname);-
43 __coveragescanner_clear();-
44 return
executed 509 times by 505 tests: return true;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
true;
executed 509 times by 505 tests: return true;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
509
45-
46-
47-
48-
49-
50}-
51-
52static bool isValidSlot(const QMetaMethod &sl)-
53{-
54 if (sl.access() != QMetaMethod::Private
sl.access() !=...ethod::PrivateDescription
TRUEevaluated 5826 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 19985 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
|| sl.parameterCount() != 0
sl.parameterCount() != 0Description
TRUEevaluated 1289 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 18696 times by 505 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1289-19985
55 || sl.returnType() != QMetaType::Void
sl.returnType(...MetaType::VoidDescription
TRUEnever evaluated
FALSEevaluated 18696 times by 505 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
|| sl.methodType() != QMetaMethod::Slot
sl.methodType(...taMethod::SlotDescription
TRUEnever evaluated
FALSEevaluated 18696 times by 505 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
0-18696
56 return
executed 7115 times by 506 tests: return false;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
false;
executed 7115 times by 506 tests: return false;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
7115
57 const QByteArray name = sl.name();-
58 return
executed 18696 times by 505 tests: return !(name.isEmpty() || name.endsWith("_data") || name == "initTestCase" || name == "cleanupTestCase" || name == "init" || name == "cleanup");
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
!(name.isEmpty() || name.endsWith("_data")
executed 18696 times by 505 tests: return !(name.isEmpty() || name.endsWith("_data") || name == "initTestCase" || name == "cleanupTestCase" || name == "init" || name == "cleanup");
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
18696
59 || name == "initTestCase" || name == "cleanupTestCase"
executed 18696 times by 505 tests: return !(name.isEmpty() || name.endsWith("_data") || name == "initTestCase" || name == "cleanupTestCase" || name == "init" || name == "cleanup");
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
18696
60 || name == "init" || name == "cleanup");
executed 18696 times by 505 tests: return !(name.isEmpty() || name.endsWith("_data") || name == "initTestCase" || name == "cleanupTestCase" || name == "init" || name == "cleanup");
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
18696
61}-
62-
63namespace QTest-
64{-
65 class WatchDog;-
66-
67 static QObject *currentTestObject = 0;-
68 static QString mainSourcePath;-
69-
70 class TestMethods {-
71 TestMethods(const TestMethods &) = delete; TestMethods &operator=(const TestMethods &) = delete;-
72 public:-
73 typedef std::vector<QMetaMethod> MetaMethods;-
74-
75 explicit TestMethods(const QObject *o, const MetaMethods &m = MetaMethods());-
76-
77 void invokeTests(QObject *testObject) const;-
78-
79 static QMetaMethod findMethod(const QObject *obj, const char *signature);-
80-
81 private:-
82 bool invokeTest(int index, const char *data, WatchDog *watchDog) const;-
83 void invokeTestOnData(int index) const;-
84-
85 QMetaMethod m_initTestCaseMethod;-
86 QMetaMethod m_initTestCaseDataMethod;-
87 QMetaMethod m_cleanupTestCaseMethod;-
88 QMetaMethod m_initMethod;-
89 QMetaMethod m_cleanupMethod;-
90-
91 MetaMethods m_methods;-
92 };-
93-
94 TestMethods::TestMethods(const QObject *o, const MetaMethods &m)-
95 : m_initTestCaseMethod(TestMethods::findMethod(o, "initTestCase()"))-
96 , m_initTestCaseDataMethod(TestMethods::findMethod(o, "initTestCase_data()"))-
97 , m_cleanupTestCaseMethod(TestMethods::findMethod(o, "cleanupTestCase()"))-
98 , m_initMethod(TestMethods::findMethod(o, "init()"))-
99 , m_cleanupMethod(TestMethods::findMethod(o, "cleanup()"))-
100 , m_methods(m)-
101 {-
102 if (m.empty()
m.empty()Description
TRUEevaluated 1281 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 39 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
39-1281
103 const QMetaObject *metaObject = o->metaObject();-
104 const int count = metaObject->methodCount();-
105 m_methods.reserve(count);-
106 for (int i = 0; i < count
i < countDescription
TRUEevaluated 25703 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 1281 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
; ++i) {
1281-25703
107 const QMetaMethod me = metaObject->method(i);-
108 if (isValidSlot(me)
isValidSlot(me)Description
TRUEevaluated 13376 times by 504 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 12327 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
12327-13376
109 m_methods.push_back(me);
executed 13376 times by 504 tests: m_methods.push_back(me);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
13376
110 }
executed 25703 times by 506 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
25703
111 }
executed 1281 times by 506 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1281
112 }
executed 1320 times by 506 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1320
113-
114 QMetaMethod TestMethods::findMethod(const QObject *obj, const char *signature)-
115 {-
116 const QMetaObject *metaObject = obj->metaObject();-
117 const int funcIndex = metaObject->indexOfMethod(signature);-
118 return
executed 6664 times by 506 tests: return funcIndex >= 0 ? metaObject->method(funcIndex) : QMetaMethod();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
funcIndex >= 0 ? metaObject->method(funcIndex) : QMetaMethod();
executed 6664 times by 506 tests: return funcIndex >= 0 ? metaObject->method(funcIndex) : QMetaMethod();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
6664
119 }-
120-
121 static int keyDelay = -1;-
122 static int mouseDelay = -1;-
123 static int eventDelay = -1;-
124 static int timeout = -1;-
125 static bool noCrashHandler = false;-
126-
127-
128-
129-
130static void invokeMethod(QObject *obj, const char *methodName)-
131{-
132 const QMetaObject *metaObject = obj->metaObject();-
133 int funcIndex = metaObject->indexOfMethod(methodName);-
134 if (funcIndex >= 0
funcIndex >= 0Description
TRUEevaluated 4599 times by 328 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
FALSEevaluated 8673 times by 469 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
) {
4599-8673
135 QMetaMethod method = metaObject->method(funcIndex);-
136 method.invoke(obj, Qt::DirectConnection);-
137 }
executed 4599 times by 328 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
4599
138}
executed 13272 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
13272
139-
140int defaultEventDelay()-
141{-
142 if (eventDelay == -1
eventDelay == -1Description
TRUEevaluated 72 times by 72 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
FALSEevaluated 36 times by 36 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • ...
) {
36-72
143 const QByteArray env = qgetenv("QTEST_EVENT_DELAY");-
144 if (!env.isEmpty()
!env.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 72 times by 72 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
)
0-72
145 eventDelay = atoi(env.constData());
never executed: eventDelay = atoi(env.constData());
0
146 else-
147 eventDelay = 0;
executed 72 times by 72 tests: eventDelay = 0;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
72
148 }-
149 return
executed 108 times by 72 tests: return eventDelay;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
eventDelay;
executed 108 times by 72 tests: return eventDelay;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
108
150}-
151-
152int __attribute__((visibility("default"))) defaultMouseDelay()-
153{-
154 if (mouseDelay == -1
mouseDelay == -1Description
TRUEevaluated 50 times by 50 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGroupBox
  • tst_QGuiApplication
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • ...
FALSEevaluated 8776 times by 45 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGroupBox
  • tst_QGuiApplication
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • ...
) {
50-8776
155 const QByteArray env = qgetenv("QTEST_MOUSEEVENT_DELAY");-
156 if (!env.isEmpty()
!env.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 50 times by 50 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGroupBox
  • tst_QGuiApplication
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • ...
)
0-50
157 mouseDelay = atoi(env.constData());
never executed: mouseDelay = atoi(env.constData());
0
158 else-
159 mouseDelay = defaultEventDelay();
executed 50 times by 50 tests: mouseDelay = defaultEventDelay();
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGroupBox
  • tst_QGuiApplication
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • ...
50
160 }-
161 return
executed 8826 times by 50 tests: return mouseDelay;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGroupBox
  • tst_QGuiApplication
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • ...
mouseDelay;
executed 8826 times by 50 tests: return mouseDelay;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGroupBox
  • tst_QGuiApplication
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • ...
8826
162}-
163-
164int __attribute__((visibility("default"))) defaultKeyDelay()-
165{-
166 if (keyDelay == -1
keyDelay == -1Description
TRUEevaluated 58 times by 58 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 14546 times by 54 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • ...
) {
58-14546
167 const QByteArray env = qgetenv("QTEST_KEYEVENT_DELAY");-
168 if (!env.isEmpty()
!env.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 58 times by 58 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
0-58
169 keyDelay = atoi(env.constData());
never executed: keyDelay = atoi(env.constData());
0
170 else-
171 keyDelay = defaultEventDelay();
executed 58 times by 58 tests: keyDelay = defaultEventDelay();
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
58
172 }-
173 return
executed 14604 times by 58 tests: return keyDelay;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
keyDelay;
executed 14604 times by 58 tests: return keyDelay;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
14604
174}-
175-
176static int defaultTimeout()-
177{-
178 if (timeout == -1
timeout == -1Description
TRUEevaluated 1189 times by 501 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 125421 times by 475 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
) {
1189-125421
179 bool ok = false;-
180 timeout = qEnvironmentVariableIntValue("QTEST_FUNCTION_TIMEOUT", &ok);-
181-
182 if (!ok
!okDescription
TRUEevaluated 1189 times by 501 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEnever evaluated
|| timeout <= 0
timeout <= 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0-1189
183 timeout = 5*60*1000;
executed 1189 times by 501 tests: timeout = 5*60*1000;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
1189
184 }
executed 1189 times by 501 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
1189
185 return
executed 126610 times by 502 tests: return timeout;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
timeout;
executed 126610 times by 502 tests: return timeout;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
126610
186}-
187-
188__attribute__((visibility("default"))) bool printAvailableFunctions = false;-
189__attribute__((visibility("default"))) QStringList testFunctions;-
190__attribute__((visibility("default"))) QStringList testTags;-
191-
192static void qPrintTestSlots(FILE *stream, const char *filter = 0)-
193{-
194 for (int i = 0; i < QTest::currentTestObject->metaObject()->methodCount()
i < QTest::cur...>methodCount()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
195 QMetaMethod sl = QTest::currentTestObject->metaObject()->method(i);-
196 if (isValidSlot(sl)
isValidSlot(sl)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
197 const QByteArray signature = sl.methodSignature();-
198 if (!filter
!filterDescription
TRUEnever evaluated
FALSEnever evaluated
|| QString::fromLatin1(signature).contains(QLatin1String(filter), Qt::CaseInsensitive)
QString::fromL...seInsensitive)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
199 fprintf(stream, "%s\n", signature.constData());
never executed: fprintf(stream, "%s\n", signature.constData());
0
200 }
never executed: end of block
0
201 }
never executed: end of block
0
202}
never executed: end of block
0
203-
204static void qPrintDataTags(FILE *stream)-
205{-
206-
207 QTestLog::setPrintAvailableTagsMode();-
208-
209-
210 QTestTable::globalTestTable();-
211 invokeMethod(QTest::currentTestObject, "initTestCase_data()");-
212 const QTestTable *gTable = QTestTable::globalTestTable();-
213-
214 const QMetaObject *currTestMetaObj = QTest::currentTestObject->metaObject();-
215-
216-
217 for (int i = 0; i < currTestMetaObj->methodCount()
i < currTestMe...>methodCount()Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
; ++i) {
4-44
218 QMetaMethod tf = currTestMetaObj->method(i);-
219-
220 if (isValidSlot(tf)
isValidSlot(tf)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
12-32
221-
222-
223 QStringList localTags;-
224 QTestTable table;-
225 char *slot = qstrdup(tf.methodSignature().constData());-
226 slot[strlen(slot) - 2] = '\0';-
227 QByteArray member;-
228 member.resize(qstrlen(slot) + qstrlen("_data()") + 1);-
229 qsnprintf(member.data(), member.size(), "%s_data()", slot);-
230 invokeMethod(QTest::currentTestObject, member.constData());-
231 const int dataCount = table.dataCount();-
232 localTags.reserve(dataCount);-
233 for (int j = 0; j < dataCount
j < dataCountDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
; ++j)
12-20
234 localTags << QLatin1String(table.testData(j)->dataTag());
executed 20 times by 1 test: localTags << QLatin1String(table.testData(j)->dataTag());
Executed by:
  • tst_selftests - unknown status
20
235-
236-
237 if (gTable->dataCount() == 0
gTable->dataCount() == 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
6
238 if (localTags.count() == 0
localTags.count() == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
2-4
239-
240 fprintf(stream, "%s %s\n", currTestMetaObj->className(), slot);-
241 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else {
2
242-
243 for (int k = 0; k < localTags.size()
k < localTags.size()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
; ++k)
4-10
244 fprintf(
executed 10 times by 1 test: fprintf( stream, "%s %s %s\n", currTestMetaObj->className(), slot, localTags.at(k).toLatin1().data());
Executed by:
  • tst_selftests - unknown status
10
245 stream, "%s %s %s\n",
executed 10 times by 1 test: fprintf( stream, "%s %s %s\n", currTestMetaObj->className(), slot, localTags.at(k).toLatin1().data());
Executed by:
  • tst_selftests - unknown status
10
246 currTestMetaObj->className(), slot, localTags.at(k).toLatin1().data());
executed 10 times by 1 test: fprintf( stream, "%s %s %s\n", currTestMetaObj->className(), slot, localTags.at(k).toLatin1().data());
Executed by:
  • tst_selftests - unknown status
10
247 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
4
248 } else {-
249 for (int j = 0; j < gTable->dataCount()
j < gTable->dataCount()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
; ++j) {
6-12
250 if (localTags.count() == 0
localTags.count() == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
4-8
251-
252 fprintf(-
253 stream, "%s %s __global__ %s\n",-
254 currTestMetaObj->className(), slot, gTable->testData(j)->dataTag());-
255 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else {
4
256-
257-
258 for (int k = 0; k < localTags.size()
k < localTags.size()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
; ++k)
8-20
259 fprintf(
executed 20 times by 1 test: fprintf( stream, "%s %s %s __global__ %s\n", currTestMetaObj->className(), slot, localTags.at(k).toLatin1().data(), gTable->testData(j)->dataTag());
Executed by:
  • tst_selftests - unknown status
20
260 stream, "%s %s %s __global__ %s\n", currTestMetaObj->className(), slot,
executed 20 times by 1 test: fprintf( stream, "%s %s %s __global__ %s\n", currTestMetaObj->className(), slot, localTags.at(k).toLatin1().data(), gTable->testData(j)->dataTag());
Executed by:
  • tst_selftests - unknown status
20
261 localTags.at(k).toLatin1().data(), gTable->testData(j)->dataTag());
executed 20 times by 1 test: fprintf( stream, "%s %s %s __global__ %s\n", currTestMetaObj->className(), slot, localTags.at(k).toLatin1().data(), gTable->testData(j)->dataTag());
Executed by:
  • tst_selftests - unknown status
20
262 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
8
263 }-
264 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
6
265-
266 delete[] slot;-
267 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
12
268 }
executed 44 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
44
269}
executed 4 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
4
270-
271static int qToInt(char *str)-
272{-
273 char *pEnd;-
274 int l = (int)strtol(str, &pEnd, 10);-
275 if (*
*pEnd != 0Description
TRUEnever evaluated
FALSEevaluated 21 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
pEnd != 0
*pEnd != 0Description
TRUEnever evaluated
FALSEevaluated 21 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-21
276 fprintf(stderr, "Invalid numeric parameter: '%s'\n", str);-
277 exit(1);
never executed: exit(1);
0
278 }-
279 return
executed 21 times by 1 test: return l;
Executed by:
  • tst_selftests - unknown status
l;
executed 21 times by 1 test: return l;
Executed by:
  • tst_selftests - unknown status
21
280}-
281-
282__attribute__((visibility("default"))) void qtest_qParseArgs(int argc, char *argv[], bool qml)-
283{-
284 QTestLog::LogMode logFormat = QTestLog::Plain;-
285 const char *logFilename = 0;-
286-
287 QTest::testFunctions.clear();-
288 QTest::testTags.clear();-
289-
290-
291-
292-
293-
294-
295 const char *testOptions =-
296 " New-style logging options:\n"-
297 " -o filename,format : Output results to file in the specified format\n"-
298 " Use - to output to stdout\n"-
299 " Valid formats are:\n"-
300 " txt : Plain text\n"-
301 " csv : CSV format (suitable for benchmarks)\n"-
302 " xunitxml : XML XUnit document\n"-
303 " xml : XML document\n"-
304 " lightxml : A stream of XML tags\n"-
305 " teamcity : TeamCity format\n"-
306 "\n"-
307 " *** Multiple loggers can be specified, but at most one can log to stdout.\n"-
308 "\n"-
309 " Old-style logging options:\n"-
310 " -o filename : Write the output into file\n"-
311 " -txt : Output results in Plain Text\n"-
312 " -csv : Output results in a CSV format (suitable for benchmarks)\n"-
313 " -xunitxml : Output results as XML XUnit document\n"-
314 " -xml : Output results as XML document\n"-
315 " -lightxml : Output results as stream of XML tags\n"-
316 " -teamcity : Output results in TeamCity format\n"-
317 "\n"-
318 " *** If no output file is specified, stdout is assumed.\n"-
319 " *** If no output format is specified, -txt is assumed.\n"-
320 "\n"-
321 " Test log detail options:\n"-
322 " -silent : Log failures and fatal errors only\n"-
323 " -v1 : Log the start of each testfunction\n"-
324 " -v2 : Log each QVERIFY/QCOMPARE/QTEST (implies -v1)\n"-
325 " -vs : Log every signal emission and resulting slot invocations\n"-
326 "\n"-
327 " *** The -silent and -v1 options only affect plain text output.\n"-
328 "\n"-
329 " Testing options:\n"-
330 " -functions : Returns a list of current testfunctions\n"-
331 " -datatags : Returns a list of current data tags.\n"-
332 " A global data tag is preceded by ' __global__ '.\n"-
333 " -eventdelay ms : Set default delay for mouse and keyboard simulation to ms milliseconds\n"-
334 " -keydelay ms : Set default delay for keyboard simulation to ms milliseconds\n"-
335 " -mousedelay ms : Set default delay for mouse simulation to ms milliseconds\n"-
336 " -maxwarnings n : Sets the maximum amount of messages to output.\n"-
337 " 0 means unlimited, default: 2000\n"-
338 " -nocrashhandler : Disables the crash handler. Useful for debugging crashes.\n"-
339 "\n"-
340 " Benchmarking options:\n"-
341-
342 " -callgrind : Use callgrind to time benchmarks\n"-
343-
344-
345 " -perf : Use Linux perf events to time benchmarks\n"-
346 " -perfcounter name : Use the counter named 'name'\n"-
347 " -perfcounterlist : Lists the counters available\n"-
348-
349-
350 " -tickcounter : Use CPU tick counters to time benchmarks\n"-
351-
352 " -eventcounter : Counts events received during benchmarks\n"-
353 " -minimumvalue n : Sets the minimum acceptable measurement value\n"-
354 " -minimumtotal n : Sets the minimum acceptable total for repeated executions of a test function\n"-
355 " -iterations n : Sets the number of accumulation iterations.\n"-
356 " -median n : Sets the number of median iterations.\n"-
357 " -vb : Print out verbose benchmarking information.\n";-
358-
359 for (int i = 1; i < argc
i < argcDescription
TRUEevaluated 1387 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 811 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
; ++i) {
811-1387
360 if (strcmp(argv[i], "-help") == 0
strcmp(argv[i], "-help") == 0Description
TRUEnever evaluated
FALSEevaluated 1387 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
|| strcmp(argv[i], "--help") == 0
strcmp(argv[i], "--help") == 0Description
TRUEnever evaluated
FALSEevaluated 1387 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
0-1387
361 || strcmp(argv[i], "/?") == 0
strcmp(argv[i], "/?") == 0Description
TRUEnever evaluated
FALSEevaluated 1387 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-1387
362 printf(" Usage: %s [options] [testfunction[:testdata]]...\n"-
363 " By default, all testfunctions will be run.\n\n"-
364 "%s", argv[0], testOptions);-
365-
366 if (qml
qmlDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
367 printf ("\n"-
368 " QmlTest options:\n"-
369 " -import dir : Specify an import directory.\n"-
370 " -plugins dir : Specify a directory where to search for plugins.\n"-
371 " -input dir/file : Specify the root directory for test cases or a single test case file.\n"-
372 " -qtquick1 : Run with QtQuick 1 rather than QtQuick 2.\n"-
373 " -translation file : Specify the translation file.\n"-
374 );-
375 }
never executed: end of block
0
376-
377 printf("\n"-
378 " -help : This help\n");-
379 exit(0);
never executed: exit(0);
0
380 } else if (strcmp(argv[i], "-functions") == 0
strcmp(argv[i]...nctions") == 0Description
TRUEnever evaluated
FALSEevaluated 1387 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-1387
381 if (qml
qmlDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
382 QTest::printAvailableFunctions = true;-
383 }
never executed: end of block
else {
0
384 qPrintTestSlots(stdout);-
385 exit(0);
never executed: exit(0);
0
386 }-
387 } else if (strcmp(argv[i], "-datatags") == 0
strcmp(argv[i]...atatags") == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 1383 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
4-1383
388 if (!qml
!qmlDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEnever evaluated
) {
0-4
389 qPrintDataTags(stdout);-
390 exit(0);
executed 4 times by 1 test: exit(0);
Executed by:
  • tst_selftests - unknown status
4
391 }-
392 }
never executed: end of block
else if (strcmp(argv[i], "-txt") == 0
strcmp(argv[i], "-txt") == 0Description
TRUEnever evaluated
FALSEevaluated 1383 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-1383
393 logFormat = QTestLog::Plain;-
394 }
never executed: end of block
else if (strcmp(argv[i], "-csv") == 0
strcmp(argv[i], "-csv") == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 1379 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-1379
395 logFormat = QTestLog::CSV;-
396 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else if (strcmp(argv[i], "-xunitxml") == 0
strcmp(argv[i]...unitxml") == 0Description
TRUEevaluated 62 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 1317 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
4-1317
397 logFormat = QTestLog::XunitXML;-
398 }
executed 62 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else if (strcmp(argv[i], "-xml") == 0
strcmp(argv[i], "-xml") == 0Description
TRUEevaluated 62 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 1255 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
62-1255
399 logFormat = QTestLog::XML;-
400 }
executed 62 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else if (strcmp(argv[i], "-lightxml") == 0
strcmp(argv[i]...ightxml") == 0Description
TRUEevaluated 62 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 1193 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
62-1193
401 logFormat = QTestLog::LightXML;-
402 }
executed 62 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else if (strcmp(argv[i], "-teamcity") == 0
strcmp(argv[i]...eamcity") == 0Description
TRUEevaluated 58 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 1135 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
58-1135
403 logFormat = QTestLog::TeamCity;-
404 }
executed 58 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else if (strcmp(argv[i], "-silent") == 0
strcmp(argv[i]...-silent") == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 1133 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
2-1133
405 QTestLog::setVerboseLevel(-1);-
406 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else if (strcmp(argv[i], "-v1") == 0
strcmp(argv[i], "-v1") == 0Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 1108 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
2-1108
407 QTestLog::setVerboseLevel(1);-
408 }
executed 25 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else if (strcmp(argv[i], "-v2") == 0
strcmp(argv[i], "-v2") == 0Description
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 1058 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
25-1058
409 QTestLog::setVerboseLevel(2);-
410 }
executed 50 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else if (strcmp(argv[i], "-vs") == 0
strcmp(argv[i], "-vs") == 0Description
TRUEnever evaluated
FALSEevaluated 1058 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-1058
411 QSignalDumper::startDump();-
412 }
never executed: end of block
else if (strcmp(argv[i], "-o") == 0
strcmp(argv[i], "-o") == 0Description
TRUEevaluated 900 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-900
413 if (i + 1 >= argc
i + 1 >= argcDescription
TRUEnever evaluated
FALSEevaluated 900 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-900
414 fprintf(stderr, "-o needs an extra parameter specifying the filename and optional format\n");-
415 exit(1);
never executed: exit(1);
0
416 }-
417 ++i;-
418-
419 char *filename = new char[strlen(argv[i])+1];-
420 char *format = new char[strlen(argv[i])+1];-
421 if (sscanf(argv[i], "%[^,],%s", filename, format) == 1
sscanf(argv[i]..., format) == 1Description
TRUEevaluated 154 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 746 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
154-746
422-
423 logFilename = argv[i];-
424 }
executed 154 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else {
154
425-
426 if (strcmp(format, "txt") == 0
strcmp(format, "txt") == 0Description
TRUEevaluated 256 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 490 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
)
256-490
427 logFormat = QTestLog::Plain;
executed 256 times by 1 test: logFormat = QTestLog::Plain;
Executed by:
  • tst_selftests - unknown status
256
428 else if (strcmp(format, "csv") == 0
strcmp(format, "csv") == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 486 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
)
4-486
429 logFormat = QTestLog::CSV;
executed 4 times by 1 test: logFormat = QTestLog::CSV;
Executed by:
  • tst_selftests - unknown status
4
430 else if (strcmp(format, "lightxml") == 0
strcmp(format,...ightxml") == 0Description
TRUEevaluated 123 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 363 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
)
123-363
431 logFormat = QTestLog::LightXML;
executed 123 times by 1 test: logFormat = QTestLog::LightXML;
Executed by:
  • tst_selftests - unknown status
123
432 else if (strcmp(format, "xml") == 0
strcmp(format, "xml") == 0Description
TRUEevaluated 122 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 241 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
)
122-241
433 logFormat = QTestLog::XML;
executed 122 times by 1 test: logFormat = QTestLog::XML;
Executed by:
  • tst_selftests - unknown status
122
434 else if (strcmp(format, "xunitxml") == 0
strcmp(format,...unitxml") == 0Description
TRUEevaluated 153 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 88 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
)
88-153
435 logFormat = QTestLog::XunitXML;
executed 153 times by 1 test: logFormat = QTestLog::XunitXML;
Executed by:
  • tst_selftests - unknown status
153
436 else if (strcmp(format, "teamcity") == 0
strcmp(format,...eamcity") == 0Description
TRUEevaluated 88 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-88
437 logFormat = QTestLog::TeamCity;
executed 88 times by 1 test: logFormat = QTestLog::TeamCity;
Executed by:
  • tst_selftests - unknown status
88
438 else {-
439 fprintf(stderr, "output format must be one of txt, csv, lightxml, xml, teamcity or xunitxml\n");-
440 exit(1);
never executed: exit(1);
0
441 }-
442 if (strcmp(filename, "-") == 0
strcmp(filename, "-") == 0Description
TRUEevaluated 291 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 455 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
&& QTestLog::loggerUsingStdout()
QTestLog::loggerUsingStdout()Description
TRUEnever evaluated
FALSEevaluated 291 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-455
443 fprintf(stderr, "only one logger can log to stdout\n");-
444 exit(1);
never executed: exit(1);
0
445 }-
446 QTestLog::addLogger(logFormat, filename);-
447 }
executed 746 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
746
448 delete [] filename;-
449 delete [] format;-
450 }
executed 900 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else if (strcmp(argv[i], "-eventdelay") == 0
strcmp(argv[i]...ntdelay") == 0Description
TRUEnever evaluated
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-900
451 if (i + 1 >= argc
i + 1 >= argcDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
452 fprintf(stderr, "-eventdelay needs an extra parameter to indicate the delay(ms)\n");-
453 exit(1);
never executed: exit(1);
0
454 } else {-
455 QTest::eventDelay = qToInt(argv[++i]);-
456 }
never executed: end of block
0
457 } else if (strcmp(argv[i], "-keydelay") == 0
strcmp(argv[i]...eydelay") == 0Description
TRUEnever evaluated
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-158
458 if (i + 1 >= argc
i + 1 >= argcDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
459 fprintf(stderr, "-keydelay needs an extra parameter to indicate the delay(ms)\n");-
460 exit(1);
never executed: exit(1);
0
461 } else {-
462 QTest::keyDelay = qToInt(argv[++i]);-
463 }
never executed: end of block
0
464 } else if (strcmp(argv[i], "-mousedelay") == 0
strcmp(argv[i]...sedelay") == 0Description
TRUEnever evaluated
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-158
465 if (i + 1 >= argc
i + 1 >= argcDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
466 fprintf(stderr, "-mousedelay needs an extra parameter to indicate the delay(ms)\n");-
467 exit(1);
never executed: exit(1);
0
468 } else {-
469 QTest::mouseDelay = qToInt(argv[++i]);-
470 }
never executed: end of block
0
471 } else if (strcmp(argv[i], "-maxwarnings") == 0
strcmp(argv[i]...arnings") == 0Description
TRUEnever evaluated
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-158
472 if (i + 1 >= argc
i + 1 >= argcDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
473 fprintf(stderr, "-maxwarnings needs an extra parameter with the amount of warnings\n");-
474 exit(1);
never executed: exit(1);
0
475 } else {-
476 QTestLog::setMaxWarnings(qToInt(argv[++i]));-
477 }
never executed: end of block
0
478 } else if (strcmp(argv[i], "-nocrashhandler") == 0
strcmp(argv[i]...handler") == 0Description
TRUEnever evaluated
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-158
479 QTest::noCrashHandler = true;-
480-
481 }
never executed: end of block
else if (strcmp(argv[i], "-callgrind") == 0
strcmp(argv[i]...llgrind") == 0Description
TRUEnever evaluated
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-158
482 if (QBenchmarkValgrindUtils::haveValgrind()
QBenchmarkValg...haveValgrind()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
483 if (QFileInfo(QDir::currentPath()).isWritable()
QFileInfo(QDir...).isWritable()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
484 QBenchmarkGlobalData::current->setMode(QBenchmarkGlobalData::CallgrindParentProcess);-
485 }
never executed: end of block
else {
0
486 fprintf(stderr, "WARNING: Current directory not writable. Using the walltime measurer.\n");-
487 }
never executed: end of block
0
488 else {-
489 fprintf(stderr, "WARNING: Valgrind not found or too old. Make sure it is installed and in your path. "-
490 "Using the walltime measurer.\n");-
491 }
never executed: end of block
0
492 } else if (strcmp(argv[i], "-callgrindchild") == 0
strcmp(argv[i]...ndchild") == 0Description
TRUEnever evaluated
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-158
493 QBenchmarkGlobalData::current->setMode(QBenchmarkGlobalData::CallgrindChildProcess);-
494 QBenchmarkGlobalData::current->callgrindOutFileBase =-
495 QBenchmarkValgrindUtils::outFileBase();-
496-
497-
498 }
never executed: end of block
else if (strcmp(argv[i], "-perf") == 0
strcmp(argv[i], "-perf") == 0Description
TRUEnever evaluated
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-158
499 if (QBenchmarkPerfEventsMeasurer::isAvailable()
QBenchmarkPerf...:isAvailable()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
500-
501 QBenchmarkGlobalData::current->setMode(QBenchmarkGlobalData::PerfCounter);-
502 }
never executed: end of block
else {
0
503 fprintf(stderr, "WARNING: Linux perf events not available. Using the walltime measurer.\n");-
504 }
never executed: end of block
0
505 } else if (strcmp(argv[i], "-perfcounter") == 0
strcmp(argv[i]...counter") == 0Description
TRUEnever evaluated
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-158
506 if (i + 1 >= argc
i + 1 >= argcDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
507 fprintf(stderr, "-perfcounter needs an extra parameter with the name of the counter\n");-
508 exit(1);
never executed: exit(1);
0
509 } else {-
510 QBenchmarkPerfEventsMeasurer::setCounter(argv[++i]);-
511 }
never executed: end of block
0
512 } else if (strcmp(argv[i], "-perfcounterlist") == 0
strcmp(argv[i]...terlist") == 0Description
TRUEnever evaluated
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-158
513 QBenchmarkPerfEventsMeasurer::listCounters();-
514 exit(0);
never executed: exit(0);
0
515-
516-
517 } else if (strcmp(argv[i], "-tickcounter") == 0
strcmp(argv[i]...counter") == 0Description
TRUEnever evaluated
FALSEevaluated 158 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-158
518 QBenchmarkGlobalData::current->setMode(QBenchmarkGlobalData::TickCounter);-
519-
520 }
never executed: end of block
else if (strcmp(argv[i], "-eventcounter") == 0
strcmp(argv[i]...counter") == 0Description
TRUEevaluated 73 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 85 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-85
521 QBenchmarkGlobalData::current->setMode(QBenchmarkGlobalData::EventCounter);-
522 }
executed 73 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else if (strcmp(argv[i], "-minimumvalue") == 0
strcmp(argv[i]...umvalue") == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 83 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
2-83
523 if (i + 1 >= argc
i + 1 >= argcDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-2
524 fprintf(stderr, "-minimumvalue needs an extra parameter to indicate the minimum time(ms)\n");-
525 exit(1);
never executed: exit(1);
0
526 } else {-
527 QBenchmarkGlobalData::current->walltimeMinimum = qToInt(argv[++i]);-
528 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
2
529 } else if (strcmp(argv[i], "-minimumtotal") == 0
strcmp(argv[i]...umtotal") == 0Description
TRUEnever evaluated
FALSEevaluated 83 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-83
530 if (i + 1 >= argc
i + 1 >= argcDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
531 fprintf(stderr, "-minimumtotal needs an extra parameter to indicate the minimum total measurement\n");-
532 exit(1);
never executed: exit(1);
0
533 } else {-
534 QBenchmarkGlobalData::current->minimumTotal = qToInt(argv[++i]);-
535 }
never executed: end of block
0
536 } else if (strcmp(argv[i], "-iterations") == 0
strcmp(argv[i]...rations") == 0Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
19-64
537 if (i + 1 >= argc
i + 1 >= argcDescription
TRUEnever evaluated
FALSEevaluated 19 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-19
538 fprintf(stderr, "-iterations needs an extra parameter to indicate the number of iterations\n");-
539 exit(1);
never executed: exit(1);
0
540 } else {-
541 QBenchmarkGlobalData::current->iterationCount = qToInt(argv[++i]);-
542 }
executed 19 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
19
543 } else if (strcmp(argv[i], "-median") == 0
strcmp(argv[i]...-median") == 0Description
TRUEnever evaluated
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-64
544 if (i + 1 >= argc
i + 1 >= argcDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
545 fprintf(stderr, "-median needs an extra parameter to indicate the number of median iterations\n");-
546 exit(1);
never executed: exit(1);
0
547 } else {-
548 QBenchmarkGlobalData::current->medianIterationCount = qToInt(argv[++i]);-
549 }
never executed: end of block
0
550-
551 } else if (strcmp(argv[i], "-vb") == 0
strcmp(argv[i], "-vb") == 0Description
TRUEnever evaluated
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-64
552 QBenchmarkGlobalData::current->verboseOutput = true;-
553 }
never executed: end of block
else if (argv[i][0] == '-'
argv[i][0] == '-'Description
TRUEnever evaluated
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-64
554 fprintf(stderr, "Unknown option: '%s'\n\n%s", argv[i], testOptions);-
555 if (qml
qmlDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
556 fprintf(stderr, "\nqmltest related options:\n"-
557 " -import : Specify an import directory.\n"-
558 " -plugins : Specify a directory where to search for plugins.\n"-
559 " -input : Specify the root directory for test cases.\n"-
560 " -qtquick1 : Run with QtQuick 1 rather than QtQuick 2.\n"-
561 );-
562 }
never executed: end of block
0
563-
564 fprintf(stderr, "\n"-
565 " -help : This help\n");-
566 exit(1);
never executed: exit(1);
0
567 } else {-
568-
569-
570 int colon = -1;-
571 int offset;-
572 for (offset = 0; *(
*(argv[i]+offset)Description
TRUEevaluated 865 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 37 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
argv[i]+offset)
*(argv[i]+offset)Description
TRUEevaluated 865 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 37 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
; ++offset) {
37-865
573 if (*(
*(argv[i]+offset) == ':'Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 838 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
argv[i]+offset) == ':'
*(argv[i]+offset) == ':'Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 838 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
27-838
574 if (*(
*(argv[i]+offset+1) == ':'Description
TRUEnever evaluated
FALSEevaluated 27 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
argv[i]+offset+1) == ':'
*(argv[i]+offset+1) == ':'Description
TRUEnever evaluated
FALSEevaluated 27 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-27
575-
576-
577 ++offset;-
578 }
never executed: end of block
else {
0
579 colon = offset;-
580 break;
executed 27 times by 1 test: break;
Executed by:
  • tst_selftests - unknown status
27
581 }-
582 }-
583 }
executed 838 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
838
584 if (colon == -1
colon == -1Description
TRUEevaluated 37 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 27 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
27-37
585 QTest::testFunctions += QString::fromLatin1(argv[i]);-
586 QTest::testTags += QString();-
587 }
executed 37 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
else {
37
588 QTest::testFunctions +=-
589 QString::fromLatin1(argv[i], colon);-
590 QTest::testTags +=-
591 QString::fromLatin1(argv[i] + colon + 1);-
592 }
executed 27 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
27
593 }-
594 }-
595-
596 bool installedTestCoverage = installCoverageTool(QTestResult::currentAppName(), QTestResult::currentTestObjectName());-
597 QTestLog::setInstalledTestCoverage(installedTestCoverage);-
598-
599-
600-
601-
602 if (QTestLog::loggerCount() == 0
QTestLog::loggerCount() == 0Description
TRUEevaluated 847 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 473 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
)
473-847
603 QTestLog::addLogger(logFormat, logFilename);
executed 847 times by 506 tests: QTestLog::addLogger(logFormat, logFilename);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
847
604}
executed 1320 times by 506 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1320
605-
606QBenchmarkResult qMedian(const QVector<QBenchmarkResult> &container)-
607{-
608 const int count = container.count();-
609 if (count == 0
count == 0Description
TRUEnever evaluated
FALSEevaluated 282 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
)
0-282
610 return
never executed: return QBenchmarkResult();
QBenchmarkResult();
never executed: return QBenchmarkResult();
0
611-
612 if (count == 1
count == 1Description
TRUEevaluated 282 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-282
613 return
executed 282 times by 2 tests: return container.front();
Executed by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
container.front();
executed 282 times by 2 tests: return container.front();
Executed by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
282
614-
615 QVector<QBenchmarkResult> containerCopy = container;-
616 std::sort(containerCopy.begin(), containerCopy.end());-
617-
618 const int middle = count / 2;-
619-
620-
621 return
never executed: return containerCopy.at(middle);
containerCopy.at(middle);
never executed: return containerCopy.at(middle);
0
622}-
623-
624struct QTestDataSetter-
625{-
626 QTestDataSetter(QTestData *data)-
627 {-
628 QTestResult::setCurrentTestData(data);-
629 }
executed 126610 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
126610
630 ~QTestDataSetter()-
631 {-
632 QTestResult::setCurrentTestData(0);-
633 }
executed 126553 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
126553
634};-
635-
636namespace {-
637-
638qreal addResult(qreal current, const QBenchmarkResult& r)-
639{-
640 return
never executed: return current + r.value;
current + r.value;
never executed: return current + r.value;
0
641}-
642-
643}-
644-
645void TestMethods::invokeTestOnData(int index) const-
646{-
647-
648-
649 bool isBenchmark = false;-
650 int i = (
(QBenchmarkGlo...upIteration())Description
TRUEevaluated 126116 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 494 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
QBenchmarkGlobalData::current->measurer->needsWarmupIteration())
(QBenchmarkGlo...upIteration())Description
TRUEevaluated 126116 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 494 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
? -1 : 0;
494-126116
651-
652 QVector<QBenchmarkResult> results;-
653 bool minimumTotalReached = false;-
654 do {-
655 QBenchmarkTestMethodData::current->beginDataRun();-
656-
657-
658 bool invokeOk;-
659 do {-
660 if (m_initMethod.isValid()
m_initMethod.isValid()Description
TRUEevaluated 14076 times by 100 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusServiceWatcher
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 112554 times by 403 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
)
14076-112554
661 m_initMethod.invoke(QTest::currentTestObject, Qt::DirectConnection);
executed 14076 times by 100 tests: m_initMethod.invoke(QTest::currentTestObject, Qt::DirectConnection);
Executed by:
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusServiceWatcher
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
14076
662 if (QTestResult::skipCurrentTest()
QTestResult::skipCurrentTest()Description
TRUEevaluated 75 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 126555 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
|| QTestResult::currentTestFailed()
QTestResult::c...ntTestFailed()Description
TRUEevaluated 75 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 126480 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
)
75-126555
663 break;
executed 150 times by 1 test: break;
Executed by:
  • tst_selftests - unknown status
150
664-
665 QBenchmarkTestMethodData::current->result = QBenchmarkResult();-
666 QBenchmarkTestMethodData::current->resultAccepted = false;-
667-
668 QBenchmarkGlobalData::current->context.tag =-
669 QLatin1String(-
670 QTestResult::currentDataTag()-
671 ? QTestResult::currentDataTag() : "");-
672-
673 invokeOk = m_methods[index].invoke(QTest::currentTestObject, Qt::DirectConnection);-
674 if (!invokeOk
!invokeOkDescription
TRUEnever evaluated
FALSEevaluated 126398 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
)
0-126398
675 QTestResult::addFailure("Unable to execute slot", __FILE__, 805);
never executed: QTestResult::addFailure("Unable to execute slot", __FILE__, 805);
0
676-
677 isBenchmark = QBenchmarkTestMethodData::current->isBenchmark();-
678-
679 QTestResult::finishedCurrentTestData();-
680-
681 if (m_cleanupMethod.isValid()
m_cleanupMethod.isValid()Description
TRUEevaluated 32781 times by 104 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QCheckBox
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 93617 times by 399 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAction
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
)
32781-93617
682 m_cleanupMethod.invoke(QTest::currentTestObject, Qt::DirectConnection);
executed 32781 times by 104 tests: m_cleanupMethod.invoke(QTest::currentTestObject, Qt::DirectConnection);
Executed by:
  • tst_LargeFile
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QCheckBox
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
32781
683-
684-
685 if (!isBenchmark
!isBenchmarkDescription
TRUEevaluated 125978 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 420 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
)
420-125978
686 QTestResult::finishedCurrentTestDataCleanup();
executed 125978 times by 502 tests: QTestResult::finishedCurrentTestDataCleanup();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
125978
687-
688-
689-
690-
691-
692 }
executed 126398 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
while (invokeOk
invokeOkDescription
TRUEevaluated 126398 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEnever evaluated
&& isBenchmark
isBenchmarkDescription
TRUEevaluated 420 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
FALSEevaluated 125978 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
0-126398
693 && QBenchmarkTestMethodData::current->resultsAccepted() == false
QBenchmarkTest...ted() == falseDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 408 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
12-408
694 && !QTestResult::skipCurrentTest()
!QTestResult::...pCurrentTest()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEnever evaluated
&& !QTestResult::currentTestFailed()
!QTestResult::...ntTestFailed()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEnever evaluated
);
0-12
695-
696 QBenchmarkTestMethodData::current->endDataRun();-
697 if (!QTestResult::skipCurrentTest()
!QTestResult::...pCurrentTest()Description
TRUEevaluated 125366 times by 501 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 1170 times by 52 tests
Evaluated by:
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QDBusConnection_NoApplication
  • tst_QDBusLocalCalls
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDialog
  • tst_QDir
  • tst_QDockWidget
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGLThreads
  • tst_QGraphicsProxyWidget
  • tst_QIODevice
  • tst_QImageReader
  • tst_QItemView
  • tst_QLockFile
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • ...
&& !QTestResult::currentTestFailed()
!QTestResult::...ntTestFailed()Description
TRUEevaluated 125198 times by 501 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 168 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
168-125366
698 if (i > -1
i > -1Description
TRUEevaluated 380 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
FALSEevaluated 124818 times by 501 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
)
380-124818
699 results.append(QBenchmarkTestMethodData::current->result);
executed 380 times by 2 tests: results.append(QBenchmarkTestMethodData::current->result);
Executed by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
380
700-
701 if (isBenchmark
isBenchmarkDescription
TRUEevaluated 290 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
FALSEevaluated 124908 times by 501 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
&& QBenchmarkGlobalData::current->verboseOutput
QBenchmarkGlob...>verboseOutputDescription
TRUEnever evaluated
FALSEevaluated 290 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
) {
0-124908
702 if (i == -1
i == -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
703 QTestLog::info(QString(QString::fromLatin1("warmup stage result : %1") .arg(QBenchmarkTestMethodData::current->result.value)).toLocal8Bit().constData()-
704-
705 , 0, 0);-
706 }
never executed: end of block
else {
0
707 QTestLog::info(QString(QString::fromLatin1("accumulation stage result: %1") .arg(QBenchmarkTestMethodData::current->result.value)).toLocal8Bit().constData()-
708-
709 , 0, 0);-
710 }
never executed: end of block
0
711 }-
712 }
executed 125198 times by 501 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
125198
713-
714-
715 if (QBenchmarkGlobalData::current->minimumTotal == -1
QBenchmarkGlob...mumTotal == -1Description
TRUEevaluated 126536 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEnever evaluated
) {
0-126536
716 minimumTotalReached = true;-
717 }
executed 126536 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
else {
126536
718 const qreal total = std::accumulate(results.begin(), results.end(), 0.0, addResult);-
719 minimumTotalReached = (total >= QBenchmarkGlobalData::current->minimumTotal);-
720 }
never executed: end of block
0
721 } while (isBenchmark
isBenchmarkDescription
TRUEevaluated 408 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
FALSEevaluated 126128 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
408-126128
722 && ((++
(++i < QBenchm...rationCount())Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QByteDataBuffer
FALSEevaluated 400 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
i < QBenchmarkGlobalData::current->adjustMedianIterationCount())
(++i < QBenchm...rationCount())Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QByteDataBuffer
FALSEevaluated 400 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
|| !minimumTotalReached
!minimumTotalReachedDescription
TRUEnever evaluated
FALSEevaluated 400 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
)
0-400
723 && !QTestResult::skipCurrentTest()
!QTestResult::...pCurrentTest()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QByteDataBuffer
FALSEnever evaluated
&& !QTestResult::currentTestFailed()
!QTestResult::...ntTestFailed()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QByteDataBuffer
FALSEnever evaluated
);
0-8
724-
725-
726 if (isBenchmark
isBenchmarkDescription
TRUEevaluated 400 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
FALSEevaluated 126128 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
) {
400-126128
727 bool testPassed = !QTestResult::skipCurrentTest()
!QTestResult::...pCurrentTest()Description
TRUEevaluated 375 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
&& !QTestResult::currentTestFailed()
!QTestResult::...ntTestFailed()Description
TRUEevaluated 282 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
FALSEevaluated 93 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
;
25-375
728 QTestResult::finishedCurrentTestDataCleanup();-
729-
730 if (testPassed
testPassedDescription
TRUEevaluated 282 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
FALSEevaluated 118 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
&& QBenchmarkTestMethodData::current->resultsAccepted()
QBenchmarkTest...ultsAccepted()Description
TRUEevaluated 282 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-282
731 QTestLog::addBenchmarkResult(qMedian(results));
executed 282 times by 2 tests: QTestLog::addBenchmarkResult(qMedian(results));
Executed by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
282
732 }
executed 400 times by 2 tests: end of block
Executed by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
400
733}
executed 126528 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
126528
734-
735class WatchDog : public QThread-
736{-
737public:-
738 WatchDog()-
739 {-
740 QMutexLocker locker(&mutex);-
741 timeout.store(-1);-
742 start();-
743 waitCondition.wait(&mutex);-
744 }
executed 1320 times by 506 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1320
745 ~WatchDog() {-
746 {-
747 QMutexLocker locker(&mutex);-
748 timeout.store(0);-
749 waitCondition.wakeAll();-
750 }-
751 wait();-
752 }
executed 1263 times by 508 tests: end of block
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
1263
753-
754 void beginTest() {-
755 QMutexLocker locker(&mutex);-
756 timeout.store(defaultTimeout());-
757 waitCondition.wakeAll();-
758 }
executed 126610 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
126610
759-
760 void testFinished() {-
761 QMutexLocker locker(&mutex);-
762 timeout.store(-1);-
763 waitCondition.wakeAll();-
764 }
executed 126528 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
126528
765-
766 void run() {-
767 QMutexLocker locker(&mutex);-
768 waitCondition.wakeAll();-
769 while (1) {-
770 int t = timeout.load();-
771 if (!t
!tDescription
TRUEevaluated 1263 times by 508 tests
Evaluated by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
FALSEevaluated 221322 times by 508 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
1263-221322
772 break;
executed 1263 times by 508 tests: break;
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
1263
773 if (__builtin_expect(!!(!waitCondition.wait(&mutex, t)), false)
__builtin_expe...x, t)), false)Description
TRUEnever evaluated
FALSEevaluated 221265 times by 901 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
) {
0-221265
774 stackTrace();-
775 QMessageLogger(__FILE__, 905, __PRETTY_FUNCTION__).fatal("Test function timed out");-
776 }
never executed: end of block
0
777 }
executed 221265 times by 901 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
221265
778 }
executed 1263 times by 508 tests: end of block
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
1263
779-
780private:-
781 QBasicAtomicInt timeout;-
782 QMutex mutex;-
783 QWaitCondition waitCondition;-
784};-
785bool TestMethods::invokeTest(int index, const char *data, WatchDog *watchDog) const-
786{-
787 QBenchmarkTestMethodData benchmarkData;-
788 QBenchmarkTestMethodData::current = &benchmarkData;-
789-
790 const QByteArray &name = m_methods[index].name();-
791 QBenchmarkGlobalData::current->context.slotName = QLatin1String(name) + QLatin1String("()");-
792-
793 char member[512];-
794 QTestTable table;-
795-
796 QTestResult::setCurrentTestFunction(name.constData());-
797-
798 const QTestTable *gTable = QTestTable::globalTestTable();-
799 const int globalDataCount = gTable->dataCount();-
800 int curGlobalDataIndex = 0;-
801-
802-
803 do {-
804 if (!gTable->isEmpty()
!gTable->isEmpty()Description
TRUEevaluated 1197 times by 15 tests
Evaluated by:
  • tst_QDBusLocalCalls
  • tst_QDnsLookup
  • tst_QFtp
  • tst_QHostInfo
  • tst_QSqlDriver
  • tst_QSqlRelationalTableModel
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_Utf8
  • tst_qdbusxml2cpp
  • tst_selftests - unknown status
FALSEevaluated 12891 times by 488 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
)
1197-12891
805 QTestResult::setCurrentGlobalTestData(gTable->testData(curGlobalDataIndex));
executed 1197 times by 15 tests: QTestResult::setCurrentGlobalTestData(gTable->testData(curGlobalDataIndex));
Executed by:
  • tst_QDBusLocalCalls
  • tst_QDnsLookup
  • tst_QFtp
  • tst_QHostInfo
  • tst_QSqlDriver
  • tst_QSqlRelationalTableModel
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_Utf8
  • tst_qdbusxml2cpp
  • tst_selftests - unknown status
1197
806-
807 if (curGlobalDataIndex == 0
curGlobalDataIndex == 0Description
TRUEevaluated 13256 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 832 times by 12 tests
Evaluated by:
  • tst_QDBusLocalCalls
  • tst_QDnsLookup
  • tst_QFtp
  • tst_QHostInfo
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Utf8
  • tst_qdbusxml2cpp
  • tst_selftests - unknown status
) {
832-13256
808 qsnprintf(member, 512, "%s_data()", name.constData());-
809 invokeMethod(QTest::currentTestObject, member);-
810 }
executed 13256 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
13256
811-
812 bool foundFunction = false;-
813 if (!QTestResult::skipCurrentTest()
!QTestResult::...pCurrentTest()Description
TRUEevaluated 13851 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 237 times by 12 tests
Evaluated by:
  • tst_QCssParser
  • tst_QFtp
  • tst_QMimeDatabase
  • tst_QNetworkSession
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextScriptEngine
  • tst_selftests - unknown status
) {
237-13851
814 int curDataIndex = 0;-
815 const int dataCount = table.dataCount();-
816-
817-
818 if (data
dataDescription
TRUEevaluated 27 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 13824 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
&& !dataCount
!dataCountDescription
TRUEnever evaluated
FALSEevaluated 27 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-13824
819-
820 if (!*data
!*dataDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
821 data = 0;
never executed: data = 0;
0
822 else {-
823 fprintf(stderr, "Unknown testdata for function %s(): '%s'\n", name.constData(), data);-
824 fprintf(stderr, "Function has no testdata.\n");-
825 return
never executed: return false;
false;
never executed: return false;
0
826 }-
827 }-
828-
829-
830 do {-
831 QTestResult::setSkipCurrentTest(false);-
832 QTestResult::setBlacklistCurrentTest(false);-
833 if (!data
!dataDescription
TRUEevaluated 126583 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 29 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
|| !qstrcmp(data, table.testData(curDataIndex)->dataTag())
!qstrcmp(data,...x)->dataTag())Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
2-126583
834 foundFunction = true;-
835-
836 QTestPrivate::checkBlackLists(name.constData(), dataCount ? table.testData(curDataIndex)->dataTag() : 0);-
837-
838 QTestDataSetter s(curDataIndex >= dataCount ? static_cast<QTestData *>(0)-
839 : table.testData(curDataIndex));-
840-
841 if (watchDog
watchDogDescription
TRUEevaluated 126610 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEnever evaluated
)
0-126610
842 watchDog->beginTest();
executed 126610 times by 502 tests: watchDog->beginTest();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
126610
843 invokeTestOnData(index);-
844 if (watchDog
watchDogDescription
TRUEevaluated 126528 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEnever evaluated
)
0-126528
845 watchDog->testFinished();
executed 126528 times by 502 tests: watchDog->testFinished();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
126528
846-
847 if (data
dataDescription
TRUEevaluated 27 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 126501 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
)
27-126501
848 break;
executed 27 times by 1 test: break;
Executed by:
  • tst_selftests - unknown status
27
849 }
executed 126501 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
126501
850 ++curDataIndex;-
851 }
executed 126503 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
while (curDataIndex < dataCount
curDataIndex < dataCountDescription
TRUEevaluated 112761 times by 324 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
FALSEevaluated 13742 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
);
13742-126503
852 }
executed 13769 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
13769
853-
854 if (data
dataDescription
TRUEevaluated 27 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 13979 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
&& !foundFunction
!foundFunctionDescription
TRUEnever evaluated
FALSEevaluated 27 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-13979
855 fprintf(stderr, "Unknown testdata for function %s: '%s()'\n", name.constData(), data);-
856 fprintf(stderr, "Available testdata:\n");-
857 for (int i = 0; i < table.dataCount()
i < table.dataCount()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i)
0
858 fprintf(stderr, "%s\n", table.testData(i)->dataTag());
never executed: fprintf(stderr, "%s\n", table.testData(i)->dataTag());
0
859 return
never executed: return false;
false;
never executed: return false;
0
860 }-
861-
862 QTestResult::setCurrentGlobalTestData(0);-
863 ++curGlobalDataIndex;-
864 }
executed 14006 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
while (curGlobalDataIndex < globalDataCount
curGlobalDataI...lobalDataCountDescription
TRUEevaluated 832 times by 12 tests
Evaluated by:
  • tst_QDBusLocalCalls
  • tst_QDnsLookup
  • tst_QFtp
  • tst_QHostInfo
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Utf8
  • tst_qdbusxml2cpp
  • tst_selftests - unknown status
FALSEevaluated 13174 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
);
832-14006
865-
866 QTestResult::finishedCurrentTestFunction();-
867 QTestResult::setSkipCurrentTest(false);-
868 QTestResult::setBlacklistCurrentTest(false);-
869 QTestResult::setCurrentTestData(0);-
870-
871 return
executed 13174 times by 502 tests: return true;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
true;
executed 13174 times by 502 tests: return true;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
13174
872}-
873-
874void *fetchData(QTestData *data, const char *tagName, int typeId)-
875{-
876 do { if (!(typeId)
!(typeId)Description
TRUEnever evaluated
FALSEevaluated 431987 times by 330 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
) qt_assert("typeId",__FILE__,1017);
never executed: qt_assert("typeId",__FILE__,1017);
} while (0);
0-431987
877 do { if (!(data)
!(data)Description
TRUEnever evaluated
FALSEevaluated 431987 times by 330 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
) qt_assert_x("QTest::fetchData()", "Test data requested, but no testdata available.",__FILE__,1018);
never executed: qt_assert_x("QTest::fetchData()", "Test data requested, but no testdata available.",__FILE__,1018);
} while (0);
0-431987
878 do { if (!(data->parent())
!(data->parent())Description
TRUEnever evaluated
FALSEevaluated 431987 times by 330 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
) qt_assert("data->parent()",__FILE__,1019);
never executed: qt_assert("data->parent()",__FILE__,1019);
} while (0);
0-431987
879-
880 int idx = data->parent()->indexOf(tagName);-
881-
882 if (__builtin_expect(!!(idx == -1 || idx >= data->dataCount()), false)
__builtin_expe...unt()), false)Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 431962 times by 330 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
) {
25-431962
883 QMessageLogger(__FILE__, 1024, __PRETTY_FUNCTION__).fatal("QFETCH: Requested testdata '%s' not available, check your _data function.",-
884 tagName);-
885 }
never executed: end of block
0
886-
887 if (__builtin_expect(!!(typeId != data->parent()->elementTypeId(idx)), false)
__builtin_expe...(idx)), false)Description
TRUEnever evaluated
FALSEevaluated 431962 times by 330 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
) {
0-431962
888 QMessageLogger(__FILE__, 1029, __PRETTY_FUNCTION__).fatal("Requested type '%s' does not match available type '%s'.",-
889 QMetaType::typeName(typeId),-
890 QMetaType::typeName(data->parent()->elementTypeId(idx)));-
891 }
never executed: end of block
0
892-
893 return
executed 431962 times by 330 tests: return data->data(idx);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
data->data(idx);
executed 431962 times by 330 tests: return data->data(idx);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
431962
894}-
895char *toHexRepresentation(const char *ba, int length)-
896{-
897 if (length == 0
length == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
898 return
never executed: return qstrdup("");
qstrdup("");
never executed: return qstrdup("");
0
899 const int maxLen = 50;-
900 const int len = qMin(maxLen, length);-
901 char *result = 0;-
902-
903 if (length > maxLen
length > maxLenDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
904 const int size = len * 3 + 4;-
905 result = new char[size];-
906-
907 char *const forElipsis = result + size - 5;-
908 forElipsis[0] = ' ';-
909 forElipsis[1] = '.';-
910 forElipsis[2] = '.';-
911 forElipsis[3] = '.';-
912 result[size - 1] = '\0';-
913 }
never executed: end of block
0
914 else {-
915 const int size = len * 3;-
916 result = new char[size];-
917 result[size - 1] = '\0';-
918 }
never executed: end of block
0
919-
920 int i = 0;-
921 int o = 0;-
922-
923 while (true) {-
924 const char at = ba[i];-
925-
926 result[o] = toHexUpper(at >> 4);-
927 ++o;-
928 result[o] = toHexUpper(at);-
929-
930 ++i;-
931 ++o;-
932 if (i == len
i == lenDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
933 break;
never executed: break;
0
934 else {-
935 result[o] = ' ';-
936 ++o;-
937 }
never executed: end of block
0
938 }-
939-
940 return
never executed: return result;
result;
never executed: return result;
0
941}-
942-
943-
944-
945-
946-
947-
948char *toPrettyCString(const char *p, int length)-
949{-
950 bool trimmed = false;-
951 QScopedArrayPointer<char> buffer(new char[256]);-
952 const char *end = p + length;-
953 char *dst = buffer.data();-
954-
955 bool lastWasHexEscape = false;-
956 *dst++ = '"';-
957 for ( ; p != end
p != endDescription
TRUEevaluated 486728 times by 91 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • ...
FALSEevaluated 10490 times by 92 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • ...
; ++p) {
10490-486728
958-
959-
960-
961-
962-
963 if (dst - buffer.data() > 246
dst - buffer.data() > 246Description
TRUEevaluated 1698 times by 23 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QFtp
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QUdpSocket
  • tst_Spdy
  • tst_rcc
  • tst_selftests - unknown status
FALSEevaluated 485030 times by 91 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • ...
) {
1698-485030
964-
965 trimmed = true;-
966 break;
executed 1698 times by 23 tests: break;
Executed by:
  • tst_LargeFile
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QFtp
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QUdpSocket
  • tst_Spdy
  • tst_rcc
  • tst_selftests - unknown status
1698
967 }-
968-
969-
970 if (__builtin_expect(!!(lastWasHexEscape), false)
__builtin_expe...scape), false)Description
TRUEevaluated 45154 times by 31 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QFile
  • tst_QHeaderView
  • tst_QListWidget
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringBuilder1
  • tst_QStringBuilder2
  • tst_QStringBuilder3
  • tst_QStringBuilder4
  • tst_QTableWidget
  • ...
FALSEevaluated 439876 times by 91 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • ...
) {
45154-439876
971 if (fromHex(*p) != -1
fromHex(*p) != -1Description
TRUEevaluated 3244 times by 17 tests
Evaluated by:
  • tst_LargeFile
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QListWidget
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTableWidget
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUuid
  • tst_Utf8
FALSEevaluated 41910 times by 30 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QFile
  • tst_QHeaderView
  • tst_QListWidget
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringBuilder1
  • tst_QStringBuilder2
  • tst_QStringBuilder3
  • tst_QStringBuilder4
  • tst_QTableWidget
  • ...
) {
3244-41910
972-
973 *dst++ = '"';-
974 *dst++ = '"';-
975 }
executed 3244 times by 17 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QListWidget
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTableWidget
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUuid
  • tst_Utf8
3244
976 lastWasHexEscape = false;-
977 }
executed 45154 times by 31 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QFile
  • tst_QHeaderView
  • tst_QListWidget
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringBuilder1
  • tst_QStringBuilder2
  • tst_QStringBuilder3
  • tst_QStringBuilder4
  • tst_QTableWidget
  • ...
45154
978-
979 if (*
*p < 0x7fDescription
TRUEevaluated 482038 times by 91 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • ...
FALSEevaluated 2992 times by 12 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QTextCodec
p < 0x7f
*p < 0x7fDescription
TRUEevaluated 482038 times by 91 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • ...
FALSEevaluated 2992 times by 12 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QTextCodec
&& *
*p >= 0x20Description
TRUEevaluated 428662 times by 90 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • tst_QHeaderView
  • ...
FALSEevaluated 53376 times by 46 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QFile
  • tst_QFtp
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QListWidget
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QResourceEngine
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSqlQuery
  • ...
p >= 0x20
*p >= 0x20Description
TRUEevaluated 428662 times by 90 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • tst_QHeaderView
  • ...
FALSEevaluated 53376 times by 46 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QFile
  • tst_QFtp
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QListWidget
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QResourceEngine
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSqlQuery
  • ...
&& *
*p != '\\'Description
TRUEevaluated 427994 times by 90 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • tst_QHeaderView
  • ...
FALSEevaluated 668 times by 13 tests
Evaluated by:
  • tst_LargeFile
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
p != '\\'
*p != '\\'Description
TRUEevaluated 427994 times by 90 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • tst_QHeaderView
  • ...
FALSEevaluated 668 times by 13 tests
Evaluated by:
  • tst_LargeFile
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
&& *
*p != '"'Description
TRUEevaluated 426848 times by 90 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • tst_QHeaderView
  • ...
FALSEevaluated 1146 times by 17 tests
Evaluated by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_qmake
  • tst_rcc
p != '"'
*p != '"'Description
TRUEevaluated 426848 times by 90 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • tst_QHeaderView
  • ...
FALSEevaluated 1146 times by 17 tests
Evaluated by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_qmake
  • tst_rcc
) {
668-482038
980 *dst++ = *p;-
981 continue;
executed 426848 times by 90 tests: continue;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • tst_QHeaderView
  • ...
426848
982 }-
983-
984-
985-
986 *dst++ = '\\';-
987 switch (*p) {-
988 case
executed 668 times by 13 tests: case 0x5c:
Executed by:
  • tst_LargeFile
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
0x5c:
executed 668 times by 13 tests: case 0x5c:
Executed by:
  • tst_LargeFile
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
668
989 case
executed 1146 times by 17 tests: case 0x22:
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_qmake
  • tst_rcc
0x22:
executed 1146 times by 17 tests: case 0x22:
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_qmake
  • tst_rcc
1146
990 *dst++ = uchar(*p);-
991 break;
executed 1814 times by 19 tests: break;
Executed by:
  • tst_LargeFile
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_qmake
  • tst_rcc
1814
992 case
executed 290 times by 12 tests: case 0x8:
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QMessageAuthenticationCode
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
0x8:
executed 290 times by 12 tests: case 0x8:
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QMessageAuthenticationCode
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
290
993 *dst++ = 'b';-
994 break;
executed 290 times by 12 tests: break;
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QMessageAuthenticationCode
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
290
995 case
executed 310 times by 13 tests: case 0xc:
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
0xc:
executed 310 times by 13 tests: case 0xc:
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
310
996 *dst++ = 'f';-
997 break;
executed 310 times by 13 tests: break;
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
310
998 case
executed 7458 times by 34 tests: case 0xa:
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QFtp
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QListWidget
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QResourceEngine
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QString
  • tst_QTableWidget
  • ...
0xa:
executed 7458 times by 34 tests: case 0xa:
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QFtp
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QListWidget
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QResourceEngine
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QString
  • tst_QTableWidget
  • ...
7458
999 *dst++ = 'n';-
1000 break;
executed 7458 times by 34 tests: break;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QFtp
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QListWidget
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QResourceEngine
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QString
  • tst_QTableWidget
  • ...
7458
1001 case
executed 930 times by 15 tests: case 0xd:
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QVariant
0xd:
executed 930 times by 15 tests: case 0xd:
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QVariant
930
1002 *dst++ = 'r';-
1003 break;
executed 930 times by 15 tests: break;
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QVariant
930
1004 case
executed 872 times by 13 tests: case 0x9:
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
0x9:
executed 872 times by 13 tests: case 0x9:
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
872
1005 *dst++ = 't';-
1006 break;
executed 872 times by 13 tests: break;
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QFile
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QVariant
872
1007 default
executed 46508 times by 32 tests: default:
Executed by:
  • tst_LargeFile
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QFile
  • tst_QHeaderView
  • tst_QListWidget
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSocketNotifier
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringBuilder1
  • tst_QStringBuilder2
  • tst_QStringBuilder3
  • tst_QStringBuilder4
  • ...
:
executed 46508 times by 32 tests: default:
Executed by:
  • tst_LargeFile
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QFile
  • tst_QHeaderView
  • tst_QListWidget
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSocketNotifier
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringBuilder1
  • tst_QStringBuilder2
  • tst_QStringBuilder3
  • tst_QStringBuilder4
  • ...
46508
1008-
1009 *dst++ = 'x';-
1010 *dst++ = toHexUpper(uchar(*p) >> 4);-
1011 *dst++ = toHexUpper(uchar(*p));-
1012 lastWasHexEscape = true;-
1013 break;
executed 46508 times by 32 tests: break;
Executed by:
  • tst_LargeFile
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QFile
  • tst_QHeaderView
  • tst_QListWidget
  • tst_QMessageAuthenticationCode
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSocketNotifier
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QStringBuilder1
  • tst_QStringBuilder2
  • tst_QStringBuilder3
  • tst_QStringBuilder4
  • ...
46508
1014 }-
1015 }-
1016-
1017 *dst++ = '"';-
1018 if (trimmed
trimmedDescription
TRUEevaluated 1698 times by 23 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QFtp
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QUdpSocket
  • tst_Spdy
  • tst_rcc
  • tst_selftests - unknown status
FALSEevaluated 10490 times by 92 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • tst_QGetPutEnv
  • ...
) {
1698-10490
1019 *dst++ = '.';-
1020 *dst++ = '.';-
1021 *dst++ = '.';-
1022 }
executed 1698 times by 23 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QFtp
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRingBuffer
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QUdpSocket
  • tst_Spdy
  • tst_rcc
  • tst_selftests - unknown status
1698
1023 *dst++ = '\0';-
1024 return
executed 12188 times by 94 tests: return buffer.take();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • ...
buffer.take();
executed 12188 times by 94 tests: return buffer.take();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QByteDataBuffer
  • tst_QCryptographicHash
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemEntry
  • tst_QFtp
  • ...
12188
1025}-
1026char *toPrettyUnicode(const ushort *p, int length)-
1027{-
1028-
1029 bool trimmed = false;-
1030 QScopedArrayPointer<char> buffer(new char[256]);-
1031 const ushort *end = p + length;-
1032 char *dst = buffer.data();-
1033-
1034 *dst++ = '"';-
1035 for ( ; p != end
p != endDescription
TRUEevaluated 3520188 times by 253 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QByteArray
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 193693 times by 257 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
; ++p) {
193693-3520188
1036 if (dst - buffer.data() > 245
dst - buffer.data() > 245Description
TRUEevaluated 4399 times by 19 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QFile
  • tst_QFileInfo
  • tst_QHeaderView
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QProcessEnvironment
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextPieceTable
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_qdbuscpp2xml
  • tst_uic
FALSEevaluated 3515789 times by 253 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QByteArray
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
) {
4399-3515789
1037-
1038 trimmed = true;-
1039 break;
executed 4399 times by 19 tests: break;
Executed by:
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QFile
  • tst_QFileInfo
  • tst_QHeaderView
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QProcessEnvironment
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextPieceTable
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_qdbuscpp2xml
  • tst_uic
4399
1040 }-
1041-
1042 if (*
*p < 0x7fDescription
TRUEevaluated 3506869 times by 252 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QByteArray
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
FALSEevaluated 8920 times by 44 tests
Evaluated by:
  • tst_QChar
  • tst_QComplexText
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFontMetrics
  • tst_QImageReader
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QProgressBar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringBuilder1
  • tst_QStringBuilder2
  • ...
p < 0x7f
*p < 0x7fDescription
TRUEevaluated 3506869 times by 252 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QByteArray
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
FALSEevaluated 8920 times by 44 tests
Evaluated by:
  • tst_QChar
  • tst_QComplexText
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFontMetrics
  • tst_QImageReader
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QProgressBar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringBuilder1
  • tst_QStringBuilder2
  • ...
&& *
*p >= 0x20Description
TRUEevaluated 3484005 times by 252 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QByteArray
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
FALSEevaluated 22864 times by 44 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCheckBox
  • tst_QCommandLineParser
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QGraphicsItem
  • tst_QHeaderView
  • tst_QImage
  • tst_QImageReader
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMimeData
  • tst_QNetworkRequest
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • ...
p >= 0x20
*p >= 0x20Description
TRUEevaluated 3484005 times by 252 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QByteArray
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
FALSEevaluated 22864 times by 44 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCheckBox
  • tst_QCommandLineParser
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QGraphicsItem
  • tst_QHeaderView
  • tst_QImage
  • tst_QImageReader
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMimeData
  • tst_QNetworkRequest
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • ...
&& *
*p != '\\'Description
TRUEevaluated 3483073 times by 252 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QByteArray
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
FALSEevaluated 932 times by 15 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDebug
  • tst_QDir
  • tst_QImageReader
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QString
  • tst_QUrl
  • tst_QUrlQuery
  • tst_QXmlSimpleReader
  • tst_qmakelib
p != '\\'
*p != '\\'Description
TRUEevaluated 3483073 times by 252 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QByteArray
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
FALSEevaluated 932 times by 15 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDebug
  • tst_QDir
  • tst_QImageReader
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QString
  • tst_QUrl
  • tst_QUrlQuery
  • tst_QXmlSimpleReader
  • tst_qmakelib
&& *
*p != '"'Description
TRUEevaluated 3430061 times by 252 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QByteArray
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
FALSEevaluated 53012 times by 19 tests
Evaluated by:
  • tst_QComplexText
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QImageReader
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QTextDocument
  • tst_QTextList
  • tst_QTextPieceTable
  • tst_QUrl
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qmakelib
p != '"'
*p != '"'Description
TRUEevaluated 3430061 times by 252 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QByteArray
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
FALSEevaluated 53012 times by 19 tests
Evaluated by:
  • tst_QComplexText
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QImageReader
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QTextDocument
  • tst_QTextList
  • tst_QTextPieceTable
  • tst_QUrl
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qmakelib
) {
932-3506869
1043 *dst++ = *p;-
1044 continue;
executed 3430061 times by 252 tests: continue;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QByteArray
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
3430061
1045 }-
1046-
1047-
1048-
1049 *dst++ = '\\';-
1050 switch (*p) {-
1051 case
executed 53012 times by 19 tests: case 0x22:
Executed by:
  • tst_QComplexText
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QImageReader
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QTextDocument
  • tst_QTextList
  • tst_QTextPieceTable
  • tst_QUrl
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qmakelib
0x22:
executed 53012 times by 19 tests: case 0x22:
Executed by:
  • tst_QComplexText
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QImageReader
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QTextDocument
  • tst_QTextList
  • tst_QTextPieceTable
  • tst_QUrl
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qmakelib
53012
1052 case
executed 932 times by 15 tests: case 0x5c:
Executed by:
  • tst_QDataStream
  • tst_QDebug
  • tst_QDir
  • tst_QImageReader
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QString
  • tst_QUrl
  • tst_QUrlQuery
  • tst_QXmlSimpleReader
  • tst_qmakelib
0x5c:
executed 932 times by 15 tests: case 0x5c:
Executed by:
  • tst_QDataStream
  • tst_QDebug
  • tst_QDir
  • tst_QImageReader
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QString
  • tst_QUrl
  • tst_QUrlQuery
  • tst_QXmlSimpleReader
  • tst_qmakelib
932
1053 *dst++ = uchar(*p);-
1054 break;
executed 53944 times by 26 tests: break;
Executed by:
  • tst_QComplexText
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QDir
  • tst_QImageReader
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QString
  • tst_QTextDocument
  • tst_QTextList
  • tst_QTextPieceTable
  • tst_QUrl
  • tst_QUrlQuery
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbuscpp2xml
  • ...
53944
1055 case
executed 2 times by 1 test: case 0x8:
Executed by:
  • tst_QSettings
0x8:
executed 2 times by 1 test: case 0x8:
Executed by:
  • tst_QSettings
2
1056 *dst++ = 'b';-
1057 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QSettings
2
1058 case
executed 18 times by 3 tests: case 0xc:
Executed by:
  • tst_QTextPieceTable
  • tst_QVariant
  • tst_QXmlSimpleReader
0xc:
executed 18 times by 3 tests: case 0xc:
Executed by:
  • tst_QTextPieceTable
  • tst_QVariant
  • tst_QXmlSimpleReader
18
1059 *dst++ = 'f';-
1060 break;
executed 18 times by 3 tests: break;
Executed by:
  • tst_QTextPieceTable
  • tst_QVariant
  • tst_QXmlSimpleReader
18
1061 case
executed 21838 times by 38 tests: case 0xa:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCheckBox
  • tst_QCommandLineParser
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QHeaderView
  • tst_QImage
  • tst_QImageReader
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMimeData
  • tst_QNetworkRequest
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QString
  • ...
0xa:
executed 21838 times by 38 tests: case 0xa:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCheckBox
  • tst_QCommandLineParser
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QHeaderView
  • tst_QImage
  • tst_QImageReader
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMimeData
  • tst_QNetworkRequest
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QString
  • ...
21838
1062 *dst++ = 'n';-
1063 break;
executed 21838 times by 38 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCheckBox
  • tst_QCommandLineParser
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QHeaderView
  • tst_QImage
  • tst_QImageReader
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMimeData
  • tst_QNetworkRequest
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QString
  • ...
21838
1064 case
executed 80 times by 7 tests: case 0xd:
Executed by:
  • tst_QSocks5SocketEngine
  • tst_QString
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
0xd:
executed 80 times by 7 tests: case 0xd:
Executed by:
  • tst_QSocks5SocketEngine
  • tst_QString
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
80
1065 *dst++ = 'r';-
1066 break;
executed 80 times by 7 tests: break;
Executed by:
  • tst_QSocks5SocketEngine
  • tst_QString
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
80
1067 case
executed 154 times by 7 tests: case 0x9:
Executed by:
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDebug
  • tst_QGraphicsItem
  • tst_QSettings
  • tst_QString
  • tst_QUrl
0x9:
executed 154 times by 7 tests: case 0x9:
Executed by:
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDebug
  • tst_QGraphicsItem
  • tst_QSettings
  • tst_QString
  • tst_QUrl
154
1068 *dst++ = 't';-
1069 break;
executed 154 times by 7 tests: break;
Executed by:
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDebug
  • tst_QGraphicsItem
  • tst_QSettings
  • tst_QString
  • tst_QUrl
154
1070 default
executed 9692 times by 45 tests: default:
Executed by:
  • tst_QChar
  • tst_QComplexText
  • tst_QDataStream
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFontMetrics
  • tst_QImageReader
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QProgressBar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringBuilder1
  • ...
:
executed 9692 times by 45 tests: default:
Executed by:
  • tst_QChar
  • tst_QComplexText
  • tst_QDataStream
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFontMetrics
  • tst_QImageReader
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QProgressBar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringBuilder1
  • ...
9692
1071 *dst++ = 'u';-
1072 *dst++ = toHexUpper(*p >> 12);-
1073 *dst++ = toHexUpper(*p >> 8);-
1074 *dst++ = toHexUpper(*p >> 4);-
1075 *dst++ = toHexUpper(*p);-
1076 }
executed 9692 times by 45 tests: end of block
Executed by:
  • tst_QChar
  • tst_QComplexText
  • tst_QDataStream
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFontMetrics
  • tst_QImageReader
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QPlainTextEdit
  • tst_QProgressBar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringBuilder1
  • ...
9692
1077 }-
1078-
1079 *dst++ = '"';-
1080 if (trimmed
trimmedDescription
TRUEevaluated 4399 times by 19 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QFile
  • tst_QFileInfo
  • tst_QHeaderView
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QProcessEnvironment
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextPieceTable
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_qdbuscpp2xml
  • tst_uic
FALSEevaluated 193693 times by 257 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
) {
4399-193693
1081 *dst++ = '.';-
1082 *dst++ = '.';-
1083 *dst++ = '.';-
1084 }
executed 4399 times by 19 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDebug
  • tst_QFile
  • tst_QFileInfo
  • tst_QHeaderView
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QProcessEnvironment
  • tst_QSslCertificate
  • tst_QString
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextPieceTable
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_qdbuscpp2xml
  • tst_uic
4399
1085 *dst++ = '\0';-
1086 return
executed 198092 times by 259 tests: return buffer.take();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
buffer.take();
executed 198092 times by 259 tests: return buffer.take();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
198092
1087}-
1088-
1089static bool debuggerPresent()-
1090{-
1091-
1092 int fd = open("/proc/self/status", 00);-
1093 if (fd == -1
fd == -1Description
TRUEnever evaluated
FALSEevaluated 1320 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
0-1320
1094 return
never executed: return false;
false;
never executed: return false;
0
1095 char buffer[2048];-
1096 ssize_t size = read(fd, buffer, sizeof(buffer) - 1);-
1097 if (size == -1
size == -1Description
TRUEnever evaluated
FALSEevaluated 1320 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) {
0-1320
1098 close(fd);-
1099 return
never executed: return false;
false;
never executed: return false;
0
1100 }-
1101 buffer[size] = 0;-
1102 const char tracerPidToken[] = "\nTracerPid:";-
1103 char *tracerPid = strstr(buffer, tracerPidToken);-
1104 if (!tracerPid
!tracerPidDescription
TRUEnever evaluated
FALSEevaluated 1320 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) {
0-1320
1105 close(fd);-
1106 return
never executed: return false;
false;
never executed: return false;
0
1107 }-
1108 tracerPid += sizeof(tracerPidToken);-
1109 long int pid = strtol(tracerPid, &tracerPid, 10);-
1110 close(fd);-
1111 return
executed 1320 times by 506 tests: return pid != 0;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
pid != 0;
executed 1320 times by 506 tests: return pid != 0;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1320
1112-
1113-
1114-
1115-
1116-
1117-
1118}-
1119-
1120void TestMethods::invokeTests(QObject *testObject) const-
1121{-
1122 const QMetaObject *metaObject = testObject->metaObject();-
1123 do { if (!(metaObject)
!(metaObject)Description
TRUEnever evaluated
FALSEevaluated 1320 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) qt_assert("metaObject",__FILE__,1291);
never executed: qt_assert("metaObject",__FILE__,1291);
} while (0);
0-1320
1124 QTestLog::startLogging();-
1125 QTestResult::setCurrentTestFunction("initTestCase");-
1126 QTestTable::globalTestTable();-
1127 if (m_initTestCaseDataMethod.isValid()
m_initTestCase...thod.isValid()Description
TRUEevaluated 85 times by 11 tests
Evaluated by:
  • tst_QFtp
  • tst_QSqlDriver
  • tst_QSqlRelationalTableModel
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_qdbusxml2cpp
  • tst_selftests - unknown status
FALSEevaluated 1235 times by 496 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
85-1235
1128 m_initTestCaseDataMethod.invoke(testObject, Qt::DirectConnection);
executed 85 times by 11 tests: m_initTestCaseDataMethod.invoke(testObject, Qt::DirectConnection);
Executed by:
  • tst_QFtp
  • tst_QSqlDriver
  • tst_QSqlRelationalTableModel
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_qdbusxml2cpp
  • tst_selftests - unknown status
85
1129-
1130 QScopedPointer<WatchDog> watchDog;-
1131 if (!debuggerPresent()
!debuggerPresent()Description
TRUEevaluated 1320 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEnever evaluated
0-1320
1132-
1133 && QBenchmarkGlobalData::current->mode() != QBenchmarkGlobalData::CallgrindChildProcess
QBenchmarkGlob...ndChildProcessDescription
TRUEevaluated 1320 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEnever evaluated
0-1320
1134-
1135 ) {-
1136 watchDog.reset(new WatchDog);-
1137 }
executed 1320 times by 506 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1320
1138-
1139 if (!QTestResult::skipCurrentTest()
!QTestResult::...pCurrentTest()Description
TRUEevaluated 1295 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
&& !QTest::currentTestFailed()
!QTest::currentTestFailed()Description
TRUEevaluated 1270 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
25-1295
1140 if (m_initTestCaseMethod.isValid()
m_initTestCaseMethod.isValid()Description
TRUEevaluated 316 times by 190 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QAtomicInteger_schar
  • tst_QAtomicInteger_short
  • ...
FALSEevaluated 954 times by 317 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_ModelTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicPointer
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
)
316-954
1141 m_initTestCaseMethod.invoke(testObject, Qt::DirectConnection);
executed 316 times by 190 tests: m_initTestCaseMethod.invoke(testObject, Qt::DirectConnection);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QAtomicInteger_schar
  • tst_QAtomicInteger_short
  • ...
316
1142-
1143-
1144 const bool previousFailed = QTestResult::currentTestFailed();-
1145 QTestResult::finishedCurrentTestData();-
1146 QTestResult::finishedCurrentTestDataCleanup();-
1147 QTestResult::finishedCurrentTestFunction();-
1148-
1149 if (!QTestResult::skipCurrentTest()
!QTestResult::...pCurrentTest()Description
TRUEevaluated 1244 times by 505 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 26 times by 2 tests
Evaluated by:
  • tst_Lancelot
  • tst_selftests - unknown status
&& !previousFailed
!previousFailedDescription
TRUEevaluated 1217 times by 503 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 27 times by 3 tests
Evaluated by:
  • tst_QLocale
  • tst_QThreadStorage
  • tst_selftests - unknown status
) {
26-1244
1150 for (int i = 0, count = int(m_methods.size()); i < count
i < countDescription
TRUEevaluated 13256 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 1135 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
; ++i) {
1135-13256
1151 const char *data = nullptr;-
1152 if (i < QTest::testTags.size()
i < QTest::testTags.size()Description
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 13192 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
&& !QTest::testTags.at(i).isEmpty()
!QTest::testTa...t(i).isEmpty()Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 37 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
)
27-13192
1153 data = qstrdup(QTest::testTags.at(i).toLatin1().constData());
executed 27 times by 1 test: data = qstrdup(QTest::testTags.at(i).toLatin1().constData());
Executed by:
  • tst_selftests - unknown status
27
1154 const bool ok = invokeTest(i, data, watchDog.data());-
1155 delete [] data;-
1156 if (!ok
!okDescription
TRUEnever evaluated
FALSEevaluated 13174 times by 502 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
)
0-13174
1157 break;
never executed: break;
0
1158 }
executed 13174 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
13174
1159 }
executed 1135 times by 502 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
1135
1160-
1161 QTestResult::setSkipCurrentTest(false);-
1162 QTestResult::setBlacklistCurrentTest(false);-
1163 QTestResult::setCurrentTestFunction("cleanupTestCase");-
1164 if (m_cleanupTestCaseMethod.isValid()
m_cleanupTestC...thod.isValid()Description
TRUEevaluated 210 times by 85 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QCache
  • tst_QCheckBox
  • tst_QCommandLinkButton
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileInfo
  • tst_QFocusEvent
  • ...
FALSEevaluated 978 times by 421 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • ...
)
210-978
1165 m_cleanupTestCaseMethod.invoke(testObject, Qt::DirectConnection);
executed 210 times by 85 tests: m_cleanupTestCaseMethod.invoke(testObject, Qt::DirectConnection);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QCache
  • tst_QCheckBox
  • tst_QCommandLinkButton
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileInfo
  • tst_QFocusEvent
  • ...
210
1166 QTestResult::finishedCurrentTestData();-
1167 QTestResult::finishedCurrentTestDataCleanup();-
1168 }
executed 1188 times by 505 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1188
1169 QTestResult::finishedCurrentTestFunction();-
1170 QTestResult::setCurrentTestFunction(0);-
1171 QTestTable::clearGlobalTestTable();-
1172-
1173 QTestLog::stopLogging();-
1174}
executed 1238 times by 508 tests: end of block
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
1238
1175-
1176-
1177class FatalSignalHandler-
1178{-
1179public:-
1180 FatalSignalHandler();-
1181 ~FatalSignalHandler();-
1182-
1183private:-
1184 static void signal(int);-
1185 sigset_t handledSignals;-
1186};-
1187-
1188void FatalSignalHandler::signal(int signum)-
1189{-
1190 const int msecsFunctionTime = qRound(QTestLog::msecsFunctionTime());-
1191 const int msecsTotalTime = qRound(QTestLog::msecsTotalTime());-
1192 if (signum != 2
signum != 2Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1193 stackTrace();
never executed: stackTrace();
0
1194 QMessageLogger(__FILE__, 1362, __PRETTY_FUNCTION__).fatal("Received signal %d\n"-
1195 " Function time: %dms Total time: %dms",-
1196 signum, msecsFunctionTime, msecsTotalTime);-
1197}
never executed: end of block
0
1198-
1199FatalSignalHandler::FatalSignalHandler()-
1200{-
1201 sigemptyset(&handledSignals);-
1202-
1203 const int fatalSignals[] = {-
1204 1, 2, 3, 4, 7, 8, 11, 13, 15, 0 };-
1205-
1206 struct sigaction act;-
1207 memset(&act, 0, sizeof(act));-
1208 act.__sigaction_handler.sa_handler = FatalSignalHandler::signal;-
1209-
1210-
1211-
1212 act.sa_flags = 0x80000000;-
1213 __attribute__((section(".lbss.altstack"), aligned(4096)))-
1214-
1215 static char alternate_stack[16 * 1024];-
1216 stack_t stack;-
1217 stack.ss_flags = 0;-
1218 stack.ss_size = sizeof alternate_stack;-
1219 stack.ss_sp = alternate_stack;-
1220 sigaltstack(&stack, 0);-
1221 act.sa_flags |= 0x08000000;-
1222-
1223-
1224-
1225-
1226 sigemptyset(&act.sa_mask);-
1227 for (int i = 0; fatalSignals[i]
fatalSignals[i]Description
TRUEevaluated 11880 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 1320 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
; ++i)
1320-11880
1228 sigaddset(&act.sa_mask, fatalSignals[i]);
executed 11880 times by 506 tests: sigaddset(&act.sa_mask, fatalSignals[i]);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
11880
1229-
1230 struct sigaction oldact;-
1231-
1232 for (int i = 0; fatalSignals[i]
fatalSignals[i]Description
TRUEevaluated 11880 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 1320 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
; ++i) {
1320-11880
1233 sigaction(fatalSignals[i], &act, &oldact);-
1234 if (-
1235-
1236 oldact.sa_flags & 4
oldact.sa_flags & 4Description
TRUEnever evaluated
FALSEevaluated 11880 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
||
0-11880
1237-
1238 oldact.__sigaction_handler.sa_handler != ((__sighandler_t) 0)
oldact.__sigac...ghandler_t) 0)Description
TRUEevaluated 6600 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 5280 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) {
5280-6600
1239 sigaction(fatalSignals[i], &oldact, 0);-
1240 }
executed 6600 times by 506 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
else
6600
1241 {-
1242 sigaddset(&handledSignals, fatalSignals[i]);-
1243 }
executed 5280 times by 506 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
5280
1244 }-
1245}
executed 1320 times by 506 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1320
1246-
1247-
1248FatalSignalHandler::~FatalSignalHandler()-
1249{-
1250-
1251 struct sigaction act;-
1252 memset(&act, 0, sizeof(act));-
1253 act.__sigaction_handler.sa_handler = ((__sighandler_t) 0);-
1254-
1255 struct sigaction oldact;-
1256-
1257 for (int i = 1; i < 32
i < 32Description
TRUEevaluated 39153 times by 508 tests
Evaluated by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
FALSEevaluated 1263 times by 508 tests
Evaluated by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
; ++i) {
1263-39153
1258 if (!sigismember(&handledSignals, i)
!sigismember(&...ledSignals, i)Description
TRUEevaluated 34101 times by 508 tests
Evaluated by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
FALSEevaluated 5052 times by 508 tests
Evaluated by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
)
5052-34101
1259 continue;
executed 34101 times by 508 tests: continue;
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
34101
1260 sigaction(i, &act, &oldact);-
1261-
1262-
1263 if (oldact.__sigaction_handler.sa_handler != FatalSignalHandler::signal
oldact.__sigac...andler::signalDescription
TRUEevaluated 66 times by 66 tests
Evaluated by:
  • tst_lancelot - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qapplication - unknown status
  • tst_qcommandlineparser - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdir - unknown status
  • tst_qeventloop - unknown status
  • tst_qfile - unknown status
  • tst_qfont - unknown status
  • tst_qftp - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpnetworkconnection - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qicon - unknown status
  • tst_qimagereader - unknown status
  • ...
FALSEevaluated 4986 times by 508 tests
Evaluated by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
)
66-4986
1264 sigaction(i, &oldact, 0);
executed 66 times by 66 tests: sigaction(i, &oldact, 0);
Executed by:
  • tst_lancelot - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qapplication - unknown status
  • tst_qcommandlineparser - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qdir - unknown status
  • tst_qeventloop - unknown status
  • tst_qfile - unknown status
  • tst_qfont - unknown status
  • tst_qftp - unknown status
  • tst_qguieventloop - unknown status
  • tst_qhttpnetworkconnection - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qicon - unknown status
  • tst_qimagereader - unknown status
  • ...
66
1265 }
executed 5052 times by 508 tests: end of block
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
5052
1266}
executed 1263 times by 508 tests: end of block
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
1263
1267-
1268-
1269-
1270-
1271}-
1272static void initEnvironment()-
1273{-
1274 qputenv("QT_LOGGING_TO_CONSOLE", "1");-
1275 qputenv("QT_QTESTLIB_RUNNING", "1");-
1276}
executed 815 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
815
1277int QTest::qExec(QObject *testObject, int argc, char **argv)-
1278{-
1279 initEnvironment();-
1280 QBenchmarkGlobalData benchmarkData;-
1281 QBenchmarkGlobalData::current = &benchmarkData;-
1282-
1283-
1284 int callgrindChildExitCode = 0;-
1285 try {-
1286 QTestPrivate::parseBlackList();-
1287 QTestPrivate::parseGpuBlackList();-
1288-
1289 QTestResult::reset();-
1290-
1291 do { if (!(testObject)
!(testObject)Description
TRUEnever evaluated
FALSEevaluated 815 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) qt_assert("testObject",__FILE__,1677);
never executed: qt_assert("testObject",__FILE__,1677);
} while (0);
0-815
1292 do { if (!(!currentTestObject)
!(!currentTestObject)Description
TRUEnever evaluated
FALSEevaluated 815 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) qt_assert("!currentTestObject",__FILE__,1678);
never executed: qt_assert("!currentTestObject",__FILE__,1678);
} while (0);
0-815
1293 currentTestObject = testObject;-
1294-
1295 const QMetaObject *metaObject = testObject->metaObject();-
1296 do { if (!(metaObject)
!(metaObject)Description
TRUEnever evaluated
FALSEevaluated 815 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) qt_assert("metaObject",__FILE__,1682);
never executed: qt_assert("metaObject",__FILE__,1682);
} while (0);
0-815
1297-
1298 QTestResult::setCurrentTestObject(metaObject->className());-
1299 if (argc > 0
argc > 0Description
TRUEevaluated 815 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-815
1300 QTestResult::setCurrentAppName(argv[0]);
executed 815 times by 1 test: QTestResult::setCurrentAppName(argv[0]);
Executed by:
  • tst_selftests - unknown status
815
1301-
1302 qtest_qParseArgs(argc, argv, false);-
1303 if (QBenchmarkGlobalData::current->mode() == QBenchmarkGlobalData::CallgrindParentProcess
QBenchmarkGlob...dParentProcessDescription
TRUEnever evaluated
FALSEevaluated 1320 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) {
0-1320
1304 if (__builtin_expect(!!(!QCoreApplication::instance()), false)
__builtin_expe...nce()), false)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1305 QMessageLogger(__FILE__, 1705, __PRETTY_FUNCTION__).fatal("QtTest: -callgrind option is not available with QTEST_APPLESS_MAIN");
never executed: QMessageLogger(__FILE__, 1705, __PRETTY_FUNCTION__).fatal("QtTest: -callgrind option is not available with QTEST_APPLESS_MAIN");
0
1306-
1307 const QStringList origAppArgs(QCoreApplication::arguments());-
1308 if (!QBenchmarkValgrindUtils::rerunThroughCallgrind(origAppArgs, callgrindChildExitCode)
!QBenchmarkVal...ChildExitCode)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1309 return
never executed: return -1;
-1;
never executed: return -1;
0
1310-
1311 QBenchmarkValgrindUtils::cleanup();-
1312-
1313 }
never executed: end of block
else
0
1314-
1315 {-
1316-
1317 QScopedPointer<FatalSignalHandler> handler;-
1318 if (!noCrashHandler
!noCrashHandlerDescription
TRUEevaluated 1320 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEnever evaluated
)
0-1320
1319 handler.reset(new FatalSignalHandler);
executed 1320 times by 506 tests: handler.reset(new FatalSignalHandler);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1320
1320-
1321 TestMethods::MetaMethods commandLineMethods;-
1322 for (const QString &tf : qAsConst(QTest::testFunctions)) {-
1323 const QByteArray tfB = tf.toLatin1();-
1324 const QByteArray signature = tfB + ([]() -> QByteArray { enum { Size = sizeof("()") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "()" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 64 times by 1 test: return ba;
Executed by:
  • tst_selftests - unknown status
ba;
executed 64 times by 1 test: return ba;
Executed by:
  • tst_selftests - unknown status
}());
64
1325 QMetaMethod m = TestMethods::findMethod(testObject, signature.constData());-
1326 if (!m.isValid()
!m.isValid()Description
TRUEnever evaluated
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
|| !isValidSlot(m)
!isValidSlot(m)Description
TRUEnever evaluated
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
0-64
1327 fprintf(stderr, "Unknown test function: '%s'. Possible matches:\n", tfB.constData());-
1328 qPrintTestSlots(stderr, tfB.constData());-
1329 fprintf(stderr, "\n%s -functions\nlists all available test functions.\n", argv[0]);-
1330 exit(1);
never executed: exit(1);
0
1331 }-
1332 commandLineMethods.push_back(m);-
1333 }
executed 64 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
64
1334 TestMethods test(testObject, commandLineMethods);-
1335 test.invokeTests(testObject);-
1336 }
executed 1238 times by 508 tests: end of block
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
1238
1337-
1338-
1339 } catch (...) {-
1340 QTestResult::addFailure("Caught unhandled exception", __FILE__, 1740);-
1341 if (QTestResult::currentTestFunction()
QTestResult::c...TestFunction()Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEnever evaluated
) {
0-25
1342 QTestResult::finishedCurrentTestFunction();-
1343 QTestResult::setCurrentTestFunction(0);-
1344 }
executed 25 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
25
1345-
1346 QTestLog::stopLogging();-
1347-
1348-
1349-
1350-
1351-
1352 currentTestObject = 0;-
1353-
1354-
1355 throw;
executed 25 times by 1 test: throw;
Executed by:
  • tst_selftests - unknown status
25
1356 return
dead code: return 1;
1;
dead code: return 1;
-
1357 }-
1358-
1359-
1360 currentTestObject = 0;-
1361-
1362 QSignalDumper::endDump();-
1363 if (QBenchmarkGlobalData::current->mode() == QBenchmarkGlobalData::CallgrindParentProcess
QBenchmarkGlob...dParentProcessDescription
TRUEnever evaluated
FALSEevaluated 1238 times by 508 tests
Evaluated by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
)
0-1238
1364 return
never executed: return callgrindChildExitCode;
callgrindChildExitCode;
never executed: return callgrindChildExitCode;
0
1365-
1366-
1367-
1368 return
executed 1238 times by 508 tests: return qMin(QTestLog::failCount(), 127);
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
qMin(QTestLog::failCount(), 127);
executed 1238 times by 508 tests: return qMin(QTestLog::failCount(), 127);
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • ...
1238
1369}-
1370int QTest::qExec(QObject *testObject, const QStringList &arguments)-
1371{-
1372 const int argc = arguments.count();-
1373 QVarLengthArray<char *> argv(argc);-
1374-
1375 QVector<QByteArray> args;-
1376 args.reserve(argc);-
1377-
1378 for (int i = 0; i < argc
i < argcDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
; ++i)
12-22
1379 {-
1380 args.append(arguments.at(i).toLocal8Bit().constData());-
1381 argv[i] = args.last().data();-
1382 }
executed 22 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
22
1383-
1384 return
executed 12 times by 1 test: return qExec(testObject, argc, argv.data());
Executed by:
  • tst_selftests - unknown status
qExec(testObject, argc, argv.data());
executed 12 times by 1 test: return qExec(testObject, argc, argv.data());
Executed by:
  • tst_selftests - unknown status
12
1385}-
1386-
1387-
1388-
1389void QTest::qFail(const char *statementStr, const char *file, int line)-
1390{-
1391 QTestResult::addFailure(statementStr, file, line);-
1392}
executed 462 times by 2 tests: end of block
Executed by:
  • tst_QFtp
  • tst_selftests - unknown status
462
1393-
1394-
1395-
1396bool QTest::qVerify(bool statement, const char *statementStr, const char *description,-
1397 const char *file, int line)-
1398{-
1399 return
executed 13110397 times by 453 tests: return QTestResult::verify(statement, statementStr, description, file, line);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
QTestResult::verify(statement, statementStr, description, file, line);
executed 13110397 times by 453 tests: return QTestResult::verify(statement, statementStr, description, file, line);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
13110397
1400}-
1401-
1402-
1403-
1404-
1405void QTest::qSkip(const char *message, const char *file, int line)-
1406{-
1407 QTestResult::addSkip(message, file, line);-
1408 QTestResult::setSkipCurrentTest(true);-
1409}
executed 1403 times by 56 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QCssParser
  • tst_QDBusConnection_NoApplication
  • tst_QDBusLocalCalls
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDialog
  • tst_QDir
  • tst_QDockWidget
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGLThreads
  • tst_QGraphicsProxyWidget
  • tst_QIODevice
  • tst_QImageReader
  • tst_QItemView
  • tst_QLockFile
  • tst_QMainWindow
  • ...
1403
1410-
1411-
1412-
1413-
1414bool QTest::qExpectFail(const char *dataIndex, const char *comment,-
1415 QTest::TestFailMode mode, const char *file, int line)-
1416{-
1417 return
executed 8466 times by 39 tests: return QTestResult::expectFail(dataIndex, qstrdup(comment), mode, file, line);
Executed by:
  • tst_LargeFile
  • tst_QAbstractPrintDialog
  • tst_QAuthenticator
  • tst_QColumnView
  • tst_QDBusAbstractInterface
  • tst_QDateTime
  • tst_QEventLoop
  • tst_QFile
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QLatin1String
  • tst_QLineEdit
  • tst_QMenu
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSqlDatabase
  • ...
QTestResult::expectFail(dataIndex, qstrdup(comment), mode, file, line);
executed 8466 times by 39 tests: return QTestResult::expectFail(dataIndex, qstrdup(comment), mode, file, line);
Executed by:
  • tst_LargeFile
  • tst_QAbstractPrintDialog
  • tst_QAuthenticator
  • tst_QColumnView
  • tst_QDBusAbstractInterface
  • tst_QDateTime
  • tst_QEventLoop
  • tst_QFile
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QLatin1String
  • tst_QLineEdit
  • tst_QMenu
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSqlDatabase
  • ...
8466
1418}-
1419-
1420-
1421-
1422void QTest::qWarn(const char *message, const char *file, int line)-
1423{-
1424 QTestLog::warn(message, file, line);-
1425}
executed 949 times by 13 tests: end of block
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QMouseEvent
  • tst_QPluginLoader
  • tst_QSqlQuery
  • tst_QString_NoCastFromByteArray
  • tst_QTreeView
  • tst_QWidget
  • tst_selftests - unknown status
949
1426void QTest::ignoreMessage(QtMsgType type, const char *message)-
1427{-
1428 QTestLog::ignoreMessage(type, message);-
1429}
executed 1073 times by 82 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDebug
  • tst_QDesktopWidget
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • tst_QFutureWatcher
  • ...
1073
1430void QTest::ignoreMessage(QtMsgType type, const QRegularExpression &messagePattern)-
1431{-
1432 QTestLog::ignoreMessage(type, messagePattern);-
1433}
executed 116 times by 4 tests: end of block
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
116
1434QSharedPointer<QTemporaryDir> QTest::qExtractTestData(const QString &dirName)-
1435{-
1436 QSharedPointer<QTemporaryDir> result;-
1437-
1438 QSharedPointer<QTemporaryDir> tempDir = QSharedPointer<QTemporaryDir>::create();-
1439-
1440 tempDir->setAutoRemove(true);-
1441-
1442 if (!tempDir->isValid()
!tempDir->isValid()Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-1
1443 return
never executed: return result;
result;
never executed: return result;
0
1444-
1445 const QString dataPath = tempDir->path();-
1446 const QString resourcePath = QLatin1Char(':') + dirName;-
1447 const QFileInfo fileInfo(resourcePath);-
1448-
1449 if (!fileInfo.isDir()
!fileInfo.isDir()Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
) {
0-1
1450 QMessageLogger(__FILE__, 1923, __PRETTY_FUNCTION__).warning("Resource path '%s' is not a directory.", QString(resourcePath).toLocal8Bit().constData());-
1451 return
never executed: return result;
result;
never executed: return result;
0
1452 }-
1453-
1454 QDirIterator it(resourcePath, QDirIterator::Subdirectories);-
1455 if (!it.hasNext()
!it.hasNext()Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
) {
0-1
1456 QMessageLogger(__FILE__, 1929, __PRETTY_FUNCTION__).warning("Resource directory '%s' is empty.", QString(resourcePath).toLocal8Bit().constData());-
1457 return
never executed: return result;
result;
never executed: return result;
0
1458 }-
1459-
1460 while (it.hasNext()
it.hasNext()Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
) {
1-5
1461 it.next();-
1462-
1463 QFileInfo fileInfo = it.fileInfo();-
1464-
1465 if (!fileInfo.isDir()
!fileInfo.isDir()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
) {
1-4
1466 const QString destination = dataPath + QLatin1Char('/') + fileInfo.filePath().midRef(resourcePath.length());-
1467 QFileInfo destinationFileInfo(destination);-
1468 QDir().mkpath(destinationFileInfo.path());-
1469 if (!QFile::copy(fileInfo.filePath(), destination)
!QFile::copy(f..., destination)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QFileInfo
) {
0-4
1470 QMessageLogger(__FILE__, 1943, __PRETTY_FUNCTION__).warning("Failed to copy '%s'.", QString(fileInfo.filePath()).toLocal8Bit().constData());-
1471 return
never executed: return result;
result;
never executed: return result;
0
1472 }-
1473 if (!QFile::setPermissions(destination, QFile::ReadUser | QFile::WriteUser | QFile::ReadGroup)
!QFile::setPer...le::ReadGroup)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QFileInfo
) {
0-4
1474 QMessageLogger(__FILE__, 1947, __PRETTY_FUNCTION__).warning("Failed to set permissions on '%s'.", QString(destination).toLocal8Bit().constData());-
1475 return
never executed: return result;
result;
never executed: return result;
0
1476 }-
1477 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QFileInfo
4
1478 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_QFileInfo
5
1479-
1480 result = std::move(tempDir);-
1481-
1482 return
executed 1 time by 1 test: return result;
Executed by:
  • tst_QFileInfo
result;
executed 1 time by 1 test: return result;
Executed by:
  • tst_QFileInfo
1
1483}-
1484-
1485-
1486-
1487-
1488QString QTest::qFindTestData(const QString& base, const char *file, int line, const char *builddir)-
1489{-
1490 QString found;-
1491-
1492-
1493-
1494-
1495 if (QCoreApplication::instance()
QCoreApplication::instance()Description
TRUEevaluated 1115 times by 69 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QFrame
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLayout
  • ...
FALSEevaluated 273 times by 4 tests
Evaluated by:
  • tst_QApplication
  • tst_QChar
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
) {
273-1115
1496 QDir binDirectory(QCoreApplication::applicationDirPath());-
1497 if (binDirectory.exists(base)
binDirectory.exists(base)Description
TRUEevaluated 324 times by 64 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFrame
  • tst_QFtp
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLayout
  • tst_QLibrary
  • tst_QLocale
  • tst_QLockFile
  • ...
FALSEevaluated 791 times by 8 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_selftests - unknown status
) {
324-791
1498 found = binDirectory.absoluteFilePath(base);-
1499 }
executed 324 times by 64 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFrame
  • tst_QFtp
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLayout
  • tst_QLibrary
  • tst_QLocale
  • tst_QLockFile
  • ...
324
1500 else if (QTestLog::verboseLevel() >= 2
QTestLog::verboseLevel() >= 2Description
TRUEnever evaluated
FALSEevaluated 791 times by 8 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_selftests - unknown status
) {
0-791
1501 const QString candidate = QDir::toNativeSeparators(QCoreApplication::applicationDirPath() + QLatin1Char('/') + base);-
1502 QTestLog::info(QString(QString::fromLatin1("testdata %1 not found relative to test binary [%2]; " "checking next location").arg(base, candidate)).toLocal8Bit().constData()-
1503-
1504 ,-
1505 file, line);-
1506 }
never executed: end of block
0
1507 }
executed 1115 times by 69 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QFrame
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLayout
  • ...
1115
1508-
1509-
1510 if (found.isEmpty()
found.isEmpty()Description
TRUEevaluated 1064 times by 11 tests
Evaluated by:
  • tst_QApplication
  • tst_QChar
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
FALSEevaluated 324 times by 64 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFrame
  • tst_QFtp
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLayout
  • tst_QLibrary
  • tst_QLocale
  • tst_QLockFile
  • ...
) {
324-1064
1511 const char *testObjectName = QTestResult::currentTestObjectName();-
1512 if (testObjectName
testObjectNameDescription
TRUEevaluated 1064 times by 11 tests
Evaluated by:
  • tst_QApplication
  • tst_QChar
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
FALSEnever evaluated
) {
0-1064
1513 QString testsPath = QLibraryInfo::location(QLibraryInfo::TestsPath);-
1514 QString candidate = QString::fromLatin1("%1/%2/%3")-
1515 .arg(testsPath, QFile::decodeName(testObjectName).toLower(), base);-
1516 if (QFileInfo::exists(candidate)
QFileInfo::exists(candidate)Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 1039 times by 11 tests
Evaluated by:
  • tst_QApplication
  • tst_QChar
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
) {
25-1039
1517 found = candidate;-
1518 }
executed 25 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
25
1519 else if (QTestLog::verboseLevel() >= 2
QTestLog::verboseLevel() >= 2Description
TRUEnever evaluated
FALSEevaluated 1039 times by 11 tests
Evaluated by:
  • tst_QApplication
  • tst_QChar
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
) {
0-1039
1520 QTestLog::info(QString(QString::fromLatin1("testdata %1 not found in tests install path [%2]; " "checking next location") .arg(base, QDir::toNativeSeparators(candidate))).toLocal8Bit().constData()-
1521-
1522-
1523 ,-
1524 file, line);-
1525 }
never executed: end of block
0
1526 }
executed 1064 times by 11 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QChar
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
1064
1527 }
executed 1064 times by 11 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QChar
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
1064
1528-
1529-
1530 if (found.isEmpty()
found.isEmpty()Description
TRUEevaluated 1039 times by 11 tests
Evaluated by:
  • tst_QApplication
  • tst_QChar
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
FALSEevaluated 349 times by 64 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFrame
  • tst_QFtp
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLayout
  • tst_QLibrary
  • tst_QLocale
  • tst_QLockFile
  • ...
) {
349-1039
1531-
1532 QFileInfo srcdir = QFileInfo(QFile::decodeName(file)).path();-
1533-
1534-
1535-
1536 if (!srcdir.isAbsolute()
!srcdir.isAbsolute()Description
TRUEevaluated 1014 times by 11 tests
Evaluated by:
  • tst_QApplication
  • tst_QChar
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
&& builddir
builddirDescription
TRUEevaluated 176 times by 11 tests
Evaluated by:
  • tst_QApplication
  • tst_QChar
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
FALSEevaluated 838 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
) {
25-1014
1537 srcdir.setFile(QFile::decodeName(builddir) + QLatin1String("/") + srcdir.filePath());-
1538 }
executed 176 times by 11 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QChar
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
176
1539-
1540 QString candidate = QString::fromLatin1("%1/%2").arg(srcdir.canonicalFilePath(), base);-
1541 if (QFileInfo::exists(candidate)
QFileInfo::exists(candidate)Description
TRUEevaluated 160 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QChar
  • tst_QGraphicsScene
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
FALSEevaluated 879 times by 7 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_selftests - unknown status
) {
160-879
1542 found = candidate;-
1543 }
executed 160 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QChar
  • tst_QGraphicsScene
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
160
1544 else if (QTestLog::verboseLevel() >= 2
QTestLog::verboseLevel() >= 2Description
TRUEnever evaluated
FALSEevaluated 879 times by 7 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_selftests - unknown status
) {
0-879
1545 QTestLog::info(QString(QString::fromLatin1("testdata %1 not found relative to source path [%2]") .arg(base, QDir::toNativeSeparators(candidate))).toLocal8Bit().constData()-
1546-
1547 ,-
1548 file, line);-
1549 }
never executed: end of block
0
1550 }
executed 1039 times by 11 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QChar
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_qdbuscpp2xml
  • tst_selftests - unknown status
1039
1551-
1552-
1553 if (found.isEmpty()
found.isEmpty()Description
TRUEevaluated 879 times by 7 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_selftests - unknown status
FALSEevaluated 509 times by 67 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFrame
  • tst_QFtp
  • tst_QGraphicsScene
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLayout
  • tst_QLibrary
  • ...
) {
509-879
1554 QString candidate = QString::fromLatin1(":/%1").arg(base);-
1555 if (QFileInfo::exists(candidate)
QFileInfo::exists(candidate)Description
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QRawFont
FALSEevaluated 871 times by 4 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_selftests - unknown status
)
8-871
1556 found = candidate;
executed 8 times by 3 tests: found = candidate;
Executed by:
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QRawFont
8
1557 }
executed 879 times by 7 tests: end of block
Executed by:
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_selftests - unknown status
879
1558-
1559-
1560 if (found.isEmpty()
found.isEmpty()Description
TRUEevaluated 871 times by 4 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_selftests - unknown status
FALSEevaluated 517 times by 69 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QFrame
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • ...
) {
517-871
1561 QString candidate = QString::fromLatin1("%1/%2").arg(QDir::currentPath()).arg(base);-
1562 if (QFileInfo::exists(candidate)
QFileInfo::exists(candidate)Description
TRUEnever evaluated
FALSEevaluated 871 times by 4 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_selftests - unknown status
)
0-871
1563 found = candidate;
never executed: found = candidate;
0
1564 }
executed 871 times by 4 tests: end of block
Executed by:
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_selftests - unknown status
871
1565-
1566-
1567 if (found.isEmpty()
found.isEmpty()Description
TRUEevaluated 871 times by 4 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_selftests - unknown status
FALSEevaluated 517 times by 69 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QFrame
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • ...
) {
517-871
1568 QString candidate = QTest::mainSourcePath % QLatin1Char('/') % base;-
1569 if (QFileInfo::exists(candidate)
QFileInfo::exists(candidate)Description
TRUEnever evaluated
FALSEevaluated 871 times by 4 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_selftests - unknown status
)
0-871
1570 found = candidate;
never executed: found = candidate;
0
1571 }
executed 871 times by 4 tests: end of block
Executed by:
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_selftests - unknown status
871
1572-
1573 if (found.isEmpty()
found.isEmpty()Description
TRUEevaluated 871 times by 4 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_selftests - unknown status
FALSEevaluated 517 times by 69 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QFrame
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • ...
) {
517-871
1574 QTest::qWarn(QString(QString::fromLatin1("testdata %1 could not be located!").arg(base)).toLocal8Bit().constData()-
1575 ,-
1576 file, line);-
1577 }
executed 871 times by 4 tests: end of block
Executed by:
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QPluginLoader
  • tst_selftests - unknown status
871
1578 else if (QTestLog::verboseLevel() >= 1
QTestLog::verboseLevel() >= 1Description
TRUEnever evaluated
FALSEevaluated 517 times by 69 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QFrame
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • ...
) {
0-517
1579 QTestLog::info(QString(QString::fromLatin1("testdata %1 was located at %2").arg(base, QDir::toNativeSeparators(found))).toLocal8Bit().constData()-
1580 ,-
1581 file, line);-
1582 }
never executed: end of block
0
1583-
1584 return
executed 1388 times by 71 tests: return found;
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QFrame
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • ...
found;
executed 1388 times by 71 tests: return found;
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QFrame
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsScene
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • ...
1388
1585}-
1586-
1587-
1588-
1589QString QTest::qFindTestData(const char *base, const char *file, int line, const char *builddir)-
1590{-
1591 return
executed 315 times by 63 tests: return qFindTestData(QFile::decodeName(base), file, line, builddir);
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QClipboard
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLayout
  • tst_QLibrary
  • tst_QLocale
  • ...
qFindTestData(QFile::decodeName(base), file, line, builddir);
executed 315 times by 63 tests: return qFindTestData(QFile::decodeName(base), file, line, builddir);
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QClipboard
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDirIterator
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLayout
  • tst_QLibrary
  • tst_QLocale
  • ...
315
1592}-
1593-
1594-
1595-
1596void *QTest::qData(const char *tagName, int typeId)-
1597{-
1598 return
executed 424360 times by 326 tests: return fetchData(QTestResult::currentTestData(), tagName, typeId);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
fetchData(QTestResult::currentTestData(), tagName, typeId);
executed 424360 times by 326 tests: return fetchData(QTestResult::currentTestData(), tagName, typeId);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
424360
1599}-
1600-
1601-
1602-
1603void *QTest::qGlobalData(const char *tagName, int typeId)-
1604{-
1605 return
executed 7627 times by 15 tests: return fetchData(QTestResult::currentGlobalTestData(), tagName, typeId);
Executed by:
  • tst_QDBusLocalCalls
  • tst_QDnsLookup
  • tst_QFtp
  • tst_QHostInfo
  • tst_QSqlDriver
  • tst_QSqlRelationalTableModel
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_Utf8
  • tst_qdbusxml2cpp
  • tst_selftests - unknown status
fetchData(QTestResult::currentGlobalTestData(), tagName, typeId);
executed 7627 times by 15 tests: return fetchData(QTestResult::currentGlobalTestData(), tagName, typeId);
Executed by:
  • tst_QDBusLocalCalls
  • tst_QDnsLookup
  • tst_QFtp
  • tst_QHostInfo
  • tst_QSqlDriver
  • tst_QSqlRelationalTableModel
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_Utf8
  • tst_qdbusxml2cpp
  • tst_selftests - unknown status
7627
1606}-
1607-
1608-
1609-
1610void *QTest::qElementData(const char *tagName, int metaTypeId)-
1611{-
1612 do { if (!(tagName)
!(tagName)Description
TRUEnever evaluated
FALSEevaluated 3248 times by 38 tests
Evaluated by:
  • tst_QAtomicInt
  • tst_QBitArray
  • tst_QByteArray
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QFile
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGroupBox
  • tst_QHashFunctions
  • tst_QHostAddress
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegion
  • tst_QRegularExpressionValidator
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • ...
) qt_assert("tagName",__FILE__,2093);
never executed: qt_assert("tagName",__FILE__,2093);
} while (0);
0-3248
1613 QTestData *data = QTestResult::currentTestData();-
1614 do { if (!(data)
!(data)Description
TRUEnever evaluated
FALSEevaluated 3248 times by 38 tests
Evaluated by:
  • tst_QAtomicInt
  • tst_QBitArray
  • tst_QByteArray
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QFile
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGroupBox
  • tst_QHashFunctions
  • tst_QHostAddress
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegion
  • tst_QRegularExpressionValidator
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • ...
) qt_assert("data",__FILE__,2095);
never executed: qt_assert("data",__FILE__,2095);
} while (0);
0-3248
1615 do { if (!(data->parent())
!(data->parent())Description
TRUEnever evaluated
FALSEevaluated 3248 times by 38 tests
Evaluated by:
  • tst_QAtomicInt
  • tst_QBitArray
  • tst_QByteArray
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QFile
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGroupBox
  • tst_QHashFunctions
  • tst_QHostAddress
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegion
  • tst_QRegularExpressionValidator
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • ...
) qt_assert("data->parent()",__FILE__,2096);
never executed: qt_assert("data->parent()",__FILE__,2096);
} while (0);
0-3248
1616-
1617 int idx = data->parent()->indexOf(tagName);-
1618 do { if (!(idx != -1)
!(idx != -1)Description
TRUEnever evaluated
FALSEevaluated 3248 times by 38 tests
Evaluated by:
  • tst_QAtomicInt
  • tst_QBitArray
  • tst_QByteArray
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QFile
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGroupBox
  • tst_QHashFunctions
  • tst_QHostAddress
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegion
  • tst_QRegularExpressionValidator
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • ...
) qt_assert("idx != -1",__FILE__,2099);
never executed: qt_assert("idx != -1",__FILE__,2099);
} while (0);
0-3248
1619 do { if (!(data->parent()->elementTypeId(idx) == metaTypeId)
!(data->parent...== metaTypeId)Description
TRUEnever evaluated
FALSEevaluated 3248 times by 38 tests
Evaluated by:
  • tst_QAtomicInt
  • tst_QBitArray
  • tst_QByteArray
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QFile
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGroupBox
  • tst_QHashFunctions
  • tst_QHostAddress
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegion
  • tst_QRegularExpressionValidator
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • ...
) qt_assert("data->parent()->elementTypeId(idx) == metaTypeId",__FILE__,2100);
never executed: qt_assert("data->parent()->elementTypeId(idx) == metaTypeId",__FILE__,2100);
} while (0);
0-3248
1620-
1621 return
executed 3248 times by 38 tests: return data->data(data->parent()->indexOf(tagName));
Executed by:
  • tst_QAtomicInt
  • tst_QBitArray
  • tst_QByteArray
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QFile
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGroupBox
  • tst_QHashFunctions
  • tst_QHostAddress
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegion
  • tst_QRegularExpressionValidator
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • ...
data->data(data->parent()->indexOf(tagName));
executed 3248 times by 38 tests: return data->data(data->parent()->indexOf(tagName));
Executed by:
  • tst_QAtomicInt
  • tst_QBitArray
  • tst_QByteArray
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QFile
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGroupBox
  • tst_QHashFunctions
  • tst_QHostAddress
  • tst_QNetworkReply
  • tst_QRegExp
  • tst_QRegion
  • tst_QRegularExpressionValidator
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • ...
3248
1622}-
1623-
1624-
1625-
1626void QTest::addColumnInternal(int id, const char *name)-
1627{-
1628 QTestTable *tbl = QTestTable::currentTestTable();-
1629 do { if (!(tbl)
!(tbl)Description
TRUEnever evaluated
FALSEevaluated 9874 times by 332 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
) qt_assert_x("QTest::addColumn()", "Cannot add testdata outside of a _data slot.",__FILE__,2110);
never executed: qt_assert_x("QTest::addColumn()", "Cannot add testdata outside of a _data slot.",__FILE__,2110);
} while (0);
0-9874
1630-
1631 tbl->addColumn(id, name);-
1632}
executed 9874 times by 332 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
9874
1633QTestData &QTest::newRow(const char *dataTag)-
1634{-
1635 do { if (!(dataTag)
!(dataTag)Description
TRUEnever evaluated
FALSEevaluated 116514 times by 332 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
) qt_assert_x("QTest::newRow()", "Data tag can not be null",__FILE__,2133);
never executed: qt_assert_x("QTest::newRow()", "Data tag can not be null",__FILE__,2133);
} while (0);
0-116514
1636 QTestTable *tbl = QTestTable::currentTestTable();-
1637 do { if (!(tbl)
!(tbl)Description
TRUEnever evaluated
FALSEevaluated 116514 times by 332 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
) qt_assert_x("QTest::newRow()", "Cannot add testdata outside of a _data slot.",__FILE__,2135);
never executed: qt_assert_x("QTest::newRow()", "Cannot add testdata outside of a _data slot.",__FILE__,2135);
} while (0);
0-116514
1638 do { if (!(tbl->elementCount())
!(tbl->elementCount())Description
TRUEnever evaluated
FALSEevaluated 116514 times by 332 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
) qt_assert_x("QTest::newRow()", "Must add columns before attempting to add rows.",__FILE__,2136);
never executed: qt_assert_x("QTest::newRow()", "Must add columns before attempting to add rows.",__FILE__,2136);
} while (0);
0-116514
1639-
1640 return
executed 116514 times by 332 tests: return *tbl->newData(dataTag);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
*tbl->newData(dataTag);
executed 116514 times by 332 tests: return *tbl->newData(dataTag);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
116514
1641}-
1642const char *QTest::currentAppName()-
1643{-
1644 return
executed 54 times by 5 tests: return QTestResult::currentAppName();
Executed by:
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QSql
QTestResult::currentAppName();
executed 54 times by 5 tests: return QTestResult::currentAppName();
Executed by:
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QSql
54
1645}-
1646const char *QTest::currentTestFunction()-
1647{-
1648 return
executed 25284 times by 26 tests: return QTestResult::currentTestFunction();
Executed by:
  • tst_QBoxLayout
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFiledialog
  • tst_QFormLayout
  • tst_QFtp
  • tst_QGestureRecognizer
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QLabel
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QSpinBox
  • tst_QSqlQuery
  • tst_QToolTip
  • tst_QTouchEvent
  • tst_QTreeView
  • tst_QWaitCondition
  • tst_QWidget
  • tst_QWindow
  • tst_QWindowContainer
  • ...
QTestResult::currentTestFunction();
executed 25284 times by 26 tests: return QTestResult::currentTestFunction();
Executed by:
  • tst_QBoxLayout
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFiledialog
  • tst_QFormLayout
  • tst_QFtp
  • tst_QGestureRecognizer
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QLabel
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QSpinBox
  • tst_QSqlQuery
  • tst_QToolTip
  • tst_QTouchEvent
  • tst_QTreeView
  • tst_QWaitCondition
  • tst_QWidget
  • tst_QWindow
  • tst_QWindowContainer
  • ...
25284
1649}-
1650-
1651-
1652-
1653-
1654-
1655const char *QTest::currentDataTag()-
1656{-
1657 return
executed 8767 times by 26 tests: return QTestResult::currentDataTag();
Executed by:
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDialog
  • tst_QDir
  • tst_QFile
  • tst_QFiledialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsScene
  • tst_QGridLayout
  • tst_QImage
  • tst_QImageWriter
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPixmap
  • tst_QProcess
  • tst_QSettings
  • tst_QShortcut
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QToolTip
  • tst_QUrlInternal
  • ...
QTestResult::currentDataTag();
executed 8767 times by 26 tests: return QTestResult::currentDataTag();
Executed by:
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDialog
  • tst_QDir
  • tst_QFile
  • tst_QFiledialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsScene
  • tst_QGridLayout
  • tst_QImage
  • tst_QImageWriter
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPixmap
  • tst_QProcess
  • tst_QSettings
  • tst_QShortcut
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QToolTip
  • tst_QUrlInternal
  • ...
8767
1658}-
1659-
1660-
1661-
1662-
1663bool QTest::currentTestFailed()-
1664{-
1665 return
executed 1444 times by 506 tests: return QTestResult::currentTestFailed();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
QTestResult::currentTestFailed();
executed 1444 times by 506 tests: return QTestResult::currentTestFailed();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1444
1666}-
1667void QTest::qSleep(int ms)-
1668{-
1669 do { if (!(ms > 0)
!(ms > 0)Description
TRUEnever evaluated
FALSEevaluated 59223 times by 155 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • ...
) qt_assert("ms > 0",__FILE__,2221);
never executed: qt_assert("ms > 0",__FILE__,2221);
} while (0);
0-59223
1670-
1671-
1672-
1673-
1674-
1675-
1676 struct timespec ts = { ms / 1000, (ms % 1000) * 1000 * 1000 };-
1677 nanosleep(&ts, __null);-
1678-
1679}
executed 59223 times by 155 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • ...
59223
1680-
1681-
1682-
1683QObject *QTest::testObject()-
1684{-
1685 return
executed 3 times by 1 test: return currentTestObject;
Executed by:
  • tst_Lancelot
currentTestObject;
executed 3 times by 1 test: return currentTestObject;
Executed by:
  • tst_Lancelot
3
1686}-
1687-
1688-
1689-
1690void QTest::setMainSourcePath(const char *file, const char *builddir)-
1691{-
1692 QString mainSourceFile = QFile::decodeName(file);-
1693 QFileInfo fi;-
1694 if (builddir
builddirDescription
TRUEevaluated 739 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-739
1695 fi.setFile(QDir(QFile::decodeName(builddir)), mainSourceFile);
executed 739 times by 1 test: fi.setFile(QDir(QFile::decodeName(builddir)), mainSourceFile);
Executed by:
  • tst_selftests - unknown status
739
1696 else-
1697 fi.setFile(mainSourceFile);
never executed: fi.setFile(mainSourceFile);
0
1698 QTest::mainSourcePath = fi.absolutePath();-
1699}
executed 739 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
739
1700bool QTest::compare_helper(bool success, const char *failureMsg,-
1701 char *val1, char *val2,-
1702 const char *actual, const char *expected,-
1703 const char *file, int line)-
1704{-
1705 return
executed 39528033 times by 481 tests: return QTestResult::compare(success, failureMsg, val1, val2, actual, expected, file, line);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
QTestResult::compare(success, failureMsg, val1, val2, actual, expected, file, line);
executed 39528033 times by 481 tests: return QTestResult::compare(success, failureMsg, val1, val2, actual, expected, file, line);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
39528033
1706}-
1707-
1708-
1709-
1710-
1711bool QTest::qCompare(float const &t1, float const &t2, const char *actual, const char *expected,-
1712 const char *file, int line)-
1713{-
1714 return
executed 2195 times by 18 tests: return compare_helper(qFuzzyCompare(t1, t2), "Compared floats are not the same (fuzzy compare)", toString(t1), toString(t2), actual, expected, file, line);
Executed by:
  • tst_QDataStream
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QIODevice
  • tst_QImageWriter
  • tst_QMatrixNxN
  • tst_QMetaType
  • tst_QObject
  • tst_QPair
  • tst_QQuaternion
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QVariant
  • tst_QVectorND
  • tst_selftests - unknown status
compare_helper(qFuzzyCompare(t1, t2), "Compared floats are not the same (fuzzy compare)",
executed 2195 times by 18 tests: return compare_helper(qFuzzyCompare(t1, t2), "Compared floats are not the same (fuzzy compare)", toString(t1), toString(t2), actual, expected, file, line);
Executed by:
  • tst_QDataStream
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QIODevice
  • tst_QImageWriter
  • tst_QMatrixNxN
  • tst_QMetaType
  • tst_QObject
  • tst_QPair
  • tst_QQuaternion
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QVariant
  • tst_QVectorND
  • tst_selftests - unknown status
2195
1715 toString(t1), toString(t2), actual, expected, file, line);
executed 2195 times by 18 tests: return compare_helper(qFuzzyCompare(t1, t2), "Compared floats are not the same (fuzzy compare)", toString(t1), toString(t2), actual, expected, file, line);
Executed by:
  • tst_QDataStream
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QIODevice
  • tst_QImageWriter
  • tst_QMatrixNxN
  • tst_QMetaType
  • tst_QObject
  • tst_QPair
  • tst_QQuaternion
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QVariant
  • tst_QVectorND
  • tst_selftests - unknown status
2195
1716}-
1717-
1718-
1719-
1720-
1721bool QTest::qCompare(double const &t1, double const &t2, const char *actual, const char *expected,-
1722 const char *file, int line)-
1723{-
1724 return
executed 2182864 times by 80 tests: return compare_helper(qFuzzyCompare(t1, t2), "Compared doubles are not the same (fuzzy compare)", toString(t1), toString(t2), actual, expected, file, line);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_QBrush
  • tst_QColor
  • tst_QComboBox
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsTransform
  • ...
compare_helper(qFuzzyCompare(t1, t2), "Compared doubles are not the same (fuzzy compare)",
executed 2182864 times by 80 tests: return compare_helper(qFuzzyCompare(t1, t2), "Compared doubles are not the same (fuzzy compare)", toString(t1), toString(t2), actual, expected, file, line);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_QBrush
  • tst_QColor
  • tst_QComboBox
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsTransform
  • ...
2182864
1725 toString(t1), toString(t2), actual, expected, file, line);
executed 2182864 times by 80 tests: return compare_helper(qFuzzyCompare(t1, t2), "Compared doubles are not the same (fuzzy compare)", toString(t1), toString(t2), actual, expected, file, line);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_QBrush
  • tst_QColor
  • tst_QComboBox
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsTransform
  • ...
2182864
1726}-
1727template <> __attribute__((visibility("default"))) char *QTest::toString<short >(const short &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%hd", t); return
executed 6688 times by 12 tests: return msg;
Executed by:
  • tst_Compiler
  • tst_QAtomicInteger_short
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QIODevice
  • tst_QMetaType
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QVariant
  • tst_QtEndian
msg;
executed 6688 times by 12 tests: return msg;
Executed by:
  • tst_Compiler
  • tst_QAtomicInteger_short
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QIODevice
  • tst_QMetaType
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QVariant
  • tst_QtEndian
}
6688
1728template <> __attribute__((visibility("default"))) char *QTest::toString<ushort >(const ushort &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%hu", t); return
executed 4734 times by 28 tests: return msg;
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractSocket
  • tst_QAtomicInteger_ushort
  • tst_QColor
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QMetaType
  • tst_QNetworkProxy
  • tst_QNetworkProxyFactory
  • tst_QNumeric
  • tst_QSocks5SocketEngine
  • tst_QSqlQuery
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QTextStream
  • ...
msg;
executed 4734 times by 28 tests: return msg;
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractSocket
  • tst_QAtomicInteger_ushort
  • tst_QColor
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QMetaType
  • tst_QNetworkProxy
  • tst_QNetworkProxyFactory
  • tst_QNumeric
  • tst_QSocks5SocketEngine
  • tst_QSqlQuery
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QTextStream
  • ...
}
4734
1729template <> __attribute__((visibility("default"))) char *QTest::toString<int >(const int &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%d", t); return
executed 34326128 times by 392 tests: return msg;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInt
  • ...
msg;
executed 34326128 times by 392 tests: return msg;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInt
  • ...
}
34326128
1730template <> __attribute__((visibility("default"))) char *QTest::toString<uint >(const uint &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%u", t); return
executed 4863032 times by 71 tests: return msg;
Executed by:
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_uint
  • tst_QByteArray
  • tst_QCheckBox
  • tst_QColor
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFont
  • tst_QFontMetrics
  • tst_QGLBuffer
  • tst_QGlyphRun
  • ...
msg;
executed 4863032 times by 71 tests: return msg;
Executed by:
  • tst_Compiler
  • tst_QAbstractButton
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_uint
  • tst_QByteArray
  • tst_QCheckBox
  • tst_QColor
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFont
  • tst_QFontMetrics
  • tst_QGLBuffer
  • tst_QGlyphRun
  • ...
}
4863032
1731template <> __attribute__((visibility("default"))) char *QTest::toString<long >(const long &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%ld", t); return
executed 8976 times by 10 tests: return msg;
Executed by:
  • tst_Compiler
  • tst_LargeFile
  • tst_QAtomicInteger_long
  • tst_QFile
  • tst_QMetaType
  • tst_QSignalSpy
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
msg;
executed 8976 times by 10 tests: return msg;
Executed by:
  • tst_Compiler
  • tst_LargeFile
  • tst_QAtomicInteger_long
  • tst_QFile
  • tst_QMetaType
  • tst_QSignalSpy
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
}
8976
1732template <> __attribute__((visibility("default"))) char *QTest::toString<ulong >(const ulong &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%lu", t); return
executed 8132 times by 19 tests: return msg;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInt
  • tst_QAtomicInteger_ulong
  • tst_QByteArray
  • tst_QGlobal
  • tst_QMetaType
  • tst_QNumeric
  • tst_QScopedPointer
  • tst_QSharedPointer
  • tst_QString
  • tst_QStringRef
  • tst_QTouchEvent
  • tst_QVariant
  • tst_QtConcurrentFilter
  • tst_QtConcurrentMap
  • tst_toolsupport
msg;
executed 8132 times by 19 tests: return msg;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInt
  • tst_QAtomicInteger_ulong
  • tst_QByteArray
  • tst_QGlobal
  • tst_QMetaType
  • tst_QNumeric
  • tst_QScopedPointer
  • tst_QSharedPointer
  • tst_QString
  • tst_QStringRef
  • tst_QTouchEvent
  • tst_QVariant
  • tst_QtConcurrentFilter
  • tst_QtConcurrentMap
  • tst_toolsupport
}
8132
1733-
1734-
1735-
1736-
1737template <> __attribute__((visibility("default"))) char *QTest::toString<qint64 >(const qint64 &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%lld", t); return
executed 1599344 times by 63 tests: return msg;
Executed by:
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractSocket
  • tst_QAsn1Element
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QBuffer
  • tst_QByteDataBuffer
  • tst_QComboBox
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDialogButtonBox
  • tst_QElapsedTimer
  • tst_QFile
  • tst_QFileInfo
  • tst_QFtp
  • tst_QHash
  • tst_QHash_StrictIterators
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • ...
msg;
executed 1599344 times by 63 tests: return msg;
Executed by:
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractSocket
  • tst_QAsn1Element
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QBuffer
  • tst_QByteDataBuffer
  • tst_QComboBox
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDialogButtonBox
  • tst_QElapsedTimer
  • tst_QFile
  • tst_QFileInfo
  • tst_QFtp
  • tst_QHash
  • tst_QHash_StrictIterators
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • ...
}
1599344
1738template <> __attribute__((visibility("default"))) char *QTest::toString<quint64 >(const quint64 &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%llu", t); return
executed 22208 times by 19 tests: return msg;
Executed by:
  • tst_Collections
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QByteArray
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QHooks
  • tst_QMetaType
  • tst_QNumeric
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_QWidget_window
  • tst_QtEndian
msg;
executed 22208 times by 19 tests: return msg;
Executed by:
  • tst_Collections
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QByteArray
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QHooks
  • tst_QMetaType
  • tst_QNumeric
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_QWidget_window
  • tst_QtEndian
}
22208
1739-
1740template <> __attribute__((visibility("default"))) char *QTest::toString<bool >(const bool &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%d", t); return
executed 280722 times by 235 tests: return msg;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QAtomicInteger_schar
  • ...
msg;
executed 280722 times by 235 tests: return msg;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QAtomicInteger_schar
  • ...
}
280722
1741template <> __attribute__((visibility("default"))) char *QTest::toString<signed char >(const signed char &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%hhd", t); return
executed 4462 times by 7 tests: return msg;
Executed by:
  • tst_QAtomicInteger_schar
  • tst_QDataStream
  • tst_QFile
  • tst_QIODevice
  • tst_QMetaType
  • tst_QVariant
  • tst_QtEndian
msg;
executed 4462 times by 7 tests: return msg;
Executed by:
  • tst_QAtomicInteger_schar
  • tst_QDataStream
  • tst_QFile
  • tst_QIODevice
  • tst_QMetaType
  • tst_QVariant
  • tst_QtEndian
}
4462
1742template <> __attribute__((visibility("default"))) char *QTest::toString<unsigned char >(const unsigned char &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%hhu", t); return
executed 17080 times by 16 tests: return msg;
Executed by:
  • tst_QAsn1Element
  • tst_QAtomicInteger_uchar
  • tst_QBuffer
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFile
  • tst_QList
  • tst_QList_StrictIterators
  • tst_QMetaType
  • tst_QNumeric
  • tst_QPixelFormat
  • tst_QSettings
  • tst_QVariant
  • tst_QtEndian
  • tst_qlist - unknown status
  • tst_qlist_strictiterators - unknown status
msg;
executed 17080 times by 16 tests: return msg;
Executed by:
  • tst_QAsn1Element
  • tst_QAtomicInteger_uchar
  • tst_QBuffer
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFile
  • tst_QList
  • tst_QList_StrictIterators
  • tst_QMetaType
  • tst_QNumeric
  • tst_QPixelFormat
  • tst_QSettings
  • tst_QVariant
  • tst_QtEndian
  • tst_qlist - unknown status
  • tst_qlist_strictiterators - unknown status
}
17080
1743template <> __attribute__((visibility("default"))) char *QTest::toString<float >(const float &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%g", t); return
executed 4390 times by 18 tests: return msg;
Executed by:
  • tst_QDataStream
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QIODevice
  • tst_QImageWriter
  • tst_QMatrixNxN
  • tst_QMetaType
  • tst_QObject
  • tst_QPair
  • tst_QQuaternion
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QVariant
  • tst_QVectorND
  • tst_selftests - unknown status
msg;
executed 4390 times by 18 tests: return msg;
Executed by:
  • tst_QDataStream
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QIODevice
  • tst_QImageWriter
  • tst_QMatrixNxN
  • tst_QMetaType
  • tst_QObject
  • tst_QPair
  • tst_QQuaternion
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QVariant
  • tst_QVectorND
  • tst_selftests - unknown status
}
4390
1744template <> __attribute__((visibility("default"))) char *QTest::toString<double >(const double &t) { char *msg = new char[128]; qsnprintf(msg, 128, "%lg", t); return
executed 4365778 times by 81 tests: return msg;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_QBrush
  • tst_QColor
  • tst_QComboBox
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsTransform
  • ...
msg;
executed 4365778 times by 81 tests: return msg;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_QBrush
  • tst_QColor
  • tst_QComboBox
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsTransform
  • ...
}
4365778
1745-
1746template <> __attribute__((visibility("default"))) char *QTest::toString<char>(const char &t)-
1747{-
1748 unsigned char c = static_cast<unsigned char>(t);-
1749 char *msg = new char[16];-
1750 switch (c) {-
1751 case
executed 2582 times by 14 tests: case 0x00:
Executed by:
  • tst_Compiler
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_char
  • tst_QBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QIODevice
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSslSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QVariant
0x00:
executed 2582 times by 14 tests: case 0x00:
Executed by:
  • tst_Compiler
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_char
  • tst_QBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QIODevice
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSslSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QVariant
2582
1752 qstrcpy(msg, "'\\0'");-
1753 break;
executed 2582 times by 14 tests: break;
Executed by:
  • tst_Compiler
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_char
  • tst_QBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QIODevice
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSslSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QVariant
2582
1754 case
executed 2 times by 1 test: case 0x07:
Executed by:
  • tst_QFile
0x07:
executed 2 times by 1 test: case 0x07:
Executed by:
  • tst_QFile
2
1755 qstrcpy(msg, "'\\a'");-
1756 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QFile
2
1757 case
executed 2 times by 1 test: case 0x08:
Executed by:
  • tst_QFile
0x08:
executed 2 times by 1 test: case 0x08:
Executed by:
  • tst_QFile
2
1758 qstrcpy(msg, "'\\b'");-
1759 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QFile
2
1760 case
executed 2 times by 1 test: case 0x09:
Executed by:
  • tst_QFile
0x09:
executed 2 times by 1 test: case 0x09:
Executed by:
  • tst_QFile
2
1761 qstrcpy(msg, "'\\t'");-
1762 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QFile
2
1763 case
executed 4418 times by 8 tests: case 0x0a:
Executed by:
  • tst_QAtomicInteger_char
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QTcpSocket
  • tst_QTextStream
0x0a:
executed 4418 times by 8 tests: case 0x0a:
Executed by:
  • tst_QAtomicInteger_char
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QTcpSocket
  • tst_QTextStream
4418
1764 qstrcpy(msg, "'\\n'");-
1765 break;
executed 4418 times by 8 tests: break;
Executed by:
  • tst_QAtomicInteger_char
  • tst_QBuffer
  • tst_QFile
  • tst_QIODevice
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QTcpSocket
  • tst_QTextStream
4418
1766 case
executed 2 times by 1 test: case 0x0b:
Executed by:
  • tst_QFile
0x0b:
executed 2 times by 1 test: case 0x0b:
Executed by:
  • tst_QFile
2
1767 qstrcpy(msg, "'\\v'");-
1768 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QFile
2
1769 case
executed 2 times by 1 test: case 0x0c:
Executed by:
  • tst_QFile
0x0c:
executed 2 times by 1 test: case 0x0c:
Executed by:
  • tst_QFile
2
1770 qstrcpy(msg, "'\\f'");-
1771 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QFile
2
1772 case
executed 16 times by 3 tests: case 0x0d:
Executed by:
  • tst_QFile
  • tst_QIODevice
  • tst_QTcpSocket
0x0d:
executed 16 times by 3 tests: case 0x0d:
Executed by:
  • tst_QFile
  • tst_QIODevice
  • tst_QTcpSocket
16
1773 qstrcpy(msg, "'\\r'");-
1774 break;
executed 16 times by 3 tests: break;
Executed by:
  • tst_QFile
  • tst_QIODevice
  • tst_QTcpSocket
16
1775 case
executed 4 times by 2 tests: case 0x22:
Executed by:
  • tst_Compiler
  • tst_QFile
0x22:
executed 4 times by 2 tests: case 0x22:
Executed by:
  • tst_Compiler
  • tst_QFile
4
1776 qstrcpy(msg, "'\\\"'");-
1777 break;
executed 4 times by 2 tests: break;
Executed by:
  • tst_Compiler
  • tst_QFile
4
1778 case
executed 2 times by 1 test: case 0x27:
Executed by:
  • tst_QFile
0x27:
executed 2 times by 1 test: case 0x27:
Executed by:
  • tst_QFile
2
1779 qstrcpy(msg, "'\\\''");-
1780 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QFile
2
1781 case
executed 2 times by 1 test: case 0x5c:
Executed by:
  • tst_QFile
0x5c:
executed 2 times by 1 test: case 0x5c:
Executed by:
  • tst_QFile
2
1782 qstrcpy(msg, "'\\\\'");-
1783 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QFile
2
1784 default
executed 3514306 times by 24 tests: default:
Executed by:
  • tst_PlatformSocketEngine
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_char
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QIODevice
  • tst_QMetaType
  • tst_QRingBuffer
  • tst_QSemaphore
  • tst_QSharedMemory
  • tst_QSizePolicy
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QVector
  • tst_QVector_StrictIterators
:
executed 3514306 times by 24 tests: default:
Executed by:
  • tst_PlatformSocketEngine
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_char
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QIODevice
  • tst_QMetaType
  • tst_QRingBuffer
  • tst_QSemaphore
  • tst_QSharedMemory
  • tst_QSizePolicy
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QVector
  • tst_QVector_StrictIterators
3514306
1785 if (c < 0x20
c < 0x20Description
TRUEevaluated 434 times by 3 tests
Evaluated by:
  • tst_QAtomicInteger_char
  • tst_QFile
  • tst_QSizePolicy
FALSEevaluated 3513872 times by 24 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_char
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QIODevice
  • tst_QMetaType
  • tst_QRingBuffer
  • tst_QSemaphore
  • tst_QSharedMemory
  • tst_QSizePolicy
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QVector
  • tst_QVector_StrictIterators
|| c >= 0x7F
c >= 0x7FDescription
TRUEevaluated 8656 times by 3 tests
Evaluated by:
  • tst_QAtomicInteger_char
  • tst_QTextCodec
  • tst_QTextStream
FALSEevaluated 3505216 times by 23 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_char
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QIODevice
  • tst_QMetaType
  • tst_QRingBuffer
  • tst_QSemaphore
  • tst_QSharedMemory
  • tst_QSizePolicy
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QVector
  • tst_QVector_StrictIterators
)
434-3513872
1786 qsnprintf(msg, 16, "'\\x%02x'", c);
executed 9090 times by 5 tests: qsnprintf(msg, 16, "'\\x%02x'", c);
Executed by:
  • tst_QAtomicInteger_char
  • tst_QFile
  • tst_QSizePolicy
  • tst_QTextCodec
  • tst_QTextStream
9090
1787 else-
1788 qsnprintf(msg, 16, "'%c'" , c);
executed 3505216 times by 23 tests: qsnprintf(msg, 16, "'%c'" , c);
Executed by:
  • tst_PlatformSocketEngine
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_char
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QIODevice
  • tst_QMetaType
  • tst_QRingBuffer
  • tst_QSemaphore
  • tst_QSharedMemory
  • tst_QSizePolicy
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QVector
  • tst_QVector_StrictIterators
3505216
1789 }-
1790 return
executed 3521340 times by 26 tests: return msg;
Executed by:
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_char
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QIODevice
  • tst_QMetaType
  • tst_QProcess
  • tst_QRingBuffer
  • tst_QSemaphore
  • tst_QSharedMemory
  • tst_QSizePolicy
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QVector
  • ...
msg;
executed 3521340 times by 26 tests: return msg;
Executed by:
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInteger_char
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QDataStream
  • tst_QFile
  • tst_QIODevice
  • tst_QMetaType
  • tst_QProcess
  • tst_QRingBuffer
  • tst_QSemaphore
  • tst_QSharedMemory
  • tst_QSizePolicy
  • tst_QSslSocket
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QVector
  • ...
3521340
1791}-
1792-
1793-
1794-
1795char *QTest::toString(const char *str)-
1796{-
1797 if (!str
!strDescription
TRUEevaluated 20 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QVariant
  • tst_qmessagehandler
FALSEevaluated 2890 times by 44 tests
Evaluated by:
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAtomicPointer
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QItemEditorFactory
  • tst_QLogging
  • tst_QMetaEnum
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaType
  • ...
)
20-2890
1798 return
executed 20 times by 3 tests: return 0;
Executed by:
  • tst_QByteArray
  • tst_QVariant
  • tst_qmessagehandler
0;
executed 20 times by 3 tests: return 0;
Executed by:
  • tst_QByteArray
  • tst_QVariant
  • tst_qmessagehandler
20
1799 char *msg = new char[strlen(str) + 1];-
1800 return
executed 2890 times by 44 tests: return qstrcpy(msg, str);
Executed by:
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAtomicPointer
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QItemEditorFactory
  • tst_QLogging
  • tst_QMetaEnum
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaType
  • ...
qstrcpy(msg, str);
executed 2890 times by 44 tests: return qstrcpy(msg, str);
Executed by:
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAtomicPointer
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QItemEditorFactory
  • tst_QLogging
  • tst_QMetaEnum
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaType
  • ...
2890
1801}-
1802-
1803-
1804-
1805char *QTest::toString(const void *p)-
1806{-
1807 char *msg = new char[128];-
1808 qsnprintf(msg, 128, "%p", p);-
1809 return
executed 3263510 times by 173 tests: return msg;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicPointer
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCache
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
msg;
executed 3263510 times by 173 tests: return msg;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicPointer
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCache
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
3263510
1810}-
1811-
1812-
1813-
1814bool QTest::compare_string_helper(const char *t1, const char *t2, const char *actual,-
1815 const char *expected, const char *file, int line)-
1816{-
1817 return
executed 1455 times by 44 tests: return compare_helper(qstrcmp(t1, t2) == 0, "Compared strings are not the same", toString(t1), toString(t2), actual, expected, file, line);
Executed by:
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAtomicPointer
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QItemEditorFactory
  • tst_QLogging
  • tst_QMetaEnum
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaType
  • ...
compare_helper(qstrcmp(t1, t2) == 0, "Compared strings are not the same",
executed 1455 times by 44 tests: return compare_helper(qstrcmp(t1, t2) == 0, "Compared strings are not the same", toString(t1), toString(t2), actual, expected, file, line);
Executed by:
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAtomicPointer
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QItemEditorFactory
  • tst_QLogging
  • tst_QMetaEnum
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaType
  • ...
1455
1818 toString(t1), toString(t2), actual, expected, file, line);
executed 1455 times by 44 tests: return compare_helper(qstrcmp(t1, t2) == 0, "Compared strings are not the same", toString(t1), toString(t2), actual, expected, file, line);
Executed by:
  • tst_Compiler
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAtomicPointer
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QIcoImageFormat
  • tst_QItemEditorFactory
  • tst_QLogging
  • tst_QMetaEnum
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaType
  • ...
1455
1819}-
1820-
Switch to Source codePreprocessed file

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