| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | enum { | - |
| 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 | | - |
| 27 | static 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 | returnexecuted 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 | } | - |
| 33 | static inline qint64 floordiv(qint64 a, int b) | - |
| 34 | { | - |
| 35 | returnexecuted 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| TRUE | evaluated 1327688 times by 2 tests | | FALSE | evaluated 93858667 times by 102 testsEvaluated 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 | | - |
| 38 | static inline int floordiv(int a, int b) | - |
| 39 | { | - |
| 40 | returnexecuted 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| TRUE | never evaluated | | FALSE | evaluated 136374482 times by 102 testsEvaluated 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 | | - |
| 43 | static inline qint64 julianDayFromDate(int year, int month, int day) | - |
| 44 | { | - |
| 45 | | - |
| 46 | if (year < 0| TRUE | evaluated 239374 times by 2 tests | | FALSE | evaluated 21048343 times by 102 testsEvaluated 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; year;executed 239374 times by 2 tests: ++year; | 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 | returnexecuted 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 | | - |
| 60 | struct ParsedDate | - |
| 61 | { | - |
| 62 | int year, month, day; | - |
| 63 | }; | - |
| 64 | | - |
| 65 | | - |
| 66 | __attribute__((noinline)) | - |
| 67 | static 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| TRUE | evaluated 715840 times by 5 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
| | FALSE | evaluated 14937258 times by 99 testsEvaluated 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 | returnexecuted 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 | | - |
| 98 | static const char monthDays[] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; | - |
| 99 | | - |
| 100 | | - |
| 101 | static const char qt_shortMonthNames[][4] = { | - |
| 102 | "Jan", "Feb", "Mar", "Apr", "May", "Jun", | - |
| 103 | "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; | - |
| 104 | | - |
| 105 | static int qt_monthNumberFromShortName(QStringRef shortName) | - |
| 106 | { | - |
| 107 | for (unsigned int i = 0; i < sizeof(qt_shortMonthNames) / sizeof(qt_shortMonthNames[0])| TRUE | evaluated 588 times by 4 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
- tst_QTime
| | FALSE | evaluated 25 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QTime
|
; ++i) { | 25-588 |
| 108 | if (shortName == QLatin1String(qt_shortMonthNames[i], 3)| TRUE | evaluated 90 times by 4 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
- tst_QTime
| | FALSE | evaluated 498 times by 4 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
- tst_QTime
|
) | 90-498 |
| 109 | returnexecuted 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 blockExecuted by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
- tst_QTime
| 498 |
| 111 | returnexecuted 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 | } | - |
| 113 | static int qt_monthNumberFromShortName(const QString &shortName) | - |
| 114 | { returnexecuted 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 | | - |
| 116 | static int fromShortMonthName(const QStringRef &monthName) | - |
| 117 | { | - |
| 118 | | - |
| 119 | int month = qt_monthNumberFromShortName(monthName); | - |
| 120 | if (month != -1| TRUE | evaluated 51 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
| | FALSE | evaluated 16 times by 2 tests |
) | 16-51 |
| 121 | returnexecuted 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| TRUE | evaluated 192 times by 2 tests | | FALSE | evaluated 16 times by 2 tests |
; ++i) { | 16-192 |
| 124 | if (monthName == QDate::shortMonthName(i)| TRUE | never evaluated | | FALSE | evaluated 192 times by 2 tests |
) | 0-192 |
| 125 | return never executed: return i; i;never executed: return i; | 0 |
| 126 | }executed 192 times by 2 tests: end of block | 192 |
| 127 | returnexecuted 16 times by 2 tests: return -1; -1;executed 16 times by 2 tests: return -1; | 16 |
| 128 | } | - |
| 129 | | - |
| 130 | | - |
| 131 | | - |
| 132 | struct ParsedRfcDateTime { | - |
| 133 | QDate date; | - |
| 134 | QTime time; | - |
| 135 | int utcOffset; | - |
| 136 | }; | - |
| 137 | | - |
| 138 | static 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); returnexecuted 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| TRUE | evaluated 33 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QTime
| | FALSE | evaluated 38 times by 3 testsEvaluated 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()| TRUE | evaluated 27 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QTime
| | FALSE | evaluated 6 times by 3 testsEvaluated 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 blockExecuted 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); returnexecuted 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| TRUE | evaluated 15 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QTime
| | FALSE | evaluated 23 times by 3 testsEvaluated 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()| TRUE | evaluated 12 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QTime
| | FALSE | evaluated 3 times by 3 testsEvaluated 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 blockExecuted by:- tst_QDate
- tst_QDateTime
- tst_QTime
| 15 |
| 166 | }executed 38 times by 3 tests: end of blockExecuted by:- tst_QDate
- tst_QDateTime
- tst_QTime
| 38 |
| 167 | | - |
| 168 | returnexecuted 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 | | - |
| 173 | static QString toOffsetString(Qt::DateFormat format, int offset) | - |
| 174 | { | - |
| 175 | returnexecuted 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 |
| 178 | | 96 |
| 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 | | - |
| 184 | static int fromOffsetString(const QStringRef &offsetString, bool *valid) | - |
| 185 | { | - |
| 186 | *valid = false; | - |
| 187 | | - |
| 188 | const int size = offsetString.size(); | - |
| 189 | if (size < 2| TRUE | never evaluated | | FALSE | evaluated 23 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
|
|| size > 6| TRUE | never evaluated | | FALSE | evaluated 23 times by 2 testsEvaluated 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('+')| TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
| | FALSE | evaluated 11 times by 1 test |
) | 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('-')| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 1 time by 1 test |
) | 1-10 |
| 200 | sign = -1;executed 10 times by 1 test: sign = -1; | 10 |
| 201 | else | - |
| 202 | returnexecuted 1 time by 1 test: return 0; 0;executed 1 time by 1 test: return 0; | 1 |
| 203 | | - |
| 204 | | - |
| 205 | QVector<QStringRef> parts = offsetString.mid(1).split(QLatin1Char(':')); | - |
| 206 | if (parts.count() == 1| TRUE | evaluated 13 times by 1 test | | FALSE | evaluated 9 times by 2 testsEvaluated 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 | 13 |
| 211 | | - |
| 212 | bool ok = false; | - |
| 213 | const int hour = parts.first().toInt(&ok); | - |
| 214 | if (!ok| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 20 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
|
) | 2-20 |
| 215 | returnexecuted 2 times by 1 test: return 0; 0;executed 2 times by 1 test: return 0; | 2 |
| 216 | | - |
| 217 | const int minute = (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 16 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
|
parts.at(1).isEmpty())| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 16 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
|
? 0 : parts.at(1).toInt(&ok); | 4-16 |
| 218 | if (!ok| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 19 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
|
|| minute < 0| TRUE | never evaluated | | FALSE | evaluated 19 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
|
|| minute > 59| TRUE | never evaluated | | FALSE | evaluated 19 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
|
) | 0-19 |
| 219 | returnexecuted 1 time by 1 test: return 0; 0;executed 1 time by 1 test: return 0; | 1 |
| 220 | | - |
| 221 | *valid = true; | - |
| 222 | returnexecuted 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 | } | - |
| 224 | QDate::QDate(int y, int m, int d) | - |
| 225 | { | - |
| 226 | setDate(y, m, d); | - |
| 227 | }executed 20734897 times by 102 tests: end of blockExecuted 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 |
| 228 | int QDate::year() const | - |
| 229 | { | - |
| 230 | if (isNull()| TRUE | evaluated 24 times by 2 tests | | FALSE | evaluated 621632 times by 41 testsEvaluated 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 | returnexecuted 24 times by 2 tests: return 0; 0;executed 24 times by 2 tests: return 0; | 24 |
| 232 | | - |
| 233 | returnexecuted 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 | } | - |
| 235 | int QDate::month() const | - |
| 236 | { | - |
| 237 | if (isNull()| TRUE | evaluated 24 times by 2 tests | | FALSE | evaluated 611326 times by 40 testsEvaluated 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 | returnexecuted 24 times by 2 tests: return 0; 0;executed 24 times by 2 tests: return 0; | 24 |
| 239 | | - |
| 240 | returnexecuted 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 | } | - |
| 242 | int QDate::day() const | - |
| 243 | { | - |
| 244 | if (isNull()| TRUE | evaluated 24 times by 2 tests | | FALSE | evaluated 647178 times by 39 testsEvaluated 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 | returnexecuted 24 times by 2 tests: return 0; 0;executed 24 times by 2 tests: return 0; | 24 |
| 246 | | - |
| 247 | returnexecuted 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 | } | - |
| 249 | int QDate::dayOfWeek() const | - |
| 250 | { | - |
| 251 | if (isNull()| TRUE | evaluated 77 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
| | FALSE | evaluated 39474 times by 17 testsEvaluated 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 | returnexecuted 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| TRUE | evaluated 39466 times by 17 testsEvaluated 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
| | FALSE | evaluated 8 times by 1 test |
) | 8-39466 |
| 255 | returnexecuted 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 | returnexecuted 8 times by 1 test: return ((jd + 1) % 7) + 7; ((jd + 1) % 7) + 7;executed 8 times by 1 test: return ((jd + 1) % 7) + 7; | 8 |
| 258 | } | - |
| 259 | int QDate::dayOfYear() const | - |
| 260 | { | - |
| 261 | if (isNull()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1907 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDate
|
) | 1-1907 |
| 262 | returnexecuted 1 time by 1 test: return 0; 0;executed 1 time by 1 test: return 0; | 1 |
| 263 | | - |
| 264 | returnexecuted 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 | } | - |
| 266 | int QDate::daysInMonth() const | - |
| 267 | { | - |
| 268 | if (isNull()| TRUE | evaluated 41 times by 2 testsEvaluated by:- tst_QDate
- tst_QDateTimeEdit
| | FALSE | evaluated 4510 times by 8 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QStyleSheetStyle
- tst_QTime
|
) | 41-4510 |
| 269 | returnexecuted 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| TRUE | evaluated 223 times by 7 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QStyleSheetStyle
| | FALSE | evaluated 4287 times by 8 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QStyleSheetStyle
- tst_QTime
|
&& isLeapYear(pd.year)| TRUE | evaluated 159 times by 7 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QStyleSheetStyle
| | FALSE | evaluated 64 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
|
) | 64-4287 |
| 273 | returnexecuted 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 | returnexecuted 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 | } | - |
| 277 | int QDate::daysInYear() const | - |
| 278 | { | - |
| 279 | if (isNull()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 4 times by 1 test |
) | 1-4 |
| 280 | returnexecuted 1 time by 1 test: return 0; 0;executed 1 time by 1 test: return 0; | 1 |
| 281 | | - |
| 282 | returnexecuted 4 times by 1 test: return isLeapYear(getDateFromJulianDay(jd).year) ? 366 : 365; isLeapYear(getDateFromJulianDay(jd).year)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2 times by 1 test |
? 366 : 365;executed 4 times by 1 test: return isLeapYear(getDateFromJulianDay(jd).year) ? 366 : 365; | 2-4 |
| 283 | } | - |
| 284 | int QDate::weekNumber(int *yearNumber) const | - |
| 285 | { | - |
| 286 | if (!isValid()| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 1894 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDate
|
) | 3-1894 |
| 287 | returnexecuted 3 times by 1 test: return 0; 0;executed 3 times by 1 test: return 0; | 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| TRUE | evaluated 172 times by 1 test | | FALSE | evaluated 1722 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDate
|
) { | 172-1722 |
| 296 | | - |
| 297 | --year; | - |
| 298 | week = (yday + 365 + (QDate::isLeapYear(year)| TRUE | evaluated 42 times by 1 test | | FALSE | evaluated 130 times by 1 test |
? 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 else if (week == 53| TRUE | evaluated 315 times by 2 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
| | FALSE | evaluated 1407 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDate
|
) { | 172-1407 |
| 301 | | - |
| 302 | int w = (yday - 365 - (QDate::isLeapYear(year)| TRUE | evaluated 96 times by 1 test | | FALSE | evaluated 219 times by 2 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
|
? 1 : 0) - wday + 10) / 7; | 96-219 |
| 303 | if (w > 0| TRUE | evaluated 173 times by 2 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
| | FALSE | evaluated 142 times by 1 test |
) { | 142-173 |
| 304 | ++year; | - |
| 305 | week = w; | - |
| 306 | }executed 173 times by 2 tests: end of blockExecuted 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 blockExecuted by:- tst_QCalendarWidget
- tst_QDate
| 315 |
| 309 | | - |
| 310 | if (yearNumber != 0| TRUE | evaluated 1600 times by 1 test | | FALSE | evaluated 294 times by 2 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
|
) | 294-1600 |
| 311 | *executed 1600 times by 1 test: *yearNumber = year; yearNumber = year;executed 1600 times by 1 test: *yearNumber = year; | 1600 |
| 312 | returnexecuted 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 | } | - |
| 314 | QString QDate::shortMonthName(int month, QDate::MonthNameType type) | - |
| 315 | { | - |
| 316 | if (month >= 1| TRUE | evaluated 658 times by 4 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_qmakelib
| | FALSE | evaluated 2 times by 1 test |
|| month <= 12| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) { | 0-658 |
| 317 | switch (type) { | - |
| 318 | caseexecuted 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 | returnexecuted 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 | caseexecuted 14 times by 1 test: case QDate::StandaloneFormat: QDate::StandaloneFormat:executed 14 times by 1 test: case QDate::StandaloneFormat: | 14 |
| 321 | returnexecuted 14 times by 1 test: return QLocale::system().standaloneMonthName(month, QLocale::ShortFormat); QLocale::system().standaloneMonthName(month, QLocale::ShortFormat);executed 14 times by 1 test: return QLocale::system().standaloneMonthName(month, QLocale::ShortFormat); | 14 |
| 322 | } | - |
| 323 | } never executed: end of block | 0 |
| 324 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
| 325 | } | - |
| 326 | QString QDate::longMonthName(int month, MonthNameType type) | - |
| 327 | { | - |
| 328 | if (month >= 1| TRUE | evaluated 38 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
| | FALSE | evaluated 2 times by 1 test |
&& month <= 12| TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
| | FALSE | evaluated 2 times by 1 test |
) { | 2-38 |
| 329 | switch (type) { | - |
| 330 | caseexecuted 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 | returnexecuted 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 | caseexecuted 12 times by 1 test: case QDate::StandaloneFormat: QDate::StandaloneFormat:executed 12 times by 1 test: case QDate::StandaloneFormat: | 12 |
| 333 | returnexecuted 12 times by 1 test: return QLocale::system().standaloneMonthName(month, QLocale::LongFormat); QLocale::system().standaloneMonthName(month, QLocale::LongFormat);executed 12 times by 1 test: return QLocale::system().standaloneMonthName(month, QLocale::LongFormat); | 12 |
| 334 | } | - |
| 335 | } never executed: end of block | 0 |
| 336 | returnexecuted 4 times by 1 test: return QString(); QString();executed 4 times by 1 test: return QString(); | 4 |
| 337 | } | - |
| 338 | QString QDate::shortDayName(int weekday, MonthNameType type) | - |
| 339 | { | - |
| 340 | if (weekday >= 1| TRUE | evaluated 456 times by 4 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_qmakelib
| | FALSE | evaluated 2 times by 1 test |
&& weekday <= 7| TRUE | evaluated 454 times by 4 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_qmakelib
| | FALSE | evaluated 2 times by 1 test |
) { | 2-456 |
| 341 | switch (type) { | - |
| 342 | caseexecuted 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 | returnexecuted 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 | caseexecuted 7 times by 1 test: case QDate::StandaloneFormat: QDate::StandaloneFormat:executed 7 times by 1 test: case QDate::StandaloneFormat: | 7 |
| 345 | returnexecuted 7 times by 1 test: return QLocale::system().standaloneDayName(weekday, QLocale::ShortFormat); QLocale::system().standaloneDayName(weekday, QLocale::ShortFormat);executed 7 times by 1 test: return QLocale::system().standaloneDayName(weekday, QLocale::ShortFormat); | 7 |
| 346 | } | - |
| 347 | } never executed: end of block | 0 |
| 348 | returnexecuted 4 times by 1 test: return QString(); QString();executed 4 times by 1 test: return QString(); | 4 |
| 349 | } | - |
| 350 | QString QDate::longDayName(int weekday, MonthNameType type) | - |
| 351 | { | - |
| 352 | if (weekday >= 1| TRUE | evaluated 23 times by 1 test | | FALSE | evaluated 2 times by 1 test |
&& weekday <= 7| TRUE | evaluated 21 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) { | 2-23 |
| 353 | switch (type) { | - |
| 354 | caseexecuted 14 times by 1 test: case QDate::DateFormat: QDate::DateFormat:executed 14 times by 1 test: case QDate::DateFormat: | 14 |
| 355 | returnexecuted 14 times by 1 test: return QLocale::system().dayName(weekday, QLocale::LongFormat); QLocale::system().dayName(weekday, QLocale::LongFormat);executed 14 times by 1 test: return QLocale::system().dayName(weekday, QLocale::LongFormat); | 14 |
| 356 | caseexecuted 7 times by 1 test: case QDate::StandaloneFormat: QDate::StandaloneFormat:executed 7 times by 1 test: case QDate::StandaloneFormat: | 7 |
| 357 | returnexecuted 7 times by 1 test: return QLocale::system().standaloneDayName(weekday, QLocale::LongFormat); QLocale::system().standaloneDayName(weekday, QLocale::LongFormat);executed 7 times by 1 test: return QLocale::system().standaloneDayName(weekday, QLocale::LongFormat); | 7 |
| 358 | } | - |
| 359 | } never executed: end of block | 0 |
| 360 | returnexecuted 4 times by 1 test: return QString(); QString();executed 4 times by 1 test: return QString(); | 4 |
| 361 | } | - |
| 362 | | - |
| 363 | | - |
| 364 | | - |
| 365 | | - |
| 366 | | - |
| 367 | static QString toStringTextDate(QDate date) | - |
| 368 | { | - |
| 369 | const ParsedDate pd = getDateFromJulianDay(date.toJulianDay()); | - |
| 370 | static const QLatin1Char sp(' '); | - |
| 371 | returnexecuted 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); date.shortDayName(date.dayOfWeek()) + spexecuted 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); | 2 |
| 372 | + date.shortMonthName(pd.month) + spexecuted 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); | 2 |
| 373 | + QString::number(pd.day) + spexecuted 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); | 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); | 2 |
| 375 | } | - |
| 376 | | - |
| 377 | | - |
| 378 | static QString toStringIsoDate(qint64 jd) | - |
| 379 | { | - |
| 380 | const ParsedDate pd = getDateFromJulianDay(jd); | - |
| 381 | if (pd.year >= 0| TRUE | evaluated 36 times by 5 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
- tst_QSqlTableModel
- tst_QVariant
| | FALSE | evaluated 3 times by 2 tests |
&& pd.year <= 9999| TRUE | evaluated 36 times by 5 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
- tst_QSqlTableModel
- tst_QVariant
| | FALSE | never evaluated |
) | 0-36 |
| 382 | returnexecuted 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 | returnexecuted 3 times by 2 tests: return QString(); QString();executed 3 times by 2 tests: return QString(); | 3 |
| 385 | } | - |
| 386 | QString QDate::toString(Qt::DateFormat format) const | - |
| 387 | { | - |
| 388 | if (!isValid()| TRUE | evaluated 2 times by 2 tests | | FALSE | evaluated 98 times by 5 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
- tst_QSqlTableModel
- tst_QVariant
|
) | 2-98 |
| 389 | returnexecuted 2 times by 2 tests: return QString(); QString();executed 2 times by 2 tests: return QString(); | 2 |
| 390 | | - |
| 391 | switch (format) { | - |
| 392 | case never executed: case Qt::SystemLocaleDate: Qt::SystemLocaleDate:never executed: case Qt::SystemLocaleDate: | 0 |
| 393 | caseexecuted 14 times by 1 test: case Qt::SystemLocaleShortDate: Qt::SystemLocaleShortDate:executed 14 times by 1 test: case Qt::SystemLocaleShortDate: | 14 |
| 394 | returnexecuted 14 times by 1 test: return QLocale::system().toString(*this, QLocale::ShortFormat); QLocale::system().toString(*this, QLocale::ShortFormat);executed 14 times by 1 test: return QLocale::system().toString(*this, QLocale::ShortFormat); | 14 |
| 395 | caseexecuted 14 times by 1 test: case Qt::SystemLocaleLongDate: Qt::SystemLocaleLongDate:executed 14 times by 1 test: case Qt::SystemLocaleLongDate: | 14 |
| 396 | returnexecuted 14 times by 1 test: return QLocale::system().toString(*this, QLocale::LongFormat); QLocale::system().toString(*this, QLocale::LongFormat);executed 14 times by 1 test: return QLocale::system().toString(*this, QLocale::LongFormat); | 14 |
| 397 | case never executed: case Qt::LocaleDate: Qt::LocaleDate:never executed: case Qt::LocaleDate: | 0 |
| 398 | caseexecuted 14 times by 1 test: case Qt::DefaultLocaleShortDate: Qt::DefaultLocaleShortDate:executed 14 times by 1 test: case Qt::DefaultLocaleShortDate: | 14 |
| 399 | returnexecuted 14 times by 1 test: return QLocale().toString(*this, QLocale::ShortFormat); QLocale().toString(*this, QLocale::ShortFormat);executed 14 times by 1 test: return QLocale().toString(*this, QLocale::ShortFormat); | 14 |
| 400 | caseexecuted 14 times by 1 test: case Qt::DefaultLocaleLongDate: Qt::DefaultLocaleLongDate:executed 14 times by 1 test: case Qt::DefaultLocaleLongDate: | 14 |
| 401 | returnexecuted 14 times by 1 test: return QLocale().toString(*this, QLocale::LongFormat); QLocale().toString(*this, QLocale::LongFormat);executed 14 times by 1 test: return QLocale().toString(*this, QLocale::LongFormat); | 14 |
| 402 | caseexecuted 1 time by 1 test: case Qt::RFC2822Date: Qt::RFC2822Date:executed 1 time by 1 test: case Qt::RFC2822Date: | 1 |
| 403 | returnexecuted 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; }())); 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); returnexecuted 1 time by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 1 time by 1 test: return qstring_literal_temp; }()));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; }())); | 1 |
| 404 | default never executed: default: :never executed: default: | 0 |
| 405 | | - |
| 406 | caseexecuted 2 times by 1 test: case Qt::TextDate: Qt::TextDate:executed 2 times by 1 test: case Qt::TextDate: | 2 |
| 407 | returnexecuted 2 times by 1 test: return toStringTextDate(*this); toStringTextDate(*this);executed 2 times by 1 test: return toStringTextDate(*this); | 2 |
| 408 | | - |
| 409 | caseexecuted 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 | returnexecuted 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 | } | - |
| 413 | QString QDate::toString(const QString& format) const | - |
| 414 | { | - |
| 415 | returnexecuted 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 | } | - |
| 417 | bool QDate::setDate(int year, int month, int day) | - |
| 418 | { | - |
| 419 | if (isValid(year, month, day)| TRUE | evaluated 21296277 times by 102 testsEvaluated 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
- ...
| | FALSE | evaluated 11380 times by 6 testsEvaluated 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 | returnexecuted 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 | } | - |
| 426 | void QDate::getDate(int *year, int *month, int *day) | - |
| 427 | { | - |
| 428 | ParsedDate pd = { 0, 0, 0 }; | - |
| 429 | if (isValid()| TRUE | evaluated 13766956 times by 97 testsEvaluated 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
- ...
| | FALSE | evaluated 3 times by 2 tests |
) | 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| TRUE | evaluated 13767590 times by 97 testsEvaluated 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
- ...
| | FALSE | evaluated 3 times by 1 test |
) | 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| TRUE | evaluated 13768119 times by 97 testsEvaluated 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
- ...
| | FALSE | evaluated 3 times by 1 test |
) | 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| TRUE | evaluated 13767049 times by 97 testsEvaluated 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
- ...
| | FALSE | evaluated 3 times by 1 test |
) | 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 blockExecuted 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 |
| 439 | QDate QDate::addDays(qint64 ndays) const | - |
| 440 | { | - |
| 441 | if (isNull()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 630950 times by 14 testsEvaluated 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 | returnexecuted 1 time by 1 test: return QDate(); QDate();executed 1 time by 1 test: return QDate(); | 1 |
| 443 | | - |
| 444 | | - |
| 445 | | - |
| 446 | returnexecuted 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 | } | - |
| 448 | QDate QDate::addMonths(int nmonths) const | - |
| 449 | { | - |
| 450 | if (!isValid()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 172 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
|
) | 1-172 |
| 451 | returnexecuted 1 time by 1 test: return QDate(); QDate();executed 1 time by 1 test: return QDate(); | 1 |
| 452 | if (!nmonths| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 168 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
|
) | 4-168 |
| 453 | returnexecuted 4 times by 1 test: return *this; *this;executed 4 times by 1 test: return *this; | 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| TRUE | evaluated 188 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
| | FALSE | evaluated 168 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
|
) { | 168-188 |
| 467 | if (nmonths < 0| TRUE | evaluated 97 times by 3 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
| | FALSE | evaluated 91 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
|
&& nmonths + 12 <= 0| TRUE | evaluated 15 times by 2 tests | | FALSE | evaluated 82 times by 3 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
|
) { | 15-97 |
| 468 | y--; | - |
| 469 | nmonths+=12; | - |
| 470 | }executed 15 times by 2 tests: end of block else if (nmonths < 0| TRUE | evaluated 82 times by 3 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
| | FALSE | evaluated 91 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
|
) { | 15-91 |
| 471 | m+= nmonths; | - |
| 472 | nmonths = 0; | - |
| 473 | if (m <= 0| TRUE | evaluated 49 times by 3 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
| | FALSE | evaluated 33 times by 3 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
|
) { | 33-49 |
| 474 | --y; | - |
| 475 | m += 12; | - |
| 476 | }executed 49 times by 3 tests: end of blockExecuted by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
| 49 |
| 477 | }executed 82 times by 3 tests: end of blockExecuted by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
else if (nmonths - 12 >= 0| TRUE | evaluated 16 times by 2 tests | | FALSE | evaluated 75 times by 4 testsEvaluated 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 else if (m == 12| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 73 times by 4 testsEvaluated 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 else { | 2 |
| 484 | m += nmonths; | - |
| 485 | nmonths = 0; | - |
| 486 | if (m > 12| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 72 times by 4 testsEvaluated 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 | 1 |
| 490 | }executed 73 times by 4 tests: end of blockExecuted by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
| 73 |
| 491 | } | - |
| 492 | | - |
| 493 | | - |
| 494 | if ((old_y > 0| TRUE | evaluated 165 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
| | FALSE | evaluated 3 times by 1 test |
&& y <= 0| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 163 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
|
) || | 2-165 |
| 495 | (old_y < 0| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 163 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
|
&& y >= 0| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
)) | 1-163 |
| 496 | | - |
| 497 | y += increasing| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2 times by 1 test |
? +1 : -1;executed 4 times by 1 test: y += increasing ? +1 : -1; | 2-4 |
| 498 | | - |
| 499 | returnexecuted 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 | } | - |
| 501 | QDate QDate::addYears(int nyears) const | - |
| 502 | { | - |
| 503 | if (!isValid()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 120 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
|
) | 1-120 |
| 504 | returnexecuted 1 time by 1 test: return QDate(); QDate();executed 1 time by 1 test: return 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| TRUE | evaluated 99 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
| | FALSE | evaluated 21 times by 2 tests |
&& pd.year <= 0| TRUE | evaluated 8 times by 2 tests | | FALSE | evaluated 91 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
|
) || | 8-99 |
| 513 | (old_y < 0| TRUE | evaluated 21 times by 2 tests | | FALSE | evaluated 91 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
|
&& pd.year >= 0| TRUE | evaluated 8 times by 2 tests | | FALSE | evaluated 13 times by 2 tests |
)) | 8-91 |
| 514 | | - |
| 515 | pd.year += nyears > 0| TRUE | evaluated 8 times by 2 tests | | FALSE | evaluated 8 times by 2 tests |
? +1 : -1;executed 16 times by 2 tests: pd.year += nyears > 0 ? +1 : -1; | 8-16 |
| 516 | | - |
| 517 | returnexecuted 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 | } | - |
| 519 | qint64 QDate::daysTo(const QDate &d) const | - |
| 520 | { | - |
| 521 | if (isNull()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 18656 times by 14 testsEvaluated 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()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 18655 times by 14 testsEvaluated 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 | returnexecuted 2 times by 1 test: return 0; 0;executed 2 times by 1 test: return 0; | 2 |
| 523 | | - |
| 524 | | - |
| 525 | returnexecuted 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 | } | - |
| 527 | QDate QDate::fromString(const QString& string, Qt::DateFormat format) | - |
| 528 | { | - |
| 529 | if (string.isEmpty()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 114 times by 5 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
) | 2-114 |
| 530 | returnexecuted 2 times by 1 test: return QDate(); QDate();executed 2 times by 1 test: return 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 | caseexecuted 21 times by 1 test: case Qt::RFC2822Date: Qt::RFC2822Date:executed 21 times by 1 test: case Qt::RFC2822Date: | 21 |
| 544 | returnexecuted 21 times by 1 test: return rfcDateImpl(string).date; rfcDateImpl(string).date;executed 21 times by 1 test: return rfcDateImpl(string).date; | 21 |
| 545 | default never executed: default: :never executed: default: | 0 |
| 546 | | - |
| 547 | caseexecuted 14 times by 1 test: case Qt::TextDate: Qt::TextDate:executed 14 times by 1 test: case Qt::TextDate: { | 14 |
| 548 | QVector<QStringRef> parts = string.splitRef(QLatin1Char(' '), QString::SkipEmptyParts); | - |
| 549 | | - |
| 550 | if (parts.count() != 4| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 13 times by 1 test |
) | 1-13 |
| 551 | returnexecuted 1 time by 1 test: return QDate(); QDate();executed 1 time by 1 test: return QDate(); | 1 |
| 552 | | - |
| 553 | QStringRef monthName = parts.at(1); | - |
| 554 | const int month = fromShortMonthName(monthName); | - |
| 555 | if (month == -1| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 12 times by 1 test |
) { | 1-12 |
| 556 | | - |
| 557 | returnexecuted 1 time by 1 test: return QDate(); QDate();executed 1 time by 1 test: return QDate(); | 1 |
| 558 | } | - |
| 559 | | - |
| 560 | bool ok = false; | - |
| 561 | int year = parts.at(3).toInt(&ok); | - |
| 562 | if (!ok| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 11 times by 1 test |
) | 1-11 |
| 563 | returnexecuted 1 time by 1 test: return QDate(); QDate();executed 1 time by 1 test: return QDate(); | 1 |
| 564 | | - |
| 565 | returnexecuted 11 times by 1 test: return QDate(year, month, parts.at(2).toInt()); QDate(year, month, parts.at(2).toInt());executed 11 times by 1 test: return QDate(year, month, parts.at(2).toInt()); | 11 |
| 566 | } | - |
| 567 | | - |
| 568 | caseexecuted 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| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 78 times by 5 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
|| string.at(4).isDigit()| TRUE | evaluated 6 times by 2 tests | | FALSE | evaluated 72 times by 5 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
|| string.at(7).isDigit()| TRUE | never evaluated | | FALSE | evaluated 72 times by 5 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
| 0-78 |
| 571 | || (string.size() > 10| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 69 times by 5 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
&& string.at(10).isDigit()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2 times by 1 test |
)) { | 1-69 |
| 572 | returnexecuted 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| TRUE | evaluated 4 times by 2 tests | | FALSE | evaluated 67 times by 5 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
|| year > 9999| TRUE | never evaluated | | FALSE | evaluated 67 times by 5 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
) | 0-67 |
| 576 | returnexecuted 4 times by 2 tests: return QDate(); QDate();executed 4 times by 2 tests: return QDate(); | 4 |
| 577 | returnexecuted 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 | } | - |
| 582 | QDate 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)| TRUE | evaluated 44 times by 1 test | | FALSE | never evaluated |
) | 0-44 |
| 588 | dt.fromString(string, &date, 0);executed 44 times by 1 test: dt.fromString(string, &date, 0); | 44 |
| 589 | | - |
| 590 | | - |
| 591 | | - |
| 592 | | - |
| 593 | returnexecuted 44 times by 1 test: return date; date;executed 44 times by 1 test: return date; | 44 |
| 594 | } | - |
| 595 | bool QDate::isValid(int year, int month, int day) | - |
| 596 | { | - |
| 597 | | - |
| 598 | if (year == 0| TRUE | evaluated 143 times by 4 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QTime
| | FALSE | evaluated 21284773 times by 102 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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| TRUE | evaluated 21316474 times by 102 testsEvaluated 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
- ...
| | FALSE | evaluated 4 times by 1 test |
&& month > 0| TRUE | evaluated 21306496 times by 102 testsEvaluated 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
- ...
| | FALSE | evaluated 83 times by 4 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QTime
|
&& month <= 12| TRUE | evaluated 21316384 times by 102 testsEvaluated 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
- ...
| | FALSE | evaluated 7 times by 3 testsEvaluated 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]| TRUE | evaluated 21290952 times by 102 testsEvaluated 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
- ...
| | FALSE | evaluated 15577 times by 6 testsEvaluated by:- tst_QCalendarWidget
- tst_QDBusMarshall
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNetworkCookie
|
|| (day == 29| TRUE | evaluated 15441 times by 5 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNetworkCookie
| | FALSE | evaluated 136 times by 5 testsEvaluated by:- tst_QDBusMarshall
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNetworkCookie
|
&& month == 2| TRUE | evaluated 15441 times by 5 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNetworkCookie
| | FALSE | never evaluated |
&& isLeapYear(year)| TRUE | evaluated 4286 times by 5 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNetworkCookie
| | FALSE | evaluated 11155 times by 2 testsEvaluated 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 | } | - |
| 604 | bool QDate::isLeapYear(int y) | - |
| 605 | { | - |
| 606 | | - |
| 607 | if ( y < 1| TRUE | evaluated 9596 times by 1 test | | FALSE | evaluated 27921 times by 9 testsEvaluated 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; y;executed 9596 times by 1 test: ++y; | 9596 |
| 609 | | - |
| 610 | returnexecuted 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| TRUE | evaluated 10065 times by 9 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QNetworkCookie
- tst_QStyleSheetStyle
- tst_QTimeZone
| | FALSE | evaluated 27452 times by 6 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNetworkCookie
- tst_QTimeZone
|
&& y % 100 != 0| TRUE | evaluated 9270 times by 4 testsEvaluated by:- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QNetworkCookie
| | FALSE | evaluated 795 times by 8 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QStyleSheetStyle
- tst_QTimeZone
|
) || y % 400 == 0| TRUE | evaluated 493 times by 7 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QStyleSheetStyle
| | FALSE | evaluated 27754 times by 6 testsEvaluated 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 | } | - |
| 612 | QTime::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 blockExecuted 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 |
| 616 | bool QTime::isValid() const | - |
| 617 | { | - |
| 618 | returnexecuted 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| TRUE | evaluated 82722004 times by 102 testsEvaluated 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
- ...
| | FALSE | evaluated 2060 times by 20 testsEvaluated 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| TRUE | evaluated 82704401 times by 102 testsEvaluated 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
- ...
| | FALSE | evaluated 101 times by 2 tests |
;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 | } | - |
| 620 | int QTime::hour() const | - |
| 621 | { | - |
| 622 | if (!isValid()| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 13783783 times by 99 testsEvaluated 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 | returnexecuted 4 times by 1 test: return -1; -1;executed 4 times by 1 test: return -1; | 4 |
| 624 | | - |
| 625 | returnexecuted 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 | } | - |
| 627 | int QTime::minute() const | - |
| 628 | { | - |
| 629 | if (!isValid()| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 13779516 times by 99 testsEvaluated 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 | returnexecuted 4 times by 1 test: return -1; -1;executed 4 times by 1 test: return -1; | 4 |
| 631 | | - |
| 632 | returnexecuted 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 | } | - |
| 634 | int QTime::second() const | - |
| 635 | { | - |
| 636 | if (!isValid()| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 13772434 times by 99 testsEvaluated 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 | returnexecuted 4 times by 1 test: return -1; -1;executed 4 times by 1 test: return -1; | 4 |
| 638 | | - |
| 639 | returnexecuted 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 | } | - |
| 641 | int QTime::msec() const | - |
| 642 | { | - |
| 643 | if (!isValid()| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 13772830 times by 99 testsEvaluated 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 | returnexecuted 3 times by 1 test: return -1; -1;executed 3 times by 1 test: return -1; | 3 |
| 645 | | - |
| 646 | returnexecuted 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 | } | - |
| 648 | QString QTime::toString(Qt::DateFormat format) const | - |
| 649 | { | - |
| 650 | if (!isValid()| TRUE | never evaluated | | FALSE | evaluated 486 times by 8 testsEvaluated 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 | caseexecuted 2 times by 1 test: case Qt::SystemLocaleShortDate: Qt::SystemLocaleShortDate:executed 2 times by 1 test: case Qt::SystemLocaleShortDate: | 2 |
| 656 | returnexecuted 2 times by 1 test: return QLocale::system().toString(*this, QLocale::ShortFormat); QLocale::system().toString(*this, QLocale::ShortFormat);executed 2 times by 1 test: return QLocale::system().toString(*this, QLocale::ShortFormat); | 2 |
| 657 | caseexecuted 2 times by 1 test: case Qt::SystemLocaleLongDate: Qt::SystemLocaleLongDate:executed 2 times by 1 test: case Qt::SystemLocaleLongDate: | 2 |
| 658 | returnexecuted 2 times by 1 test: return QLocale::system().toString(*this, QLocale::LongFormat); QLocale::system().toString(*this, QLocale::LongFormat);executed 2 times by 1 test: return QLocale::system().toString(*this, QLocale::LongFormat); | 2 |
| 659 | case never executed: case Qt::LocaleDate: Qt::LocaleDate:never executed: case Qt::LocaleDate: | 0 |
| 660 | caseexecuted 2 times by 1 test: case Qt::DefaultLocaleShortDate: Qt::DefaultLocaleShortDate:executed 2 times by 1 test: case Qt::DefaultLocaleShortDate: | 2 |
| 661 | returnexecuted 2 times by 1 test: return QLocale().toString(*this, QLocale::ShortFormat); QLocale().toString(*this, QLocale::ShortFormat);executed 2 times by 1 test: return QLocale().toString(*this, QLocale::ShortFormat); | 2 |
| 662 | caseexecuted 2 times by 1 test: case Qt::DefaultLocaleLongDate: Qt::DefaultLocaleLongDate:executed 2 times by 1 test: case Qt::DefaultLocaleLongDate: | 2 |
| 663 | returnexecuted 2 times by 1 test: return QLocale().toString(*this, QLocale::LongFormat); QLocale().toString(*this, QLocale::LongFormat);executed 2 times by 1 test: return QLocale().toString(*this, QLocale::LongFormat); | 2 |
| 664 | caseexecuted 1 time by 1 test: case Qt::RFC2822Date: Qt::RFC2822Date:executed 1 time by 1 test: case Qt::RFC2822Date: | 1 |
| 665 | caseexecuted 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 | caseexecuted 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 | returnexecuted 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 | } | - |
| 671 | QString QTime::toString(const QString& format) const | - |
| 672 | { | - |
| 673 | returnexecuted 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 | } | - |
| 675 | bool QTime::setHMS(int h, int m, int s, int ms) | - |
| 676 | { | - |
| 677 | | - |
| 678 | | - |
| 679 | | - |
| 680 | if (!isValid(h,m,s,ms)| TRUE | evaluated 246 times by 5 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QFtp
- tst_QNetworkCookie
- tst_QTime
| | FALSE | evaluated 20673661 times by 103 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | } | - |
| 687 | QTime QTime::addSecs(int s) const | - |
| 688 | { | - |
| 689 | s %= SECS_PER_DAY; | - |
| 690 | returnexecuted 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 | } | - |
| 692 | int QTime::secsTo(const QTime &t) const | - |
| 693 | { | - |
| 694 | if (!isValid()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 9 times by 1 test |
|| !t.isValid()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 8 times by 1 test |
) | 1-9 |
| 695 | returnexecuted 3 times by 1 test: return 0; 0;executed 3 times by 1 test: return 0; | 3 |
| 696 | | - |
| 697 | | - |
| 698 | int ourSeconds = ds() / 1000; | - |
| 699 | int theirSeconds = t.ds() / 1000; | - |
| 700 | returnexecuted 8 times by 1 test: return theirSeconds - ourSeconds; theirSeconds - ourSeconds;executed 8 times by 1 test: return theirSeconds - ourSeconds; | 8 |
| 701 | } | - |
| 702 | QTime QTime::addMSecs(int ms) const | - |
| 703 | { | - |
| 704 | QTime t; | - |
| 705 | if (isValid()| TRUE | evaluated 214 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QItemDelegate
- tst_QNetworkCookie
- tst_QTime
| | FALSE | evaluated 1 time by 1 test |
) { | 1-214 |
| 706 | if (ms < 0| TRUE | evaluated 40 times by 3 testsEvaluated by:- tst_QDateTime
- tst_QNetworkCookie
- tst_QTime
| | FALSE | evaluated 174 times by 4 testsEvaluated 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 blockExecuted 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 blockExecuted by:- tst_QDateTime
- tst_QItemDelegate
- tst_QNetworkCookie
- tst_QTime
| 174 |
| 713 | } | - |
| 714 | | - |
| 715 | | - |
| 716 | | - |
| 717 | | - |
| 718 | returnexecuted 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 | } | - |
| 720 | int QTime::msecsTo(const QTime &t) const | - |
| 721 | { | - |
| 722 | if (!isValid()| TRUE | evaluated 5 times by 3 testsEvaluated by:- tst_QTextStream
- tst_QThreadPool
- tst_QTime
| | FALSE | evaluated 6848969 times by 33 testsEvaluated 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()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 6847671 times by 33 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | } | - |
| 732 | static QTime fromIsoTimeString(const QStringRef &string, Qt::DateFormat format, bool *isMidnight24) | - |
| 733 | { | - |
| 734 | if (isMidnight24| TRUE | evaluated 57 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
| | FALSE | evaluated 30 times by 2 tests |
) | 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| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 86 times by 5 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QTime
- tst_QVariant
|
) | 1-86 |
| 739 | returnexecuted 1 time by 1 test: return QTime(); QTime();executed 1 time by 1 test: return QTime(); | 1 |
| 740 | | - |
| 741 | bool ok = false; | - |
| 742 | int hour = string.mid(0, 2).toInt(&ok); | - |
| 743 | if (!ok| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 85 times by 5 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QTime
- tst_QVariant
|
) | 1-85 |
| 744 | returnexecuted 1 time by 1 test: return QTime(); QTime();executed 1 time by 1 test: return QTime(); | 1 |
| 745 | const int minute = string.mid(3, 2).toInt(&ok); | - |
| 746 | if (!ok| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 83 times by 5 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QTime
- tst_QVariant
|
) | 2-83 |
| 747 | returnexecuted 2 times by 1 test: return QTime(); QTime();executed 2 times by 1 test: return QTime(); | 2 |
| 748 | int second = 0; | - |
| 749 | int msec = 0; | - |
| 750 | | - |
| 751 | if (size == 5| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 77 times by 5 testsEvaluated 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 else if (string.at(5) == QLatin1Char(',')| TRUE | evaluated 5 times by 2 tests | | FALSE | evaluated 72 times by 5 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QTime
- tst_QVariant
|
|| string.at(5) == QLatin1Char('.')| TRUE | evaluated 4 times by 2 tests | | FALSE | evaluated 68 times by 5 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QTime
- tst_QVariant
|
) { | 4-72 |
| 756 | if (format == Qt::TextDate| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 8 times by 2 tests |
) | 1-8 |
| 757 | returnexecuted 1 time by 1 test: return QTime(); QTime();executed 1 time by 1 test: return QTime(); | 1 |
| 758 | const QStringRef minuteFractionStr = string.mid(6, 5); | - |
| 759 | const long minuteFractionInt = minuteFractionStr.toLong(&ok); | - |
| 760 | if (!ok| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 7 times by 2 tests |
) | 1-7 |
| 761 | returnexecuted 1 time by 1 test: return QTime(); QTime();executed 1 time by 1 test: return 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 else { | 7 |
| 770 | | - |
| 771 | second = string.mid(6, 2).toInt(&ok); | - |
| 772 | if (!ok| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 66 times by 5 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QTime
- tst_QVariant
|
) | 2-66 |
| 773 | returnexecuted 2 times by 1 test: return QTime(); QTime();executed 2 times by 1 test: return QTime(); | 2 |
| 774 | if (size > 8| TRUE | evaluated 32 times by 3 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
- tst_QTime
| | FALSE | evaluated 34 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QTime
- tst_QVariant
|
&& (string.at(8) == QLatin1Char(',')| TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 21 times by 3 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
- tst_QTime
|
|| string.at(8) == QLatin1Char('.')| TRUE | evaluated 18 times by 3 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
- tst_QTime
| | FALSE | evaluated 3 times by 2 tests |
)) { | 3-34 |
| 775 | const QStringRef msecStr(string.mid(9, 4)); | - |
| 776 | int msecInt = msecStr.isEmpty()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 28 times by 3 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
- tst_QTime
|
? 0 : msecStr.toInt(&ok); | 1-28 |
| 777 | if (!ok| TRUE | never evaluated | | FALSE | evaluated 29 times by 3 testsEvaluated 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 blockExecuted by:- tst_QDateTime
- tst_QSqlQuery
- tst_QTime
| 29 |
| 782 | }executed 66 times by 5 tests: end of blockExecuted by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QTime
- tst_QVariant
| 66 |
| 783 | | - |
| 784 | if (format == Qt::ISODate| TRUE | evaluated 72 times by 5 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QTime
- tst_QVariant
| | FALSE | evaluated 7 times by 1 test |
&& hour == 24| TRUE | evaluated 7 times by 2 tests | | FALSE | evaluated 65 times by 5 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QTime
- tst_QVariant
|
&& minute == 0| TRUE | evaluated 7 times by 2 tests | | FALSE | never evaluated |
&& second == 0| TRUE | evaluated 7 times by 2 tests | | FALSE | never evaluated |
&& msec == 0| TRUE | evaluated 7 times by 2 tests | | FALSE | never evaluated |
) { | 0-72 |
| 785 | if (isMidnight24| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) | 2-5 |
| 786 | *executed 5 times by 1 test: *isMidnight24 = true; isMidnight24 = true;executed 5 times by 1 test: *isMidnight24 = true; | 5 |
| 787 | hour = 0; | - |
| 788 | }executed 7 times by 2 tests: end of block | 7 |
| 789 | | - |
| 790 | returnexecuted 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 | } | - |
| 792 | QTime QTime::fromString(const QString& string, Qt::DateFormat format) | - |
| 793 | { | - |
| 794 | if (string.isEmpty()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 2 tests |
) | 2-50 |
| 795 | returnexecuted 2 times by 1 test: return QTime(); QTime();executed 2 times by 1 test: return 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 | caseexecuted 20 times by 1 test: case Qt::RFC2822Date: Qt::RFC2822Date:executed 20 times by 1 test: case Qt::RFC2822Date: | 20 |
| 809 | returnexecuted 20 times by 1 test: return rfcDateImpl(string).time; rfcDateImpl(string).time;executed 20 times by 1 test: return rfcDateImpl(string).time; | 20 |
| 810 | caseexecuted 20 times by 2 tests: case Qt::ISODate: Qt::ISODate:executed 20 times by 2 tests: case Qt::ISODate: | 20 |
| 811 | caseexecuted 10 times by 1 test: case Qt::TextDate: Qt::TextDate:executed 10 times by 1 test: case Qt::TextDate: | 10 |
| 812 | default never executed: default: :never executed: default: | 0 |
| 813 | returnexecuted 30 times by 2 tests: return fromIsoTimeString(&string, format, 0); fromIsoTimeString(&string, format, 0);executed 30 times by 2 tests: return fromIsoTimeString(&string, format, 0); | 30 |
| 814 | } | - |
| 815 | } | - |
| 816 | QTime 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)| TRUE | evaluated 12 times by 1 test | | FALSE | never evaluated |
) | 0-12 |
| 822 | dt.fromString(string, 0, &time);executed 12 times by 1 test: dt.fromString(string, 0, &time); | 12 |
| 823 | | - |
| 824 | | - |
| 825 | | - |
| 826 | | - |
| 827 | returnexecuted 12 times by 1 test: return time; time;executed 12 times by 1 test: return time; | 12 |
| 828 | } | - |
| 829 | bool QTime::isValid(int h, int m, int s, int ms) | - |
| 830 | { | - |
| 831 | returnexecuted 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
- ...
(| TRUE | evaluated 20679629 times by 103 testsEvaluated 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
- ...
| | FALSE | evaluated 240 times by 5 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QFtp
- tst_QNetworkCookie
- tst_QTime
|
uint)h < 24| TRUE | evaluated 20679629 times by 103 testsEvaluated 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
- ...
| | FALSE | evaluated 240 times by 5 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QFtp
- tst_QNetworkCookie
- tst_QTime
|
&& (| TRUE | evaluated 20679627 times by 103 testsEvaluated 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
- ...
| | FALSE | evaluated 2 times by 1 test |
uint)m < 60| TRUE | evaluated 20679627 times by 103 testsEvaluated 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
- ...
| | FALSE | evaluated 2 times by 1 test |
&& (| TRUE | evaluated 20679624 times by 103 testsEvaluated 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
- ...
| | FALSE | evaluated 3 times by 1 test |
uint)s < 60| TRUE | evaluated 20679624 times by 103 testsEvaluated 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
- ...
| | FALSE | evaluated 3 times by 1 test |
&& (| TRUE | evaluated 20677984 times by 103 testsEvaluated 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
- ...
| | FALSE | evaluated 1 time by 1 test |
uint)ms < 1000| TRUE | evaluated 20677984 times by 103 testsEvaluated 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
- ...
| | FALSE | evaluated 1 time by 1 test |
;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 | } | - |
| 833 | void QTime::start() | - |
| 834 | { | - |
| 835 | *this = currentTime(); | - |
| 836 | }executed 677 times by 28 tests: end of blockExecuted 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 |
| 837 | int QTime::restart() | - |
| 838 | { | - |
| 839 | QTime t = currentTime(); | - |
| 840 | int n = msecsTo(t); | - |
| 841 | if (n < 0| TRUE | never evaluated | | FALSE | evaluated 211 times by 3 testsEvaluated by:- tst_QFtp
- tst_QTextStream
- tst_QThreadPool
|
) | 0-211 |
| 842 | n += 86400*1000; never executed: n += 86400*1000; | 0 |
| 843 | *this = t; | - |
| 844 | returnexecuted 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 | } | - |
| 846 | int QTime::elapsed() const | - |
| 847 | { | - |
| 848 | int n = msecsTo(currentTime()); | - |
| 849 | if (n < 0| TRUE | never evaluated | | FALSE | evaluated 6850675 times by 28 testsEvaluated 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 | returnexecuted 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 | | - |
| 859 | static void qt_tzset() | - |
| 860 | { | - |
| 861 | | - |
| 862 | | - |
| 863 | | - |
| 864 | | - |
| 865 | | - |
| 866 | | - |
| 867 | tzset(); | - |
| 868 | | - |
| 869 | }executed 6864044 times by 94 tests: end of blockExecuted 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 | | - |
| 876 | static int qt_timezone() | - |
| 877 | { | - |
| 878 | returnexecuted 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 | | - |
| 883 | static QString qt_tzname(QDateTimePrivate::DaylightStatus daylightStatus) | - |
| 884 | { | - |
| 885 | int isDst = (| TRUE | evaluated 248 times by 10 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkReply
- tst_QSignalSpy
- tst_QTime
- tst_QVariant
| | FALSE | evaluated 891 times by 5 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QNoDebug
- tst_QSqlQuery
|
daylightStatus == QDateTimePrivate::DaylightTime)| TRUE | evaluated 248 times by 10 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkReply
- tst_QSignalSpy
- tst_QTime
- tst_QVariant
| | FALSE | evaluated 891 times by 5 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QNoDebug
- tst_QSqlQuery
|
? 1 : 0; | 248-891 |
| 886 | | - |
| 887 | | - |
| 888 | | - |
| 889 | | - |
| 890 | | - |
| 891 | | - |
| 892 | | - |
| 893 | returnexecuted 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 | | - |
| 903 | static 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| TRUE | evaluated 13748163 times by 97 testsEvaluated 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
- ...
| | FALSE | never 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)| TRUE | evaluated 13740582 times by 97 testsEvaluated 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
- ...
| | FALSE | evaluated 36 times by 1 test |
) { | 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| TRUE | evaluated 13718652 times by 82 testsEvaluated 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
- ...
| | FALSE | evaluated 16600 times by 41 testsEvaluated 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| TRUE | evaluated 13730284 times by 82 testsEvaluated 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
- ...
| | FALSE | never 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| TRUE | evaluated 248 times by 10 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkReply
- tst_QSignalSpy
- tst_QTime
- tst_QVariant
| | FALSE | evaluated 13719955 times by 82 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 16600 times by 41 testsEvaluated 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
- ...
| | FALSE | never evaluated |
) { | 0-13731527 |
| 935 | if (daylightStatus| TRUE | evaluated 16600 times by 41 testsEvaluated 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
- ...
| | FALSE | never 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| TRUE | evaluated 609 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QSqlQuery
| | FALSE | evaluated 15991 times by 41 testsEvaluated 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 blockExecuted 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| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 941 | * never executed: *daylightStatus = QDateTimePrivate::UnknownDaylightTime; daylightStatus = QDateTimePrivate::UnknownDaylightTime;never executed: *daylightStatus = QDateTimePrivate::UnknownDaylightTime; | 0 |
| 942 | if (abbreviation| TRUE | never evaluated | | FALSE | never 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| TRUE | evaluated 1142 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QNetworkCacheMetaData
- tst_QNetworkCookieJar
- tst_QStyleSheetStyle
| | FALSE | evaluated 13746985 times by 97 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 36 times by 1 test | | FALSE | never evaluated |
) | 0-36 |
| 951 | *executed 36 times by 1 test: *daylightStatus = QDateTimePrivate::UnknownDaylightTime; daylightStatus = QDateTimePrivate::UnknownDaylightTime;executed 36 times by 1 test: *daylightStatus = QDateTimePrivate::UnknownDaylightTime; | 36 |
| 952 | if (abbreviation| TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 25 times by 1 test |
) | 11-25 |
| 953 | *executed 11 times by 1 test: *abbreviation = QString(); abbreviation = QString();executed 11 times by 1 test: *abbreviation = QString(); | 11 |
| 954 | if (ok| TRUE | evaluated 36 times by 1 test | | FALSE | never evaluated |
) | 0-36 |
| 955 | *executed 36 times by 1 test: *ok = false; ok = false;executed 36 times by 1 test: *ok = false; | 36 |
| 956 | }executed 36 times by 1 test: end of block | 36 |
| 957 | | - |
| 958 | | - |
| 959 | returnexecuted 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 | | - |
| 964 | static 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| TRUE | evaluated 6859161 times by 91 testsEvaluated 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
- ...
| | FALSE | never 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| TRUE | evaluated 6859161 times by 91 testsEvaluated 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
- ...
| | FALSE | never 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| TRUE | evaluated 6856259 times by 91 testsEvaluated 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
- ...
| | FALSE | never evaluated |
) { | 0-6856259 |
| 983 | if (local.tm_isdst > 0| TRUE | evaluated 6858465 times by 78 testsEvaluated 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
- ...
| | FALSE | evaluated 696 times by 28 testsEvaluated 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| TRUE | never evaluated | | FALSE | evaluated 696 times by 28 testsEvaluated 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 | returnexecuted 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| TRUE | never evaluated | | FALSE | never 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 | | - |
| 1001 | static 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| TRUE | evaluated 20783660 times by 99 testsEvaluated 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
- ...
| | FALSE | evaluated 1699 times by 15 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 5747 times by 6 testsEvaluated by:- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QFtp
- tst_QNoDebug
- tst_QTime
| | FALSE | evaluated 20774921 times by 98 testsEvaluated 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 blockExecuted 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 blockExecuted 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| TRUE | evaluated 13864443 times by 99 testsEvaluated 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
- ...
| | FALSE | evaluated 6918892 times by 72 testsEvaluated 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| TRUE | evaluated 20686466 times by 99 testsEvaluated 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
- ...
| | FALSE | evaluated 84674 times by 42 testsEvaluated 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 blockExecuted 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 | | - |
| 1027 | static qint64 timeToMSecs(const QDate &date, const QTime &time) | - |
| 1028 | { | - |
| 1029 | returnexecuted 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 | | - |
| 1034 | static bool epochMSecsToLocalTime(qint64 msecs, QDate *localDate, QTime *localTime, | - |
| 1035 | QDateTimePrivate::DaylightStatus *daylightStatus = 0) | - |
| 1036 | { | - |
| 1037 | if (msecs < 0| TRUE | evaluated 85 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
| | FALSE | evaluated 6855776 times by 91 testsEvaluated 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| TRUE | evaluated 85 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
| | FALSE | never 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 | returnexecuted 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)| TRUE | evaluated 58 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
| | FALSE | evaluated 6858508 times by 91 testsEvaluated 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| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 49 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
|
&& day == 29| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) | 3-49 |
| 1058 | --executed 3 times by 1 test: --day; day;executed 3 times by 1 test: --day; | 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 | returnexecuted 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 | returnexecuted 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 | | - |
| 1073 | static 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)| TRUE | evaluated 7031 times by 16 testsEvaluated 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
| | FALSE | evaluated 13740808 times by 97 testsEvaluated 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)| TRUE | evaluated 1136 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QNetworkCacheMetaData
- tst_QNetworkCookieJar
- tst_QStyleSheetStyle
| | FALSE | evaluated 5895 times by 14 testsEvaluated 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| TRUE | evaluated 1100 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QNetworkCacheMetaData
- tst_QNetworkCookieJar
- tst_QStyleSheetStyle
| | FALSE | evaluated 36 times by 1 test |
&& utcMsecs >= 0| TRUE | evaluated 76 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QNetworkCookieJar
| | FALSE | evaluated 1024 times by 7 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QNetworkCacheMetaData
- tst_QStyleSheetStyle
|
) { | 36-1100 |
| 1094 | | - |
| 1095 | if (localDate| TRUE | evaluated 30 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QNetworkCookieJar
| | FALSE | evaluated 46 times by 2 testsEvaluated 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| TRUE | evaluated 30 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QNetworkCookieJar
| | FALSE | evaluated 46 times by 2 testsEvaluated 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 | returnexecuted 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 blockExecuted 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 blockExecuted 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| TRUE | evaluated 4980 times by 15 testsEvaluated 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
| | FALSE | evaluated 1975 times by 7 testsEvaluated by:- tst_QAccessibility
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QNetworkCacheMetaData
- tst_QNoDebug
- tst_QStyleSheetStyle
|
|| localTime| TRUE | never evaluated | | FALSE | evaluated 1975 times by 7 testsEvaluated 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| TRUE | evaluated 6955 times by 16 testsEvaluated 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
| | FALSE | never 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| TRUE | evaluated 282 times by 3 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNoDebug
| | FALSE | evaluated 6673 times by 16 testsEvaluated 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 | returnexecuted 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| TRUE | evaluated 15189 times by 12 testsEvaluated 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
| | FALSE | evaluated 13727424 times by 97 testsEvaluated 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| TRUE | evaluated 42 times by 1 test | | FALSE | evaluated 15147 times by 12 testsEvaluated 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| TRUE | evaluated 42 times by 1 test | | FALSE | never evaluated |
&& utcMsecs <= msecsMax| TRUE | evaluated 33 times by 1 test | | FALSE | evaluated 9 times by 1 test |
) { | 0-42 |
| 1126 | | - |
| 1127 | if (localDate| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 24 times by 1 test |
) | 9-24 |
| 1128 | *executed 9 times by 1 test: *localDate = dt; localDate = dt;executed 9 times by 1 test: *localDate = dt; | 9 |
| 1129 | if (localTime| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 24 times by 1 test |
) | 9-24 |
| 1130 | *executed 9 times by 1 test: *localTime = tm; localTime = tm;executed 9 times by 1 test: *localTime = tm; | 9 |
| 1131 | returnexecuted 33 times by 1 test: return utcMsecs; utcMsecs;executed 33 times by 1 test: return utcMsecs; | 33 |
| 1132 | } | - |
| 1133 | }executed 9 times by 1 test: end of block | 9 |
| 1134 | | - |
| 1135 | | - |
| 1136 | | - |
| 1137 | int year, month, day; | - |
| 1138 | dt.getDate(&year, &month, &day); | - |
| 1139 | | - |
| 1140 | if (month == 2| TRUE | evaluated 75 times by 1 test | | FALSE | evaluated 15081 times by 12 testsEvaluated 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| TRUE | evaluated 33 times by 1 test | | FALSE | evaluated 42 times by 1 test |
) | 33-15081 |
| 1141 | --executed 33 times by 1 test: --day; day;executed 33 times by 1 test: --day; | 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| TRUE | evaluated 14337 times by 12 testsEvaluated 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
| | FALSE | evaluated 819 times by 6 testsEvaluated 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| TRUE | evaluated 14337 times by 12 testsEvaluated 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
| | FALSE | evaluated 819 times by 6 testsEvaluated 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 | returnexecuted 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| TRUE | evaluated 13701999 times by 97 testsEvaluated 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
- ...
| | FALSE | evaluated 1807 times by 28 testsEvaluated 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| TRUE | evaluated 13725546 times by 97 testsEvaluated 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
- ...
| | FALSE | evaluated 1807 times by 28 testsEvaluated 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 | returnexecuted 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 | | - |
| 1173 | QDateTimePrivate::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 blockExecuted 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 | | - |
| 1185 | QDateTimePrivate::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 | 22 |
| 1194 | | - |
| 1195 | | - |
| 1196 | void QDateTimePrivate::setTimeSpec(Qt::TimeSpec spec, int offsetSeconds) | - |
| 1197 | { | - |
| 1198 | clearValidDateTime(); | - |
| 1199 | clearSetToDaylightStatus(); | - |
| 1200 | | - |
| 1201 | | - |
| 1202 | m_timeZone = QTimeZone(); | - |
| 1203 | | - |
| 1204 | | - |
| 1205 | switch (spec) { | - |
| 1206 | caseexecuted 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| TRUE | evaluated 74 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QNetworkDiskCache
| | FALSE | evaluated 156 times by 5 testsEvaluated 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 blockExecuted 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 blockExecuted 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 | caseexecuted 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 | caseexecuted 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 blockExecuted 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 | | - |
| 1228 | void QDateTimePrivate::setDateTime(const QDate &date, const QTime &time) | - |
| 1229 | { | - |
| 1230 | | - |
| 1231 | QTime useTime = time; | - |
| 1232 | if (!useTime.isValid()| TRUE | evaluated 1624 times by 14 testsEvaluated 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
| | FALSE | evaluated 6930414 times by 102 testsEvaluated 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()| TRUE | evaluated 1320 times by 6 testsEvaluated by:- tst_QAccessibility
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QStyleSheetStyle
- tst_QTimeZone
| | FALSE | evaluated 304 times by 9 testsEvaluated 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()| TRUE | evaluated 6930609 times by 102 testsEvaluated 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
- ...
| | FALSE | evaluated 348 times by 10 testsEvaluated 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 blockExecuted 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()| TRUE | evaluated 348 times by 10 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDBusAbstractAdaptor
- tst_QDBusMarshall
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QFtp
- tst_QMetaType
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QVariant
| | FALSE | never evaluated |
) { | 0-6930008 |
| 1243 | newStatus = NullDate; | - |
| 1244 | }executed 348 times by 10 tests: end of blockExecuted 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()| TRUE | evaluated 6930742 times by 102 testsEvaluated 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
- ...
| | FALSE | evaluated 304 times by 9 testsEvaluated 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 blockExecuted 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()| TRUE | evaluated 304 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDBusAbstractAdaptor
- tst_QDBusMarshall
- tst_QDateTime
- tst_QFtp
- tst_QMetaType
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QVariant
| | FALSE | never evaluated |
) { | 0-6929581 |
| 1252 | newStatus |= NullTime; | - |
| 1253 | }executed 304 times by 9 tests: end of blockExecuted 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 blockExecuted 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 | | - |
| 1263 | QPair<QDate, QTime> QDateTimePrivate::getDateTime() const | - |
| 1264 | { | - |
| 1265 | QPair<QDate, QTime> result; | - |
| 1266 | msecsToTime(m_msecs, &result.first, &result.second); | - |
| 1267 | | - |
| 1268 | if (isNullDate()| TRUE | evaluated 122 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QMetaType
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QVariant
| | FALSE | evaluated 7330 times by 13 testsEvaluated 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()| TRUE | evaluated 122 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QMetaType
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QVariant
| | FALSE | evaluated 7330 times by 13 testsEvaluated 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 | returnexecuted 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 | | - |
| 1278 | void QDateTimePrivate::setDaylightStatus(QDateTimePrivate::DaylightStatus status) | - |
| 1279 | { | - |
| 1280 | if (status == DaylightTime| TRUE | evaluated 6858465 times by 78 testsEvaluated 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
- ...
| | FALSE | evaluated 781 times by 28 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 781 times by 28 testsEvaluated 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
- ...
| | FALSE | never evaluated |
) { | 0-6858465 |
| 1284 | m_status = m_status & ~SetToDaylightTime; | - |
| 1285 | m_status = m_status | SetToStandardTime; | - |
| 1286 | }executed 781 times by 28 tests: end of blockExecuted 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 | | - |
| 1292 | QDateTimePrivate::DaylightStatus QDateTimePrivate::daylightStatus() const | - |
| 1293 | { | - |
| 1294 | if ((| TRUE | evaluated 6857279 times by 78 testsEvaluated 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
- ...
| | FALSE | evaluated 6888095 times by 98 testsEvaluated 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| TRUE | evaluated 6857279 times by 78 testsEvaluated 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
- ...
| | FALSE | evaluated 6888095 times by 98 testsEvaluated 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 | returnexecuted 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 ((| TRUE | evaluated 1615 times by 28 testsEvaluated 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
- ...
| | FALSE | evaluated 6887015 times by 98 testsEvaluated 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| TRUE | evaluated 1615 times by 28 testsEvaluated 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
- ...
| | FALSE | evaluated 6887015 times by 98 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
| 1301 | qint64 QDateTimePrivate::toMSecsSinceEpoch() const | - |
| 1302 | { | - |
| 1303 | switch (m_spec) { | - |
| 1304 | caseexecuted 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 | caseexecuted 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 | returnexecuted 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 | caseexecuted 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 | returnexecuted 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 | caseexecuted 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 | returnexecuted 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 | | - |
| 1326 | void QDateTimePrivate::checkValidDateTime() | - |
| 1327 | { | - |
| 1328 | switch (m_spec) { | - |
| 1329 | caseexecuted 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 | caseexecuted 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()| TRUE | evaluated 48946 times by 25 testsEvaluated 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
| | FALSE | evaluated 523 times by 6 testsEvaluated by:- tst_QDateTime
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QVariant
|
&& isValidTime()| TRUE | evaluated 48946 times by 25 testsEvaluated 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
| | FALSE | never 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 | caseexecuted 22 times by 1 test: case Qt::TimeZone: Qt::TimeZone:executed 22 times by 1 test: case Qt::TimeZone: | 22 |
| 1338 | caseexecuted 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 blockExecuted 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 | | - |
| 1347 | void 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 | caseexecuted 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 | caseexecuted 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()| TRUE | evaluated 374 times by 10 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDBusAbstractAdaptor
- tst_QDBusMarshall
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QFtp
- tst_QMetaType
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QVariant
| | FALSE | evaluated 13742898 times by 98 testsEvaluated 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()| TRUE | never evaluated | | FALSE | evaluated 13742335 times by 98 testsEvaluated 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| TRUE | evaluated 503 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QTimeZone
| | FALSE | evaluated 13733494 times by 98 testsEvaluated 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()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 502 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QTimeZone
|
) { | 1-13733494 |
| 1369 | clearValidDateTime(); | - |
| 1370 | m_offsetFromUtc = 0; | - |
| 1371 | return;executed 1 time by 1 test: return; | 1 |
| 1372 | } | - |
| 1373 | | - |
| 1374 | | - |
| 1375 | | - |
| 1376 | | - |
| 1377 | | - |
| 1378 | QDate testDate; | - |
| 1379 | QTime testTime; | - |
| 1380 | qint64 epochMSecs = 0; | - |
| 1381 | if (m_spec == Qt::LocalTime| TRUE | evaluated 13739533 times by 98 testsEvaluated 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
- ...
| | FALSE | evaluated 502 times by 2 testsEvaluated 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 blockExecuted 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 blockExecuted by:- tst_QDateTime
- tst_QTimeZone
| 502 |
| 1389 | if (timeToMSecs(testDate, testTime) == m_msecs| TRUE | evaluated 13742501 times by 98 testsEvaluated 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
- ...
| | FALSE | evaluated 4 times by 1 test |
) { | 4-13742501 |
| 1390 | setValidDateTime(); | - |
| 1391 | | - |
| 1392 | m_offsetFromUtc = (m_msecs - epochMSecs) / 1000; | - |
| 1393 | }executed 13738099 times by 98 tests: end of blockExecuted 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 | 4 |
| 1397 | } | - |
| 1398 | | - |
| 1399 | | - |
| 1400 | | - |
| 1401 | qint64 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| TRUE | evaluated 986 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QTimeZone
| | FALSE | evaluated 5 times by 1 test |
) { | 5-986 |
| 1409 | msecsToTime(data.atMSecsSinceEpoch + (data.offsetFromUtc * 1000), localDate, localTime); | - |
| 1410 | returnexecuted 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 | returnexecuted 5 times by 1 test: return zoneMSecs - (data.standardTimeOffset * 1000); zoneMSecs - (data.standardTimeOffset * 1000);executed 5 times by 1 test: return zoneMSecs - (data.standardTimeOffset * 1000); | 5 |
| 1414 | } | - |
| 1415 | } | - |
| 1416 | QDateTime::QDateTime() | - |
| 1417 | : d(new QDateTimePrivate) | - |
| 1418 | { | - |
| 1419 | }executed 7008628 times by 123 tests: end of blockExecuted 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 | | - |
| 1427 | QDateTime::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 blockExecuted by:- tst_QDateTime
- tst_QNetworkRequest
- tst_QVariant
| 6 |
| 1431 | QDateTime::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 blockExecuted 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 |
| 1435 | QDateTime::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 blockExecuted by:- tst_QDateTime
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
- tst_QSqlQuery
- tst_QVariant
- tst_selftests - unknown status
| 272 |
| 1439 | QDateTime::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 | 22 |
| 1443 | | - |
| 1444 | | - |
| 1445 | | - |
| 1446 | | - |
| 1447 | | - |
| 1448 | | - |
| 1449 | QDateTime::QDateTime(const QDateTime &other) | - |
| 1450 | : d(other.d) | - |
| 1451 | { | - |
| 1452 | }executed 472937 times by 63 tests: end of blockExecuted 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 | | - |
| 1457 | QDateTime::~QDateTime() | - |
| 1458 | { | - |
| 1459 | } | - |
| 1460 | | - |
| 1461 | | - |
| 1462 | | - |
| 1463 | | - |
| 1464 | | - |
| 1465 | | - |
| 1466 | QDateTime &QDateTime::operator=(const QDateTime &other) | - |
| 1467 | { | - |
| 1468 | d = other.d; | - |
| 1469 | returnexecuted 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 | } | - |
| 1471 | bool QDateTime::isNull() const | - |
| 1472 | { | - |
| 1473 | returnexecuted 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()| TRUE | evaluated 60 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNetworkReply
- tst_QVariant
| | FALSE | evaluated 4793 times by 10 testsEvaluated by:- tst_QAccessibility
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QSqlQuery
- tst_QStyleSheetStyle
- tst_QVariant
- tst_QXmlStream
|
&& d->isNullTime()| TRUE | evaluated 23 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNetworkReply
- tst_QVariant
| | FALSE | evaluated 37 times by 1 test |
;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 | } | - |
| 1475 | bool QDateTime::isValid() const | - |
| 1476 | { | - |
| 1477 | returnexecuted 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 | | - |
| 1486 | QDate QDateTime::date() const | - |
| 1487 | { | - |
| 1488 | if (d->isNullDate()| TRUE | evaluated 71 times by 6 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusMarshall
- tst_QDBusMetaType
- tst_QDateTime
- tst_qdbuscpp2xml
- tst_qdbuscpp2xml - unknown status
| | FALSE | evaluated 84185 times by 42 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
| 1501 | QTime QDateTime::time() const | - |
| 1502 | { | - |
| 1503 | if (d->isNullTime()| TRUE | evaluated 70 times by 6 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusMarshall
- tst_QDBusMetaType
- tst_QDateTime
- tst_qdbuscpp2xml
- tst_qdbuscpp2xml - unknown status
| | FALSE | evaluated 6918403 times by 71 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
| 1516 | Qt::TimeSpec QDateTime::timeSpec() const | - |
| 1517 | { | - |
| 1518 | returnexecuted 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 | } | - |
| 1520 | QTimeZone 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 | caseexecuted 1 time by 1 test: case Qt::OffsetFromUTC: Qt::OffsetFromUTC:executed 1 time by 1 test: case Qt::OffsetFromUTC: | 1 |
| 1526 | returnexecuted 1 time by 1 test: return QTimeZone(d->m_offsetFromUtc); QTimeZone(d->m_offsetFromUtc);executed 1 time by 1 test: return QTimeZone(d->m_offsetFromUtc); | 1 |
| 1527 | caseexecuted 22 times by 1 test: case Qt::TimeZone: Qt::TimeZone:executed 22 times by 1 test: case Qt::TimeZone: | 22 |
| 1528 | ((!(d->m_timeZone.isValid())) ? qt_assert("d->m_timeZone.isValid()",__FILE__,3147) : qt_noop()); | - |
| 1529 | returnexecuted 22 times by 1 test: return d->m_timeZone; d->m_timeZone;executed 22 times by 1 test: return d->m_timeZone; | 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 | } | - |
| 1535 | int QDateTime::offsetFromUtc() const | - |
| 1536 | { | - |
| 1537 | returnexecuted 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 | } | - |
| 1539 | QString QDateTime::timeZoneAbbreviation() const | - |
| 1540 | { | - |
| 1541 | switch (d->m_spec) { | - |
| 1542 | caseexecuted 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 | returnexecuted 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 | caseexecuted 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 | returnexecuted 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 | caseexecuted 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 | returnexecuted 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 | caseexecuted 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 | returnexecuted 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 | } | - |
| 1561 | bool QDateTime::isDaylightTime() const | - |
| 1562 | { | - |
| 1563 | switch (d->m_spec) { | - |
| 1564 | caseexecuted 2 times by 1 test: case Qt::UTC: Qt::UTC:executed 2 times by 1 test: case Qt::UTC: | 2 |
| 1565 | caseexecuted 2 times by 1 test: case Qt::OffsetFromUTC: Qt::OffsetFromUTC:executed 2 times by 1 test: case Qt::OffsetFromUTC: | 2 |
| 1566 | returnexecuted 4 times by 1 test: return false; false;executed 4 times by 1 test: return false; | 4 |
| 1567 | caseexecuted 3 times by 1 test: case Qt::TimeZone: Qt::TimeZone:executed 3 times by 1 test: case Qt::TimeZone: | 3 |
| 1568 | | - |
| 1569 | | - |
| 1570 | | - |
| 1571 | returnexecuted 3 times by 1 test: return d->m_timeZone.d->isDaylightTime(toMSecsSinceEpoch()); d->m_timeZone.d->isDaylightTime(toMSecsSinceEpoch());executed 3 times by 1 test: return d->m_timeZone.d->isDaylightTime(toMSecsSinceEpoch()); | 3 |
| 1572 | | - |
| 1573 | caseexecuted 2 times by 1 test: case Qt::LocalTime: Qt::LocalTime:executed 2 times by 1 test: case Qt::LocalTime: { | 2 |
| 1574 | QDateTimePrivate::DaylightStatus status = d->daylightStatus(); | - |
| 1575 | if (status == QDateTimePrivate::UnknownDaylightTime| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 1576 | localMSecsToEpochMSecs(d->m_msecs, &status);executed 2 times by 1 test: localMSecsToEpochMSecs(d->m_msecs, &status); | 2 |
| 1577 | returnexecuted 2 times by 1 test: return (status == QDateTimePrivate::DaylightTime); (status == QDateTimePrivate::DaylightTime);executed 2 times by 1 test: return (status == QDateTimePrivate::DaylightTime); | 2 |
| 1578 | } | - |
| 1579 | } | - |
| 1580 | return never executed: return false; false;never executed: return false; | 0 |
| 1581 | } | - |
| 1582 | void QDateTime::setDate(const QDate &date) | - |
| 1583 | { | - |
| 1584 | d->setDateTime(date, time()); | - |
| 1585 | }executed 133 times by 2 tests: end of block | 133 |
| 1586 | void QDateTime::setTime(const QTime &time) | - |
| 1587 | { | - |
| 1588 | d->setDateTime(date(), time); | - |
| 1589 | }executed 134 times by 2 tests: end of blockExecuted by:- tst_QDateTime
- tst_QNetworkCookie
| 134 |
| 1590 | void 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 blockExecuted 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 |
| 1596 | void 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 blockExecuted by:- tst_QDateTime
- tst_QSettings
| 35 |
| 1602 | void 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 blockExecuted by:- tst_QDateTime
- tst_QTimeZone
| 482 |
| 1610 | qint64 QDateTime::toMSecsSinceEpoch() const | - |
| 1611 | { | - |
| 1612 | returnexecuted 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 | } | - |
| 1614 | uint QDateTime::toTime_t() const | - |
| 1615 | { | - |
| 1616 | if (!isValid()| TRUE | evaluated 983 times by 28 testsEvaluated 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
- ...
| | FALSE | evaluated 181 times by 14 testsEvaluated 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 | returnexecuted 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)| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 178 times by 14 testsEvaluated 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 | returnexecuted 3 times by 1 test: return uint(-1); uint(-1);executed 3 times by 1 test: return uint(-1); | 3 |
| 1621 | returnexecuted 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 | } | - |
| 1623 | void QDateTime::setMSecsSinceEpoch(qint64 msecs) | - |
| 1624 | { | - |
| 1625 | QDateTimePrivate *d = this->d.data(); | - |
| 1626 | | - |
| 1627 | d->m_status = 0; | - |
| 1628 | switch (d->m_spec) { | - |
| 1629 | caseexecuted 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 | caseexecuted 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 | caseexecuted 20 times by 1 test: case Qt::TimeZone: Qt::TimeZone:executed 20 times by 1 test: case Qt::TimeZone: | 20 |
| 1644 | | - |
| 1645 | | - |
| 1646 | | - |
| 1647 | if (msecs >= 0| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 4 times by 1 test |
) | 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); | 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); | 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; | 20 |
| 1659 | caseexecuted 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 blockExecuted 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 |
| 1671 | void QDateTime::setTime_t(uint secsSince1Jan1970UTC) | - |
| 1672 | { | - |
| 1673 | setMSecsSinceEpoch((qint64)secsSince1Jan1970UTC * 1000); | - |
| 1674 | }executed 16 times by 1 test: end of block | 16 |
| 1675 | QString QDateTime::toString(Qt::DateFormat format) const | - |
| 1676 | { | - |
| 1677 | QString buf; | - |
| 1678 | if (!isValid()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 3255 times by 13 testsEvaluated 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 | returnexecuted 2 times by 1 test: return buf; buf;executed 2 times by 1 test: return buf; | 2 |
| 1680 | | - |
| 1681 | switch (format) { | - |
| 1682 | caseexecuted 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 | caseexecuted 1 time by 1 test: case Qt::SystemLocaleShortDate: Qt::SystemLocaleShortDate:executed 1 time by 1 test: case Qt::SystemLocaleShortDate: | 1 |
| 1684 | returnexecuted 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 | caseexecuted 1 time by 1 test: case Qt::SystemLocaleLongDate: Qt::SystemLocaleLongDate:executed 1 time by 1 test: case Qt::SystemLocaleLongDate: | 1 |
| 1686 | returnexecuted 1 time by 1 test: return QLocale::system().toString(*this, QLocale::LongFormat); QLocale::system().toString(*this, QLocale::LongFormat);executed 1 time by 1 test: return QLocale::system().toString(*this, QLocale::LongFormat); | 1 |
| 1687 | caseexecuted 1 time by 1 test: case Qt::LocaleDate: Qt::LocaleDate:executed 1 time by 1 test: case Qt::LocaleDate: | 1 |
| 1688 | caseexecuted 1 time by 1 test: case Qt::DefaultLocaleShortDate: Qt::DefaultLocaleShortDate:executed 1 time by 1 test: case Qt::DefaultLocaleShortDate: | 1 |
| 1689 | returnexecuted 2 times by 1 test: return QLocale().toString(*this, QLocale::ShortFormat); QLocale().toString(*this, QLocale::ShortFormat);executed 2 times by 1 test: return QLocale().toString(*this, QLocale::ShortFormat); | 2 |
| 1690 | caseexecuted 1 time by 1 test: case Qt::DefaultLocaleLongDate: Qt::DefaultLocaleLongDate:executed 1 time by 1 test: case Qt::DefaultLocaleLongDate: | 1 |
| 1691 | returnexecuted 1 time by 1 test: return QLocale().toString(*this, QLocale::LongFormat); QLocale().toString(*this, QLocale::LongFormat);executed 1 time by 1 test: return QLocale().toString(*this, QLocale::LongFormat); | 1 |
| 1692 | caseexecuted 5 times by 1 test: case Qt::RFC2822Date: Qt::RFC2822Date:executed 5 times by 1 test: case Qt::RFC2822Date: { | 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); returnexecuted 5 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 5 times by 1 test: return qstring_literal_temp; }())); | 5 |
| 1694 | buf += toOffsetString(Qt::TextDate, d->m_offsetFromUtc); | - |
| 1695 | returnexecuted 5 times by 1 test: return buf; buf;executed 5 times by 1 test: return buf; | 5 |
| 1696 | } | - |
| 1697 | default never executed: default: :never executed: default: | 0 |
| 1698 | | - |
| 1699 | caseexecuted 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| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 430 times by 3 testsEvaluated 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); returnexecuted 3 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 3 times by 1 test: return qstring_literal_temp; }()); | 3 |
| 1711 | if (d->m_spec == Qt::OffsetFromUTC| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
) | 1-2 |
| 1712 | buf += toOffsetString(Qt::TextDate, d->m_offsetFromUtc);executed 2 times by 1 test: buf += toOffsetString(Qt::TextDate, d->m_offsetFromUtc); | 2 |
| 1713 | }executed 3 times by 1 test: end of block | 3 |
| 1714 | returnexecuted 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 | caseexecuted 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()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 25 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkRequest
- tst_QSqlTableModel
- tst_QVariant
|
) | 1-25 |
| 1723 | returnexecuted 1 time by 1 test: return QString(); QString();executed 1 time by 1 test: return QString(); | 1 |
| 1724 | buf += QLatin1Char('T'); | - |
| 1725 | buf += tm.toString(Qt::ISODate); | - |
| 1726 | switch (d->m_spec) { | - |
| 1727 | caseexecuted 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 | caseexecuted 3 times by 1 test: case Qt::OffsetFromUTC: Qt::OffsetFromUTC:executed 3 times by 1 test: case Qt::OffsetFromUTC: | 3 |
| 1731 | buf += toOffsetString(Qt::ISODate, d->m_offsetFromUtc); | - |
| 1732 | break;executed 3 times by 1 test: break; | 3 |
| 1733 | defaultexecuted 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 | returnexecuted 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 | } | - |
| 1740 | QString QDateTime::toString(const QString& format) const | - |
| 1741 | { | - |
| 1742 | returnexecuted 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 | | - |
| 1746 | static void massageAdjustedDateTime(Qt::TimeSpec spec, | - |
| 1747 | | - |
| 1748 | const QTimeZone &zone, | - |
| 1749 | | - |
| 1750 | QDate *date, | - |
| 1751 | QTime *time) | - |
| 1752 | { | - |
| 1753 | if (spec == Qt::LocalTime| TRUE | evaluated 6376 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
| | FALSE | evaluated 124 times by 1 test |
) { | 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 blockExecuted by:- tst_QDateTime
- tst_QDateTimeEdit
else if (spec == Qt::TimeZone| TRUE | never evaluated | | FALSE | evaluated 124 times by 1 test |
) { | 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 blockExecuted by:- tst_QDateTime
- tst_QDateTimeEdit
| 6500 |
| 1762 | QDateTime 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 | returnexecuted 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 | } | - |
| 1773 | QDateTime 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 | returnexecuted 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 | } | - |
| 1784 | QDateTime 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 | returnexecuted 91 times by 1 test: return dt; dt;executed 91 times by 1 test: return dt; | 91 |
| 1794 | } | - |
| 1795 | QDateTime QDateTime::addSecs(qint64 s) const | - |
| 1796 | { | - |
| 1797 | returnexecuted 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 | } | - |
| 1799 | QDateTime QDateTime::addMSecs(qint64 msecs) const | - |
| 1800 | { | - |
| 1801 | if (!isValid()| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 41209 times by 17 testsEvaluated 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 | returnexecuted 5 times by 1 test: return QDateTime(); QDateTime();executed 5 times by 1 test: return QDateTime(); | 5 |
| 1803 | | - |
| 1804 | QDateTime dt(*this); | - |
| 1805 | if (d->m_spec == Qt::LocalTime| TRUE | evaluated 83 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QSqlTableModel
| | FALSE | evaluated 41126 times by 16 testsEvaluated 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| TRUE | never evaluated | | FALSE | evaluated 41126 times by 16 testsEvaluated 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 | returnexecuted 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 | } | - |
| 1813 | qint64 QDateTime::daysTo(const QDateTime &other) const | - |
| 1814 | { | - |
| 1815 | returnexecuted 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 | } | - |
| 1817 | qint64 QDateTime::secsTo(const QDateTime &other) const | - |
| 1818 | { | - |
| 1819 | returnexecuted 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 | } | - |
| 1821 | qint64 QDateTime::msecsTo(const QDateTime &other) const | - |
| 1822 | { | - |
| 1823 | if (!isValid()| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 1175 times by 15 testsEvaluated 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()| TRUE | never evaluated | | FALSE | evaluated 1175 times by 15 testsEvaluated 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 | returnexecuted 4 times by 1 test: return 0; 0;executed 4 times by 1 test: return 0; | 4 |
| 1825 | | - |
| 1826 | returnexecuted 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 | } | - |
| 1828 | QDateTime QDateTime::toTimeSpec(Qt::TimeSpec spec) const | - |
| 1829 | { | - |
| 1830 | if (d->m_spec == spec| TRUE | evaluated 18105 times by 13 testsEvaluated 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
| | FALSE | evaluated 1176 times by 7 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QVariant
|
&& (spec == Qt::UTC| TRUE | evaluated 1252 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNetworkCookie
- tst_QSslCertificate
| | FALSE | evaluated 16853 times by 11 testsEvaluated 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| TRUE | evaluated 16853 times by 11 testsEvaluated by:- tst_QAccessibility
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QFtp
- tst_QItemDelegate
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QStyleSheetStyle
- tst_QTime
| | FALSE | never evaluated |
)) | 0-18105 |
| 1831 | returnexecuted 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()| TRUE | evaluated 505 times by 6 testsEvaluated by:- tst_QDateTime
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QVariant
| | FALSE | evaluated 671 times by 3 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNetworkReply
|
) { | 505-671 |
| 1834 | QDateTime ret = *this; | - |
| 1835 | ret.setTimeSpec(spec); | - |
| 1836 | returnexecuted 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 | returnexecuted 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 | } | - |
| 1841 | QDateTime QDateTime::toOffsetFromUtc(int offsetSeconds) const | - |
| 1842 | { | - |
| 1843 | if (d->m_spec == Qt::OffsetFromUTC| TRUE | never evaluated | | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QNetworkDiskCache
|
&& d->m_offsetFromUtc == offsetSeconds| TRUE | never evaluated | | FALSE | never evaluated |
) | 0-6 |
| 1844 | return never executed: return *this; *this;never executed: return *this; | 0 |
| 1845 | | - |
| 1846 | if (!isValid()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 5 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QNetworkDiskCache
|
) { | 1-5 |
| 1847 | QDateTime ret = *this; | - |
| 1848 | ret.setOffsetFromUtc(offsetSeconds); | - |
| 1849 | returnexecuted 1 time by 1 test: return ret; ret;executed 1 time by 1 test: return ret; | 1 |
| 1850 | } | - |
| 1851 | | - |
| 1852 | returnexecuted 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 | } | - |
| 1854 | QDateTime QDateTime::toTimeZone(const QTimeZone &timeZone) const | - |
| 1855 | { | - |
| 1856 | if (d->m_spec == Qt::TimeZone| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1 time by 1 test |
&& d->m_timeZone == timeZone| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
) | 0-1 |
| 1857 | return never executed: return *this; *this;never executed: return *this; | 0 |
| 1858 | | - |
| 1859 | if (!isValid()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1 time by 1 test |
) { | 1 |
| 1860 | QDateTime ret = *this; | - |
| 1861 | ret.setTimeZone(timeZone); | - |
| 1862 | returnexecuted 1 time by 1 test: return ret; ret;executed 1 time by 1 test: return ret; | 1 |
| 1863 | } | - |
| 1864 | | - |
| 1865 | returnexecuted 1 time by 1 test: return fromMSecsSinceEpoch(d->toMSecsSinceEpoch(), timeZone); fromMSecsSinceEpoch(d->toMSecsSinceEpoch(), timeZone);executed 1 time by 1 test: return fromMSecsSinceEpoch(d->toMSecsSinceEpoch(), timeZone); | 1 |
| 1866 | } | - |
| 1867 | bool QDateTime::operator==(const QDateTime &other) const | - |
| 1868 | { | - |
| 1869 | if (d->m_spec == Qt::LocalTime| TRUE | evaluated 62331 times by 29 testsEvaluated 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
- ...
| | FALSE | evaluated 1270 times by 13 testsEvaluated 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| TRUE | evaluated 62298 times by 29 testsEvaluated 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
- ...
| | FALSE | evaluated 33 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
|
| 33-62298 |
| 1871 | && d->m_status == other.d->m_status| TRUE | evaluated 61589 times by 29 testsEvaluated 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
- ...
| | FALSE | evaluated 709 times by 8 testsEvaluated by:- tst_QAccessibility
- tst_QDBusAbstractAdaptor
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QStyleSheetStyle
|
) { | 709-61589 |
| 1872 | returnexecuted 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 | returnexecuted 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 | } | - |
| 1877 | bool QDateTime::operator<(const QDateTime &other) const | - |
| 1878 | { | - |
| 1879 | if (d->m_spec == Qt::LocalTime| TRUE | evaluated 43119 times by 13 testsEvaluated 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
| | FALSE | evaluated 58071 times by 8 testsEvaluated 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| TRUE | evaluated 43110 times by 12 testsEvaluated 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
| | FALSE | evaluated 9 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QNetworkCookieJar
|
| 9-43110 |
| 1881 | && d->m_status == other.d->m_status| TRUE | evaluated 42636 times by 12 testsEvaluated 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
| | FALSE | evaluated 474 times by 4 testsEvaluated by:- tst_QAccessibility
- tst_QDateTimeEdit
- tst_QItemDelegate
- tst_QStyleSheetStyle
|
) { | 474-42636 |
| 1882 | returnexecuted 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 | returnexecuted 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 | } | - |
| 1887 | QDate QDate::currentDate() | - |
| 1888 | { | - |
| 1889 | returnexecuted 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 | | - |
| 1892 | QTime QTime::currentTime() | - |
| 1893 | { | - |
| 1894 | returnexecuted 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 | | - |
| 1897 | QDateTime QDateTime::currentDateTime() | - |
| 1898 | { | - |
| 1899 | returnexecuted 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 | | - |
| 1902 | QDateTime QDateTime::currentDateTimeUtc() | - |
| 1903 | { | - |
| 1904 | returnexecuted 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 | | - |
| 1907 | qint64 QDateTime::currentMSecsSinceEpoch() noexcept | - |
| 1908 | { | - |
| 1909 | | - |
| 1910 | | - |
| 1911 | struct timeval tv; | - |
| 1912 | gettimeofday(&tv, 0); | - |
| 1913 | returnexecuted 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 | } | - |
| 1915 | QDateTime QDateTime::fromTime_t(uint seconds) | - |
| 1916 | { | - |
| 1917 | returnexecuted 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 | } | - |
| 1919 | QDateTime 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 | } | - |
| 1923 | QDateTime QDateTime::fromTime_t(uint seconds, const QTimeZone &timeZone) | - |
| 1924 | { | - |
| 1925 | returnexecuted 1 time by 1 test: return fromMSecsSinceEpoch((qint64)seconds * 1000, timeZone); fromMSecsSinceEpoch((qint64)seconds * 1000, timeZone);executed 1 time by 1 test: return fromMSecsSinceEpoch((qint64)seconds * 1000, timeZone); | 1 |
| 1926 | } | - |
| 1927 | QDateTime 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 | } | - |
| 1931 | QDateTime QDateTime::fromMSecsSinceEpoch(qint64 msecs, Qt::TimeSpec spec, int offsetSeconds) | - |
| 1932 | { | - |
| 1933 | QDateTime dt; | - |
| 1934 | dt.d->setTimeSpec(spec, offsetSeconds); | - |
| 1935 | dt.setMSecsSinceEpoch(msecs); | - |
| 1936 | returnexecuted 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 | } | - |
| 1938 | QDateTime QDateTime::fromMSecsSinceEpoch(qint64 msecs, const QTimeZone &timeZone) | - |
| 1939 | { | - |
| 1940 | QDateTime dt; | - |
| 1941 | dt.setTimeZone(timeZone); | - |
| 1942 | dt.setMSecsSinceEpoch(msecs); | - |
| 1943 | returnexecuted 10 times by 1 test: return dt; dt;executed 10 times by 1 test: return dt; | 10 |
| 1944 | } | - |
| 1945 | void QDateTime::setUtcOffset(int seconds) | - |
| 1946 | { | - |
| 1947 | setOffsetFromUtc(seconds); | - |
| 1948 | }executed 4 times by 1 test: end of block | 4 |
| 1949 | int QDateTime::utcOffset() const | - |
| 1950 | { | - |
| 1951 | returnexecuted 20 times by 1 test: return offsetFromUtc(); offsetFromUtc();executed 20 times by 1 test: return offsetFromUtc(); | 20 |
| 1952 | } | - |
| 1953 | QDateTime QDateTime::fromString(const QString& string, Qt::DateFormat format) | - |
| 1954 | { | - |
| 1955 | if (string.isEmpty()| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 147 times by 6 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QSqlQuery
- tst_QVariant
|
) | 5-147 |
| 1956 | returnexecuted 5 times by 1 test: return QDateTime(); QDateTime();executed 5 times by 1 test: return QDateTime(); | 5 |
| 1957 | | - |
| 1958 | switch (format) { | - |
| 1959 | caseexecuted 1 time by 1 test: case Qt::SystemLocaleDate: Qt::SystemLocaleDate:executed 1 time by 1 test: case Qt::SystemLocaleDate: | 1 |
| 1960 | caseexecuted 1 time by 1 test: case Qt::SystemLocaleShortDate: Qt::SystemLocaleShortDate:executed 1 time by 1 test: case Qt::SystemLocaleShortDate: | 1 |
| 1961 | returnexecuted 2 times by 1 test: return QLocale::system().toDateTime(string, QLocale::ShortFormat); QLocale::system().toDateTime(string, QLocale::ShortFormat);executed 2 times by 1 test: return QLocale::system().toDateTime(string, QLocale::ShortFormat); | 2 |
| 1962 | caseexecuted 1 time by 1 test: case Qt::SystemLocaleLongDate: Qt::SystemLocaleLongDate:executed 1 time by 1 test: case Qt::SystemLocaleLongDate: | 1 |
| 1963 | returnexecuted 1 time by 1 test: return QLocale::system().toDateTime(string, QLocale::LongFormat); QLocale::system().toDateTime(string, QLocale::LongFormat);executed 1 time by 1 test: return QLocale::system().toDateTime(string, QLocale::LongFormat); | 1 |
| 1964 | caseexecuted 1 time by 1 test: case Qt::LocaleDate: Qt::LocaleDate:executed 1 time by 1 test: case Qt::LocaleDate: | 1 |
| 1965 | caseexecuted 1 time by 1 test: case Qt::DefaultLocaleShortDate: Qt::DefaultLocaleShortDate:executed 1 time by 1 test: case Qt::DefaultLocaleShortDate: | 1 |
| 1966 | returnexecuted 2 times by 1 test: return QLocale().toDateTime(string, QLocale::ShortFormat); QLocale().toDateTime(string, QLocale::ShortFormat);executed 2 times by 1 test: return QLocale().toDateTime(string, QLocale::ShortFormat); | 2 |
| 1967 | caseexecuted 1 time by 1 test: case Qt::DefaultLocaleLongDate: Qt::DefaultLocaleLongDate:executed 1 time by 1 test: case Qt::DefaultLocaleLongDate: | 1 |
| 1968 | returnexecuted 1 time by 1 test: return QLocale().toDateTime(string, QLocale::LongFormat); QLocale().toDateTime(string, QLocale::LongFormat);executed 1 time by 1 test: return QLocale().toDateTime(string, QLocale::LongFormat); | 1 |
| 1969 | caseexecuted 30 times by 1 test: case Qt::RFC2822Date: Qt::RFC2822Date:executed 30 times by 1 test: case Qt::RFC2822Date: { | 30 |
| 1970 | const ParsedRfcDateTime rfc = rfcDateImpl(string); | - |
| 1971 | | - |
| 1972 | if (!rfc.date.isValid()| TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 19 times by 1 test |
|| !rfc.time.isValid()| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 16 times by 1 test |
) | 3-19 |
| 1973 | returnexecuted 14 times by 1 test: return QDateTime(); QDateTime();executed 14 times by 1 test: return QDateTime(); | 14 |
| 1974 | | - |
| 1975 | QDateTime dateTime(rfc.date, rfc.time, Qt::UTC); | - |
| 1976 | dateTime.setOffsetFromUtc(rfc.utcOffset); | - |
| 1977 | returnexecuted 16 times by 1 test: return dateTime; dateTime;executed 16 times by 1 test: return dateTime; | 16 |
| 1978 | } | - |
| 1979 | caseexecuted 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| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 65 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
) | 4-65 |
| 1982 | returnexecuted 4 times by 1 test: return QDateTime(); QDateTime();executed 4 times by 1 test: return QDateTime(); | 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()| TRUE | evaluated 7 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QVariant
| | FALSE | evaluated 58 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
) | 7-58 |
| 1989 | returnexecuted 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| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 57 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
) | 1-57 |
| 1991 | returnexecuted 1 time by 1 test: return QDateTime(date); QDateTime(date);executed 1 time by 1 test: return QDateTime(date); | 1 |
| 1992 | | - |
| 1993 | isoString = isoString.right(isoString.length() - 11); | - |
| 1994 | int offset = 0; | - |
| 1995 | | - |
| 1996 | if (isoString.endsWith(QLatin1Char('Z'))| TRUE | evaluated 7 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
| | FALSE | evaluated 50 times by 4 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
| | FALSE | evaluated 414 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
|| character == minus| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 406 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
; | 6-414 |
| 2010 | }executed 420 times by 4 tests: end of blockExecuted by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
while (--| TRUE | evaluated 384 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
| | FALSE | evaluated 36 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
signIndex >= 0| TRUE | evaluated 384 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
| | FALSE | evaluated 36 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
&& !found| TRUE | evaluated 370 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
| | FALSE | evaluated 14 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
|
); | 14-420 |
| 2011 | ++signIndex; | - |
| 2012 | } | - |
| 2013 | | - |
| 2014 | if (found| TRUE | evaluated 14 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QSqlQuery
| | FALSE | evaluated 36 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QNetworkReply
- tst_QSqlQuery
- tst_QVariant
|
) { | 14-36 |
| 2015 | bool ok; | - |
| 2016 | offset = fromOffsetString(isoString.mid(signIndex), &ok); | - |
| 2017 | if (!ok| TRUE | never evaluated | | FALSE | evaluated 14 times by 2 testsEvaluated 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 blockExecuted by:- tst_QDateTime
- tst_QSqlQuery
| 14 |
| 2022 | }executed 50 times by 4 tests: end of blockExecuted 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()| TRUE | never evaluated | | FALSE | evaluated 57 times by 4 testsEvaluated 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| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 52 times by 4 testsEvaluated 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); | 5 |
| 2032 | returnexecuted 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 | caseexecuted 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 ((| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 41 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
parts.count() < 5)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 41 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
|| (| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 40 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
parts.count() > 6)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 40 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
) | 1-41 |
| 2039 | returnexecuted 2 times by 1 test: return QDateTime(); QDateTime();executed 2 times by 1 test: return 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| TRUE | evaluated 40 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
| | FALSE | never 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| TRUE | never evaluated | | FALSE | evaluated 40 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
|| !day| TRUE | evaluated 14 times by 1 test | | FALSE | evaluated 26 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
) { | 0-40 |
| 2053 | month = fromShortMonthName(parts.at(2)); | - |
| 2054 | if (month| TRUE | evaluated 14 times by 1 test | | FALSE | never evaluated |
) { | 0-14 |
| 2055 | QStringRef dayStr = parts.at(1); | - |
| 2056 | if (dayStr.endsWith(QLatin1Char('.'))| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) { | 2-12 |
| 2057 | dayStr = dayStr.left(dayStr.size() - 1); | - |
| 2058 | day = dayStr.toInt(); | - |
| 2059 | }executed 12 times by 1 test: end of block | 12 |
| 2060 | }executed 14 times by 1 test: end of block | 14 |
| 2061 | }executed 14 times by 1 test: end of block | 14 |
| 2062 | | - |
| 2063 | | - |
| 2064 | if (!month| TRUE | never evaluated | | FALSE | evaluated 40 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
|| !day| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 37 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
) | 0-40 |
| 2065 | returnexecuted 3 times by 1 test: return QDateTime(); QDateTime();executed 3 times by 1 test: return QDateTime(); | 3 |
| 2066 | | - |
| 2067 | | - |
| 2068 | | - |
| 2069 | int year = 0; | - |
| 2070 | int yearPart = 0; | - |
| 2071 | int timePart = 0; | - |
| 2072 | if (parts.at(3).contains(QLatin1Char(':'))| TRUE | evaluated 23 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
| | FALSE | evaluated 14 times by 1 test |
) { | 14-23 |
| 2073 | yearPart = 4; | - |
| 2074 | timePart = 3; | - |
| 2075 | }executed 23 times by 3 tests: end of blockExecuted by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
else if (parts.at(4).contains(QLatin1Char(':'))| TRUE | evaluated 13 times by 1 test | | FALSE | evaluated 1 time by 1 test |
) { | 1-23 |
| 2076 | yearPart = 3; | - |
| 2077 | timePart = 4; | - |
| 2078 | }executed 13 times by 1 test: end of block else { | 13 |
| 2079 | returnexecuted 1 time by 1 test: return QDateTime(); QDateTime();executed 1 time by 1 test: return QDateTime(); | 1 |
| 2080 | } | - |
| 2081 | | - |
| 2082 | year = parts.at(yearPart).toInt(&ok); | - |
| 2083 | if (!ok| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 34 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
) | 2-34 |
| 2084 | returnexecuted 2 times by 1 test: return QDateTime(); QDateTime();executed 2 times by 1 test: return QDateTime(); | 2 |
| 2085 | | - |
| 2086 | QDate date(year, month, day); | - |
| 2087 | if (!date.isValid()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 32 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
) | 2-32 |
| 2088 | returnexecuted 2 times by 1 test: return QDateTime(); QDateTime();executed 2 times by 1 test: return QDateTime(); | 2 |
| 2089 | | - |
| 2090 | QVector<QStringRef> timeParts = parts.at(timePart).split(QLatin1Char(':')); | - |
| 2091 | if (timeParts.count() < 2| TRUE | never evaluated | | FALSE | evaluated 32 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
|| timeParts.count() > 3| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 31 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
) | 0-32 |
| 2092 | returnexecuted 1 time by 1 test: return QDateTime(); QDateTime();executed 1 time by 1 test: return QDateTime(); | 1 |
| 2093 | | - |
| 2094 | int hour = timeParts.at(0).toInt(&ok); | - |
| 2095 | if (!ok| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 30 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
) | 1-30 |
| 2096 | returnexecuted 1 time by 1 test: return QDateTime(); QDateTime();executed 1 time by 1 test: return QDateTime(); | 1 |
| 2097 | | - |
| 2098 | int minute = timeParts.at(1).toInt(&ok); | - |
| 2099 | if (!ok| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 29 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
) | 1-29 |
| 2100 | returnexecuted 1 time by 1 test: return QDateTime(); QDateTime();executed 1 time by 1 test: return QDateTime(); | 1 |
| 2101 | | - |
| 2102 | int second = 0; | - |
| 2103 | int millisecond = 0; | - |
| 2104 | if (timeParts.count() > 2| TRUE | evaluated 28 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
| | FALSE | evaluated 1 time by 1 test |
) { | 1-28 |
| 2105 | QVector<QStringRef> secondParts = timeParts.at(2).split(QLatin1Char('.')); | - |
| 2106 | if (secondParts.size() > 2| TRUE | never evaluated | | FALSE | evaluated 28 times by 3 testsEvaluated 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| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 27 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
) { | 1-27 |
| 2112 | returnexecuted 1 time by 1 test: return QDateTime(); QDateTime();executed 1 time by 1 test: return QDateTime(); | 1 |
| 2113 | } | - |
| 2114 | | - |
| 2115 | if (secondParts.size() > 1| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 26 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
|
) { | 1-26 |
| 2116 | millisecond = secondParts.last().toInt(&ok); | - |
| 2117 | if (!ok| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
) { | 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 | 1 |
| 2121 | }executed 27 times by 3 tests: end of blockExecuted by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
| 27 |
| 2122 | | - |
| 2123 | QTime time(hour, minute, second, millisecond); | - |
| 2124 | if (!time.isValid()| TRUE | never evaluated | | FALSE | evaluated 28 times by 3 testsEvaluated 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| TRUE | evaluated 15 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QNetworkRequest
| | FALSE | evaluated 13 times by 1 test |
) | 13-15 |
| 2128 | returnexecuted 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)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 12 times by 1 test |
) | 1-12 |
| 2132 | returnexecuted 1 time by 1 test: return QDateTime(); QDateTime();executed 1 time by 1 test: return QDateTime(); | 1 |
| 2133 | tz = tz.mid(3); | - |
| 2134 | if (!tz.isEmpty()| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 3 times by 1 test |
) { | 3-9 |
| 2135 | int offset = fromOffsetString(tz, &ok); | - |
| 2136 | if (!ok| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 5 times by 1 test |
) | 4-5 |
| 2137 | returnexecuted 4 times by 1 test: return QDateTime(); QDateTime();executed 4 times by 1 test: return QDateTime(); | 4 |
| 2138 | returnexecuted 5 times by 1 test: return QDateTime(date, time, Qt::OffsetFromUTC, offset); QDateTime(date, time, Qt::OffsetFromUTC, offset);executed 5 times by 1 test: return QDateTime(date, time, Qt::OffsetFromUTC, offset); | 5 |
| 2139 | } else { | - |
| 2140 | returnexecuted 3 times by 1 test: return QDateTime(date, time, Qt::UTC); QDateTime(date, time, Qt::UTC);executed 3 times by 1 test: return QDateTime(date, time, Qt::UTC); | 3 |
| 2141 | } | - |
| 2142 | } | - |
| 2143 | | - |
| 2144 | } | - |
| 2145 | | - |
| 2146 | return never executed: return QDateTime(); QDateTime();never executed: return QDateTime(); | 0 |
| 2147 | } | - |
| 2148 | QDateTime 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)| TRUE | evaluated 49 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNetworkCookieJar
- tst_QNetworkReply
| | FALSE | never evaluated |
&& dt.fromString(string, &date, &time)| TRUE | evaluated 41 times by 4 testsEvaluated by:- tst_QDateTime
- tst_QDateTimeEdit
- tst_QNetworkCookieJar
- tst_QNetworkReply
| | FALSE | evaluated 8 times by 1 test |
) | 0-49 |
| 2156 | returnexecuted 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 | returnexecuted 8 times by 1 test: return QDateTime(QDate(), QTime(-1, -1, -1)); QDateTime(QDate(), QTime(-1, -1, -1));executed 8 times by 1 test: return QDateTime(QDate(), QTime(-1, -1, -1)); | 8 |
| 2162 | } | - |
| 2163 | QDataStream &operator<<(QDataStream &out, const QDate &date) | - |
| 2164 | { | - |
| 2165 | if (out.version() < QDataStream::Qt_5_0| TRUE | evaluated 248 times by 4 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QSettings
- tst_QVariant
| | FALSE | evaluated 495 times by 10 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QDate
- tst_QDateTime
- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
- tst_QVariant
|
) | 248-495 |
| 2166 | returnexecuted 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 | returnexecuted 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 | } | - |
| 2170 | QDataStream &operator>>(QDataStream &in, QDate &date) | - |
| 2171 | { | - |
| 2172 | if (in.version() < QDataStream::Qt_5_0| TRUE | evaluated 250 times by 4 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QSettings
- tst_QVariant
| | FALSE | evaluated 491 times by 10 testsEvaluated 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| TRUE | evaluated 234 times by 3 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QSettings
| | FALSE | evaluated 16 times by 2 tests |
? jd : QDate::nullJd()); | 16-234 |
| 2177 | }executed 250 times by 4 tests: end of blockExecuted 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 blockExecuted by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QDate
- tst_QDateTime
- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
- tst_QVariant
| 491 |
| 2182 | | - |
| 2183 | returnexecuted 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 | } | - |
| 2185 | QDataStream &operator<<(QDataStream &out, const QTime &time) | - |
| 2186 | { | - |
| 2187 | if (out.version() >= QDataStream::Qt_4_0| TRUE | evaluated 872 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QDateTime
- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
- tst_QVariant
| | FALSE | evaluated 73 times by 2 testsEvaluated by:- tst_QDataStream
- tst_QDateTime
|
) { | 73-872 |
| 2188 | returnexecuted 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 | returnexecuted 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 | } | - |
| 2194 | QDataStream &operator>>(QDataStream &in, QTime &time) | - |
| 2195 | { | - |
| 2196 | quint32 ds; | - |
| 2197 | in >> ds; | - |
| 2198 | if (in.version() >= QDataStream::Qt_4_0| TRUE | evaluated 870 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QDateTime
- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
- tst_QVariant
| | FALSE | evaluated 73 times by 2 testsEvaluated by:- tst_QDataStream
- tst_QDateTime
|
) { | 73-870 |
| 2199 | time.mds = int(ds); | - |
| 2200 | }executed 870 times by 9 tests: end of blockExecuted 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 = (| TRUE | evaluated 25 times by 2 testsEvaluated by:- tst_QDataStream
- tst_QDateTime
| | FALSE | evaluated 48 times by 1 test |
ds == 0)| TRUE | evaluated 25 times by 2 testsEvaluated by:- tst_QDataStream
- tst_QDateTime
| | FALSE | evaluated 48 times by 1 test |
? QTime::NullTime : int(ds); | 25-48 |
| 2203 | }executed 73 times by 2 tests: end of blockExecuted by:- tst_QDataStream
- tst_QDateTime
| 73 |
| 2204 | returnexecuted 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 | } | - |
| 2206 | QDataStream &operator<<(QDataStream &out, const QDateTime &dateTime) | - |
| 2207 | { | - |
| 2208 | QPair<QDate, QTime> dateAndTime; | - |
| 2209 | | - |
| 2210 | if (out.version() >= QDataStream::Qt_5_2| TRUE | evaluated 325 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QDateTime
- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
- tst_QVariant
| | FALSE | evaluated 168 times by 3 testsEvaluated 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| TRUE | evaluated 11 times by 3 testsEvaluated by:- tst_QDateTime
- tst_QNetworkDiskCache
- tst_QSettings
| | FALSE | evaluated 314 times by 8 testsEvaluated 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| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 313 times by 8 testsEvaluated 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(); | 1 |
| 2220 | | - |
| 2221 | | - |
| 2222 | }executed 325 times by 9 tests: end of blockExecuted 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| TRUE | evaluated 9 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QVariant
| | FALSE | evaluated 159 times by 3 testsEvaluated by:- tst_QDateTime
- tst_QNetworkDiskCache
- tst_QVariant
|
) { | 9-325 |
| 2223 | | - |
| 2224 | | - |
| 2225 | | - |
| 2226 | | - |
| 2227 | | - |
| 2228 | dateAndTime = (dateTime.isValid()| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 1 time by 1 test |
? dateTime.toUTC() : dateTime).d->getDateTime(); | 1-8 |
| 2229 | out << dateAndTime << qint8(dateTime.timeSpec()); | - |
| 2230 | | - |
| 2231 | }executed 9 times by 2 tests: end of blockExecuted by:- tst_QDateTime
- tst_QVariant
else if (out.version() >= QDataStream::Qt_4_0| TRUE | evaluated 87 times by 3 testsEvaluated by:- tst_QDateTime
- tst_QNetworkDiskCache
- tst_QVariant
| | FALSE | evaluated 72 times by 1 test |
) { | 9-87 |
| 2232 | | - |
| 2233 | | - |
| 2234 | dateAndTime = dateTime.d->getDateTime(); | - |
| 2235 | out << dateAndTime; | - |
| 2236 | switch (dateTime.timeSpec()) { | - |
| 2237 | caseexecuted 56 times by 1 test: case Qt::UTC: Qt::UTC:executed 56 times by 1 test: case Qt::UTC: | 56 |
| 2238 | out << (qint8)QDateTimePrivate::UTC; | - |
| 2239 | break;executed 56 times by 1 test: break; | 56 |
| 2240 | caseexecuted 1 time by 1 test: case Qt::OffsetFromUTC: Qt::OffsetFromUTC:executed 1 time by 1 test: case Qt::OffsetFromUTC: | 1 |
| 2241 | out << (qint8)QDateTimePrivate::OffsetFromUTC; | - |
| 2242 | break;executed 1 time by 1 test: break; | 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 | caseexecuted 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 blockExecuted 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 | 72 |
| 2258 | | - |
| 2259 | returnexecuted 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 | } | - |
| 2261 | QDataStream &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| TRUE | evaluated 303 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDataStream
- tst_QDateTime
- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QSettings
- tst_QVariant
| | FALSE | evaluated 116 times by 3 testsEvaluated 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| TRUE | evaluated 11 times by 3 testsEvaluated by:- tst_QDateTime
- tst_QNetworkDiskCache
- tst_QSettings
| | FALSE | evaluated 292 times by 8 testsEvaluated 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 blockExecuted by:- tst_QDateTime
- tst_QNetworkDiskCache
- tst_QSettings
else if (spec == Qt::TimeZone| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 291 times by 8 testsEvaluated 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 else { | 1 |
| 2286 | dateTime = QDateTime(dt, tm, spec); | - |
| 2287 | }executed 291 times by 8 tests: end of blockExecuted 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| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_QDateTime
- tst_QVariant
| | FALSE | evaluated 110 times by 3 testsEvaluated 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 blockExecuted by:- tst_QDateTime
- tst_QVariant
else if (in.version() >= QDataStream::Qt_4_0| TRUE | evaluated 62 times by 3 testsEvaluated by:- tst_QDateTime
- tst_QNetworkDiskCache
- tst_QVariant
| | FALSE | evaluated 48 times by 1 test |
) { | 6-62 |
| 2298 | | - |
| 2299 | | - |
| 2300 | in >> dt >> tm >> ts; | - |
| 2301 | switch ((QDateTimePrivate::Spec)ts) { | - |
| 2302 | caseexecuted 28 times by 1 test: case QDateTimePrivate::UTC: QDateTimePrivate::UTC:executed 28 times by 1 test: case QDateTimePrivate::UTC: | 28 |
| 2303 | spec = Qt::UTC; | - |
| 2304 | break;executed 28 times by 1 test: break; | 28 |
| 2305 | caseexecuted 2 times by 1 test: case QDateTimePrivate::OffsetFromUTC: QDateTimePrivate::OffsetFromUTC:executed 2 times by 1 test: case QDateTimePrivate::OffsetFromUTC: | 2 |
| 2306 | spec = Qt::OffsetFromUTC; | - |
| 2307 | break;executed 2 times by 1 test: break; | 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 | caseexecuted 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 blockExecuted 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 | 48 |
| 2329 | | - |
| 2330 | returnexecuted 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 | | - |
| 2339 | QDebug operator<<(QDebug dbg, const QDate &date) | - |
| 2340 | { | - |
| 2341 | QDebugStateSaver saver(dbg); | - |
| 2342 | dbg.nospace() << "QDate(" << date.toString(Qt::ISODate) << ')'; | - |
| 2343 | returnexecuted 3 times by 2 tests: return dbg; dbg;executed 3 times by 2 tests: return dbg; | 3 |
| 2344 | } | - |
| 2345 | | - |
| 2346 | QDebug 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); returnexecuted 1 time by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 1 time by 1 test: return qstring_literal_temp; }())) << ')'; | 1 |
| 2350 | returnexecuted 1 time by 1 test: return dbg; dbg;executed 1 time by 1 test: return dbg; | 1 |
| 2351 | } | - |
| 2352 | | - |
| 2353 | QDebug 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); returnexecuted 2 times by 2 tests: return qstring_literal_temp; qstring_literal_temp;executed 2 times by 2 tests: return qstring_literal_temp; }())) | 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 | caseexecuted 2 times by 2 tests: case Qt::LocalTime: Qt::LocalTime:executed 2 times by 2 tests: case Qt::LocalTime: | 2 |
| 2372 | break;executed 2 times by 2 tests: break; | 2 |
| 2373 | } | - |
| 2374 | returnexecuted 2 times by 2 tests: return dbg << ')'; dbg << ')';executed 2 times by 2 tests: return dbg << ')'; | 2 |
| 2375 | } | - |
| 2376 | uint qHash(const QDateTime &key, uint seed) | - |
| 2377 | { | - |
| 2378 | | - |
| 2379 | | - |
| 2380 | | - |
| 2381 | | - |
| 2382 | returnexecuted 16 times by 1 test: return qHash(key.toMSecsSinceEpoch(), seed); qHash(key.toMSecsSinceEpoch(), seed);executed 16 times by 1 test: return qHash(key.toMSecsSinceEpoch(), seed); | 16 |
| 2383 | } | - |
| 2384 | | - |
| 2385 | | - |
| 2386 | | - |
| 2387 | | - |
| 2388 | | - |
| 2389 | | - |
| 2390 | | - |
| 2391 | uint qHash(const QDate &key, uint seed) noexcept | - |
| 2392 | { | - |
| 2393 | returnexecuted 6 times by 1 test: return qHash(key.toJulianDay(), seed); qHash(key.toJulianDay(), seed);executed 6 times by 1 test: return qHash(key.toJulianDay(), seed); | 6 |
| 2394 | } | - |
| 2395 | | - |
| 2396 | | - |
| 2397 | | - |
| 2398 | | - |
| 2399 | | - |
| 2400 | | - |
| 2401 | | - |
| 2402 | uint qHash(const QTime &key, uint seed) noexcept | - |
| 2403 | { | - |
| 2404 | returnexecuted 4 times by 1 test: return qHash(key.msecsSinceStartOfDay(), seed); qHash(key.msecsSinceStartOfDay(), seed);executed 4 times by 1 test: return qHash(key.msecsSinceStartOfDay(), seed); | 4 |
| 2405 | } | - |
| 2406 | | - |
| 2407 | | - |
| | |