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-
9-
10namespace {-
11class HandlersManager-
12{-
13 static const QVariant::Handler *Handlers[QModulesPrivate::ModulesCount];-
14public:-
15 const QVariant::Handler *operator[] (const uint typeId) const-
16 {-
17 return
executed 21763616 times by 454 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 21763616 times by 454 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
  • ...
21763616
18 }-
19-
20 void registerHandler(const QModulesPrivate::Names name, const QVariant::Handler *handler)-
21 {-
22 Handlers[name] = handler;-
23 }
executed 263 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
263
24};-
25}-
26-
27namespace {-
28struct CoreTypesFilter {-
29 template<typename T>-
30 struct Acceptor {-
31 static const bool IsAccepted = QModulesPrivate::QTypeModuleInfo<T>::IsCore && QtMetaTypePrivate::TypeDefinition<T>::IsAvailable;-
32 };-
33};-
34}-
35-
36namespace {-
37-
38static void construct(QVariant::Private *x, const void *copy)-
39{-
40 QVariantConstructor<CoreTypesFilter> constructor(x, copy);-
41 QMetaTypeSwitcher::switcher<void>(constructor, x->type, 0);-
42}
executed 4705573 times by 394 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
  • ...
4705573
43-
44static void clear(QVariant::Private *d)-
45{-
46 QVariantDestructor<CoreTypesFilter> cleaner(d);-
47 QMetaTypeSwitcher::switcher<void>(cleaner, d->type, 0);-
48}
executed 8711456 times by 424 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
  • ...
8711456
49-
50static bool isNull(const QVariant::Private *d)-
51{-
52 QVariantIsNull<CoreTypesFilter> isNull(d);-
53 return
executed 411638 times by 136 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 411638 times by 136 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
  • ...
411638
54}-
55-
56-
57-
58-
59-
60-
61-
62static bool compare(const QVariant::Private *a, const QVariant::Private *b)-
63{-
64 QVariantComparator<CoreTypesFilter> comparator(a, b);-
65 return
executed 94720 times by 72 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_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsPolygonItem
  • ...
QMetaTypeSwitcher::switcher<bool>(comparator, a->type, 0);
executed 94720 times by 72 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_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsPolygonItem
  • ...
94720
66}-
67-
68-
69-
70-
71static qlonglong qMetaTypeNumber(const QVariant::Private *d)-
72{-
73 switch (d->type) {-
74 case
executed 358715 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 358715 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
  • ...
358715
75 return
executed 358715 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 358715 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
  • ...
358715
76 case
executed 6002 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 6002 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
6002
77 return
executed 6002 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 6002 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
6002
78 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
79 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
80 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
81 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
82 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
83 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
84 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
85 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
86 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
87 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
88 case
executed 236 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 236 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
236
89 return
executed 236 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 236 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
236
90-
91 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
92 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
93-
94 }-
95 ((!(false)) ? qt_assert("false",__FILE__,167) : qt_noop());-
96 return
never executed: return 0;
0;
never executed: return 0;
0
97}-
98-
99static qulonglong qMetaTypeUNumber(const QVariant::Private *d)-
100{-
101 switch (d->type) {-
102 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
103 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
104 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
105 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
106 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
107 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
108 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
109 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
110 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
111 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
112 }-
113 ((!(false)) ? qt_assert("false",__FILE__,185) : qt_noop());-
114 return
never executed: return 0;
0;
never executed: return 0;
0
115}-
116-
117static qlonglong qConvertToNumber(const QVariant::Private *d, bool *ok)-
118{-
119 *ok = true;-
120-
121 switch (uint(d->type)) {-
122 case
executed 12478 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 12478 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
  • ...
12478
123 return
executed 12478 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 12478 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
  • ...
12478
124 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
125 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
126 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
127 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
128 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
129 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
130-
131 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
132 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
133 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
134-
135-
136 case
executed 222 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 222 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-222
137 case
executed 329292 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 329292 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
  • ...
329292
138 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
139 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
140 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
141 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
142 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
143 case
executed 5471 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 5471 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
5471
144 return
executed 335636 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 335636 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
  • ...
335636
145 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
146 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
147 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
148 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
149 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
150-
151 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
152 }-
153-
154 QMetaType typeInfo(d->type);-
155 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
156 switch (typeInfo.sizeOf()) {-
157 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
158 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 ? *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
10
159 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
160 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 ? *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
10
161 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
162 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 ? *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
32
163 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
164 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 ? *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
64
165 }-
166 }
never executed: end of block
0
167-
168 *ok = false;-
169 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
170}-
171-
172static qreal qConvertToRealNumber(const QVariant::Private *d, bool *ok)-
173{-
174 *ok = true;-
175 switch (uint(d->type)) {-
176 case
executed 10949 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 10949 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
  • ...
10949
177 return
executed 10949 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 10949 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
  • ...
10949
178 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
179 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
180 case
never executed: case QVariant::ULongLong:
QVariant::ULongLong:
never executed: case QVariant::ULongLong:
0
181 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
182 case
never executed: case QMetaType::UChar:
QMetaType::UChar:
never executed: case QMetaType::UChar:
0
183 case
never executed: case QMetaType::UShort:
QMetaType::UShort:
never executed: case QMetaType::UShort:
0
184 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
185 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
186 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
187-
188 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
189 }-
190}-
191-
192static qulonglong qConvertToUnsignedNumber(const QVariant::Private *d, bool *ok)-
193{-
194 *ok = true;-
195-
196 switch (uint(d->type)) {-
197 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
198 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
199 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
200 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
201 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
202 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
203 case
never executed: case QVariant::Bool:
QVariant::Bool:
never executed: case QVariant::Bool:
0
204 return
never executed: return qulonglong(d->data.b);
qulonglong(d->data.b);
never executed: return qulonglong(d->data.b);
0
205-
206 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
207 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
208 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
209-
210-
211 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
212 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
213 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
214 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
215 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
216 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
217 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
218 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
219 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
220 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
221 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
222 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
223 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
224 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
225 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
226 }-
227-
228 QMetaType typeInfo(d->type);-
229 if (typeInfo.flags() & QMetaType::IsEnumeration
typeInfo.flags...:IsEnumerationDescription
TRUEevaluated 69 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 48 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
) {
48-69
230 switch (typeInfo.sizeOf()) {-
231 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
232 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 ? *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
6
233 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
234 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 ? *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
6
235 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
236 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 ? *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
18
237 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
238 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 ? *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
39
239 }-
240 }
never executed: end of block
0
241-
242 *ok = false;-
243 return
executed 48 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 48 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
48
244}-
245-
246template<typename TInput, typename LiteralWrapper>-
247inline bool qt_convertToBool(const QVariant::Private *const d)-
248{-
249 TInput str = v_cast<TInput>(d)->toLower();-
250 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("false") || str.isEmpty());
executed 30 times by 3 tests: return !(str == LiteralWrapper("0") || str == LiteralWrapper("false") || str.isEmpty());
Executed by:
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QVariant
30
251}-
252-
253-
254-
255-
256-
257-
258static const void *constData(const QVariant::Private &d)-
259{-
260 return
executed 2624 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.data.shared->ptr : reinterpret_cast<const void *>(&d.data.c);
executed 2624 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
  • ...
2624
261}-
262-
263-
264-
265-
266-
267-
268static QMetaEnum metaEnumFromType(int type)-
269{-
270 QMetaType t(type);-
271 if (t.flags() & QMetaType::IsEnumeration
t.flags() & QM...:IsEnumerationDescription
TRUEevaluated 37 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 20461 times by 37 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_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSidebar
  • ...
) {
37-20461
272 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
273 const char *enumName = QMetaType::typeName(type);-
274 const char *lastColon = std::strrchr(enumName, ':');-
275 if (lastColon
lastColonDescription
TRUEevaluated 37 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
)
0-37
276 enumName = lastColon + 1;
executed 37 times by 1 test: enumName = lastColon + 1;
Executed by:
  • tst_QVariant
37
277 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
278 }-
279 }
never executed: end of block
0
280 return
executed 20461 times by 37 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_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSidebar
  • ...
