qvariant.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/kernel/qvariant.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9const int log10_2_10000 = 30103;-
10-
11const int max_digits10_double = (53 * log10_2_10000) / 100000 + 2;-
12const int max_digits10_float = (24 * log10_2_10000) / 100000 + 2;-
13-
14namespace {-
15class HandlersManager-
16{-
17 static const QVariant::Handler *Handlers[QModulesPrivate::ModulesCount];-
18public:-
19 const QVariant::Handler *operator[] (const uint typeId) const-
20 {-
21 return
executed 28720924 times by 453 tests: return Handlers[QModulesPrivate::moduleForType(typeId)];
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
Handlers[QModulesPrivate::moduleForType(typeId)];
executed 28720924 times by 453 tests: return Handlers[QModulesPrivate::moduleForType(typeId)];
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
28720924
22 }-
23-
24 void registerHandler(const QModulesPrivate::Names name, const QVariant::Handler *handler)-
25 {-
26 Handlers[name] = handler;-
27 }
executed 250 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
250
28};-
29}-
30-
31namespace {-
32struct CoreTypesFilter {-
33 template<typename T>-
34 struct Acceptor {-
35 static const bool IsAccepted = QModulesPrivate::QTypeModuleInfo<T>::IsCore && QtMetaTypePrivate::TypeDefinition<T>::IsAvailable;-
36 };-
37};-
38}-
39-
40namespace {-
41-
42static void construct(QVariant::Private *x, const void *copy)-
43{-
44 QVariantConstructor<CoreTypesFilter> constructor(x, copy);-
45 QMetaTypeSwitcher::switcher<void>(constructor, x->type, 0);-
46}
executed 8176452 times by 393 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
8176452
47-
48static void clear(QVariant::Private *d)-
49{-
50 QVariantDestructor<CoreTypesFilter> cleaner(d);-
51 QMetaTypeSwitcher::switcher<void>(cleaner, d->type, 0);-
52}
executed 12180706 times by 423 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
12180706
53-
54static bool isNull(const QVariant::Private *d)-
55{-
56 QVariantIsNull<CoreTypesFilter> isNull(d);-
57 return
executed 409602 times by 135 tests: return QMetaTypeSwitcher::switcher<bool>(isNull, d->type, 0);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirModel
  • ...
QMetaTypeSwitcher::switcher<bool>(isNull, d->type, 0);
executed 409602 times by 135 tests: return QMetaTypeSwitcher::switcher<bool>(isNull, d->type, 0);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirModel
  • ...
409602
58}-
59-
60-
61-
62-
63-
64-
65-
66static bool compare(const QVariant::Private *a, const QVariant::Private *b)-
67{-
68 QVariantComparator<CoreTypesFilter> comparator(a, b);-
69 return
executed 94447 times by 73 tests: return QMetaTypeSwitcher::switcher<bool>(comparator, a->type, 0);
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsPixmapItem
  • ...
QMetaTypeSwitcher::switcher<bool>(comparator, a->type, 0);
executed 94447 times by 73 tests: return QMetaTypeSwitcher::switcher<bool>(comparator, a->type, 0);
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsPixmapItem
  • ...
94447
70}-
71-
72-
73-
74-
75static qlonglong qMetaTypeNumber(const QVariant::Private *d)-
76{-
77 switch (d->type) {-
78 case
executed 457809 times by 94 tests: case QMetaType::Int:
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • ...
QMetaType::Int:
executed 457809 times by 94 tests: case QMetaType::Int:
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • ...
457809
79 return
executed 457809 times by 94 tests: return d->data.i;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • ...
d->data.i;
executed 457809 times by 94 tests: return d->data.i;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • ...
457809
80 case
executed 5987 times by 21 tests: case QMetaType::LongLong:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
QMetaType::LongLong:
executed 5987 times by 21 tests: case QMetaType::LongLong:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
5987
81 return
executed 5987 times by 21 tests: return d->data.ll;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
d->data.ll;
executed 5987 times by 21 tests: return d->data.ll;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
5987
82 case
executed 177 times by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
QMetaType::Char:
executed 177 times by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
177
83 return
executed 177 times by 1 test: return qlonglong(d->data.c);
Executed by:
  • tst_QVariant
qlonglong(d->data.c);
executed 177 times by 1 test: return qlonglong(d->data.c);
Executed by:
  • tst_QVariant
177
84 case
executed 186 times by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
QMetaType::SChar:
executed 186 times by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
186
85 return
executed 186 times by 1 test: return qlonglong(d->data.sc);
Executed by:
  • tst_QVariant
qlonglong(d->data.sc);
executed 186 times by 1 test: return qlonglong(d->data.sc);
Executed by:
  • tst_QVariant
186
86 case
executed 231 times by 2 tests: case QMetaType::Short:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
QMetaType::Short:
executed 231 times by 2 tests: case QMetaType::Short:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
231
87 return
executed 231 times by 2 tests: return qlonglong(d->data.s);
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
qlonglong(d->data.s);
executed 231 times by 2 tests: return qlonglong(d->data.s);
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
231
88 case
executed 120 times by 1 test: case QMetaType::Long:
Executed by:
  • tst_QVariant
QMetaType::Long:
executed 120 times by 1 test: case QMetaType::Long:
Executed by:
  • tst_QVariant
120
89 return
executed 120 times by 1 test: return qlonglong(d->data.l);
Executed by:
  • tst_QVariant
qlonglong(d->data.l);
executed 120 times by 1 test: return qlonglong(d->data.l);
Executed by:
  • tst_QVariant
120
90 case
executed 12 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
QMetaType::Float:
executed 12 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
12
91 return
executed 12 times by 1 test: return qRound64(d->data.f);
Executed by:
  • tst_QVariant
qRound64(d->data.f);
executed 12 times by 1 test: return qRound64(d->data.f);
Executed by:
  • tst_QVariant
12
92 case
executed 231 times by 13 tests: case QVariant::Double:
Executed by:
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMenu
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
QVariant::Double:
executed 231 times by 13 tests: case QVariant::Double:
Executed by:
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMenu
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
231
93 return
executed 231 times by 13 tests: return qRound64(d->data.d);
Executed by:
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMenu
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
qRound64(d->data.d);
executed 231 times by 13 tests: return qRound64(d->data.d);
Executed by:
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMenu
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
231
94-
95 case
executed 4 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
QMetaType::QJsonValue:
executed 4 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
4
96 return
executed 4 times by 1 test: return v_cast<QJsonValue>(d)->toDouble();
Executed by:
  • tst_QVariant
v_cast<QJsonValue>(d)->toDouble();
executed 4 times by 1 test: return v_cast<QJsonValue>(d)->toDouble();
Executed by:
  • tst_QVariant
4
97-
98 }-
99 ((!(false)) ? qt_assert("false",__FILE__,171) : qt_noop());-
100 return
never executed: return 0;
0;
never executed: return 0;
0
101}-
102-
103static qulonglong qMetaTypeUNumber(const QVariant::Private *d)-
104{-
105 switch (d->type) {-
106 case
executed 2310 times by 23 tests: case QVariant::UInt:
Executed by:
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QVariant
  • tst_languageChange
QVariant::UInt:
executed 2310 times by 23 tests: case QVariant::UInt:
Executed by:
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QVariant
  • tst_languageChange
2310
107 return
executed 2310 times by 23 tests: return d->data.u;
Executed by:
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QVariant
  • tst_languageChange
d->data.u;
executed 2310 times by 23 tests: return d->data.u;
Executed by:
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QVariant
  • tst_languageChange
2310
108 case
executed 465 times by 19 tests: case QVariant::ULongLong:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSignalSpy
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
QVariant::ULongLong:
executed 465 times by 19 tests: case QVariant::ULongLong:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSignalSpy
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
465
109 return
executed 465 times by 19 tests: return d->data.ull;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSignalSpy
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
d->data.ull;
executed 465 times by 19 tests: return d->data.ull;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSignalSpy
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
465
110 case
executed 153 times by 2 tests: case QMetaType::UChar:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
QMetaType::UChar:
executed 153 times by 2 tests: case QMetaType::UChar:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
153
111 return
executed 153 times by 2 tests: return d->data.uc;
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
d->data.uc;
executed 153 times by 2 tests: return d->data.uc;
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
153
112 case
executed 183 times by 2 tests: case QMetaType::UShort:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
QMetaType::UShort:
executed 183 times by 2 tests: case QMetaType::UShort:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
183
113 return
executed 183 times by 2 tests: return d->data.us;
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
d->data.us;
executed 183 times by 2 tests: return d->data.us;
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
183
114 case
executed 87 times by 1 test: case QMetaType::ULong:
Executed by:
  • tst_QVariant
QMetaType::ULong:
executed 87 times by 1 test: case QMetaType::ULong:
Executed by:
  • tst_QVariant
87
115 return
executed 87 times by 1 test: return d->data.ul;
Executed by:
  • tst_QVariant
d->data.ul;
executed 87 times by 1 test: return d->data.ul;
Executed by:
  • tst_QVariant
87
116 }-
117 ((!(false)) ? qt_assert("false",__FILE__,189) : qt_noop());-
118 return
never executed: return 0;
0;
never executed: return 0;
0
119}-
120-
121static qlonglong qConvertToNumber(const QVariant::Private *d, bool *ok)-
122{-
123 *ok = true;-
124-
125 switch (uint(d->type)) {-
126 case
executed 12467 times by 37 tests: case QVariant::String:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QSqlRelationalTableModel
  • tst_QStandardItemModel
  • ...
QVariant::String:
executed 12467 times by 37 tests: case QVariant::String:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QSqlRelationalTableModel
  • tst_QStandardItemModel
  • ...
12467
127 return
executed 12467 times by 37 tests: return v_cast<QString>(d)->toLongLong(ok);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QSqlRelationalTableModel
  • tst_QStandardItemModel
  • ...
v_cast<QString>(d)->toLongLong(ok);
executed 12467 times by 37 tests: return v_cast<QString>(d)->toLongLong(ok);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QSqlRelationalTableModel
  • tst_QStandardItemModel
  • ...
12467
128 case
executed 7 times by 2 tests: case QVariant::Char:
Executed by:
  • tst_QMetaType
  • tst_QVariant
QVariant::Char:
executed 7 times by 2 tests: case QVariant::Char:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
129 return
executed 7 times by 2 tests: return v_cast<QChar>(d)->unicode();
Executed by:
  • tst_QMetaType
  • tst_QVariant
v_cast<QChar>(d)->unicode();
executed 7 times by 2 tests: return v_cast<QChar>(d)->unicode();
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
130 case
executed 5 times by 1 test: case QVariant::ByteArray:
Executed by:
  • tst_QVariant
QVariant::ByteArray:
executed 5 times by 1 test: case QVariant::ByteArray:
Executed by:
  • tst_QVariant
5
131 return
executed 5 times by 1 test: return v_cast<QByteArray>(d)->toLongLong(ok);
Executed by:
  • tst_QVariant
v_cast<QByteArray>(d)->toLongLong(ok);
executed 5 times by 1 test: return v_cast<QByteArray>(d)->toLongLong(ok);
Executed by:
  • tst_QVariant
5
132 case
executed 541 times by 22 tests: case QVariant::Bool:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QSqlField
  • tst_QSqlQuery
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QSyntaxHighlighter
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTextPieceTable
  • tst_QVariant
  • tst_QWizard
QVariant::Bool:
executed 541 times by 22 tests: case QVariant::Bool:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QSqlField
  • tst_QSqlQuery
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QSyntaxHighlighter
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTextPieceTable
  • tst_QVariant
  • tst_QWizard
541
133 return
executed 541 times by 22 tests: return qlonglong(d->data.b);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QSqlField
  • tst_QSqlQuery
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QSyntaxHighlighter
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTextPieceTable
  • tst_QVariant
  • tst_QWizard
qlonglong(d->data.b);
executed 541 times by 22 tests: return qlonglong(d->data.b);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QSqlField
  • tst_QSqlQuery
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QSyntaxHighlighter
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTextPieceTable
  • tst_QVariant
  • tst_QWizard
541
134-
135 case
executed 4 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
QMetaType::QJsonValue:
executed 4 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
4
136 if (!v_cast<QJsonValue>(d)->isDouble()
!v_cast<QJsonV...d)->isDouble()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
)
2
137 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
138-
139-
140 case
executed 217 times by 13 tests: case QVariant::Double:
Executed by:
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMenu
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
QVariant::Double:
executed 217 times by 13 tests: case QVariant::Double:
Executed by:
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMenu
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
code before this statement executed 2 times by 1 test: case QVariant::Double:
Executed by:
  • tst_QVariant
2-217
141 case
executed 429310 times by 81 tests: case QVariant::Int:
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • ...
QVariant::Int:
executed 429310 times by 81 tests: case QVariant::Int:
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • ...
429310
142 case
executed 168 times by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
QMetaType::Char:
executed 168 times by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
168
143 case
executed 169 times by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
QMetaType::SChar:
executed 169 times by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
169
144 case
executed 201 times by 2 tests: case QMetaType::Short:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
QMetaType::Short:
executed 201 times by 2 tests: case QMetaType::Short:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
201
145 case
executed 108 times by 1 test: case QMetaType::Long:
Executed by:
  • tst_QVariant
QMetaType::Long:
executed 108 times by 1 test: case QMetaType::Long:
Executed by:
  • tst_QVariant
108
146 case
executed 3 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
QMetaType::Float:
executed 3 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
3
147 case
executed 5456 times by 20 tests: case QMetaType::LongLong:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QVariant
  • tst_Spdy
QMetaType::LongLong:
executed 5456 times by 20 tests: case QMetaType::LongLong:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QVariant
  • tst_Spdy
5456
148 return
executed 435634 times by 86 tests: return qMetaTypeNumber(d);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • ...
qMetaTypeNumber(d);
executed 435634 times by 86 tests: return qMetaTypeNumber(d);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • ...
435634
149 case
executed 323 times by 4 tests: case QVariant::ULongLong:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QSignalSpy
  • tst_QVariant
QVariant::ULongLong:
executed 323 times by 4 tests: case QVariant::ULongLong:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QSignalSpy
  • tst_QVariant
323
150 case
executed 742 times by 11 tests: case QVariant::UInt:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QVariant
QVariant::UInt:
executed 742 times by 11 tests: case QVariant::UInt:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QVariant
742
151 case
executed 136 times by 2 tests: case QMetaType::UChar:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
QMetaType::UChar:
executed 136 times by 2 tests: case QMetaType::UChar:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
136
152 case
executed 146 times by 2 tests: case QMetaType::UShort:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
QMetaType::UShort:
executed 146 times by 2 tests: case QMetaType::UShort:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
146
153 case
executed 86 times by 1 test: case QMetaType::ULong:
Executed by:
  • tst_QVariant
QMetaType::ULong:
executed 86 times by 1 test: case QMetaType::ULong:
Executed by:
  • tst_QVariant
86
154-
155 return
executed 1433 times by 12 tests: return qlonglong(qMetaTypeUNumber(d));
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QSignalSpy
  • tst_QSqlDatabase
  • tst_QVariant
qlonglong(qMetaTypeUNumber(d));
executed 1433 times by 12 tests: return qlonglong(qMetaTypeUNumber(d));
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QSignalSpy
  • tst_QSqlDatabase
  • tst_QVariant
1433
156 }-
157-
158 QMetaType typeInfo(d->type);-
159 if (typeInfo.flags() & QMetaType::IsEnumeration
typeInfo.flags...:IsEnumerationDescription
TRUEevaluated 116 times by 4 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
FALSEevaluated 868 times by 19 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QSettings
  • tst_QTextEdit
  • tst_QTreeWidgetItemIterator
  • tst_QVariant
  • tst_Spdy
  • tst_qinputmethod
) {
116-868
160 switch (typeInfo.sizeOf()) {-
161 case
executed 10 times by 1 test: case 1:
Executed by:
  • tst_QVariant
1:
executed 10 times by 1 test: case 1:
Executed by:
  • tst_QVariant
10
162 return
executed 10 times by 1 test: return d->is_shared ? *reinterpret_cast<signed char *>(d->data.shared->ptr) : d->data.sc;
Executed by:
  • tst_QVariant
d->is_shared
d->is_sharedDescription
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
? *reinterpret_cast<signed char *>(d->data.shared->ptr) : d->data.sc;
executed 10 times by 1 test: return d->is_shared ? *reinterpret_cast<signed char *>(d->data.shared->ptr) : d->data.sc;
Executed by:
  • tst_QVariant
0-10
163 case
executed 10 times by 1 test: case 2:
Executed by:
  • tst_QVariant
2:
executed 10 times by 1 test: case 2:
Executed by:
  • tst_QVariant
10
164 return
executed 10 times by 1 test: return d->is_shared ? *reinterpret_cast<qint16 *>(d->data.shared->ptr) : d->data.s;
Executed by:
  • tst_QVariant
d->is_shared
d->is_sharedDescription
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
? *reinterpret_cast<qint16 *>(d->data.shared->ptr) : d->data.s;
executed 10 times by 1 test: return d->is_shared ? *reinterpret_cast<qint16 *>(d->data.shared->ptr) : d->data.s;
Executed by:
  • tst_QVariant
0-10
165 case
executed 32 times by 4 tests: case 4:
Executed by:
  • tst_QGuiApplication
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
4:
executed 32 times by 4 tests: case 4:
Executed by:
  • tst_QGuiApplication
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
32
166 return
executed 32 times by 4 tests: return d->is_shared ? *reinterpret_cast<qint32 *>(d->data.shared->ptr) : d->data.i;
Executed by:
  • tst_QGuiApplication
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
d->is_shared
d->is_sharedDescription
TRUEnever evaluated
FALSEevaluated 32 times by 4 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
? *reinterpret_cast<qint32 *>(d->data.shared->ptr) : d->data.i;
executed 32 times by 4 tests: return d->is_shared ? *reinterpret_cast<qint32 *>(d->data.shared->ptr) : d->data.i;
Executed by:
  • tst_QGuiApplication
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
0-32
167 case
executed 64 times by 1 test: case 8:
Executed by:
  • tst_QVariant
8:
executed 64 times by 1 test: case 8:
Executed by:
  • tst_QVariant
64
168 return
executed 64 times by 1 test: return d->is_shared ? *reinterpret_cast<qint64 *>(d->data.shared->ptr) : d->data.ll;
Executed by:
  • tst_QVariant
d->is_shared
d->is_sharedDescription
TRUEnever evaluated
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_QVariant
? *reinterpret_cast<qint64 *>(d->data.shared->ptr) : d->data.ll;
executed 64 times by 1 test: return d->is_shared ? *reinterpret_cast<qint64 *>(d->data.shared->ptr) : d->data.ll;
Executed by:
  • tst_QVariant
0-64
169 }-
170 }
never executed: end of block
0
171-
172 *ok = false;-
173 return
executed 868 times by 19 tests: return static_cast<long long>(0LL);
Executed by:
  • tst_QAccessibility
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QSettings
  • tst_QTextEdit
  • tst_QTreeWidgetItemIterator
  • tst_QVariant
  • tst_Spdy
  • tst_qinputmethod
static_cast<long long>(0LL);
executed 868 times by 19 tests: return static_cast<long long>(0LL);
Executed by:
  • tst_QAccessibility
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QSettings
  • tst_QTextEdit
  • tst_QTreeWidgetItemIterator
  • tst_QVariant
  • tst_Spdy
  • tst_qinputmethod
868
174}-
175-
176static qreal qConvertToRealNumber(const QVariant::Private *d, bool *ok)-
177{-
178 *ok = true;-
179 switch (uint(d->type)) {-
180 case
executed 10981 times by 32 tests: case QVariant::Double:
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlField
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
QVariant::Double:
executed 10981 times by 32 tests: case QVariant::Double:
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlField
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
10981
181 return
executed 10981 times by 32 tests: return qreal(d->data.d);
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlField
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
qreal(d->data.d);
executed 10981 times by 32 tests: return qreal(d->data.d);
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlField
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
10981
182 case
executed 301 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
QMetaType::Float:
executed 301 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
301
183 return
executed 301 times by 1 test: return qreal(d->data.f);
Executed by:
  • tst_QVariant
qreal(d->data.f);
executed 301 times by 1 test: return qreal(d->data.f);
Executed by:
  • tst_QVariant
301
184 case
never executed: case QVariant::ULongLong:
QVariant::ULongLong:
never executed: case QVariant::ULongLong:
0
185 case
executed 80 times by 1 test: case QVariant::UInt:
Executed by:
  • tst_QVariant
QVariant::UInt:
executed 80 times by 1 test: case QVariant::UInt:
Executed by:
  • tst_QVariant
80
186 case
never executed: case QMetaType::UChar:
QMetaType::UChar:
never executed: case QMetaType::UChar:
0
187 case
never executed: case QMetaType::UShort:
QMetaType::UShort:
never executed: case QMetaType::UShort:
0
188 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
189 return
executed 80 times by 1 test: return qreal(qMetaTypeUNumber(d));
Executed by:
  • tst_QVariant
qreal(qMetaTypeUNumber(d));
executed 80 times by 1 test: return qreal(qMetaTypeUNumber(d));
Executed by:
  • tst_QVariant
80
190 default
executed 96 times by 3 tests: default:
Executed by:
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
:
executed 96 times by 3 tests: default:
Executed by:
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
96
191-
192 return
executed 96 times by 3 tests: return qreal(qConvertToNumber(d, ok));
Executed by:
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
qreal(qConvertToNumber(d, ok));
executed 96 times by 3 tests: return qreal(qConvertToNumber(d, ok));
Executed by:
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
96
193 }-
194}-
195-
196static qulonglong qConvertToUnsignedNumber(const QVariant::Private *d, bool *ok)-
197{-
198 *ok = true;-
199-
200 switch (uint(d->type)) {-
201 case
executed 47 times by 3 tests: case QVariant::String:
Executed by:
  • tst_QColorDialog
  • tst_QVariant
  • tst_languageChange
QVariant::String:
executed 47 times by 3 tests: case QVariant::String:
Executed by:
  • tst_QColorDialog
  • tst_QVariant
  • tst_languageChange
47
202 return
executed 47 times by 3 tests: return v_cast<QString>(d)->toULongLong(ok);
Executed by:
  • tst_QColorDialog
  • tst_QVariant
  • tst_languageChange
v_cast<QString>(d)->toULongLong(ok);
executed 47 times by 3 tests: return v_cast<QString>(d)->toULongLong(ok);
Executed by:
  • tst_QColorDialog
  • tst_QVariant
  • tst_languageChange
47
203 case
executed 2 times by 1 test: case QVariant::Char:
Executed by:
  • tst_QVariant
QVariant::Char:
executed 2 times by 1 test: case QVariant::Char:
Executed by:
  • tst_QVariant
2
204 return
executed 2 times by 1 test: return v_cast<QChar>(d)->unicode();
Executed by:
  • tst_QVariant
v_cast<QChar>(d)->unicode();
executed 2 times by 1 test: return v_cast<QChar>(d)->unicode();
Executed by:
  • tst_QVariant
2
205 case
executed 4 times by 1 test: case QVariant::ByteArray:
Executed by:
  • tst_QVariant
QVariant::ByteArray:
executed 4 times by 1 test: case QVariant::ByteArray:
Executed by:
  • tst_QVariant
4
206 return
executed 4 times by 1 test: return v_cast<QByteArray>(d)->toULongLong(ok);
Executed by:
  • tst_QVariant
v_cast<QByteArray>(d)->toULongLong(ok);
executed 4 times by 1 test: return v_cast<QByteArray>(d)->toULongLong(ok);
Executed by:
  • tst_QVariant
4
207 case
never executed: case QVariant::Bool:
QVariant::Bool:
never executed: case QVariant::Bool:
0
208 return
never executed: return qulonglong(d->data.b);
qulonglong(d->data.b);
never executed: return qulonglong(d->data.b);
0
209-
210 case
executed 4 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
QMetaType::QJsonValue:
executed 4 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
4
211 if (!v_cast<QJsonValue>(d)->isDouble()
!v_cast<QJsonV...d)->isDouble()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
)
2
212 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
213-
214-
215 case
executed 3 times by 1 test: case QVariant::Double:
Executed by:
  • tst_QVariant
QVariant::Double:
executed 3 times by 1 test: case QVariant::Double:
Executed by:
  • tst_QVariant
code before this statement executed 2 times by 1 test: case QVariant::Double:
Executed by:
  • tst_QVariant
2-3
216 case
executed 47 times by 6 tests: case QVariant::Int:
Executed by:
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QGraphicsItem
  • tst_QVariant
  • tst_QWidget
QVariant::Int:
executed 47 times by 6 tests: case QVariant::Int:
Executed by:
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QGraphicsItem
  • tst_QVariant
  • tst_QWidget
47
217 case
executed 1 time by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
QMetaType::Char:
executed 1 time by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
1
218 case
executed 1 time by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
QMetaType::SChar:
executed 1 time by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
1
219 case
executed 2 times by 1 test: case QMetaType::Short:
Executed by:
  • tst_QVariant
QMetaType::Short:
executed 2 times by 1 test: case QMetaType::Short:
Executed by:
  • tst_QVariant
2
220 case
executed 7 times by 1 test: case QMetaType::Long:
Executed by:
  • tst_QVariant
QMetaType::Long:
executed 7 times by 1 test: case QMetaType::Long:
Executed by:
  • tst_QVariant
7
221 case
executed 3 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
QMetaType::Float:
executed 3 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
3
222 case
executed 5 times by 2 tests: case QMetaType::LongLong:
Executed by:
  • tst_QSqlDatabase
  • tst_QVariant
QMetaType::LongLong:
executed 5 times by 2 tests: case QMetaType::LongLong:
Executed by:
  • tst_QSqlDatabase
  • tst_QVariant
5
223 return
executed 71 times by 7 tests: return qulonglong(qMetaTypeNumber(d));
Executed by:
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QGraphicsItem
  • tst_QSqlDatabase
  • tst_QVariant
  • tst_QWidget
qulonglong(qMetaTypeNumber(d));
executed 71 times by 7 tests: return qulonglong(qMetaTypeNumber(d));
Executed by:
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QGraphicsItem
  • tst_QSqlDatabase
  • tst_QVariant
  • tst_QWidget
71
224 case
executed 75 times by 16 tests: case QVariant::ULongLong:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
QVariant::ULongLong:
executed 75 times by 16 tests: case QVariant::ULongLong:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
75
225 case
executed 34 times by 3 tests: case QVariant::UInt:
Executed by:
  • tst_QDBusMarshall
  • tst_QItemDelegate
  • tst_QVariant
QVariant::UInt:
executed 34 times by 3 tests: case QVariant::UInt:
Executed by:
  • tst_QDBusMarshall
  • tst_QItemDelegate
  • tst_QVariant
34
226 case
executed 1 time by 1 test: case QMetaType::UChar:
Executed by:
  • tst_QDBusMarshall
QMetaType::UChar:
executed 1 time by 1 test: case QMetaType::UChar:
Executed by:
  • tst_QDBusMarshall
1
227 case
executed 11 times by 1 test: case QMetaType::UShort:
Executed by:
  • tst_QDBusMarshall
QMetaType::UShort:
executed 11 times by 1 test: case QMetaType::UShort:
Executed by:
  • tst_QDBusMarshall
11
228 case
executed 1 time by 1 test: case QMetaType::ULong:
Executed by:
  • tst_QVariant
QMetaType::ULong:
executed 1 time by 1 test: case QMetaType::ULong:
Executed by:
  • tst_QVariant
1
229 return
executed 122 times by 18 tests: return qMetaTypeUNumber(d);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusMarshall
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
qMetaTypeUNumber(d);
executed 122 times by 18 tests: return qMetaTypeUNumber(d);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusMarshall
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
122
230 }-
231-
232 QMetaType typeInfo(d->type);-
233 if (typeInfo.flags() & QMetaType::IsEnumeration
typeInfo.flags...:IsEnumerationDescription
TRUEevaluated 69 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 54 times by 11 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QVariant
  • tst_QWidget
  • tst_QWizard
  • tst_qapplication - unknown status
) {
54-69
234 switch (typeInfo.sizeOf()) {-
235 case
executed 6 times by 1 test: case 1:
Executed by:
  • tst_QVariant
1:
executed 6 times by 1 test: case 1:
Executed by:
  • tst_QVariant
6
236 return
executed 6 times by 1 test: return d->is_shared ? *reinterpret_cast<uchar *>(d->data.shared->ptr) : d->data.uc;
Executed by:
  • tst_QVariant
d->is_shared
d->is_sharedDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QVariant
? *reinterpret_cast<uchar *>(d->data.shared->ptr) : d->data.uc;
executed 6 times by 1 test: return d->is_shared ? *reinterpret_cast<uchar *>(d->data.shared->ptr) : d->data.uc;
Executed by:
  • tst_QVariant
0-6
237 case
executed 6 times by 1 test: case 2:
Executed by:
  • tst_QVariant
2:
executed 6 times by 1 test: case 2:
Executed by:
  • tst_QVariant
6
238 return
executed 6 times by 1 test: return d->is_shared ? *reinterpret_cast<quint16 *>(d->data.shared->ptr) : d->data.us;
Executed by:
  • tst_QVariant
d->is_shared
d->is_sharedDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QVariant
? *reinterpret_cast<quint16 *>(d->data.shared->ptr) : d->data.us;
executed 6 times by 1 test: return d->is_shared ? *reinterpret_cast<quint16 *>(d->data.shared->ptr) : d->data.us;
Executed by:
  • tst_QVariant
0-6
239 case
executed 18 times by 1 test: case 4:
Executed by:
  • tst_QVariant
4:
executed 18 times by 1 test: case 4:
Executed by:
  • tst_QVariant
18
240 return
executed 18 times by 1 test: return d->is_shared ? *reinterpret_cast<quint32 *>(d->data.shared->ptr) : d->data.u;
Executed by:
  • tst_QVariant
d->is_shared
d->is_sharedDescription
TRUEnever evaluated
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QVariant
? *reinterpret_cast<quint32 *>(d->data.shared->ptr) : d->data.u;
executed 18 times by 1 test: return d->is_shared ? *reinterpret_cast<quint32 *>(d->data.shared->ptr) : d->data.u;
Executed by:
  • tst_QVariant
0-18
241 case
executed 39 times by 1 test: case 8:
Executed by:
  • tst_QVariant
8:
executed 39 times by 1 test: case 8:
Executed by:
  • tst_QVariant
39
242 return
executed 39 times by 1 test: return d->is_shared ? *reinterpret_cast<qint64 *>(d->data.shared->ptr) : d->data.ull;
Executed by:
  • tst_QVariant
d->is_shared
d->is_sharedDescription
TRUEnever evaluated
FALSEevaluated 39 times by 1 test
Evaluated by:
  • tst_QVariant
? *reinterpret_cast<qint64 *>(d->data.shared->ptr) : d->data.ull;
executed 39 times by 1 test: return d->is_shared ? *reinterpret_cast<qint64 *>(d->data.shared->ptr) : d->data.ull;
Executed by:
  • tst_QVariant
0-39
243 }-
244 }
never executed: end of block
0
245-
246 *ok = false;-
247 return
executed 54 times by 11 tests: return static_cast<unsigned long long>(0ULL);
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QVariant
  • tst_QWidget
  • tst_QWizard
  • tst_qapplication - unknown status
static_cast<unsigned long long>(0ULL);
executed 54 times by 11 tests: return static_cast<unsigned long long>(0ULL);
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QVariant
  • tst_QWidget
  • tst_QWizard
  • tst_qapplication - unknown status
