OpenCoverage

qtestlog.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/testlib/qtestlog.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/qtestassert.h>-
41-
42#include <QtTest/private/qtestlog_p.h>-
43#include <QtTest/private/qtestresult_p.h>-
44#include <QtTest/private/qabstracttestlogger_p.h>-
45#include <QtTest/private/qplaintestlogger_p.h>-
46#include <QtTest/private/qcsvbenchmarklogger_p.h>-
47#include <QtTest/private/qxunittestlogger_p.h>-
48#include <QtTest/private/qxmltestlogger_p.h>-
49#include <QtTest/private/qteamcitylogger_p.h>-
50#if defined(HAVE_XCTEST)-
51#include <QtTest/private/qxctestlogger_p.h>-
52#endif-
53-
54#include <QtCore/qatomic.h>-
55#include <QtCore/qbytearray.h>-
56#include <QtCore/QElapsedTimer>-
57#include <QtCore/QVariant>-
58#include <QtCore/QRegularExpression>-
59-
60#include <stdlib.h>-
61#include <string.h>-
62#include <limits.h>-
63-
64QT_BEGIN_NAMESPACE-
65-
66static void saveCoverageTool(const char * appname, bool testfailed, bool installedTestCoverage)-
67{-
68#ifdef __COVERAGESCANNER__-
69 if (!installedTestCoverage)
!installedTestCoverageDescription
TRUEevaluated 809 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 509 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
  • ...
509-809
70 return;
executed 809 times by 1 test: return;
Executed by:
  • tst_selftests - unknown status
809
71 // install again to make sure the filename is correct.-
72 // without this, a plugin or similar may have changed the filename.-
73 __coveragescanner_install(appname);-
74 __coveragescanner_teststate(testfailed ? "FAILED" : "PASSED");-
75 __coveragescanner_save();-
76 __coveragescanner_testname("");-
77 __coveragescanner_clear();-
78 unsetenv("QT_TESTCOCOON_ACTIVE");-
79#else-
80 Q_UNUSED(appname);-
81 Q_UNUSED(testfailed);-
82 Q_UNUSED(installedTestCoverage);-
83#endif-
84}
executed 509 times by 509 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
  • ...