QMetaEnum();
executed 20461 times by 37 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_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSidebar
  • ...
20461
281}-
282-
283-
284-
285-
286-
287-
288-
289static bool convert(const QVariant::Private *d, int t, void *result, bool *ok)-
290{-
291 ((!(d->type != uint(t))) ? qt_assert("d->type != uint(t)",__FILE__,363) : qt_noop());-
292 ((!(result)) ? qt_assert("result",__FILE__,364) : qt_noop());-
293-
294 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 422562 times by 202 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 422334 times by 195 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-422562
295 const bool isOk = QMetaType::convert(constData(*d), d->type, result, t);-
296 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
297 *
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
298 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
299 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
300 }
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
301-
302 bool dummy;-
303 if (!ok
!okDescription
TRUEevaluated 422488 times by 203 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 653 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
)
653-422488
304 ok = &dummy;
executed 422488 times by 203 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
  • ...
422488
305-
306 switch (uint(t)) {-
307-
308 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
309 switch (d->type) {-
310 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
311 *static_cast<QUrl *>(result) = QUrl(*v_cast<QString>(d));-
312 break;
executed 6 times by 3 tests: break;
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QVariant
  • tst_languageChange
6
313 default
never executed: default:
:
never executed: default:
0
314 return
never executed: return false;
false;
never executed: return false;
0
315 }-
316 break;
executed 6 times by 3 tests: break;
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QVariant
  • tst_languageChange
6
317 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
318 switch (d->type) {-
319 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
320 *static_cast<QModelIndex *>(result) = QModelIndex(*v_cast<QPersistentModelIndex>(d));-
321 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
322 default
never executed: default:
:
never executed: default:
0
323 return
never executed: return false;
false;
never executed: return false;
0
324 }-
325 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
326 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
327 switch (d->type) {-
328 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
329 *static_cast<QPersistentModelIndex *>(result) = QPersistentModelIndex(*v_cast<QModelIndex>(d));-
330 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
331 default
never executed: default:
:
never executed: default:
0
332 return
never executed: return false;
false;
never executed: return false;
0
333 }-
334 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
335-
336 case
executed 55537 times by 77 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_QHeaderView
  • tst_QIdentityProxyModel
  • ...
QVariant::String:
executed 55537 times by 77 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_QHeaderView
  • tst_QIdentityProxyModel
  • ...
{
55537
337 QString *str = static_cast<QString *>(result);-
338 switch (d->type) {-
339 case
executed 5106 times by 14 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_qdbusxml2cpp - 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 5106 times by 14 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_qdbusxml2cpp - 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
5106
340 *str = *v_cast<QChar>(d);-
341 break;
executed 5106 times by 14 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_qdbusxml2cpp - 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
5106
342 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
343 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
344 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
345 *str = QChar::fromLatin1(d->data.c);-
346 break;
executed 75 times by 1 test: break;
Executed by:
  • tst_QVariant
75
347 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
348 case
never executed: case QMetaType::Long:
QMetaType::Long:
never executed: case QMetaType::Long:
0
349 case
executed 29283 times by 45 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_QIdentityProxyModel
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • ...
QVariant::Int:
executed 29283 times by 45 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_QIdentityProxyModel
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • ...
29283
350 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
351 *str = QString::number(qMetaTypeNumber(d));-
352 break;
executed 29543 times by 47 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_QIdentityProxyModel
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • ...
29543
353 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
354 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
355 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
356 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
357 *str = QString::number(qMetaTypeUNumber(d));-
358 break;
executed 232 times by 5 tests: break;
Executed by:
  • tst_QColorDialog
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QVariant
  • tst_languageChange
232
359 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
360 *str = QString::number(d->data.f, 'g', QLocale::FloatingPointShortest);-
361 break;
executed 39 times by 1 test: break;
Executed by:
  • tst_QVariant
39
362 case
executed 120 times by 13 tests: case QVariant::Double:
Executed by:
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTreeWidget
  • tst_QVariant
QVariant::Double:
executed 120 times by 13 tests: case QVariant::Double:
Executed by:
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTreeWidget
  • tst_QVariant
120
363 *str = QString::number(d->data.d, 'g', QLocale::FloatingPointShortest);-
364 break;
executed 120 times by 13 tests: break;
Executed by:
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTreeWidget
  • tst_QVariant
120
365-
366 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
367 *str = v_cast<QDate>(d)->toString(Qt::ISODate);-
368 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
5
369 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
370 *str = v_cast<QTime>(d)->toString(Qt::ISODate);-
371 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
372 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
373 *str = v_cast<QDateTime>(d)->toString(Qt::ISODate);-
374 break;
executed 11 times by 2 tests: break;
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
11
375-
376 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
377 *str = d->data.b
d->data.bDescription
TRUEevaluated 44 times by 6 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QSettings
  • tst_QTableView
  • tst_QVariant
FALSEevaluated 33 times by 4 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QSettings
  • tst_QVariant
? ([]() -> QString { enum { Size = sizeof(u"" "true")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "true" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 44 times by 6 tests: return qstring_literal_temp;
Executed by:
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QSettings
  • tst_QTableView
  • tst_QVariant
qstring_literal_temp;
executed 44 times by 6 tests: return qstring_literal_temp;
Executed by:
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QSettings
  • tst_QTableView
  • tst_QVariant
}()) : ([]() -> QString { enum { Size = sizeof(u"" "false")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "false" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 33 times by 4 tests: return qstring_literal_temp;
Executed by:
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QSettings
  • tst_QVariant
qstring_literal_temp;
executed 33 times by 4 tests: return qstring_literal_temp;
Executed by:
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QSettings
  • tst_QVariant
}());
33-44
378 break;
executed 77 times by 6 tests: break;
Executed by:
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QItemDelegate
  • tst_QSettings
  • tst_QTableView
  • tst_QVariant
77
379 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
380 *str = QString::fromUtf8(v_cast<QByteArray>(d)->constData());-
381 break;
executed 25 times by 2 tests: break;
Executed by:
  • tst_QSettings
  • tst_QVariant
25
382 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
383 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
384 *
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
385 break;
executed 18 times by 2 tests: break;
Executed by:
  • tst_QStyleSheetStyle
  • tst_QVariant
18
386-
387 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
388 *str = v_cast<QUrl>(d)->toString();-
389 break;
executed 8 times by 2 tests: break;
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
8
390 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
391 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
392 *
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
393 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
394 return
never executed: return false;
false;
never executed: return false;
0
395 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
396-
397 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
398 *str = v_cast<QUuid>(d)->toString();-
399 break;
executed 19 times by 2 tests: break;
Executed by:
  • tst_QUuid
  • tst_QVariant
19
400 default
executed 20254 times by 37 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_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSidebar
  • ...
:
executed 20254 times by 37 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_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSidebar
  • ...
20254
401-
402 {-
403 QMetaEnum en = metaEnumFromType(d->type);-
404 if (en.isValid()
en.isValid()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 20244 times by 37 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_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSidebar
  • ...
) {
10-20244
405 *str = QString::fromUtf8(en.valueToKey(qConvertToNumber(d, ok)));-
406 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
407 }-
408 }-
409-
410 return
executed 20244 times by 37 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_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSidebar
  • ...
false;
executed 20244 times by 37 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_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSidebar
  • ...
20244
411 }-
412 break;
executed 35283 times by 65 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_QIdentityProxyModel
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaType
  • ...
35283
413 }-
414 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
415 QChar *c = static_cast<QChar *>(result);-
416 switch (d->type) {-
417 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
418 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
419 case
never executed: case QMetaType::Char:
QMetaType::Char:
never executed: case QMetaType::Char:
0
420 case
never executed: case QMetaType::SChar:
QMetaType::SChar:
never executed: case QMetaType::SChar:
0
421 case
never executed: case QMetaType::Short:
QMetaType::Short:
never executed: case QMetaType::Short:
0
422 case
never executed: case QMetaType::Long:
QMetaType::Long:
never executed: case QMetaType::Long:
0
423 case
never executed: case QMetaType::Float:
QMetaType::Float:
never executed: case QMetaType::Float:
0
424 *c = QChar(ushort(qMetaTypeNumber(d)));-
425 break;
executed 3 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
426 case
never executed: case QVariant::UInt:
QVariant::UInt:
never executed: case QVariant::UInt:
0
427 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
428 case
never executed: case QMetaType::UChar:
QMetaType::UChar:
never executed: case QMetaType::UChar:
0
429 case
never executed: case QMetaType::UShort:
QMetaType::UShort:
never executed: case QMetaType::UShort:
0
430 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
431 *c = QChar(ushort(qMetaTypeUNumber(d)));-
432 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
433 default
never executed: default:
:
never executed: default:
0
434 return
never executed: return false;
false;
never executed: return false;
0
435 }-
436 break;
executed 4 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
4
437 }-
438-
439 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
440 QSize *s = static_cast<QSize *>(result);-
441 switch (d->type) {-
442 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
443 *s = v_cast<QSizeF>(d)->toSize();-
444 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
445 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
446 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
447 }-
448 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
449 }-
450-
451 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
452 QSizeF *s = static_cast<QSizeF *>(result);-
453 switch (d->type) {-
454 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
455 *s = QSizeF(*(v_cast<QSize>(d)));-
456 break;
executed 21 times by 2 tests: break;
Executed by:
  • tst_QGraphicsWidget
  • tst_QVariant
21
457 default
executed 2 times by 1 test: default:
Executed by:
  • tst_QMetaType
:
executed 2 times by 1 test: default:
Executed by:
  • tst_QMetaType
2
458 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
459 }-
460 break;
executed 21 times by 2 tests: break;
Executed by:
  • tst_QGraphicsWidget
  • tst_QVariant
21
461 }-
462-
463 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
464 QLine *s = static_cast<QLine *>(result);-
465 switch (d->type) {-
466 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
467 *s = v_cast<QLineF>(d)->toLine();-
468 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
469 default
never executed: default:
:
never executed: default:
0
470 return
never executed: return false;
false;
never executed: return false;
0
471 }-
472 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
473 }-
474-
475 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
476 QLineF *s = static_cast<QLineF *>(result);-
477 switch (d->type) {-
478 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
479 *s = QLineF(*(v_cast<QLine>(d)));-
480 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
481 default
executed 2 times by 1 test: default:
Executed by:
  • tst_QMetaType
:
executed 2 times by 1 test: default:
Executed by:
  • tst_QMetaType
2
482 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
483 }-
484 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
485 }-
486-
487 case
executed 30 times by 26 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_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QTreeWidget
  • ...