54
248}-
249-
250template<typename TInput, typename LiteralWrapper>-
251inline bool qt_convertToBool(const QVariant::Private *const d)-
252{-
253 TInput str = v_cast<TInput>(d)->toLower();-
254 return
executed 30 times by 3 tests: return !(str == LiteralWrapper("0") || str == LiteralWrapper("false") || str.isEmpty());
Executed by:
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QVariant
!(str == LiteralWrapper("0")
str == LiteralWrapper("0")Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 29 times by 3 tests
Evaluated by:
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QVariant
|| str == LiteralWrapper("false")
str == LiteralWrapper("false")Description
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QVariant
FALSEevaluated 21 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
|| str.isEmpty()
str.isEmpty()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
);
executed 30 times by 3 tests: return !(str == LiteralWrapper("0") || str == LiteralWrapper("false") || str.isEmpty());
Executed by:
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QVariant
1-30
255}-
256-
257-
258-
259-
260-
261-
262static const void *constData(const QVariant::Private &d)-
263{-
264 return
executed 2616 times by 33 tests: return d.is_shared ? d.data.shared->ptr : reinterpret_cast<const void *>(&d.data.c);
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QProcess
  • ...
d.is_shared
d.is_sharedDescription
TRUEevaluated 373 times by 6 tests
Evaluated by:
  • tst_QFtp
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 2243 times by 30 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QProcess
  • tst_QStyleSheetStyle
  • ...
? d.data.shared->ptr : reinterpret_cast<const void *>(&d.data.c);
executed 2616 times by 33 tests: return d.is_shared ? d.data.shared->ptr : reinterpret_cast<const void *>(&d.data.c);
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QProcess
  • ...
373-2616
265}-
266-
267-
268-
269-
270-
271-
272static QMetaEnum metaEnumFromType(int type)-
273{-
274 QMetaType t(type);-
275 if (t.flags() & QMetaType::IsEnumeration
t.flags() & QM...:IsEnumerationDescription
TRUEevaluated 37 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 20480 times by 38 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • ...
) {
37-20480
276 if (const
const QMetaObj...t.metaObject()Description
TRUEevaluated 37 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
QMetaObject *metaObject = t.metaObject()
const QMetaObj...t.metaObject()Description
TRUEevaluated 37 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
) {
0-37
277 const char *enumName = QMetaType::typeName(type);-
278 const char *lastColon = std::strrchr(enumName, ':');-
279 if (lastColon
lastColonDescription
TRUEevaluated 37 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
)
0-37
280 enumName = lastColon + 1;
executed 37 times by 1 test: enumName = lastColon + 1;
Executed by:
  • tst_QVariant
37
281 return
executed 37 times by 1 test: return metaObject->enumerator(metaObject->indexOfEnumerator(enumName));
Executed by:
  • tst_QVariant
metaObject->enumerator(metaObject->indexOfEnumerator(enumName));
executed 37 times by 1 test: return metaObject->enumerator(metaObject->indexOfEnumerator(enumName));
Executed by:
  • tst_QVariant
37
282 }-
283 }
never executed: end of block
0
284 return
executed 20480 times by 38 tests: return QMetaEnum();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • ...
QMetaEnum();
executed 20480 times by 38 tests: return QMetaEnum();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • ...
20480
285}-
286-
287-
288-
289-
290-
291-
292-
293static bool convert(const QVariant::Private *d, int t, void *result, bool *ok)-
294{-
295 ((!(d->type != uint(t))) ? qt_assert("d->type != uint(t)",__FILE__,367) : qt_noop());-
296 ((!(result)) ? qt_assert("result",__FILE__,368) : qt_noop());-
297-
298 if (d->type >= QMetaType::User
d->type >= QMetaType::UserDescription
TRUEevaluated 606 times by 5 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
FALSEevaluated 419110 times by 199 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
|| t >= QMetaType::User
t >= QMetaType::UserDescription
TRUEevaluated 228 times by 20 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QGraphicsItem
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 418882 times by 192 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
) {
228-419110
299 const bool isOk = QMetaType::convert(constData(*d), d->type, result, t);-
300 if (ok
okDescription
TRUEevaluated 27 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 807 times by 24 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
)
27-807
301 *
executed 27 times by 1 test: *ok = isOk;
Executed by:
  • tst_QVariant
ok = isOk;
executed 27 times by 1 test: *ok = isOk;
Executed by:
  • tst_QVariant
27
302 if (isOk
isOkDescription
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 807 times by 24 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
)
27-807
303 return
executed 27 times by 2 tests: return true;
Executed by:
  • tst_QMetaType
  • tst_QVariant
true;
executed 27 times by 2 tests: return true;
Executed by:
  • tst_QMetaType
  • tst_QVariant
27
304 }
executed 807 times by 24 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
807
305-
306 bool dummy;-
307 if (!ok
!okDescription
TRUEevaluated 419082 times by 200 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 607 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QSettings
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWizard
  • tst_selftests - unknown status
)
607-419082
308 ok = &dummy;
executed 419082 times by 200 tests: ok = &dummy;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
419082
309-
310 switch (uint(t)) {-
311-
312 case
executed 6 times by 3 tests: case QVariant::Url:
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QVariant
  • tst_languageChange
QVariant::Url:
executed 6 times by 3 tests: case QVariant::Url:
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QVariant
  • tst_languageChange
6
313 switch (d->type) {-
314 case
executed 6 times by 3 tests: case QVariant::String:
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QVariant
  • tst_languageChange
QVariant::String:
executed 6 times by 3 tests: case QVariant::String:
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QVariant
  • tst_languageChange
6
315 *static_cast<QUrl *>(result) = QUrl(*v_cast<QString>(d));-
316 break;
executed 6 times by 3 tests: break;
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QVariant
  • tst_languageChange
6
317 default
never executed: default:
:
never executed: default:
0
318 return
never executed: return false;
false;
never executed: return false;
0
319 }-
320 break;
executed 6 times by 3 tests: break;
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QVariant
  • tst_languageChange
6
321 case
executed 1 time by 1 test: case QVariant::ModelIndex:
Executed by:
  • tst_QVariant
QVariant::ModelIndex:
executed 1 time by 1 test: case QVariant::ModelIndex:
Executed by:
  • tst_QVariant
1
322 switch (d->type) {-
323 case
executed 1 time by 1 test: case QVariant::PersistentModelIndex:
Executed by:
  • tst_QVariant
QVariant::PersistentModelIndex:
executed 1 time by 1 test: case QVariant::PersistentModelIndex:
Executed by:
  • tst_QVariant
1
324 *static_cast<QModelIndex *>(result) = QModelIndex(*v_cast<QPersistentModelIndex>(d));-
325 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
326 default
never executed: default:
:
never executed: default:
0
327 return
never executed: return false;
false;
never executed: return false;
0
328 }-
329 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
330 case
executed 1 time by 1 test: case QVariant::PersistentModelIndex:
Executed by:
  • tst_QVariant
QVariant::PersistentModelIndex:
executed 1 time by 1 test: case QVariant::PersistentModelIndex:
Executed by:
  • tst_QVariant
1
331 switch (d->type) {-
332 case
executed 1 time by 1 test: case QVariant::ModelIndex:
Executed by:
  • tst_QVariant
QVariant::ModelIndex:
executed 1 time by 1 test: case QVariant::ModelIndex:
Executed by:
  • tst_QVariant
1
333 *static_cast<QPersistentModelIndex *>(result) = QPersistentModelIndex(*v_cast<QModelIndex>(d));-
334 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
335 default
never executed: default:
:
never executed: default:
0
336 return
never executed: return false;
false;
never executed: return false;
0
337 }-
338 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
339-
340 case
executed 53452 times by 76 tests: case QVariant::String:
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • ...
QVariant::String:
executed 53452 times by 76 tests: case QVariant::String:
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • ...
{
53452
341 QString *str = static_cast<QString *>(result);-
342 switch (d->type) {-
343 case
executed 3926 times by 13 tests: case QVariant::Char:
Executed by:
  • tst_QMetaType
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
QVariant::Char:
executed 3926 times by 13 tests: case QVariant::Char:
Executed by:
  • tst_QMetaType
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
3926
344 *str = *v_cast<QChar>(d);-
345 break;
executed 3926 times by 13 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
3926
346 case
executed 29 times by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
QMetaType::Char:
executed 29 times by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
29
347 case
executed 36 times by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
QMetaType::SChar:
executed 36 times by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
36
348 case
executed 10 times by 1 test: case QMetaType::UChar:
Executed by:
  • tst_QVariant
QMetaType::UChar:
executed 10 times by 1 test: case QMetaType::UChar:
Executed by:
  • tst_QVariant
10
349 *str = QChar::fromLatin1(d->data.c);-
350 break;
executed 75 times by 1 test: break;
Executed by:
  • tst_QVariant
75
351 case
executed 10 times by 1 test: case QMetaType::Short:
Executed by:
  • tst_QVariant
QMetaType::Short:
executed 10 times by 1 test: case QMetaType::Short:
Executed by:
  • tst_QVariant
10
352 case
never executed: case QMetaType::Long:
QMetaType::Long:
never executed: case QMetaType::Long:
0
353 case
executed 28359 times by 44 tests: case QVariant::Int:
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QPrinter
  • ...
QVariant::Int:
executed 28359 times by 44 tests: case QVariant::Int:
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QPrinter
  • ...
28359
354 case
executed 250 times by 9 tests: case QVariant::LongLong:
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QNetworkRequest
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QVariant
QVariant::LongLong:
executed 250 times by 9 tests: case QVariant::LongLong:
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QNetworkRequest
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QVariant
250
355 *str = QString::number(qMetaTypeNumber(d));-
356 break;
executed 28619 times by 46 tests: break;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QPrinter
  • ...
28619
357 case
executed 179 times by 5 tests: case QVariant::UInt:
Executed by:
  • tst_QColorDialog
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QVariant
  • tst_languageChange
QVariant::UInt:
executed 179 times by 5 tests: case QVariant::UInt:
Executed by:
  • tst_QColorDialog
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QVariant
  • tst_languageChange
179
358 case
executed 43 times by 2 tests: case QVariant::ULongLong:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
QVariant::ULongLong:
executed 43 times by 2 tests: case QVariant::ULongLong:
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
43
359 case
executed 10 times by 1 test: case QMetaType::UShort:
Executed by:
  • tst_QVariant
QMetaType::UShort:
executed 10 times by 1 test: case QMetaType::UShort:
Executed by:
  • tst_QVariant
10
360 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
361 *str = QString::number(qMetaTypeUNumber(d));-
362 break;
executed 232 times by 5 tests: break;
Executed by:
  • tst_QColorDialog
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QVariant
  • tst_languageChange
232
363 case
executed 39 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
QMetaType::Float:
executed 39 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
39
364 *str = QString::number(d->data.f, 'g', max_digits10_float);-
365 break;
executed 39 times by 1 test: break;
Executed by:
  • tst_QVariant
39
366 case
executed 118 times by 12 tests: case QVariant::Double:
Executed by:
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTreeWidget
  • tst_QVariant
QVariant::Double:
executed 118 times by 12 tests: case QVariant::Double:
Executed by:
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTreeWidget
  • tst_QVariant
118
367 *str = QString::number(d->data.d, 'g', max_digits10_double);-
368 break;
executed 118 times by 12 tests: break;
Executed by:
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTreeWidget
  • tst_QVariant
118
369-
370 case
executed 5 times by 2 tests: case QVariant::Date:
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
QVariant::Date:
executed 5 times by 2 tests: case QVariant::Date:
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
5
371 *str = v_cast<QDate>(d)->toString(Qt::ISODate);-
372 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
5
373 case
executed 3 times by 1 test: case QVariant::Time:
Executed by:
  • tst_QVariant
QVariant::Time:
executed 3 times by 1 test: case QVariant::Time:
Executed by:
  • tst_QVariant
3
374 *str = v_cast<QTime>(d)->toString(Qt::ISODate);-
375 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
376 case
executed 11 times by 2 tests: case QVariant::DateTime:
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
QVariant::DateTime:
executed 11 times by 2 tests: case QVariant::DateTime:
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
11
377 *str = v_cast<QDateTime>(d)->toString(Qt::ISODate);-
378 break;
executed 11 times by 2 tests: break;
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
11
379-
380 case
executed 77 times by 6 tests: case QVariant::Bool:
Executed by:
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QSettings
  • tst_QTableView
  • tst_QVariant
QVariant::Bool:
executed 77 times by 6 tests: case QVariant::Bool:
Executed by:
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QSettings
  • tst_QTableView
  • tst_QVariant
77
381 *str = QLatin1String(d->data.b ? "true" : "false");-
382 break;
executed 77 times by 6 tests: break;
Executed by:
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QSettings
  • tst_QTableView
  • tst_QVariant
77
383 case
executed 25 times by 2 tests: case QVariant::ByteArray:
Executed by:
  • tst_QSettings
  • tst_QVariant
QVariant::ByteArray:
executed 25 times by 2 tests: case QVariant::ByteArray:
Executed by:
  • tst_QSettings
  • tst_QVariant
25
384 *str = QString::fromUtf8(v_cast<QByteArray>(d)->constData());-
385 break;
executed 25 times by 2 tests: break;
Executed by:
  • tst_QSettings
  • tst_QVariant
25
386 case
executed 18 times by 2 tests: case QVariant::StringList:
Executed by:
  • tst_QStyleSheetStyle
  • tst_QVariant
QVariant::StringList:
executed 18 times by 2 tests: case QVariant::StringList:
Executed by:
  • tst_QStyleSheetStyle
  • tst_QVariant
18
387 if (v_cast<QStringList>(d)->count() == 1
v_cast<QString...->count() == 1Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QStyleSheetStyle
  • tst_QVariant
)
3-15
388 *
executed 3 times by 1 test: *str = v_cast<QStringList>(d)->at(0);
Executed by:
  • tst_QVariant
str = v_cast<QStringList>(d)->at(0);
executed 3 times by 1 test: *str = v_cast<QStringList>(d)->at(0);
Executed by:
  • tst_QVariant
3
389 break;
executed 18 times by 2 tests: break;
Executed by:
  • tst_QStyleSheetStyle
  • tst_QVariant
18
390-
391 case
executed 8 times by 2 tests: case QVariant::Url:
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
QVariant::Url:
executed 8 times by 2 tests: case QVariant::Url:
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
8
392 *str = v_cast<QUrl>(d)->toString();-
393 break;
executed 8 times by 2 tests: break;
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
8
394 case
executed 2 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
QMetaType::QJsonValue:
executed 2 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
2
395 if (v_cast<QJsonValue>(d)->isString()
v_cast<QJsonVa...d)->isString()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
)
1
396 *
executed 1 time by 1 test: *str = v_cast<QJsonValue>(d)->toString();
Executed by:
  • tst_QVariant
str = v_cast<QJsonValue>(d)->toString();
executed 1 time by 1 test: *str = v_cast<QJsonValue>(d)->toString();
Executed by:
  • tst_QVariant
1
397 else if (!v_cast<QJsonValue>(d)->isNull()
!v_cast<QJsonV...>(d)->isNull()Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
)
0-1
398 return
never executed: return false;
false;
never executed: return false;
0
399 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
400-
401 case
executed 19 times by 2 tests: case QVariant::Uuid:
Executed by:
  • tst_QUuid
  • tst_QVariant
QVariant::Uuid:
executed 19 times by 2 tests: case QVariant::Uuid:
Executed by:
  • tst_QUuid
  • tst_QVariant
19
402 *str = v_cast<QUuid>(d)->toString();-
403 break;
executed 19 times by 2 tests: break;
Executed by:
  • tst_QUuid
  • tst_QVariant
19
404 default
executed 20275 times by 38 tests: default:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • ...
:
executed 20275 times by 38 tests: default:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • ...
20275
405-
406 {-
407 QMetaEnum en = metaEnumFromType(d->type);-
408 if (en.isValid()
en.isValid()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 20265 times by 38 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • ...
) {
10-20265
409 *str = QString::fromUtf8(en.valueToKey(qConvertToNumber(d, ok)));-
410 return
executed 10 times by 1 test: return *ok;
Executed by:
  • tst_QVariant
*ok;
executed 10 times by 1 test: return *ok;
Executed by:
  • tst_QVariant
10
411 }-
412 }-
413-
414 return
executed 20265 times by 38 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • ...
false;
executed 20265 times by 38 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • ...
20265
415 }-
416 break;
executed 33177 times by 62 tests: break;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkRequest
  • ...
33177
417 }-
418 case
executed 4 times by 2 tests: case QVariant::Char:
Executed by:
  • tst_QMetaType
  • tst_QVariant
QVariant::Char:
executed 4 times by 2 tests: case QVariant::Char:
Executed by:
  • tst_QMetaType
  • tst_QVariant
{
4
419 QChar *c = static_cast<QChar *>(result);-
420 switch (d->type) {-
421 case
executed 2 times by 1 test: case QVariant::Int:
Executed by:
  • tst_QMetaType
QVariant::Int:
executed 2 times by 1 test: case QVariant::Int:
Executed by:
  • tst_QMetaType
2
422 case
executed 1 time by 1 test: case QVariant::LongLong:
Executed by:
  • tst_QVariant
QVariant::LongLong:
executed 1 time by 1 test: case QVariant::LongLong:
Executed by:
  • tst_QVariant
1
423 case
never executed: case QMetaType::Char:
QMetaType::Char:
never executed: case QMetaType::Char:
0
424 case
never executed: case QMetaType::SChar:
QMetaType::SChar:
never executed: case QMetaType::SChar:
0
425 case
never executed: case QMetaType::Short:
QMetaType::Short:
never executed: case QMetaType::Short:
0
426 case
never executed: case QMetaType::Long:
QMetaType::Long:
never executed: case QMetaType::Long:
0
427 case
never executed: case QMetaType::Float:
QMetaType::Float:
never executed: case QMetaType::Float:
0
428 *c = QChar(ushort(qMetaTypeNumber(d)));-
429 break;
executed 3 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
430 case
never executed: case QVariant::UInt:
QVariant::UInt:
never executed: case QVariant::UInt:
0
431 case
executed 1 time by 1 test: case QVariant::ULongLong:
Executed by:
  • tst_QVariant
QVariant::ULongLong:
executed 1 time by 1 test: case QVariant::ULongLong:
Executed by:
  • tst_QVariant
1
432 case
never executed: case QMetaType::UChar:
QMetaType::UChar:
never executed: case QMetaType::UChar:
0
433 case
never executed: case QMetaType::UShort:
QMetaType::UShort:
never executed: case QMetaType::UShort:
0
434 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
435 *c = QChar(ushort(qMetaTypeUNumber(d)));-
436 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
437 default
never executed: default:
:
never executed: default:
0
438 return
never executed: return false;
false;
never executed: return false;
0
439 }-
440 break;
executed 4 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
4
441 }-
442-
443 case
executed 62 times by 5 tests: case QVariant::Size:
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QImageReader
  • tst_QPrinter
  • tst_QVariant
QVariant::Size:
executed 62 times by 5 tests: case QVariant::Size:
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QImageReader
  • tst_QPrinter
  • tst_QVariant
{
62
444 QSize *s = static_cast<QSize *>(result);-
445 switch (d->type) {-
446 case
executed 4 times by 1 test: case QVariant::SizeF:
Executed by:
  • tst_QVariant
QVariant::SizeF:
executed 4 times by 1 test: case QVariant::SizeF:
Executed by:
  • tst_QVariant
4
447 *s = v_cast<QSizeF>(d)->toSize();-
448 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
449 default
executed 58 times by 4 tests: default:
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QImageReader
  • tst_QPrinter
:
executed 58 times by 4 tests: default:
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QImageReader
  • tst_QPrinter
58
450 return
executed 58 times by 4 tests: return false;
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QImageReader
  • tst_QPrinter
false;
executed 58 times by 4 tests: return false;
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QImageReader
  • tst_QPrinter
58
451 }-
452 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
453 }-
454-
455 case
executed 23 times by 3 tests: case QVariant::SizeF:
Executed by:
  • tst_QGraphicsWidget
  • tst_QMetaType
  • tst_QVariant
QVariant::SizeF:
executed 23 times by 3 tests: case QVariant::SizeF:
Executed by:
  • tst_QGraphicsWidget
  • tst_QMetaType
  • tst_QVariant
{
23
456 QSizeF *s = static_cast<QSizeF *>(result);-
457 switch (d->type) {-
458 case
executed 21 times by 2 tests: case QVariant::Size:
Executed by:
  • tst_QGraphicsWidget
  • tst_QVariant
QVariant::Size:
executed 21 times by 2 tests: case QVariant::Size:
Executed by:
  • tst_QGraphicsWidget
  • tst_QVariant
21
459 *s = QSizeF(*(v_cast<QSize>(d)));-
460 break;
executed 21 times by 2 tests: break;
Executed by:
  • tst_QGraphicsWidget
  • tst_QVariant
21
461 default
executed 2 times by 1 test: default:
Executed by:
  • tst_QMetaType
:
executed 2 times by 1 test: default:
Executed by:
  • tst_QMetaType
2
462 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QMetaType
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QMetaType
2
463 }-
464 break;
executed 21 times by 2 tests: break;
Executed by:
  • tst_QGraphicsWidget
  • tst_QVariant
21
465 }-
466-
467 case
executed 4 times by 1 test: case QVariant::Line:
Executed by:
  • tst_QVariant
QVariant::Line:
executed 4 times by 1 test: case QVariant::Line:
Executed by:
  • tst_QVariant
{
4
468 QLine *s = static_cast<QLine *>(result);-
469 switch (d->type) {-
470 case
executed 4 times by 1 test: case QVariant::LineF:
Executed by:
  • tst_QVariant
QVariant::LineF:
executed 4 times by 1 test: case QVariant::LineF:
Executed by:
  • tst_QVariant
4
471 *s = v_cast<QLineF>(d)->toLine();-
472 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
473 default
never executed: default:
:
never executed: default:
0
474 return
never executed: return false;
false;
never executed: return false;
0
475 }-
476 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
477 }-
478-
479 case
executed 6 times by 2 tests: case QVariant::LineF:
Executed by:
  • tst_QMetaType
  • tst_QVariant
QVariant::LineF:
executed 6 times by 2 tests: case QVariant::LineF:
Executed by:
  • tst_QMetaType
  • tst_QVariant
{
6
480 QLineF *s = static_cast<QLineF *>(result);-
481 switch (d->type) {-
482 case
executed 4 times by 1 test: case QVariant::Line:
Executed by:
  • tst_QVariant
QVariant::Line:
executed 4 times by 1 test: case QVariant::Line:
Executed by:
  • tst_QVariant
4
483 *s = QLineF(*(v_cast<QLine>(d)));-
484 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
485 default
executed 2 times by 1 test: default:
Executed by:
  • tst_QMetaType
:
executed 2 times by 1 test: default:
Executed by:
  • tst_QMetaType
2
486 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QMetaType
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QMetaType
2
487 }-
488 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
489 }-
490-
491 case
executed 25 times by 25 tests: case QVariant::StringList:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_languageChange
QVariant::StringList:
executed 25 times by 25 tests: case QVariant::StringList:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_languageChange
25
492 if (d->type == QVariant::List
d->type == QVariant::ListDescription
TRUEnever evaluated
FALSEevaluated 25 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_languageChange
) {
0-25
493 QStringList *slst = static_cast<QStringList *>(result);-
494 const QVariantList *list = v_cast<QVariantList >(d);-
495 for (int i = 0; i < list->size()
i < list->size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i)
0
496 slst->append(list->at(i).toString());
never executed: slst->append(list->at(i).toString());
0
497 }
never executed: end of block
else if (d->type == QVariant::String
d->type == QVariant::StringDescription
TRUEnever evaluated
FALSEevaluated 25 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_languageChange
) {
0-25
498 QStringList *slst = static_cast<QStringList *>(result);-
499 *slst = QStringList(*v_cast<QString>(d));-
500 }
never executed: end of block
else {
0
501 return
executed 25 times by 25 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_languageChange
false;
executed 25 times by 25 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QTreeWidget
  • tst_languageChange
25
502 }-
503 break;
never executed: break;
0
504 case
executed 12673 times by 4 tests: case QVariant::Date:
Executed by:
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
QVariant::Date:
executed 12673 times by 4 tests: case QVariant::Date:
Executed by:
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
{
12673
505 QDate *dt = static_cast<QDate *>(result);-
506 if (d->type == QVariant::DateTime
d->type == QVariant::DateTimeDescription
TRUEevaluated 12671 times by 4 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
)
2-12671
507 *
executed 12671 times by 4 tests: *dt = v_cast<QDateTime>(d)->date();
Executed by:
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
dt = v_cast<QDateTime>(d)->date();
executed 12671 times by 4 tests: *dt = v_cast<QDateTime>(d)->date();
Executed by:
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
12671
508-
509 else if (d->type == QVariant::String
d->type == QVariant::StringDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
)
0-2
510 *
executed 2 times by 1 test: *dt = QDate::fromString(*v_cast<QString>(d), Qt::ISODate);
Executed by:
  • tst_QVariant
dt = QDate::fromString(*v_cast<QString>(d), Qt::ISODate);
executed 2 times by 1 test: *dt = QDate::fromString(*v_cast<QString>(d), Qt::ISODate);
Executed by:
  • tst_QVariant
2
511-
512 else-
513 return
never executed: return false;
false;
never executed: return false;
0
514-
515 return
executed 12673 times by 4 tests: return dt->isValid();
Executed by:
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
dt->isValid();
executed 12673 times by 4 tests: return dt->isValid();
Executed by:
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
12673
516 }-
517 case
executed 10943 times by 5 tests: case QVariant::Time:
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
QVariant::Time:
executed 10943 times by 5 tests: case QVariant::Time:
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
{
10943
518 QTime *t = static_cast<QTime *>(result);-
519 switch (d->type) {-
520 case
executed 10941 times by 5 tests: case QVariant::DateTime:
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
QVariant::DateTime:
executed 10941 times by 5 tests: case QVariant::DateTime:
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
10941
521 *t = v_cast<QDateTime>(d)->time();-
522 break;
executed 10941 times by 5 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
10941
523-
524 case
executed 2 times by 1 test: case QVariant::String:
Executed by:
  • tst_QVariant
QVariant::String:
executed 2 times by 1 test: case QVariant::String:
Executed by:
  • tst_QVariant
2
525 *t = QTime::fromString(*v_cast<QString>(d), Qt::ISODate);-
526 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
527-
528 default
never executed: default:
:
never executed: default:
0
529 return
never executed: return false;
false;
never executed: return false;
0
530 }-
531 return
executed 10943 times by 5 tests: return t->isValid();
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
t->isValid();
executed 10943 times by 5 tests: return t->isValid();
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
10943
532 }-
533 case
executed 943 times by 7 tests: case QVariant::DateTime:
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QVariant
QVariant::DateTime:
executed 943 times by 7 tests: case QVariant::DateTime:
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QVariant
{
943
534 QDateTime *dt = static_cast<QDateTime *>(result);-
535 switch (d->type) {-
536-
537 case
executed 12 times by 2 tests: case QVariant::String:
Executed by:
  • tst_QSqlQuery
  • tst_QVariant
QVariant::String:
executed 12 times by 2 tests: case QVariant::String:
Executed by:
  • tst_QSqlQuery
  • tst_QVariant
12
538 *dt = QDateTime::fromString(*v_cast<QString>(d), Qt::ISODate);-
539 break;
executed 12 times by 2 tests: break;
Executed by:
  • tst_QSqlQuery
  • tst_QVariant
12
540-
541 case
executed 2 times by 2 tests: case QVariant::Date:
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
QVariant::Date:
executed 2 times by 2 tests: case QVariant::Date:
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
2
542 *dt = QDateTime(*v_cast<QDate>(d));-
543 break;
executed 2 times by 2 tests: break;
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
2
544 default
executed 929 times by 5 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
:
executed 929 times by 5 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
929
545 return
executed 929 times by 5 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
false;
executed 929 times by 5 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
929
546 }-
547 return
executed 14 times by 3 tests: return dt->isValid();
Executed by:
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QVariant
dt->isValid();
executed 14 times by 3 tests: return dt->isValid();
Executed by:
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QVariant
14
548 }-
549 case
executed 609 times by 11 tests: case QVariant::ByteArray:
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSettings
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
QVariant::ByteArray:
executed 609 times by 11 tests: case QVariant::ByteArray:
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSettings
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
{
609
550 QByteArray *ba = static_cast<QByteArray *>(result);-
551 switch (d->type) {-
552 case
executed 118 times by 6 tests: case QVariant::String:
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSettings
  • tst_QXmlInputSource
  • tst_Spdy
QVariant::String:
executed 118 times by 6 tests: case QVariant::String:
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSettings
  • tst_QXmlInputSource
  • tst_Spdy
118
553 *ba = v_cast<QString>(d)->toUtf8();-
554 break;
executed 118 times by 6 tests: break;
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSettings
  • tst_QXmlInputSource
  • tst_Spdy
118
555 case
executed 3 times by 1 test: case QVariant::Double:
Executed by:
  • tst_QVariant
QVariant::Double:
executed 3 times by 1 test: case QVariant::Double:
Executed by:
  • tst_QVariant
3
556 *ba = QByteArray::number(d->data.d, 'g', max_digits10_double);-
557 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
558 case
executed 3 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
QMetaType::Float:
executed 3 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
3
559 *ba = QByteArray::number(d->data.f, 'g', max_digits10_float);-
560 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
561 case
never executed: case QMetaType::Char:
QMetaType::Char:
never executed: case QMetaType::Char:
0
562 case
never executed: case QMetaType::SChar:
QMetaType::SChar:
never executed: case QMetaType::SChar:
0
563 case
never executed: case QMetaType::UChar:
QMetaType::UChar:
never executed: case QMetaType::UChar:
0
564 *ba = QByteArray(1, d->data.c);-
565 break;
never executed: break;
0
566 case
executed 6 times by 4 tests: case QVariant::Int:
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QXmlInputSource
QVariant::Int:
executed 6 times by 4 tests: case QVariant::Int:
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QXmlInputSource
6
567 case
executed 249 times by 5 tests: case QVariant::LongLong:
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
QVariant::LongLong:
executed 249 times by 5 tests: case QVariant::LongLong:
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
249
568 case
never executed: case QMetaType::Short:
QMetaType::Short:
never executed: case QMetaType::Short:
0
569 case
never executed: case QMetaType::Long:
QMetaType::Long:
never executed: case QMetaType::Long:
0
570 *ba = QByteArray::number(qMetaTypeNumber(d));-
571 break;
executed 255 times by 6 tests: break;
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
255
572 case
executed 2 times by 1 test: case QVariant::UInt:
Executed by:
  • tst_QVariant
QVariant::UInt:
executed 2 times by 1 test: case QVariant::UInt:
Executed by:
  • tst_QVariant
2
573 case
executed 2 times by 1 test: case QVariant::ULongLong:
Executed by:
  • tst_QVariant
QVariant::ULongLong:
executed 2 times by 1 test: case QVariant::ULongLong:
Executed by:
  • tst_QVariant
2
574 case
never executed: case QMetaType::UShort:
QMetaType::UShort:
never executed: case QMetaType::UShort:
0
575 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
576 *ba = QByteArray::number(qMetaTypeUNumber(d));-
577 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
578 case
executed 3 times by 1 test: case QVariant::Bool:
Executed by:
  • tst_QVariant
QVariant::Bool:
executed 3 times by 1 test: case QVariant::Bool:
Executed by:
  • tst_QVariant
3
579 *ba = QByteArray(d->data.b ? "true" : "false");-
580 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
581 default
executed 223 times by 4 tests: default:
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMimeData
  • tst_QVariant
:
executed 223 times by 4 tests: default:
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMimeData
  • tst_QVariant
223
582-
583 {-
584 QMetaEnum en = metaEnumFromType(d->type);-
585 if (en.isValid()
en.isValid()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 213 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMimeData
) {
10-213
586 *ba = en.valueToKey(qConvertToNumber(d, ok));-
587 return
executed 10 times by 1 test: return *ok;
Executed by:
  • tst_QVariant
*ok;
executed 10 times by 1 test: return *ok;
Executed by:
  • tst_QVariant
10
588 }-
589 }-
590-
591 return
executed 213 times by 3 tests: return false;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMimeData
false;
executed 213 times by 3 tests: return false;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMimeData
213
592 }-
593 }-
594 break;
executed 386 times by 8 tests: break;
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSettings
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
386
595 case
executed 28 times by 2 tests: case QMetaType::Short:
Executed by:
  • tst_QDBusReply
  • tst_QVariant
QMetaType::Short:
executed 28 times by 2 tests: case QMetaType::Short:
Executed by:
  • tst_QDBusReply
  • tst_QVariant
28
596 *static_cast<short *>(result) = short(qConvertToNumber(d, ok));-
597 return
executed 28 times by 2 tests: return *ok;
Executed by:
  • tst_QDBusReply
  • tst_QVariant
*ok;
executed 28 times by 2 tests: return *ok;
Executed by:
  • tst_QDBusReply
  • tst_QVariant
28
598 case
executed 1 time by 1 test: case QMetaType::Long:
Executed by:
  • tst_QVariant
QMetaType::Long:
executed 1 time by 1 test: case QMetaType::Long:
Executed by:
  • tst_QVariant
1
599 *static_cast<long *>(result) = long(qConvertToNumber(d, ok));-
600 return
executed 1 time by 1 test: return *ok;
Executed by:
  • tst_QVariant
*ok;
executed 1 time by 1 test: return *ok;
Executed by:
  • tst_QVariant
1
601 case
executed 31 times by 1 test: case QMetaType::UShort:
Executed by:
  • tst_QVariant
QMetaType::UShort:
executed 31 times by 1 test: case QMetaType::UShort:
Executed by:
  • tst_QVariant
31
602 *static_cast<ushort *>(result) = ushort(qConvertToUnsignedNumber(d, ok));-
603 return
executed 31 times by 1 test: return *ok;
Executed by:
  • tst_QVariant
*ok;
executed 31 times by 1 test: return *ok;
Executed by:
  • tst_QVariant
31
604 case
executed 7 times by 1 test: case QMetaType::ULong:
Executed by:
  • tst_QVariant
QMetaType::ULong:
executed 7 times by 1 test: case QMetaType::ULong:
Executed by:
  • tst_QVariant
7
605 *static_cast<ulong *>(result) = ulong(qConvertToUnsignedNumber(d, ok));-
606 return
executed 7 times by 1 test: return *ok;
Executed by:
  • tst_QVariant
*ok;
executed 7 times by 1 test: return *ok;
Executed by:
  • tst_QVariant
7
607 case
executed 16282 times by 69 tests: case QVariant::Int:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
QVariant::Int:
executed 16282 times by 69 tests: case QVariant::Int:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
16282
608 *static_cast<int *>(result) = int(qConvertToNumber(d, ok));-
609 return
executed 16282 times by 69 tests: return *ok;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
*ok;
executed 16282 times by 69 tests: return *ok;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
16282
610 case
executed 189 times by 24 tests: case QVariant::UInt:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSqlDatabase
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
QVariant::UInt:
executed 189 times by 24 tests: case QVariant::UInt:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSqlDatabase
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
189
611 *static_cast<uint *>(result) = uint(qConvertToUnsignedNumber(d, ok));-
612 return
executed 189 times by 24 tests: return *ok;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSqlDatabase
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
*ok;
executed 189 times by 24 tests: return *ok;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSqlDatabase
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
189
613 case
executed 10784 times by 15 tests: case QVariant::LongLong:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDBusMarshall
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListWidget
  • tst_QNetworkReply
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QVariant
  • tst_Spdy
QVariant::LongLong:
executed 10784 times by 15 tests: case QVariant::LongLong:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDBusMarshall
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListWidget
  • tst_QNetworkReply
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QVariant
  • tst_Spdy
10784
614 *static_cast<qlonglong *>(result) = qConvertToNumber(d, ok);-
615 return
executed 10784 times by 15 tests: return *ok;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDBusMarshall
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListWidget
  • tst_QNetworkReply
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QVariant
  • tst_Spdy
*ok;
executed 10784 times by 15 tests: return *ok;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDBusMarshall
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListWidget
  • tst_QNetworkReply
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QVariant
  • tst_Spdy
10784
616 case
executed 141 times by 12 tests: case QVariant::ULongLong:
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QVariant
  • tst_QWizard
  • tst_qapplication - unknown status
QVariant::ULongLong:
executed 141 times by 12 tests: case QVariant::ULongLong:
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QVariant
  • tst_QWizard
  • tst_qapplication - unknown status
{
141
617 *static_cast<qulonglong *>(result) = qConvertToUnsignedNumber(d, ok);-
618 return
executed 141 times by 12 tests: return *ok;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QVariant
  • tst_QWizard
  • tst_qapplication - unknown status
*ok;
executed 141 times by 12 tests: return *ok;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QVariant
  • tst_QWizard
  • tst_qapplication - unknown status
141
619 }-
620 case
executed 1 time by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
QMetaType::SChar:
executed 1 time by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
{
1
621 signed char s = qConvertToNumber(d, ok);-
622 *static_cast<signed char*>(result) = s;-
623 return
executed 1 time by 1 test: return *ok;
Executed by:
  • tst_QVariant
*ok;
executed 1 time by 1 test: return *ok;
Executed by:
  • tst_QVariant
1
624 }-
625 case
executed 1 time by 1 test: case QMetaType::UChar:
Executed by:
  • tst_QVariant
QMetaType::UChar:
executed 1 time by 1 test: case QMetaType::UChar:
Executed by:
  • tst_QVariant
{
1
626 *static_cast<uchar *>(result) = qConvertToUnsignedNumber(d, ok);-
627 return
executed 1 time by 1 test: return *ok;
Executed by:
  • tst_QVariant
*ok;
executed 1 time by 1 test: return *ok;
Executed by:
  • tst_QVariant
1
628 }-
629 case
executed 41414 times by 115 tests: case QVariant::Bool:
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QFileDialog2
  • ...
QVariant::Bool:
executed 41414 times by 115 tests: case QVariant::Bool:
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QFileDialog2
  • ...
{
41414
630 bool *b = static_cast<bool *>(result);-
631 switch(d->type) {-
632 case
executed 10 times by 1 test: case QVariant::ByteArray:
Executed by:
  • tst_QVariant
QVariant::ByteArray:
executed 10 times by 1 test: case QVariant::ByteArray:
Executed by:
  • tst_QVariant
10
633 *b = qt_convertToBool<QByteArray, QByteArray>(d);-
634 break;
executed 10 times by 1 test: break;
Executed by:
  • tst_QVariant
10
635 case
executed 20 times by 3 tests: case QVariant::String:
Executed by:
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QVariant
QVariant::String:
executed 20 times by 3 tests: case QVariant::String:
Executed by:
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QVariant
20
636 *b = qt_convertToBool<QString, QLatin1String>(d);-
637 break;
executed 20 times by 3 tests: break;
Executed by:
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QVariant
20
638 case
executed 2 times by 1 test: case QVariant::Char:
Executed by:
  • tst_QVariant
QVariant::Char:
executed 2 times by 1 test: case QVariant::Char:
Executed by:
  • tst_QVariant
2
639 *b = !v_cast<QChar>(d)->isNull();-
640 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
641 case
executed 11 times by 2 tests: case QVariant::Double:
Executed by:
  • tst_QStyleSheetStyle
  • tst_QVariant
QVariant::Double:
executed 11 times by 2 tests: case QVariant::Double:
Executed by:
  • tst_QStyleSheetStyle
  • tst_QVariant
11
642 case
executed 35 times by 4 tests: case QVariant::Int:
Executed by:
  • tst_QSettings
  • tst_QTcpSocket
  • tst_QVariant
  • tst_QWizard
QVariant::Int:
executed 35 times by 4 tests: case QVariant::Int:
Executed by:
  • tst_QSettings
  • tst_QTcpSocket
  • tst_QVariant
  • tst_QWizard
35
643 case
executed 16 times by 2 tests: case QVariant::LongLong:
Executed by:
  • tst_QSqlQuery
  • tst_QVariant
QVariant::LongLong:
executed 16 times by 2 tests: case QVariant::LongLong:
Executed by:
  • tst_QSqlQuery
  • tst_QVariant
16
644 case
executed 4 times by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
QMetaType::Char:
executed 4 times by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
4
645 case
executed 8 times by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
QMetaType::SChar:
executed 8 times by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
8
646 case
executed 8 times by 1 test: case QMetaType::Short:
Executed by:
  • tst_QVariant
QMetaType::Short:
executed 8 times by 1 test: case QMetaType::Short:
Executed by:
  • tst_QVariant
8
647 case
never executed: case QMetaType::Long:
QMetaType::Long:
never executed: case QMetaType::Long:
0
648 case
executed 6 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
QMetaType::Float:
executed 6 times by 1 test: case QMetaType::Float:
Executed by:
  • tst_QVariant
6
649 *b = qMetaTypeNumber(d) != static_cast<long long>(0LL);-
650 break;
executed 88 times by 6 tests: break;
Executed by:
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTcpSocket
  • tst_QVariant
  • tst_QWizard
88
651 case
executed 1266 times by 12 tests: case QVariant::UInt:
Executed by:
  • tst_QDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QVariant
QVariant::UInt:
executed 1266 times by 12 tests: case QVariant::UInt:
Executed by:
  • tst_QDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QVariant
1266
652 case
executed 10 times by 1 test: case QVariant::ULongLong:
Executed by:
  • tst_QVariant
QVariant::ULongLong:
executed 10 times by 1 test: case QVariant::ULongLong:
Executed by:
  • tst_QVariant
10
653 case
executed 8 times by 1 test: case QMetaType::UChar:
Executed by:
  • tst_QVariant
QMetaType::UChar:
executed 8 times by 1 test: case QMetaType::UChar:
Executed by:
  • tst_QVariant
8
654 case
executed 8 times by 1 test: case QMetaType::UShort:
Executed by:
  • tst_QVariant
QMetaType::UShort:
executed 8 times by 1 test: case QMetaType::UShort:
Executed by:
  • tst_QVariant
8
655 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
656 *b = qMetaTypeUNumber(d) != static_cast<unsigned long long>(0ULL);-
657 break;
executed 1292 times by 12 tests: break;
Executed by:
  • tst_QDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QVariant
1292
658-
659 case
executed 2 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
QMetaType::QJsonValue:
executed 2 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
2
660 *b = v_cast<QJsonValue>(d)->toBool(false);-
661 if (!v_cast<QJsonValue>(d)->isBool()
!v_cast<QJsonV...>(d)->isBool()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
)
0-2
662 return
never executed: return false;
false;
never executed: return false;
0
663 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
664-
665 default
executed 40000 times by 110 tests: default:
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QFileDialog2
  • ...
:
executed 40000 times by 110 tests: default:
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QFileDialog2
  • ...
40000
666 *b = false;-
667 return
executed 40000 times by 110 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QFileDialog2
  • ...
false;
executed 40000 times by 110 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QFileDialog2
  • ...
40000
668 }-
669 break;
executed 1414 times by 17 tests: break;
Executed by:
  • tst_QDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTcpSocket
  • tst_QVariant
  • tst_QWizard
1414
670 }-
671 case
executed 593 times by 17 tests: case QVariant::Double:
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QSqlDatabase
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
QVariant::Double:
executed 593 times by 17 tests: case QVariant::Double:
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QSqlDatabase
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
{
593
672 double *f = static_cast<double *>(result);-
673 switch (d->type) {-
674 case
executed 328 times by 13 tests: case QVariant::String:
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QObject
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
QVariant::String:
executed 328 times by 13 tests: case QVariant::String:
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QObject
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
328
675 *f = v_cast<QString>(d)->toDouble(ok);-
676 break;
executed 328 times by 13 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QObject
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
328
677 case
executed 3 times by 1 test: case QVariant::ByteArray:
Executed by:
  • tst_QVariant
QVariant::ByteArray:
executed 3 times by 1 test: case QVariant::ByteArray:
Executed by:
  • tst_QVariant
3
678 *f = v_cast<QByteArray>(d)->toDouble(ok);-
679 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
680 case
executed 8 times by 1 test: case QVariant::Bool:
Executed by:
  • tst_QVariant
QVariant::Bool:
executed 8 times by 1 test: case QVariant::Bool:
Executed by:
  • tst_QVariant
8
681 *f = double(d->data.b);-
682 break;
executed 8 times by 1 test: break;
Executed by:
  • tst_QVariant
8
683 case
executed 9 times by 2 tests: case QMetaType::Float:
Executed by:
  • tst_QObject
  • tst_QVariant
QMetaType::Float:
executed 9 times by 2 tests: case QMetaType::Float:
Executed by:
  • tst_QObject
  • tst_QVariant
9
684 *f = double(d->data.f);-
685 break;
executed 9 times by 2 tests: break;
Executed by:
  • tst_QObject
  • tst_QVariant
9
686 case
executed 10 times by 2 tests: case QVariant::LongLong:
Executed by:
  • tst_QSqlDatabase
  • tst_QVariant
QVariant::LongLong:
executed 10 times by 2 tests: case QVariant::LongLong:
Executed by:
  • tst_QSqlDatabase
  • tst_QVariant
10
687 case
executed 47 times by 4 tests: case QVariant::Int:
Executed by:
  • tst_QGraphicsObject
  • tst_QGraphicsWidget
  • tst_QPropertyAnimation
  • tst_QVariant
QVariant::Int:
executed 47 times by 4 tests: case QVariant::Int:
Executed by:
  • tst_QGraphicsObject
  • tst_QGraphicsWidget
  • tst_QPropertyAnimation
  • tst_QVariant
47
688 case
executed 4 times by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
QMetaType::Char:
executed 4 times by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
4
689 case
executed 8 times by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
QMetaType::SChar:
executed 8 times by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QVariant
8
690 case
executed 9 times by 1 test: case QMetaType::Short:
Executed by:
  • tst_QVariant
QMetaType::Short:
executed 9 times by 1 test: case QMetaType::Short:
Executed by:
  • tst_QVariant
9
691 case
executed 3 times by 1 test: case QMetaType::Long:
Executed by:
  • tst_QVariant
QMetaType::Long:
executed 3 times by 1 test: case QMetaType::Long:
Executed by:
  • tst_QVariant
3
692 *f = double(qMetaTypeNumber(d));-
693 break;
executed 81 times by 5 tests: break;
Executed by:
  • tst_QGraphicsObject
  • tst_QGraphicsWidget
  • tst_QPropertyAnimation
  • tst_QSqlDatabase
  • tst_QVariant
81
694 case
executed 6 times by 1 test: case QVariant::UInt:
Executed by:
  • tst_QVariant
QVariant::UInt:
executed 6 times by 1 test: case QVariant::UInt:
Executed by:
  • tst_QVariant
6
695 case
executed 10 times by 1 test: case QVariant::ULongLong:
Executed by:
  • tst_QVariant
QVariant::ULongLong:
executed 10 times by 1 test: case QVariant::ULongLong:
Executed by:
  • tst_QVariant
10
696 case
executed 8 times by 1 test: case QMetaType::UChar:
Executed by:
  • tst_QVariant
QMetaType::UChar:
executed 8 times by 1 test: case QMetaType::UChar:
Executed by:
  • tst_QVariant
8
697 case
executed 8 times by 1 test: case QMetaType::UShort:
Executed by:
  • tst_QVariant
QMetaType::UShort:
executed 8 times by 1 test: case QMetaType::UShort:
Executed by:
  • tst_QVariant
8
698 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
699 *f = double(qMetaTypeUNumber(d));-
700 break;
executed 32 times by 1 test: break;
Executed by:
  • tst_QVariant
32
701-
702 case
executed 2 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
QMetaType::QJsonValue:
executed 2 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
2
703 *f = v_cast<QJsonValue>(d)->toDouble(0.0);-
704 if (!v_cast<QJsonValue>(d)->isDouble()
!v_cast<QJsonV...d)->isDouble()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
)
1
705 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QVariant
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QVariant
1
706 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
707-
708 default
executed 130 times by 1 test: default:
Executed by:
  • tst_QVariant
:
executed 130 times by 1 test: default:
Executed by:
  • tst_QVariant
130
709 *f = 0.0;-
710 return
executed 130 times by 1 test: return false;
Executed by:
  • tst_QVariant
false;
executed 130 times by 1 test: return false;
Executed by:
  • tst_QVariant
130
711 }-
712 break;
executed 462 times by 17 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QSqlDatabase
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
462
713 }-
714 case
executed 25 times by 3 tests: case QMetaType::Float:
Executed by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
QMetaType::Float:
executed 25 times by 3 tests: case QMetaType::Float:
Executed by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
{
25
715 float *f = static_cast<float *>(result);-
716 switch (d->type) {-
717 case
executed 7 times by 2 tests: case QVariant::String:
Executed by:
  • tst_QObject
  • tst_QVariant
QVariant::String:
executed 7 times by 2 tests: case QVariant::String:
Executed by:
  • tst_QObject
  • tst_QVariant
7
718 *f = v_cast<QString>(d)->toFloat(ok);-
719 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QObject
  • tst_QVariant
7
720 case
executed 3 times by 1 test: case QVariant::ByteArray:
Executed by:
  • tst_QVariant
QVariant::ByteArray:
executed 3 times by 1 test: case QVariant::ByteArray:
Executed by:
  • tst_QVariant
3
721 *f = v_cast<QByteArray>(d)->toFloat(ok);-
722 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
723 case
never executed: case QVariant::Bool:
QVariant::Bool:
never executed: case QVariant::Bool:
0
724 *f = float(d->data.b);-
725 break;
never executed: break;
0
726 case
executed 3 times by 1 test: case QVariant::Double:
Executed by:
  • tst_QVariant
QVariant::Double:
executed 3 times by 1 test: case QVariant::Double:
Executed by:
  • tst_QVariant
3
727 *f = float(d->data.d);-
728 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
729 case
never executed: case QVariant::LongLong:
QVariant::LongLong:
never executed: case QVariant::LongLong:
0
730 case
executed 3 times by 1 test: case QVariant::Int:
Executed by:
  • tst_QVariant
QVariant::Int:
executed 3 times by 1 test: case QVariant::Int:
Executed by:
  • tst_QVariant
3
731 case
never executed: case QMetaType::Char:
QMetaType::Char:
never executed: case QMetaType::Char:
0
732 case
never executed: case QMetaType::SChar:
QMetaType::SChar:
never executed: case QMetaType::SChar:
0
733 case
executed 1 time by 1 test: case QMetaType::Short:
Executed by:
  • tst_QVariant
QMetaType::Short:
executed 1 time by 1 test: case QMetaType::Short:
Executed by:
  • tst_QVariant
1
734 case
executed 2 times by 1 test: case QMetaType::Long:
Executed by:
  • tst_QVariant
QMetaType::Long:
executed 2 times by 1 test: case QMetaType::Long:
Executed by:
  • tst_QVariant
2
735 *f = float(qMetaTypeNumber(d));-
736 break;
executed 6 times by 1 test: break;
Executed by:
  • tst_QVariant
6
737 case
executed 1 time by 1 test: case QVariant::UInt:
Executed by:
  • tst_QVariant
QVariant::UInt:
executed 1 time by 1 test: case QVariant::UInt:
Executed by:
  • tst_QVariant
1
738 case
executed 1 time by 1 test: case QVariant::ULongLong:
Executed by:
  • tst_QVariant
QVariant::ULongLong:
executed 1 time by 1 test: case QVariant::ULongLong:
Executed by:
  • tst_QVariant
1
739 case
never executed: case QMetaType::UChar:
QMetaType::UChar:
never executed: case QMetaType::UChar:
0
740 case
never executed: case QMetaType::UShort:
QMetaType::UShort:
never executed: case QMetaType::UShort:
0
741 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
742 *f = float(qMetaTypeUNumber(d));-
743 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
744-
745 case
executed 2 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
QMetaType::QJsonValue:
executed 2 times by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QVariant
2
746 *f = v_cast<QJsonValue>(d)->toDouble(0.0);-
747 if (!v_cast<QJsonValue>(d)->isDouble()
!v_cast<QJsonV...d)->isDouble()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
)
1
748 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QVariant
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QVariant
1
749 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
750-
751 default
executed 2 times by 1 test: default:
Executed by:
  • tst_QMetaType
:
executed 2 times by 1 test: default:
Executed by:
  • tst_QMetaType
2
752 *f = 0.0f;-
753 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QMetaType
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QMetaType
2
754 }-
755 break;
executed 22 times by 2 tests: break;
Executed by:
  • tst_QObject
  • tst_QVariant
