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 2394194 times by 391 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 3969456 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) {
2394194-3969456
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 2390208 times by 389 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-2390208
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 2390208 times by 389 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
2390208
36 return
executed 3969456 times by 419 tests: return src == end;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
src == end;
executed 3969456 times by 419 tests: return src == end;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
3969456
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 4564301 times by 534 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 52293448 times by 569 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) {
4564301-52293448
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 4320068 times by 530 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 244233 times by 65 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • ...
) {
244233-4320068
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 4320068 times by 530 tests: continue;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • ...
4320068
54 }-
55-
56-
57-
58 while (!(n & 1)
!(n & 1)Description
TRUEevaluated 1277262 times by 64 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • ...
FALSEevaluated 244233 times by 65 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • ...
) {
244233-1277262
59 *dst++ = *src++;-
60 n >>= BitSpacing;-
61 }
executed 1277262 times by 64 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • ...
1277262
62-
63-
64-
65-
66 n = __bsrd(n);-
67 nextAscii = src + (n / BitSpacing) + 1;-
68 return
executed 244233 times by 65 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • ...
false;
executed 244233 times by 65 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • ...
244233
69-
70 }-
71 return
executed 52293448 times by 569 tests: return src == end;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
src == end;
executed 52293448 times by 569 tests: return src == end;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
52293448
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 104982 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
  • ...
FALSEevaluated 101886 times by 243 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
  • ...
) {
101886-104982
82 const ushort *nextAscii = end;-
83 if (simdEncodeAscii(dst, nextAscii, src, end)
simdEncodeAsci...cii, src, end)Description
TRUEevaluated 3437 times by 70 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 101545 times by 243 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
  • ...
)
3437-101545
84 break;
executed 3437 times by 70 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontCache
  • ...
3437
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 555898 times by 243 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-555898
90-
91 *dst++ = '?';-
92 }
never executed: end of block
0
93 }
executed 555898 times by 243 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
while (src < nextAscii
src < nextAsciiDescription
TRUEevaluated 454353 times by 238 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 101545 times by 243 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
  • ...
);
101545-555898
94 }
executed 101545 times by 243 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
101545
95-
96 result.truncate(dst - reinterpret_cast<uchar *>(const_cast<char *>(result.constData())));-
97 return
executed 105323 times by 245 tests: return result;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
result;
executed 105323 times by 245 tests: return result;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
105323
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 450707 times by 409 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-450707
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 450707 times by 409 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-450707
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 3879611 times by 408 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 477672 times by 408 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
  • ...
) {
477672-3879611
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 3879605 times by 408 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-3879605
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 3868460 times by 408 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 12395 times by 176 tests
Evaluated by:
  • tst_Collections
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • ...
FALSEevaluated 3856065 times by 405 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-3868460
138 break;
executed 12395 times by 176 tests: break;
Executed by:
  • tst_Collections
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • ...
12395
139-
140 uc = *src++;-
141 res = QUtf8Functions::toUtf8<QUtf8BaseTraits>(uc, cursor, src, end);-
142 }
executed 3867210 times by 405 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
3867210
143 if (__builtin_expect(!!(res >= 0), true)
__builtin_expe...s >= 0), true)Description
TRUEevaluated 3867210 times by 405 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-3867210
144 continue;
executed 3867210 times by 405 tests: continue;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
3867210
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 450707 times by 409 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-450707
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 490073 times by 409 tests: return rstr;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
rstr;
executed 490073 times by 409 tests: return rstr;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
490073
167}-
168-
169QString QUtf8::convertToUnicode(const char *chars, int len)-
170{-
171 QString result(len, Qt::Uninitialized);-
172 QChar *data = const_cast<QChar*>(result.constData());-
173 const QChar *end = convertToUnicode(data, chars, len);-
174 result.truncate(end - data);-
175 return
executed 3930821 times by 532 tests: return result;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • ...
result;
executed 3930821 times by 532 tests: return result;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • ...
3930821
176}-
177QChar *QUtf8::convertToUnicode(QChar *buffer, const char *chars, int len) noexcept-
178{-
179 ushort *dst = reinterpret_cast<ushort *>(buffer);-
180 const uchar *src = reinterpret_cast<const uchar *>(chars);-
181 const uchar *end = src + len;-
182-
183-
184 const uchar *nextAscii = end;-
185 if (!simdDecodeAscii(dst, nextAscii, src, end)
!simdDecodeAsc...cii, src, end)Description
TRUEevaluated 4015432 times by 546 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 598854 times by 300 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
  • ...
) {
598854-4015432
186-
187-
188 if (__builtin_expect(!!(src == reinterpret_cast<const uchar *>(chars)), false)
__builtin_expe...hars)), false)Description
TRUEevaluated 3479490 times by 518 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 535942 times by 497 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
  • ...