QVariant::StringList:
executed 30 times by 26 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_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QTreeWidget
  • ...
30
488 if (d->type == QVariant::List
d->type == QVariant::ListDescription
TRUEnever evaluated
FALSEevaluated 30 times by 26 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_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QTreeWidget
  • ...
) {
0-30
489 QStringList *slst = static_cast<QStringList *>(result);-
490 const QVariantList *list = v_cast<QVariantList >(d);-
491 const int size = list->size();-
492 slst->reserve(size);-
493 for (int i = 0; i < size
i < sizeDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i)
0
494 slst->append(list->at(i).toString());
never executed: slst->append(list->at(i).toString());
0
495 }
never executed: end of block
else if (d->type == QVariant::String
d->type == QVariant::StringDescription
TRUEnever evaluated
FALSEevaluated 30 times by 26 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_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QTreeWidget
  • ...
) {
0-30
496 QStringList *slst = static_cast<QStringList *>(result);-
497 *slst = QStringList(*v_cast<QString>(d));-
498 }
never executed: end of block
else {
0
499 return
executed 30 times by 26 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_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QTreeWidget
  • ...
false;
executed 30 times by 26 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_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QTreeWidget
  • ...
30
500 }-
501 break;
never executed: break;
0
502 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
503 QDate *dt = static_cast<QDate *>(result);-
504 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
505 *
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
506-
507 else if (d->type == QVariant::String
d->type == QVariant::StringDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEnever evaluated
)
0-2
508 *
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
509-
510 else-
511 return
never executed: return false;
false;
never executed: return false;
0
512-
513 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
514 }-
515 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
516 QTime *t = static_cast<QTime *>(result);-
517 switch (d->type) {-
518 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
519 *t = v_cast<QDateTime>(d)->time();-
520 break;
executed 10941 times by 5 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QVariant
10941
521-
522 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
523 *t = QTime::fromString(*v_cast<QString>(d), Qt::ISODate);-
524 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
525-
526 default
never executed: default:
:
never executed: default:
0
527 return
never executed: return false;
false;
never executed: return false;
0
528 }-
529 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
530 }-
531 case
executed 940 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 940 times by 7 tests: case QVariant::DateTime:
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QVariant
{
940
532 QDateTime *dt = static_cast<QDateTime *>(result);-
533 switch (d->type) {-
534-
535 case
executed 9 times by 2 tests: case QVariant::String:
Executed by:
  • tst_QSqlQuery
  • tst_QVariant
QVariant::String:
executed 9 times by 2 tests: case QVariant::String:
Executed by:
  • tst_QSqlQuery
  • tst_QVariant
9
536 *dt = QDateTime::fromString(*v_cast<QString>(d), Qt::ISODate);-
537 break;
executed 9 times by 2 tests: break;
Executed by:
  • tst_QSqlQuery
  • tst_QVariant
9
538-
539 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
540 *dt = QDateTime(*v_cast<QDate>(d));-
541 break;
executed 2 times by 2 tests: break;
Executed by:
  • tst_QNetworkRequest
  • tst_QVariant
2
542 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
543 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
544 }-
545 return
executed 11 times by 3 tests: return dt->isValid();
Executed by:
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QVariant
dt->isValid();
executed 11 times by 3 tests: return dt->isValid();
Executed by:
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QVariant
11
546 }-
547 case
executed 611 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 611 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
{
611
548 QByteArray *ba = static_cast<QByteArray *>(result);-
549 switch (d->type) {-
550 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
551 *ba = v_cast<QString>(d)->toUtf8();-
552 break;
executed 118 times by 6 tests: break;
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSettings
  • tst_QXmlInputSource
  • tst_Spdy
118
553 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
554 *ba = QByteArray::number(d->data.d, 'g', QLocale::FloatingPointShortest);-
555 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
556 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
557 *ba = QByteArray::number(d->data.f, 'g', QLocale::FloatingPointShortest);-
558 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
559 case
never executed: case QMetaType::Char:
QMetaType::Char:
never executed: case QMetaType::Char:
0
560 case
never executed: case QMetaType::SChar:
QMetaType::SChar:
never executed: case QMetaType::SChar:
0
561 case
never executed: case QMetaType::UChar:
QMetaType::UChar:
never executed: case QMetaType::UChar:
0
562 *ba = QByteArray(1, d->data.c);-
563 break;
never executed: break;
0
564 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
565 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
566 case
never executed: case QMetaType::Short:
QMetaType::Short:
never executed: case QMetaType::Short:
0
567 case
never executed: case QMetaType::Long:
QMetaType::Long:
never executed: case QMetaType::Long:
0
568 *ba = QByteArray::number(qMetaTypeNumber(d));-
569 break;
executed 255 times by 6 tests: break;
Executed by:
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
255
570 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
571 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
572 case
never executed: case QMetaType::UShort:
QMetaType::UShort:
never executed: case QMetaType::UShort:
0
573 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
574 *ba = QByteArray::number(qMetaTypeUNumber(d));-
575 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QVariant
4
576 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
577 *ba = QByteArray(d->data.b ? "true" : "false");-
578 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
579 default
executed 225 times by 4 tests: default:
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMimeData
  • tst_QVariant
:
executed 225 times by 4 tests: default:
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMimeData
  • tst_QVariant
225
580-
581 {-
582 QMetaEnum en = metaEnumFromType(d->type);-
583 if (en.isValid()
en.isValid()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 215 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMimeData
) {
10-215
584 *ba = en.valueToKey(qConvertToNumber(d, ok));-
585 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
586 }-
587 }-
588-
589 return
executed 215 times by 3 tests: return false;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMimeData
false;
executed 215 times by 3 tests: return false;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMimeData
215
590 }-
591 }-
592 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
593 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
594 *static_cast<short *>(result) = short(qConvertToNumber(d, ok));-
595 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
596 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
597 *static_cast<long *>(result) = long(qConvertToNumber(d, ok));-
598 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
599 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
600 *static_cast<ushort *>(result) = ushort(qConvertToUnsignedNumber(d, ok));-
601 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
602 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
603 *static_cast<ulong *>(result) = ulong(qConvertToUnsignedNumber(d, ok));-
604 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
605 case
executed 16313 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 16313 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
  • ...
