qtestresult.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/testlib/qtestresult.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtTest module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include <QtTest/private/qtestresult_p.h>-
41#include <QtCore/qglobal.h>-
42-
43#include <QtTest/private/qtestlog_p.h>-
44#include <QtTest/qtestdata.h>-
45#include <QtTest/qtestassert.h>-
46-
47#include <stdlib.h>-
48#include <stdio.h>-
49#include <string.h>-
50-
51static const char *currentAppName = 0;-
52-
53QT_BEGIN_NAMESPACE-
54-
55namespace QTest-
56{-
57 static QTestData *currentTestData = 0;-
58 static QTestData *currentGlobalTestData = 0;-
59 static const char *currentTestFunc = 0;-
60 static const char *currentTestObjectName = 0;-
61 static bool failed = false;-
62 static bool skipCurrentTest = false;-
63 static bool blacklistCurrentTest = false;-
64-
65 static const char *expectFailComment = 0;-
66 static int expectFailMode = 0;-
67}-
68-
69void QTestResult::reset()-
70{-
71 QTest::currentTestData = 0;-
72 QTest::currentGlobalTestData = 0;-
73 QTest::currentTestFunc = 0;-
74 QTest::currentTestObjectName = 0;-
75 QTest::failed = false;-
76-
77 QTest::expectFailComment = 0;-
78 QTest::expectFailMode = 0;-
79 QTest::blacklistCurrentTest = false;-
80-
81 QTestLog::resetCounters();-
82}
executed 815 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
815
83-
84void QTestResult::setBlacklistCurrentTest(bool b)-
85{-
86 QTest::blacklistCurrentTest = b;-
87}
executed 267584 times by 507 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
  • ...
267584
88-
89bool QTestResult::currentTestFailed()-
90{-
91 return QTest::failed;
executed 255030 times by 507 tests: return QTest::failed;
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
  • ...
255030
92}-
93-
94QTestData *QTestResult::currentGlobalTestData()-
95{-
96 return QTest::currentGlobalTestData;
executed 7627 times by 15 tests: return QTest::currentGlobalTestData;
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
97}-
98-
99QTestData *QTestResult::currentTestData()-
100{-
101 return QTest::currentTestData;
executed 427608 times by 327 tests: return QTest::currentTestData;
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
  • ...
427608
102}-
103-
104void QTestResult::setCurrentGlobalTestData(QTestData *data)-
105{-
106 QTest::currentGlobalTestData = data;-
107}
executed 15203 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
  • ...
15203
108-
109void QTestResult::setCurrentTestData(QTestData *data)-
110{-
111 QTest::currentTestData = data;-
112 QTest::failed = false;-
113}
executed 266337 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
  • ...
266337
114-
115void QTestResult::setCurrentTestFunction(const char *func)-
116{-
117 QTest::currentTestFunc = func;-
118 QTest::failed = false;-
119 if (func)
funcDescription
TRUEevaluated 15764 times by 507 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 1263 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
  • ...
1263-15764
120 QTestLog::enterTestFunction(func);
executed 15764 times by 507 tests: QTestLog::enterTestFunction(func);
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
  • ...
15764
121}
executed 17027 times by 507 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
  • ...
17027
122-
123static void clearExpectFail()-
124{-
125 QTest::expectFailMode = 0;-
126 delete [] const_cast<char *>(QTest::expectFailComment);-
127 QTest::expectFailComment = 0;-
128}
executed 133569 times by 507 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
  • ...