535942-3479490
189 && end - src >= 3
end - src >= 3Description
TRUEevaluated 1873886 times by 389 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 1605604 times by 445 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
  • ...
1605604-1873886
190 && __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 1873881 times by 389 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-1873881
191 src += 3;-
192 }
executed 5 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QUrlInternal
5
193-
194 while (src < end
src < endDescription
TRUEevaluated 4064914 times by 546 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 4015424 times by 546 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
  • ...
) {
4015424-4064914
195 nextAscii = end;-
196 if (simdDecodeAscii(dst, nextAscii, src, end)
simdDecodeAsci...cii, src, end)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QComplexText
FALSEevaluated 4064906 times by 546 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-4064906
197 break;
executed 8 times by 1 test: break;
Executed by:
  • tst_QComplexText
8
198-
199 do {-
200 uchar b = *src++;-
201 int res = QUtf8Functions::fromUtf8<QUtf8BaseTraits>(b, dst, src, end);-
202 if (res < 0
res < 0Description
TRUEevaluated 530 times by 5 tests
Evaluated by:
  • tst_QString
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
FALSEevaluated 17941153 times by 546 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-17941153
203-
204 *dst++ = QChar::ReplacementCharacter;-
205 }
executed 530 times by 5 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
530
206 }
executed 17941683 times by 546 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
while (src < nextAscii
src < nextAsciiDescription
TRUEevaluated 13876777 times by 543 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 4064906 times by 546 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
  • ...
);
4064906-17941683
207 }
executed 4064906 times by 546 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
4064906
208 }
executed 4015432 times by 546 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
4015432
209-
210 return
executed 4614286 times by 546 tests: return reinterpret_cast<QChar *>(dst);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
reinterpret_cast<QChar *>(dst);
executed 4614286 times by 546 tests: return reinterpret_cast<QChar *>(dst);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
4614286
211}-
212-
213QString QUtf8::convertToUnicode(const char *chars, int len, QTextCodec::ConverterState *state)-
214{-
215 bool headerdone = false;-
216 ushort replacement = QChar::ReplacementCharacter;-
217 int invalid = 0;-
218 int res;-
219 uchar ch = 0;-
220 QString result(len + 1, Qt::Uninitialized);-
221-
222 ushort *dst = reinterpret_cast<ushort *>(const_cast<QChar *>(result.constData()));-
223 const uchar *src = reinterpret_cast<const uchar *>(chars);-
224 const uchar *end = src + len;-
225-
226 if (state
stateDescription
TRUEevaluated 41147320 times by 54 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 279743 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
  • ...
) {
279743-41147320
227 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 12906 times by 54 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
)
12906-41134414
228 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
229 if (state->flags & QTextCodec::ConvertInvalidToNull
state->flags &...tInvalidToNullDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTextCodec
FALSEevaluated 41147316 times by 54 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
)
4-41147316
230 replacement = QChar::Null;
executed 4 times by 1 test: replacement = QChar::Null;
Executed by:
  • tst_QTextCodec
4
231 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 41146996 times by 54 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
) {
324-41146996
232-
233 uchar remainingCharsData[4];-
234 int remainingCharsCount = state->remainingChars;-
235 int newCharsToCopy = qMin<int>(sizeof(remainingCharsData) - remainingCharsCount, end - src);-
236-
237 memset(remainingCharsData, 0, sizeof(remainingCharsData));-
238 memcpy(remainingCharsData, &state->state_data[0], remainingCharsCount);-
239 memcpy(remainingCharsData + remainingCharsCount, src, newCharsToCopy);-
240-
241 const uchar *begin = &remainingCharsData[1];-
242 res = QUtf8Functions::fromUtf8<QUtf8BaseTraits>(remainingCharsData[0], dst, begin,-
243 static_cast<const uchar *>(remainingCharsData) + remainingCharsCount + newCharsToCopy);-
244 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
245-
246-
247 ++invalid;-
248 *dst++ = replacement;-
249 }
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
250-
251-
252 state->remainingChars = remainingCharsCount + newCharsToCopy;-
253 memcpy(&state->state_data[0], remainingCharsData, state->remainingChars);-
254 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
255 } 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
256-
257 headerdone = true;-
258 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
259 --
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
260 }
executed 27 times by 3 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QTextStream
  • tst_Utf8