509
85-
86static QElapsedTimer elapsedFunctionTime;-
87static QElapsedTimer elapsedTotalTime;-
88-
89namespace QTest {-
90-
91 int fails = 0;-
92 int passes = 0;-
93 int skips = 0;-
94 int blacklists = 0;-
95-
96 struct IgnoreResultList-
97 {-
98 inline IgnoreResultList(QtMsgType tp, const QVariant &patternIn)-
99 : type(tp), pattern(patternIn), next(0) {}
executed 1189 times by 84 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
  • ...
1189
100-
101 static inline void clearList(IgnoreResultList *&list)-
102 {-
103 while (list) {
listDescription
TRUEevaluated 175 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 128856 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
  • ...
175-128856
104 IgnoreResultList *current = list;-
105 list = list->next;-
106 delete current;-
107 }
executed 175 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
175
108 }
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
109-
110 static void append(IgnoreResultList *&list, QtMsgType type, const QVariant &patternIn)-
111 {-
112 QTest::IgnoreResultList *item = new QTest::IgnoreResultList(type, patternIn);-
113-
114 if (!list) {
!listDescription
TRUEevaluated 859 times by 84 tests
Evaluated 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
  • ...
FALSEevaluated 330 times by 17 tests
Evaluated by:
  • tst_Gestures
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QDBusMarshall
  • tst_QDebug
  • tst_QGraphicsAnchorLayout1
  • tst_QImageReader
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QMimeDatabase
  • tst_QNoDebug
  • tst_QObject
  • tst_QSettings
  • tst_QSqlDatabase
  • tst_QSslSocket
  • tst_selftests - unknown status
330-859
115 list = item;-
116 return;
executed 859 times by 84 tests: return;
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
  • ...
859
117 }-
118 IgnoreResultList *last = list;-
119 for ( ; last->next; last = last->next) ;
executed 282 times by 10 tests: ;
Executed by:
  • tst_Gestures
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QGraphicsAnchorLayout1
  • tst_QImageReader
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QObject
  • tst_QSettings
  • tst_selftests - unknown status
last->nextDescription
TRUEevaluated 282 times by 10 tests
Evaluated by:
  • tst_Gestures
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QGraphicsAnchorLayout1
  • tst_QImageReader
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QObject
  • tst_QSettings
  • tst_selftests - unknown status
FALSEevaluated 330 times by 17 tests
Evaluated by:
  • tst_Gestures
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QDBusMarshall
  • tst_QDebug
  • tst_QGraphicsAnchorLayout1
  • tst_QImageReader
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QMimeDatabase
  • tst_QNoDebug
  • tst_QObject
  • tst_QSettings
  • tst_QSqlDatabase
  • tst_QSslSocket
  • tst_selftests - unknown status
282-330
120 last->next = item;-
121 }
executed 330 times by 17 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QDBusMarshall
  • tst_QDebug
  • tst_QGraphicsAnchorLayout1
  • tst_QImageReader
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QMimeDatabase
  • tst_QNoDebug
  • tst_QObject
  • tst_QSettings
  • tst_QSqlDatabase
  • tst_QSslSocket
  • tst_selftests - unknown status
330
122-
123 static bool stringsMatch(const QString &expected, const QString &actual)-
124 {-
125 if (expected == actual)
expected == actualDescription
TRUEevaluated 897 times by 82 tests
Evaluated 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
  • ...
FALSEevaluated 246 times by 5 tests
Evaluated by:
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QObject
  • tst_QSslSocket
  • tst_selftests - unknown status
246-897
126 return true;
executed 897 times by 82 tests: return true;
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
  • ...
897
127-
128 // ignore an optional whitespace at the end of str-
129 // (the space was added automatically by ~QDebug() until Qt 5.3,-
130 // so autotests still might expect it)-
131 if (expected.endsWith(QLatin1Char(' ')))
expected.endsW...tin1Char(' '))Description
TRUEevaluated 26 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_selftests - unknown status
FALSEevaluated 220 times by 4 tests
Evaluated by:
  • tst_QImageReader
  • tst_QObject
  • tst_QSslSocket
  • tst_selftests - unknown status
26-220
132 return actual == expected.leftRef(expected.length() - 1);
executed 26 times by 2 tests: return actual == expected.leftRef(expected.length() - 1);
Executed by:
  • tst_QMetaObject
  • tst_selftests - unknown status
26
133-
134 return false;
executed 220 times by 4 tests: return false;
Executed by:
  • tst_QImageReader
  • tst_QObject
  • tst_QSslSocket
  • tst_selftests - unknown status
220
135 }-
136-
137 inline bool matches(QtMsgType tp, const QString &message) const-
138 {-
139 return tp == type
executed 1234 times by 84 tests: return tp == type && (pattern.type() == QVariant::String ? stringsMatch(pattern.toString(), message) : pattern.toRegularExpression().match(message).hasMatch());
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
  • ...
1234
140 && (pattern.type() == QVariant::String ?
executed 1234 times by 84 tests: return tp == type && (pattern.type() == QVariant::String ? stringsMatch(pattern.toString(), message) : pattern.toRegularExpression().match(message).hasMatch());
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
  • ...
1234
141 stringsMatch(pattern.toString(), message) :
executed 1234 times by 84 tests: return tp == type && (pattern.type() == QVariant::String ? stringsMatch(pattern.toString(), message) : pattern.toRegularExpression().match(message).hasMatch());
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
  • ...
1234
142#ifndef QT_NO_REGULAREXPRESSION
executed 1234 times by 84 tests: return tp == type && (pattern.type() == QVariant::String ? stringsMatch(pattern.toString(), message) : pattern.toRegularExpression().match(message).hasMatch());
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
  • ...
1234
143 pattern.toRegularExpression().match(message).hasMatch());
executed 1234 times by 84 tests: return tp == type && (pattern.type() == QVariant::String ? stringsMatch(pattern.toString(), message) : pattern.toRegularExpression().match(message).hasMatch());
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
  • ...
1234
144#else-
145 false);-
146#endif-
147 }-
148-
149 QtMsgType type;-
150 QVariant pattern;-
151 IgnoreResultList *next;-
152 };-
153-
154 static IgnoreResultList *ignoreResultList = 0;-
155-
156 struct LoggerList-
157 {-
158 QAbstractTestLogger *logger;-
159 LoggerList *next;-
160 };-
161-
162 class TestLoggers-
163 {-
164 public:-
165 static void addLogger(QAbstractTestLogger *logger)-
166 {-
167 LoggerList *l = new LoggerList;-
168 l->logger = logger;-
169 l->next = loggers;-
170 loggers = l;-
171 }
executed 1593 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
  • ...
1593
172-
173 static void destroyLoggers()-
174 {-
175 while (loggers) {
loggersDescription
TRUEevaluated 1589 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 1318 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
  • ...
1318-1589
176 LoggerList *l = loggers;-
177 loggers = loggers->next;-
178 delete l->logger;-
179 delete l;-
180 }
executed 1589 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
  • ...
1589
181 }
executed 1318 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
  • ...
1318
182-
183#define FOREACH_LOGGER(operation) \-
184 LoggerList *l = loggers; \-
185 while (l) { \-
186 QAbstractTestLogger *logger = l->logger; \-
187 Q_UNUSED(logger); \-
188 operation; \-
189 l = l->next; \-
190 }-
191-
192 static void startLogging()-
193 {-
194 FOREACH_LOGGER(logger->startLogging());
executed 1591 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
  • ...
lDescription
TRUEevaluated 1591 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
  • ...
1320-1591
195 }
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
196-
197 static void stopLogging()-
198 {-
199 FOREACH_LOGGER(logger->stopLogging());
executed 1589 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
  • ...
lDescription
TRUEevaluated 1589 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 1318 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
  • ...
1318-1589
200 }
executed 1318 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
  • ...
1318
201-
202 static void enterTestFunction(const char *function)-
203 {-
204 FOREACH_LOGGER(logger->enterTestFunction(function));
executed 17435 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
  • ...
lDescription
TRUEevaluated 17435 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 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
  • ...
15764-17435
205 }
executed 15764 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
  • ...
15764
206-
207 static void leaveTestFunction()-
208 {-
209 FOREACH_LOGGER(logger->leaveTestFunction());
executed 17433 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
  • ...
lDescription
TRUEevaluated 17433 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 15762 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
  • ...
15762-17433
210 }
executed 15762 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
  • ...
15762
211-
212 static void addIncident(QAbstractTestLogger::IncidentTypes type, const char *description,-
213 const char *file = 0, int line = 0)-
214 {-
215 FOREACH_LOGGER(logger->addIncident(type, description, file, line));
executed 131080 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
  • ...
lDescription
TRUEevaluated 131080 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 128382 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
  • ...
128382-131080
216 }
executed 128382 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
  • ...
128382
217-
218 static void addBenchmarkResult(const QBenchmarkResult &result)-
219 {-
220 FOREACH_LOGGER(logger->addBenchmarkResult(result));
executed 358 times by 2 tests: end of block
Executed by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
lDescription
TRUEevaluated 358 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
FALSEevaluated 282 times by 2 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
282-358
221 }
executed 282 times by 2 tests: end of block
Executed by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
282
222-
223 static void addMessage(QAbstractTestLogger::MessageTypes type, const QString &message,-
224 const char *file = 0, int line = 0)-
225 {-
226 FOREACH_LOGGER(logger->addMessage(type, message, file, line));
executed 75944 times by 135 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QCssParser
  • tst_QDBusConnection_NoApplication
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
lDescription
TRUEevaluated 75944 times by 135 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QCssParser
  • tst_QDBusConnection_NoApplication
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
FALSEevaluated 56500 times by 135 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QCssParser
  • tst_QDBusConnection_NoApplication
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
56500-75944
227 }
executed 56500 times by 135 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QCssParser
  • tst_QDBusConnection_NoApplication
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
56500
228-
229 static void outputString(const char *msg)-
230 {-
231 FOREACH_LOGGER(logger->outputString(msg));
never executed: end of block
lDescription
TRUEnever evaluated
FALSEnever evaluated
0
232 }
never executed: end of block
0
233-
234 static int loggerCount()-
235 {-
236 int count = 0;-
237 FOREACH_LOGGER(++count);
executed 346939 times by 160 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
lDescription
TRUEevaluated 346939 times by 160 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
FALSEevaluated 257440 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
  • ...
257440-346939
238 return count;
executed 257440 times by 506 tests: return count;
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
  • ...
257440
239 }-
240-
241 private:-
242 static LoggerList *loggers;-
243 };-
244-
245#undef FOREACH_LOGGER-
246-
247 LoggerList *TestLoggers::loggers = 0;-
248 static bool loggerUsingStdout = false;-
249-
250 static int verbosity = 0;-
251 static int maxWarnings = 2002;-
252 static bool installedTestCoverage = true;-
253-
254 static QtMessageHandler oldMessageHandler;-
255-
256 static bool handleIgnoredMessage(QtMsgType type, const QString &message)-
257 {-
258 if (!ignoreResultList)
!ignoreResultListDescription
TRUEevaluated 254119 times by 101 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 1052 times by 84 tests
Evaluated 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
  • ...
1052-254119
259 return false;
executed 254119 times by 101 tests: return false;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
254119
260 IgnoreResultList *last = 0;-
261 IgnoreResultList *list = ignoreResultList;-
262 while (list) {
listDescription
TRUEevaluated 1234 times by 84 tests
Evaluated 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
  • ...
FALSEevaluated 38 times by 2 tests
Evaluated by:
  • tst_QImageReader
  • tst_selftests - unknown status
38-1234
263 if (list->matches(type, message)) {
list->matches(type, message)Description
TRUEevaluated 1014 times by 84 tests
Evaluated 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
  • ...
FALSEevaluated 220 times by 4 tests
Evaluated by:
  • tst_QImageReader
  • tst_QObject
  • tst_QSslSocket
  • tst_selftests - unknown status
220-1014
264 // remove the item from the list-
265 if (last)
lastDescription
TRUEevaluated 86 times by 3 tests
Evaluated by:
  • tst_QObject
  • tst_QSslSocket
  • tst_selftests - unknown status
FALSEevaluated 928 times by 84 tests
Evaluated 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
  • ...
86-928
266 last->next = list->next;
executed 86 times by 3 tests: last->next = list->next;
Executed by:
  • tst_QObject
  • tst_QSslSocket
  • tst_selftests - unknown status
86
267 else if (list->next)
list->nextDescription
TRUEevaluated 169 times by 17 tests
Evaluated by:
  • tst_Gestures
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QDBusMarshall
  • tst_QDebug
  • tst_QGraphicsAnchorLayout1
  • tst_QImageReader
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QMimeDatabase
  • tst_QNoDebug
  • tst_QObject
  • tst_QSettings
  • tst_QSqlDatabase
  • tst_QSslSocket
  • tst_selftests - unknown status
FALSEevaluated 759 times by 84 tests
Evaluated 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
  • ...
169-759
268 ignoreResultList = list->next;
executed 169 times by 17 tests: ignoreResultList = list->next;
Executed by:
  • tst_Gestures
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QDBusMarshall
  • tst_QDebug
  • tst_QGraphicsAnchorLayout1
  • tst_QImageReader
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QMimeDatabase
  • tst_QNoDebug
  • tst_QObject
  • tst_QSettings
  • tst_QSqlDatabase
  • tst_QSslSocket
  • tst_selftests - unknown status
169
269 else-
270 ignoreResultList = 0;
executed 759 times by 84 tests: ignoreResultList = 0;
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
  • ...
759
271-
272 delete list;-
273 return true;
executed 1014 times by 84 tests: return true;
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
  • ...
1014
274 }-
275-
276 last = list;-
277 list = list->next;-
278 }
executed 220 times by 4 tests: end of block
Executed by:
  • tst_QImageReader
  • tst_QObject
  • tst_QSslSocket
  • tst_selftests - unknown status
220
279 return false;
executed 38 times by 2 tests: return false;
Executed by:
  • tst_QImageReader
  • tst_selftests - unknown status
38
280 }-
281-
282 static void messageHandler(QtMsgType type, const QMessageLogContext & context, const QString &message)-
283 {-
284 static QBasicAtomicInt counter = Q_BASIC_ATOMIC_INITIALIZER(QTest::maxWarnings);-
285-
286 if (QTest::TestLoggers::loggerCount() == 0) {
QTest::TestLog...erCount() == 0Description
TRUEnever evaluated
FALSEevaluated 255171 times by 156 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • ...
0-255171
287 // if this goes wrong, something is seriously broken.-
288 qInstallMessageHandler(oldMessageHandler);-
289 QTEST_ASSERT(QTest::TestLoggers::loggerCount() != 0);
never executed: qt_assert("QTest::TestLoggers::loggerCount() != 0",__FILE__,289);
!(QTest::TestL...rCount() != 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
290 }
never executed: end of block
0
291-
292 if (handleIgnoredMessage(type, message))
handleIgnoredM...type, message)Description
TRUEevaluated 1014 times by 84 tests
Evaluated 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
  • ...
FALSEevaluated 254157 times by 101 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
1014-254157
293 // the message is expected, so just swallow it.-
294 return;
executed 1014 times by 84 tests: return;
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
  • ...
1014
295-
296 QString msg = qFormatLogMessage(type, context, message);-
297-
298 if (type != QtFatalMsg) {
type != QtFatalMsgDescription
TRUEevaluated 254102 times by 101 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
FALSEevaluated 55 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_selftests - unknown status
55-254102
299 if (counter.load() <= 0)
counter.load() <= 0Description
TRUEevaluated 199950 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 54152 times by 101 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
54152-199950
300 return;
executed 199950 times by 1 test: return;
Executed by:
  • tst_selftests - unknown status
199950
301-
302 if (!counter.deref()) {
!counter.deref()Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 54127 times by 101 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
25-54127
303 QTest::TestLoggers::addMessage(QAbstractTestLogger::QSystem,-
304 QStringLiteral("Maximum amount of warnings exceeded. Use -maxwarnings to override."));
executed 25 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_selftests - unknown status
25
305 return;
executed 25 times by 1 test: return;
Executed by:
  • tst_selftests - unknown status
25
306 }-
307 }
executed 54127 times by 101 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
54127
308-
309 switch (type) {-
310 case QtDebugMsg:
executed 3368 times by 55 tests: case QtDebugMsg:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QApplication
  • tst_QBrush
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDateTime
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMdiSubWindow
  • tst_QMimeDatabase
  • tst_QMutex
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • ...
3368
311 QTest::TestLoggers::addMessage(QAbstractTestLogger::QDebug, msg);-
312 break;
executed 3368 times by 55 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QApplication
  • tst_QBrush
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDateTime
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMdiSubWindow
  • tst_QMimeDatabase
  • tst_QMutex
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • ...
3368
313 case QtInfoMsg:
executed 54 times by 1 test: case QtInfoMsg:
Executed by:
  • tst_selftests - unknown status
54
314 QTest::TestLoggers::addMessage(QAbstractTestLogger::QInfo, msg);-
315 break;
executed 54 times by 1 test: break;
Executed by:
  • tst_selftests - unknown status
54
316 case QtCriticalMsg:
executed 4 times by 1 test: case QtCriticalMsg:
Executed by:
  • tst_selftests - unknown status
4
317 QTest::TestLoggers::addMessage(QAbstractTestLogger::QSystem, msg);-
318 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_selftests - unknown status
4
319 case QtWarningMsg:
executed 50701 times by 69 tests: case QtWarningMsg:
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • tst_QGLBuffer
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsProxyWidget
  • ...
50701
320 QTest::TestLoggers::addMessage(QAbstractTestLogger::QWarning, msg);-
321 break;
executed 50701 times by 69 tests: break;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • tst_QGLBuffer
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsProxyWidget
  • ...
50701
322 case QtFatalMsg:
executed 55 times by 2 tests: case QtFatalMsg:
Executed by:
  • tst_QNetworkReply
  • tst_selftests - unknown status
55
323 QTest::TestLoggers::addMessage(QAbstractTestLogger::QFatal, msg);-
324 /* Right now, we're inside the custom message handler and we're-
325 * being qt_message_output in qglobal.cpp. After we return from-
326 * this function, it will proceed with calling exit() and abort()-
327 * and hence crash. Therefore, we call these logging functions such-
328 * that we wrap up nicely, and in particular produce well-formed XML. */-
329 QTestResult::addFailure("Received a fatal error.", "Unknown file", 0);-
330 QTestLog::leaveTestFunction();-
331 QTestLog::stopLogging();-
332 break;
executed 55 times by 2 tests: break;
Executed by:
  • tst_qnetworkreply - unknown status
  • tst_selftests - unknown status
55
333 }-
334 }
executed 54182 times by 102 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDrag
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFormLayout
  • ...
