qdatetime.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qdatetime.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12enum {-
13 SECS_PER_DAY = 86400,-
14 MSECS_PER_DAY = 86400000,-
15 SECS_PER_HOUR = 3600,-
16 MSECS_PER_HOUR = 3600000,-
17 SECS_PER_MIN = 60,-
18 MSECS_PER_MIN = 60000,-
19 TIME_T_MAX = 2145916799,-
20 JULIAN_DAY_FOR_EPOCH = 2440588-
21};-
22-
23-
24-
25-
26-
27static inline QDate fixedDate(int y, int m, int d)-
28{-
29 QDate result(y, m, 1);-
30 result.setDate(y, m, qMin(d, result.daysInMonth()));-
31 return
executed 288 times by 4 tests: return result;
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
result;
executed 288 times by 4 tests: return result;
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
288
32}-
33static inline qint64 floordiv(qint64 a, int b)-
34{-
35 return
executed 95030186 times by 102 tests: return (a - (a % b < 0 ? b - 1 : 0)) / b;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
(a - (a % b < 0
a % b < 0Description
TRUEevaluated 1327688 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 93858667 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
? b - 1 : 0)) / b;
executed 95030186 times by 102 tests: return (a - (a % b < 0 ? b - 1 : 0)) / b;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
1327688-95030186
36}-
37-
38static inline int floordiv(int a, int b)-
39{-
40 return
executed 136433380 times by 102 tests: return (a - (a % b < 0 ? b - 1 : 0)) / b;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
(a - (a % b < 0
a % b < 0Description
TRUEnever evaluated
FALSEevaluated 136374482 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
? b - 1 : 0)) / b;
executed 136433380 times by 102 tests: return (a - (a % b < 0 ? b - 1 : 0)) / b;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
0-136433380
41}-
42-
43static inline qint64 julianDayFromDate(int year, int month, int day)-
44{-
45-
46 if (year < 0
year < 0Description
TRUEevaluated 239374 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 21048343 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
)
239374-21048343
47 ++
executed 239374 times by 2 tests: ++year;
Executed by:
  • tst_QDate
  • tst_QDateTime
year;
executed 239374 times by 2 tests: ++year;
Executed by:
  • tst_QDate
  • tst_QDateTime
239374
48-
49-
50-
51-
52-
53-
54 int a = floordiv(14 - month, 12);-
55 qint64 y = (qint64)year + 4800 - a;-
56 int m = month + 12 * a - 3;-
57 return
executed 21292299 times by 102 tests: return day + floordiv(153 * m + 2, 5) + 365 * y + floordiv(y, 4) - floordiv(y, 100) + floordiv(y, 400) - 32045;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
day + floordiv(153 * m + 2, 5) + 365 * y + floordiv(y, 4) - floordiv(y, 100) + floordiv(y, 400) - 32045;
executed 21292299 times by 102 tests: return day + floordiv(153 * m + 2, 5) + 365 * y + floordiv(y, 4) - floordiv(y, 100) + floordiv(y, 400) - 32045;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
21292299
58}-
59-
60struct ParsedDate-
61{-
62 int year, month, day;-
63};-
64-
65-
66__attribute__((noinline))-
67static ParsedDate getDateFromJulianDay(qint64 julianDay)-
68{-
69-
70-
71-
72-
73-
74 qint64 a = julianDay + 32044;-
75 qint64 b = floordiv(4 * a + 3, 146097);-
76 int c = a - floordiv(146097 * b, 4);-
77-
78 int d = floordiv(4 * c + 3, 1461);-
79 int e = c - floordiv(1461 * d, 4);-
80 int m = floordiv(5 * e + 2, 153);-
81-
82 int day = e - floordiv(153 * m + 2, 5) + 1;-
83 int month = m + 3 - 12 * floordiv(m, 10);-
84 int year = 100 * b + d - 4800 + floordiv(m, 10);-
85-
86-
87 if (year <= 0
year <= 0Description
TRUEevaluated 715840 times by 5 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
FALSEevaluated 14937258 times by 99 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
)
715840-14937258
88 --
executed 715840 times by 5 tests: --year ;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
year ;
executed 715840 times by 5 tests: --year ;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
715840
89-
90 const ParsedDate result = { year, month, day };-
91 return
executed 15653098 times by 99 tests: return result;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
result;
executed 15653098 times by 99 tests: return result;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
15653098
92}-
93-
94-
95-
96-
97-
98static const char monthDays[] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };-
99-
100-
101static const char qt_shortMonthNames[][4] = {-
102 "Jan", "Feb", "Mar", "Apr", "May", "Jun",-
103 "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };-
104-
105static int qt_monthNumberFromShortName(QStringRef shortName)-
106{-
107 for (unsigned int i = 0; i < sizeof(qt_shortMonthNames) / sizeof(qt_shortMonthNames[0])
i < sizeof(qt_...MonthNames[0])Description
TRUEevaluated 588 times by 4 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QTime
FALSEevaluated 25 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
; ++i) {
25-588
108 if (shortName == QLatin1String(qt_shortMonthNames[i], 3)
shortName == Q...thNames[i], 3)Description
TRUEevaluated 90 times by 4 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QTime
FALSEevaluated 498 times by 4 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QTime
)
90-498
109 return
executed 90 times by 4 tests: return i + 1;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QTime
i + 1;
executed 90 times by 4 tests: return i + 1;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QTime
90
110 }
executed 498 times by 4 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QTime
498
111 return
executed 25 times by 3 tests: return -1;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
-1;
executed 25 times by 3 tests: return -1;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
25
112}-
113static int qt_monthNumberFromShortName(const QString &shortName)-
114{ return
executed 48 times by 3 tests: return qt_monthNumberFromShortName(QStringRef(&shortName));
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
qt_monthNumberFromShortName(QStringRef(&shortName));
executed 48 times by 3 tests: return qt_monthNumberFromShortName(QStringRef(&shortName));
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
}
48
115-
116static int fromShortMonthName(const QStringRef &monthName)-
117{-
118-
119 int month = qt_monthNumberFromShortName(monthName);-
120 if (month != -1
month != -1Description
TRUEevaluated 51 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
)
16-51
121 return
executed 51 times by 3 tests: return month;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
month;
executed 51 times by 3 tests: return month;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
51
122-
123 for (int i = 1; i <= 12
i <= 12Description
TRUEevaluated 192 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
; ++i) {
16-192
124 if (monthName == QDate::shortMonthName(i)
monthName == Q...rtMonthName(i)Description
TRUEnever evaluated
FALSEevaluated 192 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
)
0-192
125 return
never executed: return i;
i;
never executed: return i;
0
126 }
executed 192 times by 2 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
192
127 return
executed 16 times by 2 tests: return -1;
Executed by:
  • tst_QDate
  • tst_QDateTime
-1;
executed 16 times by 2 tests: return -1;
Executed by:
  • tst_QDate
  • tst_QDateTime
16
128}-
129-
130-
131-
132struct ParsedRfcDateTime {-
133 QDate date;-
134 QTime time;-
135 int utcOffset;-
136};-
137-
138static ParsedRfcDateTime rfcDateImpl(const QString &s)-
139{-
140 ParsedRfcDateTime result;-
141-
142-
143 QRegExp rex(([]() -> QString { enum { Size = sizeof(u"" "^(?:[A-Z][a-z]+,)?[ \\t]*(\\d{1,2})[ \\t]+([A-Z][a-z]+)[ \\t]+(\\d\\d\\d\\d)(?:[ \\t]+(\\d\\d):(\\d\\d)(?::(\\d\\d))?)?[ \\t]*(?:([+-])(\\d\\d)(\\d\\d))?")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "^(?:[A-Z][a-z]+,)?[ \\t]*(\\d{1,2})[ \\t]+([A-Z][a-z]+)[ \\t]+(\\d\\d\\d\\d)(?:[ \\t]+(\\d\\d):(\\d\\d)(?::(\\d\\d))?)?[ \\t]*(?:([+-])(\\d\\d)(\\d\\d))?" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 71 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
qstring_literal_temp;
executed 71 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
}()));
71
144 if (s.indexOf(rex) == 0
s.indexOf(rex) == 0Description
TRUEevaluated 33 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
FALSEevaluated 38 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
) {
33-38
145 const QStringList cap = rex.capturedTexts();-
146 result.date = QDate(cap[3].toInt(), qt_monthNumberFromShortName(cap[2]), cap[1].toInt());-
147 if (!cap[4].isEmpty()
!cap[4].isEmpty()Description
TRUEevaluated 27 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
FALSEevaluated 6 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
)
6-27
148 result.time = QTime(cap[4].toInt(), cap[5].toInt(), cap[6].toInt());
executed 27 times by 3 tests: result.time = QTime(cap[4].toInt(), cap[5].toInt(), cap[6].toInt());
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
27
149 const bool positiveOffset = (cap[7] == QLatin1String("+"));-
150 const int hourOffset = cap[8].toInt();-
151 const int minOffset = cap[9].toInt();-
152 result.utcOffset = ((hourOffset * 60 + minOffset) * (positiveOffset ? 60 : -60));-
153 }
executed 33 times by 3 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
else {
33
154-
155 QRegExp rex(([]() -> QString { enum { Size = sizeof(u"" "^[A-Z][a-z]+[ \\t]+([A-Z][a-z]+)[ \\t]+(\\d\\d)(?:[ \\t]+(\\d\\d):(\\d\\d):(\\d\\d))?[ \\t]+(\\d\\d\\d\\d)[ \\t]*(?:([+-])(\\d\\d)(\\d\\d))?")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "^[A-Z][a-z]+[ \\t]+([A-Z][a-z]+)[ \\t]+(\\d\\d)(?:[ \\t]+(\\d\\d):(\\d\\d):(\\d\\d))?[ \\t]+(\\d\\d\\d\\d)[ \\t]*(?:([+-])(\\d\\d)(\\d\\d))?" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 38 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
qstring_literal_temp;
executed 38 times by 3 tests: return qstring_literal_temp;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
}()));
38
156 if (s.indexOf(rex) == 0
s.indexOf(rex) == 0Description
TRUEevaluated 15 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
FALSEevaluated 23 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
) {
15-23
157 const QStringList cap = rex.capturedTexts();-
158 result.date = QDate(cap[6].toInt(), qt_monthNumberFromShortName(cap[1]), cap[2].toInt());-
159 if (!cap[3].isEmpty()
!cap[3].isEmpty()Description
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
FALSEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
)
3-12
160 result.time = QTime(cap[3].toInt(), cap[4].toInt(), cap[5].toInt());
executed 12 times by 3 tests: result.time = QTime(cap[3].toInt(), cap[4].toInt(), cap[5].toInt());
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
12
161 const bool positiveOffset = (cap[7] == QLatin1String("+"));-
162 const int hourOffset = cap[8].toInt();-
163 const int minOffset = cap[9].toInt();-
164 result.utcOffset = ((hourOffset * 60 + minOffset) * (positiveOffset ? 60 : -60));-
165 }
executed 15 times by 3 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
15
166 }
executed 38 times by 3 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
38
167-
168 return
executed 71 times by 3 tests: return result;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
result;
executed 71 times by 3 tests: return result;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QTime
71
169}-
170-
171-
172-
173static QString toOffsetString(Qt::DateFormat format, int offset)-
174{-
175 return
executed 96 times by 3 tests: return QString::asprintf("%c%02d%s%02d", offset >= 0 ? '+' : '-', qAbs(offset) / SECS_PER_HOUR, format == Qt::TextDate ? "" : ":", (qAbs(offset) / 60) % 60);
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
QString::asprintf("%c%02d%s%02d",
executed 96 times by 3 tests: return QString::asprintf("%c%02d%s%02d", offset >= 0 ? '+' : '-', qAbs(offset) / SECS_PER_HOUR, format == Qt::TextDate ? "" : ":", (qAbs(offset) / 60) % 60);
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
96
176 offset >= 0 ? '+' : '-',
executed 96 times by 3 tests: return QString::asprintf("%c%02d%s%02d", offset >= 0 ? '+' : '-', qAbs(offset) / SECS_PER_HOUR, format == Qt::TextDate ? "" : ":", (qAbs(offset) / 60) % 60);
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
96
177 qAbs(offset) / SECS_PER_HOUR,
executed 96 times by 3 tests: return QString::asprintf("%c%02d%s%02d", offset >= 0 ? '+' : '-', qAbs(offset) / SECS_PER_HOUR, format == Qt::TextDate ? "" : ":", (qAbs(offset) / 60) % 60);
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
96
17896
179 format == Qt::TextDate ? "" : ":",
executed 96 times by 3 tests: return QString::asprintf("%c%02d%s%02d", offset >= 0 ? '+' : '-', qAbs(offset) / SECS_PER_HOUR, format == Qt::TextDate ? "" : ":", (qAbs(offset) / 60) % 60);
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
96
180 (qAbs(offset) / 60) % 60);
executed 96 times by 3 tests: return QString::asprintf("%c%02d%s%02d", offset >= 0 ? '+' : '-', qAbs(offset) / SECS_PER_HOUR, format == Qt::TextDate ? "" : ":", (qAbs(offset) / 60) % 60);
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
96
181}-
182-
183-
184static int fromOffsetString(const QStringRef &offsetString, bool *valid)-
185{-
186 *valid = false;-
187-
188 const int size = offsetString.size();-
189 if (size < 2
size < 2Description
TRUEnever evaluated
FALSEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
|| size > 6
size > 6Description
TRUEnever evaluated
FALSEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
)
0-23
190 return
never executed: return 0;
0;
never executed: return 0;
0
191-
192-
193 int sign;-
194-
195-
196 const QChar signChar = offsetString.at(0);-
197 if (signChar == QLatin1Char('+')
signChar == QLatin1Char('+')Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QDateTime
)
11-12
198 sign = 1;
executed 12 times by 2 tests: sign = 1;
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
12
199 else if (signChar == QLatin1Char('-')
signChar == QLatin1Char('-')Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
)
1-10
200 sign = -1;
executed 10 times by 1 test: sign = -1;
Executed by:
  • tst_QDateTime
10
201 else-
202 return
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QDateTime
0;
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QDateTime
1
203-
204-
205 QVector<QStringRef> parts = offsetString.mid(1).split(QLatin1Char(':'));-
206 if (parts.count() == 1
parts.count() == 1Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
) {
9-13
207-
208 parts.append(parts.first().mid(2));-
209 parts[0] = parts.first().left(2);-
210 }
executed 13 times by 1 test: end of block
Executed by:
  • tst_QDateTime
13
211-
212 bool ok = false;-
213 const int hour = parts.first().toInt(&ok);-
214 if (!ok
!okDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
)
2-20
215 return
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QDateTime
0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QDateTime
2
216-
217 const int minute = (
(parts.at(1).isEmpty())Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
parts.at(1).isEmpty())
(parts.at(1).isEmpty())Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
? 0 : parts.at(1).toInt(&ok);
4-16
218 if (!ok
!okDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 19 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
|| minute < 0
minute < 0Description
TRUEnever evaluated
FALSEevaluated 19 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
|| minute > 59
minute > 59Description
TRUEnever evaluated
FALSEevaluated 19 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
)
0-19
219 return
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QDateTime
0;
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QDateTime
1
220-
221 *valid = true;-
222 return
executed 19 times by 2 tests: return sign * ((hour * 60) + minute) * 60;
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
sign * ((hour * 60) + minute) * 60;
executed 19 times by 2 tests: return sign * ((hour * 60) + minute) * 60;
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
19
223}-
224QDate::QDate(int y, int m, int d)-
225{-
226 setDate(y, m, d);-
227}
executed 20734897 times by 102 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
20734897
228int QDate::year() const-
229{-
230 if (isNull()
isNull()Description
TRUEevaluated 24 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 621632 times by 41 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • ...
)
24-621632
231 return
executed 24 times by 2 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QDateTime
0;
executed 24 times by 2 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QDateTime
24
232-
233 return
executed 621632 times by 41 tests: return getDateFromJulianDay(jd).year;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • ...
getDateFromJulianDay(jd).year;
executed 621632 times by 41 tests: return getDateFromJulianDay(jd).year;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • ...
621632
234}-
235int QDate::month() const-
236{-
237 if (isNull()
isNull()Description
TRUEevaluated 24 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 611326 times by 40 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QPlainTextEdit
  • ...
)
24-611326
238 return
executed 24 times by 2 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QDateTime
0;
executed 24 times by 2 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QDateTime
24
239-
240 return
executed 611326 times by 40 tests: return getDateFromJulianDay(jd).month;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QPlainTextEdit
  • ...
getDateFromJulianDay(jd).month;
executed 611326 times by 40 tests: return getDateFromJulianDay(jd).month;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QPlainTextEdit
  • ...
611326
241}-
242int QDate::day() const-
243{-
244 if (isNull()
isNull()Description
TRUEevaluated 24 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 647178 times by 39 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QPlainTextEdit
  • ...
)
24-647178
245 return
executed 24 times by 2 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QDateTime
0;
executed 24 times by 2 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QDateTime
24
246-
247 return
executed 647178 times by 39 tests: return getDateFromJulianDay(jd).day;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QPlainTextEdit
  • ...
getDateFromJulianDay(jd).day;
executed 647178 times by 39 tests: return getDateFromJulianDay(jd).day;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QPlainTextEdit
  • ...
647178
248}-
249int QDate::dayOfWeek() const-
250{-
251 if (isNull()
isNull()Description
TRUEevaluated 77 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
FALSEevaluated 39474 times by 17 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QTimeZone
  • tst_QXmlStream
  • tst_qmakelib
)
77-39474
252 return
executed 77 times by 3 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
0;
executed 77 times by 3 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
77
253-
254 if (jd >= 0
jd >= 0Description
TRUEevaluated 39466 times by 17 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QTimeZone
  • tst_QXmlStream
  • tst_qmakelib
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QDate
)
8-39466
255 return
executed 39466 times by 17 tests: return (jd % 7) + 1;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QTimeZone
  • tst_QXmlStream
  • tst_qmakelib
(jd % 7) + 1;
executed 39466 times by 17 tests: return (jd % 7) + 1;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QTimeZone
  • tst_QXmlStream
  • tst_qmakelib
39466
256 else-
257 return
executed 8 times by 1 test: return ((jd + 1) % 7) + 7;
Executed by:
  • tst_QDate
((jd + 1) % 7) + 7;
executed 8 times by 1 test: return ((jd + 1) % 7) + 7;
Executed by:
  • tst_QDate
8
258}-
259int QDate::dayOfYear() const-
260{-
261 if (isNull()
isNull()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 1907 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
)
1-1907
262 return
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QDate
0;
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QDate
1
263-
264 return
executed 1907 times by 3 tests: return jd - julianDayFromDate(year(), 1, 1) + 1;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
jd - julianDayFromDate(year(), 1, 1) + 1;
executed 1907 times by 3 tests: return jd - julianDayFromDate(year(), 1, 1) + 1;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
1907
265}-
266int QDate::daysInMonth() const-
267{-
268 if (isNull()
isNull()Description
TRUEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTimeEdit
FALSEevaluated 4510 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QTime
)
41-4510
269 return
executed 41 times by 2 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QDateTimeEdit
0;
executed 41 times by 2 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QDateTimeEdit
41
270-
271 const ParsedDate pd = getDateFromJulianDay(jd);-
272 if (pd.month == 2
pd.month == 2Description
TRUEevaluated 223 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
FALSEevaluated 4287 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QTime
&& isLeapYear(pd.year)
isLeapYear(pd.year)Description
TRUEevaluated 159 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
FALSEevaluated 64 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
)
64-4287
273 return
executed 159 times by 7 tests: return 29;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
29;
executed 159 times by 7 tests: return 29;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
159
274 else-
275 return
executed 4351 times by 8 tests: return monthDays[pd.month];
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QTime
monthDays[pd.month];
executed 4351 times by 8 tests: return monthDays[pd.month];
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QTime
4351
276}-
277int QDate::daysInYear() const-
278{-
279 if (isNull()
isNull()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDate
)
1-4
280 return
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QDate
0;
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QDate
1
281-
282 return
executed 4 times by 1 test: return isLeapYear(getDateFromJulianDay(jd).year) ? 366 : 365;
Executed by:
  • tst_QDate
isLeapYear(getDateFromJulianDay(jd).year)
isLeapYear(get...nDay(jd).year)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
? 366 : 365;
executed 4 times by 1 test: return isLeapYear(getDateFromJulianDay(jd).year) ? 366 : 365;
Executed by:
  • tst_QDate
2-4
283}-
284int QDate::weekNumber(int *yearNumber) const-
285{-
286 if (!isValid()
!isValid()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 1894 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
)
3-1894
287 return
executed 3 times by 1 test: return 0;
Executed by:
  • tst_QDate
0;
executed 3 times by 1 test: return 0;
Executed by:
  • tst_QDate
3
288-
289 int year = QDate::year();-
290 int yday = dayOfYear();-
291 int wday = dayOfWeek();-
292-
293 int week = (yday - wday + 10) / 7;-
294-
295 if (week == 0
week == 0Description
TRUEevaluated 172 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 1722 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
) {
172-1722
296-
297 --year;-
298 week = (yday + 365 + (QDate::isLeapYear(year)
QDate::isLeapYear(year)Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 130 times by 1 test
Evaluated by:
  • tst_QDate
? 1 : 0) - wday + 10) / 7;
42-130
299 ((!(week == 52 || week == 53)) ? qt_assert("week == 52 || week == 53",__FILE__,594) : qt_noop());-
300 }
executed 172 times by 1 test: end of block
Executed by:
  • tst_QDate
else if (week == 53
week == 53Description
TRUEevaluated 315 times by 2 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
FALSEevaluated 1407 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
) {
172-1407
301-
302 int w = (yday - 365 - (QDate::isLeapYear(year)
QDate::isLeapYear(year)Description
TRUEevaluated 96 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 219 times by 2 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
? 1 : 0) - wday + 10) / 7;
96-219
303 if (w > 0
w > 0Description
TRUEevaluated 173 times by 2 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
FALSEevaluated 142 times by 1 test
Evaluated by:
  • tst_QDate
) {
142-173
304 ++year;-
305 week = w;-
306 }
executed 173 times by 2 tests: end of block
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
173
307 ((!(week == 53 || week == 1)) ? qt_assert("week == 53 || week == 1",__FILE__,602) : qt_noop());-
308 }
executed 315 times by 2 tests: end of block
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
315
309-
310 if (yearNumber != 0
yearNumber != 0Description
TRUEevaluated 1600 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 294 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
)
294-1600
311 *
executed 1600 times by 1 test: *yearNumber = year;
Executed by:
  • tst_QDate
yearNumber = year;
executed 1600 times by 1 test: *yearNumber = year;
Executed by:
  • tst_QDate
1600
312 return
executed 1894 times by 3 tests: return week;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
week;
executed 1894 times by 3 tests: return week;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
1894
313}-
314QString QDate::shortMonthName(int month, QDate::MonthNameType type)-
315{-
316 if (month >= 1
month >= 1Description
TRUEevaluated 658 times by 4 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
|| month <= 12
month <= 12Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
FALSEnever evaluated
) {
0-658
317 switch (type) {-
318 case
executed 646 times by 4 tests: case QDate::DateFormat:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
QDate::DateFormat:
executed 646 times by 4 tests: case QDate::DateFormat:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
646
319 return
executed 646 times by 4 tests: return QLocale::system().monthName(month, QLocale::ShortFormat);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
QLocale::system().monthName(month, QLocale::ShortFormat);
executed 646 times by 4 tests: return QLocale::system().monthName(month, QLocale::ShortFormat);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
646
320 case
executed 14 times by 1 test: case QDate::StandaloneFormat:
Executed by:
  • tst_QDate
QDate::StandaloneFormat:
executed 14 times by 1 test: case QDate::StandaloneFormat:
Executed by:
  • tst_QDate
14
321 return
executed 14 times by 1 test: return QLocale::system().standaloneMonthName(month, QLocale::ShortFormat);
Executed by:
  • tst_QDate
QLocale::system().standaloneMonthName(month, QLocale::ShortFormat);
executed 14 times by 1 test: return QLocale::system().standaloneMonthName(month, QLocale::ShortFormat);
Executed by:
  • tst_QDate
14
322 }-
323 }
never executed: end of block
0
324 return
never executed: return QString();
QString();
never executed: return QString();
0
325}-
326QString QDate::longMonthName(int month, MonthNameType type)-
327{-
328 if (month >= 1
month >= 1Description
TRUEevaluated 38 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
&& month <= 12
month <= 12Description
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
) {
2-38
329 switch (type) {-
330 case
executed 24 times by 3 tests: case QDate::DateFormat:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
QDate::DateFormat:
executed 24 times by 3 tests: case QDate::DateFormat:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
24
331 return
executed 24 times by 3 tests: return QLocale::system().monthName(month, QLocale::LongFormat);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
QLocale::system().monthName(month, QLocale::LongFormat);
executed 24 times by 3 tests: return QLocale::system().monthName(month, QLocale::LongFormat);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
24
332 case
executed 12 times by 1 test: case QDate::StandaloneFormat:
Executed by:
  • tst_QDate
QDate::StandaloneFormat:
executed 12 times by 1 test: case QDate::StandaloneFormat:
Executed by:
  • tst_QDate
12
333 return
executed 12 times by 1 test: return QLocale::system().standaloneMonthName(month, QLocale::LongFormat);
Executed by:
  • tst_QDate
QLocale::system().standaloneMonthName(month, QLocale::LongFormat);
executed 12 times by 1 test: return QLocale::system().standaloneMonthName(month, QLocale::LongFormat);
Executed by:
  • tst_QDate
12
334 }-
335 }
never executed: end of block
0
336 return
executed 4 times by 1 test: return QString();
Executed by:
  • tst_QDate
QString();
executed 4 times by 1 test: return QString();
Executed by:
  • tst_QDate
4
337}-
338QString QDate::shortDayName(int weekday, MonthNameType type)-
339{-
340 if (weekday >= 1
weekday >= 1Description
TRUEevaluated 456 times by 4 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
&& weekday <= 7
weekday <= 7Description
TRUEevaluated 454 times by 4 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
) {
2-456
341 switch (type) {-
342 case
executed 447 times by 4 tests: case QDate::DateFormat:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
QDate::DateFormat:
executed 447 times by 4 tests: case QDate::DateFormat:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
447
343 return
executed 447 times by 4 tests: return QLocale::system().dayName(weekday, QLocale::ShortFormat);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
QLocale::system().dayName(weekday, QLocale::ShortFormat);
executed 447 times by 4 tests: return QLocale::system().dayName(weekday, QLocale::ShortFormat);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
447
344 case
executed 7 times by 1 test: case QDate::StandaloneFormat:
Executed by:
  • tst_QDate
QDate::StandaloneFormat:
executed 7 times by 1 test: case QDate::StandaloneFormat:
Executed by:
  • tst_QDate
7
345 return
executed 7 times by 1 test: return QLocale::system().standaloneDayName(weekday, QLocale::ShortFormat);
Executed by:
  • tst_QDate
QLocale::system().standaloneDayName(weekday, QLocale::ShortFormat);
executed 7 times by 1 test: return QLocale::system().standaloneDayName(weekday, QLocale::ShortFormat);
Executed by:
  • tst_QDate
7
346 }-
347 }
never executed: end of block
0
348 return
executed 4 times by 1 test: return QString();
Executed by:
  • tst_QDate
QString();
executed 4 times by 1 test: return QString();
Executed by:
  • tst_QDate
4
349}-
350QString QDate::longDayName(int weekday, MonthNameType type)-
351{-
352 if (weekday >= 1
weekday >= 1Description
TRUEevaluated 23 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
&& weekday <= 7
weekday <= 7Description
TRUEevaluated 21 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
) {
2-23
353 switch (type) {-
354 case
executed 14 times by 1 test: case QDate::DateFormat:
Executed by:
  • tst_QDate
QDate::DateFormat:
executed 14 times by 1 test: case QDate::DateFormat:
Executed by:
  • tst_QDate
14
355 return
executed 14 times by 1 test: return QLocale::system().dayName(weekday, QLocale::LongFormat);
Executed by:
  • tst_QDate
QLocale::system().dayName(weekday, QLocale::LongFormat);
executed 14 times by 1 test: return QLocale::system().dayName(weekday, QLocale::LongFormat);
Executed by:
  • tst_QDate
14
356 case
executed 7 times by 1 test: case QDate::StandaloneFormat:
Executed by:
  • tst_QDate
QDate::StandaloneFormat:
executed 7 times by 1 test: case QDate::StandaloneFormat:
Executed by:
  • tst_QDate
7
357 return
executed 7 times by 1 test: return QLocale::system().standaloneDayName(weekday, QLocale::LongFormat);
Executed by:
  • tst_QDate
QLocale::system().standaloneDayName(weekday, QLocale::LongFormat);
executed 7 times by 1 test: return QLocale::system().standaloneDayName(weekday, QLocale::LongFormat);
Executed by:
  • tst_QDate
7
358 }-
359 }
never executed: end of block
0
360 return
executed 4 times by 1 test: return QString();
Executed by:
  • tst_QDate
QString();
executed 4 times by 1 test: return QString();
Executed by:
  • tst_QDate
4
361}-
362-
363-
364-
365-
366-
367static QString toStringTextDate(QDate date)-
368{-
369 const ParsedDate pd = getDateFromJulianDay(date.toJulianDay());-
370 static const QLatin1Char sp(' ');-
371 return
executed 2 times by 1 test: return date.shortDayName(date.dayOfWeek()) + sp + date.shortMonthName(pd.month) + sp + QString::number(pd.day) + sp + QString::number(pd.year);
Executed by:
  • tst_QDate
date.shortDayName(date.dayOfWeek()) + sp
executed 2 times by 1 test: return date.shortDayName(date.dayOfWeek()) + sp + date.shortMonthName(pd.month) + sp + QString::number(pd.day) + sp + QString::number(pd.year);
Executed by:
  • tst_QDate
2
372 + date.shortMonthName(pd.month) + sp
executed 2 times by 1 test: return date.shortDayName(date.dayOfWeek()) + sp + date.shortMonthName(pd.month) + sp + QString::number(pd.day) + sp + QString::number(pd.year);
Executed by:
  • tst_QDate
2
373 + QString::number(pd.day) + sp
executed 2 times by 1 test: return date.shortDayName(date.dayOfWeek()) + sp + date.shortMonthName(pd.month) + sp + QString::number(pd.day) + sp + QString::number(pd.year);
Executed by:
  • tst_QDate
2
374 + QString::number(pd.year);
executed 2 times by 1 test: return date.shortDayName(date.dayOfWeek()) + sp + date.shortMonthName(pd.month) + sp + QString::number(pd.day) + sp + QString::number(pd.year);
Executed by:
  • tst_QDate
2
375}-
376-
377-
378static QString toStringIsoDate(qint64 jd)-
379{-
380 const ParsedDate pd = getDateFromJulianDay(jd);-
381 if (pd.year >= 0
pd.year >= 0Description
TRUEevaluated 36 times by 5 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
&& pd.year <= 9999
pd.year <= 9999Description
TRUEevaluated 36 times by 5 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
FALSEnever evaluated
)
0-36
382 return
executed 36 times by 5 tests: return QString::asprintf("%04d-%02d-%02d", pd.year, pd.month, pd.day);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
QString::asprintf("%04d-%02d-%02d", pd.year, pd.month, pd.day);
executed 36 times by 5 tests: return QString::asprintf("%04d-%02d-%02d", pd.year, pd.month, pd.day);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
36
383 else-
384 return
executed 3 times by 2 tests: return QString();
Executed by:
  • tst_QDate
  • tst_QDateTime
QString();
executed 3 times by 2 tests: return QString();
Executed by:
  • tst_QDate
  • tst_QDateTime
3
385}-
386QString QDate::toString(Qt::DateFormat format) const-
387{-
388 if (!isValid()
!isValid()Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QVariant
FALSEevaluated 98 times by 5 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
)
2-98
389 return
executed 2 times by 2 tests: return QString();
Executed by:
  • tst_QDate
  • tst_QVariant
QString();
executed 2 times by 2 tests: return QString();
Executed by:
  • tst_QDate
  • tst_QVariant
2
390-
391 switch (format) {-
392 case
never executed: case Qt::SystemLocaleDate:
Qt::SystemLocaleDate:
never executed: case Qt::SystemLocaleDate:
0
393 case
executed 14 times by 1 test: case Qt::SystemLocaleShortDate:
Executed by:
  • tst_QDate
Qt::SystemLocaleShortDate:
executed 14 times by 1 test: case Qt::SystemLocaleShortDate:
Executed by:
  • tst_QDate
14
394 return
executed 14 times by 1 test: return QLocale::system().toString(*this, QLocale::ShortFormat);
Executed by:
  • tst_QDate
QLocale::system().toString(*this, QLocale::ShortFormat);
executed 14 times by 1 test: return QLocale::system().toString(*this, QLocale::ShortFormat);
Executed by:
  • tst_QDate
14
395 case
executed 14 times by 1 test: case Qt::SystemLocaleLongDate:
Executed by:
  • tst_QDate
Qt::SystemLocaleLongDate:
executed 14 times by 1 test: case Qt::SystemLocaleLongDate:
Executed by:
  • tst_QDate
14
396 return
executed 14 times by 1 test: return QLocale::system().toString(*this, QLocale::LongFormat);
Executed by:
  • tst_QDate
QLocale::system().toString(*this, QLocale::LongFormat);
executed 14 times by 1 test: return QLocale::system().toString(*this, QLocale::LongFormat);
Executed by:
  • tst_QDate
14
397 case
never executed: case Qt::LocaleDate:
Qt::LocaleDate:
never executed: case Qt::LocaleDate:
0
398 case
executed 14 times by 1 test: case Qt::DefaultLocaleShortDate:
Executed by:
  • tst_QDate
Qt::DefaultLocaleShortDate:
executed 14 times by 1 test: case Qt::DefaultLocaleShortDate:
Executed by:
  • tst_QDate
14
399 return
executed 14 times by 1 test: return QLocale().toString(*this, QLocale::ShortFormat);
Executed by:
  • tst_QDate
QLocale().toString(*this, QLocale::ShortFormat);
executed 14 times by 1 test: return QLocale().toString(*this, QLocale::ShortFormat);
Executed by:
  • tst_QDate
14
400 case
executed 14 times by 1 test: case Qt::DefaultLocaleLongDate:
Executed by:
  • tst_QDate
Qt::DefaultLocaleLongDate:
executed 14 times by 1 test: case Qt::DefaultLocaleLongDate:
Executed by:
  • tst_QDate
14
401 return
executed 14 times by 1 test: return QLocale().toString(*this, QLocale::LongFormat);
Executed by:
  • tst_QDate
QLocale().toString(*this, QLocale::LongFormat);
executed 14 times by 1 test: return QLocale().toString(*this, QLocale::LongFormat);
Executed by:
  • tst_QDate
14
402 case
executed 1 time by 1 test: case Qt::RFC2822Date:
Executed by:
  • tst_QDate
Qt::RFC2822Date:
executed 1 time by 1 test: case Qt::RFC2822Date:
Executed by:
  • tst_QDate
1
403 return
executed 1 time by 1 test: return QLocale::c().toString(*this, ([]() -> QString { enum { Size = sizeof(u"" "dd MMM yyyy")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "dd MMM yyyy" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()));
Executed by:
  • tst_QDate
QLocale::c().toString(*this, ([]() -> QString { enum { Size = sizeof(u"" "dd MMM yyyy")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "dd MMM yyyy" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QDate
qstring_literal_temp;
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QDate
}()));
executed 1 time by 1 test: return QLocale::c().toString(*this, ([]() -> QString { enum { Size = sizeof(u"" "dd MMM yyyy")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "dd MMM yyyy" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()));
Executed by:
  • tst_QDate
1
404 default
never executed: default:
:
never executed: default:
0
405-
406 case
executed 2 times by 1 test: case Qt::TextDate:
Executed by:
  • tst_QDate
Qt::TextDate:
executed 2 times by 1 test: case Qt::TextDate:
Executed by:
  • tst_QDate
2
407 return
executed 2 times by 1 test: return toStringTextDate(*this);
Executed by:
  • tst_QDate
toStringTextDate(*this);
executed 2 times by 1 test: return toStringTextDate(*this);
Executed by:
  • tst_QDate
2
408-
409 case
executed 39 times by 5 tests: case Qt::ISODate:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
Qt::ISODate:
executed 39 times by 5 tests: case Qt::ISODate:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
39
410 return
executed 39 times by 5 tests: return toStringIsoDate(jd);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
toStringIsoDate(jd);
executed 39 times by 5 tests: return toStringIsoDate(jd);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
39
411 }-
412}-
413QString QDate::toString(const QString& format) const-
414{-
415 return
executed 13785 times by 7 tests: return QLocale::system().toString(*this, format);
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QVariant
QLocale::system().toString(*this, format);
executed 13785 times by 7 tests: return QLocale::system().toString(*this, format);
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QVariant
13785
416}-
417bool QDate::setDate(int year, int month, int day)-
418{-
419 if (isValid(year, month, day)
isValid(year, month, day)Description
TRUEevaluated 21296277 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
FALSEevaluated 11380 times by 6 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QTime
)
11380-21296277
420 jd = julianDayFromDate(year, month, day);
executed 21294616 times by 102 tests: jd = julianDayFromDate(year, month, day);
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
21294616
421 else-
422 jd = nullJd();
executed 11380 times by 6 tests: jd = nullJd();
Executed by:
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QTime
11380
423-
424 return
executed 21291822 times by 102 tests: return isValid();
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
isValid();
executed 21291822 times by 102 tests: return isValid();
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
21291822
425}-
426void QDate::getDate(int *year, int *month, int *day)-
427{-
428 ParsedDate pd = { 0, 0, 0 };-
429 if (isValid()
isValid()Description
TRUEevaluated 13766956 times by 97 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
)
3-13766956
430 pd = getDateFromJulianDay(jd);
executed 13762626 times by 97 tests: pd = getDateFromJulianDay(jd);
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13762626
431-
432 if (year
yearDescription
TRUEevaluated 13767590 times by 97 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDateTime
)
3-13767590
433 *
executed 13758246 times by 97 tests: *year = pd.year;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
year = pd.year;
executed 13758246 times by 97 tests: *year = pd.year;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13758246
434 if (month
monthDescription
TRUEevaluated 13768119 times by 97 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDateTime
)
3-13768119
435 *
executed 13768119 times by 97 tests: *month = pd.month;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
month = pd.month;
executed 13768119 times by 97 tests: *month = pd.month;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13768119
436 if (day
dayDescription
TRUEevaluated 13767049 times by 97 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDateTime
)
3-13767049
437 *
executed 13768119 times by 97 tests: *day = pd.day;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
day = pd.day;
executed 13768119 times by 97 tests: *day = pd.day;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13768119
438}
executed 13764451 times by 97 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13764451
439QDate QDate::addDays(qint64 ndays) const-
440{-
441 if (isNull()
isNull()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 630950 times by 14 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QTimeZone
)
1-630950
442 return
executed 1 time by 1 test: return QDate();
Executed by:
  • tst_QDate
QDate();
executed 1 time by 1 test: return QDate();
Executed by:
  • tst_QDate
1
443-
444-
445-
446 return
executed 630950 times by 14 tests: return fromJulianDay(jd + ndays);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QTimeZone
fromJulianDay(jd + ndays);
executed 630950 times by 14 tests: return fromJulianDay(jd + ndays);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QTimeZone
630950
447}-
448QDate QDate::addMonths(int nmonths) const-
449{-
450 if (!isValid()
!isValid()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 172 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
)
1-172
451 return
executed 1 time by 1 test: return QDate();
Executed by:
  • tst_QDate
QDate();
executed 1 time by 1 test: return QDate();
Executed by:
  • tst_QDate
1
452 if (!nmonths
!nmonthsDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 168 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
)
4-168
453 return
executed 4 times by 1 test: return *this;
Executed by:
  • tst_QDateTime
*this;
executed 4 times by 1 test: return *this;
Executed by:
  • tst_QDateTime
4
454-
455 int old_y, y, m, d;-
456 {-
457 const ParsedDate pd = getDateFromJulianDay(jd);-
458 y = pd.year;-
459 m = pd.month;-
460 d = pd.day;-
461 }-
462 old_y = y;-
463-
464 bool increasing = nmonths > 0;-
465-
466 while (nmonths != 0
nmonths != 0Description
TRUEevaluated 188 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
FALSEevaluated 168 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
) {
168-188
467 if (nmonths < 0
nmonths < 0Description
TRUEevaluated 97 times by 3 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 91 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
&& nmonths + 12 <= 0
nmonths + 12 <= 0Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 82 times by 3 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
) {
15-97
468 y--;-
469 nmonths+=12;-
470 }
executed 15 times by 2 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
else if (nmonths < 0
nmonths < 0Description
TRUEevaluated 82 times by 3 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 91 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
) {
15-91
471 m+= nmonths;-
472 nmonths = 0;-
473 if (m <= 0
m <= 0Description
TRUEevaluated 49 times by 3 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 33 times by 3 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
) {
33-49
474 --y;-
475 m += 12;-
476 }
executed 49 times by 3 tests: end of block
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
49
477 }
executed 82 times by 3 tests: end of block
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
else if (nmonths - 12 >= 0
nmonths - 12 >= 0Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 75 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
) {
16-82
478 y++;-
479 nmonths -= 12;-
480 }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
else if (m == 12
m == 12Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 73 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
) {
2-73
481 y++;-
482 m = 0;-
483 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QDate
else {
2
484 m += nmonths;-
485 nmonths = 0;-
486 if (m > 12
m > 12Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 72 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
) {
1-72
487 ++y;-
488 m -= 12;-
489 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QDate
1
490 }
executed 73 times by 4 tests: end of block
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
73
491 }-
492-
493-
494 if ((old_y > 0
old_y > 0Description
TRUEevaluated 165 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDate
&& y <= 0
y <= 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 163 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
) ||
2-165
495 (old_y < 0
old_y < 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 163 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
&& y >= 0
y >= 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
))
1-163
496-
497 y += increasing
increasingDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
? +1 : -1;
executed 4 times by 1 test: y += increasing ? +1 : -1;
Executed by:
  • tst_QDate
2-4
498-
499 return
executed 168 times by 4 tests: return fixedDate(y, m, d);
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
fixedDate(y, m, d);
executed 168 times by 4 tests: return fixedDate(y, m, d);
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
168
500}-
501QDate QDate::addYears(int nyears) const-
502{-
503 if (!isValid()
!isValid()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 120 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
)
1-120
504 return
executed 1 time by 1 test: return QDate();
Executed by:
  • tst_QDate
QDate();
executed 1 time by 1 test: return QDate();
Executed by:
  • tst_QDate
1
505-
506 ParsedDate pd = getDateFromJulianDay(jd);-
507-
508 int old_y = pd.year;-
509 pd.year += nyears;-
510-
511-
512 if ((old_y > 0
old_y > 0Description
TRUEevaluated 99 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
FALSEevaluated 21 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
&& pd.year <= 0
pd.year <= 0Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 91 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
) ||
8-99
513 (old_y < 0
old_y < 0Description
TRUEevaluated 21 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 91 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
&& pd.year >= 0
pd.year >= 0Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
))
8-91
514-
515 pd.year += nyears > 0
nyears > 0Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
? +1 : -1;
executed 16 times by 2 tests: pd.year += nyears > 0 ? +1 : -1;
Executed by:
  • tst_QDate
  • tst_QDateTime
8-16
516-
517 return
executed 120 times by 4 tests: return fixedDate(pd.year, pd.month, pd.day);
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
fixedDate(pd.year, pd.month, pd.day);
executed 120 times by 4 tests: return fixedDate(pd.year, pd.month, pd.day);
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
120
518}-
519qint64 QDate::daysTo(const QDate &d) const-
520{-
521 if (isNull()
isNull()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 18656 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
|| d.isNull()
d.isNull()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 18655 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
)
1-18656
522 return
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QDate
0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QDate
2
523-
524-
525 return
executed 18655 times by 14 tests: return d.jd - jd;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
d.jd - jd;
executed 18655 times by 14 tests: return d.jd - jd;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
18655
526}-
527QDate QDate::fromString(const QString& string, Qt::DateFormat format)-
528{-
529 if (string.isEmpty()
string.isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 114 times by 5 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
)
2-114
530 return
executed 2 times by 1 test: return QDate();
Executed by:
  • tst_QDate
QDate();
executed 2 times by 1 test: return QDate();
Executed by:
  • tst_QDate
2
531-
532 switch (format) {-
533 case
never executed: case Qt::SystemLocaleDate:
Qt::SystemLocaleDate:
never executed: case Qt::SystemLocaleDate:
0
534 case
never executed: case Qt::SystemLocaleShortDate:
Qt::SystemLocaleShortDate:
never executed: case Qt::SystemLocaleShortDate:
0
535 return
never executed: return QLocale::system().toDate(string, QLocale::ShortFormat);
QLocale::system().toDate(string, QLocale::ShortFormat);
never executed: return QLocale::system().toDate(string, QLocale::ShortFormat);
0
536 case
never executed: case Qt::SystemLocaleLongDate:
Qt::SystemLocaleLongDate:
never executed: case Qt::SystemLocaleLongDate:
0
537 return
never executed: return QLocale::system().toDate(string, QLocale::LongFormat);
QLocale::system().toDate(string, QLocale::LongFormat);
never executed: return QLocale::system().toDate(string, QLocale::LongFormat);
0
538 case
never executed: case Qt::LocaleDate:
Qt::LocaleDate:
never executed: case Qt::LocaleDate:
0
539 case
never executed: case Qt::DefaultLocaleShortDate:
Qt::DefaultLocaleShortDate:
never executed: case Qt::DefaultLocaleShortDate:
0
540 return
never executed: return QLocale().toDate(string, QLocale::ShortFormat);
QLocale().toDate(string, QLocale::ShortFormat);
never executed: return QLocale().toDate(string, QLocale::ShortFormat);
0
541 case
never executed: case Qt::DefaultLocaleLongDate:
Qt::DefaultLocaleLongDate:
never executed: case Qt::DefaultLocaleLongDate:
0
542 return
never executed: return QLocale().toDate(string, QLocale::LongFormat);
QLocale().toDate(string, QLocale::LongFormat);
never executed: return QLocale().toDate(string, QLocale::LongFormat);
0
543 case
executed 21 times by 1 test: case Qt::RFC2822Date:
Executed by:
  • tst_QDate
Qt::RFC2822Date:
executed 21 times by 1 test: case Qt::RFC2822Date:
Executed by:
  • tst_QDate
21
544 return
executed 21 times by 1 test: return rfcDateImpl(string).date;
Executed by:
  • tst_QDate
rfcDateImpl(string).date;
executed 21 times by 1 test: return rfcDateImpl(string).date;
Executed by:
  • tst_QDate
21
545 default
never executed: default:
:
never executed: default:
0
546-
547 case
executed 14 times by 1 test: case Qt::TextDate:
Executed by:
  • tst_QDate
Qt::TextDate:
executed 14 times by 1 test: case Qt::TextDate:
Executed by:
  • tst_QDate
{
14
548 QVector<QStringRef> parts = string.splitRef(QLatin1Char(' '), QString::SkipEmptyParts);-
549-
550 if (parts.count() != 4
parts.count() != 4Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QDate
)
1-13
551 return
executed 1 time by 1 test: return QDate();
Executed by:
  • tst_QDate
QDate();
executed 1 time by 1 test: return QDate();
Executed by:
  • tst_QDate
1
552-
553 QStringRef monthName = parts.at(1);-
554 const int month = fromShortMonthName(monthName);-
555 if (month == -1
month == -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QDate
) {
1-12
556-
557 return
executed 1 time by 1 test: return QDate();
Executed by:
  • tst_QDate
QDate();
executed 1 time by 1 test: return QDate();
Executed by:
  • tst_QDate
1
558 }-
559-
560 bool ok = false;-
561 int year = parts.at(3).toInt(&ok);-
562 if (!ok
!okDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QDate
)
1-11
563 return
executed 1 time by 1 test: return QDate();
Executed by:
  • tst_QDate
QDate();
executed 1 time by 1 test: return QDate();
Executed by:
  • tst_QDate
1
564-
565 return
executed 11 times by 1 test: return QDate(year, month, parts.at(2).toInt());
Executed by:
  • tst_QDate
QDate(year, month, parts.at(2).toInt());
executed 11 times by 1 test: return QDate(year, month, parts.at(2).toInt());
Executed by:
  • tst_QDate
11
566 }-
567-
568 case
executed 79 times by 5 tests: case Qt::ISODate:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
Qt::ISODate:
executed 79 times by 5 tests: case Qt::ISODate:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
{
79
569-
570 if (string.size() < 10
string.size() < 10Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 78 times by 5 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
|| string.at(4).isDigit()
string.at(4).isDigit()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 72 times by 5 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
|| string.at(7).isDigit()
string.at(7).isDigit()Description
TRUEnever evaluated
FALSEevaluated 72 times by 5 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
0-78
571 || (string.size() > 10
string.size() > 10Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 69 times by 5 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
&& string.at(10).isDigit()
string.at(10).isDigit()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDate
)) {
1-69
572 return
executed 8 times by 3 tests: return QDate();
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QVariant
QDate();
executed 8 times by 3 tests: return QDate();
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QVariant
8
573 }-
574 const int year = string.midRef(0, 4).toInt();-
575 if (year <= 0
year <= 0Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QVariant
FALSEevaluated 67 times by 5 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
|| year > 9999
year > 9999Description
TRUEnever evaluated
FALSEevaluated 67 times by 5 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
)
0-67
576 return
executed 4 times by 2 tests: return QDate();
Executed by:
  • tst_QDate
  • tst_QVariant
QDate();
executed 4 times by 2 tests: return QDate();
Executed by:
  • tst_QDate
  • tst_QVariant
4
577 return
executed 67 times by 5 tests: return QDate(year, string.midRef(5, 2).toInt(), string.midRef(8, 2).toInt());
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
QDate(year, string.midRef(5, 2).toInt(), string.midRef(8, 2).toInt());
executed 67 times by 5 tests: return QDate(year, string.midRef(5, 2).toInt(), string.midRef(8, 2).toInt());
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
67
578 }-
579 }-
580 return
never executed: return QDate();
QDate();
never executed: return QDate();
0
581}-
582QDate QDate::fromString(const QString &string, const QString &format)-
583{-
584 QDate date;-
585-
586 QDateTimeParser dt(QVariant::Date, QDateTimeParser::FromString);-
587 if (dt.parseFormat(format)
dt.parseFormat(format)Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_QDate
FALSEnever evaluated
)
0-44
588 dt.fromString(string, &date, 0);
executed 44 times by 1 test: dt.fromString(string, &date, 0);
Executed by:
  • tst_QDate
44
589-
590-
591-
592-
593 return
executed 44 times by 1 test: return date;
Executed by:
  • tst_QDate
date;
executed 44 times by 1 test: return date;
Executed by:
  • tst_QDate
44
594}-
595bool QDate::isValid(int year, int month, int day)-
596{-
597-
598 if (year == 0
year == 0Description
TRUEevaluated 143 times by 4 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QTime
FALSEevaluated 21284773 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
)
143-21284773
599 return
executed 143 times by 4 tests: return false;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QTime
false;
executed 143 times by 4 tests: return false;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QTime
143
600-
601 return
executed 21313708 times by 102 tests: return (day > 0 && month > 0 && month <= 12) && (day <= monthDays[month] || (day == 29 && month == 2 && isLeapYear(year)));
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
(day > 0
day > 0Description
TRUEevaluated 21316474 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDate
&& month > 0
month > 0Description
TRUEevaluated 21306496 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
FALSEevaluated 83 times by 4 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QTime
&& month <= 12
month <= 12Description
TRUEevaluated 21316384 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
FALSEevaluated 7 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
) &&
executed 21313708 times by 102 tests: return (day > 0 && month > 0 && month <= 12) && (day <= monthDays[month] || (day == 29 && month == 2 && isLeapYear(year)));
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
4-21316474
602 (day <= monthDays[month]
day <= monthDays[month]Description
TRUEevaluated 21290952 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
FALSEevaluated 15577 times by 6 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
|| (day == 29
day == 29Description
TRUEevaluated 15441 times by 5 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
FALSEevaluated 136 times by 5 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
&& month == 2
month == 2Description
TRUEevaluated 15441 times by 5 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
FALSEnever evaluated
&& isLeapYear(year)
isLeapYear(year)Description
TRUEevaluated 4286 times by 5 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
FALSEevaluated 11155 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QNetworkCookie
));
executed 21313708 times by 102 tests: return (day > 0 && month > 0 && month <= 12) && (day <= monthDays[month] || (day == 29 && month == 2 && isLeapYear(year)));
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
0-21313708
603}-
604bool QDate::isLeapYear(int y)-
605{-
606-
607 if ( y < 1
y < 1Description
TRUEevaluated 9596 times by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 27921 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QStyleSheetStyle
  • tst_QTimeZone
)
9596-27921
608 ++
executed 9596 times by 1 test: ++y;
Executed by:
  • tst_QDate
y;
executed 9596 times by 1 test: ++y;
Executed by:
  • tst_QDate
9596
609-
610 return
executed 37517 times by 9 tests: return (y % 4 == 0 && y % 100 != 0) || y % 400 == 0;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QStyleSheetStyle
  • tst_QTimeZone
(y % 4 == 0
y % 4 == 0Description
TRUEevaluated 10065 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QStyleSheetStyle
  • tst_QTimeZone
FALSEevaluated 27452 times by 6 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QTimeZone
&& y % 100 != 0
y % 100 != 0Description
TRUEevaluated 9270 times by 4 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkCookie
FALSEevaluated 795 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QTimeZone
) || y % 400 == 0
y % 400 == 0Description
TRUEevaluated 493 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
FALSEevaluated 27754 times by 6 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QTimeZone
;
executed 37517 times by 9 tests: return (y % 4 == 0 && y % 100 != 0) || y % 400 == 0;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QStyleSheetStyle
  • tst_QTimeZone
493-37517
611}-
612QTime::QTime(int h, int m, int s, int ms)-
613{-
614 setHMS(h, m, s, ms);-
615}
executed 20675576 times by 103 tests: end of block
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
20675576
616bool QTime::isValid() const-
617{-
618 return
executed 82666006 times by 105 tests: return mds > NullTime && mds < MSECS_PER_DAY;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
mds > NullTime
mds > NullTimeDescription
TRUEevaluated 82722004 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
FALSEevaluated 2060 times by 20 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QThreadPool
  • tst_QTime
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
&& mds < MSECS_PER_DAY
mds < MSECS_PER_DAYDescription
TRUEevaluated 82704401 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
FALSEevaluated 101 times by 2 tests
Evaluated by:
  • tst_QTime
  • tst_QTimeZone
;
executed 82666006 times by 105 tests: return mds > NullTime && mds < MSECS_PER_DAY;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
101-82722004
619}-
620int QTime::hour() const-
621{-
622 if (!isValid()
!isValid()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 13783783 times by 99 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
)
4-13783783
623 return
executed 4 times by 1 test: return -1;
Executed by:
  • tst_QTime
-1;
executed 4 times by 1 test: return -1;
Executed by:
  • tst_QTime
4
624-
625 return
executed 13783783 times by 99 tests: return ds() / MSECS_PER_HOUR;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
ds() / MSECS_PER_HOUR;
executed 13783783 times by 99 tests: return ds() / MSECS_PER_HOUR;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
13783783
626}-
627int QTime::minute() const-
628{-
629 if (!isValid()
!isValid()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 13779516 times by 99 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
)
4-13779516
630 return
executed 4 times by 1 test: return -1;
Executed by:
  • tst_QTime
-1;
executed 4 times by 1 test: return -1;
Executed by:
  • tst_QTime
4
631-
632 return
executed 13770858 times by 99 tests: return (ds() % MSECS_PER_HOUR) / MSECS_PER_MIN;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
(ds() % MSECS_PER_HOUR) / MSECS_PER_MIN;
executed 13770858 times by 99 tests: return (ds() % MSECS_PER_HOUR) / MSECS_PER_MIN;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
13770858
633}-
634int QTime::second() const-
635{-
636 if (!isValid()
!isValid()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 13772434 times by 99 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
)
4-13772434
637 return
executed 4 times by 1 test: return -1;
Executed by:
  • tst_QTime
-1;
executed 4 times by 1 test: return -1;
Executed by:
  • tst_QTime
4
638-
639 return
executed 13771188 times by 99 tests: return (ds() / 1000)%SECS_PER_MIN;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
(ds() / 1000)%SECS_PER_MIN;
executed 13771188 times by 99 tests: return (ds() / 1000)%SECS_PER_MIN;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
13771188
640}-
641int QTime::msec() const-
642{-
643 if (!isValid()
!isValid()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 13772830 times by 99 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
)
3-13772830
644 return
executed 3 times by 1 test: return -1;
Executed by:
  • tst_QTime
-1;
executed 3 times by 1 test: return -1;
Executed by:
  • tst_QTime
3
645-
646 return
executed 13773882 times by 99 tests: return ds() % 1000;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
ds() % 1000;
executed 13773882 times by 99 tests: return ds() % 1000;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
13773882
647}-
648QString QTime::toString(Qt::DateFormat format) const-
649{-
650 if (!isValid()
!isValid()Description
TRUEnever evaluated
FALSEevaluated 486 times by 8 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QTime
  • tst_QVariant
  • tst_qmakelib
)
0-486
651 return
never executed: return QString();
QString();
never executed: return QString();
0
652-
653 switch (format) {-
654 case
never executed: case Qt::SystemLocaleDate:
Qt::SystemLocaleDate:
never executed: case Qt::SystemLocaleDate:
0
655 case
executed 2 times by 1 test: case Qt::SystemLocaleShortDate:
Executed by:
  • tst_QTime
Qt::SystemLocaleShortDate:
executed 2 times by 1 test: case Qt::SystemLocaleShortDate:
Executed by:
  • tst_QTime
2
656 return
executed 2 times by 1 test: return QLocale::system().toString(*this, QLocale::ShortFormat);
Executed by:
  • tst_QTime
QLocale::system().toString(*this, QLocale::ShortFormat);
executed 2 times by 1 test: return QLocale::system().toString(*this, QLocale::ShortFormat);
Executed by:
  • tst_QTime
2
657 case
executed 2 times by 1 test: case Qt::SystemLocaleLongDate:
Executed by:
  • tst_QTime
Qt::SystemLocaleLongDate:
executed 2 times by 1 test: case Qt::SystemLocaleLongDate:
Executed by:
  • tst_QTime
2
658 return
executed 2 times by 1 test: return QLocale::system().toString(*this, QLocale::LongFormat);
Executed by:
  • tst_QTime
QLocale::system().toString(*this, QLocale::LongFormat);
executed 2 times by 1 test: return QLocale::system().toString(*this, QLocale::LongFormat);
Executed by:
  • tst_QTime
2
659 case
never executed: case Qt::LocaleDate:
Qt::LocaleDate:
never executed: case Qt::LocaleDate:
0
660 case
executed 2 times by 1 test: case Qt::DefaultLocaleShortDate:
Executed by:
  • tst_QTime
Qt::DefaultLocaleShortDate:
executed 2 times by 1 test: case Qt::DefaultLocaleShortDate:
Executed by:
  • tst_QTime
2
661 return
executed 2 times by 1 test: return QLocale().toString(*this, QLocale::ShortFormat);
Executed by:
  • tst_QTime
QLocale().toString(*this, QLocale::ShortFormat);
executed 2 times by 1 test: return QLocale().toString(*this, QLocale::ShortFormat);
Executed by:
  • tst_QTime
2
662 case
executed 2 times by 1 test: case Qt::DefaultLocaleLongDate:
Executed by:
  • tst_QTime
Qt::DefaultLocaleLongDate:
executed 2 times by 1 test: case Qt::DefaultLocaleLongDate:
Executed by:
  • tst_QTime
2
663 return
executed 2 times by 1 test: return QLocale().toString(*this, QLocale::LongFormat);
Executed by:
  • tst_QTime
QLocale().toString(*this, QLocale::LongFormat);
executed 2 times by 1 test: return QLocale().toString(*this, QLocale::LongFormat);
Executed by:
  • tst_QTime
2
664 case
executed 1 time by 1 test: case Qt::RFC2822Date:
Executed by:
  • tst_QTime
Qt::RFC2822Date:
executed 1 time by 1 test: case Qt::RFC2822Date:
Executed by:
  • tst_QTime
1
665 case
executed 32 times by 5 tests: case Qt::ISODate:
Executed by:
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QTime
  • tst_QVariant
Qt::ISODate:
executed 32 times by 5 tests: case Qt::ISODate:
Executed by:
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QTime
  • tst_QVariant
32
666 case
executed 445 times by 5 tests: case Qt::TextDate:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QTime
  • tst_qmakelib
Qt::TextDate:
executed 445 times by 5 tests: case Qt::TextDate:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QTime
  • tst_qmakelib
445
667 default
never executed: default:
:
never executed: default:
0
668 return
executed 478 times by 8 tests: return QString::asprintf("%02d:%02d:%02d", hour(), minute(), second());
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QTime
  • tst_QVariant
  • tst_qmakelib
QString::asprintf("%02d:%02d:%02d", hour(), minute(), second());
executed 478 times by 8 tests: return QString::asprintf("%02d:%02d:%02d", hour(), minute(), second());
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QTime
  • tst_QVariant
  • tst_qmakelib
478
669 }-
670}-
671QString QTime::toString(const QString& format) const-
672{-
673 return
executed 14062 times by 6 tests: return QLocale::system().toString(*this, format);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QTime
  • tst_QVariant
QLocale::system().toString(*this, format);
executed 14062 times by 6 tests: return QLocale::system().toString(*this, format);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QTime
  • tst_QVariant
14062
674}-
675bool QTime::setHMS(int h, int m, int s, int ms)-
676{-
677-
678-
679-
680 if (!isValid(h,m,s,ms)
!isValid(h,m,s,ms)Description
TRUEevaluated 246 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QTime
FALSEevaluated 20673661 times by 103 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
) {
246-20673661
681 mds = NullTime;-
682 return
executed 246 times by 5 tests: return false;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QTime
false;
executed 246 times by 5 tests: return false;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QTime
246
683 }-
684 mds = (h*SECS_PER_HOUR + m*SECS_PER_MIN + s)*1000 + ms;-
685 return
executed 20672515 times by 103 tests: return true;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
true;
executed 20672515 times by 103 tests: return true;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
20672515
686}-
687QTime QTime::addSecs(int s) const-
688{-
689 s %= SECS_PER_DAY;-
690 return
executed 8 times by 3 tests: return addMSecs(s * 1000);
Executed by:
  • tst_QDateTime
  • tst_QItemDelegate
  • tst_QTime
addMSecs(s * 1000);
executed 8 times by 3 tests: return addMSecs(s * 1000);
Executed by:
  • tst_QDateTime
  • tst_QItemDelegate
  • tst_QTime
8
691}-
692int QTime::secsTo(const QTime &t) const-
693{-
694 if (!isValid()
!isValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QTime
|| !t.isValid()
!t.isValid()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QTime
)
1-9
695 return
executed 3 times by 1 test: return 0;
Executed by:
  • tst_QTime
0;
executed 3 times by 1 test: return 0;
Executed by:
  • tst_QTime
3
696-
697-
698 int ourSeconds = ds() / 1000;-
699 int theirSeconds = t.ds() / 1000;-
700 return
executed 8 times by 1 test: return theirSeconds - ourSeconds;
Executed by:
  • tst_QTime
theirSeconds - ourSeconds;
executed 8 times by 1 test: return theirSeconds - ourSeconds;
Executed by:
  • tst_QTime
8
701}-
702QTime QTime::addMSecs(int ms) const-
703{-
704 QTime t;-
705 if (isValid()
isValid()Description
TRUEevaluated 214 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QTime
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTime
) {
1-214
706 if (ms < 0
ms < 0Description
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkCookie
  • tst_QTime
FALSEevaluated 174 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QTime
) {
40-174
707-
708 int negdays = (MSECS_PER_DAY - ms) / MSECS_PER_DAY;-
709 t.mds = (ds() + ms + negdays * MSECS_PER_DAY) % MSECS_PER_DAY;-
710 }
executed 40 times by 3 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QNetworkCookie
  • tst_QTime
else {
40
711 t.mds = (ds() + ms) % MSECS_PER_DAY;-
712 }
executed 174 times by 4 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QTime
174
713 }-
714-
715-
716-
717-
718 return
executed 215 times by 4 tests: return t;
Executed by:
  • tst_QDateTime
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QTime
t;
executed 215 times by 4 tests: return t;
Executed by:
  • tst_QDateTime
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QTime
215
719}-
720int QTime::msecsTo(const QTime &t) const-
721{-
722 if (!isValid()
!isValid()Description
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QTextStream
  • tst_QThreadPool
  • tst_QTime
FALSEevaluated 6848969 times by 33 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAtomicInt
  • tst_QCoreApplication
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QMovie
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QObjectPerformance
  • tst_QProcess
  • tst_QReadWriteLock
  • tst_QSharedMemory
  • tst_QSqlTableModel
  • tst_QTcpSocket
  • tst_QTextStream
  • ...
|| !t.isValid()
!t.isValid()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 6847671 times by 33 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAtomicInt
  • tst_QCoreApplication
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QMovie
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QObjectPerformance
  • tst_QProcess
  • tst_QReadWriteLock
  • tst_QSharedMemory
  • tst_QSqlTableModel
  • tst_QTcpSocket
  • tst_QTextStream
  • ...
)
1-6848969
723 return
executed 6 times by 3 tests: return 0;
Executed by:
  • tst_QTextStream
  • tst_QThreadPool
  • tst_QTime
0;
executed 6 times by 3 tests: return 0;
Executed by:
  • tst_QTextStream
  • tst_QThreadPool
  • tst_QTime
6
724-
725-
726-
727-
728-
729-
730 return
executed 6850955 times by 33 tests: return t.ds() - ds();
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAtomicInt
  • tst_QCoreApplication
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QMovie
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QObjectPerformance
  • tst_QProcess
  • tst_QReadWriteLock
  • tst_QSharedMemory
  • tst_QSqlTableModel
  • tst_QTcpSocket
  • tst_QTextStream
  • ...
t.ds() - ds();
executed 6850955 times by 33 tests: return t.ds() - ds();
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAtomicInt
  • tst_QCoreApplication
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QMovie
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QObjectPerformance
  • tst_QProcess
  • tst_QReadWriteLock
  • tst_QSharedMemory
  • tst_QSqlTableModel
  • tst_QTcpSocket
  • tst_QTextStream
  • ...
6850955
731}-
732static QTime fromIsoTimeString(const QStringRef &string, Qt::DateFormat format, bool *isMidnight24)-
733{-
734 if (isMidnight24
isMidnight24Description
TRUEevaluated 57 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
FALSEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QTime
  • tst_QVariant
)
30-57
735 *
executed 57 times by 4 tests: *isMidnight24 = false;
Executed by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
isMidnight24 = false;
executed 57 times by 4 tests: *isMidnight24 = false;
Executed by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
57
736-
737 const int size = string.size();-
738 if (size < 5
size < 5Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 86 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
)
1-86
739 return
executed 1 time by 1 test: return QTime();
Executed by:
  • tst_QTime
QTime();
executed 1 time by 1 test: return QTime();
Executed by:
  • tst_QTime
1
740-
741 bool ok = false;-
742 int hour = string.mid(0, 2).toInt(&ok);-
743 if (!ok
!okDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 85 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
)
1-85
744 return
executed 1 time by 1 test: return QTime();
Executed by:
  • tst_QVariant
QTime();
executed 1 time by 1 test: return QTime();
Executed by:
  • tst_QVariant
1
745 const int minute = string.mid(3, 2).toInt(&ok);-
746 if (!ok
!okDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 83 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
)
2-83
747 return
executed 2 times by 1 test: return QTime();
Executed by:
  • tst_QTime
QTime();
executed 2 times by 1 test: return QTime();
Executed by:
  • tst_QTime
2
748 int second = 0;-
749 int msec = 0;-
750-
751 if (size == 5
size == 5Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 77 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
) {
6-77
752-
753 second = 0;-
754 msec = 0;-
755 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QTime
else if (string.at(5) == QLatin1Char(',')
string.at(5) =...atin1Char(',')Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QTime
FALSEevaluated 72 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
|| string.at(5) == QLatin1Char('.')
string.at(5) =...atin1Char('.')Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QTime
FALSEevaluated 68 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
) {
4-72
756 if (format == Qt::TextDate
format == Qt::TextDateDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QTime
)
1-8
757 return
executed 1 time by 1 test: return QTime();
Executed by:
  • tst_QTime
QTime();
executed 1 time by 1 test: return QTime();
Executed by:
  • tst_QTime
1
758 const QStringRef minuteFractionStr = string.mid(6, 5);-
759 const long minuteFractionInt = minuteFractionStr.toLong(&ok);-
760 if (!ok
!okDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QTime
)
1-7
761 return
executed 1 time by 1 test: return QTime();
Executed by:
  • tst_QTime
QTime();
executed 1 time by 1 test: return QTime();
Executed by:
  • tst_QTime
1
762 const float minuteFraction = double(minuteFractionInt) / (std::pow(double(10), minuteFractionStr.count()));-
763-
764 const float secondWithMs = minuteFraction * 60;-
765 const float secondNoMs = std::floor(secondWithMs);-
766 const float secondFraction = secondWithMs - secondNoMs;-
767 second = secondNoMs;-
768 msec = qMin(qRound(secondFraction * 1000.0), 999);-
769 }
executed 7 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QTime
else {
7
770-
771 second = string.mid(6, 2).toInt(&ok);-
772 if (!ok
!okDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 66 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
)
2-66
773 return
executed 2 times by 1 test: return QTime();
Executed by:
  • tst_QTime
QTime();
executed 2 times by 1 test: return QTime();
Executed by:
  • tst_QTime
2
774 if (size > 8
size > 8Description
TRUEevaluated 32 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_QTime
FALSEevaluated 34 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QTime
  • tst_QVariant
&& (string.at(8) == QLatin1Char(',')
string.at(8) =...atin1Char(',')Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 21 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_QTime
|| string.at(8) == QLatin1Char('.')
string.at(8) =...atin1Char('.')Description
TRUEevaluated 18 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_QTime
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QTime
)) {
3-34
775 const QStringRef msecStr(string.mid(9, 4));-
776 int msecInt = msecStr.isEmpty()
msecStr.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 28 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_QTime
? 0 : msecStr.toInt(&ok);
1-28
777 if (!ok
!okDescription
TRUEnever evaluated
FALSEevaluated 29 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_QTime
)
0-29
778 return
never executed: return QTime();
QTime();
never executed: return QTime();
0
779 const double secondFraction(msecInt / (std::pow(double(10), msecStr.count())));-
780 msec = qMin(qRound(secondFraction * 1000.0), 999);-
781 }
executed 29 times by 3 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_QTime
29
782 }
executed 66 times by 5 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
66
783-
784 if (format == Qt::ISODate
format == Qt::ISODateDescription
TRUEevaluated 72 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QTime
&& hour == 24
hour == 24Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QTime
FALSEevaluated 65 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
&& minute == 0
minute == 0Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QTime
FALSEnever evaluated
&& second == 0
second == 0Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QTime
FALSEnever evaluated
&& msec == 0
msec == 0Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QTime
FALSEnever evaluated
) {
0-72
785 if (isMidnight24
isMidnight24Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTime
)
2-5
786 *
executed 5 times by 1 test: *isMidnight24 = true;
Executed by:
  • tst_QDateTime
isMidnight24 = true;
executed 5 times by 1 test: *isMidnight24 = true;
Executed by:
  • tst_QDateTime
5
787 hour = 0;-
788 }
executed 7 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QTime
7
789-
790 return
executed 79 times by 5 tests: return QTime(hour, minute, second, msec);
Executed by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
QTime(hour, minute, second, msec);
executed 79 times by 5 tests: return QTime(hour, minute, second, msec);
Executed by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
79
791}-
792QTime QTime::fromString(const QString& string, Qt::DateFormat format)-
793{-
794 if (string.isEmpty()
string.isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTime
FALSEevaluated 50 times by 2 tests
Evaluated by:
  • tst_QTime
  • tst_QVariant
)
2-50
795 return
executed 2 times by 1 test: return QTime();
Executed by:
  • tst_QTime
QTime();
executed 2 times by 1 test: return QTime();
Executed by:
  • tst_QTime
2
796-
797 switch (format) {-
798 case
never executed: case Qt::SystemLocaleDate:
Qt::SystemLocaleDate:
never executed: case Qt::SystemLocaleDate:
0
799 case
never executed: case Qt::SystemLocaleShortDate:
Qt::SystemLocaleShortDate:
never executed: case Qt::SystemLocaleShortDate:
0
800 return
never executed: return QLocale::system().toTime(string, QLocale::ShortFormat);
QLocale::system().toTime(string, QLocale::ShortFormat);
never executed: return QLocale::system().toTime(string, QLocale::ShortFormat);
0
801 case
never executed: case Qt::SystemLocaleLongDate:
Qt::SystemLocaleLongDate:
never executed: case Qt::SystemLocaleLongDate:
0
802 return
never executed: return QLocale::system().toTime(string, QLocale::LongFormat);
QLocale::system().toTime(string, QLocale::LongFormat);
never executed: return QLocale::system().toTime(string, QLocale::LongFormat);
0
803 case
never executed: case Qt::LocaleDate:
Qt::LocaleDate:
never executed: case Qt::LocaleDate:
0
804 case
never executed: case Qt::DefaultLocaleShortDate:
Qt::DefaultLocaleShortDate:
never executed: case Qt::DefaultLocaleShortDate:
0
805 return
never executed: return QLocale().toTime(string, QLocale::ShortFormat);
QLocale().toTime(string, QLocale::ShortFormat);
never executed: return QLocale().toTime(string, QLocale::ShortFormat);
0
806 case
never executed: case Qt::DefaultLocaleLongDate:
Qt::DefaultLocaleLongDate:
never executed: case Qt::DefaultLocaleLongDate:
0
807 return
never executed: return QLocale().toTime(string, QLocale::LongFormat);
QLocale().toTime(string, QLocale::LongFormat);
never executed: return QLocale().toTime(string, QLocale::LongFormat);
0
808 case
executed 20 times by 1 test: case Qt::RFC2822Date:
Executed by:
  • tst_QTime
Qt::RFC2822Date:
executed 20 times by 1 test: case Qt::RFC2822Date:
Executed by:
  • tst_QTime
20
809 return
executed 20 times by 1 test: return rfcDateImpl(string).time;
Executed by:
  • tst_QTime
rfcDateImpl(string).time;
executed 20 times by 1 test: return rfcDateImpl(string).time;
Executed by:
  • tst_QTime
20
810 case
executed 20 times by 2 tests: case Qt::ISODate:
Executed by:
  • tst_QTime
  • tst_QVariant
Qt::ISODate:
executed 20 times by 2 tests: case Qt::ISODate:
Executed by:
  • tst_QTime
  • tst_QVariant
20
811 case
executed 10 times by 1 test: case Qt::TextDate:
Executed by:
  • tst_QTime
Qt::TextDate:
executed 10 times by 1 test: case Qt::TextDate:
Executed by:
  • tst_QTime
10
812 default
never executed: default:
:
never executed: default:
0
813 return
executed 30 times by 2 tests: return fromIsoTimeString(&string, format, 0);
Executed by:
  • tst_QTime
  • tst_QVariant
fromIsoTimeString(&string, format, 0);
executed 30 times by 2 tests: return fromIsoTimeString(&string, format, 0);
Executed by:
  • tst_QTime
  • tst_QVariant
30
814 }-
815}-
816QTime QTime::fromString(const QString &string, const QString &format)-
817{-
818 QTime time;-
819-
820 QDateTimeParser dt(QVariant::Time, QDateTimeParser::FromString);-
821 if (dt.parseFormat(format)
dt.parseFormat(format)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTime
FALSEnever evaluated
)
0-12
822 dt.fromString(string, 0, &time);
executed 12 times by 1 test: dt.fromString(string, 0, &time);
Executed by:
  • tst_QTime
12
823-
824-
825-
826-
827 return
executed 12 times by 1 test: return time;
Executed by:
  • tst_QTime
time;
executed 12 times by 1 test: return time;
Executed by:
  • tst_QTime
12
828}-
829bool QTime::isValid(int h, int m, int s, int ms)-
830{-
831 return
executed 20663406 times by 103 tests: return (uint)h < 24 && (uint)m < 60 && (uint)s < 60 && (uint)ms < 1000;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
(
(uint)h < 24Description
TRUEevaluated 20679629 times by 103 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
FALSEevaluated 240 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QTime
uint)h < 24
(uint)h < 24Description
TRUEevaluated 20679629 times by 103 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
FALSEevaluated 240 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QTime
&& (
(uint)m < 60Description
TRUEevaluated 20679627 times by 103 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTime
uint)m < 60
(uint)m < 60Description
TRUEevaluated 20679627 times by 103 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTime
&& (
(uint)s < 60Description
TRUEevaluated 20679624 times by 103 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTime
uint)s < 60
(uint)s < 60Description
TRUEevaluated 20679624 times by 103 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTime
&& (
(uint)ms < 1000Description
TRUEevaluated 20677984 times by 103 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTime
uint)ms < 1000
(uint)ms < 1000Description
TRUEevaluated 20677984 times by 103 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTime
;
executed 20663406 times by 103 tests: return (uint)h < 24 && (uint)m < 60 && (uint)s < 60 && (uint)ms < 1000;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • ...
1-20679629
832}-
833void QTime::start()-
834{-
835 *this = currentTime();-
836}
executed 677 times by 28 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAtomicInt
  • tst_QCoreApplication
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QMovie
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QObjectPerformance
  • tst_QProcess
  • tst_QReadWriteLock
  • tst_QSharedMemory
  • tst_QSocks5SocketEngine
  • tst_QSqlTableModel
  • tst_QTcpSocket
  • tst_QThread
  • tst_QThreadPool
  • tst_QTimer
  • ...
677
837int QTime::restart()-
838{-
839 QTime t = currentTime();-
840 int n = msecsTo(t);-
841 if (n < 0
n < 0Description
TRUEnever evaluated
FALSEevaluated 211 times by 3 tests
Evaluated by:
  • tst_QFtp
  • tst_QTextStream
  • tst_QThreadPool
)
0-211
842 n += 86400*1000;
never executed: n += 86400*1000;
0
843 *this = t;-
844 return
executed 211 times by 3 tests: return n;
Executed by:
  • tst_QFtp
  • tst_QTextStream
  • tst_QThreadPool
n;
executed 211 times by 3 tests: return n;
Executed by:
  • tst_QFtp
  • tst_QTextStream
  • tst_QThreadPool
211
845}-
846int QTime::elapsed() const-
847{-
848 int n = msecsTo(currentTime());-
849 if (n < 0
n < 0Description
TRUEnever evaluated
FALSEevaluated 6850675 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAtomicInt
  • tst_QCoreApplication
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QMovie
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QObjectPerformance
  • tst_QProcess
  • tst_QReadWriteLock
  • tst_QSharedMemory
  • tst_QSqlTableModel
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QThread
  • tst_QThreadPool
  • tst_QTimer
  • ...
)
0-6850675
850 n += 86400 * 1000;
never executed: n += 86400 * 1000;
0
851 return
executed 6850675 times by 28 tests: return n;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAtomicInt
  • tst_QCoreApplication
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QMovie
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QObjectPerformance
  • tst_QProcess
  • tst_QReadWriteLock
  • tst_QSharedMemory
  • tst_QSqlTableModel
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QThread
  • tst_QThreadPool
  • tst_QTimer
  • ...
n;
executed 6850675 times by 28 tests: return n;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAtomicInt
  • tst_QCoreApplication
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QMovie
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QObjectPerformance
  • tst_QProcess
  • tst_QReadWriteLock
  • tst_QSharedMemory
  • tst_QSqlTableModel
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QThread
  • tst_QThreadPool
  • tst_QTimer
  • ...
6850675
852}-
853-
854-
855-
856-
857-
858-
859static void qt_tzset()-
860{-
861-
862-
863-
864-
865-
866-
867 tzset();-
868-
869}
executed 6864044 times by 94 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • ...
6864044
870-
871-
872-
873-
874-
875-
876static int qt_timezone()-
877{-
878 return
executed 7040 times by 16 tests: return timezone;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QStyleSheetStyle
  • tst_QTime
timezone;
executed 7040 times by 16 tests: return timezone;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QStyleSheetStyle
  • tst_QTime
7040
879-
880}-
881-
882-
883static QString qt_tzname(QDateTimePrivate::DaylightStatus daylightStatus)-
884{-
885 int isDst = (
(daylightStatu...:DaylightTime)Description
TRUEevaluated 248 times by 10 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QSignalSpy
  • tst_QTime
  • tst_QVariant
FALSEevaluated 891 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNoDebug
  • tst_QSqlQuery
daylightStatus == QDateTimePrivate::DaylightTime)
(daylightStatu...:DaylightTime)Description
TRUEevaluated 248 times by 10 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QSignalSpy
  • tst_QTime
  • tst_QVariant
FALSEevaluated 891 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNoDebug
  • tst_QSqlQuery
? 1 : 0;
248-891
886-
887-
888-
889-
890-
891-
892-
893 return
executed 1139 times by 12 tests: return QString::fromLocal8Bit(tzname[isDst]);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
QString::fromLocal8Bit(tzname[isDst]);
executed 1139 times by 12 tests: return QString::fromLocal8Bit(tzname[isDst]);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
1139
894-
895-
896}-
897-
898-
899-
900-
901-
902-
903static qint64 qt_mktime(QDate *date, QTime *time, QDateTimePrivate::DaylightStatus *daylightStatus,-
904 QString *abbreviation, bool *ok = 0)-
905{-
906 const qint64 msec = time->msec();-
907 int yy, mm, dd;-
908 date->getDate(&yy, &mm, &dd);-
909 tm local;-
910 memset(&local, 0, sizeof(local));-
911 local.tm_sec = time->second();-
912 local.tm_min = time->minute();-
913 local.tm_hour = time->hour();-
914 local.tm_mday = dd;-
915 local.tm_mon = mm - 1;-
916 local.tm_year = yy - 1900;-
917 if (daylightStatus
daylightStatusDescription
TRUEevaluated 13748163 times by 97 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
FALSEnever evaluated
)
0-13748163
918 local.tm_isdst = int(*daylightStatus);
executed 13748163 times by 97 tests: local.tm_isdst = int(*daylightStatus);
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13748163
919 else-
920 local.tm_isdst = -1;
never executed: local.tm_isdst = -1;
0
921-
922-
923-
924-
925 time_t secsSinceEpoch = mktime(&local);-
926 if (secsSinceEpoch != time_t(-1)
secsSinceEpoch != time_t(-1)Description
TRUEevaluated 13740582 times by 97 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_QDateTime
) {
36-13740582
927 *date = QDate(local.tm_year + 1900, local.tm_mon + 1, local.tm_mday);-
928 *time = QTime(local.tm_hour, local.tm_min, local.tm_sec, msec);-
929 if (local.tm_isdst >= 1
local.tm_isdst >= 1Description
TRUEevaluated 13718652 times by 82 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • ...
FALSEevaluated 16600 times by 41 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • ...
) {
16600-13718652
930 if (daylightStatus
daylightStatusDescription
TRUEevaluated 13730284 times by 82 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
)
0-13730284
931 *
executed 13731527 times by 82 tests: *daylightStatus = QDateTimePrivate::DaylightTime;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • ...
daylightStatus = QDateTimePrivate::DaylightTime;
executed 13731527 times by 82 tests: *daylightStatus = QDateTimePrivate::DaylightTime;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • ...
13731527
932 if (abbreviation
abbreviationDescription
TRUEevaluated 248 times by 10 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QSignalSpy
  • tst_QTime
  • tst_QVariant
FALSEevaluated 13719955 times by 82 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • ...
)
248-13719955
933 *
executed 248 times by 10 tests: *abbreviation = qt_tzname(QDateTimePrivate::DaylightTime);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QSignalSpy
  • tst_QTime
  • tst_QVariant
abbreviation = qt_tzname(QDateTimePrivate::DaylightTime);
executed 248 times by 10 tests: *abbreviation = qt_tzname(QDateTimePrivate::DaylightTime);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QSignalSpy
  • tst_QTime
  • tst_QVariant
248
934 }
executed 13731527 times by 82 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • ...
else if (local.tm_isdst == 0
local.tm_isdst == 0Description
TRUEevaluated 16600 times by 41 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • ...
FALSEnever evaluated
) {
0-13731527
935 if (daylightStatus
daylightStatusDescription
TRUEevaluated 16600 times by 41 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • ...
FALSEnever evaluated
)
0-16600
936 *
executed 16600 times by 41 tests: *daylightStatus = QDateTimePrivate::StandardTime;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • ...
daylightStatus = QDateTimePrivate::StandardTime;
executed 16600 times by 41 tests: *daylightStatus = QDateTimePrivate::StandardTime;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • ...
16600
937 if (abbreviation
abbreviationDescription
TRUEevaluated 609 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QSqlQuery
FALSEevaluated 15991 times by 41 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • ...
)
609-15991
938 *
executed 609 times by 4 tests: *abbreviation = qt_tzname(QDateTimePrivate::StandardTime);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QSqlQuery
abbreviation = qt_tzname(QDateTimePrivate::StandardTime);
executed 609 times by 4 tests: *abbreviation = qt_tzname(QDateTimePrivate::StandardTime);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QSqlQuery
609
939 }
executed 16600 times by 41 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • ...
else {
16600
940 if (daylightStatus
daylightStatusDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
941 *
never executed: *daylightStatus = QDateTimePrivate::UnknownDaylightTime;
daylightStatus = QDateTimePrivate::UnknownDaylightTime;
never executed: *daylightStatus = QDateTimePrivate::UnknownDaylightTime;
0
942 if (abbreviation
abbreviationDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
943 *
never executed: *abbreviation = qt_tzname(QDateTimePrivate::StandardTime);
abbreviation = qt_tzname(QDateTimePrivate::StandardTime);
never executed: *abbreviation = qt_tzname(QDateTimePrivate::StandardTime);
0
944 }
never executed: end of block
0
945 if (ok
okDescription
TRUEevaluated 1142 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QStyleSheetStyle
FALSEevaluated 13746985 times by 97 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
)
1142-13746985
946 *
executed 1142 times by 8 tests: *ok = true;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QStyleSheetStyle
ok = true;
executed 1142 times by 8 tests: *ok = true;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QStyleSheetStyle
1142
947 }
executed 13748127 times by 97 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
else {
13748127
948 *date = QDate();-
949 *time = QTime();-
950 if (daylightStatus
daylightStatusDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEnever evaluated
)
0-36
951 *
executed 36 times by 1 test: *daylightStatus = QDateTimePrivate::UnknownDaylightTime;
Executed by:
  • tst_QDateTime
daylightStatus = QDateTimePrivate::UnknownDaylightTime;
executed 36 times by 1 test: *daylightStatus = QDateTimePrivate::UnknownDaylightTime;
Executed by:
  • tst_QDateTime
36
952 if (abbreviation
abbreviationDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_QDateTime
)
11-25
953 *
executed 11 times by 1 test: *abbreviation = QString();
Executed by:
  • tst_QDateTime
abbreviation = QString();
executed 11 times by 1 test: *abbreviation = QString();
Executed by:
  • tst_QDateTime
11
954 if (ok
okDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEnever evaluated
)
0-36
955 *
executed 36 times by 1 test: *ok = false;
Executed by:
  • tst_QDateTime
ok = false;
executed 36 times by 1 test: *ok = false;
Executed by:
  • tst_QDateTime
36
956 }
executed 36 times by 1 test: end of block
Executed by:
  • tst_QDateTime
36
957-
958-
959 return
executed 13735894 times by 97 tests: return ((qint64)secsSinceEpoch * 1000) + msec;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
((qint64)secsSinceEpoch * 1000) + msec;
executed 13735894 times by 97 tests: return ((qint64)secsSinceEpoch * 1000) + msec;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13735894
960}-
961-
962-
963-
964static bool qt_localtime(qint64 msecsSinceEpoch, QDate *localDate, QTime *localTime,-
965 QDateTimePrivate::DaylightStatus *daylightStatus)-
966{-
967 const time_t secsSinceEpoch = msecsSinceEpoch / 1000;-
968 const int msec = msecsSinceEpoch % 1000;-
969-
970 tm local;-
971 bool valid = false;-
972 qt_tzset();-
973-
974-
975 tm *res = 0;-
976 res = localtime_r(&secsSinceEpoch, &local);-
977 if (res
resDescription
TRUEevaluated 6859161 times by 91 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEnever evaluated
)
0-6859161
978 valid = true;
executed 6859161 times by 91 tests: valid = true;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
6859161
979 if (valid
validDescription
TRUEevaluated 6859161 times by 91 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEnever evaluated
) {
0-6859161
980 *localDate = QDate(local.tm_year + 1900, local.tm_mon + 1, local.tm_mday);-
981 *localTime = QTime(local.tm_hour, local.tm_min, local.tm_sec, msec);-
982 if (daylightStatus
daylightStatusDescription
TRUEevaluated 6856259 times by 91 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEnever evaluated
) {
0-6856259
983 if (local.tm_isdst > 0
local.tm_isdst > 0Description
TRUEevaluated 6858465 times by 78 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
FALSEevaluated 696 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
)
696-6858465
984 *
executed 6858465 times by 78 tests: *daylightStatus = QDateTimePrivate::DaylightTime;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
daylightStatus = QDateTimePrivate::DaylightTime;
executed 6858465 times by 78 tests: *daylightStatus = QDateTimePrivate::DaylightTime;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
6858465
985 else if (local.tm_isdst < 0
local.tm_isdst < 0Description
TRUEnever evaluated
FALSEevaluated 696 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
)
0-696
986 *
never executed: *daylightStatus = QDateTimePrivate::UnknownDaylightTime;
daylightStatus = QDateTimePrivate::UnknownDaylightTime;
never executed: *daylightStatus = QDateTimePrivate::UnknownDaylightTime;
0
987 else-
988 *
executed 696 times by 28 tests: *daylightStatus = QDateTimePrivate::StandardTime;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
daylightStatus = QDateTimePrivate::StandardTime;
executed 696 times by 28 tests: *daylightStatus = QDateTimePrivate::StandardTime;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
696
989 }-
990 return
executed 6856991 times by 91 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
true;
executed 6856991 times by 91 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
6856991
991 } else {-
992 *localDate = QDate();-
993 *localTime = QTime();-
994 if (daylightStatus
daylightStatusDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
995 *
never executed: *daylightStatus = QDateTimePrivate::UnknownDaylightTime;
daylightStatus = QDateTimePrivate::UnknownDaylightTime;
never executed: *daylightStatus = QDateTimePrivate::UnknownDaylightTime;
0
996 return
never executed: return false;
false;
never executed: return false;
0
997 }-
998}-
999-
1000-
1001static void msecsToTime(qint64 msecs, QDate *date, QTime *time)-
1002{-
1003 qint64 jd = JULIAN_DAY_FOR_EPOCH;-
1004 qint64 ds = 0;-
1005-
1006 if (qAbs(msecs) >= MSECS_PER_DAY
qAbs(msecs) >= MSECS_PER_DAYDescription
TRUEevaluated 20783660 times by 99 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
FALSEevaluated 1699 times by 15 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QStyleSheetStyle
  • tst_QTimeZone
  • tst_QVariant
) {
1699-20783660
1007 jd += (msecs / MSECS_PER_DAY);-
1008 msecs %= MSECS_PER_DAY;-
1009 }
executed 20783660 times by 99 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
20783660
1010-
1011 if (msecs < 0
msecs < 0Description
TRUEevaluated 5747 times by 6 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QNoDebug
  • tst_QTime
FALSEevaluated 20774921 times by 98 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
) {
5747-20774921
1012 ds = MSECS_PER_DAY - msecs - 1;-
1013 jd -= ds / MSECS_PER_DAY;-
1014 ds = ds % MSECS_PER_DAY;-
1015 ds = MSECS_PER_DAY - ds - 1;-
1016 }
executed 5747 times by 6 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QNoDebug
  • tst_QTime
else {
5747
1017 ds = msecs;-
1018 }
executed 20779612 times by 98 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
20779612
1019-
1020 if (date
dateDescription
TRUEevaluated 13864443 times by 99 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
FALSEevaluated 6918892 times by 72 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsProxyWidget
  • ...
)
6918892-13864443
1021 *
executed 13866467 times by 99 tests: *date = QDate::fromJulianDay(jd);
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
date = QDate::fromJulianDay(jd);
executed 13866467 times by 99 tests: *date = QDate::fromJulianDay(jd);
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
13866467
1022 if (time
timeDescription
TRUEevaluated 20686466 times by 99 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
FALSEevaluated 84674 times by 42 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
)
84674-20686466
1023 *
executed 20699795 times by 99 tests: *time = QTime::fromMSecsSinceStartOfDay(ds);
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
time = QTime::fromMSecsSinceStartOfDay(ds);
executed 20699795 times by 99 tests: *time = QTime::fromMSecsSinceStartOfDay(ds);
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
20699795
1024}
executed 20777508 times by 99 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
20777508
1025-
1026-
1027static qint64 timeToMSecs(const QDate &date, const QTime &time)-
1028{-
1029 return
executed 13763898 times by 98 tests: return ((date.toJulianDay() - JULIAN_DAY_FOR_EPOCH) * MSECS_PER_DAY) + time.msecsSinceStartOfDay();
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
((date.toJulianDay() - JULIAN_DAY_FOR_EPOCH) * MSECS_PER_DAY)
executed 13763898 times by 98 tests: return ((date.toJulianDay() - JULIAN_DAY_FOR_EPOCH) * MSECS_PER_DAY) + time.msecsSinceStartOfDay();
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13763898
1030 + time.msecsSinceStartOfDay();
executed 13763898 times by 98 tests: return ((date.toJulianDay() - JULIAN_DAY_FOR_EPOCH) * MSECS_PER_DAY) + time.msecsSinceStartOfDay();
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13763898
1031}-
1032-
1033-
1034static bool epochMSecsToLocalTime(qint64 msecs, QDate *localDate, QTime *localTime,-
1035 QDateTimePrivate::DaylightStatus *daylightStatus = 0)-
1036{-
1037 if (msecs < 0
msecs < 0Description
TRUEevaluated 85 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
FALSEevaluated 6855776 times by 91 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
) {
85-6855776
1038-
1039-
1040 qt_tzset();-
1041 msecsToTime(msecs - qt_timezone() * 1000, localDate, localTime);-
1042 if (daylightStatus
daylightStatusDescription
TRUEevaluated 85 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
FALSEnever evaluated
)
0-85
1043 *
executed 85 times by 2 tests: *daylightStatus = QDateTimePrivate::StandardTime;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
daylightStatus = QDateTimePrivate::StandardTime;
executed 85 times by 2 tests: *daylightStatus = QDateTimePrivate::StandardTime;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
85
1044 return
executed 85 times by 2 tests: return true;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
true;
executed 85 times by 2 tests: return true;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
85
1045 } else if (msecs > (qint64(TIME_T_MAX) * 1000)
msecs > (qint6...T_MAX) * 1000)Description
TRUEevaluated 58 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
FALSEevaluated 6858508 times by 91 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
) {
58-6858508
1046-
1047-
1048-
1049-
1050-
1051 QDate utcDate;-
1052 QTime utcTime;-
1053 msecsToTime(msecs, &utcDate, &utcTime);-
1054 int year, month, day;-
1055 utcDate.getDate(&year, &month, &day);-
1056-
1057 if (month == 2
month == 2Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 49 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
&& day == 29
day == 29Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QDateTime
)
3-49
1058 --
executed 3 times by 1 test: --day;
Executed by:
  • tst_QDateTime
day;
executed 3 times by 1 test: --day;
Executed by:
  • tst_QDateTime
3
1059 QDate fakeDate(2037, month, day);-
1060 qint64 fakeMsecs = QDateTime(fakeDate, utcTime, Qt::UTC).toMSecsSinceEpoch();-
1061 bool res = qt_localtime(fakeMsecs, localDate, localTime, daylightStatus);-
1062 *localDate = localDate->addDays(fakeDate.daysTo(utcDate));-
1063 return
executed 58 times by 2 tests: return res;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
res;
executed 58 times by 2 tests: return res;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
58
1064 } else {-
1065-
1066 return
executed 6857684 times by 91 tests: return qt_localtime(msecs, localDate, localTime, daylightStatus);
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
qt_localtime(msecs, localDate, localTime, daylightStatus);
executed 6857684 times by 91 tests: return qt_localtime(msecs, localDate, localTime, daylightStatus);
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
6857684
1067 }-
1068}-
1069-
1070-
1071-
1072-
1073static qint64 localMSecsToEpochMSecs(qint64 localMsecs,-
1074 QDateTimePrivate::DaylightStatus *daylightStatus,-
1075 QDate *localDate = 0, QTime *localTime = 0,-
1076 QString *abbreviation = 0)-
1077{-
1078 QDate dt;-
1079 QTime tm;-
1080 msecsToTime(localMsecs, &dt, &tm);-
1081-
1082 const qint64 msecsMax = qint64(TIME_T_MAX) * 1000;-
1083-
1084 if (localMsecs <= qint64(MSECS_PER_DAY)
localMsecs <= ...MSECS_PER_DAY)Description
TRUEevaluated 7031 times by 16 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QStyleSheetStyle
  • tst_QTime
FALSEevaluated 13740808 times by 97 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
) {
7031-13740808
1085-
1086-
1087-
1088-
1089-
1090 if (localMsecs >= -qint64(MSECS_PER_DAY)
localMsecs >= ...MSECS_PER_DAY)Description
TRUEevaluated 1136 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QStyleSheetStyle
FALSEevaluated 5895 times by 14 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QStyleSheetStyle
  • tst_QTime
) {
1136-5895
1091 bool valid;-
1092 qint64 utcMsecs = qt_mktime(&dt, &tm, daylightStatus, abbreviation, &valid);-
1093 if (valid
validDescription
TRUEevaluated 1100 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QStyleSheetStyle
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_QDateTime
&& utcMsecs >= 0
utcMsecs >= 0Description
TRUEevaluated 76 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
FALSEevaluated 1024 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QStyleSheetStyle
) {
36-1100
1094-
1095 if (localDate
localDateDescription
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
FALSEevaluated 46 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
)
30-46
1096 *
executed 30 times by 2 tests: *localDate = dt;
Executed by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
localDate = dt;
executed 30 times by 2 tests: *localDate = dt;
Executed by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
30
1097 if (localTime
localTimeDescription
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
FALSEevaluated 46 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
)
30-46
1098 *
executed 30 times by 2 tests: *localTime = tm;
Executed by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
localTime = tm;
executed 30 times by 2 tests: *localTime = tm;
Executed by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
30
1099 return
executed 76 times by 2 tests: return utcMsecs;
Executed by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
utcMsecs;
executed 76 times by 2 tests: return utcMsecs;
Executed by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
76
1100 }-
1101 }
executed 1060 times by 7 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QStyleSheetStyle
else {
1060
1102-
1103 qt_tzset();-
1104 }
executed 5895 times by 14 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QStyleSheetStyle
  • tst_QTime
5895
1105-
1106 qint64 utcMsecs = localMsecs + qt_timezone() * 1000;-
1107 if (localDate
localDateDescription
TRUEevaluated 4980 times by 15 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QStyleSheetStyle
  • tst_QTime
FALSEevaluated 1975 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QNoDebug
  • tst_QStyleSheetStyle
|| localTime
localTimeDescription
TRUEnever evaluated
FALSEevaluated 1975 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QNoDebug
  • tst_QStyleSheetStyle
)
0-4980
1108 msecsToTime(localMsecs, localDate, localTime);
executed 4980 times by 15 tests: msecsToTime(localMsecs, localDate, localTime);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QStyleSheetStyle
  • tst_QTime
4980
1109 if (daylightStatus
daylightStatusDescription
TRUEevaluated 6955 times by 16 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QStyleSheetStyle
  • tst_QTime
FALSEnever evaluated
)
0-6955
1110 *
executed 6955 times by 16 tests: *daylightStatus = QDateTimePrivate::StandardTime;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QStyleSheetStyle
  • tst_QTime
daylightStatus = QDateTimePrivate::StandardTime;
executed 6955 times by 16 tests: *daylightStatus = QDateTimePrivate::StandardTime;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QStyleSheetStyle
  • tst_QTime
6955
1111 if (abbreviation
abbreviationDescription
TRUEevaluated 282 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNoDebug
FALSEevaluated 6673 times by 16 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QStyleSheetStyle
  • tst_QTime
)
282-6673
1112 *
executed 282 times by 3 tests: *abbreviation = qt_tzname(QDateTimePrivate::StandardTime);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNoDebug
abbreviation = qt_tzname(QDateTimePrivate::StandardTime);
executed 282 times by 3 tests: *abbreviation = qt_tzname(QDateTimePrivate::StandardTime);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNoDebug
282
1113 return
executed 6955 times by 16 tests: return utcMsecs;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QStyleSheetStyle
  • tst_QTime
utcMsecs;
executed 6955 times by 16 tests: return utcMsecs;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QStyleSheetStyle
  • tst_QTime
6955
1114-
1115 } else if (localMsecs >= msecsMax - MSECS_PER_DAY
localMsecs >= ... MSECS_PER_DAYDescription
TRUEevaluated 15189 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
FALSEevaluated 13727424 times by 97 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
) {
15189-13727424
1116-
1117-
1118-
1119-
1120-
1121-
1122 if (localMsecs <= msecsMax + MSECS_PER_DAY
localMsecs <= ... MSECS_PER_DAYDescription
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 15147 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
) {
42-15147
1123 bool valid;-
1124 qint64 utcMsecs = qt_mktime(&dt, &tm, daylightStatus, abbreviation, &valid);-
1125 if (valid
validDescription
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEnever evaluated
&& utcMsecs <= msecsMax
utcMsecs <= msecsMaxDescription
TRUEevaluated 33 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QDateTime
) {
0-42
1126-
1127 if (localDate
localDateDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_QDateTime
)
9-24
1128 *
executed 9 times by 1 test: *localDate = dt;
Executed by:
  • tst_QDateTime
localDate = dt;
executed 9 times by 1 test: *localDate = dt;
Executed by:
  • tst_QDateTime
9
1129 if (localTime
localTimeDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_QDateTime
)
9-24
1130 *
executed 9 times by 1 test: *localTime = tm;
Executed by:
  • tst_QDateTime
localTime = tm;
executed 9 times by 1 test: *localTime = tm;
Executed by:
  • tst_QDateTime
9
1131 return
executed 33 times by 1 test: return utcMsecs;
Executed by:
  • tst_QDateTime
utcMsecs;
executed 33 times by 1 test: return utcMsecs;
Executed by:
  • tst_QDateTime
33
1132 }-
1133 }
executed 9 times by 1 test: end of block
Executed by:
  • tst_QDateTime
9
1134-
1135-
1136-
1137 int year, month, day;-
1138 dt.getDate(&year, &month, &day);-
1139-
1140 if (month == 2
month == 2Description
TRUEevaluated 75 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 15081 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
&& day == 29
day == 29Description
TRUEevaluated 33 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QDateTime
)
33-15081
1141 --
executed 33 times by 1 test: --day;
Executed by:
  • tst_QDateTime
day;
executed 33 times by 1 test: --day;
Executed by:
  • tst_QDateTime
33
1142 QDate fakeDate(2037, month, day);-
1143 qint64 fakeDiff = fakeDate.daysTo(dt);-
1144 qint64 utcMsecs = qt_mktime(&fakeDate, &tm, daylightStatus, abbreviation);-
1145 if (localDate
localDateDescription
TRUEevaluated 14337 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
FALSEevaluated 819 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
)
819-14337
1146 *
executed 14337 times by 12 tests: *localDate = fakeDate.addDays(fakeDiff);
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
localDate = fakeDate.addDays(fakeDiff);
executed 14337 times by 12 tests: *localDate = fakeDate.addDays(fakeDiff);
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
14337
1147 if (localTime
localTimeDescription
TRUEevaluated 14337 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
FALSEevaluated 819 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
)
819-14337
1148 *
executed 14337 times by 12 tests: *localTime = tm;
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
localTime = tm;
executed 14337 times by 12 tests: *localTime = tm;
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
14337
1149 QDate utcDate;-
1150 QTime utcTime;-
1151 msecsToTime(utcMsecs, &utcDate, &utcTime);-
1152 utcDate = utcDate.addDays(fakeDiff);-
1153 utcMsecs = timeToMSecs(utcDate, utcTime);-
1154 return
executed 15156 times by 12 tests: return utcMsecs;
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
utcMsecs;
executed 15156 times by 12 tests: return utcMsecs;
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QTime
15156
1155-
1156 } else {-
1157-
1158-
1159 qint64 utcMsecs = qt_mktime(&dt, &tm, daylightStatus, abbreviation);-
1160 if (localDate
localDateDescription
TRUEevaluated 13701999 times by 97 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
FALSEevaluated 1807 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFrame
  • tst_QFtp
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLockFile
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QSslCertificate
  • tst_QStyle
  • ...
)
1807-13701999
1161 *
executed 13730022 times by 97 tests: *localDate = dt;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
localDate = dt;
executed 13730022 times by 97 tests: *localDate = dt;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13730022
1162 if (localTime
localTimeDescription
TRUEevaluated 13725546 times by 97 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
FALSEevaluated 1807 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFrame
  • tst_QFtp
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLockFile
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QSslCertificate
  • tst_QStyle
  • ...
)
1807-13725546
1163 *
executed 13725984 times by 97 tests: *localTime = tm;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
localTime = tm;
executed 13725984 times by 97 tests: *localTime = tm;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13725984
1164 return
executed 13726426 times by 97 tests: return utcMsecs;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
utcMsecs;
executed 13726426 times by 97 tests: return utcMsecs;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13726426
1165-
1166 }-
1167}-
1168-
1169-
1170-
1171-
1172-
1173QDateTimePrivate::QDateTimePrivate(const QDate &toDate, const QTime &toTime, Qt::TimeSpec toSpec,-
1174 int offsetSeconds)-
1175 : m_msecs(0),-
1176 m_spec(Qt::LocalTime),-
1177 m_offsetFromUtc(0),-
1178 m_status(0)-
1179{-
1180 setTimeSpec(toSpec, offsetSeconds);-
1181 setDateTime(toDate, toTime);-
1182}
executed 66003 times by 35 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSettings
  • tst_QSqlQuery
  • ...
66003
1183-
1184-
1185QDateTimePrivate::QDateTimePrivate(const QDate &toDate, const QTime &toTime,-
1186 const QTimeZone &toTimeZone)-
1187 : m_spec(Qt::TimeZone),-
1188 m_offsetFromUtc(0),-
1189 m_timeZone(toTimeZone),-
1190 m_status(0)-
1191{-
1192 setDateTime(toDate, toTime);-
1193}
executed 22 times by 1 test: end of block
Executed by:
  • tst_QDateTime
22
1194-
1195-
1196void QDateTimePrivate::setTimeSpec(Qt::TimeSpec spec, int offsetSeconds)-
1197{-
1198 clearValidDateTime();-
1199 clearSetToDaylightStatus();-
1200-
1201-
1202 m_timeZone = QTimeZone();-
1203-
1204-
1205 switch (spec) {-
1206 case
executed 230 times by 5 tests: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_QSqlQuery
  • tst_selftests - unknown status
Qt::OffsetFromUTC:
executed 230 times by 5 tests: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_QSqlQuery
  • tst_selftests - unknown status
230
1207 if (offsetSeconds == 0
offsetSeconds == 0Description
TRUEevaluated 74 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
FALSEevaluated 156 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_QSqlQuery
  • tst_selftests - unknown status
) {
74-156
1208 m_spec = Qt::UTC;-
1209 m_offsetFromUtc = 0;-
1210 }
executed 74 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
else {
74
1211 m_spec = Qt::OffsetFromUTC;-
1212 m_offsetFromUtc = offsetSeconds;-
1213 }
executed 156 times by 5 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_QSqlQuery
  • tst_selftests - unknown status
156
1214 break;
executed 230 times by 5 tests: break;
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_QSqlQuery
  • tst_selftests - unknown status
230
1215 case
never executed: case Qt::TimeZone:
Qt::TimeZone:
never executed: case Qt::TimeZone:
0
1216-
1217 m_spec = Qt::LocalTime;-
1218 m_offsetFromUtc = 0;-
1219 break;
never executed: break;
0
1220 case
executed 60625 times by 28 tests: case Qt::UTC:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_QVariant
  • ...
Qt::UTC:
executed 60625 times by 28 tests: case Qt::UTC:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_QVariant
  • ...
60625
1221 case
executed 6877491 times by 98 tests: case Qt::LocalTime:
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
Qt::LocalTime:
executed 6877491 times by 98 tests: case Qt::LocalTime:
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
6877491
1222 m_spec = spec;-
1223 m_offsetFromUtc = 0;-
1224 break;
executed 6938116 times by 104 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
6938116
1225 }-
1226}
executed 6938347 times by 104 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
6938347
1227-
1228void QDateTimePrivate::setDateTime(const QDate &date, const QTime &time)-
1229{-
1230-
1231 QTime useTime = time;-
1232 if (!useTime.isValid()
!useTime.isValid()Description
TRUEevaluated 1624 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QStyleSheetStyle
  • tst_QTimeZone
  • tst_QVariant
FALSEevaluated 6930414 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
&& date.isValid()
date.isValid()Description
TRUEevaluated 1320 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QTimeZone
FALSEevaluated 304 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QFtp
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
)
304-6930414
1233 useTime = QTime::fromMSecsSinceStartOfDay(0);
executed 1320 times by 6 tests: useTime = QTime::fromMSecsSinceStartOfDay(0);
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
  • tst_QTimeZone
1320
1234-
1235 StatusFlags newStatus;-
1236-
1237-
1238 qint64 days = 0;-
1239 if (date.isValid()
date.isValid()Description
TRUEevaluated 6930609 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
FALSEevaluated 348 times by 10 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
) {
348-6930609
1240 days = date.toJulianDay() - JULIAN_DAY_FOR_EPOCH;-
1241 newStatus = ValidDate;-
1242 }
executed 6930008 times by 102 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
else if (date.isNull()
date.isNull()Description
TRUEevaluated 348 times by 10 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
FALSEnever evaluated
) {
0-6930008
1243 newStatus = NullDate;-
1244 }
executed 348 times by 10 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
348
1245-
1246-
1247 int ds = 0;-
1248 if (useTime.isValid()
useTime.isValid()Description
TRUEevaluated 6930742 times by 102 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
FALSEevaluated 304 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QFtp
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
) {
304-6930742
1249 ds = useTime.msecsSinceStartOfDay();-
1250 newStatus |= ValidTime;-
1251 }
executed 6929581 times by 102 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
else if (time.isNull()
time.isNull()Description
TRUEevaluated 304 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QFtp
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
FALSEnever evaluated
) {
0-6929581
1252 newStatus |= NullTime;-
1253 }
executed 304 times by 9 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QFtp
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
304
1254-
1255-
1256 m_msecs = (days * MSECS_PER_DAY) + ds;-
1257 m_status = newStatus;-
1258-
1259-
1260 checkValidDateTime();-
1261}
executed 6928410 times by 102 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
6928410
1262-
1263QPair<QDate, QTime> QDateTimePrivate::getDateTime() const-
1264{-
1265 QPair<QDate, QTime> result;-
1266 msecsToTime(m_msecs, &result.first, &result.second);-
1267-
1268 if (isNullDate()
isNullDate()Description
TRUEevaluated 122 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
FALSEevaluated 7330 times by 13 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_qmakelib
)
122-7330
1269 result.first = QDate();
executed 122 times by 5 tests: result.first = QDate();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
122
1270-
1271 if (isNullTime()
isNullTime()Description
TRUEevaluated 122 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
FALSEevaluated 7330 times by 13 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_qmakelib
)
122-7330
1272 result.second = QTime();
executed 122 times by 5 tests: result.second = QTime();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
122
1273-
1274 return
executed 7452 times by 14 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_qmakelib
result;
executed 7452 times by 14 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_qmakelib
7452
1275}-
1276-
1277-
1278void QDateTimePrivate::setDaylightStatus(QDateTimePrivate::DaylightStatus status)-
1279{-
1280 if (status == DaylightTime
status == DaylightTimeDescription
TRUEevaluated 6858465 times by 78 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
FALSEevaluated 781 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
) {
781-6858465
1281 m_status = m_status & ~SetToStandardTime;-
1282 m_status = m_status | SetToDaylightTime;-
1283 }
executed 6858465 times by 78 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
else if (status == StandardTime
status == StandardTimeDescription
TRUEevaluated 781 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEnever evaluated
) {
0-6858465
1284 m_status = m_status & ~SetToDaylightTime;-
1285 m_status = m_status | SetToStandardTime;-
1286 }
executed 781 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
else {
781
1287 clearSetToDaylightStatus();-
1288 }
never executed: end of block
0
1289}-
1290-
1291-
1292QDateTimePrivate::DaylightStatus QDateTimePrivate::daylightStatus() const-
1293{-
1294 if ((
(m_status & Se...ToDaylightTimeDescription
TRUEevaluated 6857279 times by 78 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
FALSEevaluated 6888095 times by 98 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
m_status & SetToDaylightTime) == SetToDaylightTime
(m_status & Se...ToDaylightTimeDescription
TRUEevaluated 6857279 times by 78 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
FALSEevaluated 6888095 times by 98 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
)
6857279-6888095
1295 return
executed 6859029 times by 78 tests: return DaylightTime;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
DaylightTime;
executed 6859029 times by 78 tests: return DaylightTime;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
6859029
1296 if ((
(m_status & Se...ToStandardTimeDescription
TRUEevaluated 1615 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 6887015 times by 98 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
m_status & SetToStandardTime) == SetToStandardTime
(m_status & Se...ToStandardTimeDescription
TRUEevaluated 1615 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
FALSEevaluated 6887015 times by 98 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
)
1615-6887015
1297 return
executed 1615 times by 28 tests: return StandardTime;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
StandardTime;
executed 1615 times by 28 tests: return StandardTime;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • tst_QTextEdit
  • ...
1615
1298 return
executed 6885948 times by 98 tests: return UnknownDaylightTime;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
UnknownDaylightTime;
executed 6885948 times by 98 tests: return UnknownDaylightTime;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
6885948
1299}-
1300-
1301qint64 QDateTimePrivate::toMSecsSinceEpoch() const-
1302{-
1303 switch (m_spec) {-
1304 case
executed 189 times by 4 tests: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
  • tst_QSettings
  • tst_QSqlQuery
  • tst_selftests - unknown status
Qt::OffsetFromUTC:
executed 189 times by 4 tests: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
  • tst_QSettings
  • tst_QSqlQuery
  • tst_selftests - unknown status
189
1305 case
executed 131701 times by 24 tests: case Qt::UTC:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_selftests - unknown status
Qt::UTC:
executed 131701 times by 24 tests: case Qt::UTC:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_selftests - unknown status
131701
1306 return
executed 131890 times by 25 tests: return (m_msecs - (m_offsetFromUtc * 1000));
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_selftests - unknown status
(m_msecs - (m_offsetFromUtc * 1000));
executed 131890 times by 25 tests: return (m_msecs - (m_offsetFromUtc * 1000));
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_selftests - unknown status
131890
1307-
1308 case
executed 3552 times by 26 tests: case Qt::LocalTime:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFrame
  • tst_QFtp
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QSslCertificate
  • tst_QStyle
  • tst_QStyleSheetStyle
  • ...
Qt::LocalTime:
executed 3552 times by 26 tests: case Qt::LocalTime:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFrame
  • tst_QFtp
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QSslCertificate
  • tst_QStyle
  • tst_QStyleSheetStyle
  • ...
{
3552
1309-
1310 DaylightStatus status = daylightStatus();-
1311 return
executed 3552 times by 26 tests: return localMSecsToEpochMSecs(m_msecs, &status);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFrame
  • tst_QFtp
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QSslCertificate
  • tst_QStyle
  • tst_QStyleSheetStyle
  • ...
localMSecsToEpochMSecs(m_msecs, &status);
executed 3552 times by 26 tests: return localMSecsToEpochMSecs(m_msecs, &status);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFrame
  • tst_QFtp
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QSslCertificate
  • tst_QStyle
  • tst_QStyleSheetStyle
  • ...
3552
1312 }-
1313-
1314 case
executed 489 times by 2 tests: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
Qt::TimeZone:
executed 489 times by 2 tests: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
489
1315-
1316-
1317-
1318 return
executed 489 times by 2 tests: return zoneMSecsToEpochMSecs(m_msecs, m_timeZone);
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
zoneMSecsToEpochMSecs(m_msecs, m_timeZone);
executed 489 times by 2 tests: return zoneMSecsToEpochMSecs(m_msecs, m_timeZone);
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
489
1319-
1320 }-
1321 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,2713) : qt_noop()); __builtin_unreachable(); } while (0);-
1322 return
never executed: return 0;
0;
never executed: return 0;
0
1323}-
1324-
1325-
1326void QDateTimePrivate::checkValidDateTime()-
1327{-
1328 switch (m_spec) {-
1329 case
executed 202 times by 5 tests: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_QSqlQuery
  • tst_selftests - unknown status
Qt::OffsetFromUTC:
executed 202 times by 5 tests: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_QSqlQuery
  • tst_selftests - unknown status
202
1330 case
executed 49267 times by 25 tests: case Qt::UTC:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_QVariant
  • tst_Spdy
  • tst_selftests - unknown status
Qt::UTC:
executed 49267 times by 25 tests: case Qt::UTC:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_QVariant
  • tst_Spdy
  • tst_selftests - unknown status
49267
1331-
1332 if (isValidDate()
isValidDate()Description
TRUEevaluated 48946 times by 25 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_Spdy
  • tst_selftests - unknown status
FALSEevaluated 523 times by 6 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QVariant
&& isValidTime()
isValidTime()Description
TRUEevaluated 48946 times by 25 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_Spdy
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-48946
1333 setValidDateTime();
executed 48946 times by 25 tests: setValidDateTime();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_Spdy
  • tst_selftests - unknown status
48946
1334 else-
1335 clearValidDateTime();
executed 523 times by 6 tests: clearValidDateTime();
Executed by:
  • tst_QDateTime
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QVariant
523
1336 break;
executed 49469 times by 26 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_QVariant
  • tst_Spdy
  • ...
49469
1337 case
executed 22 times by 1 test: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
Qt::TimeZone:
executed 22 times by 1 test: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
22
1338 case
executed 6881958 times by 98 tests: case Qt::LocalTime:
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
Qt::LocalTime:
executed 6881958 times by 98 tests: case Qt::LocalTime:
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
6881958
1339-
1340-
1341 refreshDateTime();-
1342 break;
executed 6876462 times by 98 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
6876462
1343 }-
1344}
executed 6926895 times by 102 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • ...
6926895
1345-
1346-
1347void QDateTimePrivate::refreshDateTime()-
1348{-
1349 switch (m_spec) {-
1350 case
never executed: case Qt::OffsetFromUTC:
Qt::OffsetFromUTC:
never executed: case Qt::OffsetFromUTC:
0
1351 case
never executed: case Qt::UTC:
Qt::UTC:
never executed: case Qt::UTC:
0
1352-
1353 return;
never executed: return;
0
1354 case
executed 524 times by 2 tests: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
Qt::TimeZone:
executed 524 times by 2 tests: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
524
1355 case
executed 13738092 times by 98 tests: case Qt::LocalTime:
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
Qt::LocalTime:
executed 13738092 times by 98 tests: case Qt::LocalTime:
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13738092
1356 break;
executed 13743879 times by 98 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
13743879
1357 }-
1358-
1359-
1360 if (!isValidDate()
!isValidDate()Description
TRUEevaluated 374 times by 10 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
FALSEevaluated 13742898 times by 98 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
|| !isValidTime()
!isValidTime()Description
TRUEnever evaluated
FALSEevaluated 13742335 times by 98 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
) {
0-13742898
1361 clearValidDateTime();-
1362 m_offsetFromUtc = 0;-
1363 return;
executed 374 times by 10 tests: return;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
374
1364 }-
1365-
1366-
1367-
1368 if (m_spec == Qt::TimeZone
m_spec == Qt::TimeZoneDescription
TRUEevaluated 503 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QTimeZone
FALSEevaluated 13733494 times by 98 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
&& !m_timeZone.isValid()
!m_timeZone.isValid()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 502 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QTimeZone
) {
1-13733494
1369 clearValidDateTime();-
1370 m_offsetFromUtc = 0;-
1371 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QDateTime
1
1372 }-
1373-
1374-
1375-
1376-
1377-
1378 QDate testDate;-
1379 QTime testTime;-
1380 qint64 epochMSecs = 0;-
1381 if (m_spec == Qt::LocalTime
m_spec == Qt::LocalTimeDescription
TRUEevaluated 13739533 times by 98 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
FALSEevaluated 502 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QTimeZone
) {
502-13739533
1382 DaylightStatus status = daylightStatus();-
1383 epochMSecs = localMSecsToEpochMSecs(m_msecs, &status, &testDate, &testTime);-
1384-
1385 }
executed 13743002 times by 98 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
else {
13743002
1386 epochMSecs = zoneMSecsToEpochMSecs(m_msecs, m_timeZone, &testDate, &testTime);-
1387-
1388 }
executed 502 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
502
1389 if (timeToMSecs(testDate, testTime) == m_msecs
timeToMSecs(te...me) == m_msecsDescription
TRUEevaluated 13742501 times by 98 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDateTime
) {
4-13742501
1390 setValidDateTime();-
1391-
1392 m_offsetFromUtc = (m_msecs - epochMSecs) / 1000;-
1393 }
executed 13738099 times by 98 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • ...
else {
13738099
1394 clearValidDateTime();-
1395 m_offsetFromUtc = 0;-
1396 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QDateTime
4
1397}-
1398-
1399-
1400-
1401qint64 QDateTimePrivate::zoneMSecsToEpochMSecs(qint64 zoneMSecs, const QTimeZone &zone,-
1402 QDate *localDate, QTime *localTime)-
1403{-
1404-
1405 QTimeZonePrivate::Data data = zone.d->dataForLocalTime(zoneMSecs);-
1406-
1407-
1408 if (data.atMSecsSinceEpoch >= 0
data.atMSecsSinceEpoch >= 0Description
TRUEevaluated 986 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QTimeZone
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QDateTime
) {
5-986
1409 msecsToTime(data.atMSecsSinceEpoch + (data.offsetFromUtc * 1000), localDate, localTime);-
1410 return
executed 986 times by 2 tests: return data.atMSecsSinceEpoch;
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
data.atMSecsSinceEpoch;
executed 986 times by 2 tests: return data.atMSecsSinceEpoch;
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
986
1411 } else {-
1412 msecsToTime(zoneMSecs, localDate, localTime);-
1413 return
executed 5 times by 1 test: return zoneMSecs - (data.standardTimeOffset * 1000);
Executed by:
  • tst_QDateTime
zoneMSecs - (data.standardTimeOffset * 1000);
executed 5 times by 1 test: return zoneMSecs - (data.standardTimeOffset * 1000);
Executed by:
  • tst_QDateTime
5
1414 }-
1415}-
1416QDateTime::QDateTime()-
1417 : d(new QDateTimePrivate)-
1418{-
1419}
executed 7008628 times by 123 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • ...
7008628
1420-
1421-
1422-
1423-
1424-
1425-
1426-
1427QDateTime::QDateTime(const QDate &date)-
1428 : d(new QDateTimePrivate(date, QTime(0, 0, 0), Qt::LocalTime, 0))-
1429{-
1430}
executed 6 times by 3 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QVariant
6
1431QDateTime::QDateTime(const QDate &date, const QTime &time, Qt::TimeSpec spec)-
1432 : d(new QDateTimePrivate(date, time, spec, 0))-
1433{-
1434}
executed 65725 times by 34 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSqlQuery
  • tst_QSslCertificate
  • ...
65725
1435QDateTime::QDateTime(const QDate &date, const QTime &time, Qt::TimeSpec spec, int offsetSeconds)-
1436 : d(new QDateTimePrivate(date, time, spec, offsetSeconds))-
1437{-
1438}
executed 272 times by 7 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QVariant
  • tst_selftests - unknown status
272
1439QDateTime::QDateTime(const QDate &date, const QTime &time, const QTimeZone &timeZone)-
1440 : d(new QDateTimePrivate(date, time, timeZone))-
1441{-
1442}
executed 22 times by 1 test: end of block
Executed by:
  • tst_QDateTime
22
1443-
1444-
1445-
1446-
1447-
1448-
1449QDateTime::QDateTime(const QDateTime &other)-
1450 : d(other.d)-
1451{-
1452}
executed 472937 times by 63 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • ...
472937
1453-
1454-
1455-
1456-
1457QDateTime::~QDateTime()-
1458{-
1459}-
1460-
1461-
1462-
1463-
1464-
1465-
1466QDateTime &QDateTime::operator=(const QDateTime &other)-
1467{-
1468 d = other.d;-
1469 return
executed 1834 times by 12 tests: return *this;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
*this;
executed 1834 times by 12 tests: return *this;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
1834
1470}-
1471bool QDateTime::isNull() const-
1472{-
1473 return
executed 4853 times by 10 tests: return d->isNullDate() && d->isNullTime();
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
d->isNullDate()
d->isNullDate()Description
TRUEevaluated 60 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkReply
  • tst_QVariant
FALSEevaluated 4793 times by 10 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
&& d->isNullTime()
d->isNullTime()Description
TRUEevaluated 23 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkReply
  • tst_QVariant
FALSEevaluated 37 times by 1 test
Evaluated by:
  • tst_QDateTimeEdit
;
executed 4853 times by 10 tests: return d->isNullDate() && d->isNullTime();
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
23-4853
1474}-
1475bool QDateTime::isValid() const-
1476{-
1477 return
executed 109787 times by 75 tests: return (d->isValidDateTime());
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFrame
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
(d->isValidDateTime());
executed 109787 times by 75 tests: return (d->isValidDateTime());
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFrame
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
109787
1478}-
1479-
1480-
1481-
1482-
1483-
1484-
1485-
1486QDate QDateTime::date() const-
1487{-
1488 if (d->isNullDate()
d->isNullDate()Description
TRUEevaluated 71 times by 6 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 84185 times by 42 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
)
71-84185
1489 return
executed 71 times by 6 tests: return QDate();
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
QDate();
executed 71 times by 6 tests: return QDate();
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
71
1490 QDate dt;-
1491 msecsToTime(d->m_msecs, &dt, 0);-
1492 return
executed 84185 times by 42 tests: return dt;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
dt;
executed 84185 times by 42 tests: return dt;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
84185
1493}-
1494-
1495-
1496-
1497-
1498-
1499-
1500-
1501QTime QDateTime::time() const-
1502{-
1503 if (d->isNullTime()
d->isNullTime()Description
TRUEevaluated 70 times by 6 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 6918403 times by 71 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsProxyWidget
  • ...
)
70-6918403
1504 return
executed 70 times by 6 tests: return QTime();
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
QTime();
executed 70 times by 6 tests: return QTime();
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
70
1505 QTime tm;-
1506 msecsToTime(d->m_msecs, 0, &tm);-
1507 return
executed 6918121 times by 71 tests: return tm;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsProxyWidget
  • ...
tm;
executed 6918121 times by 71 tests: return tm;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsProxyWidget
  • ...
6918121
1508}-
1509-
1510-
1511-
1512-
1513-
1514-
1515-
1516Qt::TimeSpec QDateTime::timeSpec() const-
1517{-
1518 return
executed 2109 times by 19 tests: return d->m_spec;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
  • tst_qmakelib
d->m_spec;
executed 2109 times by 19 tests: return d->m_spec;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
  • tst_qmakelib
2109
1519}-
1520QTimeZone QDateTime::timeZone() const-
1521{-
1522 switch (d->m_spec) {-
1523 case
never executed: case Qt::UTC:
Qt::UTC:
never executed: case Qt::UTC:
0
1524 return
never executed: return QTimeZone::utc();
QTimeZone::utc();
never executed: return QTimeZone::utc();
0
1525 case
executed 1 time by 1 test: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
Qt::OffsetFromUTC:
executed 1 time by 1 test: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
1
1526 return
executed 1 time by 1 test: return QTimeZone(d->m_offsetFromUtc);
Executed by:
  • tst_QDateTime
QTimeZone(d->m_offsetFromUtc);
executed 1 time by 1 test: return QTimeZone(d->m_offsetFromUtc);
Executed by:
  • tst_QDateTime
1
1527 case
executed 22 times by 1 test: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
Qt::TimeZone:
executed 22 times by 1 test: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
22
1528 ((!(d->m_timeZone.isValid())) ? qt_assert("d->m_timeZone.isValid()",__FILE__,3147) : qt_noop());-
1529 return
executed 22 times by 1 test: return d->m_timeZone;
Executed by:
  • tst_QDateTime
d->m_timeZone;
executed 22 times by 1 test: return d->m_timeZone;
Executed by:
  • tst_QDateTime
22
1530 case
never executed: case Qt::LocalTime:
Qt::LocalTime:
never executed: case Qt::LocalTime:
0
1531 return
never executed: return QTimeZone::systemTimeZone();
QTimeZone::systemTimeZone();
never executed: return QTimeZone::systemTimeZone();
0
1532 }-
1533 return
never executed: return QTimeZone();
QTimeZone();
never executed: return QTimeZone();
0
1534}-
1535int QDateTime::offsetFromUtc() const-
1536{-
1537 return
executed 580 times by 5 tests: return d->m_offsetFromUtc;
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QTimeZone
d->m_offsetFromUtc;
executed 580 times by 5 tests: return d->m_offsetFromUtc;
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QTimeZone
580
1538}-
1539QString QDateTime::timeZoneAbbreviation() const-
1540{-
1541 switch (d->m_spec) {-
1542 case
executed 980 times by 7 tests: case Qt::UTC:
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_selftests - unknown status
Qt::UTC:
executed 980 times by 7 tests: case Qt::UTC:
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_selftests - unknown status
980
1543 return
executed 980 times by 7 tests: return QTimeZonePrivate::utcQString();
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_selftests - unknown status
QTimeZonePrivate::utcQString();
executed 980 times by 7 tests: return QTimeZonePrivate::utcQString();
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_selftests - unknown status
980
1544 case
executed 86 times by 3 tests: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
Qt::OffsetFromUTC:
executed 86 times by 3 tests: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
86
1545 return
executed 86 times by 3 tests: return QTimeZonePrivate::utcQString() + toOffsetString(Qt::ISODate, d->m_offsetFromUtc);
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
QTimeZonePrivate::utcQString() + toOffsetString(Qt::ISODate, d->m_offsetFromUtc);
executed 86 times by 3 tests: return QTimeZonePrivate::utcQString() + toOffsetString(Qt::ISODate, d->m_offsetFromUtc);
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
86
1546 case
executed 466 times by 2 tests: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
Qt::TimeZone:
executed 466 times by 2 tests: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
466
1547-
1548-
1549-
1550 return
executed 466 times by 2 tests: return d->m_timeZone.d->abbreviation(d->toMSecsSinceEpoch());
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
d->m_timeZone.d->abbreviation(d->toMSecsSinceEpoch());
executed 466 times by 2 tests: return d->m_timeZone.d->abbreviation(d->toMSecsSinceEpoch());
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
466
1551-
1552 case
executed 1117 times by 12 tests: case Qt::LocalTime:
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
Qt::LocalTime:
executed 1117 times by 12 tests: case Qt::LocalTime:
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
{
1117
1553 QString abbrev;-
1554 QDateTimePrivate::DaylightStatus status = d->daylightStatus();-
1555 localMSecsToEpochMSecs(d->m_msecs, &status, 0, 0, &abbrev);-
1556 return
executed 1117 times by 12 tests: return abbrev;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
abbrev;
executed 1117 times by 12 tests: return abbrev;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QTime
  • tst_QVariant
1117
1557 }-
1558 }-
1559 return
never executed: return QString();
QString();
never executed: return QString();
0
1560}-
1561bool QDateTime::isDaylightTime() const-
1562{-
1563 switch (d->m_spec) {-
1564 case
executed 2 times by 1 test: case Qt::UTC:
Executed by:
  • tst_QDateTime
Qt::UTC:
executed 2 times by 1 test: case Qt::UTC:
Executed by:
  • tst_QDateTime
2
1565 case
executed 2 times by 1 test: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
Qt::OffsetFromUTC:
executed 2 times by 1 test: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
2
1566 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_QDateTime
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_QDateTime
4
1567 case
executed 3 times by 1 test: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
Qt::TimeZone:
executed 3 times by 1 test: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
3
1568-
1569-
1570-
1571 return
executed 3 times by 1 test: return d->m_timeZone.d->isDaylightTime(toMSecsSinceEpoch());
Executed by:
  • tst_QDateTime
d->m_timeZone.d->isDaylightTime(toMSecsSinceEpoch());
executed 3 times by 1 test: return d->m_timeZone.d->isDaylightTime(toMSecsSinceEpoch());
Executed by:
  • tst_QDateTime
3
1572-
1573 case
executed 2 times by 1 test: case Qt::LocalTime:
Executed by:
  • tst_QDateTime
Qt::LocalTime:
executed 2 times by 1 test: case Qt::LocalTime:
Executed by:
  • tst_QDateTime
{
2
1574 QDateTimePrivate::DaylightStatus status = d->daylightStatus();-
1575 if (status == QDateTimePrivate::UnknownDaylightTime
status == QDat...wnDaylightTimeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEnever evaluated
)
0-2
1576 localMSecsToEpochMSecs(d->m_msecs, &status);
executed 2 times by 1 test: localMSecsToEpochMSecs(d->m_msecs, &status);
Executed by:
  • tst_QDateTime
2
1577 return
executed 2 times by 1 test: return (status == QDateTimePrivate::DaylightTime);
Executed by:
  • tst_QDateTime
(status == QDateTimePrivate::DaylightTime);
executed 2 times by 1 test: return (status == QDateTimePrivate::DaylightTime);
Executed by:
  • tst_QDateTime
2
1578 }-
1579 }-
1580 return
never executed: return false;
false;
never executed: return false;
0
1581}-
1582void QDateTime::setDate(const QDate &date)-
1583{-
1584 d->setDateTime(date, time());-
1585}
executed 133 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QFtp
133
1586void QDateTime::setTime(const QTime &time)-
1587{-
1588 d->setDateTime(date(), time);-
1589}
executed 134 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QNetworkCookie
134
1590void QDateTime::setTimeSpec(Qt::TimeSpec spec)-
1591{-
1592 QDateTimePrivate *d = this->d.data();-
1593 d->setTimeSpec(spec, 0);-
1594 d->checkValidDateTime();-
1595}
executed 1527 times by 12 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_Spdy
1527
1596void QDateTime::setOffsetFromUtc(int offsetSeconds)-
1597{-
1598 QDateTimePrivate *d = this->d.data();-
1599 d->setTimeSpec(Qt::OffsetFromUTC, offsetSeconds);-
1600 d->checkValidDateTime();-
1601}
executed 35 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QSettings
35
1602void QDateTime::setTimeZone(const QTimeZone &toZone)-
1603{-
1604 QDateTimePrivate *d = this->d.data();-
1605 d->m_spec = Qt::TimeZone;-
1606 d->m_offsetFromUtc = 0;-
1607 d->m_timeZone = toZone;-
1608 d->refreshDateTime();-
1609}
executed 482 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QTimeZone
482
1610qint64 QDateTime::toMSecsSinceEpoch() const-
1611{-
1612 return
executed 132174 times by 22 tests: return d->toMSecsSinceEpoch();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • tst_QTimeZone
  • tst_selftests - unknown status
d->toMSecsSinceEpoch();
executed 132174 times by 22 tests: return d->toMSecsSinceEpoch();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • tst_QTimeZone
  • tst_selftests - unknown status
132174
1613}-
1614uint QDateTime::toTime_t() const-
1615{-
1616 if (!isValid()
!isValid()Description
TRUEevaluated 983 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
FALSEevaluated 181 times by 14 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAuthenticator
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFrame
  • tst_QIcon
  • tst_QLabel
  • tst_QNetworkDiskCache
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QStyle
)
181-983
1617 return
executed 983 times by 28 tests: return uint(-1);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
uint(-1);
executed 983 times by 28 tests: return uint(-1);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
983
1618 qint64 retval = d->toMSecsSinceEpoch() / 1000;-
1619 if (quint64(retval) >= static_cast<unsigned long long>(0xFFFFFFFFULL)
quint64(retval...0xFFFFFFFFULL)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 178 times by 14 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAuthenticator
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFrame
  • tst_QIcon
  • tst_QLabel
  • tst_QNetworkDiskCache
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QStyle
)
3-178
1620 return
executed 3 times by 1 test: return uint(-1);
Executed by:
  • tst_QDateTime
uint(-1);
executed 3 times by 1 test: return uint(-1);
Executed by:
  • tst_QDateTime
3
1621 return
executed 178 times by 14 tests: return uint(retval);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAuthenticator
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFrame
  • tst_QIcon
  • tst_QLabel
  • tst_QNetworkDiskCache
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QStyle
uint(retval);
executed 178 times by 14 tests: return uint(retval);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAuthenticator
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFrame
  • tst_QIcon
  • tst_QLabel
  • tst_QNetworkDiskCache
  • tst_QPixmap
  • tst_QPixmapFilter
  • tst_QStyle
178
1622}-
1623void QDateTime::setMSecsSinceEpoch(qint64 msecs)-
1624{-
1625 QDateTimePrivate *d = this->d.data();-
1626-
1627 d->m_status = 0;-
1628 switch (d->m_spec) {-
1629 case
executed 11646 times by 20 tests: case Qt::UTC:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_QXmlInputSource
  • tst_Spdy
Qt::UTC:
executed 11646 times by 20 tests: case Qt::UTC:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_QXmlInputSource
  • tst_Spdy
11646
1630 d->m_msecs = msecs;-
1631 d->m_status = d->m_status-
1632 | QDateTimePrivate::ValidDate-
1633 | QDateTimePrivate::ValidTime-
1634 | QDateTimePrivate::ValidDateTime;-
1635 break;
executed 11646 times by 20 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
  • tst_QXmlInputSource
  • tst_Spdy
11646
1636 case
executed 17 times by 2 tests: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
Qt::OffsetFromUTC:
executed 17 times by 2 tests: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
17
1637 d->m_msecs = msecs + (d->m_offsetFromUtc * 1000);-
1638 d->m_status = d->m_status-
1639 | QDateTimePrivate::ValidDate-
1640 | QDateTimePrivate::ValidTime-
1641 | QDateTimePrivate::ValidDateTime;-
1642 break;
executed 17 times by 2 tests: break;
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
17
1643 case
executed 20 times by 1 test: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
Qt::TimeZone:
executed 20 times by 1 test: case Qt::TimeZone:
Executed by:
  • tst_QDateTime
20
1644-
1645-
1646-
1647 if (msecs >= 0
msecs >= 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDateTime
)
4-16
1648 d->m_offsetFromUtc = d->m_timeZone.d->offsetFromUtc(msecs);
executed 16 times by 1 test: d->m_offsetFromUtc = d->m_timeZone.d->offsetFromUtc(msecs);
Executed by:
  • tst_QDateTime
16
1649 else-
1650 d->m_offsetFromUtc = d->m_timeZone.d->standardTimeOffset(msecs);
executed 4 times by 1 test: d->m_offsetFromUtc = d->m_timeZone.d->standardTimeOffset(msecs);
Executed by:
  • tst_QDateTime
4
1651 d->m_msecs = msecs + (d->m_offsetFromUtc * 1000);-
1652 d->m_status = d->m_status-
1653 | QDateTimePrivate::ValidDate-
1654 | QDateTimePrivate::ValidTime-
1655 | QDateTimePrivate::ValidDateTime;-
1656 d->refreshDateTime();-
1657-
1658 break;
executed 20 times by 1 test: break;
Executed by:
  • tst_QDateTime
20
1659 case
executed 6859246 times by 91 tests: case Qt::LocalTime:
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
Qt::LocalTime:
executed 6859246 times by 91 tests: case Qt::LocalTime:
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
{
6859246
1660 QDate dt;-
1661 QTime tm;-
1662 QDateTimePrivate::DaylightStatus status;-
1663 epochMSecsToLocalTime(msecs, &dt, &tm, &status);-
1664 d->setDateTime(dt, tm);-
1665 d->setDaylightStatus(status);-
1666 d->refreshDateTime();-
1667 break;
executed 6851885 times by 91 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
6851885
1668 }-
1669 }-
1670}
executed 6868791 times by 99 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • ...
6868791
1671void QDateTime::setTime_t(uint secsSince1Jan1970UTC)-
1672{-
1673 setMSecsSinceEpoch((qint64)secsSince1Jan1970UTC * 1000);-
1674}
executed 16 times by 1 test: end of block
Executed by:
  • tst_QDateTime
16
1675QString QDateTime::toString(Qt::DateFormat format) const-
1676{-
1677 QString buf;-
1678 if (!isValid()
!isValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 3255 times by 13 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
  • tst_languageChange
  • tst_qmakelib
)
2-3255
1679 return
executed 2 times by 1 test: return buf;
Executed by:
  • tst_QDateTime
buf;
executed 2 times by 1 test: return buf;
Executed by:
  • tst_QDateTime
2
1680-
1681 switch (format) {-
1682 case
executed 2786 times by 8 tests: case Qt::SystemLocaleDate:
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
Qt::SystemLocaleDate:
executed 2786 times by 8 tests: case Qt::SystemLocaleDate:
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
2786
1683 case
executed 1 time by 1 test: case Qt::SystemLocaleShortDate:
Executed by:
  • tst_QDateTime
Qt::SystemLocaleShortDate:
executed 1 time by 1 test: case Qt::SystemLocaleShortDate:
Executed by:
  • tst_QDateTime
1
1684 return
executed 2787 times by 8 tests: return QLocale::system().toString(*this, QLocale::ShortFormat);
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
QLocale::system().toString(*this, QLocale::ShortFormat);
executed 2787 times by 8 tests: return QLocale::system().toString(*this, QLocale::ShortFormat);
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
2787
1685 case
executed 1 time by 1 test: case Qt::SystemLocaleLongDate:
Executed by:
  • tst_QDateTime
Qt::SystemLocaleLongDate:
executed 1 time by 1 test: case Qt::SystemLocaleLongDate:
Executed by:
  • tst_QDateTime
1
1686 return
executed 1 time by 1 test: return QLocale::system().toString(*this, QLocale::LongFormat);
Executed by:
  • tst_QDateTime
QLocale::system().toString(*this, QLocale::LongFormat);
executed 1 time by 1 test: return QLocale::system().toString(*this, QLocale::LongFormat);
Executed by:
  • tst_QDateTime
1
1687 case
executed 1 time by 1 test: case Qt::LocaleDate:
Executed by:
  • tst_QDateTime
Qt::LocaleDate:
executed 1 time by 1 test: case Qt::LocaleDate:
Executed by:
  • tst_QDateTime
1
1688 case
executed 1 time by 1 test: case Qt::DefaultLocaleShortDate:
Executed by:
  • tst_QDateTime
Qt::DefaultLocaleShortDate:
executed 1 time by 1 test: case Qt::DefaultLocaleShortDate:
Executed by:
  • tst_QDateTime
1
1689 return
executed 2 times by 1 test: return QLocale().toString(*this, QLocale::ShortFormat);
Executed by:
  • tst_QDateTime
QLocale().toString(*this, QLocale::ShortFormat);
executed 2 times by 1 test: return QLocale().toString(*this, QLocale::ShortFormat);
Executed by:
  • tst_QDateTime
2
1690 case
executed 1 time by 1 test: case Qt::DefaultLocaleLongDate:
Executed by:
  • tst_QDateTime
Qt::DefaultLocaleLongDate:
executed 1 time by 1 test: case Qt::DefaultLocaleLongDate:
Executed by:
  • tst_QDateTime
1
1691 return
executed 1 time by 1 test: return QLocale().toString(*this, QLocale::LongFormat);
Executed by:
  • tst_QDateTime
QLocale().toString(*this, QLocale::LongFormat);
executed 1 time by 1 test: return QLocale().toString(*this, QLocale::LongFormat);
Executed by:
  • tst_QDateTime
1
1692 case
executed 5 times by 1 test: case Qt::RFC2822Date:
Executed by:
  • tst_QDateTime
Qt::RFC2822Date:
executed 5 times by 1 test: case Qt::RFC2822Date:
Executed by:
  • tst_QDateTime
{
5
1693 buf = QLocale::c().toString(*this, ([]() -> QString { enum { Size = sizeof(u"" "dd MMM yyyy hh:mm:ss ")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "dd MMM yyyy hh:mm:ss " }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QDateTime
qstring_literal_temp;
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QDateTime
}()));
5
1694 buf += toOffsetString(Qt::TextDate, d->m_offsetFromUtc);-
1695 return
executed 5 times by 1 test: return buf;
Executed by:
  • tst_QDateTime
buf;
executed 5 times by 1 test: return buf;
Executed by:
  • tst_QDateTime
5
1696 }-
1697 default
never executed: default:
:
never executed: default:
0
1698-
1699 case
executed 433 times by 3 tests: case Qt::TextDate:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_qmakelib
Qt::TextDate:
executed 433 times by 3 tests: case Qt::TextDate:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_qmakelib
{
433
1700 const QPair<QDate, QTime> p = d->getDateTime();-
1701 const QDate &dt = p.first;-
1702 const QTime &tm = p.second;-
1703-
1704 buf = QString::fromLatin1("%1 %2 %3 %4 %5").arg(dt.shortDayName(dt.dayOfWeek()))-
1705 .arg(dt.shortMonthName(dt.month()))-
1706 .arg(dt.day())-
1707 .arg(tm.toString(Qt::TextDate))-
1708 .arg(dt.year());-
1709 if (timeSpec() != Qt::LocalTime
timeSpec() != Qt::LocalTimeDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 430 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_qmakelib
) {
3-430
1710 buf += ([]() -> QString { enum { Size = sizeof(u"" " GMT")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" " GMT" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 3 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QDateTime
qstring_literal_temp;
executed 3 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QDateTime
}());
3
1711 if (d->m_spec == Qt::OffsetFromUTC
d->m_spec == Qt::OffsetFromUTCDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
)
1-2
1712 buf += toOffsetString(Qt::TextDate, d->m_offsetFromUtc);
executed 2 times by 1 test: buf += toOffsetString(Qt::TextDate, d->m_offsetFromUtc);
Executed by:
  • tst_QDateTime
2
1713 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QDateTime
3
1714 return
executed 433 times by 3 tests: return buf;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_qmakelib
buf;
executed 433 times by 3 tests: return buf;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_qmakelib
433
1715 }-
1716-
1717 case
executed 26 times by 4 tests: case Qt::ISODate:
Executed by:
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
Qt::ISODate:
executed 26 times by 4 tests: case Qt::ISODate:
Executed by:
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
{
26
1718 const QPair<QDate, QTime> p = d->getDateTime();-
1719 const QDate &dt = p.first;-
1720 const QTime &tm = p.second;-
1721 buf = dt.toString(Qt::ISODate);-
1722 if (buf.isEmpty()
buf.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 25 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
)
1-25
1723 return
executed 1 time by 1 test: return QString();
Executed by:
  • tst_QDateTime
QString();
executed 1 time by 1 test: return QString();
Executed by:
  • tst_QDateTime
1
1724 buf += QLatin1Char('T');-
1725 buf += tm.toString(Qt::ISODate);-
1726 switch (d->m_spec) {-
1727 case
executed 9 times by 2 tests: case Qt::UTC:
Executed by:
  • tst_QDateTime
  • tst_QNetworkRequest
Qt::UTC:
executed 9 times by 2 tests: case Qt::UTC:
Executed by:
  • tst_QDateTime
  • tst_QNetworkRequest
9
1728 buf += QLatin1Char('Z');-
1729 break;
executed 9 times by 2 tests: break;
Executed by:
  • tst_QDateTime
  • tst_QNetworkRequest
9
1730 case
executed 3 times by 1 test: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
Qt::OffsetFromUTC:
executed 3 times by 1 test: case Qt::OffsetFromUTC:
Executed by:
  • tst_QDateTime
3
1731 buf += toOffsetString(Qt::ISODate, d->m_offsetFromUtc);-
1732 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QDateTime
3
1733 default
executed 13 times by 3 tests: default:
Executed by:
  • tst_QDateTime
  • tst_QSqlTableModel
  • tst_QVariant
:
executed 13 times by 3 tests: default:
Executed by:
  • tst_QDateTime
  • tst_QSqlTableModel
  • tst_QVariant
13
1734 break;
executed 13 times by 3 tests: break;
Executed by:
  • tst_QDateTime
  • tst_QSqlTableModel
  • tst_QVariant
13
1735 }-
1736 return
executed 25 times by 4 tests: return buf;
Executed by:
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
buf;
executed 25 times by 4 tests: return buf;
Executed by:
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QVariant
25
1737 }-
1738 }-
1739}-
1740QString QDateTime::toString(const QString& format) const-
1741{-
1742 return
executed 2244 times by 17 tests: return QLocale::system().toString(*this, format);
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
QLocale::system().toString(*this, format);
executed 2244 times by 17 tests: return QLocale::system().toString(*this, format);
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
2244
1743}-
1744-
1745-
1746static void massageAdjustedDateTime(Qt::TimeSpec spec,-
1747-
1748 const QTimeZone &zone,-
1749-
1750 QDate *date,-
1751 QTime *time)-
1752{-
1753 if (spec == Qt::LocalTime
spec == Qt::LocalTimeDescription
TRUEevaluated 6376 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
FALSEevaluated 124 times by 1 test
Evaluated by:
  • tst_QDateTime
) {
124-6376
1754 QDateTimePrivate::DaylightStatus status = QDateTimePrivate::UnknownDaylightTime;-
1755 localMSecsToEpochMSecs(timeToMSecs(*date, *time), &status, date, time);-
1756-
1757 }
executed 6376 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
else if (spec == Qt::TimeZone
spec == Qt::TimeZoneDescription
TRUEnever evaluated
FALSEevaluated 124 times by 1 test
Evaluated by:
  • tst_QDateTime
) {
0-6376
1758 QDateTimePrivate::zoneMSecsToEpochMSecs(timeToMSecs(*date, *time), zone, date, time);-
1759-
1760 }
never executed: end of block
0
1761}
executed 6500 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
6500
1762QDateTime QDateTime::addDays(qint64 ndays) const-
1763{-
1764 QDateTime dt(*this);-
1765 QPair<QDate, QTime> p = d->getDateTime();-
1766 QDate &date = p.first;-
1767 QTime &time = p.second;-
1768 date = date.addDays(ndays);-
1769 massageAdjustedDateTime(d->m_spec, d->m_timeZone, &date, &time);-
1770 dt.d->setDateTime(date, time);-
1771 return
executed 6290 times by 2 tests: return dt;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
dt;
executed 6290 times by 2 tests: return dt;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
6290
1772}-
1773QDateTime QDateTime::addMonths(int nmonths) const-
1774{-
1775 QDateTime dt(*this);-
1776 QPair<QDate, QTime> p = d->getDateTime();-
1777 QDate &date = p.first;-
1778 QTime &time = p.second;-
1779 date = date.addMonths(nmonths);-
1780 massageAdjustedDateTime(d->m_spec, d->m_timeZone, &date, &time);-
1781 dt.d->setDateTime(date, time);-
1782 return
executed 119 times by 2 tests: return dt;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
dt;
executed 119 times by 2 tests: return dt;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
119
1783}-
1784QDateTime QDateTime::addYears(int nyears) const-
1785{-
1786 QDateTime dt(*this);-
1787 QPair<QDate, QTime> p = d->getDateTime();-
1788 QDate &date = p.first;-
1789 QTime &time = p.second;-
1790 date = date.addYears(nyears);-
1791 massageAdjustedDateTime(d->m_spec, d->m_timeZone, &date, &time);-
1792 dt.d->setDateTime(date, time);-
1793 return
executed 91 times by 1 test: return dt;
Executed by:
  • tst_QDateTime
dt;
executed 91 times by 1 test: return dt;
Executed by:
  • tst_QDateTime
91
1794}-
1795QDateTime QDateTime::addSecs(qint64 s) const-
1796{-
1797 return
executed 41121 times by 17 tests: return addMSecs(s * 1000);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSqlTableModel
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlInputSource
  • tst_Spdy
addMSecs(s * 1000);
executed 41121 times by 17 tests: return addMSecs(s * 1000);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSqlTableModel
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlInputSource
  • tst_Spdy
41121
1798}-
1799QDateTime QDateTime::addMSecs(qint64 msecs) const-
1800{-
1801 if (!isValid()
!isValid()Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 41209 times by 17 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSqlTableModel
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlInputSource
  • tst_Spdy
)
5-41209
1802 return
executed 5 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 5 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
5
1803-
1804 QDateTime dt(*this);-
1805 if (d->m_spec == Qt::LocalTime
d->m_spec == Qt::LocalTimeDescription
TRUEevaluated 83 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlTableModel
FALSEevaluated 41126 times by 16 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlInputSource
  • tst_Spdy
|| d->m_spec == Qt::TimeZone
d->m_spec == Qt::TimeZoneDescription
TRUEnever evaluated
FALSEevaluated 41126 times by 16 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlInputSource
  • tst_Spdy
)
0-41126
1806-
1807 dt.setMSecsSinceEpoch(d->toMSecsSinceEpoch() + msecs);
executed 83 times by 2 tests: dt.setMSecsSinceEpoch(d->toMSecsSinceEpoch() + msecs);
Executed by:
  • tst_QDateTime
  • tst_QSqlTableModel
83
1808 else-
1809-
1810 dt.d->m_msecs = dt.d->m_msecs + msecs;
executed 41126 times by 16 tests: dt.d->m_msecs = dt.d->m_msecs + msecs;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlInputSource
  • tst_Spdy
41126
1811 return
executed 41209 times by 17 tests: return dt;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSqlTableModel
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlInputSource
  • tst_Spdy
dt;
executed 41209 times by 17 tests: return dt;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSqlTableModel
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlInputSource
  • tst_Spdy
41209
1812}-
1813qint64 QDateTime::daysTo(const QDateTime &other) const-
1814{-
1815 return
executed 114 times by 3 tests: return date().daysTo(other.date());
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QDateTimeEdit
date().daysTo(other.date());
executed 114 times by 3 tests: return date().daysTo(other.date());
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QDateTimeEdit
114
1816}-
1817qint64 QDateTime::secsTo(const QDateTime &other) const-
1818{-
1819 return
executed 815 times by 11 tests: return (msecsTo(other) / 1000);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
(msecsTo(other) / 1000);
executed 815 times by 11 tests: return (msecsTo(other) / 1000);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QXmlInputSource
  • tst_Spdy
815
1820}-
1821qint64 QDateTime::msecsTo(const QDateTime &other) const-
1822{-
1823 if (!isValid()
!isValid()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 1175 times by 15 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QDir
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QXmlInputSource
  • tst_Spdy
|| !other.isValid()
!other.isValid()Description
TRUEnever evaluated
FALSEevaluated 1175 times by 15 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QDir
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QXmlInputSource
  • tst_Spdy
)
0-1175
1824 return
executed 4 times by 1 test: return 0;
Executed by:
  • tst_QDateTime
0;
executed 4 times by 1 test: return 0;
Executed by:
  • tst_QDateTime
4
1825-
1826 return
executed 1175 times by 15 tests: return other.d->toMSecsSinceEpoch() - d->toMSecsSinceEpoch();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QDir
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QXmlInputSource
  • tst_Spdy
other.d->toMSecsSinceEpoch() - d->toMSecsSinceEpoch();
executed 1175 times by 15 tests: return other.d->toMSecsSinceEpoch() - d->toMSecsSinceEpoch();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QDir
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QXmlInputSource
  • tst_Spdy
1175
1827}-
1828QDateTime QDateTime::toTimeSpec(Qt::TimeSpec spec) const-
1829{-
1830 if (d->m_spec == spec
d->m_spec == specDescription
TRUEevaluated 18105 times by 13 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QTime
FALSEevaluated 1176 times by 7 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QVariant
&& (spec == Qt::UTC
spec == Qt::UTCDescription
TRUEevaluated 1252 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QSslCertificate
FALSEevaluated 16853 times by 11 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QStyleSheetStyle
  • tst_QTime
|| spec == Qt::LocalTime
spec == Qt::LocalTimeDescription
TRUEevaluated 16853 times by 11 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QStyleSheetStyle
  • tst_QTime
FALSEnever evaluated
))
0-18105
1831 return
executed 18105 times by 13 tests: return *this;
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QTime
*this;
executed 18105 times by 13 tests: return *this;
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QTime
18105
1832-
1833 if (!isValid()
!isValid()Description
TRUEevaluated 505 times by 6 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QVariant
FALSEevaluated 671 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkReply
) {
505-671
1834 QDateTime ret = *this;-
1835 ret.setTimeSpec(spec);-
1836 return
executed 505 times by 6 tests: return ret;
Executed by:
  • tst_QDateTime
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QVariant
ret;
executed 505 times by 6 tests: return ret;
Executed by:
  • tst_QDateTime
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QVariant
505
1837 }-
1838-
1839 return
executed 671 times by 3 tests: return fromMSecsSinceEpoch(d->toMSecsSinceEpoch(), spec, 0);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkReply
fromMSecsSinceEpoch(d->toMSecsSinceEpoch(), spec, 0);
executed 671 times by 3 tests: return fromMSecsSinceEpoch(d->toMSecsSinceEpoch(), spec, 0);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkReply
671
1840}-
1841QDateTime QDateTime::toOffsetFromUtc(int offsetSeconds) const-
1842{-
1843 if (d->m_spec == Qt::OffsetFromUTC
d->m_spec == Qt::OffsetFromUTCDescription
TRUEnever evaluated
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
&& d->m_offsetFromUtc == offsetSeconds
d->m_offsetFro... offsetSecondsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-6
1844 return
never executed: return *this;
*this;
never executed: return *this;
0
1845-
1846 if (!isValid()
!isValid()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
) {
1-5
1847 QDateTime ret = *this;-
1848 ret.setOffsetFromUtc(offsetSeconds);-
1849 return
executed 1 time by 1 test: return ret;
Executed by:
  • tst_QDateTime
ret;
executed 1 time by 1 test: return ret;
Executed by:
  • tst_QDateTime
1
1850 }-
1851-
1852 return
executed 5 times by 2 tests: return fromMSecsSinceEpoch(d->toMSecsSinceEpoch(), Qt::OffsetFromUTC, offsetSeconds);
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
fromMSecsSinceEpoch(d->toMSecsSinceEpoch(), Qt::OffsetFromUTC, offsetSeconds);
executed 5 times by 2 tests: return fromMSecsSinceEpoch(d->toMSecsSinceEpoch(), Qt::OffsetFromUTC, offsetSeconds);
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
5
1853}-
1854QDateTime QDateTime::toTimeZone(const QTimeZone &timeZone) const-
1855{-
1856 if (d->m_spec == Qt::TimeZone
d->m_spec == Qt::TimeZoneDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
&& d->m_timeZone == timeZone
d->m_timeZone == timeZoneDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
)
0-1
1857 return
never executed: return *this;
*this;
never executed: return *this;
0
1858-
1859 if (!isValid()
!isValid()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
) {
1
1860 QDateTime ret = *this;-
1861 ret.setTimeZone(timeZone);-
1862 return
executed 1 time by 1 test: return ret;
Executed by:
  • tst_QDateTime
ret;
executed 1 time by 1 test: return ret;
Executed by:
  • tst_QDateTime
1
1863 }-
1864-
1865 return
executed 1 time by 1 test: return fromMSecsSinceEpoch(d->toMSecsSinceEpoch(), timeZone);
Executed by:
  • tst_QDateTime
fromMSecsSinceEpoch(d->toMSecsSinceEpoch(), timeZone);
executed 1 time by 1 test: return fromMSecsSinceEpoch(d->toMSecsSinceEpoch(), timeZone);
Executed by:
  • tst_QDateTime
1
1866}-
1867bool QDateTime::operator==(const QDateTime &other) const-
1868{-
1869 if (d->m_spec == Qt::LocalTime
d->m_spec == Qt::LocalTimeDescription
TRUEevaluated 62331 times by 29 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • ...
FALSEevaluated 1270 times by 13 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_selftests - unknown status
1270-62331
1870 && other.d->m_spec == Qt::LocalTime
other.d->m_spe... Qt::LocalTimeDescription
TRUEevaluated 62298 times by 29 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • ...
FALSEevaluated 33 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
33-62298
1871 && d->m_status == other.d->m_status
d->m_status ==...er.d->m_statusDescription
TRUEevaluated 61589 times by 29 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • ...
FALSEevaluated 709 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDBusAbstractAdaptor
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QStyleSheetStyle
) {
709-61589
1872 return
executed 61589 times by 29 tests: return (d->m_msecs == other.d->m_msecs);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • ...
(d->m_msecs == other.d->m_msecs);
executed 61589 times by 29 tests: return (d->m_msecs == other.d->m_msecs);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • ...
61589
1873 }-
1874-
1875 return
executed 2012 times by 19 tests: return (toMSecsSinceEpoch() == other.toMSecsSinceEpoch());
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_selftests - unknown status
(toMSecsSinceEpoch() == other.toMSecsSinceEpoch());
executed 2012 times by 19 tests: return (toMSecsSinceEpoch() == other.toMSecsSinceEpoch());
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_selftests - unknown status
2012
1876}-
1877bool QDateTime::operator<(const QDateTime &other) const-
1878{-
1879 if (d->m_spec == Qt::LocalTime
d->m_spec == Qt::LocalTimeDescription
TRUEevaluated 43119 times by 13 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QVariant
FALSEevaluated 58071 times by 8 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTimeZone
43119-58071
1880 && other.d->m_spec == Qt::LocalTime
other.d->m_spe... Qt::LocalTimeDescription
TRUEevaluated 43110 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QVariant
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
9-43110
1881 && d->m_status == other.d->m_status
d->m_status ==...er.d->m_statusDescription
TRUEevaluated 42636 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QVariant
FALSEevaluated 474 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
) {
474-42636
1882 return
executed 42636 times by 12 tests: return (d->m_msecs < other.d->m_msecs);
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QVariant
(d->m_msecs < other.d->m_msecs);
executed 42636 times by 12 tests: return (d->m_msecs < other.d->m_msecs);
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QVariant
42636
1883 }-
1884-
1885 return
executed 58554 times by 11 tests: return (toMSecsSinceEpoch() < other.toMSecsSinceEpoch());
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • tst_QTimeZone
(toMSecsSinceEpoch() < other.toMSecsSinceEpoch());
executed 58554 times by 11 tests: return (toMSecsSinceEpoch() < other.toMSecsSinceEpoch());
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • tst_QTimeZone
58554
1886}-
1887QDate QDate::currentDate()-
1888{-
1889 return
executed 202 times by 8 tests: return QDateTime::currentDateTime().date();
Executed by:
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QMetaType
  • tst_QSettings
QDateTime::currentDateTime().date();
executed 202 times by 8 tests: return QDateTime::currentDateTime().date();
Executed by:
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QMetaType
  • tst_QSettings
202
1890}-
1891-
1892QTime QTime::currentTime()-
1893{-
1894 return
executed 6848830 times by 39 tests: return QDateTime::currentDateTime().time();
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCoreApplication
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QMovie
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QObjectPerformance
  • tst_QProcess
  • tst_QProgressBar
  • tst_QReadWriteLock
  • tst_QSettings
  • ...
QDateTime::currentDateTime().time();
executed 6848830 times by 39 tests: return QDateTime::currentDateTime().time();
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCoreApplication
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QMovie
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QObjectPerformance
  • tst_QProcess
  • tst_QProgressBar
  • tst_QReadWriteLock
  • tst_QSettings
  • ...
6848830
1895}-
1896-
1897QDateTime QDateTime::currentDateTime()-
1898{-
1899 return
executed 6851929 times by 60 tests: return fromMSecsSinceEpoch(currentMSecsSinceEpoch(), Qt::LocalTime);
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileInfo
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QLockFile
  • ...
fromMSecsSinceEpoch(currentMSecsSinceEpoch(), Qt::LocalTime);
executed 6851929 times by 60 tests: return fromMSecsSinceEpoch(currentMSecsSinceEpoch(), Qt::LocalTime);
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileInfo
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLocalSocket
  • tst_QLockFile
  • ...
6851929
1900}-
1901-
1902QDateTime QDateTime::currentDateTimeUtc()-
1903{-
1904 return
executed 3648 times by 18 tests: return fromMSecsSinceEpoch(currentMSecsSinceEpoch(), Qt::UTC);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlInputSource
  • tst_Spdy
fromMSecsSinceEpoch(currentMSecsSinceEpoch(), Qt::UTC);
executed 3648 times by 18 tests: return fromMSecsSinceEpoch(currentMSecsSinceEpoch(), Qt::UTC);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QXmlInputSource
  • tst_Spdy
3648
1905}-
1906-
1907qint64 QDateTime::currentMSecsSinceEpoch() noexcept-
1908{-
1909-
1910-
1911 struct timeval tv;-
1912 gettimeofday(&tv, 0);-
1913 return
executed 6853721 times by 70 tests: return qint64(tv.tv_sec) * static_cast<long long>(1000LL) + tv.tv_usec / 1000;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileInfo
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLocalSocket
  • ...
qint64(tv.tv_sec) * static_cast<long long>(1000LL) + tv.tv_usec / 1000;
executed 6853721 times by 70 tests: return qint64(tv.tv_sec) * static_cast<long long>(1000LL) + tv.tv_usec / 1000;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileInfo
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLocalSocket
  • ...
6853721
1914}-
1915QDateTime QDateTime::fromTime_t(uint seconds)-
1916{-
1917 return
executed 6412 times by 44 tests: return fromMSecsSinceEpoch((qint64)seconds * 1000, Qt::LocalTime);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLockFile
  • ...
fromMSecsSinceEpoch((qint64)seconds * 1000, Qt::LocalTime);
executed 6412 times by 44 tests: return fromMSecsSinceEpoch((qint64)seconds * 1000, Qt::LocalTime);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLockFile
  • ...
6412
1918}-
1919QDateTime QDateTime::fromTime_t(uint seconds, Qt::TimeSpec spec, int offsetSeconds)-
1920{-
1921 return
never executed: return fromMSecsSinceEpoch((qint64)seconds * 1000, spec, offsetSeconds);
fromMSecsSinceEpoch((qint64)seconds * 1000, spec, offsetSeconds);
never executed: return fromMSecsSinceEpoch((qint64)seconds * 1000, spec, offsetSeconds);
0
1922}-
1923QDateTime QDateTime::fromTime_t(uint seconds, const QTimeZone &timeZone)-
1924{-
1925 return
executed 1 time by 1 test: return fromMSecsSinceEpoch((qint64)seconds * 1000, timeZone);
Executed by:
  • tst_QDateTime
fromMSecsSinceEpoch((qint64)seconds * 1000, timeZone);
executed 1 time by 1 test: return fromMSecsSinceEpoch((qint64)seconds * 1000, timeZone);
Executed by:
  • tst_QDateTime
1
1926}-
1927QDateTime QDateTime::fromMSecsSinceEpoch(qint64 msecs)-
1928{-
1929 return
never executed: return fromMSecsSinceEpoch(msecs, Qt::LocalTime);
fromMSecsSinceEpoch(msecs, Qt::LocalTime);
never executed: return fromMSecsSinceEpoch(msecs, Qt::LocalTime);
0
1930}-
1931QDateTime QDateTime::fromMSecsSinceEpoch(qint64 msecs, Qt::TimeSpec spec, int offsetSeconds)-
1932{-
1933 QDateTime dt;-
1934 dt.d->setTimeSpec(spec, offsetSeconds);-
1935 dt.setMSecsSinceEpoch(msecs);-
1936 return
executed 6867723 times by 99 tests: return dt;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • ...
dt;
executed 6867723 times by 99 tests: return dt;
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAtomicInt
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • ...
6867723
1937}-
1938QDateTime QDateTime::fromMSecsSinceEpoch(qint64 msecs, const QTimeZone &timeZone)-
1939{-
1940 QDateTime dt;-
1941 dt.setTimeZone(timeZone);-
1942 dt.setMSecsSinceEpoch(msecs);-
1943 return
executed 10 times by 1 test: return dt;
Executed by:
  • tst_QDateTime
dt;
executed 10 times by 1 test: return dt;
Executed by:
  • tst_QDateTime
10
1944}-
1945void QDateTime::setUtcOffset(int seconds)-
1946{-
1947 setOffsetFromUtc(seconds);-
1948}
executed 4 times by 1 test: end of block
Executed by:
  • tst_QDateTime
4
1949int QDateTime::utcOffset() const-
1950{-
1951 return
executed 20 times by 1 test: return offsetFromUtc();
Executed by:
  • tst_QDateTime
offsetFromUtc();
executed 20 times by 1 test: return offsetFromUtc();
Executed by:
  • tst_QDateTime
20
1952}-
1953QDateTime QDateTime::fromString(const QString& string, Qt::DateFormat format)-
1954{-
1955 if (string.isEmpty()
string.isEmpty()Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 147 times by 6 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QVariant
)
5-147
1956 return
executed 5 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 5 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
5
1957-
1958 switch (format) {-
1959 case
executed 1 time by 1 test: case Qt::SystemLocaleDate:
Executed by:
  • tst_QDateTime
Qt::SystemLocaleDate:
executed 1 time by 1 test: case Qt::SystemLocaleDate:
Executed by:
  • tst_QDateTime
1
1960 case
executed 1 time by 1 test: case Qt::SystemLocaleShortDate:
Executed by:
  • tst_QDateTime
Qt::SystemLocaleShortDate:
executed 1 time by 1 test: case Qt::SystemLocaleShortDate:
Executed by:
  • tst_QDateTime
1
1961 return
executed 2 times by 1 test: return QLocale::system().toDateTime(string, QLocale::ShortFormat);
Executed by:
  • tst_QDateTime
QLocale::system().toDateTime(string, QLocale::ShortFormat);
executed 2 times by 1 test: return QLocale::system().toDateTime(string, QLocale::ShortFormat);
Executed by:
  • tst_QDateTime
2
1962 case
executed 1 time by 1 test: case Qt::SystemLocaleLongDate:
Executed by:
  • tst_QDateTime
Qt::SystemLocaleLongDate:
executed 1 time by 1 test: case Qt::SystemLocaleLongDate:
Executed by:
  • tst_QDateTime
1
1963 return
executed 1 time by 1 test: return QLocale::system().toDateTime(string, QLocale::LongFormat);
Executed by:
  • tst_QDateTime
QLocale::system().toDateTime(string, QLocale::LongFormat);
executed 1 time by 1 test: return QLocale::system().toDateTime(string, QLocale::LongFormat);
Executed by:
  • tst_QDateTime
1
1964 case
executed 1 time by 1 test: case Qt::LocaleDate:
Executed by:
  • tst_QDateTime
Qt::LocaleDate:
executed 1 time by 1 test: case Qt::LocaleDate:
Executed by:
  • tst_QDateTime
1
1965 case
executed 1 time by 1 test: case Qt::DefaultLocaleShortDate:
Executed by:
  • tst_QDateTime
Qt::DefaultLocaleShortDate:
executed 1 time by 1 test: case Qt::DefaultLocaleShortDate:
Executed by:
  • tst_QDateTime
1
1966 return
executed 2 times by 1 test: return QLocale().toDateTime(string, QLocale::ShortFormat);
Executed by:
  • tst_QDateTime
QLocale().toDateTime(string, QLocale::ShortFormat);
executed 2 times by 1 test: return QLocale().toDateTime(string, QLocale::ShortFormat);
Executed by:
  • tst_QDateTime
2
1967 case
executed 1 time by 1 test: case Qt::DefaultLocaleLongDate:
Executed by:
  • tst_QDateTime
Qt::DefaultLocaleLongDate:
executed 1 time by 1 test: case Qt::DefaultLocaleLongDate:
Executed by:
  • tst_QDateTime
1
1968 return
executed 1 time by 1 test: return QLocale().toDateTime(string, QLocale::LongFormat);
Executed by:
  • tst_QDateTime
QLocale().toDateTime(string, QLocale::LongFormat);
executed 1 time by 1 test: return QLocale().toDateTime(string, QLocale::LongFormat);
Executed by:
  • tst_QDateTime
1
1969 case
executed 30 times by 1 test: case Qt::RFC2822Date:
Executed by:
  • tst_QDateTime
Qt::RFC2822Date:
executed 30 times by 1 test: case Qt::RFC2822Date:
Executed by:
  • tst_QDateTime
{
30
1970 const ParsedRfcDateTime rfc = rfcDateImpl(string);-
1971-
1972 if (!rfc.date.isValid()
!rfc.date.isValid()Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 19 times by 1 test
Evaluated by:
  • tst_QDateTime
|| !rfc.time.isValid()
!rfc.time.isValid()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QDateTime
)
3-19
1973 return
executed 14 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 14 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
14
1974-
1975 QDateTime dateTime(rfc.date, rfc.time, Qt::UTC);-
1976 dateTime.setOffsetFromUtc(rfc.utcOffset);-
1977 return
executed 16 times by 1 test: return dateTime;
Executed by:
  • tst_QDateTime
dateTime;
executed 16 times by 1 test: return dateTime;
Executed by:
  • tst_QDateTime
16
1978 }-
1979 case
executed 69 times by 4 tests: case Qt::ISODate:
Executed by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
Qt::ISODate:
executed 69 times by 4 tests: case Qt::ISODate:
Executed by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
{
69
1980 const int size = string.size();-
1981 if (size < 10
size < 10Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 65 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
)
4-65
1982 return
executed 4 times by 1 test: return QDateTime();
Executed by:
  • tst_QVariant
QDateTime();
executed 4 times by 1 test: return QDateTime();
Executed by:
  • tst_QVariant
4
1983-
1984 QStringRef isoString(&string);-
1985 Qt::TimeSpec spec = Qt::LocalTime;-
1986-
1987 QDate date = QDate::fromString(string.left(10), Qt::ISODate);-
1988 if (!date.isValid()
!date.isValid()Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QVariant
FALSEevaluated 58 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
)
7-58
1989 return
executed 7 times by 2 tests: return QDateTime();
Executed by:
  • tst_QDateTime
  • tst_QVariant
QDateTime();
executed 7 times by 2 tests: return QDateTime();
Executed by:
  • tst_QDateTime
  • tst_QVariant
7
1990 if (size == 10
size == 10Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 57 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
)
1-57
1991 return
executed 1 time by 1 test: return QDateTime(date);
Executed by:
  • tst_QDateTime
QDateTime(date);
executed 1 time by 1 test: return QDateTime(date);
Executed by:
  • tst_QDateTime
1
1992-
1993 isoString = isoString.right(isoString.length() - 11);-
1994 int offset = 0;-
1995-
1996 if (isoString.endsWith(QLatin1Char('Z'))
isoString.ends...tin1Char('Z'))Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
FALSEevaluated 50 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
) {
7-50
1997 spec = Qt::UTC;-
1998 isoString = isoString.left(isoString.size() - 1);-
1999 }
executed 7 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
else {
7
2000-
2001-
2002 int signIndex = isoString.size() - 1;-
2003 bool found = false;-
2004 {-
2005 const QChar plus = QLatin1Char('+');-
2006 const QChar minus = QLatin1Char('-');-
2007 do {-
2008 QChar character(isoString.at(signIndex));-
2009 found = character == plus
character == plusDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
FALSEevaluated 414 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
|| character == minus
character == minusDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 406 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
;
6-414
2010 }
executed 420 times by 4 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
while (--
--signIndex >= 0Description
TRUEevaluated 384 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
FALSEevaluated 36 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
signIndex >= 0
--signIndex >= 0Description
TRUEevaluated 384 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
FALSEevaluated 36 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
&& !found
!foundDescription
TRUEevaluated 370 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
);
14-420
2011 ++signIndex;-
2012 }-
2013-
2014 if (found
foundDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
FALSEevaluated 36 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
) {
14-36
2015 bool ok;-
2016 offset = fromOffsetString(isoString.mid(signIndex), &ok);-
2017 if (!ok
!okDescription
TRUEnever evaluated
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
)
0-14
2018 return
never executed: return QDateTime();
QDateTime();
never executed: return QDateTime();
0
2019 isoString = isoString.left(signIndex);-
2020 spec = Qt::OffsetFromUTC;-
2021 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
14
2022 }
executed 50 times by 4 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
50
2023-
2024-
2025-
2026 bool isMidnight24 = false;-
2027 QTime time = fromIsoTimeString(isoString, Qt::ISODate, &isMidnight24);-
2028 if (!time.isValid()
!time.isValid()Description
TRUEnever evaluated
FALSEevaluated 57 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
)
0-57
2029 return
never executed: return QDateTime();
QDateTime();
never executed: return QDateTime();
0
2030 if (isMidnight24
isMidnight24Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 52 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
)
5-52
2031 date = date.addDays(1);
executed 5 times by 1 test: date = date.addDays(1);
Executed by:
  • tst_QDateTime
5
2032 return
executed 57 times by 4 tests: return QDateTime(date, time, spec, offset);
Executed by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
QDateTime(date, time, spec, offset);
executed 57 times by 4 tests: return QDateTime(date, time, spec, offset);
Executed by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QVariant
57
2033 }-
2034-
2035 case
executed 42 times by 3 tests: case Qt::TextDate:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
Qt::TextDate:
executed 42 times by 3 tests: case Qt::TextDate:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
{
42
2036 QVector<QStringRef> parts = string.splitRef(QLatin1Char(' '), QString::SkipEmptyParts);-
2037-
2038 if ((
(parts.count() < 5)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 41 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
parts.count() < 5)
(parts.count() < 5)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 41 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
|| (
(parts.count() > 6)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 40 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
parts.count() > 6)
(parts.count() > 6)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 40 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
)
1-41
2039 return
executed 2 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 2 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
2
2040-
2041-
2042 int month = 0;-
2043 int day = 0;-
2044 bool ok = false;-
2045-
2046-
2047 month = fromShortMonthName(parts.at(1));-
2048 if (month
monthDescription
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
FALSEnever evaluated
)
0-40
2049 day = parts.at(2).toInt();
executed 40 times by 3 tests: day = parts.at(2).toInt();
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
40
2050-
2051-
2052 if (!month
!monthDescription
TRUEnever evaluated
FALSEevaluated 40 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
|| !day
!dayDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 26 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
) {
0-40
2053 month = fromShortMonthName(parts.at(2));-
2054 if (month
monthDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEnever evaluated
) {
0-14
2055 QStringRef dayStr = parts.at(1);-
2056 if (dayStr.endsWith(QLatin1Char('.'))
dayStr.endsWit...tin1Char('.'))Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDateTime
) {
2-12
2057 dayStr = dayStr.left(dayStr.size() - 1);-
2058 day = dayStr.toInt();-
2059 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QDateTime
12
2060 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_QDateTime
14
2061 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_QDateTime
14
2062-
2063-
2064 if (!month
!monthDescription
TRUEnever evaluated
FALSEevaluated 40 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
|| !day
!dayDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
)
0-40
2065 return
executed 3 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 3 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
3
2066-
2067-
2068-
2069 int year = 0;-
2070 int yearPart = 0;-
2071 int timePart = 0;-
2072 if (parts.at(3).contains(QLatin1Char(':'))
parts.at(3).co...tin1Char(':'))Description
TRUEevaluated 23 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QDateTime
) {
14-23
2073 yearPart = 4;-
2074 timePart = 3;-
2075 }
executed 23 times by 3 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
else if (parts.at(4).contains(QLatin1Char(':'))
parts.at(4).co...tin1Char(':'))Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
) {
1-23
2076 yearPart = 3;-
2077 timePart = 4;-
2078 }
executed 13 times by 1 test: end of block
Executed by:
  • tst_QDateTime
else {
13
2079 return
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
1
2080 }-
2081-
2082 year = parts.at(yearPart).toInt(&ok);-
2083 if (!ok
!okDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 34 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
)
2-34
2084 return
executed 2 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 2 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
2
2085-
2086 QDate date(year, month, day);-
2087 if (!date.isValid()
!date.isValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 32 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
)
2-32
2088 return
executed 2 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 2 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
2
2089-
2090 QVector<QStringRef> timeParts = parts.at(timePart).split(QLatin1Char(':'));-
2091 if (timeParts.count() < 2
timeParts.count() < 2Description
TRUEnever evaluated
FALSEevaluated 32 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
|| timeParts.count() > 3
timeParts.count() > 3Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 31 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
)
0-32
2092 return
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
1
2093-
2094 int hour = timeParts.at(0).toInt(&ok);-
2095 if (!ok
!okDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 30 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
)
1-30
2096 return
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
1
2097-
2098 int minute = timeParts.at(1).toInt(&ok);-
2099 if (!ok
!okDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 29 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
)
1-29
2100 return
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
1
2101-
2102 int second = 0;-
2103 int millisecond = 0;-
2104 if (timeParts.count() > 2
timeParts.count() > 2Description
TRUEevaluated 28 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
) {
1-28
2105 QVector<QStringRef> secondParts = timeParts.at(2).split(QLatin1Char('.'));-
2106 if (secondParts.size() > 2
secondParts.size() > 2Description
TRUEnever evaluated
FALSEevaluated 28 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
) {
0-28
2107 return
never executed: return QDateTime();
QDateTime();
never executed: return QDateTime();
0
2108 }-
2109-
2110 second = secondParts.first().toInt(&ok);-
2111 if (!ok
!okDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 27 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
) {
1-27
2112 return
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
1
2113 }-
2114-
2115 if (secondParts.size() > 1
secondParts.size() > 1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 26 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
) {
1-26
2116 millisecond = secondParts.last().toInt(&ok);-
2117 if (!ok
!okDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
) {
0-1
2118 return
never executed: return QDateTime();
QDateTime();
never executed: return QDateTime();
0
2119 }-
2120 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QDateTime
1
2121 }
executed 27 times by 3 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
27
2122-
2123 QTime time(hour, minute, second, millisecond);-
2124 if (!time.isValid()
!time.isValid()Description
TRUEnever evaluated
FALSEevaluated 28 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
)
0-28
2125 return
never executed: return QDateTime();
QDateTime();
never executed: return QDateTime();
0
2126-
2127 if (parts.count() == 5
parts.count() == 5Description
TRUEevaluated 15 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QDateTime
)
13-15
2128 return
executed 15 times by 3 tests: return QDateTime(date, time, Qt::LocalTime);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
QDateTime(date, time, Qt::LocalTime);
executed 15 times by 3 tests: return QDateTime(date, time, Qt::LocalTime);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
15
2129-
2130 QStringRef tz = parts.at(5);-
2131 if (!tz.startsWith(QLatin1String("GMT"), Qt::CaseInsensitive)
!tz.startsWith...seInsensitive)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QDateTime
)
1-12
2132 return
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 1 time by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
1
2133 tz = tz.mid(3);-
2134 if (!tz.isEmpty()
!tz.isEmpty()Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDateTime
) {
3-9
2135 int offset = fromOffsetString(tz, &ok);-
2136 if (!ok
!okDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QDateTime
)
4-5
2137 return
executed 4 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
QDateTime();
executed 4 times by 1 test: return QDateTime();
Executed by:
  • tst_QDateTime
4
2138 return
executed 5 times by 1 test: return QDateTime(date, time, Qt::OffsetFromUTC, offset);
Executed by:
  • tst_QDateTime
QDateTime(date, time, Qt::OffsetFromUTC, offset);
executed 5 times by 1 test: return QDateTime(date, time, Qt::OffsetFromUTC, offset);
Executed by:
  • tst_QDateTime
5
2139 } else {-
2140 return
executed 3 times by 1 test: return QDateTime(date, time, Qt::UTC);
Executed by:
  • tst_QDateTime
QDateTime(date, time, Qt::UTC);
executed 3 times by 1 test: return QDateTime(date, time, Qt::UTC);
Executed by:
  • tst_QDateTime
3
2141 }-
2142 }-
2143-
2144 }-
2145-
2146 return
never executed: return QDateTime();
QDateTime();
never executed: return QDateTime();
0
2147}-
2148QDateTime QDateTime::fromString(const QString &string, const QString &format)-
2149{-
2150-
2151 QTime time;-
2152 QDate date;-
2153-
2154 QDateTimeParser dt(QVariant::DateTime, QDateTimeParser::FromString);-
2155 if (dt.parseFormat(format)
dt.parseFormat(format)Description
TRUEevaluated 49 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
FALSEnever evaluated
&& dt.fromString(string, &date, &time)
dt.fromString(... &date, &time)Description
TRUEevaluated 41 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QDateTime
)
0-49
2156 return
executed 41 times by 4 tests: return QDateTime(date, time);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
QDateTime(date, time);
executed 41 times by 4 tests: return QDateTime(date, time);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
41
2157-
2158-
2159-
2160-
2161 return
executed 8 times by 1 test: return QDateTime(QDate(), QTime(-1, -1, -1));
Executed by:
  • tst_QDateTime
QDateTime(QDate(), QTime(-1, -1, -1));
executed 8 times by 1 test: return QDateTime(QDate(), QTime(-1, -1, -1));
Executed by:
  • tst_QDateTime
8
2162}-
2163QDataStream &operator<<(QDataStream &out, const QDate &date)-
2164{-
2165 if (out.version() < QDataStream::Qt_5_0
out.version() ...Stream::Qt_5_0Description
TRUEevaluated 248 times by 4 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QSettings
  • tst_QVariant
FALSEevaluated 495 times by 10 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
)
248-495
2166 return
executed 248 times by 4 tests: return out << quint32(date.jd);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QSettings
  • tst_QVariant
out << quint32(date.jd);
executed 248 times by 4 tests: return out << quint32(date.jd);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QSettings
  • tst_QVariant
248
2167 else-
2168 return
executed 495 times by 10 tests: return out << qint64(date.jd);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
out << qint64(date.jd);
executed 495 times by 10 tests: return out << qint64(date.jd);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
495
2169}-
2170QDataStream &operator>>(QDataStream &in, QDate &date)-
2171{-
2172 if (in.version() < QDataStream::Qt_5_0
in.version() <...Stream::Qt_5_0Description
TRUEevaluated 250 times by 4 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QSettings
  • tst_QVariant
FALSEevaluated 491 times by 10 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
) {
250-491
2173 quint32 jd;-
2174 in >> jd;-
2175-
2176 date.jd = (jd != 0
jd != 0Description
TRUEevaluated 234 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QSettings
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QVariant
? jd : QDate::nullJd());
16-234
2177 }
executed 250 times by 4 tests: end of block
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QSettings
  • tst_QVariant
else {
250
2178 qint64 jd;-
2179 in >> jd;-
2180 date.jd = jd;-
2181 }
executed 491 times by 10 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
491
2182-
2183 return
executed 741 times by 10 tests: return in;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
in;
executed 741 times by 10 tests: return in;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
741
2184}-
2185QDataStream &operator<<(QDataStream &out, const QTime &time)-
2186{-
2187 if (out.version() >= QDataStream::Qt_4_0
out.version() ...Stream::Qt_4_0Description
TRUEevaluated 872 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
FALSEevaluated 73 times by 2 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDateTime
) {
73-872
2188 return
executed 872 times by 9 tests: return out << quint32(time.mds);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
out << quint32(time.mds);
executed 872 times by 9 tests: return out << quint32(time.mds);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
872
2189 } else {-
2190-
2191 return
executed 73 times by 2 tests: return out << quint32(time.isNull() ? 0 : time.mds);
Executed by:
  • tst_QDataStream
  • tst_QDateTime
out << quint32(time.isNull() ? 0 : time.mds);
executed 73 times by 2 tests: return out << quint32(time.isNull() ? 0 : time.mds);
Executed by:
  • tst_QDataStream
  • tst_QDateTime
73
2192 }-
2193}-
2194QDataStream &operator>>(QDataStream &in, QTime &time)-
2195{-
2196 quint32 ds;-
2197 in >> ds;-
2198 if (in.version() >= QDataStream::Qt_4_0
in.version() >...Stream::Qt_4_0Description
TRUEevaluated 870 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
FALSEevaluated 73 times by 2 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDateTime
) {
73-870
2199 time.mds = int(ds);-
2200 }
executed 870 times by 9 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
else {
870
2201-
2202 time.mds = (
(ds == 0)Description
TRUEevaluated 25 times by 2 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDateTime
FALSEevaluated 48 times by 1 test
Evaluated by:
  • tst_QDateTime
ds == 0)
(ds == 0)Description
TRUEevaluated 25 times by 2 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDateTime
FALSEevaluated 48 times by 1 test
Evaluated by:
  • tst_QDateTime
? QTime::NullTime : int(ds);
25-48
2203 }
executed 73 times by 2 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QDateTime
73
2204 return
executed 943 times by 9 tests: return in;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
in;
executed 943 times by 9 tests: return in;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
943
2205}-
2206QDataStream &operator<<(QDataStream &out, const QDateTime &dateTime)-
2207{-
2208 QPair<QDate, QTime> dateAndTime;-
2209-
2210 if (out.version() >= QDataStream::Qt_5_2
out.version() ...Stream::Qt_5_2Description
TRUEevaluated 325 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
FALSEevaluated 168 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
) {
168-325
2211-
2212-
2213 dateAndTime = dateTime.d->getDateTime();-
2214 out << dateAndTime << qint8(dateTime.timeSpec());-
2215 if (dateTime.timeSpec() == Qt::OffsetFromUTC
dateTime.timeS...:OffsetFromUTCDescription
TRUEevaluated 11 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QSettings
FALSEevaluated 314 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
)
11-314
2216 out << qint32(dateTime.offsetFromUtc());
executed 11 times by 3 tests: out << qint32(dateTime.offsetFromUtc());
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QSettings
11
2217-
2218 else if (dateTime.timeSpec() == Qt::TimeZone
dateTime.timeS...= Qt::TimeZoneDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 313 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
)
1-313
2219 out << dateTime.timeZone();
executed 1 time by 1 test: out << dateTime.timeZone();
Executed by:
  • tst_QDateTime
1
2220-
2221-
2222 }
executed 325 times by 9 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
else if (out.version() == QDataStream::Qt_5_0
out.version() ...Stream::Qt_5_0Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QVariant
FALSEevaluated 159 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
) {
9-325
2223-
2224-
2225-
2226-
2227-
2228 dateAndTime = (dateTime.isValid()
dateTime.isValid()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
? dateTime.toUTC() : dateTime).d->getDateTime();
1-8
2229 out << dateAndTime << qint8(dateTime.timeSpec());-
2230-
2231 }
executed 9 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QVariant
else if (out.version() >= QDataStream::Qt_4_0
out.version() ...Stream::Qt_4_0Description
TRUEevaluated 87 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
FALSEevaluated 72 times by 1 test
Evaluated by:
  • tst_QDateTime
) {
9-87
2232-
2233-
2234 dateAndTime = dateTime.d->getDateTime();-
2235 out << dateAndTime;-
2236 switch (dateTime.timeSpec()) {-
2237 case
executed 56 times by 1 test: case Qt::UTC:
Executed by:
  • tst_QDateTime
Qt::UTC:
executed 56 times by 1 test: case Qt::UTC:
Executed by:
  • tst_QDateTime
56
2238 out << (qint8)QDateTimePrivate::UTC;-
2239 break;
executed 56 times by 1 test: break;
Executed by:
  • tst_QDateTime
56
2240 case
executed 1 time by 1 test: case Qt::OffsetFromUTC:
Executed by:
  • tst_QNetworkDiskCache
Qt::OffsetFromUTC:
executed 1 time by 1 test: case Qt::OffsetFromUTC:
Executed by:
  • tst_QNetworkDiskCache
1
2241 out << (qint8)QDateTimePrivate::OffsetFromUTC;-
2242 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QNetworkDiskCache
1
2243 case
never executed: case Qt::TimeZone:
Qt::TimeZone:
never executed: case Qt::TimeZone:
0
2244 out << (qint8)QDateTimePrivate::TimeZone;-
2245 break;
never executed: break;
0
2246 case
executed 30 times by 3 tests: case Qt::LocalTime:
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
Qt::LocalTime:
executed 30 times by 3 tests: case Qt::LocalTime:
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
30
2247 out << (qint8)QDateTimePrivate::LocalUnknown;-
2248 break;
executed 30 times by 3 tests: break;
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
30
2249 }-
2250-
2251 }
executed 87 times by 3 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
else {
87
2252-
2253-
2254 dateAndTime = dateTime.d->getDateTime();-
2255 out << dateAndTime;-
2256-
2257 }
executed 72 times by 1 test: end of block
Executed by:
  • tst_QDateTime
72
2258-
2259 return
executed 493 times by 9 tests: return out;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
out;
executed 493 times by 9 tests: return out;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
493
2260}-
2261QDataStream &operator>>(QDataStream &in, QDateTime &dateTime)-
2262{-
2263 QDate dt;-
2264 QTime tm;-
2265 qint8 ts = 0;-
2266 Qt::TimeSpec spec = Qt::LocalTime;-
2267 qint32 offset = 0;-
2268-
2269 QTimeZone tz;-
2270-
2271-
2272 if (in.version() >= QDataStream::Qt_5_2
in.version() >...Stream::Qt_5_2Description
TRUEevaluated 303 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
FALSEevaluated 116 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
) {
116-303
2273-
2274-
2275 in >> dt >> tm >> ts;-
2276 spec = static_cast<Qt::TimeSpec>(ts);-
2277 if (spec == Qt::OffsetFromUTC
spec == Qt::OffsetFromUTCDescription
TRUEevaluated 11 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QSettings
FALSEevaluated 292 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
) {
11-292
2278 in >> offset;-
2279 dateTime = QDateTime(dt, tm, spec, offset);-
2280-
2281 }
executed 11 times by 3 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QSettings
else if (spec == Qt::TimeZone
spec == Qt::TimeZoneDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDateTime
FALSEevaluated 291 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
) {
1-291
2282 in >> tz;-
2283 dateTime = QDateTime(dt, tm, tz);-
2284-
2285 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QDateTime
else {
1
2286 dateTime = QDateTime(dt, tm, spec);-
2287 }
executed 291 times by 8 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QVariant
291
2288-
2289 } else if (in.version() == QDataStream::Qt_5_0
in.version() =...Stream::Qt_5_0Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QVariant
FALSEevaluated 110 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
) {
6-110
2290-
2291-
2292 in >> dt >> tm >> ts;-
2293 spec = static_cast<Qt::TimeSpec>(ts);-
2294 dateTime = QDateTime(dt, tm, Qt::UTC);-
2295 dateTime = dateTime.toTimeSpec(spec);-
2296-
2297 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QVariant
else if (in.version() >= QDataStream::Qt_4_0
in.version() >...Stream::Qt_4_0Description
TRUEevaluated 62 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
FALSEevaluated 48 times by 1 test
Evaluated by:
  • tst_QDateTime
) {
6-62
2298-
2299-
2300 in >> dt >> tm >> ts;-
2301 switch ((QDateTimePrivate::Spec)ts) {-
2302 case
executed 28 times by 1 test: case QDateTimePrivate::UTC:
Executed by:
  • tst_QDateTime
QDateTimePrivate::UTC:
executed 28 times by 1 test: case QDateTimePrivate::UTC:
Executed by:
  • tst_QDateTime
28
2303 spec = Qt::UTC;-
2304 break;
executed 28 times by 1 test: break;
Executed by:
  • tst_QDateTime
28
2305 case
executed 2 times by 1 test: case QDateTimePrivate::OffsetFromUTC:
Executed by:
  • tst_QNetworkDiskCache
QDateTimePrivate::OffsetFromUTC:
executed 2 times by 1 test: case QDateTimePrivate::OffsetFromUTC:
Executed by:
  • tst_QNetworkDiskCache
2
2306 spec = Qt::OffsetFromUTC;-
2307 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QNetworkDiskCache
2
2308 case
never executed: case QDateTimePrivate::TimeZone:
QDateTimePrivate::TimeZone:
never executed: case QDateTimePrivate::TimeZone:
0
2309 spec = Qt::TimeZone;-
2310-
2311-
2312-
2313 break;
never executed: break;
0
2314 case
executed 32 times by 3 tests: case QDateTimePrivate::LocalUnknown:
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
QDateTimePrivate::LocalUnknown:
executed 32 times by 3 tests: case QDateTimePrivate::LocalUnknown:
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
32
2315 case
never executed: case QDateTimePrivate::LocalStandard:
QDateTimePrivate::LocalStandard:
never executed: case QDateTimePrivate::LocalStandard:
0
2316 case
never executed: case QDateTimePrivate::LocalDST:
QDateTimePrivate::LocalDST:
never executed: case QDateTimePrivate::LocalDST:
0
2317 spec = Qt::LocalTime;-
2318 break;
executed 32 times by 3 tests: break;
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
32
2319 }-
2320 dateTime = QDateTime(dt, tm, spec, offset);-
2321-
2322 }
executed 62 times by 3 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QNetworkDiskCache
  • tst_QVariant
else {
62
2323-
2324-
2325 in >> dt >> tm;-
2326 dateTime = QDateTime(dt, tm, spec, offset);-
2327-
2328 }
executed 48 times by 1 test: end of block
Executed by:
  • tst_QDateTime
48
2329-
2330 return
executed 419 times by 9 tests: return in;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
in;
executed 419 times by 9 tests: return in;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QVariant
419
2331}-
2332-
2333-
2334-
2335-
2336-
2337-
2338-
2339QDebug operator<<(QDebug dbg, const QDate &date)-
2340{-
2341 QDebugStateSaver saver(dbg);-
2342 dbg.nospace() << "QDate(" << date.toString(Qt::ISODate) << ')';-
2343 return
executed 3 times by 2 tests: return dbg;
Executed by:
  • tst_QDate
  • tst_QVariant
dbg;
executed 3 times by 2 tests: return dbg;
Executed by:
  • tst_QDate
  • tst_QVariant
3
2344}-
2345-
2346QDebug operator<<(QDebug dbg, const QTime &time)-
2347{-
2348 QDebugStateSaver saver(dbg);-
2349 dbg.nospace() << "QTime(" << time.toString(([]() -> QString { enum { Size = sizeof(u"" "HH:mm:ss.zzz")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "HH:mm:ss.zzz" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QVariant
qstring_literal_temp;
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QVariant
}())) << ')';
1
2350 return
executed 1 time by 1 test: return dbg;
Executed by:
  • tst_QVariant
dbg;
executed 1 time by 1 test: return dbg;
Executed by:
  • tst_QVariant
1
2351}-
2352-
2353QDebug operator<<(QDebug dbg, const QDateTime &date)-
2354{-
2355 QDebugStateSaver saver(dbg);-
2356 const Qt::TimeSpec ts = date.timeSpec();-
2357 dbg.nospace() << "QDateTime(";-
2358 dbg.noquote() << date.toString(([]() -> QString { enum { Size = sizeof(u"" "yyyy-MM-dd HH:mm:ss.zzz t")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "yyyy-MM-dd HH:mm:ss.zzz t" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 2 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_QNoDebug
  • tst_QVariant
qstring_literal_temp;
executed 2 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_QNoDebug
  • tst_QVariant
}()))
2
2359 << ' ' << ts;-
2360 switch (ts) {-
2361 case
never executed: case Qt::UTC:
Qt::UTC:
never executed: case Qt::UTC:
0
2362 break;
never executed: break;
0
2363 case
never executed: case Qt::OffsetFromUTC:
Qt::OffsetFromUTC:
never executed: case Qt::OffsetFromUTC:
0
2364 dbg << ' ' << date.offsetFromUtc() << 's';-
2365 break;
never executed: break;
0
2366 case
never executed: case Qt::TimeZone:
Qt::TimeZone:
never executed: case Qt::TimeZone:
0
2367-
2368 dbg << ' ' << date.timeZone().id();-
2369-
2370 break;
never executed: break;
0
2371 case
executed 2 times by 2 tests: case Qt::LocalTime:
Executed by:
  • tst_QNoDebug
  • tst_QVariant
Qt::LocalTime:
executed 2 times by 2 tests: case Qt::LocalTime:
Executed by:
  • tst_QNoDebug
  • tst_QVariant
2
2372 break;
executed 2 times by 2 tests: break;
Executed by:
  • tst_QNoDebug
  • tst_QVariant
2
2373 }-
2374 return
executed 2 times by 2 tests: return dbg << ')';
Executed by:
  • tst_QNoDebug
  • tst_QVariant
dbg << ')';
executed 2 times by 2 tests: return dbg << ')';
Executed by:
  • tst_QNoDebug
  • tst_QVariant
2
2375}-
2376uint qHash(const QDateTime &key, uint seed)-
2377{-
2378-
2379-
2380-
2381-
2382 return
executed 16 times by 1 test: return qHash(key.toMSecsSinceEpoch(), seed);
Executed by:
  • tst_QDateTime
qHash(key.toMSecsSinceEpoch(), seed);
executed 16 times by 1 test: return qHash(key.toMSecsSinceEpoch(), seed);
Executed by:
  • tst_QDateTime
16
2383}-
2384-
2385-
2386-
2387-
2388-
2389-
2390-
2391uint qHash(const QDate &key, uint seed) noexcept-
2392{-
2393 return
executed 6 times by 1 test: return qHash(key.toJulianDay(), seed);
Executed by:
  • tst_QDate
qHash(key.toJulianDay(), seed);
executed 6 times by 1 test: return qHash(key.toJulianDay(), seed);
Executed by:
  • tst_QDate
6
2394}-
2395-
2396-
2397-
2398-
2399-
2400-
2401-
2402uint qHash(const QTime &key, uint seed) noexcept-
2403{-
2404 return
executed 4 times by 1 test: return qHash(key.msecsSinceStartOfDay(), seed);
Executed by:
  • tst_QTime
qHash(key.msecsSinceStartOfDay(), seed);
executed 4 times by 1 test: return qHash(key.msecsSinceStartOfDay(), seed);
Executed by:
  • tst_QTime
4
2405}-
2406-
2407-
Switch to Source codePreprocessed file

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