27
261-
262-
263 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
264 ((!(res > remainingCharsCount)) ? qt_assert("res > remainingCharsCount",__FILE__,386) : qt_noop());-
265 src += res - remainingCharsCount;-
266 }
executed 224 times by 6 tests: end of block
Executed by:
  • tst_QMimeDatabase
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Utf8
224
267 }
executed 244 times by 6 tests: end of block
Executed by:
  • tst_QMimeDatabase
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Utf8
244
268 }
executed 41147240 times by 54 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
41147240
269-
270-
271 res = 0;-
272 const uchar *nextAscii = src;-
273 const uchar *start = src;-
274 while (res >= 0
res >= 0Description
TRUEevaluated 85706989 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 44293839 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 41413150 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-85706989
275 if (src >= nextAscii
src >= nextAsciiDescription
TRUEevaluated 43858481 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 435358 times by 33 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QTemporaryDir
  • tst_QTemporaryFile
  • ...
&& simdDecodeAscii(dst, nextAscii, src, end)
simdDecodeAsci...cii, src, end)Description
TRUEevaluated 13575 times by 208 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 43844906 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
  • ...
)
13575-43858481
276 break;
executed 13575 times by 208 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusConnection_Delayed
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDBusXmlParser
  • tst_QDataWidgetMapper
  • ...
13575
277-
278 ch = *src++;-
279 res = QUtf8Functions::fromUtf8<QUtf8BaseTraits>(ch, dst, src, end);-
280 if (!headerdone
!headerdoneDescription
TRUEevaluated 280915 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 43999349 times by 340 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 280030 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-43999349
281 headerdone = true;-
282 if (src == start + 3
src == start + 3Description
TRUEevaluated 151 times by 4 tests
Evaluated by:
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlStream
  • tst_Utf8
FALSEevaluated 279879 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-279879
283-
284 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
285 --
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
286 }
executed 151 times by 4 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlStream
  • tst_Utf8
151
287 }
executed 280030 times by 342 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • ...
280030
288 if (res == QUtf8BaseTraits::Error
res == QUtf8BaseTraits::ErrorDescription
TRUEevaluated 1176 times by 4 tests
Evaluated by:
  • tst_QTextCodec
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Utf8
FALSEevaluated 44279088 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-44279088
289 res = 0;-
290 ++invalid;-
291 *dst++ = replacement;-
292 }
executed 1176 times by 4 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Utf8
1176
293 }
executed 44280264 times by 342 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • ...
44280264
294-
295 if (!state
!stateDescription
TRUEevaluated 279743 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 41147240 times by 54 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
&& res == QUtf8BaseTraits::EndOfString
res == QUtf8Ba...s::EndOfStringDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QTextCodec
FALSEevaluated 279734 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-41147240
296-
297 *dst++ = QChar::ReplacementCharacter;-
298 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
299 *
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
300 }
executed 9 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
9
301-
302 result.truncate(dst - (const ushort *)result.unicode());-
303 if (state
stateDescription
TRUEevaluated 41147240 times by 54 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 279743 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
  • ...
) {
279743-41147240
304 state->invalidChars += invalid;-
305 if (headerdone
headerdoneDescription
TRUEevaluated 41146128 times by 54 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 1112 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
)
1112-41146128
306 state->flags |= QTextCodec::IgnoreHeader;
executed 41146128 times by 54 tests: state->flags |= QTextCodec::IgnoreHeader;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
41146128
307 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 41146991 times by 54 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
) {
249-41146991
308 --src;-
309 state->remainingChars = end - src;-
310 memcpy(&state->state_data[0], src, end - src);-
311 }
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
312 state->remainingChars = 0;-
313 }
executed 41146991 times by 54 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • ...
41146991
314 }-
315 return
executed 41426983 times by 344 tests: return result;
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • ...
result;
executed 41426983 times by 344 tests: return result;
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • ...
41426983
316}-
317-
318QByteArray QUtf16::convertFromUnicode(const QChar *uc, int len, QTextCodec::ConverterState *state, DataEndianness e)-
319{-
320 DataEndianness endian = e;-
321 int length = 2*len;-
322 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
323 length += 2;-
324 }
executed 55 times by 2 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QTextStream
55
325 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
326 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
327 }
executed 15 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextCodec
  • tst_QTextStream
