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