22
756 }-
757 case
executed 487 times by 6 tests: case QVariant::List:
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
QVariant::List:
executed 487 times by 6 tests: case QVariant::List:
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
487
758 if (d->type == QVariant::StringList
d->type == QVa...nt::StringListDescription
TRUEevaluated 487 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEnever evaluated
) {
0-487
759 QVariantList *lst = static_cast<QVariantList *>(result);-
760 const QStringList *slist = v_cast<QStringList>(d);-
761 for (int i = 0; i < slist->size()
i < slist->size()Description
TRUEevaluated 810 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 487 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
; ++i)
487-810
762 lst->append(QVariant(slist->at(i)));
executed 810 times by 6 tests: lst->append(QVariant(slist->at(i)));
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
810
763 }
executed 487 times by 6 tests: end of block
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
else if (qstrcmp(QMetaType::typeName(d->type), "QList<QVariant>") == 0
qstrcmp(QMetaT...ariant>") == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-487
764 *static_cast<QVariantList *>(result) =-
765 *static_cast<QList<QVariant> *>(d->data.shared->ptr);-
766-
767 }
never executed: end of block
else if (d->type == QMetaType::QJsonValue
d->type == QMe...pe::QJsonValueDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
768 if (!v_cast<QJsonValue>(d)->isArray()
!v_cast<QJsonV...(d)->isArray()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
769 return
never executed: return false;
false;
never executed: return false;
0
770 *static_cast<QVariantList *>(result) = v_cast<QJsonValue>(d)->toArray().toVariantList();-
771 }
never executed: end of block
else if (d->type == QMetaType::QJsonArray
d->type == QMe...pe::QJsonArrayDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
772 *static_cast<QVariantList *>(result) = v_cast<QJsonArray>(d)->toVariantList();-
773-
774 }
never executed: end of block
else {
0
775 return
never executed: return false;
false;
never executed: return false;
0
776 }-
777 break;
executed 487 times by 6 tests: break;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
487
778 case
executed 2 times by 1 test: case QVariant::Map:
Executed by:
  • tst_QDBusAbstractAdaptor
QVariant::Map:
executed 2 times by 1 test: case QVariant::Map:
Executed by:
  • tst_QDBusAbstractAdaptor
2
779 if (qstrcmp(QMetaType::typeName(d->type), "QMap<QString, QVariant>") == 0
qstrcmp(QMetaT...ariant>") == 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDBusAbstractAdaptor
) {
0-2
780 *static_cast<QVariantMap *>(result) =-
781 *static_cast<QMap<QString, QVariant> *>(d->data.shared->ptr);-
782-
783 }
never executed: end of block
else if (d->type == QMetaType::QJsonValue
d->type == QMe...pe::QJsonValueDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDBusAbstractAdaptor
) {
0-2
784 if (!v_cast<QJsonValue>(d)->isObject()
!v_cast<QJsonV...d)->isObject()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
785 return
never executed: return false;
false;
never executed: return false;
0
786 *static_cast<QVariantMap *>(result) = v_cast<QJsonValue>(d)->toObject().toVariantMap();-
787 }
never executed: end of block
else if (d->type == QMetaType::QJsonObject
d->type == QMe...e::QJsonObjectDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDBusAbstractAdaptor
) {
0-2
788 *static_cast<QVariantMap *>(result) = v_cast<QJsonObject>(d)->toVariantMap();-
789-
790 }
never executed: end of block
else {
0
791 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QDBusAbstractAdaptor
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QDBusAbstractAdaptor
2
792 }-
793 break;
never executed: break;
0
794 case
never executed: case QVariant::Hash:
QVariant::Hash:
never executed: case QVariant::Hash:
0
795 if (qstrcmp(QMetaType::typeName(d->type), "QHash<QString, QVariant>") == 0
qstrcmp(QMetaT...ariant>") == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
796 *static_cast<QVariantHash *>(result) =-
797 *static_cast<QHash<QString, QVariant> *>(d->data.shared->ptr);-
798-
799 }
never executed: end of block
else if (d->type == QMetaType::QJsonValue
d->type == QMe...pe::QJsonValueDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
800 if (!v_cast<QJsonValue>(d)->isObject()
!v_cast<QJsonV...d)->isObject()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
801 return
never executed: return false;
false;
never executed: return false;
0
802 *static_cast<QVariantHash *>(result) = v_cast<QJsonValue>(d)->toObject().toVariantHash();-
803 }
never executed: end of block
else if (d->type == QMetaType::QJsonObject
d->type == QMe...e::QJsonObjectDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
804 *static_cast<QVariantHash *>(result) = v_cast<QJsonObject>(d)->toVariantHash();-
805-
806 }
never executed: end of block
else {
0
807 return
never executed: return false;
false;
never executed: return false;
0
808 }-
809 break;
never executed: break;
0
810-
811 case
executed 8 times by 4 tests: case QVariant::Rect:
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QVariant
  • tst_qinputmethod
QVariant::Rect:
executed 8 times by 4 tests: case QVariant::Rect:
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QVariant
  • tst_qinputmethod
8
812 if (d->type == QVariant::RectF
d->type == QVariant::RectFDescription
TRUEevaluated 8 times by 4 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QVariant
  • tst_qinputmethod
FALSEnever evaluated
)
0-8
813 *static_cast<
executed 8 times by 4 tests: *static_cast<QRect *>(result) = (v_cast<QRectF>(d))->toRect();
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QVariant
  • tst_qinputmethod
QRect *>(result) = (v_cast<QRectF>(d))->toRect();
executed 8 times by 4 tests: *static_cast<QRect *>(result) = (v_cast<QRectF>(d))->toRect();
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QVariant
  • tst_qinputmethod
8
814 else-
815 return
never executed: return false;
false;
never executed: return false;
0
816 break;
executed 8 times by 4 tests: break;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QVariant
  • tst_qinputmethod
8
817 case
executed 3 times by 2 tests: case QVariant::RectF:
Executed by:
  • tst_QMetaType
  • tst_QVariant
QVariant::RectF:
executed 3 times by 2 tests: case QVariant::RectF:
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
818 if (d->type == QVariant::Rect
d->type == QVariant::RectDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
)
1-2
819 *static_cast<
executed 1 time by 1 test: *static_cast<QRectF *>(result) = *v_cast<QRect>(d);
Executed by:
  • tst_QVariant
QRectF *>(result) = *v_cast<QRect>(d);
executed 1 time by 1 test: *static_cast<QRectF *>(result) = *v_cast<QRect>(d);
Executed by:
  • tst_QVariant
1
820 else-
821 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QMetaType
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QMetaType
2
822 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
823 case
executed 2 times by 1 test: case QVariant::PointF:
Executed by:
  • tst_QMetaType
QVariant::PointF:
executed 2 times by 1 test: case QVariant::PointF:
Executed by:
  • tst_QMetaType
2
824 if (d->type == QVariant::Point
d->type == QVariant::PointDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
)
0-2
825 *static_cast<
never executed: *static_cast<QPointF *>(result) = *v_cast<QPoint>(d);
QPointF *>(result) = *v_cast<QPoint>(d);
never executed: *static_cast<QPointF *>(result) = *v_cast<QPoint>(d);
0
826 else-
827 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QMetaType
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QMetaType
2
828 break;
never executed: break;
0
829 case
executed 28 times by 3 tests: case QVariant::Point:
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QVariant
QVariant::Point:
executed 28 times by 3 tests: case QVariant::Point:
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QVariant
28
830 if (d->type == QVariant::PointF
d->type == QVariant::PointFDescription
TRUEevaluated 28 times by 3 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QVariant
FALSEnever evaluated
)
0-28
831 *static_cast<
executed 28 times by 3 tests: *static_cast<QPoint *>(result) = (v_cast<QPointF>(d))->toPoint();
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QVariant
QPoint *>(result) = (v_cast<QPointF>(d))->toPoint();
executed 28 times by 3 tests: *static_cast<QPoint *>(result) = (v_cast<QPointF>(d))->toPoint();
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QVariant
28
832 else-
833 return
never executed: return false;
false;
never executed: return false;
0
834 break;
executed 28 times by 3 tests: break;
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QVariant
28
835 case
executed 1 time by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
QMetaType::Char:
executed 1 time by 1 test: case QMetaType::Char:
Executed by:
  • tst_QVariant
1
836 {-
837 *static_cast<qint8 *>(result) = qint8(qConvertToNumber(d, ok));-
838 return
executed 1 time by 1 test: return *ok;
Executed by:
  • tst_QVariant
*ok;
executed 1 time by 1 test: return *ok;
Executed by:
  • tst_QVariant
1
839 }-
840-
841 case
executed 2 times by 2 tests: case QVariant::Uuid:
Executed by:
  • tst_QUuid
  • tst_QVariant
QVariant::Uuid:
executed 2 times by 2 tests: case QVariant::Uuid:
Executed by:
  • tst_QUuid
  • tst_QVariant
2
842 switch (d->type) {-
843 case
executed 2 times by 2 tests: case QVariant::String:
Executed by:
  • tst_QUuid
  • tst_QVariant
QVariant::String:
executed 2 times by 2 tests: case QVariant::String:
Executed by:
  • tst_QUuid
  • tst_QVariant
2
844 *static_cast<QUuid *>(result) = QUuid(*v_cast<QString>(d));-
845 break;
executed 2 times by 2 tests: break;
Executed by:
  • tst_QUuid
  • tst_QVariant
2
846 default
never executed: default:
:
never executed: default:
0
847 return
never executed: return false;
false;
never executed: return false;
0
848 }-
849 break;
executed 2 times by 2 tests: break;
Executed by:
  • tst_QUuid
  • tst_QVariant
2
850 default
executed 270907 times by 98 tests: default:
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QErrorMessage
  • ...
:
executed 270907 times by 98 tests: default:
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QErrorMessage
  • ...
270907
851-
852 if (d->type == QVariant::String
d->type == QVariant::StringDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 270895 times by 98 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QErrorMessage
  • ...
|| d->type == QVariant::ByteArray
d->type == QVariant::ByteArrayDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 270888 times by 98 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QErrorMessage
  • ...
) {
7-270895
853 QMetaEnum en = metaEnumFromType(t);-
854 if (en.isValid()
en.isValid()Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
) {
2-17
855 QByteArray keys = (
(d->type == QVariant::String)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QVariant
d->type == QVariant::String)
(d->type == QVariant::String)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QVariant
? v_cast<QString>(d)->toUtf8() : *v_cast<QByteArray>(d);
7-10
856 int value = en.keysToValue(keys.constData(), ok);-
857 if (*
*okDescription
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
ok
*okDescription
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
) {
0-17
858 switch (QMetaType::sizeOf(t)) {-
859 case
executed 2 times by 1 test: case 1:
Executed by:
  • tst_QVariant
1:
executed 2 times by 1 test: case 1:
Executed by:
  • tst_QVariant
2
860 *static_cast<signed char *>(result) = value;-
861 return
executed 2 times by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_QVariant
2
862 case
executed 2 times by 1 test: case 2:
Executed by:
  • tst_QVariant
2:
executed 2 times by 1 test: case 2:
Executed by:
  • tst_QVariant
2
863 *static_cast<qint16 *>(result) = value;-
864 return
executed 2 times by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_QVariant
2
865 case
executed 4 times by 1 test: case 4:
Executed by:
  • tst_QVariant
4:
executed 4 times by 1 test: case 4:
Executed by:
  • tst_QVariant
4
866 *static_cast<qint32 *>(result) = value;-
867 return
executed 4 times by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 4 times by 1 test: return true;
Executed by:
  • tst_QVariant
4
868 case
executed 9 times by 1 test: case 8:
Executed by:
  • tst_QVariant
8:
executed 9 times by 1 test: case 8:
Executed by:
  • tst_QVariant
9
869 *static_cast<qint64 *>(result) = value;-
870 return
executed 9 times by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 9 times by 1 test: return true;
Executed by:
  • tst_QVariant
9
871 }-
872 }
never executed: end of block
0
873 }
never executed: end of block
0
874 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QVariant
2
875-
876 if (QMetaType::typeFlags(t) & QMetaType::IsEnumeration
QMetaType::typ...:IsEnumerationDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 270850 times by 98 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QErrorMessage
  • ...
) {
40-270850
877 qlonglong value = qConvertToNumber(d, ok);-
878 if (*
*okDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
ok
*okDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
) {
0-40
879 switch (QMetaType::sizeOf(t)) {-
880 case
executed 4 times by 1 test: case 1:
Executed by:
  • tst_QVariant
1:
executed 4 times by 1 test: case 1:
Executed by:
  • tst_QVariant
4
881 *static_cast<signed char *>(result) = value;-
882 return
executed 4 times by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 4 times by 1 test: return true;
Executed by:
  • tst_QVariant
4
883 case
executed 4 times by 1 test: case 2:
Executed by:
  • tst_QVariant
2:
executed 4 times by 1 test: case 2:
Executed by:
  • tst_QVariant
4
884 *static_cast<qint16 *>(result) = value;-
885 return
executed 4 times by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 4 times by 1 test: return true;
Executed by:
  • tst_QVariant
4
886 case
executed 12 times by 1 test: case 4:
Executed by:
  • tst_QVariant
4:
executed 12 times by 1 test: case 4:
Executed by:
  • tst_QVariant
12
887 *static_cast<qint32 *>(result) = value;-
888 return
executed 12 times by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 12 times by 1 test: return true;
Executed by:
  • tst_QVariant
12
889 case
executed 20 times by 1 test: case 8:
Executed by:
  • tst_QVariant
8:
executed 20 times by 1 test: case 8:
Executed by:
  • tst_QVariant
20
890 *static_cast<qint64 *>(result) = value;-
891 return
executed 20 times by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 20 times by 1 test: return true;
Executed by:
  • tst_QVariant
20
892 }-
893 }
never executed: end of block
0
894 return
never executed: return *ok;
*ok;
never executed: return *ok;
0
895 }-
896 return
executed 270850 times by 98 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QErrorMessage
  • ...
false;
executed 270850 times by 98 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QErrorMessage
  • ...
270850
897 }-
898 return
executed 36032 times by 82 tests: return true;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
true;
executed 36032 times by 82 tests: return true;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
36032
899}-
900-
901-
902static void streamDebug(QDebug dbg, const QVariant &v)-
903{-
904 QVariant::Private *d = const_cast<QVariant::Private *>(&v.data_ptr());-
905 QVariantDebugStream<CoreTypesFilter> stream(dbg, d);-
906 QMetaTypeSwitcher::switcher<void>(stream, d->type, 0);-
907}
executed 51 times by 2 tests: end of block
Executed by:
  • tst_QDBusInterface
  • tst_QVariant
51
908-
909-
910const QVariant::Handler qt_kernel_variant_handler = {-
911 construct,-
912 clear,-
913 isNull,-
914-
915 0,-
916 0,-
917-
918 compare,-
919 convert,-
920 0,-
921-
922 streamDebug-
923-
924-
925-
926};-
927-
928static void dummyConstruct(QVariant::Private *, const void *) { ((!(false)) ? qt_assert_x("QVariant", "Trying to construct an unknown type",__FILE__,1000) : qt_noop()); }
never executed: end of block
0
929static void dummyClear(QVariant::Private *) { ((!(false)) ? qt_assert_x("QVariant", "Trying to clear an unknown type",__FILE__,1001) : qt_noop()); }
never executed: end of block
0
930static bool dummyIsNull(const QVariant::Private *d) { ((!(false)) ? qt_assert_x("QVariant::isNull", "Trying to call isNull on an unknown type",__FILE__,1002) : qt_noop()); return
never executed: return d->is_null;
d->is_null;
never executed: return d->is_null;
}
0
931static bool dummyCompare(const QVariant::Private *, const QVariant::Private *) { ((!(false)) ? qt_assert_x("QVariant", "Trying to compare an unknown types",__FILE__,1003) : qt_noop()); return
never executed: return false;
false;
never executed: return false;
}
0
932static bool dummyConvert(const QVariant::Private *, int, void *, bool *) { ((!(false)) ? qt_assert_x("QVariant", "Trying to convert an unknown type",__FILE__,1004) : qt_noop()); return
never executed: return false;
false;
never executed: return false;
}
0
933-
934static void dummyStreamDebug(QDebug, const QVariant &) { ((!(false)) ? qt_assert_x("QVariant", "Trying to convert an unknown type",__FILE__,1006) : qt_noop()); }
never executed: end of block
0
935-
936const QVariant::Handler qt_dummy_variant_handler = {-
937 dummyConstruct,-
938 dummyClear,-
939 dummyIsNull,-
940-
941 0,-
942 0,-
943-
944 dummyCompare,-
945 dummyConvert,-
946 0,-
947-
948 dummyStreamDebug-
949-
950-
951-
952};-
953-
954static void customConstruct(QVariant::Private *d, const void *copy)-
955{-
956 const QMetaType type(d->type);-
957 const uint size = type.sizeOf();-
958 if (!size
!sizeDescription
TRUEevaluated 18 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEevaluated 108664 times by 214 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
) {
18-108664
959 QMessageLogger(__FILE__, 1031, __PRETTY_FUNCTION__).warning("Trying to construct an instance of an invalid type, type id: %i", d->type);-
960 d->type = QVariant::Invalid;-
961 return;
executed 18 times by 3 tests: return;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
18
962 }-
963-
964-
965 if (size <= sizeof(QVariant::Private::Data)
size <= sizeof...Private::Data)Description
TRUEevaluated 104997 times by 123 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • ...
FALSEevaluated 3667 times by 172 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
3667-104997
966 && (type.flags() & (QMetaType::MovableType | QMetaType::IsEnumeration))) {-
967 type.construct(&d->data.ptr, copy);-
968 d->is_shared = false;-
969 }
executed 104620 times by 121 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
else {
104620
970 void *ptr = type.create(copy);-
971 d->is_shared = true;-
972 d->data.shared = new QVariant::PrivateShared(ptr);-
973 }
executed 4044 times by 174 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
4044
974}-
975-
976static void customClear(QVariant::Private *d)-
977{-
978 if (!d->is_shared
!d->is_sharedDescription
TRUEevaluated 146819 times by 144 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
FALSEevaluated 4040 times by 176 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
) {
4040-146819
979 QMetaType::destruct(d->type, &d->data.ptr);-
980 }
executed 146819 times by 144 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
else {
146819
981 QMetaType::destroy(d->type, d->data.shared->ptr);-
982 delete d->data.shared;-
983 }
executed 4040 times by 176 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
4040
984}-
985-
986static bool customIsNull(const QVariant::Private *d)-
987{-
988 return
executed 362 times by 8 tests: return d->is_null;
Executed by:
  • tst_QAbstractProxyModel
  • tst_QMetaProperty
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
d->is_null;
executed 362 times by 8 tests: return d->is_null;
Executed by:
  • tst_QAbstractProxyModel
  • tst_QMetaProperty
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
362
989}-
990-
991static bool customCompare(const QVariant::Private *a, const QVariant::Private *b)-
992{-
993 const char *const typeName = QMetaType::typeName(a->type);-
994 if (__builtin_expect(!!(!typeName), false)
__builtin_expe...eName), false)Description
TRUEnever evaluated
FALSEevaluated 345 times by 23 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
&& __builtin_expect(!!(!QMetaType::isRegistered(a->type)), true)
__builtin_expe...>type)), true)Description
TRUEnever evaluated
FALSEnever evaluated
)
0-345
995 QMessageLogger(__FILE__, 1067, __PRETTY_FUNCTION__).fatal("QVariant::compare: type %d unknown to QVariant.", a->type);
never executed: QMessageLogger(__FILE__, 1067, __PRETTY_FUNCTION__).fatal("QVariant::compare: type %d unknown to QVariant.", a->type);
0
996-
997 const void *a_ptr = a->is_shared
a->is_sharedDescription
TRUEevaluated 37 times by 4 tests
Evaluated by:
  • tst_QFtp
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 308 times by 20 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QIdentityProxyModel
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
? a->data.shared->ptr : &(a->data.ptr);
37-308
998 const void *b_ptr = b->is_shared
b->is_sharedDescription
TRUEevaluated 37 times by 4 tests
Evaluated by:
  • tst_QFtp
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 308 times by 20 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QIdentityProxyModel
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
? b->data.shared->ptr : &(b->data.ptr);
37-308
999-
1000 uint typeNameLen = qstrlen(typeName);-
1001 if (typeNameLen > 0
typeNameLen > 0Description
TRUEevaluated 345 times by 23 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
&& typeName[typeNameLen - 1] == '*'
typeName[typeN...en - 1] == '*'Description
TRUEevaluated 19 times by 3 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QStyleSheetStyle
  • tst_QVariant
FALSEevaluated 326 times by 21 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
)
0-345
1002 return
executed 19 times by 3 tests: return *static_cast<void *const *>(a_ptr) == *static_cast<void *const *>(b_ptr);
Executed by:
  • tst_QAbstractProxyModel
  • tst_QStyleSheetStyle
  • tst_QVariant