15
328-
329 QByteArray d;-
330 d.resize(length);-
331 char *data = d.data();-
332 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
333 QChar bom(QChar::ByteOrderMark);-
334 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
335 data[0] = bom.row();-
336 data[1] = bom.cell();-
337 }
executed 23 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
else {
23
338 data[0] = bom.cell();-
339 data[1] = bom.row();-
340 }
executed 32 times by 2 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QTextStream
32
341 data += 2;-
342 }
executed 55 times by 2 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QTextStream
55
343 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
344 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
345 *(data++) = uc[i].row();-
346 *(data++) = uc[i].cell();-
347 }
executed 206 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
206
348 }
executed 23 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
else {
23
349 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
350 *(data++) = uc[i].cell();-
351 *(data++) = uc[i].row();-
352 }
executed 337 times by 4 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlStream
337
353 }
executed 45 times by 4 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlStream
45
354-
355 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
356 state->remainingChars = 0;-
357 state->flags |= QTextCodec::IgnoreHeader;-
358 }
executed 16 times by 4 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlStream
16
359 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
360}-
361-
362QString QUtf16::convertToUnicode(const char *chars, int len, QTextCodec::ConverterState *state, DataEndianness e)-
363{-
364 DataEndianness endian = e;-
365 bool half = false;-
366 uchar buf = 0;-
367 bool headerdone = false;-
368 if (state
stateDescription
TRUEevaluated 1988 times by 4 tests
Evaluated by:
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
FALSEevaluated 233881 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-233881
369 headerdone = state->flags & QTextCodec::IgnoreHeader;-
370 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
371 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
372 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
373 half = true;-
374 buf = state->state_data[Data];-
375 }
executed 651 times by 3 tests: end of block
Executed by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
651
376 }
executed 1988 times by 4 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
1988
377 if (headerdone
headerdoneDescription
TRUEevaluated 1659 times by 4 tests
Evaluated by:
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
FALSEevaluated 234210 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-234210
378 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
379-
380 QString result(len, Qt::Uninitialized);-
381 QChar *qch = (QChar *)result.data();-
382 while (len--
len--Description
TRUEevaluated 1186645 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 235869 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
) {
235869-1186645
383 if (half
halfDescription
TRUEevaluated 593322 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 593323 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
) {
593322-593323
384 QChar ch;-
385 if (endian == LittleEndianness
endian == LittleEndiannessDescription
TRUEevaluated 356752 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 236570 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
) {
236570-356752
386 ch.setRow(*chars++);-
387 ch.setCell(buf);-
388 }
executed 356752 times by 21 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlResult
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Utf8
else {
356752
389 ch.setRow(buf);-
390 ch.setCell(*chars++);-
391 }
executed 236570 times by 21 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlResult
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Utf8
236570
392 if (!headerdone
!headerdoneDescription
TRUEevaluated 234162 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 359160 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
) {
234162-359160
393 headerdone = true;-
394 if (endian == DetectEndianness
endian == DetectEndiannessDescription
TRUEevaluated 233914 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-233914
395 if (ch == QChar::ByteOrderSwapped
ch == QChar::ByteOrderSwappedDescription
TRUEevaluated 78 times by 3 tests
Evaluated by:
  • tst_QTextCodec
  • tst_QXmlSimpleReader
  • tst_QXmlStream
FALSEevaluated 233836 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-233836
396 endian = LittleEndianness;-
397 }
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 233833 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-233833
398 endian = BigEndianness;-
399 }
executed 3 times by 3 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QXmlSimpleReader
  • tst_QXmlStream
else {
3
400 if (QSysInfo::ByteOrder == QSysInfo::BigEndian
QSysInfo::Byte...nfo::BigEndianDescription
TRUEnever evaluated
FALSEevaluated 233833 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-233833
401 endian = BigEndianness;-
402 }
never executed: end of block
else {
0
403 endian = LittleEndianness;-
404 ch = QChar((ch.unicode() >> 8) | ((ch.unicode() & 0xff) << 8));-
405 }
executed 233833 times by 19 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlResult
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextCodec
  • tst_QUrlInternal
  • tst_QXmlStream
  • tst_Utf8
233833
406 *qch++ = ch;-
407 }
executed 233833 times by 19 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlResult
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextCodec
  • tst_QUrlInternal
  • tst_QXmlStream
  • tst_Utf8
233833
408 } 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
409 *qch++ = ch;-
410 }
executed 4 times by 3 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QXmlSimpleReader
  • tst_QXmlStream
4
411 }
executed 234162 times by 21 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlResult
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Utf8
else {
234162
412 *qch++ = ch;-
413 }
executed 359160 times by 21 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlResult
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Utf8
359160
414 half = false;-
415 }
executed 593322 times by 21 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlResult
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Utf8
else {
593322
416 buf = *chars++;-
417 half = true;-
418 }
executed 593323 times by 21 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlResult
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Utf8
593323
419 }-
420 result.truncate(qch - result.unicode());-
421-
422 if (state
stateDescription
TRUEevaluated 1988 times by 4 tests
Evaluated by:
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
FALSEevaluated 233881 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-233881
423 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
424 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
425 state->state_data[Endian] = endian;-
426 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
427 state->remainingChars = 1;-
428 state->state_data[Data] = buf;-
429 }
executed 652 times by 3 tests: end of block
Executed by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
else {
652
430 state->remainingChars = 0;-
431 state->state_data[Data] = 0;-
432 }
executed 1336 times by 4 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
1336
433 }-
434 return
executed 235869 times by 21 tests: return result;
Executed by:
  • tst_QDebug
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlResult
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Utf8
result;
executed 235869 times by 21 tests: return result;
Executed by:
  • tst_QDebug
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlResult
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Utf8
235869
435}-
436-
437QByteArray QUtf32::convertFromUnicode(const QChar *uc, int len, QTextCodec::ConverterState *state, DataEndianness e)-
438{-
439 DataEndianness endian = e;-
440 int length = 4*len;-
441 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
442 length += 4;-
443 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
24
444 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
445 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
446 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
11
447-
448 QByteArray d(length, Qt::Uninitialized);-
449 char *data = d.data();-
450 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
451 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
452 data[0] = 0;-
453 data[1] = 0;-
454 data[2] = (char)0xfe;-
455 data[3] = (char)0xff;-
456 }
executed 7 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
else {
7
457 data[0] = (char)0xff;-
458 data[1] = (char)0xfe;-
459 data[2] = 0;-
460 data[3] = 0;-
461 }
executed 17 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
17
462 data += 4;-
463 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
24
464-
465 QStringIterator i(uc, uc + len);-
466 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
467 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
468 uint cp = i.next();-
469-
470 *(data++) = cp >> 24;-
471 *(data++) = (cp >> 16) & 0xff;-
472 *(data++) = (cp >> 8) & 0xff;-
473 *(data++) = cp & 0xff;-
474 }
executed 54 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
54
475 }
executed 7 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
else {
7
476 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
477 uint cp = i.next();-
478-
479 *(data++) = cp & 0xff;-
480 *(data++) = (cp >> 8) & 0xff;-
481 *(data++) = (cp >> 16) & 0xff;-
482 *(data++) = cp >> 24;-
483 }
executed 122 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
122
484 }
executed 19 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
19
485-
486 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
487 state->remainingChars = 0;-
488 state->flags |= QTextCodec::IgnoreHeader;-
489 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
4
490 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
491}-
492-
493QString QUtf32::convertToUnicode(const char *chars, int len, QTextCodec::ConverterState *state, DataEndianness e)-
494{-
495 DataEndianness endian = e;-
496 uchar tuple[4];-
497 int num = 0;-
498 bool headerdone = false;-
499 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
500 headerdone = state->flags & QTextCodec::IgnoreHeader;-
501 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
502 endian = (DataEndianness)state->state_data[Endian];-
503 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QTextCodec
4
504 num = state->remainingChars;-
505 memcpy(tuple, &state->state_data[Data], 4);-
506 }
executed 364 times by 2 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QTextStream
364
507 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
508 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
509-
510 QString result;-
511 result.resize((num + len) >> 2 << 1);-
512 QChar *qch = (QChar *)result.data();-
513-
514 const char *end = chars + len;-
515 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
516 tuple[num++] = *chars++;-
517 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
518 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
519 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
520 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
521 endian = LittleEndianness;-
522 num = 0;-
523 continue;
executed 9 times by 1 test: continue;
Executed by:
  • tst_QTextCodec
