qutfcodec.cpp

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

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