16313
606 *static_cast<int *>(result) = int(qConvertToNumber(d, ok));-
607 return
executed 16313 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 16313 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
  • ...
16313
608 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
609 *static_cast<uint *>(result) = uint(qConvertToUnsignedNumber(d, ok));-
610 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
611 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
612 *static_cast<qlonglong *>(result) = qConvertToNumber(d, ok);-
613 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
614 case
executed 135 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 135 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
{
135
615 *static_cast<qulonglong *>(result) = qConvertToUnsignedNumber(d, ok);-
616 return
executed 135 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 135 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
135
617 }-
618 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
619 signed char s = qConvertToNumber(d, ok);-
620 *static_cast<signed char*>(result) = s;-
621 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
622 }-
623 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
624 *static_cast<uchar *>(result) = qConvertToUnsignedNumber(d, ok);-
625 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
626 }-
627 case
executed 39499 times by 116 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 39499 times by 116 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
  • ...
{
39499
628 bool *b = static_cast<bool *>(result);-
629 switch(d->type) {-
630 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
631 *b = qt_convertToBool<QByteArray, QByteArray>(d);-
632 break;
executed 10 times by 1 test: break;
Executed by:
  • tst_QVariant
10
633 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
634 *b = qt_convertToBool<QString, QLatin1String>(d);-
635 break;
executed 20 times by 3 tests: break;
Executed by:
  • tst_QSettings
  • tst_QStyleSheetStyle
  • tst_QVariant
20
636 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
637 *b = !v_cast<QChar>(d)->isNull();-
638 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
639 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
640 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
641 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
642 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
643 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
644 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
645 case
never executed: case QMetaType::Long:
QMetaType::Long:
never executed: case QMetaType::Long:
0
646 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
647 *b = qMetaTypeNumber(d) != static_cast<long long>(0LL);-
648 break;
executed 88 times by 6 tests: break;
Executed by:
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTcpSocket
  • tst_QVariant
  • tst_QWizard
88
649 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
650 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
651 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
652 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
653 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
654 *b = qMetaTypeUNumber(d) != static_cast<unsigned long long>(0ULL);-
655 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
656-
657 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
658 *b = v_cast<QJsonValue>(d)->toBool(false);-
659 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
660 return
never executed: return false;
false;
never executed: return false;
0
661 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
662-
663 default
executed 38085 times by 111 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 38085 times by 111 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
  • ...
38085
664 *b = false;-
665 return
executed 38085 times by 111 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 38085 times by 111 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
  • ...
38085
666 }-
667 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
668 }-
669 case
executed 635 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 635 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
{
635
670 double *f = static_cast<double *>(result);-
671 switch (d->type) {-
672 case
executed 370 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 370 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
370
673 *f = v_cast<QString>(d)->toDouble(ok);-
674 break;
executed 370 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
370
675 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
676 *f = v_cast<QByteArray>(d)->toDouble(ok);-
677 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
678 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
679 *f = double(d->data.b);-
680 break;
executed 8 times by 1 test: break;
Executed by:
  • tst_QVariant
8
681 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
682 *f = double(d->data.f);-
683 break;
executed 9 times by 2 tests: break;
Executed by:
  • tst_QObject
  • tst_QVariant
9
684 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
685 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
686 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
687 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
688 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
689 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
690 *f = double(qMetaTypeNumber(d));-
691 break;
executed 81 times by 5 tests: break;
Executed by:
  • tst_QGraphicsObject
  • tst_QGraphicsWidget
  • tst_QPropertyAnimation
  • tst_QSqlDatabase
  • tst_QVariant
81
692 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
693 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
694 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
695 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
696 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
697 *f = double(qMetaTypeUNumber(d));-
698 break;
executed 32 times by 1 test: break;
Executed by:
  • tst_QVariant
32
699-
700 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
701 *f = v_cast<QJsonValue>(d)->toDouble(0.0);-
702 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
703 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
704 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
705-
706 default
executed 130 times by 1 test: default:
Executed by:
  • tst_QVariant
:
executed 130 times by 1 test: default:
Executed by:
  • tst_QVariant
130
707 *f = 0.0;-
708 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
709 }-
710 break;
executed 504 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
504
711 }-
712 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
713 float *f = static_cast<float *>(result);-
714 switch (d->type) {-
715 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
716 *f = v_cast<QString>(d)->toFloat(ok);-
717 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QObject
  • tst_QVariant
7
718 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
719 *f = v_cast<QByteArray>(d)->toFloat(ok);-
720 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
721 case
never executed: case QVariant::Bool:
QVariant::Bool:
never executed: case QVariant::Bool:
0
722 *f = float(d->data.b);-
723 break;
never executed: break;
0
724 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
725 *f = float(d->data.d);-
726 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QVariant
3
727 case
never executed: case QVariant::LongLong:
QVariant::LongLong:
never executed: case QVariant::LongLong:
0
728 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
729 case
never executed: case QMetaType::Char:
QMetaType::Char:
never executed: case QMetaType::Char:
0
730 case
never executed: case QMetaType::SChar:
QMetaType::SChar:
never executed: case QMetaType::SChar:
0
731 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
732 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
733 *f = float(qMetaTypeNumber(d));-
734 break;
executed 6 times by 1 test: break;
Executed by:
  • tst_QVariant
6
735 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
736 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
737 case
never executed: case QMetaType::UChar:
QMetaType::UChar:
never executed: case QMetaType::UChar:
0
738 case
never executed: case QMetaType::UShort:
QMetaType::UShort:
never executed: case QMetaType::UShort:
0
739 case
never executed: case QMetaType::ULong:
QMetaType::ULong:
never executed: case QMetaType::ULong:
0
740 *f = float(qMetaTypeUNumber(d));-
741 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QVariant
2
742-
743 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
744 *f = v_cast<QJsonValue>(d)->toDouble(0.0);-
745 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
746 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
747 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QVariant
1
748-
749 default
executed 2 times by 1 test: default:
Executed by:
  • tst_QMetaType
:
executed 2 times by 1 test: default:
Executed by:
  • tst_QMetaType
2
750 *f = 0.0f;-
751 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
752 }-
753 break;
executed 22 times by 2 tests: break;
Executed by:
  • tst_QObject
  • tst_QVariant