*static_cast<void *const *>(a_ptr) == *static_cast<void *const *>(b_ptr);
executed 19 times by 3 tests: return *static_cast<void *const *>(a_ptr) == *static_cast<void *const *>(b_ptr);
Executed by:
  • tst_QAbstractProxyModel
  • tst_QStyleSheetStyle
  • tst_QVariant
19
1003-
1004 if (a->is_null
a->is_nullDescription
TRUEnever evaluated
FALSEevaluated 326 times by 21 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
&& b->is_null
b->is_nullDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-326
1005 return
never executed: return true;
true;
never executed: return true;
0
1006-
1007 return
executed 326 times by 21 tests: return !memcmp(a_ptr, b_ptr, QMetaType::sizeOf(a->type));
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
!memcmp(a_ptr, b_ptr, QMetaType::sizeOf(a->type));
executed 326 times by 21 tests: return !memcmp(a_ptr, b_ptr, QMetaType::sizeOf(a->type));
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
326
1008}-
1009-
1010static bool customConvert(const QVariant::Private *d, int t, void *result, bool *ok)-
1011{-
1012 if (d->type >= QMetaType::User
d->type >= QMetaType::UserDescription
TRUEevaluated 482 times by 6 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
FALSEevaluated 257 times by 22 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QGraphicsItem
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
|| t >= QMetaType::User
t >= QMetaType::UserDescription
TRUEevaluated 257 times by 22 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QGraphicsItem
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
) {
0-482
1013 if (QMetaType::convert(constData(*d), d->type, result, t)
QMetaType::con...pe, result, t)Description
TRUEevaluated 103 times by 3 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 636 times by 24 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
) {
103-636
1014 if (ok
okDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QVariant
FALSEevaluated 100 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
)
3-100
1015 *
executed 3 times by 2 tests: *ok = true;
Executed by:
  • tst_QMetaProperty
  • tst_QVariant
ok = true;
executed 3 times by 2 tests: *ok = true;
Executed by:
  • tst_QMetaProperty
  • tst_QVariant
3
1016 return
executed 103 times by 3 tests: return true;
Executed by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QVariant
true;
executed 103 times by 3 tests: return true;
Executed by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QVariant
103
1017 }-
1018 }
executed 636 times by 24 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
636
1019 return
executed 636 times by 24 tests: return convert(d, t, result, ok);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
convert(d, t, result, ok);
executed 636 times by 24 tests: return convert(d, t, result, ok);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
636
1020}-
1021-
1022-
1023static void customStreamDebug(QDebug dbg, const QVariant &variant) {-
1024-
1025 QMetaType::TypeFlags flags = QMetaType::typeFlags(variant.userType());-
1026 if (flags & QMetaType::PointerToQObject
flags & QMetaT...interToQObjectDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
)
1-3
1027 dbg.nospace() << variant.value<QObject*>();
executed 1 time by 1 test: dbg.nospace() << variant.value<QObject*>();
Executed by:
  • tst_QVariant
1
1028-
1029-
1030-
1031-
1032}
executed 4 times by 2 tests: end of block
Executed by:
  • tst_QMetaType
  • tst_QVariant
4
1033-
1034-
1035const QVariant::Handler qt_custom_variant_handler = {-
1036 customConstruct,-
1037 customClear,-
1038 customIsNull,-
1039-
1040 0,-
1041 0,-
1042-
1043 customCompare,-
1044 customConvert,-
1045 0,-
1046-
1047 customStreamDebug-
1048-
1049-
1050-
1051};-
1052-
1053}-
1054-
1055static HandlersManager handlerManager;-
1056static_assert(bool(!QModulesPrivate::Core), "Initialization assumes that ModulesNames::Core is 0");-
1057const QVariant::Handler *HandlersManager::Handlers[QModulesPrivate::ModulesCount]-
1058 = { &qt_kernel_variant_handler, &qt_dummy_variant_handler,-
1059 &qt_dummy_variant_handler, &qt_custom_variant_handler };-
1060-
1061__attribute__((visibility("default"))) const QVariant::Handler *qcoreVariantHandler()-
1062{-
1063 return
executed 238889 times by 60 tests: return &qt_kernel_variant_handler;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • ...
&qt_kernel_variant_handler;
executed 238889 times by 60 tests: return &qt_kernel_variant_handler;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • ...
238889
1064}-
1065-
1066__attribute__((visibility("default"))) void QVariantPrivate::registerHandler(const int name, const QVariant::Handler *handler)-
1067{-
1068 handlerManager.registerHandler(static_cast<QModulesPrivate::Names>(name), handler);-
1069}
executed 250 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
250
1070void QVariant::create(int type, const void *copy)-
1071{-
1072 d.type = type;-
1073 handlerManager[type]->construct(&d, copy);-
1074}
executed 3555767 times by 249 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • ...
3555767
1075QVariant::~QVariant()-
1076{-
1077 if ((d.is_shared
d.is_sharedDescription
TRUEevaluated 6933990 times by 210 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 27355757 times by 491 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • ...
&& !d.data.shared->ref.deref()
!d.data.shared->ref.deref()Description
TRUEevaluated 3439999 times by 209 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 3493991 times by 179 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
) || (!d.is_shared
!d.is_sharedDescription
TRUEevaluated 27355757 times by 491 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • ...
FALSEevaluated 3493991 times by 179 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
&& d.type > Char
d.type > CharDescription
TRUEevaluated 12295040 times by 436 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
FALSEevaluated 15060717 times by 425 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • ...
))
3439999-27355757
1078 handlerManager[d.type]->clear(&d);
executed 15735039 times by 445 tests: handlerManager[d.type]->clear(&d);
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
15735039
1079}
executed 34289747 times by 494 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • ...
34289747
1080QVariant::QVariant(const QVariant &p)-
1081 : d(p.d)-
1082{-
1083 if (d.is_shared
d.is_sharedDescription
TRUEevaluated 3492182 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 9311348 times by 408 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
) {
3492182-9311348
1084 d.data.shared->ref.ref();-
1085 }
executed 3492182 times by 177 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
else if (p.d.type > Char
p.d.type > CharDescription
TRUEevaluated 8074240 times by 391 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
FALSEevaluated 1237108 times by 242 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
) {
1237108-8074240
1086 handlerManager[d.type]->construct(&d, p.constData());-
1087 d.is_null = p.d.is_null;-
1088 }
executed 8074240 times by 391 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
8074240
1089}
executed 12803530 times by 411 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
12803530
1090-
1091-
1092-
1093-
1094-
1095QVariant::QVariant(QDataStream &s)-
1096{-
1097 d.is_null = true;-
1098 s >> *this;-
1099}
never executed: end of block
0
1100QVariant::QVariant(const char *val)-
1101{-
1102 QString s = QString::fromUtf8(val);-
1103 create(String, &s);-
1104}
executed 10691 times by 46 tests: end of block
Executed by:
  • tst_Compiler
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
10691
1105QVariant::QVariant(Type type)-
1106{ create(type, 0); }
executed 8082 times by 17 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiVariant
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlField
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRecord
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
8082
1107QVariant::QVariant(int typeId, const void *copy)-
1108{ create(typeId, copy); d.is_null = false; }
executed 3501271 times by 228 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
3501271
1109-
1110-
1111-
1112-
1113-
1114QVariant::QVariant(int typeId, const void *copy, uint flags)-
1115{-
1116 if (flags
flagsDescription
TRUEevaluated 42239 times by 30 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractProxyModel
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QMetaProperty
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 18638 times by 195 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • ...
) {
18638-42239
1117 d.type = typeId;-
1118 d.data.ptr = *reinterpret_cast<void *const*>(copy);-
1119 }
executed 42239 times by 30 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractProxyModel
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QMetaProperty
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • ...
else {
42239
1120 create(typeId, copy);-
1121 }
executed 18638 times by 195 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • ...
18638
1122 d.is_null = false;-
1123}
executed 60877 times by 199 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
60877
1124-
1125QVariant::QVariant(int val)-
1126 : d(Int)-
1127{ d.data.i = val; }
executed 653435 times by 221 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
653435
1128QVariant::QVariant(uint val)-
1129 : d(UInt)-
1130{ d.data.u = val; }
executed 3344 times by 53 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusServiceWatcher
  • tst_QDialog
  • tst_QFtp
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • ...
3344
1131QVariant::QVariant(qlonglong val)-
1132 : d(LongLong)-
1133{ d.data.ll = val; }
executed 40329 times by 23 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusmarshall - unknown status
40329
1134QVariant::QVariant(qulonglong val)-
1135 : d(ULongLong)-
1136{ d.data.ull = val; }
executed 87 times by 24 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDockWidget
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QString
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusmarshall - unknown status
87
1137QVariant::QVariant(bool val)-
1138 : d(Bool)-
1139{ d.data.b = val; }
executed 147247 times by 175 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
147247
1140QVariant::QVariant(double val)-
1141 : d(Double)-
1142{ d.data.d = val; }
executed 73155 times by 75 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
73155
1143QVariant::QVariant(float val)-
1144 : d(QMetaType::Float)-
1145{ d.data.f = val; }
executed 158 times by 16 tests: end of block
Executed by:
  • tst_QBrush
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPainter
  • tst_QPixmap
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QVariant
158
1146-
1147QVariant::QVariant(const QByteArray &val)-
1148 : d(ByteArray)-
1149{ v_construct<QByteArray>(&d, val); }
executed 894 times by 37 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QApplication
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QListWidget
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStandardItemModel
  • tst_QTableWidget
  • ...
894
1150QVariant::QVariant(const QBitArray &val)-
1151 : d(BitArray)-
1152{ v_construct<QBitArray>(&d, val); }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QVariant
6
1153QVariant::QVariant(const QString &val)-
1154 : d(String)-
1155{ v_construct<QString>(&d, val); }
executed 3990181 times by 379 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
3990181
1156QVariant::QVariant(QChar val)-
1157 : d(Char)-
1158{ v_construct<QChar>(&d, val); }
executed 5772 times by 66 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • ...
5772
1159QVariant::QVariant(QLatin1String val)-
1160 : d(String)-
1161{ v_construct<QString>(&d, val); }
executed 882 times by 35 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QListView
  • tst_QMetaProperty
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSettings
  • ...
882
1162QVariant::QVariant(const QStringList &val)-
1163 : d(StringList)-
1164{ v_construct<QStringList>(&d, val); }
executed 919 times by 59 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
919
1165-
1166QVariant::QVariant(const QDate &val)-
1167 : d(Date)-
1168{ v_construct<QDate>(&d, val); }
executed 166 times by 9 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QVariant
166
1169QVariant::QVariant(const QTime &val)-
1170 : d(Time)-
1171{ v_construct<QTime>(&d, val); }
executed 66 times by 7 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QSettings
  • tst_QTime
  • tst_QVariant
66
1172QVariant::QVariant(const QDateTime &val)-
1173 : d(DateTime)-
1174{ v_construct<QDateTime>(&d, val); }
executed 25061 times by 21 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
25061
1175-
1176QVariant::QVariant(const QEasingCurve &val)-
1177 : d(EasingCurve)-
1178{ v_construct<QEasingCurve>(&d, val); }
executed 3 times by 2 tests: end of block
Executed by:
  • tst_QScroller
  • tst_QVariant
3
1179-
1180QVariant::QVariant(const QList<QVariant> &list)-
1181 : d(List)-
1182{ v_construct<QVariantList>(&d, list); }
executed 182 times by 19 tests: end of block
Executed by:
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QMetaType
  • tst_QMimeData
  • tst_QPrinter
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextTable
  • tst_QVariant
182
1183QVariant::QVariant(const QMap<QString, QVariant> &map)-
1184 : d(Map)-
1185{ v_construct<QVariantMap>(&d, map); }
executed 29 times by 4 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QVariant
29
1186QVariant::QVariant(const QHash<QString, QVariant> &hash)-
1187 : d(Hash)-
1188{ v_construct<QVariantHash>(&d, hash); }
executed 14 times by 1 test: end of block
Executed by:
  • tst_QVariant
14
1189-
1190QVariant::QVariant(const QPoint &pt)-
1191 : d(Point)-
1192{ v_construct<QPoint>(&d, pt); }
executed 50 times by 5 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
50
1193QVariant::QVariant(const QPointF &pt)-
1194 : d(PointF)-
1195{ v_construct<QPointF>(&d, pt); }
executed 67 times by 7 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsWidget
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
67
1196QVariant::QVariant(const QRectF &r)-
1197 : d(RectF)-
1198{ v_construct<QRectF>(&d, r); }
executed 26 times by 7 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QGraphicsView
  • tst_QMetaType
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QVariant
  • tst_qinputmethod
26
1199QVariant::QVariant(const QLineF &l)-
1200 : d(LineF)-
1201{ v_construct<QLineF>(&d, l); }
executed 8 times by 3 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QMetaType
  • tst_QVariant
8
1202QVariant::QVariant(const QLine &l)-
1203 : d(Line)-
1204{ v_construct<QLine>(&d, l); }
executed 8 times by 3 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QMetaType
  • tst_QVariant
8
1205QVariant::QVariant(const QRect &r)-
1206 : d(Rect)-
1207{ v_construct<QRect>(&d, r); }
executed 5350 times by 23 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QDBusMarshall
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaType
  • tst_QPrinter
  • tst_QScrollArea
  • tst_QSettings
  • tst_QShortcut
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QVariant
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
5350
1208QVariant::QVariant(const QSize &s)-
1209 : d(Size)-
1210{ v_construct<QSize>(&d, s); }
executed 1215 times by 16 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QIcoImageFormat
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QListView
  • tst_QMetaType
  • tst_QPixmap
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QVariant
1215
1211QVariant::QVariant(const QSizeF &s)-
1212 : d(SizeF)-
1213{ v_construct<QSizeF>(&d, s); }
executed 38 times by 4 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QGraphicsWidget
  • tst_QMetaType
  • tst_QVariant
38
1214-
1215-
1216QVariant::QVariant(const QUrl &u)-
1217 : d(Url)-
1218{ v_construct<QUrl>(&d, u); }
executed 5485 times by 10 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMimeData
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QVariant
  • tst_languageChange
5485
1219-
1220QVariant::QVariant(const QLocale &l)-
1221 : d(Locale)-
1222{ v_construct<QLocale>(&d, l); }
executed 3 times by 2 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QVariant
3
1223-
1224QVariant::QVariant(const QRegExp &regExp)-
1225 : d(RegExp)-
1226{ v_construct<QRegExp>(&d, regExp); }
executed 46 times by 2 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QVariant
46
1227-
1228-
1229-
1230QVariant::QVariant(const QRegularExpression &re)-
1231 : d(RegularExpression)-
1232{ v_construct<QRegularExpression>(&d, re); }
executed 104 times by 4 tests: end of block
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
104
1233-
1234QVariant::QVariant(const QUuid &uuid)-
1235 : d(Uuid)-
1236{ v_construct<QUuid>(&d, uuid); }
executed 5 times by 1 test: end of block
Executed by:
  • tst_QVariant
5
1237QVariant::QVariant(const QModelIndex &modelIndex)-
1238 : d(ModelIndex)-
1239{ v_construct<QModelIndex>(&d, modelIndex); }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QVariant
2
1240QVariant::QVariant(const QPersistentModelIndex &modelIndex)-
1241 : d(PersistentModelIndex)-
1242{ v_construct<QPersistentModelIndex>(&d, modelIndex); }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QVariant
1
1243QVariant::QVariant(const QJsonValue &jsonValue)-
1244 : d(QMetaType::QJsonValue)-
1245{ v_construct<QJsonValue>(&d, jsonValue); }
executed 17 times by 1 test: end of block
Executed by:
  • tst_QVariant
17
1246QVariant::QVariant(const QJsonObject &jsonObject)-
1247 : d(QMetaType::QJsonObject)-
1248{ v_construct<QJsonObject>(&d, jsonObject); }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QVariant
1
1249QVariant::QVariant(const QJsonArray &jsonArray)-
1250 : d(QMetaType::QJsonArray)-
1251{ v_construct<QJsonArray>(&d, jsonArray); }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QVariant
1
1252QVariant::QVariant(const QJsonDocument &jsonDocument)-
1253 : d(QMetaType::QJsonDocument)-
1254{ v_construct<QJsonDocument>(&d, jsonDocument); }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QVariant
1
1255QVariant::Type QVariant::type() const-
1256{-
1257 return
executed 332149 times by 161 tests: return d.type >= QMetaType::User ? UserType : static_cast<Type>(d.type);
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_PlatformSocketEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • ...
d.type >= QMetaType::User
d.type >= QMetaType::UserDescription
TRUEevaluated 138 times by 10 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QVariant
  • tst_qdbusinterface - unknown status
FALSEevaluated 332011 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_PlatformSocketEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • ...
? UserType : static_cast<Type>(d.type);
executed 332149 times by 161 tests: return d.type >= QMetaType::User ? UserType : static_cast<Type>(d.type);
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_PlatformSocketEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • ...
138-332149
1258}-
1259int QVariant::userType() const-
1260{-
1261 return
executed 4474633 times by 232 tests: return d.type;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
d.type;
executed 4474633 times by 232 tests: return d.type;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
4474633
1262}-
1263-
1264-
1265-
1266-
1267QVariant& QVariant::operator=(const QVariant &variant)-
1268{-
1269 if (this == &variant
this == &variantDescription
TRUEevaluated 306 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyleSheetStyle
FALSEevaluated 363636 times by 211 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
)
306-363636
1270 return
executed 306 times by 10 tests: return *this;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyleSheetStyle
*this;
executed 306 times by 10 tests: return *this;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyleSheetStyle
306
1271-
1272 clear();-
1273 if (variant.d.is_shared
variant.d.is_sharedDescription
TRUEevaluated 1971 times by 38 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusReply
  • tst_QDockWidget
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QPropertyAnimation
  • ...
FALSEevaluated 361665 times by 207 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
) {
1971-361665
1274 variant.d.data.shared->ref.ref();-
1275 d = variant.d;-
1276 }
executed 1971 times by 38 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusReply
  • tst_QDockWidget
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QPropertyAnimation
  • ...
else if (variant.d.type > Char
variant.d.type > CharDescription
TRUEevaluated 191274 times by 114 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 170391 times by 188 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
) {
1971-191274
1277 d.type = variant.d.type;-
1278 handlerManager[d.type]->construct(&d, variant.constData());-
1279 d.is_null = variant.d.is_null;-
1280 }
executed 191274 times by 114 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • ...
else {
191274
1281 d = variant.d;-
1282 }
executed 170391 times by 188 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
170391
1283-
1284 return
executed 363636 times by 211 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
*this;
executed 363636 times by 211 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
363636
1285}-
1286void QVariant::detach()-
1287{-
1288 if (!d.is_shared
!d.is_sharedDescription
TRUEevaluated 38330 times by 162 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • ...
FALSEevaluated 5414 times by 32 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusReply
  • tst_QDockWidget
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QMainWindow
  • tst_QMatrixNxN
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPrinter
  • tst_QQuaternion
  • tst_QShortcut
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • ...
|| d.data.shared->ref.load() == 1
d.data.shared->ref.load() == 1Description
TRUEevaluated 5389 times by 32 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusReply
  • tst_QDockWidget
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QMainWindow
  • tst_QMatrixNxN
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPrinter
  • tst_QQuaternion
  • tst_QShortcut
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • ...
FALSEevaluated 25 times by 7 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QGraphicsObject
  • tst_QMatrixNxN
  • tst_QQuaternion
  • tst_QVariant
  • tst_QVectorND
  • tst_qdbusabstractinterface - unknown status
)
25-38330
1289 return;
executed 43719 times by 164 tests: return;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • ...
43719
1290-
1291 Private dd;-
1292 dd.type = d.type;-
1293 handlerManager[d.type]->construct(&dd, constData());-
1294 if (!d.data.shared->ref.deref()
!d.data.shared->ref.deref()Description
TRUEnever evaluated
FALSEevaluated 25 times by 7 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QGraphicsObject
  • tst_QMatrixNxN
  • tst_QQuaternion
  • tst_QVariant
  • tst_QVectorND
  • tst_qdbusabstractinterface - unknown status
)
0-25
1295 handlerManager[d.type]->clear(&d);
never executed: handlerManager[d.type]->clear(&d);
0
1296 d.data.shared = dd.data.shared;-
1297}
executed 25 times by 7 tests: end of block
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QGraphicsObject
  • tst_QMatrixNxN
  • tst_QQuaternion
  • tst_QVariant
  • tst_QVectorND
  • tst_qdbusabstractinterface - unknown status