54182
335}-
336-
337void QTestLog::enterTestFunction(const char* function)-
338{-
339 elapsedFunctionTime.restart();-
340 if (printAvailableTags)
printAvailableTagsDescription
TRUEnever evaluated
FALSEevaluated 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
  • ...
0-15764
341 return;
never executed: return;
0
342-
343 QTEST_ASSERT(function);
never executed: qt_assert("function",__FILE__,343);
!(function)Description
TRUEnever evaluated
FALSEevaluated 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
  • ...
0-15764
344-
345 QTest::TestLoggers::enterTestFunction(function);-
346}
executed 15764 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
  • ...
15764
347-
348int QTestLog::unhandledIgnoreMessages()-
349{-
350 int i = 0;-
351 QTest::IgnoreResultList *list = QTest::ignoreResultList;-
352 while (list) {
listDescription
TRUEevaluated 175 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 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
  • ...
175-126438
353 ++i;-
354 list = list->next;-
355 }
executed 175 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
175
356 return i;
executed 126438 times by 507 tests: return 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
  • ...
126438
357}-
358-
359void QTestLog::leaveTestFunction()-
360{-
361 if (printAvailableTags)
printAvailableTagsDescription
TRUEnever evaluated
FALSEevaluated 15762 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
  • ...
0-15762
362 return;
never executed: return;
0
363-
364 QTest::TestLoggers::leaveTestFunction();-
365}
executed 15762 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
  • ...