22
754 }-
755 case
executed 489 times by 6 tests: case QVariant::List:
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
QVariant::List:
executed 489 times by 6 tests: case QVariant::List:
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
489
756 if (d->type == QVariant::StringList
d->type == QVa...nt::StringListDescription
TRUEevaluated 489 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEnever evaluated
) {
0-489
757 QVariantList *lst = static_cast<QVariantList *>(result);-
758 const QStringList *slist = v_cast<QStringList>(d);-
759 const int size = slist->size();-
760 lst->reserve(size);-
761 for (int i = 0; i < size
i < sizeDescription
TRUEevaluated 813 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
FALSEevaluated 489 times by 6 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
; ++i)
489-813
762 lst->append(QVariant(slist->at(i)));
executed 813 times by 6 tests: lst->append(QVariant(slist->at(i)));
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
813
763 }
executed 489 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-489
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 489 times by 6 tests: break;
Executed by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_languageChange
489
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 4 times by 2 tests: case QVariant::PointF:
Executed by:
  • tst_QMetaType
  • tst_QTextEdit
QVariant::PointF:
executed 4 times by 2 tests: case QVariant::PointF:
Executed by:
  • tst_QMetaType
  • tst_QTextEdit
4
824 if (d->type == QVariant::Point
d->type == QVariant::PointDescription
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QTextEdit
)
0-4
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 4 times by 2 tests: return false;
Executed by:
  • tst_QMetaType
  • tst_QTextEdit
false;
executed 4 times by 2 tests: return false;
Executed by:
  • tst_QMetaType
  • tst_QTextEdit
4
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 274114 times by 97 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 274114 times by 97 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
  • ...
274114
851-
852 if (d->type == QVariant::String
d->type == QVariant::StringDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 274102 times by 97 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 274095 times by 97 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-274102
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 274057 times by 97 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-274057
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 274057 times by 97 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 274057 times by 97 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
  • ...
274057
897 }-
898 return
executed 38182 times by 84 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 38182 times by 84 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
  • ...
38182
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 108391 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-108391
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 104782 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 3609 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
  • ...
3609-104782
966 && (type.flags() & (QMetaType::MovableType | QMetaType::IsEnumeration))) {-
967 type.construct(&d->data.ptr, copy);-
968 d->is_shared = false;-
969 }
executed 104594 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 {
104594
970 void *ptr = type.create(copy);-
971 d->is_shared = true;-
972 d->data.shared = new QVariant::PrivateShared(ptr);-
973 }
executed 3797 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
  • ...
3797
974}-
975-
976static void customClear(QVariant::Private *d)-
977{-
978 if (!d->is_shared
!d->is_sharedDescription
TRUEevaluated 146641 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 3793 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
  • ...
) {
3793-146641
979 QMetaType::destruct(d->type, &d->data.ptr);-
980 }
executed 146641 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 {
146641
981 QMetaType::destroy(d->type, d->data.shared->ptr);-
982 delete d->data.shared;-
983 }
executed 3793 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
  • ...
3793
984}-
985-
986static bool customIsNull(const QVariant::Private *d)-
987{-
988 return
executed 398 times by 10 tests: return d->is_null;
Executed by:
  • tst_QAbstractProxyModel
  • tst_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
d->is_null;
executed 398 times by 10 tests: return d->is_null;
Executed by:
  • tst_QAbstractProxyModel
  • tst_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
398
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 349 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-349
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 41 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);
41-308
998 const void *b_ptr = b->is_shared
b->is_sharedDescription
TRUEevaluated 41 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);
41-308
999-
1000 uint typeNameLen = qstrlen(typeName);-
1001 if (typeNameLen > 0
typeNameLen > 0Description
TRUEevaluated 349 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 330 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-349
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 330 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-330
1005 return
never executed: return true;
true;
never executed: return true;
0
1006-
1007 return
executed 330 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 330 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
330
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 242206 times by 59 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_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • ...
&qt_kernel_variant_handler;
executed 242206 times by 59 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_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • ...
242206
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 263 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
263
1070void QVariant::create(int type, const void *copy)-
1071{-
1072 d.type = type;-
1073 handlerManager[type]->construct(&d, copy);-
1074}
executed 3554336 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
  • ...
3554336
1075QVariant::~QVariant()-
1076{-
1077 if ((d.is_shared
d.is_sharedDescription
TRUEevaluated 6931277 times by 203 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 22424944 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 3438896 times by 203 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 3492381 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
  • ...
) || (!d.is_shared
!d.is_sharedDescription
TRUEevaluated 22424944 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 3492381 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
  • ...
&& d.type > Char
d.type > CharDescription
TRUEevaluated 8814985 times by 438 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 13609959 times by 424 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
  • ...
))
3438896-22424944
1078 handlerManager[d.type]->clear(&d);
executed 12253881 times by 446 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
  • ...
12253881
1079}
executed 29356221 times by 493 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
  • ...
29356221
1080QVariant::QVariant(const QVariant &p)-
1081 : d(p.d)-
1082{-
1083 if (d.is_shared
d.is_sharedDescription
TRUEevaluated 3490590 times by 175 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 5536927 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
  • ...
) {
3490590-5536927
1084 d.data.shared->ref.ref();-
1085 }
executed 3490590 times by 175 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 4593063 times by 392 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 943864 times by 241 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
  • ...
) {
943864-4593063
1086 handlerManager[d.type]->construct(&d, p.constData());-
1087 d.is_null = p.d.is_null;-
1088 }
executed 4593063 times by 392 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
  • ...
4593063
1089}
executed 9027517 times by 410 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
  • ...
9027517
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 10680 times by 45 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_QGraphicsItem
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QSettings
  • ...
10680
1105QVariant::QVariant(Type type)-
1106{ create(type, 0); }
executed 8097 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
8097
1107QVariant::QVariant(int typeId, const void *copy)-
1108{ create(typeId, copy); d.is_null = false; }
executed 3499821 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
  • ...
3499821
1109-
1110-
1111-
1112-
1113-
1114QVariant::QVariant(int typeId, const void *copy, uint flags)-
1115{-
1116 if (flags
flagsDescription
TRUEevaluated 42087 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 18593 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
  • ...
) {
18593-42087
1117 d.type = typeId;-
1118 d.data.ptr = *reinterpret_cast<void *const*>(copy);-
1119 }
executed 42087 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 {
42087
1120 create(typeId, copy);-
1121 }
executed 18593 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
  • ...
18593
1122 d.is_null = false;-
1123}
executed 60680 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
  • ...
60680
1124-
1125QVariant::QVariant(int val)-
1126 : d(Int)-
1127{ d.data.i = val; }
executed 651560 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
  • ...
651560
1128QVariant::QVariant(uint val)-
1129 : d(UInt)-
1130{ d.data.u = val; }
executed 3346 times by 54 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
  • ...
3346
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 146913 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
  • ...
146913
1140QVariant::QVariant(double val)-
1141 : d(Double)-
1142{ d.data.d = val; }
executed 73146 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
  • ...
73146
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 902 times by 38 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_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QListWidget
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStandardItemModel
  • ...
902
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 3991762 times by 380 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
  • ...