25
1298const char *QVariant::typeName() const-
1299{-
1300 return
executed 5751 times by 46 tests: return QMetaType::typeName(d.type);
Executed by:
  • tst_QAbstractProxyModel
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QMetaProperty
  • tst_QMetaType
  • ...
QMetaType::typeName(d.type);
executed 5751 times by 46 tests: return QMetaType::typeName(d.type);
Executed by:
  • tst_QAbstractProxyModel
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QMetaProperty
  • tst_QMetaType
  • ...
5751
1301}-
1302-
1303-
1304-
1305-
1306-
1307void QVariant::clear()-
1308{-
1309 if ((d.is_shared
d.is_sharedDescription
TRUEevaluated 175 times by 13 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QPropertyAnimation
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 391156 times by 218 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
&& !d.data.shared->ref.deref()
!d.data.shared->ref.deref()Description
TRUEevaluated 48 times by 9 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QPropertyAnimation
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QVariant
FALSEevaluated 127 times by 7 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QPropertyAnimation
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
) || (!d.is_shared
!d.is_sharedDescription
TRUEevaluated 391156 times by 218 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 127 times by 7 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QPropertyAnimation
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
&& d.type > Char
d.type > CharDescription
TRUEevaluated 132659 times by 85 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • ...
FALSEevaluated 258497 times by 212 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
))
48-391156
1310 handlerManager[d.type]->clear(&d);
executed 132707 times by 86 tests: handlerManager[d.type]->clear(&d);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • ...
132707
1311 d.type = Invalid;-
1312 d.is_null = true;-
1313 d.is_shared = false;-
1314}
executed 391331 times by 218 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
391331
1315-
1316-
1317-
1318-
1319-
1320-
1321-
1322const char *QVariant::typeToName(int typeId)-
1323{-
1324 return
executed 408 times by 2 tests: return QMetaType::typeName(typeId);
Executed by:
  • tst_QVariant
  • tst_qdbusxml2cpp - unknown status
QMetaType::typeName(typeId);
executed 408 times by 2 tests: return QMetaType::typeName(typeId);
Executed by:
  • tst_QVariant
  • tst_qdbusxml2cpp - unknown status
408
1325}-
1326QVariant::Type QVariant::nameToType(const char *name)-
1327{-
1328 int metaType = QMetaType::type(name);-
1329 return
executed 81 times by 1 test: return metaType <= int(UserType) ? QVariant::Type(metaType) : UserType;
Executed by:
  • tst_QVariant
metaType <= int(UserType)
metaType <= int(UserType)Description
TRUEevaluated 81 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
? QVariant::Type(metaType) : UserType;
executed 81 times by 1 test: return metaType <= int(UserType) ? QVariant::Type(metaType) : UserType;
Executed by:
  • tst_QVariant
0-81
1330}-
1331-
1332-
1333enum { MapFromThreeCount = 36 };-
1334static const ushort mapIdFromQt3ToCurrent[MapFromThreeCount] =-
1335{-
1336 QVariant::Invalid,-
1337 QVariant::Map,-
1338 QVariant::List,-
1339 QVariant::String,-
1340 QVariant::StringList,-
1341 QVariant::Font,-
1342 QVariant::Pixmap,-
1343 QVariant::Brush,-
1344 QVariant::Rect,-
1345 QVariant::Size,-
1346 QVariant::Color,-
1347 QVariant::Palette,-
1348 0,-
1349 QVariant::Icon,-
1350 QVariant::Point,-
1351 QVariant::Image,-
1352 QVariant::Int,-
1353 QVariant::UInt,-
1354 QVariant::Bool,-
1355 QVariant::Double,-
1356 0,-
1357 QVariant::Polygon,-
1358 QVariant::Region,-
1359 QVariant::Bitmap,-
1360 QVariant::Cursor,-
1361 QVariant::SizePolicy,-
1362 QVariant::Date,-
1363 QVariant::Time,-
1364 QVariant::DateTime,-
1365 QVariant::ByteArray,-
1366 QVariant::BitArray,-
1367 QVariant::KeySequence,-
1368 QVariant::Pen,-
1369 QVariant::LongLong,-
1370 QVariant::ULongLong,-
1371 QVariant::EasingCurve-
1372};-
1373-
1374-
1375-
1376-
1377-
1378-
1379-
1380void QVariant::load(QDataStream &s)-
1381{-
1382 clear();-
1383-
1384 quint32 typeId;-
1385 s >> typeId;-
1386 if (s.version() < QDataStream::Qt_4_0
s.version() < ...Stream::Qt_4_0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 16322 times by 15 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
) {
1-16322
1387 if (typeId >= MapFromThreeCount
typeId >= MapFromThreeCountDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
)
0-1
1388 return;
never executed: return;
0
1389 typeId = mapIdFromQt3ToCurrent[typeId];-
1390 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QVariant
else if (s.version() < QDataStream::Qt_5_0
s.version() < ...Stream::Qt_5_0Description
TRUEevaluated 407 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QSettings
  • tst_QVariant
FALSEevaluated 15915 times by 15 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
) {
1-15915
1391 if (typeId == 127
typeId == 127Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 406 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
) {
1-406
1392 typeId = QMetaType::User;-
1393 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QGuiVariant
else if (typeId >= 128
typeId >= 128Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 390 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
&& typeId != QVariant::UserType
typeId != QVariant::UserTypeDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
) {
0-390
1394-
1395-
1396 typeId -= 97;-
1397 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_QVariant
else if (typeId == 75
typeId == 75Description
TRUEnever evaluated
FALSEevaluated 390 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
) {
0-390
1398 typeId = QMetaType::QSizePolicy;-
1399 }
never executed: end of block
else if (typeId > 75
typeId > 75Description
TRUEnever evaluated
FALSEevaluated 390 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
&& typeId <= 86
typeId <= 86Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-390
1400-
1401-
1402 typeId -=1;-
1403 }
never executed: end of block
0
1404 }
executed 407 times by 3 tests: end of block
Executed by:
  • tst_QGuiVariant
  • tst_QSettings
  • tst_QVariant
407
1405-
1406 qint8 is_null = false;-
1407 if (s.version() >= QDataStream::Qt_4_2
s.version() >=...Stream::Qt_4_2Description
TRUEevaluated 15991 times by 15 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEevaluated 332 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
)
332-15991
1408 s >> is_null;
executed 15991 times by 15 tests: s >> is_null;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
15991
1409 if (typeId == QVariant::UserType
typeId == QVariant::UserTypeDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
FALSEevaluated 16319 times by 15 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
) {
4-16319
1410 QByteArray name;-
1411 s >> name;-
1412 typeId = QMetaType::type(name.constData());-
1413 if (typeId == QMetaType::UnknownType
typeId == QMet...e::UnknownTypeDescription
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
) {
0-4
1414 s.setStatus(QDataStream::ReadCorruptData);-
1415 return;
never executed: return;
0
1416 }-
1417 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
4
1418 create(typeId, 0);-
1419 d.is_null = is_null;-
1420-
1421 if (!isValid()
!isValid()Description
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 16310 times by 14 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
) {
13-16310
1422 if (s.version() < QDataStream::Qt_5_0
s.version() < ...Stream::Qt_5_0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
) {
3-10
1423-
1424 QString x;-
1425 s >> x;-
1426 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QVariant
3
1427 d.is_null = true;-
1428 return;
executed 13 times by 2 tests: return;
Executed by:
  • tst_QMetaType
  • tst_QVariant
13
1429 }-
1430-
1431-
1432 if (!QMetaType::load(s, d.type, const_cast<void *>(constData()))
!QMetaType::lo...(constData()))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 16309 times by 14 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
) {
1-16309
1433 s.setStatus(QDataStream::ReadCorruptData);-
1434 QMessageLogger(__FILE__, 2085, __PRETTY_FUNCTION__).warning("QVariant::load: unable to load type %d.", d.type);-
1435 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QVariant
1
1436}
executed 16310 times by 14 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
16310
1437-
1438-
1439-
1440-
1441-
1442-
1443-
1444void QVariant::save(QDataStream &s) const-
1445{-
1446 quint32 typeId = type();-
1447 bool fakeUserType = false;-
1448 if (s.version() < QDataStream::Qt_4_0
s.version() < ...Stream::Qt_4_0Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QDataStream
  • tst_QVariant
FALSEevaluated 16343 times by 16 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
) {
9-16343
1449 int i;-
1450 for (i = 0; i <= MapFromThreeCount - 1
i <= MapFromThreeCount - 1Description
TRUEevaluated 76 times by 2 tests
Evaluated by:
  • tst_QDataStream
  • tst_QVariant
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
; ++i) {
1-76
1451 if (mapIdFromQt3ToCurrent[i] == typeId
mapIdFromQt3To...t[i] == typeIdDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QDataStream
  • tst_QVariant
FALSEevaluated 68 times by 2 tests
Evaluated by:
  • tst_QDataStream
  • tst_QVariant
) {
8-68
1452 typeId = i;-
1453 break;
executed 8 times by 2 tests: break;
Executed by:
  • tst_QDataStream
  • tst_QVariant
8
1454 }-
1455 }
executed 68 times by 2 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QVariant
68
1456 if (i >= MapFromThreeCount
i >= MapFromThreeCountDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QDataStream
  • tst_QVariant
) {
1-8
1457 s << QVariant();-
1458 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QVariant
1
1459 }-
1460 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QVariant
else if (s.version() < QDataStream::Qt_5_0
s.version() < ...Stream::Qt_5_0Description
TRUEevaluated 427 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
FALSEevaluated 15916 times by 16 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
) {
8-15916
1461 if (typeId == QMetaType::User
typeId == QMetaType::UserDescription
TRUEnever evaluated
FALSEevaluated 427 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
) {
0-427
1462 typeId = 127;-
1463 }
never executed: end of block
else if (typeId >= 128 - 97
typeId >= 128 - 97Description
TRUEevaluated 59 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
FALSEevaluated 368 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
&& typeId <= LastCoreType
typeId <= LastCoreTypeDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 51 times by 1 test
Evaluated by:
  • tst_QSettings
) {
0-368
1464-
1465-
1466 typeId += 97;-
1467 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QVariant
else if (typeId == QMetaType::QSizePolicy
typeId == QMet...e::QSizePolicyDescription
TRUEnever evaluated
FALSEevaluated 419 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
) {
0-419
1468 typeId = 75;-
1469 }
never executed: end of block
else if (typeId >= QMetaType::QKeySequence
typeId >= QMet...::QKeySequenceDescription
TRUEnever evaluated
FALSEevaluated 419 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
&& typeId <= QMetaType::QQuaternion
typeId <= QMet...e::QQuaternionDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-419
1470-
1471 typeId +=1;-
1472 }
never executed: end of block
else if (typeId == QMetaType::QPolygonF
typeId == QMetaType::QPolygonFDescription
TRUEnever evaluated
FALSEevaluated 419 times by 2 tests
Evaluated by:
  • tst_QSettings
  • tst_QVariant
) {
0-419
1473-
1474 typeId = 127;-
1475 fakeUserType = true;-
1476 }
never executed: end of block
0
1477 }
executed 427 times by 2 tests: end of block
Executed by:
  • tst_QSettings
  • tst_QVariant
427
1478 s << typeId;-
1479 if (s.version() >= QDataStream::Qt_4_2
s.version() >=...Stream::Qt_4_2Description
TRUEevaluated 15958 times by 16 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEevaluated 393 times by 3 tests
Evaluated by:
  • tst_QDataStream
  • tst_QSettings
  • tst_QVariant
)
393-15958
1480 s << qint8(d.is_null);
executed 15958 times by 16 tests: s << qint8(d.is_null);
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
15958
1481 if (d.type >= QVariant::UserType
d.type >= QVariant::UserTypeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 16349 times by 16 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
|| fakeUserType
fakeUserTypeDescription
TRUEnever evaluated
FALSEevaluated 16349 times by 16 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
) {
0-16349
1482 s << QMetaType::typeName(userType());-
1483 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QVariant
2
1484-
1485 if (!isValid()
!isValid()Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 16333 times by 15 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
) {
18-16333
1486 if (s.version() < QDataStream::Qt_5_0
s.version() < ...Stream::Qt_5_0Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
)
5-13
1487 s << QString();
executed 13 times by 1 test: s << QString();
Executed by:
  • tst_QVariant
13
1488 return;
executed 18 times by 2 tests: return;
Executed by:
  • tst_QMetaType
  • tst_QVariant
18
1489 }-
1490-
1491 if (!QMetaType::save(s, d.type, constData())
!QMetaType::sa..., constData())Description
TRUEnever evaluated
FALSEevaluated 16333 times by 15 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
) {
0-16333
1492 QMessageLogger(__FILE__, 2143, __PRETTY_FUNCTION__).warning("QVariant::save: unable to save type '%s' (type id: %d).\n", QMetaType::typeName(d.type), d.type);-
1493 ((!(false)) ? qt_assert_x("QVariant::save", "Invalid type to save",__FILE__,2144) : qt_noop());-
1494 }
never executed: end of block
0
1495}
executed 16333 times by 15 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
16333
1496QDataStream& operator>>(QDataStream &s, QVariant &p)-
1497{-
1498 p.load(s);-
1499 return
executed 16321 times by 15 tests: return s;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
s;
executed 16321 times by 15 tests: return s;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
16321
1500}-
1501-
1502-
1503-
1504-
1505-
1506-
1507QDataStream& operator<<(QDataStream &s, const QVariant &p)-
1508{-
1509 p.save(s);-
1510 return
executed 16352 times by 16 tests: return s;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
s;
executed 16352 times by 16 tests: return s;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
16352
1511}-
1512-
1513-
1514-
1515-
1516QDataStream& operator>>(QDataStream &s, QVariant::Type &p)-
1517{-
1518 quint32 u;-
1519 s >> u;-
1520 p = (QVariant::Type)u;-
1521-
1522 return
never executed: return s;
s;
never executed: return s;
0
1523}-
1524-
1525-
1526-
1527-
1528QDataStream& operator<<(QDataStream &s, const QVariant::Type p)-
1529{-
1530 s << static_cast<quint32>(p);-
1531-
1532 return
never executed: return s;
s;
never executed: return s;
0
1533}-
1534template <typename T>-
1535inline T qVariantToHelper(const QVariant::Private &d, const HandlersManager &handlerManager)-
1536{-
1537 const uint targetType = qMetaTypeId<T>();-
1538 if (d.type == targetType
d.type == targetTypeDescription
TRUEevaluated 627340 times by 261 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
FALSEevaluated 78418 times by 84 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • ...
)
78418-627340
1539 return
executed 627340 times by 261 tests: return *v_cast<T>(&d);
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
*v_cast<T>(&d);
executed 627340 times by 261 tests: return *v_cast<T>(&d);
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
627340
1540-
1541 T ret;-
1542 if (d.type >= QMetaType::User
d.type >= QMetaType::UserDescription
TRUEevaluated 169 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 78249 times by 84 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • ...
|| targetType >= QMetaType::User
targetType >= QMetaType::UserDescription
TRUEnever evaluated
FALSEevaluated 78249 times by 84 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • ...
) {
0-78249
1543 const void * const from = constData(d);-
1544 if (QMetaType::convert(from, d.type, &ret, targetType)
QMetaType::con...t, targetType)Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 151 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
)
18-151
1545 return
executed 18 times by 2 tests: return ret;
Executed by:
  • tst_QMetaType
  • tst_QVariant
ret;
executed 18 times by 2 tests: return ret;
Executed by:
  • tst_QMetaType
  • tst_QVariant
18
1546 }
executed 151 times by 2 tests: end of block
Executed by:
  • tst_QMetaType
  • tst_QVariant
151
1547-
1548 handlerManager[d.type]->convert(&d, targetType, &ret, 0);-
1549 return
executed 78400 times by 84 tests: return ret;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • ...
ret;
executed 78400 times by 84 tests: return ret;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • ...
78400
1550}-
1551QStringList QVariant::toStringList() const-
1552{-
1553 return
executed 1046 times by 54 tests: return qVariantToHelper<QStringList>(d, handlerManager);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
qVariantToHelper<QStringList>(d, handlerManager);
executed 1046 times by 54 tests: return qVariantToHelper<QStringList>(d, handlerManager);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
1046
1554}-
1555QString QVariant::toString() const-
1556{-
1557 return
executed 539304 times by 257 tests: return qVariantToHelper<QString>(d, handlerManager);
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
qVariantToHelper<QString>(d, handlerManager);
executed 539304 times by 257 tests: return qVariantToHelper<QString>(d, handlerManager);
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
539304
1558}-
1559-
1560-
1561-
1562-
1563-
1564-
1565-
1566QVariantMap QVariant::toMap() const-
1567{-
1568 return
executed 7 times by 3 tests: return qVariantToHelper<QVariantMap>(d, handlerManager);
Executed by:
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QVariant
qVariantToHelper<QVariantMap>(d, handlerManager);
executed 7 times by 3 tests: return qVariantToHelper<QVariantMap>(d, handlerManager);
Executed by:
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QVariant
7
1569}-
1570-
1571-
1572-
1573-
1574-
1575-
1576-
1577QVariantHash QVariant::toHash() const-
1578{-
1579 return
executed 2 times by 1 test: return qVariantToHelper<QVariantHash>(d, handlerManager);
Executed by:
  • tst_QVariant
qVariantToHelper<QVariantHash>(d, handlerManager);
executed 2 times by 1 test: return qVariantToHelper<QVariantHash>(d, handlerManager);
Executed by:
  • tst_QVariant
2
1580}-
1581QDate QVariant::toDate() const-
1582{-
1583 return
executed 12853 times by 6 tests: return qVariantToHelper<QDate>(d, handlerManager);
Executed by:
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QStyleSheetStyle
  • tst_QVariant
qVariantToHelper<QDate>(d, handlerManager);
executed 12853 times by 6 tests: return qVariantToHelper<QDate>(d, handlerManager);
Executed by:
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QStyleSheetStyle
  • tst_QVariant
12853
1584}-
1585QTime QVariant::toTime() const-
1586{-
1587 return
executed 11023 times by 7 tests: return qVariantToHelper<QTime>(d, handlerManager);
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QVariant
qVariantToHelper<QTime>(d, handlerManager);
executed 11023 times by 7 tests: return qVariantToHelper<QTime>(d, handlerManager);
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QVariant
11023
1588}-
1589QDateTime QVariant::toDateTime() const-
1590{-
1591 return
executed 127841 times by 19 tests: return qVariantToHelper<QDateTime>(d, handlerManager);
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
qVariantToHelper<QDateTime>(d, handlerManager);
executed 127841 times by 19 tests: return qVariantToHelper<QDateTime>(d, handlerManager);
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
127841
1592}-
1593QEasingCurve QVariant::toEasingCurve() const-
1594{-
1595 return
executed 3 times by 2 tests: return qVariantToHelper<QEasingCurve>(d, handlerManager);
Executed by:
  • tst_QScroller
  • tst_QVariant
qVariantToHelper<QEasingCurve>(d, handlerManager);
executed 3 times by 2 tests: return qVariantToHelper<QEasingCurve>(d, handlerManager);
Executed by:
  • tst_QScroller
  • tst_QVariant
3
1596}-
1597QByteArray QVariant::toByteArray() const-
1598{-
1599 return
executed 1647 times by 53 tests: return qVariantToHelper<QByteArray>(d, handlerManager);
Executed by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QApplication
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMimeData
  • ...
qVariantToHelper<QByteArray>(d, handlerManager);
executed 1647 times by 53 tests: return qVariantToHelper<QByteArray>(d, handlerManager);
Executed by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QApplication
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMimeData
  • ...
1647
1600}-
1601QPoint QVariant::toPoint() const-
1602{-
1603 return
executed 34 times by 5 tests: return qVariantToHelper<QPoint>(d, handlerManager);
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
qVariantToHelper<QPoint>(d, handlerManager);
executed 34 times by 5 tests: return qVariantToHelper<QPoint>(d, handlerManager);
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
34
1604}-
1605QRect QVariant::toRect() const-
1606{-
1607 return
executed 129 times by 10 tests: return qVariantToHelper<QRect>(d, handlerManager);
Executed by:
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QScrollArea
  • tst_QSettings
  • tst_QTextEdit
  • tst_QVariant
  • tst_qinputmethod
qVariantToHelper<QRect>(d, handlerManager);
executed 129 times by 10 tests: return qVariantToHelper<QRect>(d, handlerManager);
Executed by:
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QScrollArea
  • tst_QSettings
  • tst_QTextEdit
  • tst_QVariant
  • tst_qinputmethod
129
1608}-
1609QSize QVariant::toSize() const-
1610{-
1611 return
executed 166 times by 10 tests: return qVariantToHelper<QSize>(d, handlerManager);
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QPrinter
  • tst_QSettings
  • tst_QToolBar
  • tst_QVariant
qVariantToHelper<QSize>(d, handlerManager);
executed 166 times by 10 tests: return qVariantToHelper<QSize>(d, handlerManager);
Executed by:
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QPrinter
  • tst_QSettings
  • tst_QToolBar
  • tst_QVariant
166
1612}-
1613QSizeF QVariant::toSizeF() const-
1614{-
1615 return
executed 92 times by 3 tests: return qVariantToHelper<QSizeF>(d, handlerManager);
Executed by:
  • tst_QGraphicsWidget
  • tst_QMetaType
  • tst_QVariant
qVariantToHelper<QSizeF>(d, handlerManager);
executed 92 times by 3 tests: return qVariantToHelper<QSizeF>(d, handlerManager);
Executed by:
  • tst_QGraphicsWidget
  • tst_QMetaType
  • tst_QVariant
92
1616}-
1617QRectF QVariant::toRectF() const-
1618{-
1619 return
executed 22 times by 7 tests: return qVariantToHelper<QRectF>(d, handlerManager);
Executed by:
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QMetaType
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QVariant
  • tst_qinputmethod
qVariantToHelper<QRectF>(d, handlerManager);
executed 22 times by 7 tests: return qVariantToHelper<QRectF>(d, handlerManager);
Executed by:
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QMetaType
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QVariant
  • tst_qinputmethod
22
1620}-
1621QLineF QVariant::toLineF() const-
1622{-
1623 return
executed 9 times by 2 tests: return qVariantToHelper<QLineF>(d, handlerManager);
Executed by:
  • tst_QMetaType
  • tst_QVariant
qVariantToHelper<QLineF>(d, handlerManager);
executed 9 times by 2 tests: return qVariantToHelper<QLineF>(d, handlerManager);
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1624}-
1625QLine QVariant::toLine() const-
1626{-
1627 return
executed 9 times by 2 tests: return qVariantToHelper<QLine>(d, handlerManager);
Executed by:
  • tst_QMetaType
  • tst_QVariant
qVariantToHelper<QLine>(d, handlerManager);
executed 9 times by 2 tests: return qVariantToHelper<QLine>(d, handlerManager);
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1628}-
1629QPointF QVariant::toPointF() const-
1630{-
1631 return
executed 1641 times by 16 tests: return qVariantToHelper<QPointF>(d, handlerManager);
Executed by:
  • tst_QDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsWidget
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
qVariantToHelper<QPointF>(d, handlerManager);
executed 1641 times by 16 tests: return qVariantToHelper<QPointF>(d, handlerManager);
Executed by:
  • tst_QDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsWidget
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
1641
1632}-
1633QUrl QVariant::toUrl() const-
1634{-
1635 return
executed 7216 times by 10 tests: return qVariantToHelper<QUrl>(d, handlerManager);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QVariant
  • tst_languageChange
qVariantToHelper<QUrl>(d, handlerManager);
executed 7216 times by 10 tests: return qVariantToHelper<QUrl>(d, handlerManager);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QVariant
  • tst_languageChange
7216
1636}-
1637QLocale QVariant::toLocale() const-
1638{-
1639 return
executed 3 times by 1 test: return qVariantToHelper<QLocale>(d, handlerManager);
Executed by:
  • tst_QVariant
qVariantToHelper<QLocale>(d, handlerManager);
executed 3 times by 1 test: return qVariantToHelper<QLocale>(d, handlerManager);
Executed by:
  • tst_QVariant
3
1640}-
1641QRegExp QVariant::toRegExp() const-
1642{-
1643 return
executed 45 times by 2 tests: return qVariantToHelper<QRegExp>(d, handlerManager);
Executed by:
  • tst_QDataStream
  • tst_QVariant
qVariantToHelper<QRegExp>(d, handlerManager);
executed 45 times by 2 tests: return qVariantToHelper<QRegExp>(d, handlerManager);
Executed by:
  • tst_QDataStream
  • tst_QVariant
45
1644}-
1645QRegularExpression QVariant::toRegularExpression() const-
1646{-
1647 return
executed 103 times by 4 tests: return qVariantToHelper<QRegularExpression>(d, handlerManager);
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
qVariantToHelper<QRegularExpression>(d, handlerManager);
executed 103 times by 4 tests: return qVariantToHelper<QRegularExpression>(d, handlerManager);
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
103
1648}-
1649QUuid QVariant::toUuid() const-
1650{-
1651 return
executed 1 time by 1 test: return qVariantToHelper<QUuid>(d, handlerManager);
Executed by:
  • tst_QVariant
qVariantToHelper<QUuid>(d, handlerManager);
executed 1 time by 1 test: return qVariantToHelper<QUuid>(d, handlerManager);
Executed by:
  • tst_QVariant
1
1652}-
1653QModelIndex QVariant::toModelIndex() const-
1654{-
1655 return
executed 1 time by 1 test: return qVariantToHelper<QModelIndex>(d, handlerManager);
Executed by:
  • tst_QVariant
qVariantToHelper<QModelIndex>(d, handlerManager);
executed 1 time by 1 test: return qVariantToHelper<QModelIndex>(d, handlerManager);
Executed by:
  • tst_QVariant
1
1656}-
1657QPersistentModelIndex QVariant::toPersistentModelIndex() const-
1658{-
1659 return
executed 1 time by 1 test: return qVariantToHelper<QPersistentModelIndex>(d, handlerManager);
Executed by:
  • tst_QVariant
qVariantToHelper<QPersistentModelIndex>(d, handlerManager);
executed 1 time by 1 test: return qVariantToHelper<QPersistentModelIndex>(d, handlerManager);
Executed by:
  • tst_QVariant
1
1660}-
1661QJsonValue QVariant::toJsonValue() const-
1662{-
1663 return
executed 1 time by 1 test: return qVariantToHelper<QJsonValue>(d, handlerManager);
Executed by:
  • tst_QVariant
qVariantToHelper<QJsonValue>(d, handlerManager);
executed 1 time by 1 test: return qVariantToHelper<QJsonValue>(d, handlerManager);
Executed by:
  • tst_QVariant
1
1664}-
1665QJsonObject QVariant::toJsonObject() const-
1666{-
1667 return
executed 1 time by 1 test: return qVariantToHelper<QJsonObject>(d, handlerManager);
Executed by:
  • tst_QVariant
qVariantToHelper<QJsonObject>(d, handlerManager);
executed 1 time by 1 test: return qVariantToHelper<QJsonObject>(d, handlerManager);
Executed by:
  • tst_QVariant
1
1668}-
1669QJsonArray QVariant::toJsonArray() const-
1670{-
1671 return
executed 1 time by 1 test: return qVariantToHelper<QJsonArray>(d, handlerManager);
Executed by:
  • tst_QVariant
qVariantToHelper<QJsonArray>(d, handlerManager);
executed 1 time by 1 test: return qVariantToHelper<QJsonArray>(d, handlerManager);
Executed by:
  • tst_QVariant
1
1672}-
1673QJsonDocument QVariant::toJsonDocument() const-
1674{-
1675 return
executed 1 time by 1 test: return qVariantToHelper<QJsonDocument>(d, handlerManager);
Executed by:
  • tst_QVariant
qVariantToHelper<QJsonDocument>(d, handlerManager);
executed 1 time by 1 test: return qVariantToHelper<QJsonDocument>(d, handlerManager);
Executed by:
  • tst_QVariant
1
1676}-
1677QChar QVariant::toChar() const-
1678{-
1679 return
executed 1860 times by 56 tests: return qVariantToHelper<QChar>(d, handlerManager);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • ...
qVariantToHelper<QChar>(d, handlerManager);
executed 1860 times by 56 tests: return qVariantToHelper<QChar>(d, handlerManager);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • ...
1860
1680}-
1681-
1682-
1683-
1684-
1685-
1686-
1687-
1688QBitArray QVariant::toBitArray() const-
1689{-
1690 return
executed 1 time by 1 test: return qVariantToHelper<QBitArray>(d, handlerManager);
Executed by:
  • tst_QVariant
qVariantToHelper<QBitArray>(d, handlerManager);
executed 1 time by 1 test: return qVariantToHelper<QBitArray>(d, handlerManager);
Executed by:
  • tst_QVariant
1
1691}-
1692-
1693template <typename T>-
1694inline T qNumVariantToHelper(const QVariant::Private &d,-
1695 const HandlersManager &handlerManager, bool *ok, const T& val)-
1696{-
1697 const uint t = qMetaTypeId<T>();-
1698 if (ok
okDescription
TRUEevaluated 6171 times by 32 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QShortcut
  • tst_QSplitter
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTextBrowser
  • ...
FALSEevaluated 790540 times by 219 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
)
6171-790540
1699 *
executed 6171 times by 32 tests: *ok = true;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QShortcut
  • tst_QSplitter
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTextBrowser
  • ...
ok = true;
executed 6171 times by 32 tests: *ok = true;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QShortcut
  • tst_QSplitter
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTextBrowser
  • ...
6171
1700-
1701 if (d.type == t
d.type == tDescription
TRUEevaluated 769297 times by 215 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 27414 times by 86 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
)
27414-769297
1702 return
executed 769297 times by 215 tests: return val;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
val;
executed 769297 times by 215 tests: return val;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
769297
1703-
1704 T ret = 0;-
1705 if ((d.type >= QMetaType::User
d.type >= QMetaType::UserDescription
TRUEevaluated 130 times by 5 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
FALSEevaluated 27284 times by 83 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • ...
|| t >= QMetaType::User
t >= QMetaType::UserDescription
TRUEnever evaluated
FALSEevaluated 27284 times by 83 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • ...
)
0-27284
1706 && QMetaType::convert(constData(d), d.type, &ret, t)
QMetaType::con...type, &ret, t)Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 122 times by 5 tests
Evaluated by:
  • tst_QGuiApplication
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
)
8-122
1707 return
executed 8 times by 2 tests: return ret;
Executed by:
  • tst_QMetaType
  • tst_QVariant
ret;
executed 8 times by 2 tests: return ret;
Executed by:
  • tst_QMetaType
  • tst_QVariant
8
1708-
1709 if (!handlerManager[d.type]->convert(&d, t, &ret, ok)
!handlerManage..., t, &ret, ok)Description
TRUEevaluated 1004 times by 17 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QSettings
  • tst_QTextEdit
  • tst_QTreeWidgetItemIterator
  • tst_QVariant
  • tst_QWidget
  • tst_Spdy
  • tst_qinputmethod
FALSEevaluated 26402 times by 79 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
&& ok
okDescription
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_QTextEdit
  • tst_QVariant
FALSEevaluated 984 times by 16 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHttpSocketEngine
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QSettings
  • tst_QTreeWidgetItemIterator
  • tst_QVariant
  • tst_QWidget
  • tst_Spdy
  • tst_qinputmethod
)
20-26402
1710 *
executed 20 times by 2 tests: *ok = false;
Executed by:
  • tst_QTextEdit
  • tst_QVariant
ok = false;
executed 20 times by 2 tests: *ok = false;
Executed by:
  • tst_QTextEdit
  • tst_QVariant
20
1711 return
executed 27406 times by 86 tests: return ret;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
ret;
executed 27406 times by 86 tests: return ret;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
27406
1712}-
1713int QVariant::toInt(bool *ok) const-
1714{-
1715 return
executed 726428 times by 207 tests: return qNumVariantToHelper<int>(d, handlerManager, ok, d.data.i);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • ...
qNumVariantToHelper<int>(d, handlerManager, ok, d.data.i);
executed 726428 times by 207 tests: return qNumVariantToHelper<int>(d, handlerManager, ok, d.data.i);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • ...
726428
1716}-
1717uint QVariant::toUInt(bool *ok) const-
1718{-
1719 return
executed 1493 times by 56 tests: return qNumVariantToHelper<uint>(d, handlerManager, ok, d.data.u);
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusServiceWatcher
  • tst_QDialog
  • tst_QFtp
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
qNumVariantToHelper<uint>(d, handlerManager, ok, d.data.u);
executed 1493 times by 56 tests: return qNumVariantToHelper<uint>(d, handlerManager, ok, d.data.u);
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusServiceWatcher
  • tst_QDialog
  • tst_QFtp
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
1493
1720}-
1721qlonglong QVariant::toLongLong(bool *ok) const-
1722{-
1723 return
executed 11710 times by 23 tests: return qNumVariantToHelper<qlonglong>(d, handlerManager, ok, d.data.ll);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListWidget
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QVariant
  • tst_Spdy
  • tst_qdbusmarshall - unknown status
qNumVariantToHelper<qlonglong>(d, handlerManager, ok, d.data.ll);
executed 11710 times by 23 tests: return qNumVariantToHelper<qlonglong>(d, handlerManager, ok, d.data.ll);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListWidget
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QVariant
  • tst_Spdy
  • tst_qdbusmarshall - unknown status
11710
1724}-
1725qulonglong QVariant::toULongLong(bool *ok) const-
1726{-
1727 return
executed 104 times by 5 tests: return qNumVariantToHelper<qulonglong>(d, handlerManager, ok, d.data.ull);
Executed by:
  • tst_QDBusMarshall
  • tst_QItemDelegate
  • tst_QString
  • tst_QVariant
  • tst_qdbusmarshall - unknown status
qNumVariantToHelper<qulonglong>(d, handlerManager, ok, d.data.ull);
executed 104 times by 5 tests: return qNumVariantToHelper<qulonglong>(d, handlerManager, ok, d.data.ull);
Executed by:
  • tst_QDBusMarshall
  • tst_QItemDelegate
  • tst_QString
  • tst_QVariant
  • tst_qdbusmarshall - unknown status
104
1728}-
1729bool QVariant::toBool() const-
1730{-
1731 if (d.type == Bool
d.type == BoolDescription
TRUEevaluated 80407 times by 161 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 41407 times by 115 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
)
41407-80407
1732 return
executed 80407 times by 161 tests: return d.data.b;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
d.data.b;
executed 80407 times by 161 tests: return d.data.b;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
80407
1733-
1734 bool res = false;-
1735 handlerManager[d.type]->convert(&d, Bool, &res, 0);-
1736-
1737 return
executed 41407 times by 115 tests: return res;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
res;
executed 41407 times by 115 tests: return res;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDesktopWidget
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
41407
1738}-
1739double QVariant::toDouble(bool *ok) const-
1740{-
1741 return
executed 40261 times by 58 tests: return qNumVariantToHelper<double>(d, handlerManager, ok, d.data.d);
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • ...
qNumVariantToHelper<double>(d, handlerManager, ok, d.data.d);
executed 40261 times by 58 tests: return qNumVariantToHelper<double>(d, handlerManager, ok, d.data.d);
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • ...
40261
1742}-
1743float QVariant::toFloat(bool *ok) const-
1744{-
1745 return
executed 154 times by 16 tests: return qNumVariantToHelper<float>(d, handlerManager, ok, d.data.f);
Executed by:
  • tst_QBrush
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPainter
  • tst_QPixmap
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QVariant
qNumVariantToHelper<float>(d, handlerManager, ok, d.data.f);
executed 154 times by 16 tests: return qNumVariantToHelper<float>(d, handlerManager, ok, d.data.f);
Executed by:
  • tst_QBrush
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPainter
  • tst_QPixmap
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QVariant
154
1746}-
1747qreal QVariant::toReal(bool *ok) const-
1748{-
1749 return
executed 16561 times by 29 tests: return qNumVariantToHelper<qreal>(d, handlerManager, ok, d.data.real);
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QScroller
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QTextList
  • tst_QTouchEvent
  • ...
qNumVariantToHelper<qreal>(d, handlerManager, ok, d.data.real);
executed 16561 times by 29 tests: return qNumVariantToHelper<qreal>(d, handlerManager, ok, d.data.real);
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCssParser
  • tst_QDateTimeEdit
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QScroller
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextFormat
  • tst_QTextLayout
  • tst_QTextList
  • tst_QTouchEvent
  • ...
16561
1750}-
1751QVariantList QVariant::toList() const-
1752{-
1753 return
executed 695 times by 17 tests: return qVariantToHelper<QVariantList>(d, handlerManager);
Executed by:
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QPrinter
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextTable
  • tst_languageChange
qVariantToHelper<QVariantList>(d, handlerManager);
executed 695 times by 17 tests: return qVariantToHelper<QVariantList>(d, handlerManager);
Executed by:
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QPrinter
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextTable
  • tst_languageChange
695
1754}-
1755-
1756-
1757static const quint32 qCanConvertMatrix[QVariant::LastCoreType + 1] =-
1758{-
1759 0,-
1760-
1761 1 << QVariant::Double | 1 << QVariant::Int | 1 << QVariant::UInt-
1762 | 1 << QVariant::LongLong | 1 << QVariant::ULongLong | 1 << QVariant::ByteArray-
1763 | 1 << QVariant::String | 1 << QVariant::Char,-
1764-
1765 1 << QVariant::UInt | 1 << QVariant::String | 1 << QVariant::Double-
1766 | 1 << QVariant::Bool | 1 << QVariant::LongLong | 1 << QVariant::ULongLong-
1767 | 1 << QVariant::Char | 1 << QVariant::ByteArray | 1 << QVariant::Int,-
1768-
1769 1 << QVariant::Int | 1 << QVariant::String | 1 << QVariant::Double-
1770 | 1 << QVariant::Bool | 1 << QVariant::LongLong | 1 << QVariant::ULongLong-
1771 | 1 << QVariant::Char | 1 << QVariant::ByteArray,-
1772-
1773 1 << QVariant::Int | 1 << QVariant::String | 1 << QVariant::Double-
1774 | 1 << QVariant::Bool | 1 << QVariant::UInt | 1 << QVariant::ULongLong-
1775 | 1 << QVariant::Char | 1 << QVariant::ByteArray,-
1776-
1777 1 << QVariant::Int | 1 << QVariant::String | 1 << QVariant::Double-
1778 | 1 << QVariant::Bool | 1 << QVariant::UInt | 1 << QVariant::LongLong-
1779 | 1 << QVariant::Char | 1 << QVariant::ByteArray,-
1780-
1781 1 << QVariant::Int | 1 << QVariant::String | 1 << QVariant::ULongLong-
1782 | 1 << QVariant::Bool | 1 << QVariant::UInt | 1 << QVariant::LongLong-
1783 | 1 << QVariant::ByteArray,-
1784-
1785 1 << QVariant::Int | 1 << QVariant::UInt | 1 << QVariant::LongLong-
1786 | 1 << QVariant::ULongLong,-
1787-
1788 0,-
1789-
1790 1 << QVariant::StringList,-
1791-
1792 1 << QVariant::StringList | 1 << QVariant::ByteArray | 1 << QVariant::Int-
1793 | 1 << QVariant::UInt | 1 << QVariant::Bool | 1 << QVariant::Double-
1794 | 1 << QVariant::Date | 1 << QVariant::Time | 1 << QVariant::DateTime-
1795 | 1 << QVariant::LongLong | 1 << QVariant::ULongLong | 1 << QVariant::Char-
1796 | 1 << QVariant::Url | 1 << QVariant::Uuid,-
1797-
1798 1 << QVariant::List | 1 << QVariant::String,-
1799-
1800 1 << QVariant::String | 1 << QVariant::Int | 1 << QVariant::UInt | 1 << QVariant::Bool-
1801 | 1 << QVariant::Double | 1 << QVariant::LongLong | 1 << QVariant::ULongLong,-
1802-
1803 0,-
1804-
1805 1 << QVariant::String | 1 << QVariant::DateTime,-
1806-
1807 1 << QVariant::String | 1 << QVariant::DateTime,-
1808-
1809 1 << QVariant::String | 1 << QVariant::Date,-
1810-
1811 1 << QVariant::String,-
1812-
1813 0,-
1814-
1815 1 << QVariant::RectF,-
1816-
1817 1 << QVariant::Rect,-
1818-
1819 1 << QVariant::SizeF,-
1820-
1821 1 << QVariant::Size,-
1822-
1823 1 << QVariant::LineF,-
1824-
1825 1 << QVariant::Line,-
1826-
1827 1 << QVariant::PointF,-
1828-
1829 1 << QVariant::Point,-
1830-
1831 0,-
1832-
1833 0,-
1834-
1835 0,-
1836-
1837 1 << QVariant::String-
1838};-
1839static const size_t qCanConvertMatrixMaximumTargetType = 8 * sizeof(*qCanConvertMatrix);-
1840-
1841-
1842-
1843-
1844-
1845static bool canConvertMetaObject(const QMetaObject *from, const QMetaObject *to)-
1846{-
1847 if (from
fromDescription
TRUEevaluated 19 times by 3 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEnever evaluated
&& to == &QObject::staticMetaObject
to == &QObject...aticMetaObjectDescription
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QWidgetsVariant
)
0-19
1848 return
executed 12 times by 2 tests: return true;
Executed by:
  • tst_QVariant
  • tst_QWidgetsVariant
true;
executed 12 times by 2 tests: return true;
Executed by:
  • tst_QVariant
  • tst_QWidgetsVariant
12
1849-
1850 while (from
fromDescription
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QWidgetsVariant
FALSEnever evaluated
) {
0-11
1851 if (from == to
from == toDescription
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QWidgetsVariant
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QWidgetsVariant
)
4-7
1852 return
executed 7 times by 2 tests: return true;
Executed by:
  • tst_QMetaProperty
  • tst_QWidgetsVariant
true;
executed 7 times by 2 tests: return true;
Executed by:
  • tst_QMetaProperty
  • tst_QWidgetsVariant
7
1853 from = from->superClass();-
1854 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_QMetaProperty
  • tst_QWidgetsVariant
4
1855-
1856 return
never executed: return false;
false;
never executed: return false;
0
1857}-
1858-
1859-
1860static bool canConvertMetaObject(int fromId, int toId, QObject *fromObject)-
1861{-
1862-
1863 QMetaType toType(toId);-
1864 if ((QMetaType::typeFlags(fromId) & QMetaType::PointerToQObject) && (toType.flags() & QMetaType::PointerToQObject)) {-
1865 if (!fromObject
!fromObjectDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 19 times by 3 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QVariant
  • tst_QWidgetsVariant
)
4-19
1866 return
executed 4 times by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 4 times by 1 test: return true;
Executed by:
  • tst_QVariant
4
1867 return
executed 19 times by 3 tests: return canConvertMetaObject(fromObject->metaObject(), toType.metaObject());
Executed by:
  • tst_QMetaProperty
  • tst_QVariant
  • tst_QWidgetsVariant
canConvertMetaObject(fromObject->metaObject(), toType.metaObject());
executed 19 times by 3 tests: return canConvertMetaObject(fromObject->metaObject(), toType.metaObject());
Executed by:
  • tst_QMetaProperty
  • tst_QVariant
  • tst_QWidgetsVariant
19
1868 }-
1869-
1870-
1871-
1872-
1873-
1874 return
executed 89 times by 5 tests: return false;
Executed by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_selftests - unknown status
false;
executed 89 times by 5 tests: return false;
Executed by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_selftests - unknown status
89
1875}-
1876bool QVariant::canConvert(int targetTypeId) const-
1877{-
1878 if ((targetTypeId == QMetaType::QModelIndex
targetTypeId =...e::QModelIndexDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 225149 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
&& d.type == QMetaType::QPersistentModelIndex
d.type == QMet...tentModelIndexDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
)
0-225149
1879 || (targetTypeId == QMetaType::QPersistentModelIndex
targetTypeId =...tentModelIndexDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 225147 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
&& d.type == QMetaType::QModelIndex
d.type == QMet...e::QModelIndexDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
))
0-225147
1880 return
executed 4 times by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 4 times by 1 test: return true;
Executed by:
  • tst_QVariant
4
1881-
1882 if (targetTypeId == QMetaType::QVariantList
targetTypeId =...::QVariantListDescription
TRUEevaluated 63 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEevaluated 225084 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
63-225084
1883 && (d.type == QMetaType::QVariantList
d.type == QMet...::QVariantListDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 61 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
2-61
1884 || d.type == QMetaType::QStringList
d.type == QMet...e::QStringListDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 59 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
2-59
1885 || d.type == QMetaType::QByteArrayList
d.type == QMet...QByteArrayListDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 57 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
2-57
1886 || QMetaType::hasRegisteredConverterFunction(d.type,
QMetaType::has...erableImpl>())Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
20-37
1887 qMetaTypeId<QtMetaTypePrivate::QSequentialIterableImpl>())
QMetaType::has...erableImpl>())Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
)) {
20-37
1888 return
executed 26 times by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 26 times by 1 test: return true;
Executed by:
  • tst_QVariant
26
1889 }-
1890-
1891 if ((targetTypeId == QMetaType::QVariantHash
targetTypeId =...::QVariantHashDescription
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 225100 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
|| targetTypeId == QMetaType::QVariantMap
targetTypeId =...e::QVariantMapDescription
TRUEevaluated 39 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEevaluated 225061 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
)
21-225100
1892 && (d.type == QMetaType::QVariantMap
d.type == QMet...e::QVariantMapDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 59 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
1-59
1893 || d.type == QMetaType::QVariantHash
d.type == QMet...::QVariantHashDescription
TRUEnever evaluated
FALSEevaluated 59 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
0-59
1894 || QMetaType::hasRegisteredConverterFunction(d.type,
QMetaType::has...erableImpl>())Description
TRUEnever evaluated
FALSEevaluated 59 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
0-59
1895 qMetaTypeId<QtMetaTypePrivate::QAssociativeIterableImpl>())
QMetaType::has...erableImpl>())Description
TRUEnever evaluated
FALSEevaluated 59 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
)) {
0-59
1896 return
executed 1 time by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 1 time by 1 test: return true;
Executed by:
  • tst_QVariant
1
1897 }-
1898-
1899 if (targetTypeId == qMetaTypeId<QPair<QVariant, QVariant> >()
targetTypeId =... QVariant> >()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 225110 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
&&
10-225110
1900 QMetaType::hasRegisteredConverterFunction(d.type,
QMetaType::has...erfaceImpl>())Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
0-10
1901 qMetaTypeId<QtMetaTypePrivate::QPairVariantInterfaceImpl>())
QMetaType::has...erfaceImpl>())Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
) {
0-10
1902 return
executed 10 times by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 10 times by 1 test: return true;
Executed by:
  • tst_QVariant
10
1903 }-
1904-
1905 if ((d.type >= QMetaType::User
d.type >= QMetaType::UserDescription
TRUEevaluated 461 times by 8 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
FALSEevaluated 224649 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
|| targetTypeId >= QMetaType::User
targetTypeId >...MetaType::UserDescription
TRUEevaluated 129 times by 6 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
FALSEevaluated 224520 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
)
129-224649
1906 && QMetaType::hasRegisteredConverterFunction(d.type, targetTypeId)
QMetaType::has... targetTypeId)Description
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 574 times by 9 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
) {
16-574
1907 return
executed 16 times by 3 tests: return true;
Executed by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QVariant
true;
executed 16 times by 3 tests: return true;
Executed by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QVariant
16
1908 }-
1909-
1910-
1911 uint currentType = ((
(d.type == QMetaType::Float)Description
TRUEevaluated 84 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
FALSEevaluated 225010 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
d.type == QMetaType::Float)
(d.type == QMetaType::Float)Description
TRUEevaluated 84 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
FALSEevaluated 225010 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
? QVariant::Double : d.type);
84-225010
1912 if (currentType == QMetaType::SChar
currentType ==...etaType::SCharDescription
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 225030 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
|| currentType == QMetaType::Char
currentType == QMetaType::CharDescription
TRUEevaluated 63 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 224967 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
)
63-225030
1913 currentType = QMetaType::UInt;
executed 127 times by 1 test: currentType = QMetaType::UInt;
Executed by:
  • tst_QVariant