133569
129-
130void QTestResult::finishedCurrentTestData()-
131{-
132 if (QTest::expectFailMode)
QTest::expectFailModeDescription
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 128806 times by 507 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
  • ...
50-128806
133 addFailure("QEXPECT_FAIL was called without any subsequent verification statements", 0, 0);
executed 50 times by 1 test: addFailure("QEXPECT_FAIL was called without any subsequent verification statements", 0, 0);
Executed by:
  • tst_selftests - unknown status
50
134 clearExpectFail();-
135-
136 if (!QTest::failed && QTestLog::unhandledIgnoreMessages()) {
!QTest::failedDescription
TRUEevaluated 126438 times by 507 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 2418 times by 27 tests
Evaluated by:
  • tst_Gestures
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QFile
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QLockFile
  • tst_QNetworkCookieJar
  • tst_QOpenGLWidget
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QThreadStorage
  • tst_QUdpSocket
  • tst_QWidget
  • ...
QTestLog::unha...noreMessages()Description
TRUEevaluated 100 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 126338 times by 507 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
  • ...
100-126438
137 QTestLog::printUnhandledIgnoreMessages();-
138 addFailure("Not all expected messages were received", 0, 0);-
139 }
executed 100 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
100
140 QTestLog::clearIgnoreMessages();-
141}
executed 128856 times by 507 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
  • ...
128856
142-
143void QTestResult::finishedCurrentTestDataCleanup()-
144{-
145 // If the current test hasn't failed or been skipped, then it passes.-
146 if (!QTest::failed && !QTest::skipCurrentTest) {
!QTest::failedDescription
TRUEevaluated 126243 times by 507 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 2593 times by 27 tests
Evaluated by:
  • tst_Gestures
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QFile
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QLockFile
  • tst_QNetworkCookieJar
  • tst_QOpenGLWidget
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QThreadStorage
  • tst_QUdpSocket
  • tst_QWidget
  • ...
!QTest::skipCurrentTestDescription
TRUEevaluated 125097 times by 507 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 1146 times by 53 tests
Evaluated by:
  • tst_Compiler
  • tst_Lancelot
  • 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
  • ...
1146-126243
147 if (QTest::blacklistCurrentTest)
QTest::blacklistCurrentTestDescription
TRUEevaluated 531 times by 19 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QGestureRecognizer
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QPauseAnimation
  • tst_QSemaphore
  • tst_QSizeGrip
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QTcpServer
  • tst_QTextDocumentLayout
  • tst_QTouchEvent
  • tst_QUdpSocket
  • tst_Spdy
  • tst_selftests - unknown status
FALSEevaluated 124566 times by 507 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
  • ...
531-124566
148 QTestLog::addBPass("");
executed 531 times by 19 tests: QTestLog::addBPass("");
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QGestureRecognizer
  • tst_QGraphicsView
  • tst_QMdiArea
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QPauseAnimation
  • tst_QSemaphore
  • tst_QSizeGrip
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QTcpServer
  • tst_QTextDocumentLayout
  • tst_QTouchEvent
  • tst_QUdpSocket
  • tst_Spdy
  • tst_selftests - unknown status
531
149 else-
150 QTestLog::addPass("");
executed 124566 times by 507 tests: QTestLog::addPass("");
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
  • ...
124566
151 }-
152-
153 QTest::failed = false;-
154}
executed 128836 times by 507 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
  • ...
128836
155-
156void QTestResult::finishedCurrentTestFunction()-
157{-
158 QTest::currentTestFunc = 0;-
159 QTest::failed = false;-
160-
161 QTestLog::leaveTestFunction();-
162}
executed 15707 times by 507 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
  • ...