15762
366-
367void QTestLog::printUnhandledIgnoreMessages()-
368{-
369 QString message;-
370 QTest::IgnoreResultList *list = QTest::ignoreResultList;-
371 while (list) {
listDescription
TRUEevaluated 175 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 100 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
100-175
372 if (list->pattern.type() == QVariant::String) {
list->pattern....ariant::StringDescription
TRUEevaluated 150 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
25-150
373 message = QStringLiteral("Did not receive message: \"") + list->pattern.toString() + QLatin1Char('"');
executed 150 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_selftests - unknown status
150
374 } else {
executed 150 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
150
375#ifndef QT_NO_REGULAREXPRESSION-
376 message = QStringLiteral("Did not receive any message matching: \"") + list->pattern.toRegularExpression().pattern() + QLatin1Char('"');
executed 25 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_selftests - unknown status
25
377#endif-
378 }
executed 25 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
25
379 QTest::TestLoggers::addMessage(QAbstractTestLogger::Info, message);-
380-
381 list = list->next;-
382 }
executed 175 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
175
383}
executed 100 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
100
384-
385void QTestLog::clearIgnoreMessages()-
386{-
387 QTest::IgnoreResultList::clearList(QTest::ignoreResultList);-
388}
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
389-
390void QTestLog::addPass(const char *msg)-
391{-
392 if (printAvailableTags)
printAvailableTagsDescription
TRUEnever evaluated
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
  • ...
0-124566
393 return;
never executed: return;
0
394-
395 QTEST_ASSERT(msg);
never executed: qt_assert("msg",__FILE__,395);
!(msg)Description
TRUEnever evaluated
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
  • ...
0-124566
396-
397 ++QTest::passes;-
398-
399 QTest::TestLoggers::addIncident(QAbstractTestLogger::Pass, msg);-
400}
executed 124566 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
  • ...