3991762
1156QVariant::QVariant(QChar val)-
1157 : d(Char)-
1158{ v_construct<QChar>(&d, val); }
executed 6958 times by 67 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
  • ...
6958
1159QVariant::QVariant(QLatin1String val)-
1160 : d(String)-
1161{ v_construct<QString>(&d, val); }
executed 885 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
  • ...
885
1162QVariant::QVariant(const QStringList &val)-
1163 : d(StringList)-
1164{ v_construct<QStringList>(&d, val); }
executed 924 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
  • ...
924
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 25042 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
25042
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 30 times by 7 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QGraphicsView
  • tst_QMetaType
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QVariant
  • tst_qinputmethod
30
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 5360 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
5360
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 5499 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
5499
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 120 times by 4 tests: end of block
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
120
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 332516 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 ? UserType : static_cast<Type>(d.type);
executed 332516 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
  • ...
332516
1258}-
1259int QVariant::userType() const-
1260{-
1261 return
executed 3327781 times by 229 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 3327781 times by 229 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
  • ...
3327781
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 363869 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-363869
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 1934 times by 36 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusReply
  • tst_QDockWidget
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • 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
  • tst_QSettings
  • ...
FALSEevaluated 361935 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
  • ...
) {
1934-361935
1274 variant.d.data.shared->ref.ref();-
1275 d = variant.d;-
1276 }
executed 1934 times by 36 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_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
  • tst_QSettings
  • ...
else if (variant.d.type > Char
variant.d.type > CharDescription
TRUEevaluated 191399 times by 113 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 170536 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
  • ...
) {
1934-191399
1277 d.type = variant.d.type;-
1278 handlerManager[d.type]->construct(&d, variant.constData());-
1279 d.is_null = variant.d.is_null;-
1280 }
executed 191399 times by 113 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 {
191399
1281 d = variant.d;-
1282 }
executed 170536 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
  • ...
170536
1283-
1284 return
executed 363869 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 363869 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
  • ...
363869
1285}-
1286void QVariant::detach()-
1287{-
1288 if (!d.is_shared
!d.is_sharedDescription
TRUEevaluated 36663 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 5411 times by 31 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_QPrinter
  • tst_QQuaternion
  • tst_QShortcut
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QToolBar
  • ...
|| d.data.shared->ref.load() == 1
d.data.shared->ref.load() == 1Description
TRUEevaluated 5386 times by 31 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_QPrinter
  • tst_QQuaternion
  • tst_QShortcut
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QToolBar
  • ...
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-36663
1289 return;
executed 42049 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
  • ...
42049
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 6025 times by 47 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_QIdentityProxyModel
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QMetaProperty
  • ...
QMetaType::typeName(d.type);
executed 6025 times by 47 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_QIdentityProxyModel
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QMetaProperty
  • ...
6025
1301}-
1302-
1303-
1304-
1305-
1306-
1307void QVariant::clear()-
1308{-
1309 if ((d.is_shared
d.is_sharedDescription
TRUEevaluated 158 times by 10 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusReply
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QPropertyAnimation
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 391475 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 52 times by 7 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusReply
  • tst_QPropertyAnimation
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QVariant
FALSEevaluated 106 times by 6 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QPropertyAnimation
  • tst_QTreeWidget
  • tst_QVariant
) || (!d.is_shared
!d.is_sharedDescription
TRUEevaluated 391475 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 106 times by 6 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QGuiVariant
  • tst_QMetaProperty
  • tst_QPropertyAnimation
  • tst_QTreeWidget
  • tst_QVariant
&& d.type > Char
d.type > CharDescription
TRUEevaluated 132807 times by 84 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 258668 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
  • ...
))
52-391475
1310 handlerManager[d.type]->clear(&d);
executed 132859 times by 85 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
  • ...
132859
1311 d.type = Invalid;-
1312 d.is_null = true;-
1313 d.is_shared = false;-
1314}
executed 391633 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
  • ...
391633
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) ? QVariant::Type(metaType) : UserType;
executed 81 times by 1 test: return metaType <= int(UserType) ? QVariant::Type(metaType) : UserType;
Executed by:
  • tst_QVariant
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 627552 times by 263 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 81330 times by 98 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • ...
)
81330-627552
1539 return
executed 627552 times by 263 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_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
  • ...
*v_cast<T>(&d);
executed 627552 times by 263 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_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
  • ...
627552
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 81161 times by 98 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • ...
|| targetType >= QMetaType::User
targetType >= QMetaType::UserDescription
TRUEnever evaluated
FALSEevaluated 81161 times by 98 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • ...
) {
0-81161
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 81312 times by 98 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • ...
ret;
executed 81312 times by 98 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • ...
81312
1550}-
1551QStringList QVariant::toStringList() const-
1552{-
1553 return
executed 1054 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 1054 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
  • ...
1054
1554}-
1555QString QVariant::toString() const-
1556{-
1557 return
executed 542207 times by 262 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_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
  • ...
qVariantToHelper<QString>(d, handlerManager);
executed 542207 times by 262 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_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
  • ...
542207
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 128015 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 128015 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
128015
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 1650 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 1650 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
  • ...
1650
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 24 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 24 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
24
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 1629 times by 17 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_QTextEdit
  • tst_QVariant
qVariantToHelper<QPointF>(d, handlerManager);
executed 1629 times by 17 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_QTextEdit
  • tst_QVariant
1629
1632}-
1633QUrl QVariant::toUrl() const-
1634{-
1635 return
executed 7238 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 7238 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
7238
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 119 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 119 times by 4 tests: return qVariantToHelper<QRegularExpression>(d, handlerManager);
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
119
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 1866 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 1866 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
  • ...
1866
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 6096 times by 31 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiVariant
  • 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
  • tst_QTextDocumentLayout
  • ...
FALSEevaluated 738589 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
  • ...
)
6096-738589
1699 *
executed 6096 times by 31 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_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
  • tst_QTextDocumentLayout
  • ...
ok = true;
executed 6096 times by 31 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_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
  • tst_QTextDocumentLayout
  • ...
6096
1700-
1701 if (d.type == t
d.type == tDescription
TRUEevaluated 717244 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 27441 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
  • ...
)
27441-717244
1702 return
executed 717244 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 717244 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
  • ...
717244
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 27311 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 27311 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-27311
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 26429 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-26429
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 27433 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 27433 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
  • ...
27433
1712}-
1713int QVariant::toInt(bool *ok) const-
1714{-
1715 return
executed 674448 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 674448 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
  • ...
674448
1716}-
1717uint QVariant::toUInt(bool *ok) const-
1718{-
1719 return
executed 1494 times by 57 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 1494 times by 57 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
  • ...
1494
1720}-
1721qlonglong QVariant::toLongLong(bool *ok) const-
1722{-
1723 return
executed 11707 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 11707 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
11707
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 80058 times by 160 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 39492 times by 116 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
  • ...
)
39492-80058
1732 return
executed 80058 times by 160 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 80058 times by 160 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
  • ...
80058
1733-
1734 bool res = false;-
1735 handlerManager[d.type]->convert(&d, Bool, &res, 0);-
1736-
1737 return
executed 39492 times by 116 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 39492 times by 116 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
  • ...