127
1914 if (targetTypeId == QMetaType::SChar
targetTypeId =...etaType::SCharDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 225093 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
|| currentType == QMetaType::Char
currentType == QMetaType::CharDescription
TRUEnever evaluated
FALSEevaluated 225093 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
)
0-225093
1915 targetTypeId = QMetaType::UInt;
executed 1 time by 1 test: targetTypeId = QMetaType::UInt;
Executed by:
  • tst_QVariant
1
1916 if (uint(targetTypeId) == uint(QMetaType::Float)
uint(targetTyp...taType::Float)Description
TRUEevaluated 51 times by 5 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEevaluated 225043 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
) targetTypeId = QVariant::Double;
executed 51 times by 5 tests: targetTypeId = QVariant::Double;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
  • tst_QWidgetsVariant
51-225043
1917-
1918-
1919 if (currentType == uint(targetTypeId)
currentType ==...(targetTypeId)Description
TRUEevaluated 537 times by 26 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDirModel
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QVariant
  • tst_QWidgetsVariant
  • ...
FALSEevaluated 224557 times by 85 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • ...
)
537-224557
1920 return
executed 537 times by 26 tests: return true;
Executed by:
  • tst_QAbstractProxyModel
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDirModel
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QVariant
  • tst_QWidgetsVariant
  • ...
true;
executed 537 times by 26 tests: return true;
Executed by:
  • tst_QAbstractProxyModel
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDirModel
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QVariant
  • tst_QWidgetsVariant
  • ...
537
1921-
1922 if (targetTypeId < 0
targetTypeId < 0Description
TRUEevaluated 75 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 224482 times by 85 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • ...
)
75-224482
1923 return
executed 75 times by 1 test: return false;
Executed by:
  • tst_QVariant
false;
executed 75 times by 1 test: return false;
Executed by:
  • tst_QVariant
75
1924 if (targetTypeId >= QMetaType::User
targetTypeId >...MetaType::UserDescription
TRUEevaluated 129 times by 6 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
FALSEevaluated 224353 times by 85 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • ...
) {
129-224353
1925 if (QMetaType::typeFlags(targetTypeId) & QMetaType::IsEnumeration
QMetaType::typ...:IsEnumerationDescription
TRUEevaluated 57 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 72 times by 6 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
) {
57-72
1926 targetTypeId = QMetaType::Int;-
1927 }
executed 57 times by 1 test: end of block
Executed by:
  • tst_QVariant
else {
57
1928 return
executed 72 times by 6 tests: return canConvertMetaObject(currentType, targetTypeId, d.data.o);
Executed by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
canConvertMetaObject(currentType, targetTypeId, d.data.o);
executed 72 times by 6 tests: return canConvertMetaObject(currentType, targetTypeId, d.data.o);
Executed by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
72
1929 }-
1930 }-
1931-
1932 if (currentType == QMetaType::QJsonValue
currentType ==...pe::QJsonValueDescription
TRUEevaluated 48 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 224362 times by 85 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • ...
) {
48-224362
1933 switch (targetTypeId) {-
1934 case
executed 3 times by 1 test: case QMetaType::QString:
Executed by:
  • tst_QVariant
QMetaType::QString:
executed 3 times by 1 test: case QMetaType::QString:
Executed by:
  • tst_QVariant
3
1935 case
executed 3 times by 1 test: case QMetaType::Bool:
Executed by:
  • tst_QVariant
QMetaType::Bool:
executed 3 times by 1 test: case QMetaType::Bool:
Executed by:
  • tst_QVariant
3
1936 case
executed 3 times by 1 test: case QMetaType::Int:
Executed by:
  • tst_QVariant
QMetaType::Int:
executed 3 times by 1 test: case QMetaType::Int:
Executed by:
  • tst_QVariant
3
1937 case
executed 3 times by 1 test: case QMetaType::UInt:
Executed by:
  • tst_QVariant
QMetaType::UInt:
executed 3 times by 1 test: case QMetaType::UInt:
Executed by:
  • tst_QVariant
3
1938 case
executed 6 times by 1 test: case QMetaType::Double:
Executed by:
  • tst_QVariant
QMetaType::Double:
executed 6 times by 1 test: case QMetaType::Double:
Executed by:
  • tst_QVariant
6
1939 case
never executed: case QMetaType::Float:
QMetaType::Float:
never executed: case QMetaType::Float:
0
1940 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
1941 case
never executed: case QMetaType::Long:
QMetaType::Long:
never executed: case QMetaType::Long:
0
1942 case
executed 3 times by 1 test: case QMetaType::LongLong:
Executed by:
  • tst_QVariant
QMetaType::LongLong:
executed 3 times by 1 test: case QMetaType::LongLong:
Executed by:
  • tst_QVariant
3
1943 case
executed 3 times by 1 test: case QMetaType::ULongLong:
Executed by:
  • tst_QVariant
QMetaType::ULongLong:
executed 3 times by 1 test: case QMetaType::ULongLong:
Executed by:
  • tst_QVariant
3
1944 case
never executed: case QMetaType::UShort:
QMetaType::UShort:
never executed: case QMetaType::UShort:
0
1945 case
never executed: case QMetaType::UChar:
QMetaType::UChar:
never executed: case QMetaType::UChar:
0
1946 case
never executed: case QMetaType::Char:
QMetaType::Char:
never executed: case QMetaType::Char:
0
1947 case
never executed: case QMetaType::SChar:
QMetaType::SChar:
never executed: case QMetaType::SChar:
0
1948 case
never executed: case QMetaType::Short:
QMetaType::Short:
never executed: case QMetaType::Short:
0
1949 case
executed 1 time by 1 test: case QMetaType::QVariantList:
Executed by:
  • tst_QVariant
QMetaType::QVariantList:
executed 1 time by 1 test: case QMetaType::QVariantList:
Executed by:
  • tst_QVariant
1
1950 case
executed 1 time by 1 test: case QMetaType::QVariantMap:
Executed by:
  • tst_QVariant
QMetaType::QVariantMap:
executed 1 time by 1 test: case QMetaType::QVariantMap:
Executed by:
  • tst_QVariant
1
1951 case
never executed: case QMetaType::QVariantHash:
QMetaType::QVariantHash:
never executed: case QMetaType::QVariantHash:
0
1952 return
executed 26 times by 1 test: return true;
Executed by:
  • tst_QVariant
true;
executed 26 times by 1 test: return true;
Executed by:
  • tst_QVariant
26
1953 default
executed 22 times by 1 test: default:
Executed by:
  • tst_QVariant
:
executed 22 times by 1 test: default:
Executed by:
  • tst_QVariant
22
1954 return
executed 22 times by 1 test: return false;
Executed by:
  • tst_QVariant
false;
executed 22 times by 1 test: return false;
Executed by:
  • tst_QVariant
22
1955 }-
1956 }-
1957 if (currentType == QMetaType::QJsonArray
currentType ==...pe::QJsonArrayDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 224330 times by 85 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • ...
)
32-224330
1958 return
executed 32 times by 1 test: return targetTypeId == QMetaType::QVariantList;
Executed by:
  • tst_QVariant
targetTypeId == QMetaType::QVariantList;
executed 32 times by 1 test: return targetTypeId == QMetaType::QVariantList;
Executed by:
  • tst_QVariant
32
1959 if (currentType == QMetaType::QJsonObject
currentType ==...e::QJsonObjectDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 224298 times by 85 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • ...
)
32-224298
1960 return
executed 32 times by 1 test: return targetTypeId == QMetaType::QVariantMap || targetTypeId == QMetaType::QVariantHash;
Executed by:
  • tst_QVariant
targetTypeId == QMetaType::QVariantMap
targetTypeId =...e::QVariantMapDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 31 times by 1 test
Evaluated by:
  • tst_QVariant
|| targetTypeId == QMetaType::QVariantHash
targetTypeId =...::QVariantHashDescription
TRUEnever evaluated
FALSEevaluated 31 times by 1 test
Evaluated by:
  • tst_QVariant
;
executed 32 times by 1 test: return targetTypeId == QMetaType::QVariantMap || targetTypeId == QMetaType::QVariantHash;
Executed by:
  • tst_QVariant
0-32
1961-
1962-
1963 if (currentType > int(QMetaType::QUuid)
currentType > ...taType::QUuid)Description
TRUEevaluated 60485 times by 16 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QItemView
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QTextDocument
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
FALSEevaluated 163813 times by 80 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • ...
|| targetTypeId > int(QMetaType::QUuid)
targetTypeId >...taType::QUuid)Description
TRUEevaluated 151068 times by 35 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • ...
FALSEevaluated 12745 times by 65 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
) {
12745-163813
1964 switch (uint(targetTypeId)) {-
1965 case
executed 71 times by 4 tests: case QVariant::Int:
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
QVariant::Int:
executed 71 times by 4 tests: case QVariant::Int:
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
71
1966 if (currentType == QVariant::KeySequence
currentType ==...t::KeySequenceDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 69 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
)
2-69
1967 return
executed 2 times by 1 test: return true;
Executed by:
  • tst_QGuiVariant
true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_QGuiVariant
2
1968-
1969 case
executed 37 times by 3 tests: case QVariant::UInt:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
QVariant::UInt:
executed 37 times by 3 tests: case QVariant::UInt:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
code before this statement executed 69 times by 4 tests: case QVariant::UInt:
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
37-69
1970 case
executed 40 times by 3 tests: case QVariant::LongLong:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
QVariant::LongLong:
executed 40 times by 3 tests: case QVariant::LongLong:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
40
1971 case
executed 40 times by 3 tests: case QVariant::ULongLong:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
QVariant::ULongLong:
executed 40 times by 3 tests: case QVariant::ULongLong:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
40
1972 return
executed 186 times by 4 tests: return currentType == QMetaType::ULong || currentType == QMetaType::Long || currentType == QMetaType::UShort || currentType == QMetaType::UChar || currentType == QMetaType::Char || currentType == QMetaType::SChar || currentType == QMetaType::Short || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
currentType == QMetaType::ULong
currentType ==...etaType::ULongDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 183 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
executed 186 times by 4 tests: return currentType == QMetaType::ULong || currentType == QMetaType::Long || currentType == QMetaType::UShort || currentType == QMetaType::UChar || currentType == QMetaType::Char || currentType == QMetaType::SChar || currentType == QMetaType::Short || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
3-186
1973 || currentType == QMetaType::Long
currentType == QMetaType::LongDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 177 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
executed 186 times by 4 tests: return currentType == QMetaType::ULong || currentType == QMetaType::Long || currentType == QMetaType::UShort || currentType == QMetaType::UChar || currentType == QMetaType::Char || currentType == QMetaType::SChar || currentType == QMetaType::Short || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
6-186
1974 || currentType == QMetaType::UShort
currentType ==...taType::UShortDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 175 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
executed 186 times by 4 tests: return currentType == QMetaType::ULong || currentType == QMetaType::Long || currentType == QMetaType::UShort || currentType == QMetaType::UChar || currentType == QMetaType::Char || currentType == QMetaType::SChar || currentType == QMetaType::Short || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
2-186
1975 || currentType == QMetaType::UChar
currentType ==...etaType::UCharDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 173 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
executed 186 times by 4 tests: return currentType == QMetaType::ULong || currentType == QMetaType::Long || currentType == QMetaType::UShort || currentType == QMetaType::UChar || currentType == QMetaType::Char || currentType == QMetaType::SChar || currentType == QMetaType::Short || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
2-186
1976 || currentType == QMetaType::Char
currentType == QMetaType::CharDescription
TRUEnever evaluated
FALSEevaluated 173 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
executed 186 times by 4 tests: return currentType == QMetaType::ULong || currentType == QMetaType::Long || currentType == QMetaType::UShort || currentType == QMetaType::UChar || currentType == QMetaType::Char || currentType == QMetaType::SChar || currentType == QMetaType::Short || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
0-186
1977 || currentType == QMetaType::SChar
currentType ==...etaType::SCharDescription
TRUEnever evaluated
FALSEevaluated 173 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
executed 186 times by 4 tests: return currentType == QMetaType::ULong || currentType == QMetaType::Long || currentType == QMetaType::UShort || currentType == QMetaType::UChar || currentType == QMetaType::Char || currentType == QMetaType::SChar || currentType == QMetaType::Short || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
0-186
1978 || currentType == QMetaType::Short
currentType ==...etaType::ShortDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 171 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
executed 186 times by 4 tests: return currentType == QMetaType::ULong || currentType == QMetaType::Long || currentType == QMetaType::UShort || currentType == QMetaType::UChar || currentType == QMetaType::Char || currentType == QMetaType::SChar || currentType == QMetaType::Short || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
2-186
1979 || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
executed 186 times by 4 tests: return currentType == QMetaType::ULong || currentType == QMetaType::Long || currentType == QMetaType::UShort || currentType == QMetaType::UChar || currentType == QMetaType::Char || currentType == QMetaType::SChar || currentType == QMetaType::Short || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
186
1980 case
executed 35 times by 3 tests: case QVariant::Image:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
QVariant::Image:
executed 35 times by 3 tests: case QVariant::Image:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
35
1981 return
executed 35 times by 3 tests: return currentType == QVariant::Pixmap || currentType == QVariant::Bitmap;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
currentType == QVariant::Pixmap
currentType ==...ariant::PixmapDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 34 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
|| currentType == QVariant::Bitmap
currentType ==...ariant::BitmapDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 33 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
;
executed 35 times by 3 tests: return currentType == QVariant::Pixmap || currentType == QVariant::Bitmap;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
1-35
1982 case
executed 36 times by 3 tests: case QVariant::Pixmap:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
QVariant::Pixmap:
executed 36 times by 3 tests: case QVariant::Pixmap:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
36
1983 return
executed 36 times by 3 tests: return currentType == QVariant::Image || currentType == QVariant::Bitmap || currentType == QVariant::Brush;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
currentType == QVariant::Image
currentType == QVariant::ImageDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 35 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
|| currentType == QVariant::Bitmap
currentType ==...ariant::BitmapDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 33 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
executed 36 times by 3 tests: return currentType == QVariant::Image || currentType == QVariant::Bitmap || currentType == QVariant::Brush;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
1-36
1984 || currentType == QVariant::Brush
currentType == QVariant::BrushDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 32 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
;
executed 36 times by 3 tests: return currentType == QVariant::Image || currentType == QVariant::Bitmap || currentType == QVariant::Brush;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
1-36
1985 case
executed 35 times by 3 tests: case QVariant::Bitmap:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
QVariant::Bitmap:
executed 35 times by 3 tests: case QVariant::Bitmap:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
35
1986 return
executed 35 times by 3 tests: return currentType == QVariant::Pixmap || currentType == QVariant::Image;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
currentType == QVariant::Pixmap
currentType ==...ariant::PixmapDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 34 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
|| currentType == QVariant::Image
currentType == QVariant::ImageDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 33 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
;
executed 35 times by 3 tests: return currentType == QVariant::Pixmap || currentType == QVariant::Image;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
1-35
1987 case
executed 24 times by 3 tests: case QVariant::ByteArray:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
QVariant::ByteArray:
executed 24 times by 3 tests: case QVariant::ByteArray:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
24
1988 return
executed 24 times by 3 tests: return currentType == QVariant::Color || ((QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration) && QMetaType::metaObjectForType(currentType));
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
currentType == QVariant::Color
currentType == QVariant::ColorDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 23 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
executed 24 times by 3 tests: return currentType == QVariant::Color || ((QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration) && QMetaType::metaObjectForType(currentType));
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
1-24
1989 || ((QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration) && QMetaType::metaObjectForType(currentType)
QMetaType::met...e(currentType)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
);
executed 24 times by 3 tests: return currentType == QVariant::Color || ((QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration) && QMetaType::metaObjectForType(currentType));
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
0-24
1990 case
executed 398 times by 11 tests: case QVariant::String:
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
QVariant::String:
executed 398 times by 11 tests: case QVariant::String:
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
398
1991 return
executed 398 times by 11 tests: return currentType == QVariant::KeySequence || currentType == QVariant::Font || currentType == QVariant::Color || ((QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration) && QMetaType::metaObjectForType(currentType));
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
currentType == QVariant::KeySequence
currentType ==...t::KeySequenceDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 394 times by 11 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
|| currentType == QVariant::Font
currentType == QVariant::FontDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 390 times by 11 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
executed 398 times by 11 tests: return currentType == QVariant::KeySequence || currentType == QVariant::Font || currentType == QVariant::Color || ((QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration) && QMetaType::metaObjectForType(currentType));
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
4-398
1992 || currentType == QVariant::Color
currentType == QVariant::ColorDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 385 times by 11 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
executed 398 times by 11 tests: return currentType == QVariant::KeySequence || currentType == QVariant::Font || currentType == QVariant::Color || ((QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration) && QMetaType::metaObjectForType(currentType));
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
5-398
1993 || ((QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration) && QMetaType::metaObjectForType(currentType)
QMetaType::met...e(currentType)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
);
executed 398 times by 11 tests: return currentType == QVariant::KeySequence || currentType == QVariant::Font || currentType == QVariant::Color || ((QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration) && QMetaType::metaObjectForType(currentType));
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
0-398
1994 case
executed 37 times by 3 tests: case QVariant::KeySequence:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
QVariant::KeySequence:
executed 37 times by 3 tests: case QVariant::KeySequence:
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
37
1995 return
executed 37 times by 3 tests: return currentType == QVariant::String || currentType == QVariant::Int;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
currentType == QVariant::String
currentType ==...ariant::StringDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
FALSEevaluated 35 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
|| currentType == QVariant::Int
currentType == QVariant::IntDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
FALSEevaluated 32 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
;
executed 37 times by 3 tests: return currentType == QVariant::String || currentType == QVariant::Int;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
2-37
1996 case
executed 71 times by 4 tests: case QVariant::Font:
Executed by:
  • tst_QGuiVariant
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
QVariant::Font:
executed 71 times by 4 tests: case QVariant::Font:
Executed by:
  • tst_QGuiVariant
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
71
1997 return
executed 71 times by 4 tests: return currentType == QVariant::String;
Executed by:
  • tst_QGuiVariant
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
currentType == QVariant::String;
executed 71 times by 4 tests: return currentType == QVariant::String;
Executed by:
  • tst_QGuiVariant
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
71
1998 case
executed 289 times by 13 tests: case QVariant::Color:
Executed by:
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QMainWindow
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidget
  • tst_QWidgetsVariant
QVariant::Color:
executed 289 times by 13 tests: case QVariant::Color:
Executed by:
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QMainWindow
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidget
  • tst_QWidgetsVariant
289
1999 return
executed 289 times by 13 tests: return currentType == QVariant::String || currentType == QVariant::ByteArray || currentType == QVariant::Brush;
Executed by:
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QMainWindow
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidget
  • tst_QWidgetsVariant
currentType == QVariant::String
currentType ==...ariant::StringDescription
TRUEevaluated 212 times by 11 tests
Evaluated by:
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QMainWindow
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QVariant
  • tst_QWidget
FALSEevaluated 77 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
|| currentType == QVariant::ByteArray
currentType ==...ant::ByteArrayDescription
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
FALSEevaluated 70 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
executed 289 times by 13 tests: return currentType == QVariant::String || currentType == QVariant::ByteArray || currentType == QVariant::Brush;
Executed by:
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QMainWindow
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidget
  • tst_QWidgetsVariant
7-289
2000 || currentType == QVariant::Brush
currentType == QVariant::BrushDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 67 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
;
executed 289 times by 13 tests: return currentType == QVariant::String || currentType == QVariant::ByteArray || currentType == QVariant::Brush;
Executed by:
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QMainWindow
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidget
  • tst_QWidgetsVariant
3-289
2001 case
executed 209792 times by 32 tests: case QVariant::Brush:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • ...
QVariant::Brush:
executed 209792 times by 32 tests: case QVariant::Brush:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • ...
209792
2002 return
executed 209792 times by 32 tests: return currentType == QVariant::Color || currentType == QVariant::Pixmap;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • ...
currentType == QVariant::Color
currentType == QVariant::ColorDescription
TRUEevaluated 59293 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QGuiVariant
  • tst_QItemView
FALSEevaluated 150499 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTextDocument
  • ...
|| currentType == QVariant::Pixmap
currentType ==...ariant::PixmapDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGuiVariant
FALSEevaluated 150497 times by 31 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTextDocument
  • ...
;
executed 209792 times by 32 tests: return currentType == QVariant::Color || currentType == QVariant::Pixmap;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QStandardItemModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • ...
2-209792
2003 case
never executed: case QMetaType::Long:
QMetaType::Long:
never executed: case QMetaType::Long:
0
2004 case
never executed: case QMetaType::Char:
QMetaType::Char:
never executed: case QMetaType::Char:
0
2005 case
never executed: case QMetaType::SChar:
QMetaType::SChar:
never executed: case QMetaType::SChar:
0
2006 case
executed 1 time by 1 test: case QMetaType::UChar:
Executed by:
  • tst_QVariant
QMetaType::UChar:
executed 1 time by 1 test: case QMetaType::UChar:
Executed by:
  • tst_QVariant
1
2007 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
2008 case
executed 24 times by 1 test: case QMetaType::Short:
Executed by:
  • tst_QVariant
QMetaType::Short:
executed 24 times by 1 test: case QMetaType::Short:
Executed by:
  • tst_QVariant
24
2009 case
executed 24 times by 1 test: case QMetaType::UShort:
Executed by:
  • tst_QVariant
QMetaType::UShort:
executed 24 times by 1 test: case QMetaType::UShort:
Executed by:
  • tst_QVariant
24
2010 return
executed 49 times by 1 test: return currentType == QVariant::Int || (currentType < qCanConvertMatrixMaximumTargetType && qCanConvertMatrix[QVariant::Int] & (1U << currentType)) || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QVariant
currentType == QVariant::Int
currentType == QVariant::IntDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 46 times by 1 test
Evaluated by:
  • tst_QVariant
executed 49 times by 1 test: return currentType == QVariant::Int || (currentType < qCanConvertMatrixMaximumTargetType && qCanConvertMatrix[QVariant::Int] & (1U << currentType)) || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QVariant
3-49
2011 || (currentType < qCanConvertMatrixMaximumTargetType
currentType < ...imumTargetTypeDescription
TRUEnever evaluated
FALSEevaluated 46 times by 1 test
Evaluated by:
  • tst_QVariant
executed 49 times by 1 test: return currentType == QVariant::Int || (currentType < qCanConvertMatrixMaximumTargetType && qCanConvertMatrix[QVariant::Int] & (1U << currentType)) || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QVariant
0-49
2012 && qCanConvertMatrix[QVariant::Int] & (1U << currentType)
qCanConvertMat...< currentType)Description
TRUEnever evaluated
FALSEnever evaluated
)
executed 49 times by 1 test: return currentType == QVariant::Int || (currentType < qCanConvertMatrixMaximumTargetType && qCanConvertMatrix[QVariant::Int] & (1U << currentType)) || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QVariant
0-49
2013 || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
executed 49 times by 1 test: return currentType == QVariant::Int || (currentType < qCanConvertMatrixMaximumTargetType && qCanConvertMatrix[QVariant::Int] & (1U << currentType)) || QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration;
Executed by:
  • tst_QVariant
49
2014 case
executed 40 times by 2 tests: case QMetaType::QObjectStar:
Executed by:
  • tst_QVariant
  • tst_QWidgetsVariant
QMetaType::QObjectStar:
executed 40 times by 2 tests: case QMetaType::QObjectStar:
Executed by:
  • tst_QVariant
  • tst_QWidgetsVariant
40
2015 return
executed 40 times by 2 tests: return canConvertMetaObject(currentType, targetTypeId, d.data.o);
Executed by:
  • tst_QVariant
  • tst_QWidgetsVariant
canConvertMetaObject(currentType, targetTypeId, d.data.o);
executed 40 times by 2 tests: return canConvertMetaObject(currentType, targetTypeId, d.data.o);
Executed by:
  • tst_QVariant
  • tst_QWidgetsVariant
40
2016 default
executed 559 times by 6 tests: default:
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QTextDocument
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
:
executed 559 times by 6 tests: default:
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QTextDocument
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
559
2017 return
executed 559 times by 6 tests: return false;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QTextDocument
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
false;
executed 559 times by 6 tests: return false;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QTextDocument
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
559
2018 }-
2019 }-
2020-
2021 if (targetTypeId == String
targetTypeId == StringDescription
TRUEevaluated 5123 times by 32 tests
Evaluated by:
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSettings
  • tst_QSignalSpy
  • tst_QSpinBox
  • tst_QSqlQueryModel
  • tst_QSqlRecord
  • tst_QSqlTableModel
  • tst_QStandardItemModel
  • ...
FALSEevaluated 7622 times by 49 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaType
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QPropertyAnimation
  • ...
&& currentType == StringList
currentType == StringListDescription
TRUEevaluated 18 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
FALSEevaluated 5105 times by 32 tests
Evaluated by:
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QItemModel
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSettings
  • tst_QSignalSpy
  • tst_QSpinBox
  • tst_QSqlQueryModel
  • tst_QSqlRecord
  • tst_QSqlTableModel
  • tst_QStandardItemModel
  • ...
)
18-7622
2022 return
executed 18 times by 3 tests: return v_cast<QStringList>(&d)->count() == 1;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
v_cast<QStringList>(&d)->count() == 1;
executed 18 times by 3 tests: return v_cast<QStringList>(&d)->count() == 1;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
18
2023 return
executed 12727 times by 65 tests: return currentType < qCanConvertMatrixMaximumTargetType && qCanConvertMatrix[targetTypeId] & (1U << currentType);
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
currentType < qCanConvertMatrixMaximumTargetType
currentType < ...imumTargetTypeDescription
TRUEevaluated 12727 times by 65 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
FALSEnever evaluated
executed 12727 times by 65 tests: return currentType < qCanConvertMatrixMaximumTargetType && qCanConvertMatrix[targetTypeId] & (1U << currentType);
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
0-12727
2024 && qCanConvertMatrix[targetTypeId] & (1U << currentType)
qCanConvertMat...< currentType)Description
TRUEevaluated 1771 times by 42 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSettings
  • tst_QSignalSpy
  • tst_QSpinBox
  • tst_QSqlQueryModel
  • tst_QSqlRecord
  • ...