124566
401-
402void QTestLog::addFail(const char *msg, const char *file, int line)-
403{-
404 QTEST_ASSERT(msg);
never executed: qt_assert("msg",__FILE__,404);
!(msg)Description
TRUEnever evaluated
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
0-2655
405-
406 ++QTest::fails;-
407-
408 QTest::TestLoggers::addIncident(QAbstractTestLogger::Fail, msg, file, line);-
409}
executed 2655 times by 23 tests: end of block
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
410-
411void QTestLog::addXFail(const char *msg, const char *file, int line)-
412{-
413 QTEST_ASSERT(msg);
never executed: qt_assert("msg",__FILE__,413);
!(msg)Description
TRUEnever evaluated
FALSEevaluated 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
  • ...
0-512
414 QTEST_ASSERT(file);
never executed: qt_assert("file",__FILE__,414);
!(file)Description
TRUEnever evaluated
FALSEevaluated 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
  • ...
0-512
415-
416 QTest::TestLoggers::addIncident(QAbstractTestLogger::XFail, msg, file, line);-
417}
executed 512 times by 38 tests: end of block
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
418-
419void QTestLog::addXPass(const char *msg, const char *file, int line)-
420{-
421 QTEST_ASSERT(msg);
never executed: qt_assert("msg",__FILE__,421);
!(msg)Description
TRUEnever evaluated
FALSEevaluated 104 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
0-104
422 QTEST_ASSERT(file);
never executed: qt_assert("file",__FILE__,422);
!(file)Description
TRUEnever evaluated
FALSEevaluated 104 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
0-104
423-
424 ++QTest::fails;-
425-
426 QTest::TestLoggers::addIncident(QAbstractTestLogger::XPass, msg, file, line);-
427}
executed 104 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
104
428-
429void QTestLog::addBPass(const char *msg)-
430{-
431 QTEST_ASSERT(msg);
never executed: qt_assert("msg",__FILE__,431);
!(msg)Description
TRUEnever evaluated
FALSEevaluated 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
0-531
432-
433 ++QTest::blacklists;-
434-
435 QTest::TestLoggers::addIncident(QAbstractTestLogger::BlacklistedPass, msg);-
436}
executed 531 times by 19 tests: end of block
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
437-
438void QTestLog::addBFail(const char *msg, const char *file, int line)-
439{-
440 QTEST_ASSERT(msg);
never executed: qt_assert("msg",__FILE__,440);
!(msg)Description
TRUEnever evaluated
FALSEevaluated 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
0-14
441 QTEST_ASSERT(file);
never executed: qt_assert("file",__FILE__,441);
!(file)Description
TRUEnever evaluated
FALSEevaluated 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
0-14
442-
443 ++QTest::blacklists;-
444-
445 QTest::TestLoggers::addIncident(QAbstractTestLogger::BlacklistedFail, msg, file, line);-
446}
executed 14 times by 7 tests: end of block
Executed by:
  • tst_QAction
  • tst_QCompleter
  • tst_QFtp
  • tst_QSocks5SocketEngine
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QWidget
  • tst_selftests - unknown status