39492
1738}-
1739double QVariant::toDouble(bool *ok) const-
1740{-
1741 return
executed 40171 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 40171 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
  • ...
40171
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 16607 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 16607 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
  • ...
16607
1750}-
1751QVariantList QVariant::toList() const-
1752{-
1753 return
executed 697 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 697 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
697
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 93 times by 5 tests: return false;
Executed by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_selftests - unknown status
false;
executed 93 times by 5 tests: return false;
Executed by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_selftests - unknown status
93
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 228043 times by 91 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-228043
1879 || (targetTypeId == QMetaType::QPersistentModelIndex
targetTypeId =...tentModelIndexDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 228041 times by 91 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-228041
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 227978 times by 91 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-227978
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 25 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 227990 times by 91 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 227951 times by 91 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
  • ...
)
25-227990
1892 && (d.type == QMetaType::QVariantMap
d.type == QMet...e::QVariantMapDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 63 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
1-63
1893 || d.type == QMetaType::QVariantHash
d.type == QMet...::QVariantHashDescription
TRUEnever evaluated
FALSEevaluated 63 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
0-63
1894 || QMetaType::hasRegisteredConverterFunction(d.type,
QMetaType::has...erableImpl>())Description
TRUEnever evaluated
FALSEevaluated 63 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
0-63
1895 qMetaTypeId<QtMetaTypePrivate::QAssociativeIterableImpl>())
QMetaType::has...erableImpl>())Description
TRUEnever evaluated
FALSEevaluated 63 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
)) {
0-63
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 228004 times by 91 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-228004
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 497 times by 9 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
FALSEevaluated 227507 times by 91 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 133 times by 6 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
FALSEevaluated 227374 times by 91 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
  • ...
)
133-227507
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 614 times by 10 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
) {
16-614
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 227904 times by 91 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 227904 times by 91 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-227904
1912 if (currentType == QMetaType::SChar
currentType ==...etaType::SCharDescription
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 227924 times by 91 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 227861 times by 91 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-227924
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 227987 times by 91 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 227987 times by 91 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-227987
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 227937 times by 91 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-227937
1917-
1918-
1919 if (currentType == uint(targetTypeId)
currentType ==...(targetTypeId)Description
TRUEevaluated 735 times by 27 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_QIdentityProxyModel
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QVariant
  • ...
FALSEevaluated 227253 times by 86 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
  • ...
)
735-227253
1920 return
executed 735 times by 27 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_QIdentityProxyModel
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QVariant
  • ...
true;
executed 735 times by 27 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_QIdentityProxyModel
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QVariant
  • ...
735
1921-
1922 if (targetTypeId < 0
targetTypeId < 0Description
TRUEevaluated 75 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 227178 times by 86 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-227178
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 133 times by 6 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
FALSEevaluated 227045 times by 86 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
  • ...
) {
133-227045
1925 if (QMetaType::typeFlags(targetTypeId) & QMetaType::IsEnumeration
QMetaType::typ...:IsEnumerationDescription
TRUEevaluated 57 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 76 times by 6 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
) {
57-76
1926 targetTypeId = QMetaType::Int;-
1927 }
executed 57 times by 1 test: end of block
Executed by:
  • tst_QVariant
else {
57
1928 return
executed 76 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 76 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
76
1929 }-
1930 }-
1931-
1932 if (currentType == QMetaType::QJsonValue
currentType ==...pe::QJsonValueDescription
TRUEevaluated 48 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 227054 times by 86 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-227054
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 227022 times by 86 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-227022
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 226990 times by 86 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-226990
1960 return
executed 32 times by 1 test: return targetTypeId == QMetaType::QVariantMap || targetTypeId == QMetaType::QVariantHash;
Executed by:
  • tst_QVariant
targetTypeId == QMetaType::QVariantMap || targetTypeId == QMetaType::QVariantHash;
executed 32 times by 1 test: return targetTypeId == QMetaType::QVariantMap || targetTypeId == QMetaType::QVariantHash;
Executed by:
  • tst_QVariant
32
1961-
1962-
1963 if (currentType > int(QMetaType::QUuid)
currentType > ...taType::QUuid)Description
TRUEevaluated 60094 times by 17 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIdentityProxyModel
  • tst_QItemView
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QTextDocument
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
FALSEevaluated 166896 times by 81 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 154057 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 12839 times by 66 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_QIdentityProxyModel
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QMainWindow
  • ...
) {
12839-166896
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
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
1973 || currentType == QMetaType::Long
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
1974 || currentType == QMetaType::UShort
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
1975 || currentType == QMetaType::UChar
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
1976 || currentType == QMetaType::Char
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
1977 || currentType == QMetaType::SChar
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
1978 || currentType == QMetaType::Short
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
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 == QVariant::Bitmap;
executed 35 times by 3 tests: return currentType == QVariant::Pixmap || currentType == QVariant::Bitmap;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
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::Bitmap
executed 36 times by 3 tests: return currentType == QVariant::Image || currentType == QVariant::Bitmap || currentType == QVariant::Brush;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
36
1984 || currentType == QVariant::Brush;
executed 36 times by 3 tests: return currentType == QVariant::Image || currentType == QVariant::Bitmap || currentType == QVariant::Brush;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
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 == QVariant::Image;
executed 35 times by 3 tests: return currentType == QVariant::Pixmap || currentType == QVariant::Image;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
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
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
24
1989 || ((QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration) && QMetaType::metaObjectForType(currentType));
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
24
1990 case
executed 438 times by 12 tests: case QVariant::String:
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
QVariant::String:
executed 438 times by 12 tests: case QVariant::String:
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusMarshall
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
438
1991 return
executed 438 times by 12 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_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
currentType == QVariant::KeySequence || currentType == QVariant::Font
executed 438 times by 12 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_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
438
1992 || currentType == QVariant::Color
executed 438 times by 12 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_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
438
1993 || ((QMetaType::typeFlags(currentType) & QMetaType::IsEnumeration) && QMetaType::metaObjectForType(currentType));
executed 438 times by 12 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_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_selftests - unknown status
438
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 == QVariant::Int;
executed 37 times by 3 tests: return currentType == QVariant::String || currentType == QVariant::Int;
Executed by:
  • tst_QGuiVariant
  • tst_QVariant
  • tst_QWidgetsVariant
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 303 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 303 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
303
1999 return
executed 303 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 == QVariant::ByteArray
executed 303 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
303
2000 || currentType == QVariant::Brush;
executed 303 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
303
2001 case
executed 212336 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 212336 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
  • ...
212336
2002 return
executed 212336 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::Pixmap;
executed 212336 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
  • ...
212336
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
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
2011 || (currentType < qCanConvertMatrixMaximumTargetType
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
2012 && qCanConvertMatrix[QVariant::Int] & (1U << currentType))
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
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 5155 times by 33 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_QIdentityProxyModel
  • 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
  • ...
FALSEevaluated 7684 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 5137 times by 33 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_QIdentityProxyModel
  • 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
  • ...
)
18-7684
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 12821 times by 66 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_QIdentityProxyModel
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QMainWindow
  • ...
currentType < qCanConvertMatrixMaximumTargetType
executed 12821 times by 66 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_QIdentityProxyModel
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QMainWindow
  • ...
12821
2024 && qCanConvertMatrix[targetTypeId] & (1U << currentType);
executed 12821 times by 66 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_QIdentityProxyModel
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QMainWindow
  • ...
12821
2025}-
2026bool QVariant::convert(int targetTypeId)-
2027{-
2028 if (d.type == uint(targetTypeId)
d.type == uint(targetTypeId)Description
TRUEevaluated 1356 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 6277 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
  • ...
)
1356-6277
2029 return
executed 1356 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 1356 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
  • ...
1356
2030-
2031 QVariant oldValue = *this;-
2032-
2033 clear();-
2034 if (!oldValue.canConvert(targetTypeId)
!oldValue.canC...(targetTypeId)Description
TRUEevaluated 5462 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 815 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
  • ...
)
815-5462
2035 return
executed 5462 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 5462 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
  • ...
5462
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 795 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-795
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 64 times by 7 tests
Evaluated by:
  • tst_QDataWidgetMapper
  • tst_QGuiVariant
  • tst_QObject
  • tst_QSqlRelationalTableModel
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 724 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
  • ...
)
64-724
2049 isOk = false;
executed 64 times by 7 tests: isOk = false;
Executed by:
  • tst_QDataWidgetMapper
  • tst_QGuiVariant
  • tst_QObject
  • tst_QSqlRelationalTableModel
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
64
2050 d.is_null = !isOk;-
2051 return
executed 788 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 788 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
  • ...
788
2052}-
2053-
2054-
2055-
2056-
2057-
2058-
2059bool QVariant::convert(const int type, void *ptr) const-
2060{-
2061 return
executed 371763 times by 107 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_QDialog
  • ...
handlerManager[type]->convert(&d, type, ptr, 0);
executed 371763 times by 107 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_QDialog
  • ...
371763
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 769050 times by 116 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) ? numericTypeBits & (static_cast<unsigned long long>(1ULL) << tp) : false;
executed 769050 times by 116 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
  • ...