9
524 } 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
525 endian = BigEndianness;-
526 num = 0;-
527 continue;
executed 1 time by 1 test: continue;
Executed by:
  • tst_QTextCodec
1
528 } 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
529 endian = BigEndianness;-
530 }
never executed: end of block
else {
0
531 endian = LittleEndianness;-
532 }
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
533 } 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
534 num = 0;-
535 continue;
executed 47 times by 2 tests: continue;
Executed by:
  • tst_QTextCodec
  • tst_QTextStream
47
536 }-
537 }
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
538 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
539 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
540 *qch++ = QChar::highSurrogate(code);-
541 *qch++ = QChar::lowSurrogate(code);-
542 }
executed 58 times by 4 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringIterator
  • tst_QXmlStream
  • tst_Utf8
else {
58
543 *qch++ = code;-
544 }
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
545 num = 0;-
546 }
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
547 }
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
548 result.truncate(qch - result.unicode());-
549-
550 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
551 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
552 state->flags |= QTextCodec::IgnoreHeader;
executed 3 times by 1 test: state->flags |= QTextCodec::IgnoreHeader;
Executed by:
  • tst_QTextCodec
3
553 state->state_data[Endian] = endian;-
554 state->remainingChars = num;-
555 memcpy(&state->state_data[Data], tuple, 4);-
556 }
executed 364 times by 2 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QTextStream
364
557 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
558}-
559-
560-
561-
562-
563QUtf8Codec::~QUtf8Codec()-
564{-
565}-
566-
567QByteArray QUtf8Codec::convertFromUnicode(const QChar *uc, int len, ConverterState *state) const-
568{-
569 return
executed 490073 times by 409 tests: return QUtf8::convertFromUnicode(uc, len, state);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
QUtf8::convertFromUnicode(uc, len, state);
executed 490073 times by 409 tests: return QUtf8::convertFromUnicode(uc, len, state);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
490073
570}-
571-
572void QUtf8Codec::convertToUnicode(QString *target, const char *chars, int len, ConverterState *state) const-
573{-
574 *target += QUtf8::convertToUnicode(chars, len, state);-
575}
executed 62786 times by 37 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
62786
576-
577QString QUtf8Codec::convertToUnicode(const char *chars, int len, ConverterState *state) const-
578{-
579 return
executed 41364277 times by 337 tests: return QUtf8::convertToUnicode(chars, len, state);
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • ...
QUtf8::convertToUnicode(chars, len, state);
executed 41364277 times by 337 tests: return QUtf8::convertToUnicode(chars, len, state);
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • ...
41364277
580}-
581-
582QByteArray QUtf8Codec::name() const-
583{-
584 return
executed 357 times by 38 tests: return "UTF-8";
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • ...
"UTF-8";
executed 357 times by 38 tests: return "UTF-8";
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • ...
357
585}-
586-
587int QUtf8Codec::mibEnum() const-
588{-
589 return
executed 63049 times by 43 tests: return 106;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
106;
executed 63049 times by 43 tests: return 106;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
63049
590}-
591-
592QUtf16Codec::~QUtf16Codec()-
593{-
594}-
595-
596QByteArray QUtf16Codec::convertFromUnicode(const QChar *uc, int len, ConverterState *state) const-
597{-
598 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
599}-
600-
601QString QUtf16Codec::convertToUnicode(const char *chars, int len, ConverterState *state) const-
602{-
603 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
604}-
605-
606int QUtf16Codec::mibEnum() const-
607{-
608 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
609}-
610-
611QByteArray QUtf16Codec::name() const-
612{-
613 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
614}-
615-
616QList<QByteArray> QUtf16Codec::aliases() const-
617{-
618 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
619}-
620-
621int QUtf16BECodec::mibEnum() const-
622{-
623 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
624}-
625-
626QByteArray QUtf16BECodec::name() const-
627{-
628 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
629}-
630-
631QList<QByteArray> QUtf16BECodec::aliases() const-
632{-
633 QList<QByteArray> list;-
634 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
635}-
636-
637int QUtf16LECodec::mibEnum() const-
638{-
639 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
640}-
641-
642QByteArray QUtf16LECodec::name() const-
643{-
644 return
executed 153 times by 4 tests: return "UTF-16LE";
Executed by:
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
"UTF-16LE";
executed 153 times by 4 tests: return "UTF-16LE";
Executed by:
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
153
645}-
646-
647QList<QByteArray> QUtf16LECodec::aliases() const-
648{-
649 QList<QByteArray> list;-
650 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
651}-
652-
653QUtf32Codec::~QUtf32Codec()-
654{-
655}-
656-
657QByteArray QUtf32Codec::convertFromUnicode(const QChar *uc, int len, ConverterState *state) const-
658{-
659 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
660}-
661-
662QString QUtf32Codec::convertToUnicode(const char *chars, int len, ConverterState *state) const-
663{-
664 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
665}-
666-
667int QUtf32Codec::mibEnum() const-
668{-
669 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
670}-
671-
672QByteArray QUtf32Codec::name() const-
673{-
674 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
675}-
676-
677QList<QByteArray> QUtf32Codec::aliases() const-
678{-
679 QList<QByteArray> list;-
680 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
681}-
682-
683int QUtf32BECodec::mibEnum() const-
684{-
685 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
686}-
687-
688QByteArray QUtf32BECodec::name() const-
689{-
690 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
691}-
692-
693QList<QByteArray> QUtf32BECodec::aliases() const-
694{-
695 QList<QByteArray> list;-
696 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
697}-
698-
699int QUtf32LECodec::mibEnum() const-
700{-
701 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
702}-
703-
704QByteArray QUtf32LECodec::name() const-
705{-
706 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
707}-
708-
709QList<QByteArray> QUtf32LECodec::aliases() const-
710{-
711 QList<QByteArray> list;-
712 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
713}-
714-
715-
716-
717-
Switch to Source codePreprocessed file

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