14
447-
448void QTestLog::addSkip(const char *msg, const char *file, int line)-
449{-
450 QTEST_ASSERT(msg);
never executed: qt_assert("msg",__FILE__,450);
!(msg)Description
TRUEnever evaluated
FALSEevaluated 1403 times by 56 tests
Evaluated 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
  • ...
0-1403
451 QTEST_ASSERT(file);
never executed: qt_assert("file",__FILE__,451);
!(file)Description
TRUEnever evaluated
FALSEevaluated 1403 times by 56 tests
Evaluated 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
  • ...
0-1403
452-
453 ++QTest::skips;-
454-
455 QTest::TestLoggers::addMessage(QAbstractTestLogger::Skip, QString::fromUtf8(msg), file, line);-
456}
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
457-
458void QTestLog::addBenchmarkResult(const QBenchmarkResult &result)-
459{-
460 QTest::TestLoggers::addBenchmarkResult(result);-
461}
executed 282 times by 2 tests: end of block
Executed by:
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
282
462-
463void QTestLog::startLogging()-
464{-
465 elapsedTotalTime.start();-
466 elapsedFunctionTime.start();-
467 QTest::TestLoggers::startLogging();-
468 QTest::oldMessageHandler = qInstallMessageHandler(QTest::messageHandler);-
469}
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
470-
471void QTestLog::stopLogging()-
472{-
473 qInstallMessageHandler(QTest::oldMessageHandler);-
474 QTest::TestLoggers::stopLogging();-
475 QTest::TestLoggers::destroyLoggers();-
476 QTest::loggerUsingStdout = false;-
477 saveCoverageTool(QTestResult::currentAppName(), failCount() != 0, QTestLog::installedTestCoverage());-
478}
executed 1318 times by 509 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
  • ...