FALSEevaluated 10956 times by 39 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QDBusAbstractInterface
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QSettings
  • ...
;
executed 12727 times by 65 tests: return currentType < qCanConvertMatrixMaximumTargetType && qCanConvertMatrix[targetTypeId] & (1U << currentType);
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
1771-12727
2025}-
2026bool QVariant::convert(int targetTypeId)-
2027{-
2028 if (d.type == uint(targetTypeId)
d.type == uint(targetTypeId)Description
TRUEevaluated 1355 times by 27 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QVariant
  • tst_QWidget
  • ...
FALSEevaluated 6205 times by 51 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • ...
)
1355-6205
2029 return
executed 1355 times by 27 tests: return true;
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QVariant
  • tst_QWidget
  • ...
true;
executed 1355 times by 27 tests: return true;
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QVariant
  • tst_QWidget
  • ...
1355
2030-
2031 QVariant oldValue = *this;-
2032-
2033 clear();-
2034 if (!oldValue.canConvert(targetTypeId)
!oldValue.canC...(targetTypeId)Description
TRUEevaluated 5450 times by 34 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QDBusAbstractInterface
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSqlTableModel
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 755 times by 30 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QSettings
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QTreeWidget
  • ...
)
755-5450
2035 return
executed 5450 times by 34 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QDBusAbstractInterface
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSqlTableModel
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • ...
false;
executed 5450 times by 34 tests: return false;
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QDBusAbstractInterface
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QSqlTableModel
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • ...
5450
2036-
2037 create(targetTypeId, 0);-
2038 if (oldValue.isNull()
oldValue.isNull()Description
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
FALSEevaluated 735 times by 30 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QSettings
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QTreeWidget
  • ...
)
20-735
2039 return
executed 20 times by 2 tests: return false;
Executed by:
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
false;
executed 20 times by 2 tests: return false;
Executed by:
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
20
2040-
2041 if ((QMetaType::typeFlags(oldValue.userType()) & QMetaType::PointerToQObject) && (QMetaType::typeFlags(targetTypeId) & QMetaType::PointerToQObject)) {-
2042 create(targetTypeId, &oldValue.d.data.o);-
2043 return
executed 7 times by 3 tests: return true;
Executed by:
  • tst_QMetaProperty
  • tst_QVariant
  • tst_QWidgetsVariant
true;
executed 7 times by 3 tests: return true;
Executed by:
  • tst_QMetaProperty
  • tst_QVariant
  • tst_QWidgetsVariant
7
2044 }-
2045-
2046 bool isOk = true;-
2047 int converterType = std::max(oldValue.userType(), targetTypeId);-
2048 if (!handlerManager[converterType]->convert(&oldValue.d, targetTypeId, data(), &isOk)
!handlerManage...data(), &isOk)Description
TRUEevaluated 60 times by 7 tests
Evaluated by:
  • tst_QDataWidgetMapper
  • tst_QGuiVariant
  • tst_QObject
  • tst_QSqlRelationalTableModel
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 668 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QSettings
  • tst_QSqlTableModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidget
  • ...
)
60-668
2049 isOk = false;
executed 60 times by 7 tests: isOk = false;
Executed by:
  • tst_QDataWidgetMapper
  • tst_QGuiVariant
  • tst_QObject
  • tst_QSqlRelationalTableModel
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
60
2050 d.is_null = !isOk;-
2051 return
executed 728 times by 29 tests: return isOk;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QSettings
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QTreeWidget
  • ...
isOk;
executed 728 times by 29 tests: return isOk;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QSettings
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QTreeWidget
  • ...
728
2052}-
2053-
2054-
2055-
2056-
2057-
2058-
2059bool QVariant::convert(const int type, void *ptr) const-
2060{-
2061 return
executed 368846 times by 118 tests: return handlerManager[type]->convert(&d, type, ptr, 0);
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
handlerManager[type]->convert(&d, type, ptr, 0);
executed 368846 times by 118 tests: return handlerManager[type]->convert(&d, type, ptr, 0);
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
368846
2062}-
2063static bool qIsNumericType(uint tp)-
2064{-
2065 static const qulonglong numericTypeBits =-
2066 static_cast<unsigned long long>(1ULL) << QMetaType::Bool |-
2067 static_cast<unsigned long long>(1ULL) << QMetaType::Double |-
2068 static_cast<unsigned long long>(1ULL) << QMetaType::Float |-
2069 static_cast<unsigned long long>(1ULL) << QMetaType::Char |-
2070 static_cast<unsigned long long>(1ULL) << QMetaType::SChar |-
2071 static_cast<unsigned long long>(1ULL) << QMetaType::UChar |-
2072 static_cast<unsigned long long>(1ULL) << QMetaType::Short |-
2073 static_cast<unsigned long long>(1ULL) << QMetaType::UShort |-
2074 static_cast<unsigned long long>(1ULL) << QMetaType::Int |-
2075 static_cast<unsigned long long>(1ULL) << QMetaType::UInt |-
2076 static_cast<unsigned long long>(1ULL) << QMetaType::Long |-
2077 static_cast<unsigned long long>(1ULL) << QMetaType::ULong |-
2078 static_cast<unsigned long long>(1ULL) << QMetaType::LongLong |-
2079 static_cast<unsigned long long>(1ULL) << QMetaType::ULongLong;-
2080 return
executed 968818 times by 117 tests: return tp < (8 * sizeof numericTypeBits) ? numericTypeBits & (static_cast<unsigned long long>(1ULL) << tp) : false;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
tp < (8 * sizeof numericTypeBits)
tp < (8 * size...mericTypeBits)Description
TRUEevaluated 966796 times by 108 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • ...
FALSEevaluated 2022 times by 57 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QApplication
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIdentityProxyModel
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMessageBox
  • ...
? numericTypeBits & (static_cast<unsigned long long>(1ULL) << tp) : false;
executed 968818 times by 117 tests: return tp < (8 * sizeof numericTypeBits) ? numericTypeBits & (static_cast<unsigned long long>(1ULL) << tp) : false;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
2022-968818
2081}-
2082-
2083static bool qIsFloatingPoint(uint tp)-
2084{-
2085 return
executed 429632 times by 84 tests: return tp == QVariant::Double || tp == QMetaType::Float;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGraphicsItem
  • ...
tp == QVariant::Double
tp == QVariant::DoubleDescription
TRUEevaluated 5538 times by 32 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlField
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
FALSEevaluated 424094 times by 83 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
|| tp == QMetaType::Float
tp == QMetaType::FloatDescription
TRUEevaluated 191 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 423903 times by 83 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
;
executed 429632 times by 84 tests: return tp == QVariant::Double || tp == QMetaType::Float;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGraphicsItem
  • ...
191-429632
2086}-
2087-
2088static int normalizeLowerRanks(uint tp)-
2089{-
2090 static const qulonglong numericTypeBits =-
2091 static_cast<unsigned long long>(1ULL) << QMetaType::Bool |-
2092 static_cast<unsigned long long>(1ULL) << QMetaType::Char |-
2093 static_cast<unsigned long long>(1ULL) << QMetaType::SChar |-
2094 static_cast<unsigned long long>(1ULL) << QMetaType::UChar |-
2095 static_cast<unsigned long long>(1ULL) << QMetaType::Short |-
2096 static_cast<unsigned long long>(1ULL) << QMetaType::UShort;-
2097 return
executed 423818 times by 83 tests: return numericTypeBits & (static_cast<unsigned long long>(1ULL) << tp) ? QVariant::Int : tp;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
numericTypeBits & (static_cast<unsigned long long>(1ULL) << tp)
numericTypeBit...>(1ULL) << tp)Description
TRUEevaluated 1312 times by 19 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QSqlField
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QSyntaxHighlighter
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTextPieceTable
  • tst_QVariant
FALSEevaluated 422506 times by 79 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
? QVariant::Int : tp;
executed 423818 times by 83 tests: return numericTypeBits & (static_cast<unsigned long long>(1ULL) << tp) ? QVariant::Int : tp;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
1312-423818
2098}-
2099-
2100static int normalizeLong(uint tp)-
2101{-
2102 const uint IntType = sizeof(long) == sizeof(int)
sizeof(long) == sizeof(int)Description
TRUEnever evaluated
FALSEevaluated 423818 times by 83 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
? QVariant::Int : QVariant::LongLong;
0-423818
2103 const uint UIntType = sizeof(ulong) == sizeof(uint)
sizeof(ulong) == sizeof(uint)Description
TRUEnever evaluated
FALSEevaluated 423818 times by 83 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
? QVariant::UInt : QVariant::ULongLong;
0-423818
2104 return
executed 423818 times by 83 tests: return tp == QMetaType::Long ? IntType : tp == QMetaType::ULong ? UIntType : tp;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
tp == QMetaType::Long
tp == QMetaType::LongDescription
TRUEevaluated 102 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 423716 times by 83 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
? IntType :
executed 423818 times by 83 tests: return tp == QMetaType::Long ? IntType : tp == QMetaType::ULong ? UIntType : tp;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
102-423818
2105 tp == QMetaType::ULong
tp == QMetaType::ULongDescription
TRUEevaluated 84 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 423632 times by 83 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
? UIntType : tp;
executed 423818 times by 83 tests: return tp == QMetaType::Long ? IntType : tp == QMetaType::ULong ? UIntType : tp;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
84-423818
2106}-
2107-
2108static int numericTypePromotion(uint t1, uint t2)-
2109{-
2110 ((!(qIsNumericType(t1))) ? qt_assert("qIsNumericType(t1)",__FILE__,3397) : qt_noop());-
2111 ((!(qIsNumericType(t2))) ? qt_assert("qIsNumericType(t2)",__FILE__,3398) : qt_noop());-
2112 if (qIsFloatingPoint(t1)
qIsFloatingPoint(t1)Description
TRUEevaluated 5644 times by 32 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlField
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
FALSEevaluated 211994 times by 83 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
|| qIsFloatingPoint(t2)
qIsFloatingPoint(t2)Description
TRUEevaluated 85 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 211909 times by 83 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
85-211994
2113 return
executed 5729 times by 32 tests: return QMetaType::QReal;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlField
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
QMetaType::QReal;
executed 5729 times by 32 tests: return QMetaType::QReal;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlField
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
5729
2114-
2115-
2116-
2117 t1 = normalizeLowerRanks(t1);-
2118 t2 = normalizeLowerRanks(t2);-
2119-
2120-
2121 t1 = normalizeLong(t1);-
2122 t2 = normalizeLong(t2);-
2123-
2124-
2125-
2126-
2127-
2128-
2129 if (t1 == QVariant::ULongLong
t1 == QVariant::ULongLongDescription
TRUEevaluated 201 times by 3 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QVariant
FALSEevaluated 211708 times by 83 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
|| t2 == QVariant::ULongLong
t2 == QVariant::ULongLongDescription
TRUEevaluated 105 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 211603 times by 83 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
105-211708
2130 return
executed 306 times by 3 tests: return QVariant::ULongLong;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QVariant
QVariant::ULongLong;
executed 306 times by 3 tests: return QVariant::ULongLong;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QVariant
306
2131 if (t1 == QVariant::LongLong
t1 == QVariant::LongLongDescription
TRUEevaluated 1989 times by 13 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQueryModel
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_Spdy
FALSEevaluated 209614 times by 77 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • ...
|| t2 == QVariant::LongLong
t2 == QVariant::LongLongDescription
TRUEevaluated 102 times by 3 tests
Evaluated by:
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QVariant
FALSEevaluated 209512 times by 77 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • ...
)
102-209614
2132 return
executed 2091 times by 14 tests: return QVariant::LongLong;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_Spdy
QVariant::LongLong;
executed 2091 times by 14 tests: return QVariant::LongLong;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_Spdy
2091
2133 if (t1 == QVariant::UInt
t1 == QVariant::UIntDescription
TRUEevaluated 310 times by 10 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QVariant
FALSEevaluated 209202 times by 77 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • ...
|| t2 == QVariant::UInt
t2 == QVariant::UIntDescription
TRUEevaluated 235 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 208967 times by 77 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • ...
)
235-209202
2134 return
executed 545 times by 10 tests: return QVariant::UInt;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QVariant
QVariant::UInt;
executed 545 times by 10 tests: return QVariant::UInt;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QVariant
545
2135 return
executed 208967 times by 77 tests: return QVariant::Int;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • ...
QVariant::Int;
executed 208967 times by 77 tests: return QVariant::Int;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • ...
208967
2136}-
2137-
2138static int integralCompare(uint promotedType, const QVariant::Private *d1, const QVariant::Private *d2)-
2139{-
2140-
2141 bool ok;-
2142 qlonglong l1 = qConvertToNumber(d1, &ok);-
2143 ((!(ok)) ? qt_assert("ok",__FILE__,3446) : qt_noop());-
2144-
2145 qlonglong l2 = qConvertToNumber(d2, &ok);-
2146 ((!(ok)) ? qt_assert("ok",__FILE__,3449) : qt_noop());-
2147-
2148 if (promotedType == QVariant::Int
promotedType == QVariant::IntDescription
TRUEevaluated 208967 times by 77 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • ...
FALSEevaluated 2942 times by 21 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_Spdy
)
2942-208967
2149 return
executed 208967 times by 77 tests: return int(l1) < int(l2) ? -1 : int(l1) == int(l2) ? 0 : 1;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • ...
int(l1) < int(l2)
int(l1) < int(l2)Description
TRUEevaluated 1197 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QSpinBox
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QVariant
  • tst_languageChange
FALSEevaluated 207770 times by 75 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QIdentityProxyModel
  • tst_QInputDialog
  • ...
? -1 : int(l1) == int(l2)
int(l1) == int(l2)Description
TRUEevaluated 204111 times by 72 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QIdentityProxyModel
  • tst_QInputDialog
  • ...
FALSEevaluated 3659 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDateTimeEdit
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QMenu
  • tst_QMetaType
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QSortFilterProxyModel
  • tst_QSpinBox
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QState
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QTreeView
  • ...
? 0 : 1;
executed 208967 times by 77 tests: return int(l1) < int(l2) ? -1 : int(l1) == int(l2) ? 0 : 1;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • ...
1197-208967
2150 if (promotedType == QVariant::UInt
promotedType == QVariant::UIntDescription
TRUEevaluated 545 times by 10 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QVariant
FALSEevaluated 2397 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_Spdy
)
545-2397
2151 return
executed 545 times by 10 tests: return uint(l1) < uint(l2) ? -1 : uint(l1) == uint(l2) ? 0 : 1;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QVariant
uint(l1) < uint(l2)
uint(l1) < uint(l2)Description
TRUEevaluated 156 times by 2 tests
Evaluated by:
  • tst_QItemDelegate
  • tst_QVariant
FALSEevaluated 389 times by 10 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QVariant
? -1 : uint(l1) == uint(l2)
uint(l1) == uint(l2)Description
TRUEevaluated 233 times by 9 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QVariant
FALSEevaluated 156 times by 2 tests
Evaluated by:
  • tst_QItemDelegate
  • tst_QVariant
? 0 : 1;
executed 545 times by 10 tests: return uint(l1) < uint(l2) ? -1 : uint(l1) == uint(l2) ? 0 : 1;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QVariant
156-545
2152 if (promotedType == QVariant::LongLong
promotedType =...iant::LongLongDescription
TRUEevaluated 2091 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_Spdy
FALSEevaluated 306 times by 3 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QVariant
)
306-2091
2153 return
executed 2091 times by 14 tests: return l1 < l2 ? -1 : l1 == l2 ? 0 : 1;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_Spdy
l1 < l2
l1 < l2Description
TRUEevaluated 125 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QVariant
FALSEevaluated 1966 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_Spdy
? -1 : l1 == l2
l1 == l2Description
TRUEevaluated 699 times by 13 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQueryModel
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_Spdy
FALSEevaluated 1267 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_Spdy
? 0 : 1;
executed 2091 times by 14 tests: return l1 < l2 ? -1 : l1 == l2 ? 0 : 1;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_Spdy
125-2091
2154 if (promotedType == QVariant::ULongLong
promotedType =...ant::ULongLongDescription
TRUEevaluated 306 times by 3 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QVariant
FALSEnever evaluated
)
0-306
2155 return
executed 306 times by 3 tests: return qulonglong(l1) < qulonglong(l2) ? -1 : qulonglong(l1) == qulonglong(l2) ? 0 : 1;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QVariant
qulonglong(l1) < qulonglong(l2)
qulonglong(l1)...qulonglong(l2)Description
TRUEevaluated 90 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 216 times by 3 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QVariant
? -1 : qulonglong(l1) == qulonglong(l2)
qulonglong(l1)...qulonglong(l2)Description
TRUEevaluated 126 times by 3 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QVariant
FALSEevaluated 90 times by 1 test
Evaluated by:
  • tst_QVariant
? 0 : 1;
executed 306 times by 3 tests: return qulonglong(l1) < qulonglong(l2) ? -1 : qulonglong(l1) == qulonglong(l2) ? 0 : 1;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QVariant
90-306
2156-
2157 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,3460) : qt_noop()); __builtin_unreachable(); } while (0);-
2158 return
never executed: return 0;
0;
never executed: return 0;
0
2159}-
2160-
2161static int numericCompare(const QVariant::Private *d1, const QVariant::Private *d2)-
2162{-
2163 uint promotedType = numericTypePromotion(d1->type, d2->type);-
2164 if (promotedType != QMetaType::QReal
promotedType !...etaType::QRealDescription
TRUEevaluated 211909 times by 83 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 5729 times by 32 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlField
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
)
5729-211909
2165 return
executed 211909 times by 83 tests: return integralCompare(promotedType, d1, d2);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
integralCompare(promotedType, d1, d2);
executed 211909 times by 83 tests: return integralCompare(promotedType, d1, d2);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
211909
2166-
2167-
2168 bool ok;-
2169 qreal r1 = qConvertToRealNumber(d1, &ok);-
2170 ((!(ok)) ? qt_assert("ok",__FILE__,3473) : qt_noop());-
2171 qreal r2 = qConvertToRealNumber(d2, &ok);-
2172 ((!(ok)) ? qt_assert("ok",__FILE__,3475) : qt_noop());-
2173 if (r1 == r2
r1 == r2Description
TRUEevaluated 2998 times by 32 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlField
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
FALSEevaluated 2731 times by 8 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStateMachine
  • tst_QVariant
|| qFuzzyCompare(r1, r2)
qFuzzyCompare(r1, r2)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 2721 times by 8 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStateMachine
  • tst_QVariant
)
10-2998
2174 return
executed 3008 times by 32 tests: return 0;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlField
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
0;
executed 3008 times by 32 tests: return 0;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDoubleSpinBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlField
  • tst_QSqlRecord
  • tst_QStateMachine
  • tst_QStaticText
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
3008
2175 return
executed 2721 times by 8 tests: return r1 < r2 ? -1 : 1;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStateMachine
  • tst_QVariant
r1 < r2
r1 < r2Description
TRUEevaluated 723 times by 8 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStateMachine
  • tst_QVariant
FALSEevaluated 1998 times by 8 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStateMachine
  • tst_QVariant
? -1 : 1;
executed 2721 times by 8 tests: return r1 < r2 ? -1 : 1;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStateMachine
  • tst_QVariant
723-2721
2176}-
2177-
2178-
2179-
2180-
2181bool QVariant::cmp(const QVariant &v) const-
2182{-
2183-
2184 if (qIsNumericType(d.type)
qIsNumericType(d.type)Description
TRUEevaluated 216030 times by 85 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGraphicsItem
  • ...
FALSEevaluated 97768 times by 92 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFormLayout
  • ...
&& qIsNumericType(v.d.type)
qIsNumericType(v.d.type)Description
TRUEevaluated 215893 times by 84 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGraphicsItem
  • ...
FALSEevaluated 137 times by 8 tests
Evaluated by:
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSettings
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
)
137-216030
2185 return
executed 215893 times by 84 tests: return numericCompare(&d, &v.d) == 0;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGraphicsItem
  • ...
numericCompare(&d, &v.d) == 0;
executed 215893 times by 84 tests: return numericCompare(&d, &v.d) == 0;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGraphicsItem
  • ...
215893
2186-
2187 QVariant v1 = *this;-
2188 QVariant v2 = v;-
2189 if (d.type != v2.d.type
d.type != v2.d.typeDescription
TRUEevaluated 1583 times by 14 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDateTimeEdit
  • tst_QItemModel
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSettings
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTableWidget
  • tst_QTextDocument
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 96322 times by 92 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFormLayout
  • ...
) {
1583-96322
2190 if (v2.canConvert(v1.d.type)
v2.canConvert(v1.d.type)Description
TRUEevaluated 125 times by 8 tests
Evaluated by:
  • tst_QCssParser
  • tst_QMetaType
  • tst_QSettings
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 1458 times by 11 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QDateTimeEdit
  • tst_QItemModel
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSqlTableModel
  • tst_QTableWidget
  • tst_QTextDocument
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
) {
125-1458
2191 if (!v2.convert(v1.d.type)
!v2.convert(v1.d.type)Description
TRUEevaluated 72 times by 6 tests
Evaluated by:
  • tst_QMetaType
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 53 times by 6 tests
Evaluated by:
  • tst_QCssParser
  • tst_QMetaType
  • tst_QSettings
  • tst_QSqlTableModel
  • tst_QTreeWidget
  • tst_QVariant
)
53-72
2192 return
executed 72 times by 6 tests: return false;
Executed by:
  • tst_QMetaType
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
false;
executed 72 times by 6 tests: return false;
Executed by:
  • tst_QMetaType
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
72
2193 }
executed 53 times by 6 tests: end of block
Executed by:
  • tst_QCssParser
  • tst_QMetaType
  • tst_QSettings
  • tst_QSqlTableModel
  • tst_QTreeWidget
  • tst_QVariant
else {
53
2194-
2195 qSwap(v1, v2);-
2196 if (!v2.convert(v1.d.type)
!v2.convert(v1.d.type)Description
TRUEevaluated 1453 times by 11 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QDateTimeEdit
  • tst_QItemModel
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSqlTableModel
  • tst_QTableWidget
  • tst_QTextDocument
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
)
5-1453
2197 return
executed 1453 times by 11 tests: return false;
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QDateTimeEdit
  • tst_QItemModel
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSqlTableModel
  • tst_QTableWidget
  • tst_QTextDocument
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
false;
executed 1453 times by 11 tests: return false;
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QDateTimeEdit
  • tst_QItemModel
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSqlTableModel
  • tst_QTableWidget
  • tst_QTextDocument
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
1453
2198 }
executed 5 times by 2 tests: end of block
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
2199 }-
2200 if (v1.d.type >= QMetaType::User
v1.d.type >= QMetaType::UserDescription
TRUEevaluated 362 times by 24 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
FALSEevaluated 96018 times by 84 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • ...
) {
362-96018
2201 int result;-
2202 if (QMetaType::equals(::constData(v1.d), ::constData(v2.d), v1.d.type, &result)
QMetaType::equ...type, &result)Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 345 times by 23 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
)
17-345
2203 return
executed 17 times by 1 test: return result == 0;
Executed by:
  • tst_QMetaType
result == 0;
executed 17 times by 1 test: return result == 0;
Executed by:
  • tst_QMetaType
17
2204 }
executed 345 times by 23 tests: end of block
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
345
2205 return
executed 96363 times by 92 tests: return handlerManager[v1.d.type]->compare(&v1.d, &v2.d);
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFormLayout
  • ...
handlerManager[v1.d.type]->compare(&v1.d, &v2.d);
executed 96363 times by 92 tests: return handlerManager[v1.d.type]->compare(&v1.d, &v2.d);
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFormLayout
  • ...
