Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | #include "qutfcodec_p.h" | - |
36 | #include "qlist.h" | - |
37 | #include "qendian.h" | - |
38 | #include "qchar.h" | - |
39 | | - |
40 | #include "private/qsimd_p.h" | - |
41 | #include "private/qstringiterator_p.h" | - |
42 | | - |
43 | QT_BEGIN_NAMESPACE | - |
44 | | - |
45 | enum { Endian = 0, Data = 1 }; | - |
46 | | - |
47 | static const uchar utf8bom[] = { 0xef, 0xbb, 0xbf }; | - |
48 | | - |
49 | #if defined(__SSE2__) && defined(QT_COMPILER_SUPPORTS_SSE2) | - |
50 | static inline bool simdEncodeAscii(uchar *&dst, const ushort *&nextAscii, const ushort *&src, const ushort *end) | - |
51 | { | - |
52 | | - |
53 | for ( ; end - src >= 16; src += 16, dst += 16) {TRUE | evaluated 2522900 times by 392 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- ...
| FALSE | evaluated 4467936 times by 419 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
|
| 2522900-4467936 |
54 | __m128i data1 = _mm_loadu_si128((const __m128i*)src); | - |
55 | __m128i data2 = _mm_loadu_si128(1+(const __m128i*)src); | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | __m128i packed = _mm_packus_epi16(data1, data2); | - |
67 | __m128i nonAscii = _mm_cmpgt_epi8(packed, _mm_setzero_si128()); | - |
68 | | - |
69 | | - |
70 | _mm_storeu_si128((__m128i*)dst, packed); | - |
71 | | - |
72 | | - |
73 | ushort n = ~_mm_movemask_epi8(nonAscii); | - |
74 | if (n) {TRUE | evaluated 3986 times by 23 testsEvaluated by:- tst_QDnsLookup
- tst_QFileSystemWatcher
- tst_QFtp
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QSqlQuery
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_static
- tst_QString
- tst_QStringBuilder3
- tst_QStringBuilder4
- tst_QStringRef
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_QTextCodec
- tst_QTextDocument
- tst_QTextLayout
- tst_QTextStream
- tst_QUrlQuery
- tst_QXmlStream
- tst_Selftests
- tst_Utf8
| FALSE | evaluated 2518914 times by 390 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- ...
|
| 3986-2518914 |
75 | | - |
76 | | - |
77 | | - |
78 | nextAscii = src + _bit_scan_reverse(n) + 1; | - |
79 | | - |
80 | n = _bit_scan_forward(n); | - |
81 | dst += n; | - |
82 | src += n; | - |
83 | return false;executed 3986 times by 23 tests: return false; Executed by:- tst_QDnsLookup
- tst_QFileSystemWatcher
- tst_QFtp
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QSqlQuery
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_static
- tst_QString
- tst_QStringBuilder3
- tst_QStringBuilder4
- tst_QStringRef
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_QTextCodec
- tst_QTextDocument
- tst_QTextLayout
- tst_QTextStream
- tst_QUrlQuery
- tst_QXmlStream
- tst_Selftests
- tst_Utf8
| 3986 |
84 | } | - |
85 | }executed 2518914 times by 390 tests: end of block Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- ...
| 2518914 |
86 | return src == end;executed 4467936 times by 419 tests: return src == end; Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
| 4467936 |
87 | } | - |
88 | | - |
89 | static inline bool simdDecodeAscii(ushort *&dst, const uchar *&nextAscii, const uchar *&src, const uchar *end) | - |
90 | { | - |
91 | | - |
92 | for ( ; end - src >= 16; src += 16, dst += 16) {TRUE | evaluated 4114649 times by 536 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAuthenticator
- ...
| FALSE | evaluated 58704522 times by 573 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- ...
|
| 4114649-58704522 |
93 | __m128i data = _mm_loadu_si128((const __m128i*)src); | - |
94 | | - |
95 | #ifdef __AVX2__ | - |
96 | const int BitSpacing = 2; | - |
97 | | - |
98 | const __m256i extended = _mm256_cvtepu8_epi16(data); | - |
99 | | - |
100 | uint n = _mm256_movemask_epi8(extended); | - |
101 | if (!n) { | - |
102 | | - |
103 | _mm256_storeu_si256((__m256i*)dst, extended); | - |
104 | continue; | - |
105 | } | - |
106 | #else | - |
107 | const int BitSpacing = 1; | - |
108 | | - |
109 | | - |
110 | | - |
111 | uint n = _mm_movemask_epi8(data); | - |
112 | if (!n) {TRUE | evaluated 3938446 times by 532 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAuthenticator
- ...
| FALSE | evaluated 176203 times by 45 testsEvaluated by:- tst_NetworkSelfTest
- tst_QComplexText
- tst_QDateTime
- tst_QDebug
- tst_QDnsLookup
- tst_QFileInfo
- tst_QFileSystemWatcher
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QLabel
- tst_QLineEdit
- tst_QMimeDatabase
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlQuery
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QString
- tst_QStringBuilder1
- ...
|
| 176203-3938446 |
113 | | - |
114 | _mm_storeu_si128((__m128i*)dst, _mm_unpacklo_epi8(data, _mm_setzero_si128())); | - |
115 | _mm_storeu_si128(1+(__m128i*)dst, _mm_unpackhi_epi8(data, _mm_setzero_si128())); | - |
116 | continue;executed 3938446 times by 532 tests: continue; Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAuthenticator
- ...
| 3938446 |
117 | } | - |
118 | #endif | - |
119 | | - |
120 | | - |
121 | while (!(n & 1)) {TRUE | evaluated 849751 times by 44 testsEvaluated by:- tst_NetworkSelfTest
- tst_QComplexText
- tst_QDateTime
- tst_QDebug
- tst_QDnsLookup
- tst_QFileInfo
- tst_QFileSystemWatcher
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QLabel
- tst_QLineEdit
- tst_QMimeDatabase
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlQuery
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QString
- tst_QStringBuilder1
- ...
| FALSE | evaluated 176203 times by 45 testsEvaluated by:- tst_NetworkSelfTest
- tst_QComplexText
- tst_QDateTime
- tst_QDebug
- tst_QDnsLookup
- tst_QFileInfo
- tst_QFileSystemWatcher
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QLabel
- tst_QLineEdit
- tst_QMimeDatabase
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlQuery
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QString
- tst_QStringBuilder1
- ...
|
| 176203-849751 |
122 | *dst++ = *src++; | - |
123 | n >>= BitSpacing; | - |
124 | }executed 849751 times by 44 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QComplexText
- tst_QDateTime
- tst_QDebug
- tst_QDnsLookup
- tst_QFileInfo
- tst_QFileSystemWatcher
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QLabel
- tst_QLineEdit
- tst_QMimeDatabase
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlQuery
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QString
- tst_QStringBuilder1
- ...
| 849751 |
125 | | - |
126 | | - |
127 | | - |
128 | | - |
129 | n = _bit_scan_reverse(n); | - |
130 | nextAscii = src + (n / BitSpacing) + 1; | - |
131 | return false;executed 176203 times by 45 tests: return false; Executed by:- tst_NetworkSelfTest
- tst_QComplexText
- tst_QDateTime
- tst_QDebug
- tst_QDnsLookup
- tst_QFileInfo
- tst_QFileSystemWatcher
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QLabel
- tst_QLineEdit
- tst_QMimeDatabase
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlQuery
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QString
- tst_QStringBuilder1
- ...
| 176203 |
132 | | - |
133 | } | - |
134 | return src == end;executed 58704522 times by 573 tests: return src == end; Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- ...
| 58704522 |
135 | } | - |
136 | #else | - |
137 | static inline bool simdEncodeAscii(uchar *, const ushort *, const ushort *, const ushort *) | - |
138 | { | - |
139 | return false; | - |
140 | } | - |
141 | | - |
142 | static inline bool simdDecodeAscii(ushort *, const uchar *, const uchar *, const uchar *) | - |
143 | { | - |
144 | return false; | - |
145 | } | - |
146 | #endif | - |
147 | | - |
148 | QByteArray QUtf8::convertFromUnicode(const QChar *uc, int len) | - |
149 | { | - |
150 | | - |
151 | QByteArray result(len * 3, Qt::Uninitialized); | - |
152 | uchar *dst = reinterpret_cast<uchar *>(const_cast<char *>(result.constData())); | - |
153 | const ushort *src = reinterpret_cast<const ushort *>(uc); | - |
154 | const ushort *const end = src + len; | - |
155 | | - |
156 | while (src != end) {TRUE | evaluated 109617 times by 247 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QAuthenticator
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- ...
| FALSE | evaluated 106493 times by 245 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QAuthenticator
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- ...
|
| 106493-109617 |
157 | const ushort *nextAscii = end; | - |
158 | if (simdEncodeAscii(dst, nextAscii, src, end))TRUE | evaluated 3465 times by 67 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QActionGroup
- tst_QApplication
- tst_QAuthenticator
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QColorDialog
- tst_QComplexText
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDBusPendingReply
- tst_QDBusReply
- tst_QDateTime
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFiledialog
- tst_QFont
- tst_QFontCache
- ...
| FALSE | evaluated 106152 times by 245 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QAuthenticator
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- ...
|
| 3465-106152 |
159 | break;executed 3465 times by 67 tests: break; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QActionGroup
- tst_QApplication
- tst_QAuthenticator
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QColorDialog
- tst_QComplexText
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDBusPendingReply
- tst_QDBusReply
- tst_QDateTime
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFiledialog
- tst_QFont
- tst_QFontCache
- ...
| 3465 |
160 | | - |
161 | do { | - |
162 | ushort uc = *src++; | - |
163 | int res = QUtf8Functions::toUtf8<QUtf8BaseTraits>(uc, dst, src, end); | - |
164 | if (res < 0) {TRUE | never evaluated | FALSE | evaluated 605299 times by 245 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QAuthenticator
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- ...
|
| 0-605299 |
165 | | - |
166 | *dst++ = '?'; | - |
167 | } never executed: end of block | 0 |
168 | } while (src < nextAscii);executed 605299 times by 245 tests: end of block Executed by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QAuthenticator
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- ...
TRUE | evaluated 499147 times by 240 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QAuthenticator
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- ...
| FALSE | evaluated 106152 times by 245 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QAuthenticator
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- ...
|
| 106152-605299 |
169 | }executed 106152 times by 245 tests: end of block Executed by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QAuthenticator
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- ...
| 106152 |
170 | | - |
171 | result.truncate(dst - reinterpret_cast<uchar *>(const_cast<char *>(result.constData()))); | - |
172 | return result;executed 109958 times by 247 tests: return result; Executed by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QAuthenticator
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- ...
| 109958 |
173 | } | - |
174 | | - |
175 | QByteArray QUtf8::convertFromUnicode(const QChar *uc, int len, QTextCodec::ConverterState *state) | - |
176 | { | - |
177 | uchar replacement = '?'; | - |
178 | int rlen = 3*len; | - |
179 | int surrogate_high = -1; | - |
180 | if (state) {TRUE | evaluated 39366 times by 21 testsEvaluated by:- tst_QDBusXmlParser
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QKeyEvent
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QPlainTextEdit
- tst_QSaveFile
- tst_QSettings
- tst_QTextCodec
- tst_QTextEdit
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
- tst_qdbusxml2cpp - unknown status
| FALSE | evaluated 531831 times by 407 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
|
| 39366-531831 |
181 | if (state->flags & QTextCodec::ConvertInvalidToNull)TRUE | evaluated 2468 times by 2 testsEvaluated by:- tst_QDBusXmlParser
- tst_QXmlSimpleReader
| FALSE | evaluated 36898 times by 19 testsEvaluated by:- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QKeyEvent
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QPlainTextEdit
- tst_QSaveFile
- tst_QSettings
- tst_QTextCodec
- tst_QTextEdit
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qdbusxml2cpp - unknown status
|
| 2468-36898 |
182 | replacement = 0;executed 2468 times by 2 tests: replacement = 0; Executed by:- tst_QDBusXmlParser
- tst_QXmlSimpleReader
| 2468 |
183 | if (!(state->flags & QTextCodec::IgnoreHeader))TRUE | evaluated 2721 times by 4 testsEvaluated by:- tst_QDBusXmlParser
- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_Utf8
| FALSE | evaluated 36645 times by 19 testsEvaluated by:- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QKeyEvent
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QPlainTextEdit
- tst_QSaveFile
- tst_QSettings
- tst_QTextCodec
- tst_QTextEdit
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qdbusxml2cpp - unknown status
|
| 2721-36645 |
184 | rlen += 3;executed 2721 times by 4 tests: rlen += 3; Executed by:- tst_QDBusXmlParser
- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_Utf8
| 2721 |
185 | if (state->remainingChars)TRUE | evaluated 6 times by 1 test | FALSE | evaluated 39360 times by 21 testsEvaluated by:- tst_QDBusXmlParser
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QKeyEvent
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QPlainTextEdit
- tst_QSaveFile
- tst_QSettings
- tst_QTextCodec
- tst_QTextEdit
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
- tst_qdbusxml2cpp - unknown status
|
| 6-39360 |
186 | surrogate_high = state->state_data[0];executed 6 times by 1 test: surrogate_high = state->state_data[0]; | 6 |
187 | }executed 39366 times by 21 tests: end of block Executed by:- tst_QDBusXmlParser
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QKeyEvent
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QPlainTextEdit
- tst_QSaveFile
- tst_QSettings
- tst_QTextCodec
- tst_QTextEdit
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
- tst_qdbusxml2cpp - unknown status
| 39366 |
188 | | - |
189 | | - |
190 | QByteArray rstr(rlen, Qt::Uninitialized); | - |
191 | uchar *cursor = reinterpret_cast<uchar *>(const_cast<char *>(rstr.constData())); | - |
192 | const ushort *src = reinterpret_cast<const ushort *>(uc); | - |
193 | const ushort *const end = src + len; | - |
194 | | - |
195 | int invalid = 0; | - |
196 | if (state && !(state->flags & QTextCodec::IgnoreHeader)) {TRUE | evaluated 39366 times by 21 testsEvaluated by:- tst_QDBusXmlParser
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QKeyEvent
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QPlainTextEdit
- tst_QSaveFile
- tst_QSettings
- tst_QTextCodec
- tst_QTextEdit
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
- tst_qdbusxml2cpp - unknown status
| FALSE | evaluated 531831 times by 407 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
|
TRUE | evaluated 2721 times by 4 testsEvaluated by:- tst_QDBusXmlParser
- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_Utf8
| FALSE | evaluated 36645 times by 19 testsEvaluated by:- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QKeyEvent
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QPlainTextEdit
- tst_QSaveFile
- tst_QSettings
- tst_QTextCodec
- tst_QTextEdit
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qdbusxml2cpp - unknown status
|
| 2721-531831 |
197 | | - |
198 | *cursor++ = utf8bom[0]; | - |
199 | *cursor++ = utf8bom[1]; | - |
200 | *cursor++ = utf8bom[2]; | - |
201 | }executed 2721 times by 4 tests: end of block Executed by:- tst_QDBusXmlParser
- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_Utf8
| 2721 |
202 | | - |
203 | const ushort *nextAscii = src; | - |
204 | while (src != end) {TRUE | evaluated 4373456 times by 406 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
| FALSE | evaluated 552095 times by 406 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
|
| 552095-4373456 |
205 | int res; | - |
206 | ushort uc; | - |
207 | if (surrogate_high != -1) {TRUE | evaluated 6 times by 1 test | FALSE | evaluated 4373450 times by 406 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
|
| 6-4373450 |
208 | uc = surrogate_high; | - |
209 | surrogate_high = -1; | - |
210 | res = QUtf8Functions::toUtf8<QUtf8BaseTraits>(uc, cursor, src, end); | - |
211 | } else {executed 6 times by 1 test: end of block | 6 |
212 | if (src >= nextAscii && simdEncodeAscii(cursor, nextAscii, src, end))TRUE | evaluated 4362305 times by 406 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
| FALSE | evaluated 11145 times by 10 testsEvaluated by:- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_static
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlQuery
- tst_QXmlStream
- tst_Selftests
|
TRUE | evaluated 19096 times by 180 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAccessibility
- tst_QActionGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
| FALSE | evaluated 4343209 times by 403 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- ...
|
| 11145-4362305 |
213 | break;executed 19096 times by 180 tests: break; Executed by:- tst_Collections
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAccessibility
- tst_QActionGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QClipboard
- tst_QColorDialog
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- ...
| 19096 |
214 | | - |
215 | uc = *src++; | - |
216 | res = QUtf8Functions::toUtf8<QUtf8BaseTraits>(uc, cursor, src, end); | - |
217 | }executed 4354354 times by 403 tests: end of block Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- ...
| 4354354 |
218 | if (Q_LIKELY(res >= 0))TRUE | evaluated 4354354 times by 403 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- ...
| FALSE | evaluated 6 times by 1 test |
| 6-4354354 |
219 | continue;executed 4354354 times by 403 tests: continue; Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- ...
| 4354354 |
220 | | - |
221 | if (res == QUtf8BaseTraits::Error) {TRUE | never evaluated | FALSE | evaluated 6 times by 1 test |
| 0-6 |
222 | | - |
223 | ++invalid; | - |
224 | *cursor++ = replacement; | - |
225 | } else if (res == QUtf8BaseTraits::EndOfString) { never executed: end of block TRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
| 0-6 |
226 | surrogate_high = uc; | - |
227 | break;executed 6 times by 1 test: break; | 6 |
228 | } | - |
229 | } never executed: end of block | 0 |
230 | | - |
231 | rstr.resize(cursor - (const uchar*)rstr.constData()); | - |
232 | if (state) {TRUE | evaluated 39366 times by 21 testsEvaluated by:- tst_QDBusXmlParser
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QKeyEvent
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QPlainTextEdit
- tst_QSaveFile
- tst_QSettings
- tst_QTextCodec
- tst_QTextEdit
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
- tst_qdbusxml2cpp - unknown status
| FALSE | evaluated 531831 times by 407 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
|
| 39366-531831 |
233 | state->invalidChars += invalid; | - |
234 | state->flags |= QTextCodec::IgnoreHeader; | - |
235 | state->remainingChars = 0; | - |
236 | if (surrogate_high >= 0) {TRUE | evaluated 6 times by 1 test | FALSE | evaluated 39360 times by 21 testsEvaluated by:- tst_QDBusXmlParser
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QKeyEvent
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QPlainTextEdit
- tst_QSaveFile
- tst_QSettings
- tst_QTextCodec
- tst_QTextEdit
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
- tst_qdbusxml2cpp - unknown status
|
| 6-39360 |
237 | state->remainingChars = 1; | - |
238 | state->state_data[0] = surrogate_high; | - |
239 | }executed 6 times by 1 test: end of block | 6 |
240 | }executed 39366 times by 21 tests: end of block Executed by:- tst_QDBusXmlParser
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QKeyEvent
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QPlainTextEdit
- tst_QSaveFile
- tst_QSettings
- tst_QTextCodec
- tst_QTextEdit
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
- tst_qdbusxml2cpp - unknown status
| 39366 |
241 | return rstr;executed 571197 times by 407 tests: return rstr; Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
| 571197 |
242 | } | - |
243 | | - |
244 | QString QUtf8::convertToUnicode(const char *chars, int len) | - |
245 | { | - |
246 | | - |
247 | | - |
248 | | - |
249 | | - |
250 | | - |
251 | | - |
252 | | - |
253 | | - |
254 | | - |
255 | | - |
256 | | - |
257 | | - |
258 | QString result(len, Qt::Uninitialized); | - |
259 | | - |
260 | ushort *dst = reinterpret_cast<ushort *>(const_cast<QChar *>(result.constData())); | - |
261 | const uchar *src = reinterpret_cast<const uchar *>(chars); | - |
262 | const uchar *end = src + len; | - |
263 | | - |
264 | | - |
265 | const uchar *nextAscii = end; | - |
266 | if (!simdDecodeAscii(dst, nextAscii, src, end)) {TRUE | evaluated 7292129 times by 550 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- ...
| FALSE | evaluated 516071 times by 294 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QAlgorithms
- tst_QApplication
- tst_QAuthenticator
- tst_QBitArray
- tst_QBoxLayout
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColor
- tst_QColorDialog
- tst_QColumnView
- ...
|
| 516071-7292129 |
267 | | - |
268 | | - |
269 | if (Q_UNLIKELY(src == reinterpret_cast<const uchar *>(chars))TRUE | evaluated 6758996 times by 520 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- ...
| FALSE | evaluated 533133 times by 500 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAuthenticator
- ...
|
| 533133-6758996 |
270 | && end - src >= 3TRUE | evaluated 5056280 times by 390 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QAsn1Element
- tst_QAuthenticator
- ...
| FALSE | evaluated 1702716 times by 438 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- ...
|
| 1702716-5056280 |
271 | && Q_UNLIKELY(src[0] == utf8bom[0] && src[1] == utf8bom[1] && src[2] == utf8bom[2])) {TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QString
- tst_QUrlInternal
| FALSE | evaluated 5056275 times by 390 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QAsn1Element
- tst_QAuthenticator
- ...
|
| 5-5056275 |
272 | src += 3; | - |
273 | }executed 5 times by 2 tests: end of block Executed by:- tst_QString
- tst_QUrlInternal
| 5 |
274 | | - |
275 | while (src < end) {TRUE | evaluated 7341615 times by 550 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- ...
| FALSE | evaluated 7292121 times by 550 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- ...
|
| 7292121-7341615 |
276 | nextAscii = end; | - |
277 | if (simdDecodeAscii(dst, nextAscii, src, end))TRUE | evaluated 8 times by 1 test | FALSE | evaluated 7341607 times by 550 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- ...
|
| 8-7341607 |
278 | break;executed 8 times by 1 test: break; | 8 |
279 | | - |
280 | do { | - |
281 | uchar b = *src++; | - |
282 | int res = QUtf8Functions::fromUtf8<QUtf8BaseTraits>(b, dst, src, end); | - |
283 | if (res < 0) {TRUE | evaluated 530 times by 5 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
| FALSE | evaluated 43709384 times by 550 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- ...
|
| 530-43709384 |
284 | | - |
285 | *dst++ = QChar::ReplacementCharacter; | - |
286 | }executed 530 times by 5 tests: end of block Executed by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
| 530 |
287 | } while (src < nextAscii);executed 43707714 times by 550 tests: end of block Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- ...
TRUE | evaluated 36368307 times by 547 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- ...
| FALSE | evaluated 7341607 times by 550 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- ...
|
| 7341607-43707714 |
288 | }executed 7341607 times by 550 tests: end of block Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- ...
| 7341607 |
289 | }executed 7292129 times by 550 tests: end of block Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- ...
| 7292129 |
290 | | - |
291 | result.truncate(dst - reinterpret_cast<const ushort *>(result.constData())); | - |
292 | return result;executed 7808200 times by 550 tests: return result; Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- ...
| 7808200 |
293 | } | - |
294 | | - |
295 | QString QUtf8::convertToUnicode(const char *chars, int len, QTextCodec::ConverterState *state) | - |
296 | { | - |
297 | bool headerdone = false; | - |
298 | ushort replacement = QChar::ReplacementCharacter; | - |
299 | int invalid = 0; | - |
300 | int res; | - |
301 | uchar ch = 0; | - |
302 | | - |
303 | | - |
304 | | - |
305 | | - |
306 | | - |
307 | | - |
308 | | - |
309 | | - |
310 | | - |
311 | | - |
312 | | - |
313 | QString result(len + 1, Qt::Uninitialized); | - |
314 | | - |
315 | ushort *dst = reinterpret_cast<ushort *>(const_cast<QChar *>(result.constData())); | - |
316 | const uchar *src = reinterpret_cast<const uchar *>(chars); | - |
317 | const uchar *end = src + len; | - |
318 | | - |
319 | if (state) {TRUE | evaluated 41144891 times by 34 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- tst_QDBusInterface
- tst_QDBusMetaObject
- tst_QDBusPendingCall
- tst_QDBusThreading
- tst_QDBusXmlParser
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QLayout
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QProcess
- tst_QSettings
- tst_QSplitter
- tst_QTcpSocket
- tst_QTemporaryDir
- tst_QTextCodec
- tst_QTextStream
- ...
| FALSE | evaluated 272414 times by 337 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
|
| 272414-41144891 |
320 | if (state->flags & QTextCodec::IgnoreHeader)TRUE | evaluated 41134414 times by 6 testsEvaluated by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 10477 times by 34 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- tst_QDBusInterface
- tst_QDBusMetaObject
- tst_QDBusPendingCall
- tst_QDBusThreading
- tst_QDBusXmlParser
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QLayout
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QProcess
- tst_QSettings
- tst_QSplitter
- tst_QTcpSocket
- tst_QTemporaryDir
- tst_QTextCodec
- tst_QTextStream
- ...
|
| 10477-41134414 |
321 | headerdone = true;executed 41134414 times by 6 tests: headerdone = true; Executed by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 41134414 |
322 | if (state->flags & QTextCodec::ConvertInvalidToNull)TRUE | evaluated 4 times by 1 test | FALSE | evaluated 41144887 times by 34 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- tst_QDBusInterface
- tst_QDBusMetaObject
- tst_QDBusPendingCall
- tst_QDBusThreading
- tst_QDBusXmlParser
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QLayout
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QProcess
- tst_QSettings
- tst_QSplitter
- tst_QTcpSocket
- tst_QTemporaryDir
- tst_QTextCodec
- tst_QTextStream
- ...
|
| 4-41144887 |
323 | replacement = QChar::Null;executed 4 times by 1 test: replacement = QChar::Null; | 4 |
324 | if (state->remainingChars) {TRUE | evaluated 324 times by 6 testsEvaluated by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 41144567 times by 34 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- tst_QDBusInterface
- tst_QDBusMetaObject
- tst_QDBusPendingCall
- tst_QDBusThreading
- tst_QDBusXmlParser
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QLayout
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QProcess
- tst_QSettings
- tst_QSplitter
- tst_QTcpSocket
- tst_QTemporaryDir
- tst_QTextCodec
- tst_QTextStream
- ...
|
| 324-41144567 |
325 | | - |
326 | uchar remainingCharsData[4]; | - |
327 | int remainingCharsCount = state->remainingChars; | - |
328 | int newCharsToCopy = qMin<int>(sizeof(remainingCharsData) - remainingCharsCount, end - src); | - |
329 | | - |
330 | memset(remainingCharsData, 0, sizeof(remainingCharsData)); | - |
331 | memcpy(remainingCharsData, &state->state_data[0], remainingCharsCount); | - |
332 | memcpy(remainingCharsData + remainingCharsCount, src, newCharsToCopy); | - |
333 | | - |
334 | const uchar *begin = &remainingCharsData[1]; | - |
335 | res = QUtf8Functions::fromUtf8<QUtf8BaseTraits>(remainingCharsData[0], dst, begin, | - |
336 | static_cast<const uchar *>(remainingCharsData) + remainingCharsCount + newCharsToCopy); | - |
337 | if (res == QUtf8BaseTraits::Error || (res == QUtf8BaseTraits::EndOfString && len == 0)) {TRUE | evaluated 14 times by 1 test | FALSE | evaluated 310 times by 6 testsEvaluated by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
|
TRUE | evaluated 86 times by 5 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 224 times by 6 testsEvaluated by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
|
TRUE | evaluated 6 times by 1 test | FALSE | evaluated 80 times by 5 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
|
| 6-310 |
338 | | - |
339 | | - |
340 | ++invalid; | - |
341 | *dst++ = replacement; | - |
342 | } else if (res == QUtf8BaseTraits::EndOfString) {executed 20 times by 1 test: end of block TRUE | evaluated 80 times by 5 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 224 times by 6 testsEvaluated by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
|
| 20-224 |
343 | | - |
344 | | - |
345 | state->remainingChars = remainingCharsCount + newCharsToCopy; | - |
346 | memcpy(&state->state_data[0], remainingCharsData, state->remainingChars); | - |
347 | return QString();executed 80 times by 5 tests: return QString(); Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 80 |
348 | } else if (!headerdone && res >= 0) {TRUE | evaluated 27 times by 3 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_Utf8
| FALSE | evaluated 197 times by 6 testsEvaluated by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
|
TRUE | evaluated 27 times by 3 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_Utf8
| FALSE | never evaluated |
| 0-197 |
349 | | - |
350 | headerdone = true; | - |
351 | if (dst[-1] == 0xfeff)TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
| FALSE | evaluated 17 times by 2 tests |
| 10-17 |
352 | --dst;executed 10 times by 2 tests: --dst; Executed by:- tst_QTextCodec
- tst_QTextStream
| 10 |
353 | }executed 27 times by 3 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_Utf8
| 27 |
354 | | - |
355 | | - |
356 | if (res >= 0) {TRUE | evaluated 224 times by 6 testsEvaluated by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 20 times by 1 test |
| 20-224 |
357 | Q_ASSERT(res > remainingCharsCount); | - |
358 | src += res - remainingCharsCount; | - |
359 | }executed 224 times by 6 tests: end of block Executed by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 224 |
360 | }executed 244 times by 6 tests: end of block Executed by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 244 |
361 | }executed 41144811 times by 34 tests: end of block Executed by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- tst_QDBusInterface
- tst_QDBusMetaObject
- tst_QDBusPendingCall
- tst_QDBusThreading
- tst_QDBusXmlParser
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QLayout
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QProcess
- tst_QSettings
- tst_QSplitter
- tst_QTcpSocket
- tst_QTemporaryDir
- tst_QTextCodec
- tst_QTextStream
- ...
| 41144811 |
362 | | - |
363 | | - |
364 | res = 0; | - |
365 | const uchar *nextAscii = src; | - |
366 | const uchar *start = src; | - |
367 | while (res >= 0 && src < end) {TRUE | evaluated 85443410 times by 344 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
| FALSE | evaluated 258 times by 6 testsEvaluated by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
|
TRUE | evaluated 44039858 times by 344 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
| FALSE | evaluated 41403552 times by 342 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
|
| 258-85443410 |
368 | if (src >= nextAscii && simdDecodeAscii(dst, nextAscii, src, end))TRUE | evaluated 43730910 times by 344 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
| FALSE | evaluated 308948 times by 12 testsEvaluated by:- tst_QMimeDatabase
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_static
- tst_QTemporaryDir
- tst_QTemporaryFile
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Selftests
- tst_Utf8
|
TRUE | evaluated 13415 times by 207 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QCssParser
- tst_QDBusConnection_Delayed
- tst_QDBusMarshall
- tst_QDBusMetaType
- tst_QDBusXmlParser
- tst_QDataWidgetMapper
- ...
| FALSE | evaluated 43717495 times by 342 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
|
| 13415-43730910 |
369 | break;executed 13415 times by 207 tests: break; Executed by:- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QCssParser
- tst_QDBusConnection_Delayed
- tst_QDBusMarshall
- tst_QDBusMetaType
- tst_QDBusXmlParser
- tst_QDataWidgetMapper
- ...
| 13415 |
370 | | - |
371 | ch = *src++; | - |
372 | res = QUtf8Functions::fromUtf8<QUtf8BaseTraits>(ch, dst, src, end); | - |
373 | if (!headerdone && res >= 0) {TRUE | evaluated 271317 times by 342 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
| FALSE | evaluated 43755126 times by 339 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
|
TRUE | evaluated 270432 times by 342 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
| FALSE | evaluated 885 times by 5 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
|
| 885-43755126 |
374 | headerdone = true; | - |
375 | if (src == start + 3) { TRUE | evaluated 151 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 270281 times by 342 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
|
| 151-270281 |
376 | | - |
377 | if (dst[-1] == 0xfeff)TRUE | evaluated 15 times by 3 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| FALSE | evaluated 136 times by 3 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_Utf8
|
| 15-136 |
378 | --dst;executed 15 times by 3 tests: --dst; Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 15 |
379 | }executed 151 times by 4 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
| 151 |
380 | }executed 270432 times by 342 tests: end of block Executed by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
| 270432 |
381 | if (res == QUtf8BaseTraits::Error) {TRUE | evaluated 1176 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 44025267 times by 342 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
|
| 1176-44025267 |
382 | res = 0; | - |
383 | ++invalid; | - |
384 | *dst++ = replacement; | - |
385 | }executed 1176 times by 4 tests: end of block Executed by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 1176 |
386 | }executed 44026443 times by 342 tests: end of block Executed by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
| 44026443 |
387 | | - |
388 | if (!state && res == QUtf8BaseTraits::EndOfString) {TRUE | evaluated 272414 times by 337 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
| FALSE | evaluated 41144811 times by 34 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- tst_QDBusInterface
- tst_QDBusMetaObject
- tst_QDBusPendingCall
- tst_QDBusThreading
- tst_QDBusXmlParser
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QLayout
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QProcess
- tst_QSettings
- tst_QSplitter
- tst_QTcpSocket
- tst_QTemporaryDir
- tst_QTextCodec
- tst_QTextStream
- ...
|
TRUE | evaluated 9 times by 1 test | FALSE | evaluated 272405 times by 337 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
|
| 9-41144811 |
389 | | - |
390 | *dst++ = QChar::ReplacementCharacter; | - |
391 | while (src++ < end)TRUE | evaluated 5 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 5-9 |
392 | *dst++ = QChar::ReplacementCharacter;executed 5 times by 1 test: *dst++ = QChar::ReplacementCharacter; | 5 |
393 | }executed 9 times by 1 test: end of block | 9 |
394 | | - |
395 | result.truncate(dst - (const ushort *)result.unicode()); | - |
396 | if (state) {TRUE | evaluated 41144811 times by 34 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- tst_QDBusInterface
- tst_QDBusMetaObject
- tst_QDBusPendingCall
- tst_QDBusThreading
- tst_QDBusXmlParser
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QLayout
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QProcess
- tst_QSettings
- tst_QSplitter
- tst_QTcpSocket
- tst_QTemporaryDir
- tst_QTextCodec
- tst_QTextStream
- ...
| FALSE | evaluated 272414 times by 337 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
|
| 272414-41144811 |
397 | state->invalidChars += invalid; | - |
398 | if (headerdone)TRUE | evaluated 41143704 times by 34 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- tst_QDBusInterface
- tst_QDBusMetaObject
- tst_QDBusPendingCall
- tst_QDBusThreading
- tst_QDBusXmlParser
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QLayout
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QProcess
- tst_QSettings
- tst_QSplitter
- tst_QTcpSocket
- tst_QTemporaryDir
- tst_QTextCodec
- tst_QTextStream
- ...
| FALSE | evaluated 1107 times by 13 testsEvaluated by:- tst_QDBusXmlParser
- tst_QLayout
- tst_QLocalSocket
- tst_QSplitter
- tst_QTextCodec
- tst_QTextStream
- tst_QTimeZone
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Selftests
- tst_Utf8
- tst_qdbusxml2cpp - unknown status
- tst_qmakelib
|
| 1107-41143704 |
399 | state->flags |= QTextCodec::IgnoreHeader;executed 41143704 times by 34 tests: state->flags |= QTextCodec::IgnoreHeader; Executed by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- tst_QDBusInterface
- tst_QDBusMetaObject
- tst_QDBusPendingCall
- tst_QDBusThreading
- tst_QDBusXmlParser
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QLayout
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QProcess
- tst_QSettings
- tst_QSplitter
- tst_QTcpSocket
- tst_QTemporaryDir
- tst_QTextCodec
- tst_QTextStream
- ...
| 41143704 |
400 | if (res == QUtf8BaseTraits::EndOfString) {TRUE | evaluated 249 times by 6 testsEvaluated by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 41144562 times by 34 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- tst_QDBusInterface
- tst_QDBusMetaObject
- tst_QDBusPendingCall
- tst_QDBusThreading
- tst_QDBusXmlParser
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QLayout
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QProcess
- tst_QSettings
- tst_QSplitter
- tst_QTcpSocket
- tst_QTemporaryDir
- tst_QTextCodec
- tst_QTextStream
- ...
|
| 249-41144562 |
401 | --src; | - |
402 | state->remainingChars = end - src; | - |
403 | memcpy(&state->state_data[0], src, end - src); | - |
404 | } else {executed 249 times by 6 tests: end of block Executed by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 249 |
405 | state->remainingChars = 0; | - |
406 | }executed 41144562 times by 34 tests: end of block Executed by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- tst_QDBusInterface
- tst_QDBusMetaObject
- tst_QDBusPendingCall
- tst_QDBusThreading
- tst_QDBusXmlParser
- tst_QFile
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QLayout
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- tst_QProcess
- tst_QSettings
- tst_QSplitter
- tst_QTcpSocket
- tst_QTemporaryDir
- tst_QTextCodec
- tst_QTextStream
- ...
| 41144562 |
407 | } | - |
408 | return result;executed 41417225 times by 344 tests: return result; Executed by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
| 41417225 |
409 | } | - |
410 | | - |
411 | QByteArray QUtf16::convertFromUnicode(const QChar *uc, int len, QTextCodec::ConverterState *state, DataEndianness e) | - |
412 | { | - |
413 | DataEndianness endian = e; | - |
414 | int length = 2*len; | - |
415 | if (!state || (!(state->flags & QTextCodec::IgnoreHeader))) {TRUE | evaluated 52 times by 1 test | FALSE | evaluated 16 times by 4 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
|
TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
| FALSE | evaluated 13 times by 4 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
|
| 3-52 |
416 | length += 2; | - |
417 | }executed 55 times by 2 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
| 55 |
418 | if (e == DetectEndianness) {TRUE | evaluated 15 times by 3 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
| FALSE | evaluated 53 times by 3 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
|
| 15-53 |
419 | endian = (QSysInfo::ByteOrder == QSysInfo::BigEndian) ? BigEndianness : LittleEndianness;TRUE | never evaluated | FALSE | evaluated 15 times by 3 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
|
| 0-15 |
420 | }executed 15 times by 3 tests: end of block Executed by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
| 15 |
421 | | - |
422 | QByteArray d; | - |
423 | d.resize(length); | - |
424 | char *data = d.data(); | - |
425 | if (!state || !(state->flags & QTextCodec::IgnoreHeader)) {TRUE | evaluated 52 times by 1 test | FALSE | evaluated 16 times by 4 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
|
TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
| FALSE | evaluated 13 times by 4 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
|
| 3-52 |
426 | QChar bom(QChar::ByteOrderMark); | - |
427 | if (endian == BigEndianness) {TRUE | evaluated 23 times by 1 test | FALSE | evaluated 32 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
|
| 23-32 |
428 | data[0] = bom.row(); | - |
429 | data[1] = bom.cell(); | - |
430 | } else {executed 23 times by 1 test: end of block | 23 |
431 | data[0] = bom.cell(); | - |
432 | data[1] = bom.row(); | - |
433 | }executed 32 times by 2 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
| 32 |
434 | data += 2; | - |
435 | }executed 55 times by 2 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
| 55 |
436 | if (endian == BigEndianness) {TRUE | evaluated 23 times by 1 test | FALSE | evaluated 45 times by 4 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
|
| 23-45 |
437 | for (int i = 0; i < len; ++i) {TRUE | evaluated 206 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 23-206 |
438 | *(data++) = uc[i].row(); | - |
439 | *(data++) = uc[i].cell(); | - |
440 | }executed 206 times by 1 test: end of block | 206 |
441 | } else {executed 23 times by 1 test: end of block | 23 |
442 | for (int i = 0; i < len; ++i) {TRUE | evaluated 337 times by 4 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| FALSE | evaluated 45 times by 4 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
|
| 45-337 |
443 | *(data++) = uc[i].cell(); | - |
444 | *(data++) = uc[i].row(); | - |
445 | }executed 337 times by 4 tests: end of block Executed by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 337 |
446 | }executed 45 times by 4 tests: end of block Executed by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 45 |
447 | | - |
448 | if (state) {TRUE | evaluated 16 times by 4 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| FALSE | evaluated 52 times by 1 test |
| 16-52 |
449 | state->remainingChars = 0; | - |
450 | state->flags |= QTextCodec::IgnoreHeader; | - |
451 | }executed 16 times by 4 tests: end of block Executed by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 16 |
452 | return d;executed 68 times by 4 tests: return d; Executed by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 68 |
453 | } | - |
454 | | - |
455 | QString QUtf16::convertToUnicode(const char *chars, int len, QTextCodec::ConverterState *state, DataEndianness e) | - |
456 | { | - |
457 | DataEndianness endian = e; | - |
458 | bool half = false; | - |
459 | uchar buf = 0; | - |
460 | bool headerdone = false; | - |
461 | if (state) {TRUE | evaluated 1988 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 233854 times by 18 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QUrlInternal
- tst_Utf8
|
| 1988-233854 |
462 | headerdone = state->flags & QTextCodec::IgnoreHeader; | - |
463 | if (endian == DetectEndianness)TRUE | evaluated 1171 times by 3 testsEvaluated by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 817 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
|
| 817-1171 |
464 | endian = (DataEndianness)state->state_data[Endian];executed 1171 times by 3 tests: endian = (DataEndianness)state->state_data[Endian]; Executed by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
| 1171 |
465 | if (state->remainingChars) {TRUE | evaluated 651 times by 3 testsEvaluated by:- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 1337 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
|
| 651-1337 |
466 | half = true; | - |
467 | buf = state->state_data[Data]; | - |
468 | }executed 651 times by 3 tests: end of block Executed by:- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 651 |
469 | }executed 1988 times by 4 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 1988 |
470 | if (headerdone && endian == DetectEndianness)TRUE | evaluated 1659 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 234183 times by 21 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
|
TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1658 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
|
| 1-234183 |
471 | endian = (QSysInfo::ByteOrder == QSysInfo::BigEndian) ? BigEndianness : LittleEndianness;executed 1 time by 1 test: endian = (QSysInfo::ByteOrder == QSysInfo::BigEndian) ? BigEndianness : LittleEndianness; TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
| 0-1 |
472 | | - |
473 | QString result(len, Qt::Uninitialized); | - |
474 | QChar *qch = (QChar *)result.data(); | - |
475 | while (len--) {TRUE | evaluated 1186543 times by 21 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 235842 times by 21 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
|
| 235842-1186543 |
476 | if (half) {TRUE | evaluated 593271 times by 21 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 593272 times by 21 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
|
| 593271-593272 |
477 | QChar ch; | - |
478 | if (endian == LittleEndianness) {TRUE | evaluated 356728 times by 21 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 236543 times by 21 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
|
| 236543-356728 |
479 | ch.setRow(*chars++); | - |
480 | ch.setCell(buf); | - |
481 | } else {executed 356728 times by 21 tests: end of block Executed by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 356728 |
482 | ch.setRow(buf); | - |
483 | ch.setCell(*chars++); | - |
484 | }executed 236543 times by 21 tests: end of block Executed by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 236543 |
485 | if (!headerdone) {TRUE | evaluated 234135 times by 21 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 359136 times by 21 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
|
| 234135-359136 |
486 | headerdone = true; | - |
487 | if (endian == DetectEndianness) {TRUE | evaluated 233887 times by 20 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 248 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
|
| 248-233887 |
488 | if (ch == QChar::ByteOrderSwapped) {TRUE | evaluated 78 times by 3 testsEvaluated by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 233809 times by 20 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
|
| 78-233809 |
489 | endian = LittleEndianness; | - |
490 | } else if (ch == QChar::ByteOrderMark) {executed 78 times by 3 tests: end of block Executed by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
TRUE | evaluated 3 times by 3 testsEvaluated by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 233806 times by 19 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QUrlInternal
- tst_QXmlStream
- tst_Utf8
|
| 3-233806 |
491 | endian = BigEndianness; | - |
492 | } else {executed 3 times by 3 tests: end of block Executed by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
| 3 |
493 | if (QSysInfo::ByteOrder == QSysInfo::BigEndian) {TRUE | never evaluated | FALSE | evaluated 233806 times by 19 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QUrlInternal
- tst_QXmlStream
- tst_Utf8
|
| 0-233806 |
494 | endian = BigEndianness; | - |
495 | } else { never executed: end of block | 0 |
496 | endian = LittleEndianness; | - |
497 | ch = QChar((ch.unicode() >> 8) | ((ch.unicode() & 0xff) << 8)); | - |
498 | }executed 233806 times by 19 tests: end of block Executed by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QUrlInternal
- tst_QXmlStream
- tst_Utf8
| 233806 |
499 | *qch++ = ch; | - |
500 | }executed 233806 times by 19 tests: end of block Executed by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QUrlInternal
- tst_QXmlStream
- tst_Utf8
| 233806 |
501 | } else if (ch != QChar::ByteOrderMark) {TRUE | evaluated 4 times by 3 testsEvaluated by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 244 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
|
| 4-244 |
502 | *qch++ = ch; | - |
503 | }executed 4 times by 3 tests: end of block Executed by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
| 4 |
504 | } else {executed 234135 times by 21 tests: end of block Executed by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 234135 |
505 | *qch++ = ch; | - |
506 | }executed 359136 times by 21 tests: end of block Executed by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 359136 |
507 | half = false; | - |
508 | } else {executed 593271 times by 21 tests: end of block Executed by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 593271 |
509 | buf = *chars++; | - |
510 | half = true; | - |
511 | }executed 593272 times by 21 tests: end of block Executed by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 593272 |
512 | } | - |
513 | result.truncate(qch - result.unicode()); | - |
514 | | - |
515 | if (state) {TRUE | evaluated 1988 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 233854 times by 18 testsEvaluated by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QUrlInternal
- tst_Utf8
|
| 1988-233854 |
516 | if (headerdone)TRUE | evaluated 1940 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 48 times by 1 test |
| 48-1940 |
517 | state->flags |= QTextCodec::IgnoreHeader;executed 1940 times by 4 tests: state->flags |= QTextCodec::IgnoreHeader; Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 1940 |
518 | state->state_data[Endian] = endian; | - |
519 | if (half) {TRUE | evaluated 652 times by 3 testsEvaluated by:- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 1336 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
|
| 652-1336 |
520 | state->remainingChars = 1; | - |
521 | state->state_data[Data] = buf; | - |
522 | } else {executed 652 times by 3 tests: end of block Executed by:- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 652 |
523 | state->remainingChars = 0; | - |
524 | state->state_data[Data] = 0; | - |
525 | }executed 1336 times by 4 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 1336 |
526 | } | - |
527 | return result;executed 235842 times by 21 tests: return result; Executed by:- tst_QDebug
- tst_QItemModel
- tst_QNetworkCookieJar
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSqlDatabase
- tst_QSqlQuery
- tst_QSqlQueryModel
- tst_QSqlRelationalTableModel
- tst_QSqlResult
- tst_QSqlTableModel
- tst_QSqlThread
- tst_QString
- tst_QStringRef
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 235842 |
528 | } | - |
529 | | - |
530 | QByteArray QUtf32::convertFromUnicode(const QChar *uc, int len, QTextCodec::ConverterState *state, DataEndianness e) | - |
531 | { | - |
532 | DataEndianness endian = e; | - |
533 | int length = 4*len; | - |
534 | if (!state || (!(state->flags & QTextCodec::IgnoreHeader))) {TRUE | evaluated 22 times by 1 test | FALSE | evaluated 4 times by 1 test |
TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
| 2-22 |
535 | length += 4; | - |
536 | }executed 24 times by 1 test: end of block | 24 |
537 | if (e == DetectEndianness) {TRUE | evaluated 11 times by 1 test | FALSE | evaluated 15 times by 1 test |
| 11-15 |
538 | endian = (QSysInfo::ByteOrder == QSysInfo::BigEndian) ? BigEndianness : LittleEndianness;TRUE | never evaluated | FALSE | evaluated 11 times by 1 test |
| 0-11 |
539 | }executed 11 times by 1 test: end of block | 11 |
540 | | - |
541 | QByteArray d(length, Qt::Uninitialized); | - |
542 | char *data = d.data(); | - |
543 | if (!state || !(state->flags & QTextCodec::IgnoreHeader)) {TRUE | evaluated 22 times by 1 test | FALSE | evaluated 4 times by 1 test |
TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
| 2-22 |
544 | if (endian == BigEndianness) {TRUE | evaluated 7 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 7-17 |
545 | data[0] = 0; | - |
546 | data[1] = 0; | - |
547 | data[2] = (char)0xfe; | - |
548 | data[3] = (char)0xff; | - |
549 | } else {executed 7 times by 1 test: end of block | 7 |
550 | data[0] = (char)0xff; | - |
551 | data[1] = (char)0xfe; | - |
552 | data[2] = 0; | - |
553 | data[3] = 0; | - |
554 | }executed 17 times by 1 test: end of block | 17 |
555 | data += 4; | - |
556 | }executed 24 times by 1 test: end of block | 24 |
557 | | - |
558 | QStringIterator i(uc, uc + len); | - |
559 | if (endian == BigEndianness) {TRUE | evaluated 7 times by 1 test | FALSE | evaluated 19 times by 1 test |
| 7-19 |
560 | while (i.hasNext()) {TRUE | evaluated 54 times by 1 test | FALSE | evaluated 7 times by 1 test |
| 7-54 |
561 | uint cp = i.next(); | - |
562 | | - |
563 | *(data++) = cp >> 24; | - |
564 | *(data++) = (cp >> 16) & 0xff; | - |
565 | *(data++) = (cp >> 8) & 0xff; | - |
566 | *(data++) = cp & 0xff; | - |
567 | }executed 54 times by 1 test: end of block | 54 |
568 | } else {executed 7 times by 1 test: end of block | 7 |
569 | while (i.hasNext()) {TRUE | evaluated 122 times by 1 test | FALSE | evaluated 19 times by 1 test |
| 19-122 |
570 | uint cp = i.next(); | - |
571 | | - |
572 | *(data++) = cp & 0xff; | - |
573 | *(data++) = (cp >> 8) & 0xff; | - |
574 | *(data++) = (cp >> 16) & 0xff; | - |
575 | *(data++) = cp >> 24; | - |
576 | }executed 122 times by 1 test: end of block | 122 |
577 | }executed 19 times by 1 test: end of block | 19 |
578 | | - |
579 | if (state) {TRUE | evaluated 4 times by 1 test | FALSE | evaluated 22 times by 1 test |
| 4-22 |
580 | state->remainingChars = 0; | - |
581 | state->flags |= QTextCodec::IgnoreHeader; | - |
582 | }executed 4 times by 1 test: end of block | 4 |
583 | return d;executed 26 times by 1 test: return d; | 26 |
584 | } | - |
585 | | - |
586 | QString QUtf32::convertToUnicode(const char *chars, int len, QTextCodec::ConverterState *state, DataEndianness e) | - |
587 | { | - |
588 | DataEndianness endian = e; | - |
589 | uchar tuple[4]; | - |
590 | int num = 0; | - |
591 | bool headerdone = false; | - |
592 | if (state) {TRUE | evaluated 364 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
| FALSE | evaluated 410534 times by 9 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
|
| 364-410534 |
593 | headerdone = state->flags & QTextCodec::IgnoreHeader; | - |
594 | if (endian == DetectEndianness) {TRUE | evaluated 4 times by 1 test | FALSE | evaluated 360 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
|
| 4-360 |
595 | endian = (DataEndianness)state->state_data[Endian]; | - |
596 | }executed 4 times by 1 test: end of block | 4 |
597 | num = state->remainingChars; | - |
598 | memcpy(tuple, &state->state_data[Data], 4); | - |
599 | }executed 364 times by 2 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
| 364 |
600 | if (headerdone && endian == DetectEndianness)TRUE | evaluated 3 times by 1 test | FALSE | evaluated 410895 times by 10 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
|
TRUE | evaluated 1 time by 1 test | FALSE | evaluated 2 times by 1 test |
| 1-410895 |
601 | endian = (QSysInfo::ByteOrder == QSysInfo::BigEndian) ? BigEndianness : LittleEndianness;executed 1 time by 1 test: endian = (QSysInfo::ByteOrder == QSysInfo::BigEndian) ? BigEndianness : LittleEndianness; TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
| 0-1 |
602 | | - |
603 | QString result; | - |
604 | result.resize((num + len) >> 2 << 1); | - |
605 | QChar *qch = (QChar *)result.data(); | - |
606 | | - |
607 | const char *end = chars + len; | - |
608 | while (chars < end) {TRUE | evaluated 1647700 times by 10 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
| FALSE | evaluated 410898 times by 10 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
|
| 410898-1647700 |
609 | tuple[num++] = *chars++; | - |
610 | if (num == 4) {TRUE | evaluated 411925 times by 10 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
| FALSE | evaluated 1235775 times by 10 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
|
| 411925-1235775 |
611 | if (!headerdone) {TRUE | evaluated 411913 times by 10 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
| FALSE | evaluated 12 times by 1 test |
| 12-411913 |
612 | if (endian == DetectEndianness) {TRUE | evaluated 410515 times by 9 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
| FALSE | evaluated 1398 times by 5 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_Utf8
- tst_qmakelib
|
| 1398-410515 |
613 | if (tuple[0] == 0xff && tuple[1] == 0xfe && tuple[2] == 0 && tuple[3] == 0 && endian != BigEndianness) {TRUE | evaluated 9 times by 1 test | FALSE | evaluated 410506 times by 9 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
|
TRUE | evaluated 9 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 9 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 9 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 9 times by 1 test | FALSE | never evaluated |
| 0-410506 |
614 | endian = LittleEndianness; | - |
615 | num = 0; | - |
616 | continue;executed 9 times by 1 test: continue; | 9 |
617 | } else if (tuple[0] == 0 && tuple[1] == 0 && tuple[2] == 0xfe && tuple[3] == 0xff && endian != LittleEndianness) {TRUE | evaluated 22 times by 4 testsEvaluated by:- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QXmlStream
| FALSE | evaluated 410484 times by 9 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
|
TRUE | evaluated 14 times by 4 testsEvaluated by:- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QXmlStream
| FALSE | evaluated 8 times by 1 test |
TRUE | evaluated 1 time by 1 test | FALSE | evaluated 13 times by 3 testsEvaluated by:- tst_QString
- tst_QStringIterator
- tst_QXmlStream
|
TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
| 0-410484 |
618 | endian = BigEndianness; | - |
619 | num = 0; | - |
620 | continue;executed 1 time by 1 test: continue; | 1 |
621 | } else if (QSysInfo::ByteOrder == QSysInfo::BigEndian) {TRUE | never evaluated | FALSE | evaluated 410505 times by 9 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
|
| 0-410505 |
622 | endian = BigEndianness; | - |
623 | } else { never executed: end of block | 0 |
624 | endian = LittleEndianness; | - |
625 | }executed 410505 times by 9 tests: end of block Executed by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
| 410505 |
626 | } else if (((endian == BigEndianness) ? qFromBigEndian<quint32>(tuple) : qFromLittleEndian<quint32>(tuple)) == QChar::ByteOrderMark) {TRUE | evaluated 47 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
| FALSE | evaluated 1351 times by 5 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_Utf8
- tst_qmakelib
|
TRUE | evaluated 220 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
| FALSE | evaluated 1178 times by 5 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_Utf8
- tst_qmakelib
|
| 47-1351 |
627 | num = 0; | - |
628 | continue;executed 47 times by 2 tests: continue; Executed by:- tst_QTextCodec
- tst_QTextStream
| 47 |
629 | } | - |
630 | }executed 411856 times by 10 tests: end of block Executed by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
| 411856 |
631 | uint code = (endian == BigEndianness) ? qFromBigEndian<quint32>(tuple) : qFromLittleEndian<quint32>(tuple);TRUE | evaluated 200 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
| FALSE | evaluated 411668 times by 10 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
|
| 200-411668 |
632 | if (QChar::requiresSurrogates(code)) {TRUE | evaluated 58 times by 4 testsEvaluated by:- tst_QString
- tst_QStringIterator
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 411810 times by 9 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTextStream
- tst_Utf8
- tst_qmakelib
|
| 58-411810 |
633 | *qch++ = QChar::highSurrogate(code); | - |
634 | *qch++ = QChar::lowSurrogate(code); | - |
635 | } else {executed 58 times by 4 tests: end of block Executed by:- tst_QString
- tst_QStringIterator
- tst_QXmlStream
- tst_Utf8
| 58 |
636 | *qch++ = code; | - |
637 | }executed 411810 times by 9 tests: end of block Executed by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTextStream
- tst_Utf8
- tst_qmakelib
| 411810 |
638 | num = 0; | - |
639 | }executed 411868 times by 10 tests: end of block Executed by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
| 411868 |
640 | }executed 1647643 times by 10 tests: end of block Executed by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
| 1647643 |
641 | result.truncate(qch - result.unicode()); | - |
642 | | - |
643 | if (state) {TRUE | evaluated 364 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
| FALSE | evaluated 410534 times by 9 testsEvaluated by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
|
| 364-410534 |
644 | if (headerdone)TRUE | evaluated 3 times by 1 test | FALSE | evaluated 361 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
|
| 3-361 |
645 | state->flags |= QTextCodec::IgnoreHeader;executed 3 times by 1 test: state->flags |= QTextCodec::IgnoreHeader; | 3 |
646 | state->state_data[Endian] = endian; | - |
647 | state->remainingChars = num; | - |
648 | memcpy(&state->state_data[Data], tuple, 4); | - |
649 | }executed 364 times by 2 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
| 364 |
650 | return result;executed 410898 times by 10 tests: return result; Executed by:- tst_QLabel
- tst_QString
- tst_QStringIterator
- tst_QTextCodec
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
- tst_qmakelib
| 410898 |
651 | } | - |
652 | | - |
653 | | - |
654 | #ifndef QT_NO_TEXTCODEC | - |
655 | | - |
656 | QUtf8Codec::~QUtf8Codec() | - |
657 | { | - |
658 | } | - |
659 | | - |
660 | QByteArray QUtf8Codec::convertFromUnicode(const QChar *uc, int len, ConverterState *state) const | - |
661 | { | - |
662 | return QUtf8::convertFromUnicode(uc, len, state);executed 571197 times by 407 tests: return QUtf8::convertFromUnicode(uc, len, state); Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- ...
| 571197 |
663 | } | - |
664 | | - |
665 | void QUtf8Codec::convertToUnicode(QString *target, const char *chars, int len, ConverterState *state) const | - |
666 | { | - |
667 | *target += QUtf8::convertToUnicode(chars, len, state); | - |
668 | }executed 60357 times by 16 tests: end of block Executed by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- tst_QDBusInterface
- tst_QDBusMetaObject
- tst_QDBusPendingCall
- tst_QDBusThreading
- tst_QDBusXmlParser
- tst_QMimeDatabase
- tst_QTextCodec
- tst_QXmlStream
- tst_Selftests
- tst_qdbusxml2cpp - unknown status
| 60357 |
669 | | - |
670 | QString QUtf8Codec::convertToUnicode(const char *chars, int len, ConverterState *state) const | - |
671 | { | - |
672 | return QUtf8::convertToUnicode(chars, len, state);executed 41356948 times by 337 tests: return QUtf8::convertToUnicode(chars, len, state); Executed by:- tst_Compiler
- tst_Gestures
- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- ...
| 41356948 |
673 | } | - |
674 | | - |
675 | QByteArray QUtf8Codec::name() const | - |
676 | { | - |
677 | return "UTF-8";executed 370 times by 17 tests: return "UTF-8"; Executed by:- tst_QClipboard
- tst_QDBusXmlParser
- tst_QFile
- tst_QGlobal
- tst_QMimeData
- tst_QMimeDatabase
- tst_QPlainTextEdit
- tst_QSettings
- tst_QTextBrowser
- tst_QTextCodec
- tst_QTextDocument
- tst_QTextEdit
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Selftests
- tst_qdbusxml2cpp - unknown status
| 370 |
678 | } | - |
679 | | - |
680 | int QUtf8Codec::mibEnum() const | - |
681 | { | - |
682 | return 106;executed 60599 times by 22 tests: return 106; Executed by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- tst_QDBusInterface
- tst_QDBusMetaObject
- tst_QDBusPendingCall
- tst_QDBusThreading
- tst_QDBusXmlParser
- tst_QMimeDatabase
- tst_QPlainTextEdit
- tst_QTextCodec
- tst_QTextEdit
- tst_QTextStream
- tst_QXmlInputSource
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Selftests
- tst_Utf8
- tst_qdbusxml2cpp - unknown status
| 60599 |
683 | } | - |
684 | | - |
685 | QUtf16Codec::~QUtf16Codec() | - |
686 | { | - |
687 | } | - |
688 | | - |
689 | QByteArray QUtf16Codec::convertFromUnicode(const QChar *uc, int len, ConverterState *state) const | - |
690 | { | - |
691 | return QUtf16::convertFromUnicode(uc, len, state, e);executed 68 times by 4 tests: return QUtf16::convertFromUnicode(uc, len, state, e); Executed by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 68 |
692 | } | - |
693 | | - |
694 | QString QUtf16Codec::convertToUnicode(const char *chars, int len, ConverterState *state) const | - |
695 | { | - |
696 | return QUtf16::convertToUnicode(chars, len, state, e);executed 2038 times by 4 tests: return QUtf16::convertToUnicode(chars, len, state, e); Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 2038 |
697 | } | - |
698 | | - |
699 | int QUtf16Codec::mibEnum() const | - |
700 | { | - |
701 | return 1015;executed 445 times by 3 tests: return 1015; Executed by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
| 445 |
702 | } | - |
703 | | - |
704 | QByteArray QUtf16Codec::name() const | - |
705 | { | - |
706 | return "UTF-16";executed 145 times by 5 tests: return "UTF-16"; Executed by:- tst_QTextCodec
- tst_QTextDocument
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 145 |
707 | } | - |
708 | | - |
709 | QList<QByteArray> QUtf16Codec::aliases() const | - |
710 | { | - |
711 | return QList<QByteArray>();executed 143 times by 4 tests: return QList<QByteArray>(); Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 143 |
712 | } | - |
713 | | - |
714 | int QUtf16BECodec::mibEnum() const | - |
715 | { | - |
716 | return 1013;executed 22 times by 3 tests: return 1013; Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 22 |
717 | } | - |
718 | | - |
719 | QByteArray QUtf16BECodec::name() const | - |
720 | { | - |
721 | return "UTF-16BE";executed 159 times by 3 tests: return "UTF-16BE"; Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 159 |
722 | } | - |
723 | | - |
724 | QList<QByteArray> QUtf16BECodec::aliases() const | - |
725 | { | - |
726 | QList<QByteArray> list; | - |
727 | return list;executed 158 times by 3 tests: return list; Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 158 |
728 | } | - |
729 | | - |
730 | int QUtf16LECodec::mibEnum() const | - |
731 | { | - |
732 | return 1014;executed 22 times by 2 tests: return 1014; Executed by:- tst_QTextCodec
- tst_QTextStream
| 22 |
733 | } | - |
734 | | - |
735 | QByteArray QUtf16LECodec::name() const | - |
736 | { | - |
737 | return "UTF-16LE";executed 154 times by 4 tests: return "UTF-16LE"; Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 154 |
738 | } | - |
739 | | - |
740 | QList<QByteArray> QUtf16LECodec::aliases() const | - |
741 | { | - |
742 | QList<QByteArray> list; | - |
743 | return list;executed 150 times by 4 tests: return list; Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 150 |
744 | } | - |
745 | | - |
746 | QUtf32Codec::~QUtf32Codec() | - |
747 | { | - |
748 | } | - |
749 | | - |
750 | QByteArray QUtf32Codec::convertFromUnicode(const QChar *uc, int len, ConverterState *state) const | - |
751 | { | - |
752 | return QUtf32::convertFromUnicode(uc, len, state, e);executed 26 times by 1 test: return QUtf32::convertFromUnicode(uc, len, state, e); | 26 |
753 | } | - |
754 | | - |
755 | QString QUtf32Codec::convertToUnicode(const char *chars, int len, ConverterState *state) const | - |
756 | { | - |
757 | return QUtf32::convertToUnicode(chars, len, state, e);executed 383 times by 2 tests: return QUtf32::convertToUnicode(chars, len, state, e); Executed by:- tst_QTextCodec
- tst_QTextStream
| 383 |
758 | } | - |
759 | | - |
760 | int QUtf32Codec::mibEnum() const | - |
761 | { | - |
762 | return 1017;executed 17 times by 1 test: return 1017; | 17 |
763 | } | - |
764 | | - |
765 | QByteArray QUtf32Codec::name() const | - |
766 | { | - |
767 | return "UTF-32";executed 131 times by 1 test: return "UTF-32"; | 131 |
768 | } | - |
769 | | - |
770 | QList<QByteArray> QUtf32Codec::aliases() const | - |
771 | { | - |
772 | QList<QByteArray> list; | - |
773 | return list;executed 130 times by 1 test: return list; | 130 |
774 | } | - |
775 | | - |
776 | int QUtf32BECodec::mibEnum() const | - |
777 | { | - |
778 | return 1018;executed 21 times by 2 tests: return 1018; Executed by:- tst_QTextCodec
- tst_QTextStream
| 21 |
779 | } | - |
780 | | - |
781 | QByteArray QUtf32BECodec::name() const | - |
782 | { | - |
783 | return "UTF-32BE";executed 135 times by 2 tests: return "UTF-32BE"; Executed by:- tst_QTextCodec
- tst_QTextStream
| 135 |
784 | } | - |
785 | | - |
786 | QList<QByteArray> QUtf32BECodec::aliases() const | - |
787 | { | - |
788 | QList<QByteArray> list; | - |
789 | return list;executed 134 times by 2 tests: return list; Executed by:- tst_QTextCodec
- tst_QTextStream
| 134 |
790 | } | - |
791 | | - |
792 | int QUtf32LECodec::mibEnum() const | - |
793 | { | - |
794 | return 1019;executed 22 times by 2 tests: return 1019; Executed by:- tst_QTextCodec
- tst_QTextStream
| 22 |
795 | } | - |
796 | | - |
797 | QByteArray QUtf32LECodec::name() const | - |
798 | { | - |
799 | return "UTF-32LE";executed 132 times by 2 tests: return "UTF-32LE"; Executed by:- tst_QTextCodec
- tst_QTextStream
| 132 |
800 | } | - |
801 | | - |
802 | QList<QByteArray> QUtf32LECodec::aliases() const | - |
803 | { | - |
804 | QList<QByteArray> list; | - |
805 | return list;executed 131 times by 2 tests: return list; Executed by:- tst_QTextCodec
- tst_QTextStream
| 131 |
806 | } | - |
807 | | - |
808 | #endif //QT_NO_TEXTCODEC | - |
809 | | - |
810 | QT_END_NAMESPACE | - |
| | |