1318
479-
480void QTestLog::addLogger(LogMode mode, const char *filename)-
481{-
482 if (filename && strcmp(filename, "-") == 0)
filenameDescription
TRUEevaluated 900 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 693 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
  • ...
strcmp(filename, "-") == 0Description
TRUEevaluated 291 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 609 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
291-900
483 filename = 0;
executed 291 times by 1 test: filename = 0;
Executed by:
  • tst_selftests - unknown status
291
484 if (!filename)
!filenameDescription
TRUEevaluated 984 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 609 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
609-984
485 QTest::loggerUsingStdout = true;
executed 984 times by 506 tests: QTest::loggerUsingStdout = 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
  • ...
984
486-
487 QAbstractTestLogger *logger = 0;-
488 switch (mode) {-
489 case QTestLog::Plain:
executed 855 times by 506 tests: case QTestLog::Plain:
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
  • ...
855
490 logger = new QPlainTestLogger(filename);-
491 break;
executed 855 times by 506 tests: break;
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
  • ...
855
492 case QTestLog::CSV:
executed 8 times by 1 test: case QTestLog::CSV:
Executed by:
  • tst_selftests - unknown status
8
493 logger = new QCsvBenchmarkLogger(filename);-
494 break;
executed 8 times by 1 test: break;
Executed by:
  • tst_selftests - unknown status
8
495 case QTestLog::XML:
executed 184 times by 1 test: case QTestLog::XML:
Executed by:
  • tst_selftests - unknown status
184
496 logger = new QXmlTestLogger(QXmlTestLogger::Complete, filename);-
497 break;
executed 184 times by 1 test: break;
Executed by:
  • tst_selftests - unknown status
184
498 case QTestLog::LightXML:
executed 185 times by 1 test: case QTestLog::LightXML:
Executed by:
  • tst_selftests - unknown status
185
499 logger = new QXmlTestLogger(QXmlTestLogger::Light, filename);-
500 break;
executed 185 times by 1 test: break;
Executed by:
  • tst_selftests - unknown status
185
501 case QTestLog::XunitXML:
executed 215 times by 1 test: case QTestLog::XunitXML:
Executed by:
  • tst_selftests - unknown status
215
502 logger = new QXunitTestLogger(filename);-
503 break;
executed 215 times by 1 test: break;
Executed by:
  • tst_selftests - unknown status
215
504 case QTestLog::TeamCity:
executed 146 times by 1 test: case QTestLog::TeamCity:
Executed by:
  • tst_selftests - unknown status
146
505 logger = new QTeamCityLogger(filename);-
506 break;
executed 146 times by 1 test: break;
Executed by:
  • tst_selftests - unknown status
146
507#if defined(HAVE_XCTEST)-
508 case QTestLog::XCTest:-
509 logger = new QXcodeTestLogger;-
510 break;-
511#endif-
512 }-
513 QTEST_ASSERT(logger);
never executed: qt_assert("logger",__FILE__,513);
!(logger)Description
TRUEnever evaluated
FALSEevaluated 1593 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-1593
514 QTest::TestLoggers::addLogger(logger);-
515}
executed 1593 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
  • ...