769050
2081}-
2082-
2083static bool qIsFloatingPoint(uint tp)-
2084{-
2085 return
executed 329598 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 == QMetaType::Float;
executed 329598 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
  • ...
329598
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 323800 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) ? QVariant::Int : tp;
executed 323800 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
  • ...
323800
2098}-
2099-
2100static int normalizeLong(uint tp)-
2101{-
2102 const uint IntType = sizeof(long) == sizeof(int)
sizeof(long) == sizeof(int)Description
TRUEnever evaluated
FALSEevaluated 323800 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-323800
2103 const uint UIntType = sizeof(ulong) == sizeof(uint)
sizeof(ulong) == sizeof(uint)Description
TRUEnever evaluated
FALSEevaluated 323800 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-323800
2104 return
executed 323800 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 ? IntType :
executed 323800 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
  • ...
323800
2105 tp == QMetaType::ULong ? UIntType : tp;
executed 323800 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
  • ...
323800
2106}-
2107-
2108static int numericTypePromotion(uint t1, uint t2)-
2109{-
2110 ((!(qIsNumericType(t1))) ? qt_assert("qIsNumericType(t1)",__FILE__,3395) : qt_noop());-
2111 ((!(qIsNumericType(t2))) ? qt_assert("qIsNumericType(t2)",__FILE__,3396) : qt_noop());-
2112 if (qIsFloatingPoint(t1)
qIsFloatingPoint(t1)Description
TRUEevaluated 5628 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 161985 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 161900 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-161985
2113 return
executed 5713 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 5713 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
  • ...
5713
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 161699 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 161594 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-161699
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 159605 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 159503 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-159605
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 159193 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 158958 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-159193
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 158958 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 158958 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
  • ...
158958
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__,3444) : qt_noop());-
2144-
2145 qlonglong l2 = qConvertToNumber(d2, &ok);-
2146 ((!(ok)) ? qt_assert("ok",__FILE__,3447) : qt_noop());-
2147-
2148 if (promotedType == QVariant::Int
promotedType == QVariant::IntDescription
TRUEevaluated 158958 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-158958
2149 return
executed 158958 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) ? -1 : int(l1) == int(l2) ? 0 : 1;
executed 158958 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
  • ...
158958
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) ? -1 : uint(l1) == uint(l2) ? 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
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 ? -1 : l1 == l2 ? 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
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) ? -1 : qulonglong(l1) == qulonglong(l2) ? 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
306
2156-
2157 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,3458) : 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 161900 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 5713 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
  • ...
)
5713-161900
2165 return
executed 161900 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 161900 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
  • ...
161900
2166-
2167-
2168 bool ok;-
2169 qreal r1 = qConvertToRealNumber(d1, &ok);-
2170 ((!(ok)) ? qt_assert("ok",__FILE__,3471) : qt_noop());-
2171 qreal r2 = qConvertToRealNumber(d2, &ok);-
2172 ((!(ok)) ? qt_assert("ok",__FILE__,3473) : qt_noop());-
2173 if (r1 == r2
r1 == r2Description
TRUEevaluated 2995 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 2718 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 2708 times by 8 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStateMachine
  • tst_QVariant
)
10-2995
2174 return
executed 3005 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 3005 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
  • ...
3005
2175 return
executed 2708 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 ? -1 : 1;
executed 2708 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
2708
2176}-
2177-
2178-
2179-
2180-
2181bool QVariant::cmp(const QVariant &v) const-
2182{-
2183-
2184 if (qIsNumericType(d.type)
qIsNumericType(d.type)Description
TRUEevaluated 166009 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 98092 times by 91 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_QFtp
  • ...
&& qIsNumericType(v.d.type)
qIsNumericType(v.d.type)Description
TRUEevaluated 165868 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 141 times by 8 tests
Evaluated by:
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QSettings
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
)
141-166009
2185 return
executed 165868 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 165868 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
  • ...
165868
2186-
2187 QVariant v1 = *this;-
2188 QVariant v2 = v;-
2189 if (d.type != v2.d.type
d.type != v2.d.typeDescription
TRUEevaluated 1595 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 96638 times by 91 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_QFtp
  • ...
) {
1595-96638
2190 if (v2.canConvert(v1.d.type)
v2.canConvert(v1.d.type)Description
TRUEevaluated 129 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 1466 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
) {
129-1466
2191 if (!v2.convert(v1.d.type)
!v2.convert(v1.d.type)Description
TRUEevaluated 76 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-76
2192 return
executed 76 times by 6 tests: return false;
Executed by:
  • tst_QMetaType
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
false;
executed 76 times by 6 tests: return false;
Executed by:
  • tst_QMetaType
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QTreeWidget
  • tst_QVariant
  • tst_selftests - unknown status
76
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 1461 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-1461
2197 return
executed 1461 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 1461 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
1461
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 366 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 96330 times by 83 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_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsPixmapItem
  • ...
) {
366-96330
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 349 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-349
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 349 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
349
2205 return
executed 96679 times by 91 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_QFtp
  • ...
handlerManager[v1.d.type]->compare(&v1.d, &v2.d);
executed 96679 times by 91 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_QFtp
  • ...
96679
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) ? -1 : 1;
executed 2 times by 1 test: return (v1.d.type < v2.d.type) ? -1 : 1;
Executed by:
  • tst_QVariant
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() ? -1 : 1;
executed 16 times by 2 tests: return v1.toDate() < v2.toDate() ? -1 : 1;
Executed by:
  • tst_QMetaType
  • tst_QVariant
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() ? -1 : 1;
executed 15 times by 2 tests: return v1.toTime() < v2.toTime() ? -1 : 1;
Executed by:
  • tst_QMetaType
  • tst_QVariant
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() ? -1 : 1;
executed 8 times by 1 test: return v1.toDateTime() < v2.toDateTime() ? -1 : 1;
Executed by:
  • tst_QVariant
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() ? -1 : 1;
executed 56 times by 1 test: return v1.toStringList() < v2.toStringList() ? -1 : 1;
Executed by:
  • tst_QVariant
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) ? -1 : 1;
executed 2 times by 1 test: return (d.type < v.d.type) ? -1 : 1;
Executed by:
  • tst_QMetaType
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 5078917 times by 405 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.data.shared->ptr : reinterpret_cast<const void *>(&d.data.ptr);
executed 5078917 times by 405 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
  • ...
5078917
2280}-
2281void* QVariant::data()-
2282{-
2283 detach();-
2284 return
executed 42073 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 42073 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
  • ...
42073
2285}-
2286bool QVariant::isNull() const-
2287{-
2288 return
executed 420507 times by 136 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 420507 times by 136 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
  • ...
420507
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__,4205) : 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