15707
163-
164const char *QTestResult::currentTestFunction()-
165{-
166 return QTest::currentTestFunc;
executed 324451 times by 507 tests: return QTest::currentTestFunc;
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
  • ...
324451
167}-
168-
169const char *QTestResult::currentDataTag()-
170{-
171 return QTest::currentTestData ? QTest::currentTestData->dataTag()
executed 564558 times by 507 tests: return QTest::currentTestData ? QTest::currentTestData->dataTag() : static_cast<const char *>(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
  • ...
564558
172 : static_cast<const char *>(0);
executed 564558 times by 507 tests: return QTest::currentTestData ? QTest::currentTestData->dataTag() : static_cast<const char *>(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
  • ...
564558
173}-
174-
175const char *QTestResult::currentGlobalDataTag()-
176{-
177 return QTest::currentGlobalTestData ? QTest::currentGlobalTestData->dataTag()
executed 196691 times by 507 tests: return QTest::currentGlobalTestData ? QTest::currentGlobalTestData->dataTag() : static_cast<const char *>(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
  • ...
196691
178 : static_cast<const char *>(0);
executed 196691 times by 507 tests: return QTest::currentGlobalTestData ? QTest::currentGlobalTestData->dataTag() : static_cast<const char *>(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
  • ...
196691
179}-
180-
181static bool isExpectFailData(const char *dataIndex)-
182{-
183 if (!dataIndex || dataIndex[0] == '\0')
!dataIndexDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QWidget
FALSEevaluated 8463 times by 39 tests
Evaluated 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
  • ...
dataIndex[0] == '\0'Description
TRUEevaluated 502 times by 30 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractPrintDialog
  • tst_QColumnView
  • tst_QDBusAbstractInterface
  • tst_QDateTime
  • tst_QEventLoop
  • tst_QFile
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QLatin1String
  • tst_QLineEdit
  • tst_QNetworkReply
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSqlDatabase
  • tst_QSqlTableModel
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTimeLine
  • tst_QTouchEvent
  • ...
FALSEevaluated 7961 times by 15 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QDateTime
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMenu
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSqlDatabase
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmessagehandler
  • tst_selftests - unknown status
3-8463
184 return true;
executed 505 times by 30 tests: return true;
Executed by:
  • tst_LargeFile
  • tst_QAbstractPrintDialog
  • tst_QColumnView
  • tst_QDBusAbstractInterface
  • tst_QDateTime
  • tst_QEventLoop
  • tst_QFile
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QLatin1String
  • tst_QLineEdit
  • tst_QNetworkReply
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSqlDatabase
  • tst_QSqlTableModel
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTimeLine
  • tst_QTouchEvent
  • ...
505
185 if (!QTest::currentTestData)
!QTest::currentTestDataDescription
TRUEnever evaluated
FALSEevaluated 7961 times by 15 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QDateTime
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMenu
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSqlDatabase
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmessagehandler
  • tst_selftests - unknown status
0-7961
186 return false;
never executed: return false;
0
187 if (strcmp(dataIndex, QTest::currentTestData->dataTag()) == 0)
strcmp(dataInd...ataTag()) == 0Description
TRUEevaluated 211 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QDateTime
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmessagehandler
  • tst_selftests - unknown status
FALSEevaluated 7750 times by 14 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMenu
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSqlDatabase
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmessagehandler
  • tst_selftests - unknown status
211-7750
188 return true;
executed 211 times by 13 tests: return true;
Executed by:
  • tst_QAuthenticator
  • tst_QDateTime
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmessagehandler
  • tst_selftests - unknown status
211
189 return false;
executed 7750 times by 14 tests: return false;
Executed by:
  • tst_QAuthenticator
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMenu
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSqlDatabase
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmessagehandler
  • tst_selftests - unknown status
7750
190}-
191-
192bool QTestResult::expectFail(const char *dataIndex, const char *comment,-
193 QTest::TestFailMode mode, const char *file, int line)-
194{-
195 QTEST_ASSERT(comment);
never executed: qt_assert("comment",__FILE__,195);
!(comment)Description
TRUEnever evaluated
FALSEevaluated 8466 times by 39 tests
Evaluated 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
  • ...
0-8466
196 QTEST_ASSERT(mode > 0);
never executed: qt_assert("mode > 0",__FILE__,196);
!(mode > 0)Description
TRUEnever evaluated
FALSEevaluated 8466 times by 39 tests
Evaluated 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
  • ...
0-8466
197-
198 if (!isExpectFailData(dataIndex)) {
!isExpectFailData(dataIndex)Description
TRUEevaluated 7750 times by 14 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMenu
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSqlDatabase
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmessagehandler
  • tst_selftests - unknown status
FALSEevaluated 716 times by 38 tests
Evaluated 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_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSqlDatabase
  • tst_QSqlTableModel
  • ...
716-7750
199 delete[] comment;-
200 return true; // we don't care
executed 7750 times by 14 tests: return true;
Executed by:
  • tst_QAuthenticator
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMenu
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSqlDatabase
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmessagehandler
  • tst_selftests - unknown status
7750
201 }-
202-
203 if (QTest::expectFailMode) {
QTest::expectFailModeDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 691 times by 38 tests
Evaluated 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_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSqlDatabase
  • tst_QSqlTableModel
  • ...
25-691
204 delete[] comment;-
205 clearExpectFail();-
206 addFailure("Already expecting a fail", file, line);-
207 return false;
executed 25 times by 1 test: return false;
Executed by:
  • tst_selftests - unknown status
25
208 }-
209-
210 QTest::expectFailMode = mode;-
211 QTest::expectFailComment = comment;-
212 return true;
executed 691 times by 38 tests: return true;
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_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSqlDatabase
  • tst_QSqlTableModel
  • ...
691
213}-
214-
215static bool checkStatement(bool statement, const char *msg, const char *file, int line)-
216{-
217 if (statement) {
statementDescription
TRUEevaluated 52635966 times by 506 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 2464 times by 61 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_QAbstractPrintDialog
  • tst_QAction
  • tst_QAuthenticator
  • tst_QColumnView
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDateTime
  • tst_QEventLoop
  • tst_QFile
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QLatin1String
  • tst_QLineEdit
  • tst_QLocalSocket
  • ...
2464-52635966
218 if (QTest::expectFailMode) {
QTest::expectFailModeDescription
TRUEevaluated 104 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 52635862 times by 506 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
  • ...
104-52635862
219 QTestLog::addXPass(msg, file, line);-
220 bool doContinue = (QTest::expectFailMode == QTest::Continue);-
221 clearExpectFail();-
222 QTest::failed = true;-
223 return doContinue;
executed 104 times by 1 test: return doContinue;
Executed by:
  • tst_selftests - unknown status
104
224 }-
225 return true;
executed 52635862 times by 506 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
  • ...
52635862
226 }-
227-
228 if (QTest::expectFailMode) {
QTest::expectFailModeDescription
TRUEevaluated 512 times by 38 tests
Evaluated 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_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSqlDatabase
  • tst_QSqlTableModel
  • ...
FALSEevaluated 1952 times by 27 tests
Evaluated by:
  • tst_Gestures
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QFile
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QLockFile
  • tst_QNetworkCookieJar
  • tst_QOpenGLWidget
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QThreadStorage
  • tst_QUdpSocket
  • tst_QWidget
  • ...
512-1952
229 QTestLog::addXFail(QTest::expectFailComment, file, line);-
230 bool doContinue = (QTest::expectFailMode == QTest::Continue);-
231 clearExpectFail();-
232 return doContinue;
executed 512 times by 38 tests: return doContinue;
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_QNetworkCookie
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSqlDatabase
  • tst_QSqlTableModel
  • ...
512
233 }-
234-
235 QTestResult::addFailure(msg, file, line);-
236 return false;
executed 1952 times by 27 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QFile
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QLockFile
  • tst_QNetworkCookieJar
  • tst_QOpenGLWidget
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QThreadStorage
  • tst_QUdpSocket
  • tst_QWidget
  • ...
1952
237}-
238-
239bool QTestResult::verify(bool statement, const char *statementStr,-
240 const char *description, const char *file, int line)-
241{-
242 QTEST_ASSERT(statementStr);
never executed: qt_assert("statementStr",__FILE__,242);
!(statementStr)Description
TRUEnever evaluated
FALSEevaluated 13110397 times by 453 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_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
0-13110397
243-
244 char msg[1024] = {'\0'};-
245-
246 if (QTestLog::verboseLevel() >= 2) {
QTestLog::verboseLevel() >= 2Description
TRUEevaluated 450 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 13109947 times by 453 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_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
450-13109947
247 qsnprintf(msg, 1024, "QVERIFY(%s)", statementStr);-
248 QTestLog::info(msg, file, line);-
249 }
executed 450 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
450
250-
251 if (!statement && !QTest::expectFailMode)
!statementDescription
TRUEevaluated 1317 times by 34 tests
Evaluated by:
  • tst_LargeFile
  • tst_QColumnView
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QEventLoop
  • tst_QFile
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QLatin1String
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QOpenGLWidget
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSqlTableModel
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 13109080 times by 453 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_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
!QTest::expectFailModeDescription
TRUEevaluated 990 times by 20 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QFile
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QLockFile
  • tst_QOpenGLWidget
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QThreadStorage
  • tst_QUdpSocket
  • tst_QWidget
  • tst_qmake
  • tst_selftests - unknown status
FALSEevaluated 327 times by 16 tests
Evaluated by:
  • tst_LargeFile
  • tst_QColumnView
  • tst_QEventLoop
  • tst_QGraphicsLayoutItem
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QLatin1String
  • tst_QLineEdit
  • tst_QNetworkReply
  • tst_QSqlTableModel
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTouchEvent
  • tst_QWidget
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
327-13109080
252 qsnprintf(msg, 1024, "'%s' returned FALSE. (%s)", statementStr, description ? description : "");
executed 990 times by 20 tests: qsnprintf(msg, 1024, "'%s' returned FALSE. (%s)", statementStr, description ? description : "");
Executed by:
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QFile
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QLockFile
  • tst_QOpenGLWidget
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QThreadStorage
  • tst_QUdpSocket
  • tst_QWidget
  • tst_qmake
  • tst_selftests - unknown status
990
253 else if (statement && QTest::expectFailMode)
statementDescription
TRUEevaluated 13109080 times by 453 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_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
FALSEevaluated 327 times by 16 tests
Evaluated by:
  • tst_LargeFile
  • tst_QColumnView
  • tst_QEventLoop
  • tst_QGraphicsLayoutItem
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QLatin1String
  • tst_QLineEdit
  • tst_QNetworkReply
  • tst_QSqlTableModel
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTouchEvent
  • tst_QWidget
  • tst_QXmlSimpleReader
  • tst_selftests - unknown status
QTest::expectFailModeDescription
TRUEevaluated 79 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 13109001 times by 453 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_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
79-13109080
254 qsnprintf(msg, 1024, "'%s' returned TRUE unexpectedly. (%s)", statementStr, description ? description : "");
executed 79 times by 1 test: qsnprintf(msg, 1024, "'%s' returned TRUE unexpectedly. (%s)", statementStr, description ? description : "");
Executed by:
  • tst_selftests - unknown status
79
255-
256 return checkStatement(statement, msg, file, line);
executed 13110397 times by 453 tests: return checkStatement(statement, msg, 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
257}-
258-
259bool QTestResult::compare(bool success, const char *failureMsg,-
260 char *val1, char *val2,-
261 const char *actual, const char *expected,-
262 const char *file, int line)-
263{-
264 QTEST_ASSERT(expected);
never executed: qt_assert("expected",__FILE__,264);
!(expected)Description
TRUEnever evaluated
FALSEevaluated 39528033 times by 481 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-39528033
265 QTEST_ASSERT(actual);
never executed: qt_assert("actual",__FILE__,265);
!(actual)Description
TRUEnever evaluated
FALSEevaluated 39523233 times by 481 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-39523233
266-
267 const size_t maxMsgLen = 1024;-
268 char msg[maxMsgLen] = {'\0'};-
269-
270 if (QTestLog::verboseLevel() >= 2) {
QTestLog::verboseLevel() >= 2Description
TRUEevaluated 150 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 39527883 times by 481 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
  • ...
150-39527883
271 qsnprintf(msg, maxMsgLen, "QCOMPARE(%s, %s)", actual, expected);-
272 QTestLog::info(msg, file, line);-
273 }
executed 150 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
150
274-
275 if (!failureMsg)
!failureMsgDescription
TRUEevaluated 8710 times by 8 tests
Evaluated by:
  • tst_QComboBox
  • tst_QGraphicsEffectSource
  • tst_QGraphicsPixmapItem
  • tst_QImageReader
  • tst_QMessageBox
  • tst_QPixmap
  • tst_QSizePolicy
  • tst_selftests - unknown status
FALSEevaluated 39519323 times by 481 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
  • ...
8710-39519323
276 failureMsg = "Compared values are not the same";
executed 8710 times by 8 tests: failureMsg = "Compared values are not the same";
Executed by:
  • tst_QComboBox
  • tst_QGraphicsEffectSource
  • tst_QGraphicsPixmapItem
  • tst_QImageReader
  • tst_QMessageBox
  • tst_QPixmap
  • tst_QSizePolicy
  • tst_selftests - unknown status
8710
277-
278 if (success) {
successDescription
TRUEevaluated 39526886 times by 481 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 1147 times by 38 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractPrintDialog
  • tst_QAction
  • tst_QAuthenticator
  • tst_QDBusAbstractInterface
  • tst_QDateTime
  • tst_QFile
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QLatin1String
  • tst_QLineEdit
  • tst_QLockFile
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSqlDatabase
  • ...
1147-39526886
279 if (QTest::expectFailMode) {
QTest::expectFailModeDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 39526861 times by 481 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
  • ...
25-39526861
280 qsnprintf(msg, maxMsgLen,-
281 "QCOMPARE(%s, %s) returned TRUE unexpectedly.", actual, expected);-
282 }
executed 25 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
25
283 } else if (val1 || val2) {
executed 39526886 times by 481 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
  • ...
val1Description
TRUEevaluated 711 times by 33 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractPrintDialog
  • tst_QAuthenticator
  • tst_QDBusAbstractInterface
  • tst_QDateTime
  • tst_QFile
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QLatin1String
  • tst_QLineEdit
  • tst_QLockFile
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSslSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • ...
FALSEevaluated 436 times by 7 tests
Evaluated by:
  • tst_QAction
  • tst_QDBusAbstractInterface
  • tst_QNetworkCookie
  • tst_QSqlDatabase
  • tst_QStyleSheetStyle
  • tst_QTimeLine
  • tst_selftests - unknown status
val2Description
TRUEnever evaluated
FALSEevaluated 436 times by 7 tests
Evaluated by:
  • tst_QAction
  • tst_QDBusAbstractInterface
  • tst_QNetworkCookie
  • tst_QSqlDatabase
  • tst_QStyleSheetStyle
  • tst_QTimeLine
  • tst_selftests - unknown status
0-39526886
284 size_t len1 = mbstowcs(NULL, actual, maxMsgLen); // Last parameter is not ignored on QNX-
285 size_t len2 = mbstowcs(NULL, expected, maxMsgLen); // (result is never larger than this).-
286 qsnprintf(msg, maxMsgLen, "%s\n Actual (%s)%*s %s\n Expected (%s)%*s %s",-
287 failureMsg,-
288 actual, qMax(len1, len2) - len1 + 1, ":", val1 ? val1 : "<null>",-
289 expected, qMax(len1, len2) - len2 + 1, ":", val2 ? val2 : "<null>");-
290 } else
executed 711 times by 33 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractPrintDialog
  • tst_QAuthenticator
  • tst_QDBusAbstractInterface
  • tst_QDateTime
  • tst_QFile
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsLayoutItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QLatin1String
  • tst_QLineEdit
  • tst_QLockFile
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRect
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSslSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • ...
711
291 qsnprintf(msg, maxMsgLen, "%s", failureMsg);
executed 436 times by 7 tests: qsnprintf(msg, maxMsgLen, "%s", failureMsg);
Executed by:
  • tst_QAction
  • tst_QDBusAbstractInterface
  • tst_QNetworkCookie
  • tst_QSqlDatabase
  • tst_QStyleSheetStyle
  • tst_QTimeLine
  • tst_selftests - unknown status
436
292-
293 delete [] val1;-
294 delete [] val2;-
295-
296 return checkStatement(success, msg, file, line);
executed 39528033 times by 481 tests: return checkStatement(success, msg, 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
297}-
298-
299void QTestResult::addFailure(const char *message, const char *file, int line)-
300{-
301 clearExpectFail();-
302-
303 if (QTest::blacklistCurrentTest)
QTest::blacklistCurrentTestDescription
TRUEevaluated 14 times by 7 tests
Evaluated by:
  • tst_QAction
  • tst_QCompleter
  • tst_QFtp
  • tst_QSocks5SocketEngine
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QWidget
  • tst_selftests - unknown status
FALSEevaluated 2655 times by 23 tests
Evaluated by:
  • tst_Gestures
  • tst_QCommandLineParser
  • tst_QFile
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QLockFile
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QOpenGLWidget
  • tst_QProcess
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QThreadStorage
  • tst_QUdpSocket
  • tst_QWidget
  • tst_qmake
  • tst_selftests - unknown status
14-2655
304 QTestLog::addBFail(message, file, line);
executed 14 times by 7 tests: QTestLog::addBFail(message, file, line);
Executed by:
  • tst_QAction
  • tst_QCompleter
  • tst_QFtp
  • tst_QSocks5SocketEngine
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QWidget
  • tst_selftests - unknown status
14
305 else-
306 QTestLog::addFail(message, file, line);
executed 2655 times by 23 tests: QTestLog::addFail(message, file, line);
Executed by:
  • tst_Gestures
  • tst_QCommandLineParser
  • tst_QFile
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QLockFile
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QOpenGLWidget
  • tst_QProcess
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QThreadStorage
  • tst_QUdpSocket
  • tst_QWidget
  • tst_qmake
  • tst_selftests - unknown status
2655
307 QTest::failed = true;-
308}
executed 2669 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QFile
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QLocalSocket
  • tst_QLocale
  • tst_QLockFile
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QOpenGLWidget
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QThreadStorage
  • tst_QUdpSocket
  • ...
2669
309-
310void QTestResult::addSkip(const char *message, const char *file, int line)-
311{-
312 clearExpectFail();-
313-
314 QTestLog::addSkip(message, file, line);-
315}
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
316-
317void QTestResult::setCurrentTestObject(const char *name)-
318{-
319 QTest::currentTestObjectName = name;-
320}
executed 815 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
815
321-
322const char *QTestResult::currentTestObjectName()-
323{-
324 return QTest::currentTestObjectName ? QTest::currentTestObjectName : "";
executed 152218 times by 507 tests: return QTest::currentTestObjectName ? QTest::currentTestObjectName : "";
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
  • ...
152218
325}-
326-
327void QTestResult::setSkipCurrentTest(bool value)-
328{-
329 QTest::skipCurrentTest = value;-
330}
executed 142377 times by 507 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
  • ...
142377
331-
332bool QTestResult::skipCurrentTest()-
333{-
334 return QTest::skipCurrentTest;
executed 270264 times by 507 tests: return QTest::skipCurrentTest;
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
  • ...
270264
335}-
336-
337void QTestResult::setCurrentAppName(const char *appName)-
338{-
339 ::currentAppName = appName;-
340}
executed 815 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
815
341-
342const char *QTestResult::currentAppName()-
343{-
344 return ::currentAppName;
executed 2183 times by 506 tests: return ::currentAppName;
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
  • ...
2183
345}-
346-
347QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

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