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 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | #include "qutfcodec_p.h" | - |
42 | #include "qlist.h" | - |
43 | #include "qendian.h" | - |
44 | #include "qchar.h" | - |
45 | | - |
46 | #include "private/qsimd_p.h" | - |
47 | #include "private/qstringiterator_p.h" | - |
48 | | - |
49 | QT_BEGIN_NAMESPACE | - |
50 | | - |
51 | enum { Endian = 0, Data = 1 }; | - |
52 | | - |
53 | static const uchar utf8bom[] = { 0xef, 0xbb, 0xbf }; | - |
54 | | - |
55 | #if defined(__SSE2__) && defined(QT_COMPILER_SUPPORTS_SSE2) | - |
56 | static inline bool simdEncodeAscii(uchar *&dst, const ushort *&nextAscii, const ushort *&src, const ushort *end) | - |
57 | { | - |
58 | | - |
59 | for ( ; end - src >= 16; src += 16, dst += 16) {TRUE | evaluated 2394194 times by 391 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 3969456 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
- ...
|
| 2394194-3969456 |
60 | __m128i data1 = _mm_loadu_si128((const __m128i*)src); | - |
61 | __m128i data2 = _mm_loadu_si128(1+(const __m128i*)src); | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | __m128i packed = _mm_packus_epi16(data1, data2); | - |
73 | __m128i nonAscii = _mm_cmpgt_epi8(packed, _mm_setzero_si128()); | - |
74 | | - |
75 | | - |
76 | _mm_storeu_si128((__m128i*)dst, packed); | - |
77 | | - |
78 | | - |
79 | ushort n = ~_mm_movemask_epi8(nonAscii); | - |
80 | 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 2390208 times by 389 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-2390208 |
81 | | - |
82 | | - |
83 | | - |
84 | nextAscii = src + _bit_scan_reverse(n) + 1; | - |
85 | | - |
86 | n = _bit_scan_forward(n); | - |
87 | dst += n; | - |
88 | src += n; | - |
89 | 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 |
90 | } | - |
91 | }executed 2390208 times by 389 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
- ...
| 2390208 |
92 | return src == end;executed 3969456 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
- ...
| 3969456 |
93 | } | - |
94 | | - |
95 | static inline bool simdDecodeAscii(ushort *&dst, const uchar *&nextAscii, const uchar *&src, const uchar *end) | - |
96 | { | - |
97 | | - |
98 | for ( ; end - src >= 16; src += 16, dst += 16) {TRUE | evaluated 4564301 times by 534 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 52293448 times by 569 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
- ...
|
| 4564301-52293448 |
99 | __m128i data = _mm_loadu_si128((const __m128i*)src); | - |
100 | | - |
101 | #ifdef __AVX2__ | - |
102 | const int BitSpacing = 2; | - |
103 | | - |
104 | const __m256i extended = _mm256_cvtepu8_epi16(data); | - |
105 | | - |
106 | uint n = _mm256_movemask_epi8(extended); | - |
107 | if (!n) { | - |
108 | | - |
109 | _mm256_storeu_si256((__m256i*)dst, extended); | - |
110 | continue; | - |
111 | } | - |
112 | #else | - |
113 | const int BitSpacing = 1; | - |
114 | | - |
115 | | - |
116 | | - |
117 | uint n = _mm_movemask_epi8(data); | - |
118 | if (!n) {TRUE | evaluated 4320068 times by 530 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 244233 times by 65 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDnsLookup
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpNetworkConnection
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- ...
|
| 244233-4320068 |
119 | | - |
120 | _mm_storeu_si128((__m128i*)dst, _mm_unpacklo_epi8(data, _mm_setzero_si128())); | - |
121 | _mm_storeu_si128(1+(__m128i*)dst, _mm_unpackhi_epi8(data, _mm_setzero_si128())); | - |
122 | continue;executed 4320068 times by 530 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
- ...
| 4320068 |
123 | } | - |
124 | #endif | - |
125 | | - |
126 | | - |
127 | while (!(n & 1)) {TRUE | evaluated 1277262 times by 64 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDnsLookup
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpNetworkConnection
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- ...
| FALSE | evaluated 244233 times by 65 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDnsLookup
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpNetworkConnection
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- ...
|
| 244233-1277262 |
128 | *dst++ = *src++; | - |
129 | n >>= BitSpacing; | - |
130 | }executed 1277262 times by 64 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDnsLookup
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpNetworkConnection
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- ...
| 1277262 |
131 | | - |
132 | | - |
133 | | - |
134 | | - |
135 | n = _bit_scan_reverse(n); | - |
136 | nextAscii = src + (n / BitSpacing) + 1; | - |
137 | return false;executed 244233 times by 65 tests: return false; Executed by:- tst_NetworkSelfTest
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDnsLookup
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpNetworkConnection
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- ...
| 244233 |
138 | | - |
139 | } | - |
140 | return src == end;executed 52293448 times by 569 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
- ...
| 52293448 |
141 | } | - |
142 | #else | - |
143 | static inline bool simdEncodeAscii(uchar *, const ushort *, const ushort *, const ushort *) | - |
144 | { | - |
145 | return false; | - |
146 | } | - |
147 | | - |
148 | static inline bool simdDecodeAscii(ushort *, const uchar *, const uchar *, const uchar *) | - |
149 | { | - |
150 | return false; | - |
151 | } | - |
152 | #endif | - |
153 | | - |
154 | QByteArray QUtf8::convertFromUnicode(const QChar *uc, int len) | - |
155 | { | - |
156 | | - |
157 | QByteArray result(len * 3, Qt::Uninitialized); | - |
158 | uchar *dst = reinterpret_cast<uchar *>(const_cast<char *>(result.constData())); | - |
159 | const ushort *src = reinterpret_cast<const ushort *>(uc); | - |
160 | const ushort *const end = src + len; | - |
161 | | - |
162 | while (src != end) {TRUE | evaluated 104982 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
- ...
| FALSE | evaluated 101886 times by 243 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
- ...
|
| 101886-104982 |
163 | const ushort *nextAscii = end; | - |
164 | if (simdEncodeAscii(dst, nextAscii, src, end))TRUE | evaluated 3437 times by 70 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 101545 times by 243 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
- ...
|
| 3437-101545 |
165 | break;executed 3437 times by 70 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
- ...
| 3437 |
166 | | - |
167 | do { | - |
168 | ushort uc = *src++; | - |
169 | int res = QUtf8Functions::toUtf8<QUtf8BaseTraits>(uc, dst, src, end); | - |
170 | if (res < 0) {TRUE | never evaluated | FALSE | evaluated 555898 times by 243 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-555898 |
171 | | - |
172 | *dst++ = '?'; | - |
173 | } never executed: end of block | 0 |
174 | } while (src < nextAscii);executed 555898 times by 243 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 454353 times by 238 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 101545 times by 243 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
- ...
|
| 101545-555898 |
175 | }executed 101545 times by 243 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
- ...
| 101545 |
176 | | - |
177 | result.truncate(dst - reinterpret_cast<uchar *>(const_cast<char *>(result.constData()))); | - |
178 | return result;executed 105323 times by 245 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
- ...
| 105323 |
179 | } | - |
180 | | - |
181 | QByteArray QUtf8::convertFromUnicode(const QChar *uc, int len, QTextCodec::ConverterState *state) | - |
182 | { | - |
183 | uchar replacement = '?'; | - |
184 | int rlen = 3*len; | - |
185 | int surrogate_high = -1; | - |
186 | 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 450707 times by 409 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-450707 |
187 | 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 |
188 | replacement = 0;executed 2468 times by 2 tests: replacement = 0; Executed by:- tst_QDBusXmlParser
- tst_QXmlSimpleReader
| 2468 |
189 | 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 |
190 | rlen += 3;executed 2721 times by 4 tests: rlen += 3; Executed by:- tst_QDBusXmlParser
- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_Utf8
| 2721 |
191 | 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 |
192 | surrogate_high = state->state_data[0];executed 6 times by 1 test: surrogate_high = state->state_data[0]; | 6 |
193 | }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 |
194 | | - |
195 | | - |
196 | QByteArray rstr(rlen, Qt::Uninitialized); | - |
197 | uchar *cursor = reinterpret_cast<uchar *>(const_cast<char *>(rstr.constData())); | - |
198 | const ushort *src = reinterpret_cast<const ushort *>(uc); | - |
199 | const ushort *const end = src + len; | - |
200 | | - |
201 | int invalid = 0; | - |
202 | 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 450707 times by 409 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-450707 |
203 | | - |
204 | *cursor++ = utf8bom[0]; | - |
205 | *cursor++ = utf8bom[1]; | - |
206 | *cursor++ = utf8bom[2]; | - |
207 | }executed 2721 times by 4 tests: end of block Executed by:- tst_QDBusXmlParser
- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_Utf8
| 2721 |
208 | | - |
209 | const ushort *nextAscii = src; | - |
210 | while (src != end) {TRUE | evaluated 3879611 times by 408 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 477672 times by 408 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
- ...
|
| 477672-3879611 |
211 | int res; | - |
212 | ushort uc; | - |
213 | if (surrogate_high != -1) {TRUE | evaluated 6 times by 1 test | FALSE | evaluated 3879605 times by 408 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-3879605 |
214 | uc = surrogate_high; | - |
215 | surrogate_high = -1; | - |
216 | res = QUtf8Functions::toUtf8<QUtf8BaseTraits>(uc, cursor, src, end); | - |
217 | } else {executed 6 times by 1 test: end of block | 6 |
218 | if (src >= nextAscii && simdEncodeAscii(cursor, nextAscii, src, end))TRUE | evaluated 3868460 times by 408 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 12395 times by 176 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_NetworkSelfTest
- 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_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusConnection_NoApplication
- ...
| FALSE | evaluated 3856065 times by 405 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-3868460 |
219 | break;executed 12395 times by 176 tests: break; Executed by:- tst_Collections
- tst_LargeFile
- tst_NetworkSelfTest
- 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_QCompleter
- tst_QCoreApplication
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDBusConnection_NoApplication
- ...
| 12395 |
220 | | - |
221 | uc = *src++; | - |
222 | res = QUtf8Functions::toUtf8<QUtf8BaseTraits>(uc, cursor, src, end); | - |
223 | }executed 3867210 times by 405 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
- ...
| 3867210 |
224 | if (Q_LIKELY(res >= 0))TRUE | evaluated 3867210 times by 405 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-3867210 |
225 | continue;executed 3867210 times by 405 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
- ...
| 3867210 |
226 | | - |
227 | if (res == QUtf8BaseTraits::Error) {TRUE | never evaluated | FALSE | evaluated 6 times by 1 test |
| 0-6 |
228 | | - |
229 | ++invalid; | - |
230 | *cursor++ = replacement; | - |
231 | } else if (res == QUtf8BaseTraits::EndOfString) { never executed: end of block TRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
| 0-6 |
232 | surrogate_high = uc; | - |
233 | break;executed 6 times by 1 test: break; | 6 |
234 | } | - |
235 | } never executed: end of block | 0 |
236 | | - |
237 | rstr.resize(cursor - (const uchar*)rstr.constData()); | - |
238 | 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 450707 times by 409 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-450707 |
239 | state->invalidChars += invalid; | - |
240 | state->flags |= QTextCodec::IgnoreHeader; | - |
241 | state->remainingChars = 0; | - |
242 | 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 |
243 | state->remainingChars = 1; | - |
244 | state->state_data[0] = surrogate_high; | - |
245 | }executed 6 times by 1 test: end of block | 6 |
246 | }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 |
247 | return rstr;executed 490073 times by 409 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
- ...
| 490073 |
248 | } | - |
249 | | - |
250 | QString QUtf8::convertToUnicode(const char *chars, int len) | - |
251 | { | - |
252 | | - |
253 | | - |
254 | | - |
255 | | - |
256 | | - |
257 | | - |
258 | | - |
259 | | - |
260 | | - |
261 | | - |
262 | | - |
263 | | - |
264 | QString result(len, Qt::Uninitialized); | - |
265 | QChar *data = const_cast<QChar*>(result.constData()); | - |
266 | const QChar *end = convertToUnicode(data, chars, len); | - |
267 | result.truncate(end - data); | - |
268 | return result;executed 3930821 times by 532 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_QApplication
- tst_QAsn1Element
- ...
| 3930821 |
269 | } | - |
270 | | - |
271 | | - |
272 | | - |
273 | | - |
274 | | - |
275 | | - |
276 | | - |
277 | | - |
278 | | - |
279 | | - |
280 | | - |
281 | | - |
282 | | - |
283 | | - |
284 | | - |
285 | | - |
286 | | - |
287 | | - |
288 | QChar *QUtf8::convertToUnicode(QChar *buffer, const char *chars, int len) Q_DECL_NOTHROW | - |
289 | { | - |
290 | ushort *dst = reinterpret_cast<ushort *>(buffer); | - |
291 | const uchar *src = reinterpret_cast<const uchar *>(chars); | - |
292 | const uchar *end = src + len; | - |
293 | | - |
294 | | - |
295 | const uchar *nextAscii = end; | - |
296 | if (!simdDecodeAscii(dst, nextAscii, src, end)) {TRUE | evaluated 4015432 times by 546 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 598854 times by 300 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
- ...
|
| 598854-4015432 |
297 | | - |
298 | | - |
299 | if (Q_UNLIKELY(src == reinterpret_cast<const uchar *>(chars))TRUE | evaluated 3479490 times by 518 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 535942 times by 497 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
- ...
|
| 535942-3479490 |
300 | && end - src >= 3TRUE | evaluated 1873886 times by 389 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 1605604 times by 445 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
- ...
|
| 1605604-1873886 |
301 | && 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 1873881 times by 389 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-1873881 |
302 | src += 3; | - |
303 | }executed 5 times by 2 tests: end of block Executed by:- tst_QString
- tst_QUrlInternal
| 5 |
304 | | - |
305 | while (src < end) {TRUE | evaluated 4064914 times by 546 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 4015424 times by 546 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
- ...
|
| 4015424-4064914 |
306 | nextAscii = end; | - |
307 | if (simdDecodeAscii(dst, nextAscii, src, end))TRUE | evaluated 8 times by 1 test | FALSE | evaluated 4064906 times by 546 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-4064906 |
308 | break;executed 8 times by 1 test: break; | 8 |
309 | | - |
310 | do { | - |
311 | uchar b = *src++; | - |
312 | int res = QUtf8Functions::fromUtf8<QUtf8BaseTraits>(b, dst, src, end); | - |
313 | if (res < 0) {TRUE | evaluated 530 times by 5 testsEvaluated by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
| FALSE | evaluated 17941153 times by 546 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-17941153 |
314 | | - |
315 | *dst++ = QChar::ReplacementCharacter; | - |
316 | }executed 530 times by 5 tests: end of block Executed by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QUrlInternal
- tst_QXmlSimpleReader
| 530 |
317 | } while (src < nextAscii);executed 17941683 times by 546 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 13876777 times by 543 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 4064906 times by 546 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
- ...
|
| 4064906-17941683 |
318 | }executed 4064906 times by 546 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
- ...
| 4064906 |
319 | }executed 4015432 times by 546 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
- ...
| 4015432 |
320 | | - |
321 | return reinterpret_cast<QChar *>(dst);executed 4614286 times by 546 tests: return reinterpret_cast<QChar *>(dst); 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
- ...
| 4614286 |
322 | } | - |
323 | | - |
324 | QString QUtf8::convertToUnicode(const char *chars, int len, QTextCodec::ConverterState *state) | - |
325 | { | - |
326 | bool headerdone = false; | - |
327 | ushort replacement = QChar::ReplacementCharacter; | - |
328 | int invalid = 0; | - |
329 | int res; | - |
330 | uchar ch = 0; | - |
331 | | - |
332 | | - |
333 | | - |
334 | | - |
335 | | - |
336 | | - |
337 | | - |
338 | | - |
339 | | - |
340 | | - |
341 | | - |
342 | QString result(len + 1, Qt::Uninitialized); | - |
343 | | - |
344 | ushort *dst = reinterpret_cast<ushort *>(const_cast<QChar *>(result.constData())); | - |
345 | const uchar *src = reinterpret_cast<const uchar *>(chars); | - |
346 | const uchar *end = src + len; | - |
347 | | - |
348 | if (state) {TRUE | evaluated 41147320 times by 54 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- 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_QDateTimeEdit
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- ...
| FALSE | evaluated 279743 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
- ...
|
| 279743-41147320 |
349 | 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 12906 times by 54 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- 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_QDateTimeEdit
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- ...
|
| 12906-41134414 |
350 | 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 |
351 | if (state->flags & QTextCodec::ConvertInvalidToNull)TRUE | evaluated 4 times by 1 test | FALSE | evaluated 41147316 times by 54 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- 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_QDateTimeEdit
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- ...
|
| 4-41147316 |
352 | replacement = QChar::Null;executed 4 times by 1 test: replacement = QChar::Null; | 4 |
353 | 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 41146996 times by 54 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- 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_QDateTimeEdit
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- ...
|
| 324-41146996 |
354 | | - |
355 | uchar remainingCharsData[4]; | - |
356 | int remainingCharsCount = state->remainingChars; | - |
357 | int newCharsToCopy = qMin<int>(sizeof(remainingCharsData) - remainingCharsCount, end - src); | - |
358 | | - |
359 | memset(remainingCharsData, 0, sizeof(remainingCharsData)); | - |
360 | memcpy(remainingCharsData, &state->state_data[0], remainingCharsCount); | - |
361 | memcpy(remainingCharsData + remainingCharsCount, src, newCharsToCopy); | - |
362 | | - |
363 | const uchar *begin = &remainingCharsData[1]; | - |
364 | res = QUtf8Functions::fromUtf8<QUtf8BaseTraits>(remainingCharsData[0], dst, begin, | - |
365 | static_cast<const uchar *>(remainingCharsData) + remainingCharsCount + newCharsToCopy); | - |
366 | 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 |
367 | | - |
368 | | - |
369 | ++invalid; | - |
370 | *dst++ = replacement; | - |
371 | } 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 |
372 | | - |
373 | | - |
374 | state->remainingChars = remainingCharsCount + newCharsToCopy; | - |
375 | memcpy(&state->state_data[0], remainingCharsData, state->remainingChars); | - |
376 | return QString();executed 80 times by 5 tests: return QString(); Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 80 |
377 | } 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 |
378 | | - |
379 | headerdone = true; | - |
380 | 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 |
381 | --dst;executed 10 times by 2 tests: --dst; Executed by:- tst_QTextCodec
- tst_QTextStream
| 10 |
382 | }executed 27 times by 3 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_Utf8
| 27 |
383 | | - |
384 | | - |
385 | 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 |
386 | Q_ASSERT(res > remainingCharsCount); | - |
387 | src += res - remainingCharsCount; | - |
388 | }executed 224 times by 6 tests: end of block Executed by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 224 |
389 | }executed 244 times by 6 tests: end of block Executed by:- tst_QMimeDatabase
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 244 |
390 | }executed 41147240 times by 54 tests: end of block Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- 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_QDateTimeEdit
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- ...
| 41147240 |
391 | | - |
392 | | - |
393 | res = 0; | - |
394 | const uchar *nextAscii = src; | - |
395 | const uchar *start = src; | - |
396 | while (res >= 0 && src < end) {TRUE | evaluated 85706989 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 44293839 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 41413150 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-85706989 |
397 | if (src >= nextAscii && simdDecodeAscii(dst, nextAscii, src, end))TRUE | evaluated 43858481 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 435358 times by 33 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIcon
- tst_QMimeDatabase
- tst_QPrinter
- tst_QSidebar
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_static
- tst_QStyle
- tst_QSystemTrayIcon
- tst_QTemporaryDir
- tst_QTemporaryFile
- ...
|
TRUE | evaluated 13575 times by 208 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 43844906 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
- ...
|
| 13575-43858481 |
398 | break;executed 13575 times by 208 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
- ...
| 13575 |
399 | | - |
400 | ch = *src++; | - |
401 | res = QUtf8Functions::fromUtf8<QUtf8BaseTraits>(ch, dst, src, end); | - |
402 | if (!headerdone && res >= 0) {TRUE | evaluated 280915 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 43999349 times by 340 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 280030 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-43999349 |
403 | headerdone = true; | - |
404 | if (src == start + 3) { TRUE | evaluated 151 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 279879 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-279879 |
405 | | - |
406 | 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 |
407 | --dst;executed 15 times by 3 tests: --dst; Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 15 |
408 | }executed 151 times by 4 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
- tst_Utf8
| 151 |
409 | }executed 280030 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
- ...
| 280030 |
410 | if (res == QUtf8BaseTraits::Error) {TRUE | evaluated 1176 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| FALSE | evaluated 44279088 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-44279088 |
411 | res = 0; | - |
412 | ++invalid; | - |
413 | *dst++ = replacement; | - |
414 | }executed 1176 times by 4 tests: end of block Executed by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_Utf8
| 1176 |
415 | }executed 44280264 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
- ...
| 44280264 |
416 | | - |
417 | if (!state && res == QUtf8BaseTraits::EndOfString) {TRUE | evaluated 279743 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 41147240 times by 54 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- 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_QDateTimeEdit
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- ...
|
TRUE | evaluated 9 times by 1 test | FALSE | evaluated 279734 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-41147240 |
418 | | - |
419 | *dst++ = QChar::ReplacementCharacter; | - |
420 | while (src++ < end)TRUE | evaluated 5 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 5-9 |
421 | *dst++ = QChar::ReplacementCharacter;executed 5 times by 1 test: *dst++ = QChar::ReplacementCharacter; | 5 |
422 | }executed 9 times by 1 test: end of block | 9 |
423 | | - |
424 | result.truncate(dst - (const ushort *)result.unicode()); | - |
425 | if (state) {TRUE | evaluated 41147240 times by 54 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- 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_QDateTimeEdit
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- ...
| FALSE | evaluated 279743 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
- ...
|
| 279743-41147240 |
426 | state->invalidChars += invalid; | - |
427 | if (headerdone)TRUE | evaluated 41146128 times by 54 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- 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_QDateTimeEdit
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- ...
| FALSE | evaluated 1112 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
|
| 1112-41146128 |
428 | state->flags |= QTextCodec::IgnoreHeader;executed 41146128 times by 54 tests: state->flags |= QTextCodec::IgnoreHeader; Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- 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_QDateTimeEdit
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- ...
| 41146128 |
429 | 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 41146991 times by 54 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- 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_QDateTimeEdit
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- ...
|
| 249-41146991 |
430 | --src; | - |
431 | state->remainingChars = end - src; | - |
432 | memcpy(&state->state_data[0], src, end - src); | - |
433 | } 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 |
434 | state->remainingChars = 0; | - |
435 | }executed 41146991 times by 54 tests: end of block Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- 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_QDateTimeEdit
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- ...
| 41146991 |
436 | } | - |
437 | return result;executed 41426983 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
- ...
| 41426983 |
438 | } | - |
439 | | - |
440 | QByteArray QUtf16::convertFromUnicode(const QChar *uc, int len, QTextCodec::ConverterState *state, DataEndianness e) | - |
441 | { | - |
442 | DataEndianness endian = e; | - |
443 | int length = 2*len; | - |
444 | 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 |
445 | length += 2; | - |
446 | }executed 55 times by 2 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
| 55 |
447 | 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 |
448 | 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 |
449 | }executed 15 times by 3 tests: end of block Executed by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
| 15 |
450 | | - |
451 | QByteArray d; | - |
452 | d.resize(length); | - |
453 | char *data = d.data(); | - |
454 | 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 |
455 | QChar bom(QChar::ByteOrderMark); | - |
456 | if (endian == BigEndianness) {TRUE | evaluated 23 times by 1 test | FALSE | evaluated 32 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
|
| 23-32 |
457 | data[0] = bom.row(); | - |
458 | data[1] = bom.cell(); | - |
459 | } else {executed 23 times by 1 test: end of block | 23 |
460 | data[0] = bom.cell(); | - |
461 | data[1] = bom.row(); | - |
462 | }executed 32 times by 2 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
| 32 |
463 | data += 2; | - |
464 | }executed 55 times by 2 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
| 55 |
465 | 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 |
466 | for (int i = 0; i < len; ++i) {TRUE | evaluated 206 times by 1 test | FALSE | evaluated 23 times by 1 test |
| 23-206 |
467 | *(data++) = uc[i].row(); | - |
468 | *(data++) = uc[i].cell(); | - |
469 | }executed 206 times by 1 test: end of block | 206 |
470 | } else {executed 23 times by 1 test: end of block | 23 |
471 | 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 |
472 | *(data++) = uc[i].cell(); | - |
473 | *(data++) = uc[i].row(); | - |
474 | }executed 337 times by 4 tests: end of block Executed by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 337 |
475 | }executed 45 times by 4 tests: end of block Executed by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 45 |
476 | | - |
477 | 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 |
478 | state->remainingChars = 0; | - |
479 | state->flags |= QTextCodec::IgnoreHeader; | - |
480 | }executed 16 times by 4 tests: end of block Executed by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 16 |
481 | return d;executed 68 times by 4 tests: return d; Executed by:- tst_QString
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 68 |
482 | } | - |
483 | | - |
484 | QString QUtf16::convertToUnicode(const char *chars, int len, QTextCodec::ConverterState *state, DataEndianness e) | - |
485 | { | - |
486 | DataEndianness endian = e; | - |
487 | bool half = false; | - |
488 | uchar buf = 0; | - |
489 | bool headerdone = false; | - |
490 | if (state) {TRUE | evaluated 1988 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 233881 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-233881 |
491 | headerdone = state->flags & QTextCodec::IgnoreHeader; | - |
492 | 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 |
493 | 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 |
494 | 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 |
495 | half = true; | - |
496 | buf = state->state_data[Data]; | - |
497 | }executed 651 times by 3 tests: end of block Executed by:- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 651 |
498 | }executed 1988 times by 4 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 1988 |
499 | if (headerdone && endian == DetectEndianness)TRUE | evaluated 1659 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 234210 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-234210 |
500 | 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 |
501 | | - |
502 | QString result(len, Qt::Uninitialized); | - |
503 | QChar *qch = (QChar *)result.data(); | - |
504 | while (len--) {TRUE | evaluated 1186645 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 235869 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
|
| 235869-1186645 |
505 | if (half) {TRUE | evaluated 593322 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 593323 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
|
| 593322-593323 |
506 | QChar ch; | - |
507 | if (endian == LittleEndianness) {TRUE | evaluated 356752 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 236570 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
|
| 236570-356752 |
508 | ch.setRow(*chars++); | - |
509 | ch.setCell(buf); | - |
510 | } else {executed 356752 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
| 356752 |
511 | ch.setRow(buf); | - |
512 | ch.setCell(*chars++); | - |
513 | }executed 236570 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
| 236570 |
514 | if (!headerdone) {TRUE | evaluated 234162 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 359160 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
|
| 234162-359160 |
515 | headerdone = true; | - |
516 | if (endian == DetectEndianness) {TRUE | evaluated 233914 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-233914 |
517 | if (ch == QChar::ByteOrderSwapped) {TRUE | evaluated 78 times by 3 testsEvaluated by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 233836 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-233836 |
518 | endian = LittleEndianness; | - |
519 | } 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 233833 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-233833 |
520 | endian = BigEndianness; | - |
521 | } else {executed 3 times by 3 tests: end of block Executed by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
| 3 |
522 | if (QSysInfo::ByteOrder == QSysInfo::BigEndian) {TRUE | never evaluated | FALSE | evaluated 233833 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-233833 |
523 | endian = BigEndianness; | - |
524 | } else { never executed: end of block | 0 |
525 | endian = LittleEndianness; | - |
526 | ch = QChar((ch.unicode() >> 8) | ((ch.unicode() & 0xff) << 8)); | - |
527 | }executed 233833 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
| 233833 |
528 | *qch++ = ch; | - |
529 | }executed 233833 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
| 233833 |
530 | } 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 |
531 | *qch++ = ch; | - |
532 | }executed 4 times by 3 tests: end of block Executed by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
| 4 |
533 | } else {executed 234162 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
| 234162 |
534 | *qch++ = ch; | - |
535 | }executed 359160 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
| 359160 |
536 | half = false; | - |
537 | } else {executed 593322 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
| 593322 |
538 | buf = *chars++; | - |
539 | half = true; | - |
540 | }executed 593323 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
| 593323 |
541 | } | - |
542 | result.truncate(qch - result.unicode()); | - |
543 | | - |
544 | if (state) {TRUE | evaluated 1988 times by 4 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| FALSE | evaluated 233881 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-233881 |
545 | 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 |
546 | 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 |
547 | state->state_data[Endian] = endian; | - |
548 | 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 |
549 | state->remainingChars = 1; | - |
550 | state->state_data[Data] = buf; | - |
551 | } else {executed 652 times by 3 tests: end of block Executed by:- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 652 |
552 | state->remainingChars = 0; | - |
553 | state->state_data[Data] = 0; | - |
554 | }executed 1336 times by 4 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 1336 |
555 | } | - |
556 | return result;executed 235869 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
| 235869 |
557 | } | - |
558 | | - |
559 | QByteArray QUtf32::convertFromUnicode(const QChar *uc, int len, QTextCodec::ConverterState *state, DataEndianness e) | - |
560 | { | - |
561 | DataEndianness endian = e; | - |
562 | int length = 4*len; | - |
563 | 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 |
564 | length += 4; | - |
565 | }executed 24 times by 1 test: end of block | 24 |
566 | if (e == DetectEndianness) {TRUE | evaluated 11 times by 1 test | FALSE | evaluated 15 times by 1 test |
| 11-15 |
567 | endian = (QSysInfo::ByteOrder == QSysInfo::BigEndian) ? BigEndianness : LittleEndianness;TRUE | never evaluated | FALSE | evaluated 11 times by 1 test |
| 0-11 |
568 | }executed 11 times by 1 test: end of block | 11 |
569 | | - |
570 | QByteArray d(length, Qt::Uninitialized); | - |
571 | char *data = d.data(); | - |
572 | 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 |
573 | if (endian == BigEndianness) {TRUE | evaluated 7 times by 1 test | FALSE | evaluated 17 times by 1 test |
| 7-17 |
574 | data[0] = 0; | - |
575 | data[1] = 0; | - |
576 | data[2] = (char)0xfe; | - |
577 | data[3] = (char)0xff; | - |
578 | } else {executed 7 times by 1 test: end of block | 7 |
579 | data[0] = (char)0xff; | - |
580 | data[1] = (char)0xfe; | - |
581 | data[2] = 0; | - |
582 | data[3] = 0; | - |
583 | }executed 17 times by 1 test: end of block | 17 |
584 | data += 4; | - |
585 | }executed 24 times by 1 test: end of block | 24 |
586 | | - |
587 | QStringIterator i(uc, uc + len); | - |
588 | if (endian == BigEndianness) {TRUE | evaluated 7 times by 1 test | FALSE | evaluated 19 times by 1 test |
| 7-19 |
589 | while (i.hasNext()) {TRUE | evaluated 54 times by 1 test | FALSE | evaluated 7 times by 1 test |
| 7-54 |
590 | uint cp = i.next(); | - |
591 | | - |
592 | *(data++) = cp >> 24; | - |
593 | *(data++) = (cp >> 16) & 0xff; | - |
594 | *(data++) = (cp >> 8) & 0xff; | - |
595 | *(data++) = cp & 0xff; | - |
596 | }executed 54 times by 1 test: end of block | 54 |
597 | } else {executed 7 times by 1 test: end of block | 7 |
598 | while (i.hasNext()) {TRUE | evaluated 122 times by 1 test | FALSE | evaluated 19 times by 1 test |
| 19-122 |
599 | uint cp = i.next(); | - |
600 | | - |
601 | *(data++) = cp & 0xff; | - |
602 | *(data++) = (cp >> 8) & 0xff; | - |
603 | *(data++) = (cp >> 16) & 0xff; | - |
604 | *(data++) = cp >> 24; | - |
605 | }executed 122 times by 1 test: end of block | 122 |
606 | }executed 19 times by 1 test: end of block | 19 |
607 | | - |
608 | if (state) {TRUE | evaluated 4 times by 1 test | FALSE | evaluated 22 times by 1 test |
| 4-22 |
609 | state->remainingChars = 0; | - |
610 | state->flags |= QTextCodec::IgnoreHeader; | - |
611 | }executed 4 times by 1 test: end of block | 4 |
612 | return d;executed 26 times by 1 test: return d; | 26 |
613 | } | - |
614 | | - |
615 | QString QUtf32::convertToUnicode(const char *chars, int len, QTextCodec::ConverterState *state, DataEndianness e) | - |
616 | { | - |
617 | DataEndianness endian = e; | - |
618 | uchar tuple[4]; | - |
619 | int num = 0; | - |
620 | bool headerdone = false; | - |
621 | 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 |
622 | headerdone = state->flags & QTextCodec::IgnoreHeader; | - |
623 | if (endian == DetectEndianness) {TRUE | evaluated 4 times by 1 test | FALSE | evaluated 360 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
|
| 4-360 |
624 | endian = (DataEndianness)state->state_data[Endian]; | - |
625 | }executed 4 times by 1 test: end of block | 4 |
626 | num = state->remainingChars; | - |
627 | memcpy(tuple, &state->state_data[Data], 4); | - |
628 | }executed 364 times by 2 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
| 364 |
629 | 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 |
630 | 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 |
631 | | - |
632 | QString result; | - |
633 | result.resize((num + len) >> 2 << 1); | - |
634 | QChar *qch = (QChar *)result.data(); | - |
635 | | - |
636 | const char *end = chars + len; | - |
637 | 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 |
638 | tuple[num++] = *chars++; | - |
639 | 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 |
640 | 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 |
641 | 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 |
642 | 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 |
643 | endian = LittleEndianness; | - |
644 | num = 0; | - |
645 | continue;executed 9 times by 1 test: continue; | 9 |
646 | } 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 |
647 | endian = BigEndianness; | - |
648 | num = 0; | - |
649 | continue;executed 1 time by 1 test: continue; | 1 |
650 | } 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 |
651 | endian = BigEndianness; | - |
652 | } else { never executed: end of block | 0 |
653 | endian = LittleEndianness; | - |
654 | }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 |
655 | } 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 |
656 | num = 0; | - |
657 | continue;executed 47 times by 2 tests: continue; Executed by:- tst_QTextCodec
- tst_QTextStream
| 47 |
658 | } | - |
659 | }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 |
660 | 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 |
661 | 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 |
662 | *qch++ = QChar::highSurrogate(code); | - |
663 | *qch++ = QChar::lowSurrogate(code); | - |
664 | } else {executed 58 times by 4 tests: end of block Executed by:- tst_QString
- tst_QStringIterator
- tst_QXmlStream
- tst_Utf8
| 58 |
665 | *qch++ = code; | - |
666 | }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 |
667 | num = 0; | - |
668 | }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 |
669 | }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 |
670 | result.truncate(qch - result.unicode()); | - |
671 | | - |
672 | 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 |
673 | if (headerdone)TRUE | evaluated 3 times by 1 test | FALSE | evaluated 361 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QTextStream
|
| 3-361 |
674 | state->flags |= QTextCodec::IgnoreHeader;executed 3 times by 1 test: state->flags |= QTextCodec::IgnoreHeader; | 3 |
675 | state->state_data[Endian] = endian; | - |
676 | state->remainingChars = num; | - |
677 | memcpy(&state->state_data[Data], tuple, 4); | - |
678 | }executed 364 times by 2 tests: end of block Executed by:- tst_QTextCodec
- tst_QTextStream
| 364 |
679 | 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 |
680 | } | - |
681 | | - |
682 | | - |
683 | #ifndef QT_NO_TEXTCODEC | - |
684 | | - |
685 | QUtf8Codec::~QUtf8Codec() | - |
686 | { | - |
687 | } | - |
688 | | - |
689 | QByteArray QUtf8Codec::convertFromUnicode(const QChar *uc, int len, ConverterState *state) const | - |
690 | { | - |
691 | return QUtf8::convertFromUnicode(uc, len, state);executed 490073 times by 409 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
- ...
| 490073 |
692 | } | - |
693 | | - |
694 | void QUtf8Codec::convertToUnicode(QString *target, const char *chars, int len, ConverterState *state) const | - |
695 | { | - |
696 | *target += QUtf8::convertToUnicode(chars, len, state); | - |
697 | }executed 62786 times by 37 tests: end of block Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- 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_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- ...
| 62786 |
698 | | - |
699 | QString QUtf8Codec::convertToUnicode(const char *chars, int len, ConverterState *state) const | - |
700 | { | - |
701 | return QUtf8::convertToUnicode(chars, len, state);executed 41364277 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
- ...
| 41364277 |
702 | } | - |
703 | | - |
704 | QByteArray QUtf8Codec::name() const | - |
705 | { | - |
706 | return "UTF-8";executed 357 times by 38 tests: return "UTF-8"; Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QClipboard
- tst_QComboBox
- tst_QCompleter
- tst_QDBusXmlParser
- tst_QDateTimeEdit
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGlobal
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QIcon
- tst_QMimeData
- tst_QMimeDatabase
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- ...
| 357 |
707 | } | - |
708 | | - |
709 | int QUtf8Codec::mibEnum() const | - |
710 | { | - |
711 | return 106;executed 63049 times by 43 tests: return 106; Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QComboBox
- tst_QCompleter
- 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_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- ...
| 63049 |
712 | } | - |
713 | | - |
714 | QUtf16Codec::~QUtf16Codec() | - |
715 | { | - |
716 | } | - |
717 | | - |
718 | QByteArray QUtf16Codec::convertFromUnicode(const QChar *uc, int len, ConverterState *state) const | - |
719 | { | - |
720 | 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 |
721 | } | - |
722 | | - |
723 | QString QUtf16Codec::convertToUnicode(const char *chars, int len, ConverterState *state) const | - |
724 | { | - |
725 | 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 |
726 | } | - |
727 | | - |
728 | int QUtf16Codec::mibEnum() const | - |
729 | { | - |
730 | return 1015;executed 445 times by 3 tests: return 1015; Executed by:- tst_QTextCodec
- tst_QXmlSimpleReader
- tst_QXmlStream
| 445 |
731 | } | - |
732 | | - |
733 | QByteArray QUtf16Codec::name() const | - |
734 | { | - |
735 | 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 |
736 | } | - |
737 | | - |
738 | QList<QByteArray> QUtf16Codec::aliases() const | - |
739 | { | - |
740 | return QList<QByteArray>();executed 143 times by 4 tests: return QList<QByteArray>(); Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 143 |
741 | } | - |
742 | | - |
743 | int QUtf16BECodec::mibEnum() const | - |
744 | { | - |
745 | return 1013;executed 22 times by 3 tests: return 1013; Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 22 |
746 | } | - |
747 | | - |
748 | QByteArray QUtf16BECodec::name() const | - |
749 | { | - |
750 | return "UTF-16BE";executed 159 times by 3 tests: return "UTF-16BE"; Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 159 |
751 | } | - |
752 | | - |
753 | QList<QByteArray> QUtf16BECodec::aliases() const | - |
754 | { | - |
755 | QList<QByteArray> list; | - |
756 | return list;executed 158 times by 3 tests: return list; Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlStream
| 158 |
757 | } | - |
758 | | - |
759 | int QUtf16LECodec::mibEnum() const | - |
760 | { | - |
761 | return 1014;executed 22 times by 2 tests: return 1014; Executed by:- tst_QTextCodec
- tst_QTextStream
| 22 |
762 | } | - |
763 | | - |
764 | QByteArray QUtf16LECodec::name() const | - |
765 | { | - |
766 | return "UTF-16LE";executed 153 times by 4 tests: return "UTF-16LE"; Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 153 |
767 | } | - |
768 | | - |
769 | QList<QByteArray> QUtf16LECodec::aliases() const | - |
770 | { | - |
771 | QList<QByteArray> list; | - |
772 | return list;executed 150 times by 4 tests: return list; Executed by:- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
| 150 |
773 | } | - |
774 | | - |
775 | QUtf32Codec::~QUtf32Codec() | - |
776 | { | - |
777 | } | - |
778 | | - |
779 | QByteArray QUtf32Codec::convertFromUnicode(const QChar *uc, int len, ConverterState *state) const | - |
780 | { | - |
781 | return QUtf32::convertFromUnicode(uc, len, state, e);executed 26 times by 1 test: return QUtf32::convertFromUnicode(uc, len, state, e); | 26 |
782 | } | - |
783 | | - |
784 | QString QUtf32Codec::convertToUnicode(const char *chars, int len, ConverterState *state) const | - |
785 | { | - |
786 | 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 |
787 | } | - |
788 | | - |
789 | int QUtf32Codec::mibEnum() const | - |
790 | { | - |
791 | return 1017;executed 17 times by 1 test: return 1017; | 17 |
792 | } | - |
793 | | - |
794 | QByteArray QUtf32Codec::name() const | - |
795 | { | - |
796 | return "UTF-32";executed 131 times by 1 test: return "UTF-32"; | 131 |
797 | } | - |
798 | | - |
799 | QList<QByteArray> QUtf32Codec::aliases() const | - |
800 | { | - |
801 | QList<QByteArray> list; | - |
802 | return list;executed 130 times by 1 test: return list; | 130 |
803 | } | - |
804 | | - |
805 | int QUtf32BECodec::mibEnum() const | - |
806 | { | - |
807 | return 1018;executed 21 times by 2 tests: return 1018; Executed by:- tst_QTextCodec
- tst_QTextStream
| 21 |
808 | } | - |
809 | | - |
810 | QByteArray QUtf32BECodec::name() const | - |
811 | { | - |
812 | return "UTF-32BE";executed 135 times by 2 tests: return "UTF-32BE"; Executed by:- tst_QTextCodec
- tst_QTextStream
| 135 |
813 | } | - |
814 | | - |
815 | QList<QByteArray> QUtf32BECodec::aliases() const | - |
816 | { | - |
817 | QList<QByteArray> list; | - |
818 | return list;executed 134 times by 2 tests: return list; Executed by:- tst_QTextCodec
- tst_QTextStream
| 134 |
819 | } | - |
820 | | - |
821 | int QUtf32LECodec::mibEnum() const | - |
822 | { | - |
823 | return 1019;executed 22 times by 2 tests: return 1019; Executed by:- tst_QTextCodec
- tst_QTextStream
| 22 |
824 | } | - |
825 | | - |
826 | QByteArray QUtf32LECodec::name() const | - |
827 | { | - |
828 | return "UTF-32LE";executed 132 times by 2 tests: return "UTF-32LE"; Executed by:- tst_QTextCodec
- tst_QTextStream
| 132 |
829 | } | - |
830 | | - |
831 | QList<QByteArray> QUtf32LECodec::aliases() const | - |
832 | { | - |
833 | QList<QByteArray> list; | - |
834 | return list;executed 131 times by 2 tests: return list; Executed by:- tst_QTextCodec
- tst_QTextStream
| 131 |
835 | } | - |
836 | | - |
837 | #endif //QT_NO_TEXTCODEC | - |
838 | | - |
839 | QT_END_NAMESPACE | - |
| | |