96363
2206}-
2207-
2208-
2209-
2210-
2211int QVariant::compare(const QVariant &v) const-
2212{-
2213-
2214 if (qIsNumericType(d.type)
qIsNumericType(d.type)Description
TRUEevaluated 1754 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 198 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
&& qIsNumericType(v.d.type)
qIsNumericType(v.d.type)Description
TRUEevaluated 1745 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
)
9-1754
2215 return
executed 1745 times by 2 tests: return numericCompare(&d, &v.d);
Executed by:
  • tst_QMetaType
  • tst_QVariant
numericCompare(&d, &v.d);
executed 1745 times by 2 tests: return numericCompare(&d, &v.d);
Executed by:
  • tst_QMetaType
  • tst_QVariant
1745
2216-
2217-
2218 if (cmp(v)
cmp(v)Description
TRUEevaluated 37 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 170 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
)
37-170
2219 return
executed 37 times by 2 tests: return 0;
Executed by:
  • tst_QMetaType
  • tst_QVariant
0;
executed 37 times by 2 tests: return 0;
Executed by:
  • tst_QMetaType
  • tst_QVariant
37
2220-
2221 QVariant v1 = *this;-
2222 QVariant v2 = v;-
2223-
2224 if (v1.d.type != v2.d.type
v1.d.type != v2.d.typeDescription
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 158 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
) {
12-158
2225-
2226 if (v2.canConvert(v1.d.type)
v2.canConvert(v1.d.type)Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
) {
5-7
2227 QVariant temp = v2;-
2228 if (temp.convert(v1.d.type)
temp.convert(v1.d.type)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
)
2-3
2229 v2 = temp;
executed 2 times by 1 test: v2 = temp;
Executed by:
  • tst_QMetaType
2
2230 }
executed 5 times by 2 tests: end of block
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
2231 if (v1.d.type != v2.d.type
v1.d.type != v2.d.typeDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
&& v1.canConvert(v2.d.type)
v1.canConvert(v2.d.type)Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
) {
2-10
2232 QVariant temp = v1;-
2233 if (temp.convert(v2.d.type)
temp.convert(v2.d.type)Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEnever evaluated
)
0-5
2234 v1 = temp;
executed 5 times by 2 tests: v1 = temp;
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
2235 }
executed 5 times by 2 tests: end of block
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
2236 if (v1.d.type != v2.d.type
v1.d.type != v2.d.typeDescription
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
) {
5-7
2237-
2238 int r = v1.toString().compare(v2.toString(), Qt::CaseInsensitive);-
2239 if (r == 0
r == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
) {
2-3
2240-
2241 return
executed 2 times by 1 test: return (v1.d.type < v2.d.type) ? -1 : 1;
Executed by:
  • tst_QVariant
(
(v1.d.type < v2.d.type)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
v1.d.type < v2.d.type)
(v1.d.type < v2.d.type)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
? -1 : 1;
executed 2 times by 1 test: return (v1.d.type < v2.d.type) ? -1 : 1;
Executed by:
  • tst_QVariant
0-2
2242 }-
2243 return
executed 3 times by 2 tests: return r;
Executed by:
  • tst_QMetaType
  • tst_QVariant
r;
executed 3 times by 2 tests: return r;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
2244 }-
2245-
2246-
2247 if (qIsNumericType(v1.d.type)
qIsNumericType(v1.d.type)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
&& qIsNumericType(v2.d.type)
qIsNumericType(v2.d.type)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
FALSEnever evaluated
)
0-6
2248 return
executed 1 time by 1 test: return v1.compare(v2);
Executed by:
  • tst_QMetaType
v1.compare(v2);
executed 1 time by 1 test: return v1.compare(v2);
Executed by:
  • tst_QMetaType
1
2249 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_QMetaType
  • tst_QVariant
6
2250 if (v1.d.type >= QMetaType::User
v1.d.type >= QMetaType::UserDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 157 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
) {
7-157
2251 int result;-
2252 if (QMetaType::compare(::constData(d), ::constData(v2.d), d.type, &result)
QMetaType::com...type, &result)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
)
2-5
2253 return
executed 5 times by 1 test: return result;
Executed by:
  • tst_QMetaType
result;
executed 5 times by 1 test: return result;
Executed by:
  • tst_QMetaType
5
2254 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QMetaType
2
2255 switch (v1.d.type) {-
2256 case
executed 16 times by 2 tests: case QVariant::Date:
Executed by:
  • tst_QMetaType
  • tst_QVariant
QVariant::Date:
executed 16 times by 2 tests: case QVariant::Date:
Executed by:
  • tst_QMetaType
  • tst_QVariant
16
2257 return
executed 16 times by 2 tests: return v1.toDate() < v2.toDate() ? -1 : 1;
Executed by:
  • tst_QMetaType
  • tst_QVariant
v1.toDate() < v2.toDate()
v1.toDate() < v2.toDate()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
? -1 : 1;
executed 16 times by 2 tests: return v1.toDate() < v2.toDate() ? -1 : 1;
Executed by:
  • tst_QMetaType
  • tst_QVariant
8-16
2258 case
executed 15 times by 2 tests: case QVariant::Time:
Executed by:
  • tst_QMetaType
  • tst_QVariant
QVariant::Time:
executed 15 times by 2 tests: case QVariant::Time:
Executed by:
  • tst_QMetaType
  • tst_QVariant
15
2259 return
executed 15 times by 2 tests: return v1.toTime() < v2.toTime() ? -1 : 1;
Executed by:
  • tst_QMetaType
  • tst_QVariant
v1.toTime() < v2.toTime()
v1.toTime() < v2.toTime()Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
? -1 : 1;
executed 15 times by 2 tests: return v1.toTime() < v2.toTime() ? -1 : 1;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7-15
2260 case
executed 8 times by 1 test: case QVariant::DateTime:
Executed by:
  • tst_QVariant
QVariant::DateTime:
executed 8 times by 1 test: case QVariant::DateTime:
Executed by:
  • tst_QVariant
8
2261 return
executed 8 times by 1 test: return v1.toDateTime() < v2.toDateTime() ? -1 : 1;
Executed by:
  • tst_QVariant
v1.toDateTime() < v2.toDateTime()
v1.toDateTime(...2.toDateTime()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QVariant
? -1 : 1;
executed 8 times by 1 test: return v1.toDateTime() < v2.toDateTime() ? -1 : 1;
Executed by:
  • tst_QVariant
4-8
2262 case
executed 56 times by 1 test: case QVariant::StringList:
Executed by:
  • tst_QVariant
QVariant::StringList:
executed 56 times by 1 test: case QVariant::StringList:
Executed by:
  • tst_QVariant
56
2263 return
executed 56 times by 1 test: return v1.toStringList() < v2.toStringList() ? -1 : 1;
Executed by:
  • tst_QVariant
v1.toStringList() < v2.toStringList()
v1.toStringLis...toStringList()Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QVariant
? -1 : 1;
executed 56 times by 1 test: return v1.toStringList() < v2.toStringList() ? -1 : 1;
Executed by:
  • tst_QVariant
28-56
2264 }-
2265 int r = v1.toString().compare(v2.toString(), Qt::CaseInsensitive);-
2266 if (r == 0
r == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 62 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
) {
2-62
2267-
2268 return
executed 2 times by 1 test: return (d.type < v.d.type) ? -1 : 1;
Executed by:
  • tst_QMetaType
(
(d.type < v.d.type)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
d.type < v.d.type)
(d.type < v.d.type)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
? -1 : 1;
executed 2 times by 1 test: return (d.type < v.d.type) ? -1 : 1;
Executed by:
  • tst_QMetaType
0-2
2269 }-
2270 return
executed 62 times by 2 tests: return r;
Executed by:
  • tst_QMetaType
  • tst_QVariant
r;
executed 62 times by 2 tests: return r;
Executed by:
  • tst_QMetaType
  • tst_QVariant
62
2271}-
2272-
2273-
2274-
2275-
2276-
2277const void *QVariant::constData() const-
2278{-
2279 return
executed 8562213 times by 404 tests: return d.is_shared ? d.data.shared->ptr : reinterpret_cast<const void *>(&d.data.ptr);
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
d.is_shared
d.is_sharedDescription
TRUEevaluated 25883 times by 191 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • ...
FALSEevaluated 8536330 times by 399 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
? d.data.shared->ptr : reinterpret_cast<const void *>(&d.data.ptr);
executed 8562213 times by 404 tests: return d.is_shared ? d.data.shared->ptr : reinterpret_cast<const void *>(&d.data.ptr);
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
25883-8562213
2280}-
2281void* QVariant::data()-
2282{-
2283 detach();-
2284 return
executed 43743 times by 164 tests: return const_cast<void *>(constData());
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • ...
const_cast<void *>(constData());
executed 43743 times by 164 tests: return const_cast<void *>(constData());
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • ...
43743
2285}-
2286bool QVariant::isNull() const-
2287{-
2288 return
executed 418643 times by 135 tests: return handlerManager[d.type]->isNull(&d);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirModel
  • ...
handlerManager[d.type]->isNull(&d);
executed 418643 times by 135 tests: return handlerManager[d.type]->isNull(&d);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirModel
  • ...
418643
2289}-
2290-
2291-
2292QDebug operator<<(QDebug dbg, const QVariant &v)-
2293{-
2294 QDebugStateSaver saver(dbg);-
2295 const uint typeId = v.d.type;-
2296 dbg.nospace() << "QVariant(";-
2297 if (typeId != QMetaType::UnknownType
typeId != QMet...e::UnknownTypeDescription
TRUEevaluated 81 times by 5 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
) {
2-81
2298 dbg << QMetaType::typeName(typeId) << ", ";-
2299 bool userStream = false;-
2300 bool canConvertToString = false;-
2301 if (typeId >= QMetaType::User
typeId >= QMetaType::UserDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 75 times by 4 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
) {
6-75
2302 userStream = QMetaType::debugStream(dbg, constData(v.d), typeId);-
2303 canConvertToString = v.canConvert<QString>();-
2304 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_QMetaType
  • tst_QVariant
6
2305 if (!userStream
!userStreamDescription
TRUEevaluated 80 times by 5 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
&& canConvertToString
canConvertToStringDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 79 times by 5 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
)
1-80
2306 dbg << v.toString();
executed 1 time by 1 test: dbg << v.toString();
Executed by:
  • tst_QMetaType
1
2307 else if (!userStream
!userStreamDescription
TRUEevaluated 79 times by 5 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
)
1-79
2308 handlerManager[typeId]->debugStream(dbg, v);
executed 79 times by 5 tests: handlerManager[typeId]->debugStream(dbg, v);
Executed by:
  • tst_QDBusInterface
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
79
2309 }
executed 81 times by 5 tests: end of block
Executed by:
  • tst_QDBusInterface
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
else {
81
2310 dbg << "Invalid";-
2311 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QVariant
2
2312 dbg << ')';-
2313 return
executed 83 times by 5 tests: return dbg;
Executed by:
  • tst_QDBusInterface
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
dbg;
executed 83 times by 5 tests: return dbg;
Executed by:
  • tst_QDBusInterface
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
83
2314}-
2315-
2316QDebug operator<<(QDebug dbg, const QVariant::Type p)-
2317{-
2318 QDebugStateSaver saver(dbg);-
2319 dbg.nospace() << "QVariant::"-
2320 << (int(p) != int(QMetaType::UnknownType)-
2321 ? QMetaType::typeName(p)-
2322 : "Invalid");-
2323 return
executed 54 times by 1 test: return dbg;
Executed by:
  • tst_QVariant
dbg;
executed 54 times by 1 test: return dbg;
Executed by:
  • tst_QVariant
54
2324}-
2325QSequentialIterable::QSequentialIterable(QtMetaTypePrivate::QSequentialIterableImpl impl)-
2326-
2327-
2328-
2329 : m_impl(impl)-
2330{-
2331}
executed 50 times by 1 test: end of block
Executed by:
  • tst_QVariant
50
2332-
2333QSequentialIterable::const_iterator::const_iterator(const QSequentialIterable &iter, QAtomicInt *ref_)-
2334 : m_impl(iter.m_impl), ref(ref_)-
2335{-
2336 ref->ref();-
2337}
executed 149 times by 1 test: end of block
Executed by:
  • tst_QVariant
149
2338-
2339QSequentialIterable::const_iterator::const_iterator(const QtMetaTypePrivate::QSequentialIterableImpl &impl, QAtomicInt *ref_)-
2340 : m_impl(impl), ref(ref_)-
2341{-
2342 ref->ref();-
2343}
executed 4 times by 1 test: end of block
Executed by:
  • tst_QVariant
4
2344-
2345void QSequentialIterable::const_iterator::begin()-
2346{-
2347 m_impl.moveToBegin();-
2348}
executed 75 times by 1 test: end of block
Executed by:
  • tst_QVariant
75
2349-
2350void QSequentialIterable::const_iterator::end()-
2351{-
2352 m_impl.moveToEnd();-
2353}
executed 74 times by 1 test: end of block
Executed by:
  • tst_QVariant
74
2354QSequentialIterable::const_iterator QSequentialIterable::begin() const-
2355{-
2356 const_iterator it(*this, new QAtomicInt(0));-
2357 it.begin();-
2358 return
executed 75 times by 1 test: return it;
Executed by:
  • tst_QVariant
it;
executed 75 times by 1 test: return it;
Executed by:
  • tst_QVariant
75
2359}-
2360-
2361-
2362-
2363-
2364-
2365-
2366-
2367QSequentialIterable::const_iterator QSequentialIterable::end() const-
2368{-
2369 const_iterator it(*this, new QAtomicInt(0));-
2370 it.end();-
2371 return
executed 74 times by 1 test: return it;
Executed by:
  • tst_QVariant
it;
executed 74 times by 1 test: return it;
Executed by:
  • tst_QVariant
74
2372}-
2373-
2374-
2375-
2376-
2377QVariant QSequentialIterable::at(int idx) const-
2378{-
2379 const QtMetaTypePrivate::VariantData d = m_impl.at(idx);-
2380 if (d.metaTypeId == qMetaTypeId<QVariant>()
d.metaTypeId =...Id<QVariant>()Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 102 times by 1 test
Evaluated by:
  • tst_QVariant
)
42-102
2381 return
executed 42 times by 1 test: return *reinterpret_cast<const QVariant*>(d.data);
Executed by:
  • tst_QVariant
*reinterpret_cast<const QVariant*>(d.data);
executed 42 times by 1 test: return *reinterpret_cast<const QVariant*>(d.data);
Executed by:
  • tst_QVariant
42
2382 return
executed 102 times by 1 test: return QVariant(d.metaTypeId, d.data, d.flags);
Executed by:
  • tst_QVariant
QVariant(d.metaTypeId, d.data, d.flags);
executed 102 times by 1 test: return QVariant(d.metaTypeId, d.data, d.flags);
Executed by:
  • tst_QVariant
102
2383}-
2384-
2385-
2386-
2387-
2388int QSequentialIterable::size() const-
2389{-
2390 return
executed 145 times by 1 test: return m_impl.size();
Executed by:
  • tst_QVariant
m_impl.size();
executed 145 times by 1 test: return m_impl.size();
Executed by:
  • tst_QVariant
145
2391}-
2392-
2393-
2394-
2395-
2396-
2397-
2398bool QSequentialIterable::canReverseIterate() const-
2399{-
2400 return
never executed: return m_impl._iteratorCapabilities & QtMetaTypePrivate::BiDirectionalCapability;
m_impl._iteratorCapabilities & QtMetaTypePrivate::BiDirectionalCapability;
never executed: return m_impl._iteratorCapabilities & QtMetaTypePrivate::BiDirectionalCapability;
0
2401}-
2402QSequentialIterable::const_iterator::~const_iterator() {-
2403 if (!ref->deref()
!ref->deref()Description
TRUEevaluated 152 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
) {
1-152
2404 m_impl.destroyIter();-
2405 delete ref;-
2406 }
executed 152 times by 1 test: end of block
Executed by:
  • tst_QVariant
152
2407}
executed 153 times by 1 test: end of block
Executed by:
  • tst_QVariant
153
2408-
2409-
2410-
2411-
2412QSequentialIterable::const_iterator::const_iterator(const const_iterator &other)-
2413 : m_impl(other.m_impl), ref(other.ref)-
2414{-
2415 ref->ref();-
2416}
never executed: end of block
0
2417-
2418-
2419-
2420-
2421QSequentialIterable::const_iterator&-
2422QSequentialIterable::const_iterator::operator=(const const_iterator &other)-
2423{-
2424 other.ref->ref();-
2425 if (!ref->deref()
!ref->deref()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
) {
0-1
2426 m_impl.destroyIter();-
2427 delete ref;-
2428 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QVariant
1
2429 m_impl = other.m_impl;-
2430 ref = other.ref;-
2431 return
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QVariant
*this;
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QVariant
1
2432}-
2433-
2434-
2435-
2436-
2437const QVariant QSequentialIterable::const_iterator::operator*() const-
2438{-
2439 const QtMetaTypePrivate::VariantData d = m_impl.getCurrent();-
2440 if (d.metaTypeId == qMetaTypeId<QVariant>()
d.metaTypeId =...Id<QVariant>()Description
TRUEevaluated 67 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 155 times by 1 test
Evaluated by:
  • tst_QVariant
)
67-155
2441 return
executed 67 times by 1 test: return *reinterpret_cast<const QVariant*>(d.data);
Executed by:
  • tst_QVariant
*reinterpret_cast<const QVariant*>(d.data);
executed 67 times by 1 test: return *reinterpret_cast<const QVariant*>(d.data);
Executed by:
  • tst_QVariant
67
2442 return
executed 155 times by 1 test: return QVariant(d.metaTypeId, d.data, d.flags);
Executed by:
  • tst_QVariant
QVariant(d.metaTypeId, d.data, d.flags);
executed 155 times by 1 test: return QVariant(d.metaTypeId, d.data, d.flags);
Executed by:
  • tst_QVariant
155
2443}-
2444-
2445-
2446-
2447-
2448-
2449-
2450-
2451bool QSequentialIterable::const_iterator::operator==(const const_iterator &other) const-
2452{-
2453 return
never executed: return m_impl.equal(other.m_impl);
m_impl.equal(other.m_impl);
never executed: return m_impl.equal(other.m_impl);
0
2454}-
2455-
2456-
2457-
2458-
2459-
2460-
2461-
2462bool QSequentialIterable::const_iterator::operator!=(const const_iterator &other) const-
2463{-
2464 return
executed 292 times by 1 test: return !m_impl.equal(other.m_impl);
Executed by:
  • tst_QVariant
!m_impl.equal(other.m_impl);
executed 292 times by 1 test: return !m_impl.equal(other.m_impl);
Executed by:
  • tst_QVariant
292
2465}-
2466QSequentialIterable::const_iterator &QSequentialIterable::const_iterator::operator++()-
2467{-
2468 m_impl.advance(1);-
2469 return
executed 218 times by 1 test: return *this;
Executed by:
  • tst_QVariant
*this;
executed 218 times by 1 test: return *this;
Executed by:
  • tst_QVariant
218
2470}-
2471QSequentialIterable::const_iterator QSequentialIterable::const_iterator::operator++(int)-
2472{-
2473 QtMetaTypePrivate::QSequentialIterableImpl impl;-
2474 impl.copy(m_impl);-
2475 m_impl.advance(1);-
2476 return
executed 3 times by 1 test: return const_iterator(impl, new QAtomicInt(0));
Executed by:
  • tst_QVariant
const_iterator(impl, new QAtomicInt(0));
executed 3 times by 1 test: return const_iterator(impl, new QAtomicInt(0));
Executed by:
  • tst_QVariant
3
2477}-
2478QSequentialIterable::const_iterator &QSequentialIterable::const_iterator::operator--()-
2479{-
2480 m_impl.advance(-1);-
2481 return
never executed: return *this;
*this;
never executed: return *this;
0
2482}-
2483QSequentialIterable::const_iterator QSequentialIterable::const_iterator::operator--(int)-
2484{-
2485 QtMetaTypePrivate::QSequentialIterableImpl impl;-
2486 impl.copy(m_impl);-
2487 m_impl.advance(-1);-
2488 return
never executed: return const_iterator(impl, new QAtomicInt(0));
const_iterator(impl, new QAtomicInt(0));
never executed: return const_iterator(impl, new QAtomicInt(0));
0
2489}-
2490-
2491-
2492-
2493-
2494-
2495-
2496QSequentialIterable::const_iterator &QSequentialIterable::const_iterator::operator+=(int j)-
2497{-
2498 m_impl.advance(j);-
2499 return
never executed: return *this;
*this;
never executed: return *this;
0
2500}-
2501QSequentialIterable::const_iterator &QSequentialIterable::const_iterator::operator-=(int j)-
2502{-
2503 m_impl.advance(-j);-
2504 return
never executed: return *this;
*this;
never executed: return *this;
0
2505}-
2506-
2507-
2508-
2509-
2510-
2511-
2512-
2513QSequentialIterable::const_iterator QSequentialIterable::const_iterator::operator+(int j) const-
2514{-
2515 QtMetaTypePrivate::QSequentialIterableImpl impl;-
2516 impl.copy(m_impl);-
2517 impl.advance(j);-
2518 return
executed 1 time by 1 test: return const_iterator(impl, new QAtomicInt(0));
Executed by:
  • tst_QVariant
const_iterator(impl, new QAtomicInt(0));
executed 1 time by 1 test: return const_iterator(impl, new QAtomicInt(0));
Executed by:
  • tst_QVariant
1
2519}-
2520QSequentialIterable::const_iterator QSequentialIterable::const_iterator::operator-(int j) const-
2521{-
2522 QtMetaTypePrivate::QSequentialIterableImpl impl;-
2523 impl.copy(m_impl);-
2524 impl.advance(-j);-
2525 return
never executed: return const_iterator(impl, new QAtomicInt(0));
const_iterator(impl, new QAtomicInt(0));
never executed: return const_iterator(impl, new QAtomicInt(0));
0
2526}-
2527QAssociativeIterable::QAssociativeIterable(QtMetaTypePrivate::QAssociativeIterableImpl impl)-
2528-
2529-
2530-
2531 : m_impl(impl)-
2532{-
2533}
executed 23 times by 1 test: end of block
Executed by:
  • tst_QVariant
23
2534-
2535QAssociativeIterable::const_iterator::const_iterator(const QAssociativeIterable &iter, QAtomicInt *ref_)-
2536 : m_impl(iter.m_impl), ref(ref_)-
2537{-
2538 ref->ref();-
2539}
executed 71 times by 1 test: end of block
Executed by:
  • tst_QVariant
71
2540-
2541QAssociativeIterable::const_iterator::const_iterator(const QtMetaTypePrivate::QAssociativeIterableImpl &impl, QAtomicInt *ref_)-
2542 : m_impl(impl), ref(ref_)-
2543{-
2544 ref->ref();-
2545}
executed 4 times by 1 test: end of block
Executed by:
  • tst_QVariant
4
2546-
2547void QAssociativeIterable::const_iterator::begin()-
2548{-
2549 m_impl.begin();-
2550}
executed 21 times by 1 test: end of block
Executed by:
  • tst_QVariant
21
2551-
2552void QAssociativeIterable::const_iterator::end()-
2553{-
2554 m_impl.end();-
2555}
executed 35 times by 1 test: end of block
Executed by:
  • tst_QVariant
35
2556-
2557void QAssociativeIterable::const_iterator::find(const QVariant &key)-
2558{-
2559 ((!(key.userType() == m_impl._metaType_id_key)) ? qt_assert("key.userType() == m_impl._metaType_id_key",__FILE__,4207) : qt_noop());-
2560 const QtMetaTypePrivate::VariantData dkey(key.userType(), key.constData(), 0 );-
2561 m_impl.find(dkey);-
2562}
executed 15 times by 1 test: end of block
Executed by:
  • tst_QVariant
15
2563-
2564-
2565-
2566-
2567-
2568-
2569-
2570QAssociativeIterable::const_iterator QAssociativeIterable::begin() const-
2571{-
2572 const_iterator it(*this, new QAtomicInt(0));-
2573 it.begin();-
2574 return
executed 21 times by 1 test: return it;
Executed by:
  • tst_QVariant
it;
executed 21 times by 1 test: return it;
Executed by:
  • tst_QVariant
21
2575}-
2576-
2577-
2578-
2579-
2580-
2581-
2582-
2583QAssociativeIterable::const_iterator QAssociativeIterable::end() const-
2584{-
2585 const_iterator it(*this, new QAtomicInt(0));-
2586 it.end();-
2587 return
executed 35 times by 1 test: return it;
Executed by:
  • tst_QVariant
it;
executed 35 times by 1 test: return it;
Executed by:
  • tst_QVariant
35
2588}-
2589QAssociativeIterable::const_iterator QAssociativeIterable::find(const QVariant &key) const-
2590{-
2591 const_iterator it(*this, new QAtomicInt(0));-
2592 QVariant key_ = key;-
2593 if (key_.canConvert(m_impl._metaType_id_key)
key_.canConver...taType_id_key)Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
&& key_.convert(m_impl._metaType_id_key)
key_.convert(m...taType_id_key)Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
)
0-15
2594 it.find(key_);
executed 15 times by 1 test: it.find(key_);
Executed by:
  • tst_QVariant
15
2595 else-
2596 it.end();
never executed: it.end();
0
2597 return
executed 15 times by 1 test: return it;
Executed by:
  • tst_QVariant
it;
executed 15 times by 1 test: return it;
Executed by:
  • tst_QVariant
15
2598}-
2599-
2600-
2601-
2602-
2603-
2604-
2605QVariant QAssociativeIterable::value(const QVariant &key) const-
2606{-
2607 const const_iterator it = find(key);-
2608 if (it == end()
it == end()Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QVariant
)
0-6
2609 return
never executed: return QVariant();
QVariant();
never executed: return QVariant();
0
2610 return
executed 6 times by 1 test: return *it;
Executed by:
  • tst_QVariant
*it;
executed 6 times by 1 test: return *it;
Executed by:
  • tst_QVariant
6
2611}-
2612-
2613-
2614-
2615-
2616int QAssociativeIterable::size() const-
2617{-
2618 return
executed 6 times by 1 test: return m_impl.size();
Executed by:
  • tst_QVariant
m_impl.size();
executed 6 times by 1 test: return m_impl.size();
Executed by:
  • tst_QVariant
6
2619}-
2620QAssociativeIterable::const_iterator::~const_iterator()-
2621{-
2622 if (!ref->deref()
!ref->deref()Description
TRUEevaluated 74 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
) {
1-74
2623 m_impl.destroyIter();-
2624 delete ref;-
2625 }
executed 74 times by 1 test: end of block
Executed by:
  • tst_QVariant
74
2626}
executed 75 times by 1 test: end of block
Executed by:
  • tst_QVariant
75
2627-
2628-
2629-
2630-
2631QAssociativeIterable::const_iterator::const_iterator(const const_iterator &other)-
2632 : m_impl(other.m_impl), ref(other.ref)-
2633{-
2634 ref->ref();-
2635}
never executed: end of block
0
2636-
2637-
2638-
2639-
2640QAssociativeIterable::const_iterator&-
2641QAssociativeIterable::const_iterator::operator=(const const_iterator &other)-
2642{-
2643 other.ref->ref();-
2644 if (!ref->deref()
!ref->deref()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
) {
0-1
2645 m_impl.destroyIter();-
2646 delete ref;-
2647 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QVariant
1
2648 m_impl = other.m_impl;-
2649 ref = other.ref;-
2650 return
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QVariant
*this;
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QVariant
1
2651}-
2652-
2653-
2654-
2655-
2656const QVariant QAssociativeIterable::const_iterator::operator*() const-
2657{-
2658 const QtMetaTypePrivate::VariantData d = m_impl.getCurrentValue();-
2659 QVariant v(d.metaTypeId, d.data, d.flags);-
2660 if (d.metaTypeId == qMetaTypeId<QVariant>()
d.metaTypeId =...Id<QVariant>()Description
TRUEnever evaluated
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QVariant
)
0-13
2661 return
never executed: return *reinterpret_cast<const QVariant*>(d.data);
*reinterpret_cast<const QVariant*>(d.data);
never executed: return *reinterpret_cast<const QVariant*>(d.data);
0
2662 return
executed 13 times by 1 test: return v;
Executed by:
  • tst_QVariant
v;
executed 13 times by 1 test: return v;
Executed by:
  • tst_QVariant
13
2663}-
2664-
2665-
2666-
2667-
2668const QVariant QAssociativeIterable::const_iterator::key() const-
2669{-
2670 const QtMetaTypePrivate::VariantData d = m_impl.getCurrentKey();-
2671 QVariant v(d.metaTypeId, d.data, d.flags);-
2672 if (d.metaTypeId == qMetaTypeId<QVariant>()
d.metaTypeId =...Id<QVariant>()Description
TRUEnever evaluated
FALSEevaluated 31 times by 1 test
Evaluated by:
  • tst_QVariant
)
0-31
2673 return
never executed: return *reinterpret_cast<const QVariant*>(d.data);
*reinterpret_cast<const QVariant*>(d.data);
never executed: return *reinterpret_cast<const QVariant*>(d.data);
0
2674 return
executed 31 times by 1 test: return v;
Executed by:
  • tst_QVariant
v;
executed 31 times by 1 test: return v;
Executed by:
  • tst_QVariant
31
2675}-
2676-
2677-
2678-
2679-
2680const QVariant QAssociativeIterable::const_iterator::value() const-
2681{-
2682 const QtMetaTypePrivate::VariantData d = m_impl.getCurrentValue();-
2683 QVariant v(d.metaTypeId, d.data, d.flags);-
2684 if (d.metaTypeId == qMetaTypeId<QVariant>()
d.metaTypeId =...Id<QVariant>()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_QVariant
)
6-30
2685 return
executed 6 times by 1 test: return *reinterpret_cast<const QVariant*>(d.data);
Executed by:
  • tst_QVariant
*reinterpret_cast<const QVariant*>(d.data);
executed 6 times by 1 test: return *reinterpret_cast<const QVariant*>(d.data);
Executed by:
  • tst_QVariant
6
2686 return
executed 30 times by 1 test: return v;
Executed by:
  • tst_QVariant
v;
executed 30 times by 1 test: return v;
Executed by:
  • tst_QVariant
30
2687}-
2688-
2689-
2690-
2691-
2692-
2693-
2694-
2695bool QAssociativeIterable::const_iterator::operator==(const const_iterator &other) const-
2696{-
2697 return
executed 9 times by 1 test: return m_impl.equal(other.m_impl);
Executed by:
  • tst_QVariant
m_impl.equal(other.m_impl);
executed 9 times by 1 test: return m_impl.equal(other.m_impl);
Executed by:
  • tst_QVariant
9
2698}-
2699-
2700-
2701-
2702-
2703-
2704-
2705-
2706bool QAssociativeIterable::const_iterator::operator!=(const const_iterator &other) const-
2707{-
2708 return
executed 60 times by 1 test: return !m_impl.equal(other.m_impl);
Executed by:
  • tst_QVariant
!m_impl.equal(other.m_impl);
executed 60 times by 1 test: return !m_impl.equal(other.m_impl);
Executed by:
  • tst_QVariant
60
2709}-
2710QAssociativeIterable::const_iterator &QAssociativeIterable::const_iterator::operator++()-
2711{-
2712 m_impl.advance(1);-
2713 return
executed 34 times by 1 test: return *this;
Executed by:
  • tst_QVariant
*this;
executed 34 times by 1 test: return *this;
Executed by:
  • tst_QVariant
34
2714}-
2715QAssociativeIterable::const_iterator QAssociativeIterable::const_iterator::operator++(int)-
2716{-
2717 QtMetaTypePrivate::QAssociativeIterableImpl impl;-
2718 impl.copy(m_impl);-
2719 m_impl.advance(1);-
2720 return
executed 3 times by 1 test: return const_iterator(impl, new QAtomicInt(0));
Executed by:
  • tst_QVariant
const_iterator(impl, new QAtomicInt(0));
executed 3 times by 1 test: return const_iterator(impl, new QAtomicInt(0));
Executed by:
  • tst_QVariant
3
2721}-
2722QAssociativeIterable::const_iterator &QAssociativeIterable::const_iterator::operator--()-
2723{-
2724 m_impl.advance(-1);-
2725 return
never executed: return *this;
*this;
never executed: return *this;
0
2726}-
2727-
2728-
2729-
2730-
2731-
2732-
2733-
2734QAssociativeIterable::const_iterator QAssociativeIterable::const_iterator::operator--(int)-
2735{-
2736 QtMetaTypePrivate::QAssociativeIterableImpl impl;-
2737 impl.copy(m_impl);-
2738 m_impl.advance(-1);-
2739 return
never executed: return const_iterator(impl, new QAtomicInt(0));
const_iterator(impl, new QAtomicInt(0));
never executed: return const_iterator(impl, new QAtomicInt(0));
0
2740}-
2741-
2742-
2743-
2744-
2745-
2746-
2747QAssociativeIterable::const_iterator &QAssociativeIterable::const_iterator::operator+=(int j)-
2748{-
2749 m_impl.advance(j);-
2750 return
never executed: return *this;
*this;
never executed: return *this;
0
2751}-
2752-
2753-
2754-
2755-
2756-
2757-
2758QAssociativeIterable::const_iterator &QAssociativeIterable::const_iterator::operator-=(int j)-
2759{-
2760 m_impl.advance(-j);-
2761 return
never executed: return *this;
*this;
never executed: return *this;
0
2762}-
2763-
2764-
2765-
2766-
2767-
2768-
2769-
2770QAssociativeIterable::const_iterator QAssociativeIterable::const_iterator::operator+(int j) const-
2771{-
2772 QtMetaTypePrivate::QAssociativeIterableImpl impl;-
2773 impl.copy(m_impl);-
2774 impl.advance(j);-
2775 return
executed 1 time by 1 test: return const_iterator(impl, new QAtomicInt(0));
Executed by:
  • tst_QVariant
const_iterator(impl, new QAtomicInt(0));
executed 1 time by 1 test: return const_iterator(impl, new QAtomicInt(0));
Executed by:
  • tst_QVariant
1
2776}-
2777-
2778-
2779-
2780-
2781-
2782-
2783-
2784QAssociativeIterable::const_iterator QAssociativeIterable::const_iterator::operator-(int j) const-
2785{-
2786 QtMetaTypePrivate::QAssociativeIterableImpl impl;-
2787 impl.copy(m_impl);-
2788 impl.advance(-j);-
2789 return
never executed: return const_iterator(impl, new QAtomicInt(0));
const_iterator(impl, new QAtomicInt(0));
never executed: return const_iterator(impl, new QAtomicInt(0));
0
2790}-
2791-
2792-
Switch to Source codePreprocessed file

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