1593
516-
517int QTestLog::loggerCount()-
518{-
519 return QTest::TestLoggers::loggerCount();
executed 1320 times by 506 tests: return QTest::TestLoggers::loggerCount();
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
520}-
521-
522bool QTestLog::loggerUsingStdout()-
523{-
524 return QTest::loggerUsingStdout;
executed 291 times by 1 test: return QTest::loggerUsingStdout;
Executed by:
  • tst_selftests - unknown status
291
525}-
526-
527void QTestLog::warn(const char *msg, const char *file, int line)-
528{-
529 QTEST_ASSERT(msg);
never executed: qt_assert("msg",__FILE__,529);
!(msg)Description
TRUEnever evaluated
FALSEevaluated 949 times by 13 tests
Evaluated 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
0-949
530-
531 if (QTest::TestLoggers::loggerCount() > 0)
QTest::TestLog...gerCount() > 0Description
TRUEevaluated 111 times by 13 tests
Evaluated 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
FALSEevaluated 838 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
111-838
532 QTest::TestLoggers::addMessage(QAbstractTestLogger::Warn, QString::fromUtf8(msg), file, line);
executed 111 times by 13 tests: QTest::TestLoggers::addMessage(QAbstractTestLogger::Warn, QString::fromUtf8(msg), file, line);
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
111
533}
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
534-
535void QTestLog::info(const char *msg, const char *file, int line)-
536{-
537 QTEST_ASSERT(msg);
never executed: qt_assert("msg",__FILE__,537);
!(msg)Description
TRUEnever evaluated
FALSEevaluated 604 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
0-604
538-
539 QTest::TestLoggers::addMessage(QAbstractTestLogger::Info, QString::fromUtf8(msg), file, line);-
540}
executed 604 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
604
541-
542void QTestLog::setVerboseLevel(int level)-
543{-
544 QTest::verbosity = level;-
545}
executed 77 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
77
546-
547int QTestLog::verboseLevel()-
548{-
549 return QTest::verbosity;
executed 52813990 times by 513 tests: return QTest::verbosity;
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
  • ...
52813990
550}-
551-
552void QTestLog::ignoreMessage(QtMsgType type, const char *msg)-
553{-
554 QTEST_ASSERT(msg);
never executed: qt_assert("msg",__FILE__,554);
!(msg)Description
TRUEnever evaluated
FALSEevaluated 1073 times by 82 tests
Evaluated 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
  • ...
0-1073
555-
556 QTest::IgnoreResultList::append(QTest::ignoreResultList, type, QString::fromLocal8Bit(msg));-
557}
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
558-
559#ifndef QT_NO_REGULAREXPRESSION-
560void QTestLog::ignoreMessage(QtMsgType type, const QRegularExpression &expression)-
561{-
562 QTEST_ASSERT(expression.isValid());
never executed: qt_assert("expression.isValid()",__FILE__,562);
!(expression.isValid())Description
TRUEnever evaluated
FALSEevaluated 116 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
0-116
563-
564 QTest::IgnoreResultList::append(QTest::ignoreResultList, type, QVariant(expression));-
565}
executed 116 times by 4 tests: end of block
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
116
566#endif // QT_NO_REGULAREXPRESSION-
567-
568void QTestLog::setMaxWarnings(int m)-
569{-
570 QTest::maxWarnings = m <= 0 ? INT_MAX : m + 2;
m <= 0Description
TRUEnever evaluated
FALSEnever evaluated
0
571}
never executed: end of block
0
572-
573bool QTestLog::printAvailableTags = false;-
574-
575void QTestLog::setPrintAvailableTagsMode()-
576{-
577 printAvailableTags = true;-
578}
executed 4 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
4
579-
580int QTestLog::passCount()-
581{-
582 return QTest::passes;
executed 851 times by 506 tests: return QTest::passes;
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
  • ...
851
583}-
584-
585int QTestLog::failCount()-
586{-
587 return QTest::fails;
executed 3407 times by 1013 tests: return QTest::fails;
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
  • ...
3407
588}-
589-
590int QTestLog::skipCount()-
591{-
592 return QTest::skips;
executed 851 times by 506 tests: return QTest::skips;
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
  • ...
851
593}-
594-
595int QTestLog::blacklistCount()-
596{-
597 return QTest::blacklists;
executed 851 times by 506 tests: return QTest::blacklists;
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
  • ...
851
598}-
599-
600void QTestLog::resetCounters()-
601{-
602 QTest::passes = 0;-
603 QTest::fails = 0;-
604 QTest::skips = 0;-
605}
executed 815 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
815
606-
607void QTestLog::setInstalledTestCoverage(bool installed)-
608{-
609 QTest::installedTestCoverage = installed;-
610}
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
611-
612bool QTestLog::installedTestCoverage()-
613{-
614 return QTest::installedTestCoverage;
executed 1318 times by 506 tests: return QTest::installedTestCoverage;
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
  • ...
1318
615}-
616-
617qint64 QTestLog::nsecsTotalTime()-
618{-
619 return elapsedTotalTime.nsecsElapsed();
executed 1220 times by 506 tests: return elapsedTotalTime.nsecsElapsed();
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
  • ...
1220
620}-
621-
622qint64 QTestLog::nsecsFunctionTime()-
623{-
624 return elapsedFunctionTime.nsecsElapsed();
executed 2274 times by 1 test: return elapsedFunctionTime.nsecsElapsed();
Executed by:
  • tst_selftests - unknown status
2274
625}-
626-
627QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

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