qstring.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qstring.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15int qFindString(const QChar *haystack, int haystackLen, int from,-
16 const QChar *needle, int needleLen, Qt::CaseSensitivity cs);-
17int qFindStringBoyerMoore(const QChar *haystack, int haystackLen, int from,-
18 const QChar *needle, int needleLen, Qt::CaseSensitivity cs);-
19static inline int qt_last_index_of(const QChar *haystack, int haystackLen, QChar needle,-
20 int from, Qt::CaseSensitivity cs);-
21static inline int qt_string_count(const QChar *haystack, int haystackLen,-
22 const QChar *needle, int needleLen,-
23 Qt::CaseSensitivity cs);-
24static inline int qt_string_count(const QChar *haystack, int haystackLen,-
25 QChar needle, Qt::CaseSensitivity cs);-
26static inline int qt_find_latin1_string(const QChar *hay, int size, QLatin1String needle,-
27 int from, Qt::CaseSensitivity cs);-
28static inline bool qt_starts_with(const QChar *haystack, int haystackLen,-
29 const QChar *needle, int needleLen, Qt::CaseSensitivity cs);-
30static inline bool qt_starts_with(const QChar *haystack, int haystackLen,-
31 QLatin1String needle, Qt::CaseSensitivity cs);-
32static inline bool qt_ends_with(const QChar *haystack, int haystackLen,-
33 const QChar *needle, int needleLen, Qt::CaseSensitivity cs);-
34static inline bool qt_ends_with(const QChar *haystack, int haystackLen,-
35 QLatin1String needle, Qt::CaseSensitivity cs);-
36-
37-
38namespace {-
39template <uint MaxCount> struct UnrollTailLoop-
40{-
41 template <typename RetType, typename Functor1, typename Functor2>-
42 static inline RetType exec(int count, RetType returnIfExited, Functor1 loopCheck, Functor2 returnIfFailed, int i = 0)-
43 {-
44 if (!count
!countDescription
TRUEevaluated 6730103 times by 686 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 35953269 times by 773 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
6730103-35953269
45 return
executed 6730106 times by 686 tests: return returnIfExited;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
returnIfExited;
executed 6730106 times by 686 tests: return returnIfExited;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
6730106
46-
47 bool check = loopCheck(i);-
48 if (check
checkDescription
TRUEevaluated 1370215 times by 552 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_QAlgorithms
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • ...
FALSEevaluated 34583054 times by 773 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) {
1370215-34583054
49 const RetType &retval = returnIfFailed(i);-
50 return
executed 1370215 times by 552 tests: return retval;
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_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • ...
retval;
executed 1370215 times by 552 tests: return retval;
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_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • ...
1370215
51 }-
52-
53 return
executed 34583054 times by 773 tests: return UnrollTailLoop<MaxCount - 1>::exec(count - 1, returnIfExited, loopCheck, returnIfFailed, i + 1);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
UnrollTailLoop<MaxCount - 1>::exec(count - 1, returnIfExited, loopCheck, returnIfFailed, i + 1);
executed 34583054 times by 773 tests: return UnrollTailLoop<MaxCount - 1>::exec(count - 1, returnIfExited, loopCheck, returnIfFailed, i + 1);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
34583054
54 }-
55-
56 template <typename Functor>-
57 static inline void exec(int count, Functor code)-
58 {-
59-
60-
61-
62-
63 exec(count, 0, [=](int i) -> bool { code(i); return
executed 17278209 times by 686 tests: return false;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
false;
executed 17278209 times by 686 tests: return false;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
}, [](int) { return
never executed: return 0;
0;
never executed: return 0;
});
0-17278209
64 }
executed 2644017 times by 686 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
2644017
65};-
66template <> template <typename RetType, typename Functor1, typename Functor2>-
67inline RetType UnrollTailLoop<0>::exec(int, RetType returnIfExited, Functor1, Functor2, int)-
68{-
69 return
executed 778568 times by 446 tests: return returnIfExited;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
returnIfExited;
executed 778568 times by 446 tests: return returnIfExited;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
778568
70}-
71}-
72-
73-
74-
75void qt_from_latin1(ushort *dst, const char *str, size_t size) noexcept-
76{-
77-
78-
79-
80-
81-
82 const char *e = str + size;-
83 qptrdiff offset = 0;-
84-
85-
86 for ( ; str + offset + 15 < e
str + offset + 15 < eDescription
TRUEevaluated 1702045 times by 504 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • 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
  • ...
FALSEevaluated 2360203 times by 686 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
; offset += 16) {
1702045-2360203
87 const __m128i chunk = _mm_loadu_si128((const __m128i*)(str + offset));-
88-
89-
90-
91-
92-
93-
94-
95 const __m128i nullMask = _mm_set1_epi32(0);-
96-
97-
98 const __m128i firstHalf = _mm_unpacklo_epi8(chunk, nullMask);-
99 _mm_storeu_si128((__m128i*)(dst + offset), firstHalf);-
100-
101-
102 const __m128i secondHalf = _mm_unpackhi_epi8 (chunk, nullMask);-
103 _mm_storeu_si128((__m128i*)(dst + offset + 8), secondHalf);-
104-
105 }
executed 1702045 times by 504 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • 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
  • ...
1702045
106-
107 size = size % 16;-
108 dst += offset;-
109 str += offset;-
110-
111 return
executed 2360203 times by 686 tests: return UnrollTailLoop<15>::exec(int(size), [=](int i) { dst[i] = (uchar)str[i]; });
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
UnrollTailLoop<15>::exec(int(size), [=](int i) { dst[i] = (uchar)str[i]; });
executed 2360203 times by 686 tests: return UnrollTailLoop<15>::exec(int(size), [=](int i) { dst[i] = (uchar)str[i]; });
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
2360203-15853376
112 while
dead code: while (size--) *dst++ = (uchar)*str++;
(size--)
dead code: while (size--) *dst++ = (uchar)*str++;
-
113 *dst++ = (uchar)*str++;
dead code: while (size--) *dst++ = (uchar)*str++;
-
114-
115}-
116-
117-
118static inline __m128i mergeQuestionMarks(__m128i chunk)-
119{-
120 const __m128i questionMark = _mm_set1_epi16('?');-
121 const __m128i signedBitOffset = _mm_set1_epi16(short(0x8000));-
122 const __m128i thresholdMask = _mm_set1_epi16(short(0xff + 0x8000));-
123-
124 const __m128i signedChunk = _mm_add_epi16(chunk, signedBitOffset);-
125 const __m128i offLimitMask = _mm_cmpgt_epi16(signedChunk, thresholdMask);-
126-
127-
128-
129-
130-
131-
132-
133 const __m128i offLimitQuestionMark = _mm_and_si128(offLimitMask, questionMark);-
134-
135-
136-
137 const __m128i correctBytes = _mm_andnot_si128(offLimitMask, chunk);-
138-
139-
140 chunk = _mm_or_si128(correctBytes, offLimitQuestionMark);-
141-
142-
143 return
executed 804590 times by 383 tests: return chunk;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
chunk;
executed 804590 times by 383 tests: return chunk;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
804590
144}-
145-
146-
147static void qt_to_latin1(uchar *dst, const ushort *src, int length)-
148{-
149-
150 uchar *e = dst + length;-
151 qptrdiff offset = 0;-
152-
153-
154 for ( ; dst + offset + 15 < e
dst + offset + 15 < eDescription
TRUEevaluated 402295 times by 383 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
FALSEevaluated 283814 times by 445 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
; offset += 16) {
283814-402295
155 __m128i chunk1 = _mm_loadu_si128((const __m128i*)(src + offset));-
156 chunk1 = mergeQuestionMarks(chunk1);-
157-
158 __m128i chunk2 = _mm_loadu_si128((const __m128i*)(src + offset + 8));-
159 chunk2 = mergeQuestionMarks(chunk2);-
160-
161-
162 const __m128i result = _mm_packus_epi16(chunk1, chunk2);-
163 _mm_storeu_si128((__m128i*)(dst + offset), result);-
164 }
executed 402295 times by 383 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
402295
165-
166 length = length % 16;-
167 dst += offset;-
168 src += offset;-
169-
170-
171 return
executed 283814 times by 445 tests: return UnrollTailLoop<15>::exec(length, [=](int i) { dst[i] = (src[i]>0xff) ? '?' : (uchar) src[i]; });
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
UnrollTailLoop<15>::exec(length, [=](int i) { dst[i] = (
(src[i]>0xff)Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QUrl
FALSEevaluated 1424822 times by 444 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
src[i]>0xff)
(src[i]>0xff)Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QUrl
FALSEevaluated 1424822 times by 444 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
? '?' : (uchar) src[i]; });
executed 283814 times by 445 tests: return UnrollTailLoop<15>::exec(length, [=](int i) { dst[i] = (src[i]>0xff) ? '?' : (uchar) src[i]; });
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
11-1424833
172 while
dead code: while (length--) { *dst++ = (*src>0xff) ? '?' : (uchar) *src; ++src; }
(length--) {
dead code: while (length--) { *dst++ = (*src>0xff) ? '?' : (uchar) *src; ++src; }
-
173 *dst++ = (*src>0xff) ? '?' : (uchar) *src;
dead code: while (length--) { *dst++ = (*src>0xff) ? '?' : (uchar) *src; ++src; }
-
174 ++src;
dead code: while (length--) { *dst++ = (*src>0xff) ? '?' : (uchar) *src; ++src; }
-
175 }
dead code: while (length--) { *dst++ = (*src>0xff) ? '?' : (uchar) *src; ++src; }
-
176-
177}-
178-
179-
180static int ucstricmp(const ushort *a, const ushort *ae, const ushort *b, const ushort *be)-
181{-
182 if (a == b
a == bDescription
TRUEevaluated 4330 times by 125 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 513417 times by 168 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
)
4330-513417
183 return
executed 4330 times by 125 tests: return (ae - be);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
(ae - be);
executed 4330 times by 125 tests: return (ae - be);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
4330
184 if (a == 0
a == 0Description
TRUEnever evaluated
FALSEevaluated 513417 times by 168 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
)
0-513417
185 return
never executed: return 1;
1;
never executed: return 1;
0
186 if (b == 0
b == 0Description
TRUEnever evaluated
FALSEevaluated 513417 times by 168 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
)
0-513417
187 return
never executed: return -1;
-1;
never executed: return -1;
0
188-
189 const ushort *e = ae;-
190 if (be - b < ae - a
be - b < ae - aDescription
TRUEevaluated 254847 times by 134 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 258570 times by 168 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
)
254847-258570
191 e = a + (be - b);
executed 254847 times by 134 tests: e = a + (be - b);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
254847
192-
193 uint alast = 0;-
194 uint blast = 0;-
195 while (a < e
a < eDescription
TRUEevaluated 1726112 times by 168 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
FALSEevaluated 75123 times by 165 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
) {
75123-1726112
196-
197-
198-
199 int diff = foldCase(*a, alast) - foldCase(*b, blast);-
200 if ((
(diff)Description
TRUEevaluated 438294 times by 155 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEevaluated 1287818 times by 166 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
diff)
(diff)Description
TRUEevaluated 438294 times by 155 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEevaluated 1287818 times by 166 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
)
438294-1287818
201 return
executed 438294 times by 155 tests: return diff;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
diff;
executed 438294 times by 155 tests: return diff;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
438294
202 ++a;-
203 ++b;-
204 }
executed 1287818 times by 166 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
1287818
205 if (a == ae
a == aeDescription
TRUEevaluated 69364 times by 165 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
FALSEevaluated 5759 times by 126 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
) {
5759-69364
206 if (b == be
b == beDescription
TRUEevaluated 59683 times by 165 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
FALSEevaluated 9681 times by 126 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
)
9681-59683
207 return
executed 59683 times by 165 tests: return 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
0;
executed 59683 times by 165 tests: return 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
59683
208 return
executed 9681 times by 126 tests: return -1;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
-1;
executed 9681 times by 126 tests: return -1;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
9681
209 }-
210 return
executed 5759 times by 126 tests: return 1;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
1;
executed 5759 times by 126 tests: return 1;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
5759
211}-
212-
213-
214static int ucstricmp(const ushort *a, const ushort *ae, const uchar *b, const uchar *be)-
215{-
216 if (a == 0
a == 0Description
TRUEnever evaluated
FALSEevaluated 17633 times by 48 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • ...
) {
0-17633
217 if (b == 0
b == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
218 return
never executed: return 0;
0;
never executed: return 0;
0
219 return
never executed: return 1;
1;
never executed: return 1;
0
220 }-
221 if (b == 0
b == 0Description
TRUEnever evaluated
FALSEevaluated 17633 times by 48 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • ...
)
0-17633
222 return
never executed: return -1;
-1;
never executed: return -1;
0
223-
224 const ushort *e = ae;-
225 if (be - b < ae - a
be - b < ae - aDescription
TRUEevaluated 4341 times by 25 tests
Evaluated by:
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTabBar
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QWidget
  • tst_QXmlStream
  • tst_qmakelib
FALSEevaluated 13292 times by 48 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • ...
)
4341-13292
226 e = a + (be - b);
executed 4341 times by 25 tests: e = a + (be - b);
Executed by:
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTabBar
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QWidget
  • tst_QXmlStream
  • tst_qmakelib
4341
227-
228 while (a < e
a < eDescription
TRUEevaluated 69971 times by 48 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • ...
FALSEevaluated 4645 times by 41 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDockWidget
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • ...
) {
4645-69971
229 int diff = foldCase(*a) - foldCase(*b);-
230 if ((
(diff)Description
TRUEevaluated 12988 times by 35 tests
Evaluated by:
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QStaticText
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTabBar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • ...
FALSEevaluated 56983 times by 41 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDockWidget
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • ...
diff)
(diff)Description
TRUEevaluated 12988 times by 35 tests
Evaluated by:
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QStaticText
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTabBar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • ...
FALSEevaluated 56983 times by 41 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDockWidget
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • ...
)
12988-56983
231 return
executed 12988 times by 35 tests: return diff;
Executed by:
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QStaticText
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTabBar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • ...
diff;
executed 12988 times by 35 tests: return diff;
Executed by:
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QStaticText
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTabBar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • ...
12988
232 ++a;-
233 ++b;-
234 }
executed 56983 times by 41 tests: end of block
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDockWidget
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • ...
56983
235 if (a == ae
a == aeDescription
TRUEevaluated 4294 times by 41 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDockWidget
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 351 times by 15 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QXmlStream
) {
351-4294
236 if (b == be
b == beDescription
TRUEevaluated 3894 times by 41 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDockWidget
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 400 times by 14 tests
Evaluated by:
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QWidget
)
400-3894
237 return
executed 3894 times by 41 tests: return 0;
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDockWidget
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • ...
0;
executed 3894 times by 41 tests: return 0;
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDockWidget
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • ...
3894
238 return
executed 400 times by 14 tests: return -1;
Executed by:
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QWidget
-1;
executed 400 times by 14 tests: return -1;
Executed by:
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QWidget
400
239 }-
240 return
executed 351 times by 15 tests: return 1;
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QXmlStream
1;
executed 351 times by 15 tests: return 1;
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QXmlStream
351
241}-
242static int ucstrncmp(const QChar *a, const QChar *b, int l)-
243{-
244 const char *ptr = reinterpret_cast<const char*>(a);-
245 qptrdiff distance = reinterpret_cast<const char*>(b) - ptr;-
246 a += l & ~7;-
247 b += l & ~7;-
248 l &= 7;-
249-
250-
251 for ( ; ptr + 15 < reinterpret_cast<const char *>(a)
ptr + 15 < rei...nst char *>(a)Description
TRUEevaluated 6295678 times by 598 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
FALSEevaluated 4168074 times by 613 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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
  • tst_QArrayData
  • ...
; ptr += 16) {
4168074-6295678
252 __m128i a_data = _mm_loadu_si128((const __m128i*)ptr);-
253 __m128i b_data = _mm_loadu_si128((const __m128i*)(ptr + distance));-
254 __m128i result = _mm_cmpeq_epi16(a_data, b_data);-
255 uint mask = ~_mm_movemask_epi8(result);-
256 if (ushort(mask)
ushort(mask)Description
TRUEevaluated 1562574 times by 466 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • ...
FALSEevaluated 4733104 times by 597 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • ...
) {
1562574-4733104
257-
258 uint idx = uint(__bsfd(mask));-
259 return
executed 1562574 times by 466 tests: return reinterpret_cast<const QChar *>(ptr + idx)->unicode() - reinterpret_cast<const QChar *>(ptr + distance + idx)->unicode();
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • ...
reinterpret_cast<const QChar *>(ptr + idx)->unicode()
executed 1562574 times by 466 tests: return reinterpret_cast<const QChar *>(ptr + idx)->unicode() - reinterpret_cast<const QChar *>(ptr + distance + idx)->unicode();
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • ...
1562574
260 - reinterpret_cast<const QChar *>(ptr + distance + idx)->unicode();
executed 1562574 times by 466 tests: return reinterpret_cast<const QChar *>(ptr + idx)->unicode() - reinterpret_cast<const QChar *>(ptr + distance + idx)->unicode();
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • ...
1562574
261 }-
262 }
executed 4733104 times by 597 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • ...
4733104
263-
264 const auto &lambda = [=](int i) -> int {-
265 return
executed 14175902 times by 612 tests: return reinterpret_cast<const QChar *>(ptr)[i].unicode() - reinterpret_cast<const QChar *>(ptr + distance)[i].unicode();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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
  • tst_QArrayData
  • ...
reinterpret_cast<const QChar *>(ptr)[i].unicode()
executed 14175902 times by 612 tests: return reinterpret_cast<const QChar *>(ptr)[i].unicode() - reinterpret_cast<const QChar *>(ptr + distance)[i].unicode();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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
  • tst_QArrayData
  • ...
14175902
266 - reinterpret_cast<const QChar *>(ptr + distance)[i].unicode();
executed 14175902 times by 612 tests: return reinterpret_cast<const QChar *>(ptr)[i].unicode() - reinterpret_cast<const QChar *>(ptr + distance)[i].unicode();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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
  • tst_QArrayData
  • ...
14175902
267 };-
268 return
executed 4168074 times by 613 tests: return UnrollTailLoop<7>::exec(l, 0, lambda, lambda);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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
  • tst_QArrayData
  • ...
UnrollTailLoop<7>::exec(l, 0, lambda, lambda);
executed 4168074 times by 613 tests: return UnrollTailLoop<7>::exec(l, 0, lambda, lambda);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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
  • tst_QArrayData
  • ...
4168074
269-
270-
271 if
dead code: if (!l) return 0;
(!l)
dead code: if (!l) return 0;
-
272 return 0;
dead code: if (!l) return 0;
-
273-
274-
275 if
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) {
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
276-
277 if (reinterpret_cast<quintptr>(a) & 2) {
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
278-
279-
280 if (*a != *b)
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
281 return a->unicode() - b->unicode();
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
282 --l;
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
283 ++a;
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
284 ++b;
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
285-
286-
287 }
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
288-
289-
290-
291 const quint32 *da = reinterpret_cast<const quint32 *>(a);
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
292 const quint32 *db = reinterpret_cast<const quint32 *>(b);
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
293 const quint32 *e = da + (l >> 1);
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
294 for ( ; da != e; ++da, ++db) {
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
295 if (*da != *db) {
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
296 a = reinterpret_cast<const QChar *>(da);
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
297 b = reinterpret_cast<const QChar *>(db);
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
298 if (*a != *b)
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
299 return a->unicode() - b->unicode();
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
300 return a[1].unicode() - b[1].unicode();
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
301 }
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
302 }
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
303-
304-
305 a = reinterpret_cast<const QChar *>(da);
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
306 b = reinterpret_cast<const QChar *>(db);
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
307 return (l & 1) ? a->unicode() - b->unicode() : 0;
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
308 } else {
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
309-
310 const QChar *e = a + l;
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
311 for ( ; a != e; ++a, ++b) {
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
312 if (*a != *b)
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
313 return a->unicode() - b->unicode();
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
314 }
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
315 }
dead code: if ((reinterpret_cast<quintptr>(a) & 2) == (reinterpret_cast<quintptr>(b) & 2)) { if (reinterpret_cast<quintptr>(a) & 2) { if (*a != *b) return a->unicode() - b->unicode(); --l; ++a; ++b; } const quint32 *da = reinterpret_cast<const quint32 *>(a); const q...e(); } } a = reinterpret_cast<const QChar *>(da); b = reinterpret_cast<const QChar *>(db); return (l & 1) ? a->unicode() - b->unicode() : 0; } else { const QChar *e = a + l; for ( ; a != e; ++a, ++b) { if (*a != *b) return a->unicode() - b->unicode(); } }
-
316 return
dead code: return 0;
0;
dead code: return 0;
-
317}-
318-
319static int ucstrncmp(const QChar *a, const uchar *c, int l)-
320{-
321 const ushort *uc = reinterpret_cast<const ushort *>(a);-
322 const ushort *e = uc + l;-
323-
324-
325 __m128i nullmask = _mm_setzero_si128();-
326 qptrdiff offset = 0;-
327-
328-
329-
330 for ( ; uc + offset + 15 < e
uc + offset + 15 < eDescription
TRUEevaluated 51214 times by 342 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 1029669 times by 463 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
; offset += 16) {
51214-1029669
331-
332-
333 __m128i chunk = _mm_loadu_si128((const __m128i*)(c + offset));-
334 __m128i firstHalf = _mm_unpacklo_epi8(chunk, nullmask);-
335 __m128i secondHalf = _mm_unpackhi_epi8(chunk, nullmask);-
336-
337-
338 __m128i ucdata1 = _mm_loadu_si128((const __m128i*)(uc + offset));-
339 __m128i ucdata2 = _mm_loadu_si128((const __m128i*)(uc + offset + 8));-
340 __m128i result1 = _mm_cmpeq_epi16(firstHalf, ucdata1);-
341 __m128i result2 = _mm_cmpeq_epi16(secondHalf, ucdata2);-
342-
343 uint mask = ~(_mm_movemask_epi8(result1) | _mm_movemask_epi8(result2) << 16);-
344-
345 if (mask
maskDescription
TRUEevaluated 21005 times by 60 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • ...
FALSEevaluated 30209 times by 341 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
) {
21005-30209
346-
347 uint idx = uint(__bsfd(mask));-
348 return
executed 21005 times by 60 tests: return uc[offset + idx / 2] - c[offset + idx / 2];
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • ...
uc[offset + idx / 2] - c[offset + idx / 2];
executed 21005 times by 60 tests: return uc[offset + idx / 2] - c[offset + idx / 2];
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • ...
21005
349 }-
350 }
executed 30209 times by 341 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
30209
351-
352-
353 enum { MaxTailLength = 7 };-
354-
355 if (uc + offset + 7 < e
uc + offset + 7 < eDescription
TRUEevaluated 355489 times by 249 tests
Evaluated by:
  • 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_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
FALSEevaluated 674180 times by 458 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
) {
355489-674180
356-
357 __m128i chunk = _mm_cvtsi64_si128(qFromUnaligned<long long>(c + offset));-
358 __m128i secondHalf = _mm_unpacklo_epi8(chunk, nullmask);-
359-
360 __m128i ucdata = _mm_loadu_si128((const __m128i*)(uc + offset));-
361 __m128i result = _mm_cmpeq_epi16(secondHalf, ucdata);-
362 uint mask = ~_mm_movemask_epi8(result);-
363 if (ushort(mask)
ushort(mask)Description
TRUEevaluated 39170 times by 211 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
FALSEevaluated 316319 times by 237 tests
Evaluated by:
  • tst_Gestures
  • 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_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • ...
) {
39170-316319
364-
365 uint idx = uint(__bsfd(mask));-
366 return
executed 39170 times by 211 tests: return uc[offset + idx / 2] - c[offset + idx / 2];
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
uc[offset + idx / 2] - c[offset + idx / 2];
executed 39170 times by 211 tests: return uc[offset + idx / 2] - c[offset + idx / 2];
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
39170
367 }-
368-
369-
370 offset += 8;-
371 }
executed 316319 times by 237 tests: end of block
Executed by:
  • tst_Gestures
  • 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_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColor
  • ...
316319
372-
373-
374-
375-
376-
377-
378-
379 uc += offset;-
380 c += offset;-
381-
382-
383 const auto &lambda = [=](int i) { return
executed 3238334 times by 462 tests: return uc[i] - ushort(c[i]);
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
uc[i] - ushort(c[i]);
executed 3238334 times by 462 tests: return uc[i] - ushort(c[i]);
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
};
3238334
384 return
executed 990499 times by 462 tests: return UnrollTailLoop<MaxTailLength>::exec(e - uc, 0, lambda, lambda);
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
UnrollTailLoop<MaxTailLength>::exec(e - uc, 0, lambda, lambda);
executed 990499 times by 462 tests: return UnrollTailLoop<MaxTailLength>::exec(e - uc, 0, lambda, lambda);
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
990499
385-
386-
387-
388 while
dead code: while (uc < e) { int diff = *uc - *c; if (diff) return diff; uc++, c++; }
(uc < e) {
dead code: while (uc < e) { int diff = *uc - *c; if (diff) return diff; uc++, c++; }
-
389 int diff = *uc - *c;
dead code: while (uc < e) { int diff = *uc - *c; if (diff) return diff; uc++, c++; }
-
390 if (diff)
dead code: while (uc < e) { int diff = *uc - *c; if (diff) return diff; uc++, c++; }
-
391 return diff;
dead code: while (uc < e) { int diff = *uc - *c; if (diff) return diff; uc++, c++; }
-
392 uc++, c++;
dead code: while (uc < e) { int diff = *uc - *c; if (diff) return diff; uc++, c++; }
-
393 }
dead code: while (uc < e) { int diff = *uc - *c; if (diff) return diff; uc++, c++; }
-
394-
395 return
dead code: return 0;
0;
dead code: return 0;
-
396}-
397-
398-
399static int ucstrcmp(const QChar *a, int alen, const QChar *b, int blen)-
400{-
401 if (a == b
a == bDescription
TRUEevaluated 80138 times by 430 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • ...
FALSEevaluated 2435359 times by 457 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • ...
&& alen == blen
alen == blenDescription
TRUEevaluated 80137 times by 430 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
)
1-2435359
402 return
executed 80137 times by 430 tests: return 0;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • ...
0;
executed 80137 times by 430 tests: return 0;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • ...
80137
403 int l = qMin(alen, blen);-
404 int cmp = ucstrncmp(a, b, l);-
405 return
executed 2435360 times by 457 tests: return cmp ? cmp : (alen-blen);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • ...
cmp ? cmp : (alen-blen);
executed 2435360 times by 457 tests: return cmp ? cmp : (alen-blen);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • ...
2435360
406}-
407-
408-
409static int ucstrnicmp(const ushort *a, const ushort *b, int l)-
410{-
411 return
executed 1171 times by 13 tests: return ucstricmp(a, a + l, b, b + l);
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTime
  • tst_qlogging - unknown status
ucstricmp(a, a + l, b, b + l);
executed 1171 times by 13 tests: return ucstricmp(a, a + l, b, b + l);
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTime
  • tst_qlogging - unknown status
1171
412}-
413-
414static bool qMemEquals(const quint16 *a, const quint16 *b, int length)-
415{-
416 if (a == b
a == bDescription
TRUEevaluated 931815 times by 465 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • ...
FALSEevaluated 3343386 times by 400 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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
  • tst_QArrayData
  • ...
|| !length
!lengthDescription
TRUEevaluated 339741 times by 135 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDBusServiceWatcher
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • ...
FALSEevaluated 3003645 times by 399 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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
  • tst_QArrayData
  • ...
)
339741-3343386
417 return
executed 1271556 times by 476 tests: return true;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
true;
executed 1271556 times by 476 tests: return true;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
1271556
418-
419 return
executed 3003645 times by 399 tests: return ucstrncmp(reinterpret_cast<const QChar *>(a), reinterpret_cast<const QChar *>(b), length) == 0;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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
  • tst_QArrayData
  • ...
ucstrncmp(reinterpret_cast<const QChar *>(a), reinterpret_cast<const QChar *>(b), length) == 0;
executed 3003645 times by 399 tests: return ucstrncmp(reinterpret_cast<const QChar *>(a), reinterpret_cast<const QChar *>(b), length) == 0;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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
  • tst_QArrayData
  • ...
3003645
420}-
421-
422static int ucstrcmp(const QChar *a, int alen, const uchar *b, int blen)-
423{-
424 int l = qMin(alen, blen);-
425 int cmp = ucstrncmp(a, b, l);-
426 return
executed 217591 times by 445 tests: return cmp ? cmp : (alen-blen);
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
cmp ? cmp : (alen-blen);
executed 217591 times by 445 tests: return cmp ? cmp : (alen-blen);
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
217591
427}-
428static int findChar(const QChar *str, int len, QChar ch, int from,-
429 Qt::CaseSensitivity cs)-
430{-
431 const ushort *s = (const ushort *)str;-
432 ushort c = ch.unicode();-
433 if (from < 0
from < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 1483189 times by 325 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
)
1-1483189
434 from = qMax(from + len, 0);
executed 1 time by 1 test: from = qMax(from + len, 0);
Executed by:
  • tst_Collections
1
435 if (from < len
from < lenDescription
TRUEevaluated 1479302 times by 322 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QCollator
  • ...
FALSEevaluated 3888 times by 70 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDir
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • ...
) {
3888-1479302
436 const ushort *n = s + from;-
437 const ushort *e = s + len;-
438 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 1478841 times by 321 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QCollator
  • tst_QColorDialog
  • ...
FALSEevaluated 461 times by 6 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QLabel
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_qmakelib
) {
461-1478841
439-
440 __m128i mch = _mm_set1_epi32(c | (c << 16));-
441-
442-
443 for (const ushort *next = n + 8; next <= e
next <= eDescription
TRUEevaluated 1107407 times by 313 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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
  • ...
FALSEevaluated 1076299 times by 310 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QCollator
  • tst_QColorDialog
  • ...
; n = next, next += 8) {
1076299-1107407
444 __m128i data = _mm_loadu_si128((const __m128i*)n);-
445 __m128i result = _mm_cmpeq_epi16(data, mch);-
446 uint mask = _mm_movemask_epi8(result);-
447 if (ushort(mask)
ushort(mask)Description
TRUEevaluated 402542 times by 273 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 704865 times by 299 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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
  • ...
) {
402542-704865
448-
449-
450 return
executed 402542 times by 273 tests: return (reinterpret_cast<const char *>(n) - reinterpret_cast<const char *>(s) + __bsfd(mask)) >> 1;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
(reinterpret_cast<const char *>(n) - reinterpret_cast<const char *>(s)
executed 402542 times by 273 tests: return (reinterpret_cast<const char *>(n) - reinterpret_cast<const char *>(s) + __bsfd(mask)) >> 1;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
402542
451 + __bsfd(mask)) >> 1;
executed 402542 times by 273 tests: return (reinterpret_cast<const char *>(n) - reinterpret_cast<const char *>(s) + __bsfd(mask)) >> 1;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
402542
452 }-
453 }
executed 704865 times by 299 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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
  • ...
704865
454-
455-
456 return
executed 1076299 times by 310 tests: return UnrollTailLoop<7>::exec(e - n, -1, [=](int i) { return n[i] == c; }, [=](int i) { return n - s + i; });
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QCollator
  • tst_QColorDialog
  • ...
UnrollTailLoop<7>::exec(e - n, -1,
executed 1076299 times by 310 tests: return UnrollTailLoop<7>::exec(e - n, -1, [=](int i) { return n[i] == c; }, [=](int i) { return n - s + i; });
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QCollator
  • tst_QColorDialog
  • ...
1076299
457 [=](int i) { return
executed 2552540 times by 308 tests: return n[i] == c;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QCollator
  • tst_QColorDialog
  • ...
n[i] == c;
executed 2552540 times by 308 tests: return n[i] == c;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QCollator
  • tst_QColorDialog
  • ...
},
executed 1076299 times by 310 tests: return UnrollTailLoop<7>::exec(e - n, -1, [=](int i) { return n[i] == c; }, [=](int i) { return n - s + i; });
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QCollator
  • tst_QColorDialog
  • ...
1076299-2552540
458 [=](int i) { return
executed 73549 times by 135 tests: return n - s + i;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QCollator
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • ...
n - s + i;
executed 73549 times by 135 tests: return n - s + i;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QCollator
  • tst_QColorDialog
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • ...
});
executed 1076299 times by 310 tests: return UnrollTailLoop<7>::exec(e - n, -1, [=](int i) { return n[i] == c; }, [=](int i) { return n - s + i; });
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QCollator
  • tst_QColorDialog
  • ...
73549-1076299
459-
460-
461 --
dead code: --n;
n;
dead code: --n;
-
462 while
dead code: while (++n != e) if (*n == c) return n - s;
(++n != e)
dead code: while (++n != e) if (*n == c) return n - s;
-
463 if (*n == c)
dead code: while (++n != e) if (*n == c) return n - s;
-
464 return n - s;
dead code: while (++n != e) if (*n == c) return n - s;
-
465 } else {-
466 c = foldCase(c);-
467 --n;-
468 while (++
++n != eDescription
TRUEevaluated 800 times by 6 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QLabel
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_qmakelib
FALSEevaluated 125 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QLabel
  • tst_QString
  • tst_QStringRef
n != e
++n != eDescription
TRUEevaluated 800 times by 6 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QLabel
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_qmakelib
FALSEevaluated 125 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QLabel
  • tst_QString
  • tst_QStringRef
)
125-800
469 if (foldCase(*n) == c
foldCase(*n) == cDescription
TRUEevaluated 336 times by 6 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QLabel
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_qmakelib
FALSEevaluated 464 times by 5 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QLabel
  • tst_QString
  • tst_QStringRef
  • tst_qmakelib
)
336-464
470 return
executed 336 times by 6 tests: return n - s;
Executed by:
  • tst_QAbstractItemModel
  • tst_QLabel
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_qmakelib
n - s;
executed 336 times by 6 tests: return n - s;
Executed by:
  • tst_QAbstractItemModel
  • tst_QLabel
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_qmakelib
336
471 }
executed 125 times by 4 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QLabel
  • tst_QString
  • tst_QStringRef
125
472 }-
473 return
executed 4013 times by 73 tests: return -1;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDir
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
-1;
executed 4013 times by 73 tests: return -1;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDir
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
4013
474}-
475-
476-
477-
478-
479-
480-
481inline bool qIsUpper(char ch)-
482{-
483 return
executed 114853 times by 49 tests: return ch >= 'A' && ch <= 'Z';
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAlgorithms
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QPageSize
  • ...
ch >= 'A' && ch <= 'Z';
executed 114853 times by 49 tests: return ch >= 'A' && ch <= 'Z';
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAlgorithms
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QPageSize
  • ...
114853
484}-
485-
486inline bool qIsDigit(char ch)-
487{-
488 return
executed 453450 times by 110 tests: return ch >= '0' && ch <= '9';
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
ch >= '0' && ch <= '9';
executed 453450 times by 110 tests: return ch >= '0' && ch <= '9';
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
453450
489}-
490-
491inline char qToLower(char ch)-
492{-
493 if (ch >= 'A'
ch >= 'A'Description
TRUEevaluated 114853 times by 49 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAlgorithms
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QPageSize
  • ...
FALSEnever evaluated
&& ch <= 'Z'
ch <= 'Z'Description
TRUEevaluated 4992 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 109861 times by 49 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAlgorithms
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QPageSize
  • ...
)
0-114853
494 return
executed 4992 times by 1 test: return ch - 'A' + 'a';
Executed by:
  • tst_QString
ch - 'A' + 'a';
executed 4992 times by 1 test: return ch - 'A' + 'a';
Executed by:
  • tst_QString
4992
495 else-
496 return
executed 109861 times by 49 tests: return ch;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAlgorithms
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QPageSize
  • ...
ch;
executed 109861 times by 49 tests: return ch;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAlgorithms
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QPageSize
  • ...
109861
497}-
498-
499-
500const QString::Null QString::null = { };-
501int QString::toUcs4_helper(const ushort *uc, int length, uint *out)-
502{-
503 int count = 0;-
504-
505 QStringIterator i(reinterpret_cast<const QChar *>(uc), reinterpret_cast<const QChar *>(uc + length));-
506 while (i.hasNext()
i.hasNext()Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QString
)
12-44
507 out[count++] = i.next();
executed 44 times by 1 test: out[count++] = i.next();
Executed by:
  • tst_QString
44
508-
509 return
executed 12 times by 1 test: return count;
Executed by:
  • tst_QString
count;
executed 12 times by 1 test: return count;
Executed by:
  • tst_QString
12
510}-
511QString::QString(const QChar *unicode, int size)-
512{-
513 if (!unicode
!unicodeDescription
TRUEevaluated 3143 times by 9 tests
Evaluated by:
  • tst_QItemModel
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QStringMatcher
  • tst_QTextBoundaryFinder
FALSEevaluated 6486100 times by 542 tests
Evaluated by:
  • tst_Collections
  • 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
  • tst_QArrayData_StrictIterators
  • ...
) {
3143-6486100
514 d = Data::sharedNull();-
515 }
executed 3143 times by 9 tests: end of block
Executed by:
  • tst_QItemModel
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QStringMatcher
  • tst_QTextBoundaryFinder
else {
3143
516 if (size < 0
size < 0Description
TRUEevaluated 101041 times by 9 tests
Evaluated by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
FALSEevaluated 6385059 times by 542 tests
Evaluated by:
  • tst_Collections
  • 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
  • tst_QArrayData_StrictIterators
  • ...
) {
101041-6385059
517 size = 0;-
518 while (!unicode[size].isNull()
!unicode[size].isNull()Description
TRUEevaluated 3080917 times by 9 tests
Evaluated by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
FALSEevaluated 101041 times by 9 tests
Evaluated by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
)
101041-3080917
519 ++
executed 3080917 times by 9 tests: ++size;
Executed by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
size;
executed 3080917 times by 9 tests: ++size;
Executed by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
3080917
520 }
executed 101041 times by 9 tests: end of block
Executed by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
101041
521 if (!size
!sizeDescription
TRUEevaluated 204954 times by 394 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCache
  • tst_QCalendarWidget
  • tst_QChar
  • ...
FALSEevaluated 6281146 times by 400 tests
Evaluated by:
  • tst_Collections
  • 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
  • tst_QArrayData_StrictIterators
  • ...
) {
204954-6281146
522 d = Data::allocate(0);-
523 }
executed 204954 times by 394 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCache
  • tst_QCalendarWidget
  • tst_QChar
  • ...
else {
204954
524 d = Data::allocate(size + 1);-
525 do { if (!(d)
!(d)Description
TRUEnever evaluated
FALSEevaluated 6281146 times by 400 tests
Evaluated by:
  • tst_Collections
  • 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
  • tst_QArrayData_StrictIterators
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-6281146
526 d->size = size;-
527 memcpy(d->data(), unicode, size * sizeof(QChar));-
528 d->data()[size] = '\0';-
529 }
executed 6281146 times by 400 tests: end of block
Executed by:
  • tst_Collections
  • 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
  • tst_QArrayData_StrictIterators
  • ...
6281146
530 }-
531}-
532-
533-
534-
535-
536-
537-
538-
539QString::QString(int size, QChar ch)-
540{-
541 if (size <= 0
size <= 0Description
TRUEevaluated 201 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDBusXmlParser
  • tst_QXmlSimpleReader
FALSEevaluated 253266 times by 47 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
) {
201-253266
542 d = Data::allocate(0);-
543 }
executed 201 times by 3 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QDBusXmlParser
  • tst_QXmlSimpleReader
else {
201
544 d = Data::allocate(size + 1);-
545 do { if (!(d)
!(d)Description
TRUEnever evaluated
FALSEevaluated 253266 times by 47 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-253266
546 d->size = size;-
547 d->data()[size] = '\0';-
548 ushort *i = d->data() + size;-
549 ushort *b = d->data();-
550 const ushort value = ch.unicode();-
551 while (i != b
i != bDescription
TRUEevaluated 408257 times by 47 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
FALSEevaluated 253266 times by 47 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
)
253266-408257
552 *--
executed 408257 times by 47 tests: *--i = value;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
i = value;
executed 408257 times by 47 tests: *--i = value;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
408257
553 }
executed 253266 times by 47 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
253266
554}-
555-
556-
557-
558-
559-
560-
561-
562QString::QString(int size, Qt::Initialization)-
563{-
564 d = Data::allocate(size + 1);-
565 do { if (!(d)
!(d)Description
TRUEnever evaluated
FALSEevaluated 46522442 times by 686 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-46522442
566 d->size = size;-
567 d->data()[size] = '\0';-
568}
executed 46522072 times by 686 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
46522072
569QString::QString(QChar ch)-
570{-
571 d = Data::allocate(2);-
572 do { if (!(d)
!(d)Description
TRUEnever evaluated
FALSEevaluated 495998 times by 267 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-495998
573 d->size = 1;-
574 d->data()[0] = ch.unicode();-
575 d->data()[1] = '\0';-
576}
executed 495998 times by 267 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
495998
577void QString::resize(int size)-
578{-
579 if (size < 0
size < 0Description
TRUEevaluated 28 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QString
FALSEevaluated 89208133 times by 563 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
  • ...
)
28-89208133
580 size = 0;
executed 28 times by 4 tests: size = 0;
Executed by:
  • tst_QGuiVariant
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QString
28
581-
582 if (((
((d)->offset !...(QStringData))Description
TRUEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QString
  • tst_qmakelib
FALSEevaluated 89208157 times by 563 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
  • ...
d)->offset != sizeof(QStringData))
((d)->offset !...(QStringData))Description
TRUEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QString
  • tst_qmakelib
FALSEevaluated 89208157 times by 563 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
  • ...
&& !d->ref.isShared()
!d->ref.isShared()Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QString
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qmakelib
&& size < d->size
size < d->sizeDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QString
FALSEnever evaluated
) {
0-89208157
583 d->size = size;-
584 return;
executed 2 times by 2 tests: return;
Executed by:
  • tst_QDateTimeEdit
  • tst_QString
2
585 }-
586-
587 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 1679254 times by 481 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
FALSEevaluated 87528905 times by 554 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
|| uint(size) + 1u > d->alloc
uint(size) + 1u > d->allocDescription
TRUEevaluated 240775 times by 195 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAsn1Element
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCache
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 87288130 times by 547 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
)
240775-87528905
588 reallocData(uint(size) + 1u, true);
executed 1920029 times by 485 tests: reallocData(uint(size) + 1u, true);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
1920029
589 if (d->alloc
d->allocDescription
TRUEevaluated 89208159 times by 563 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
  • ...
FALSEnever evaluated
) {
0-89208159
590 d->size = size;-
591 d->data()[size] = '\0';-
592 }
executed 89208159 times by 563 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
  • ...
89208159
593}
executed 89208159 times by 563 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
  • ...
89208159
594void QString::resize(int size, QChar fillChar)-
595{-
596 const int oldSize = length();-
597 resize(size);-
598 const int difference = length() - oldSize;-
599 if (difference > 0
difference > 0Description
TRUEevaluated 28747 times by 13 tests
Evaluated by:
  • tst_Collections
  • tst_QDebug
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QHash
  • tst_QHash_StrictIterators
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QString
  • tst_QTextStream
FALSEevaluated 2239 times by 4 tests
Evaluated by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
)
2239-28747
600 std::fill_n(d->begin() + oldSize, difference, fillChar.unicode());
executed 28747 times by 13 tests: std::fill_n(d->begin() + oldSize, difference, fillChar.unicode());
Executed by:
  • tst_Collections
  • tst_QDebug
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QHash
  • tst_QHash_StrictIterators
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QString
  • tst_QTextStream
28747
601}
executed 30986 times by 13 tests: end of block
Executed by:
  • tst_Collections
  • tst_QDebug
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QHash
  • tst_QHash_StrictIterators
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QString
  • tst_QTextStream
30986
602void QString::reallocData(uint alloc, bool grow)-
603{-
604 size_t blockSize;-
605 if (grow
growDescription
TRUEevaluated 17320378 times by 539 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 1024048 times by 311 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • ...
) {
1024048-17320378
606 auto r = qCalculateGrowingBlockSize(alloc, sizeof(QChar), sizeof(Data));-
607 blockSize = r.size;-
608 alloc = uint(r.elementCount);-
609 }
executed 17320378 times by 539 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
  • ...
else {
17320378
610 blockSize = qCalculateBlockSize(alloc, sizeof(QChar), sizeof(Data));-
611 }
executed 1024049 times by 311 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • ...
1024049
612-
613 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 17139594 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 1204609 times by 500 tests
Evaluated by:
  • tst_Collections
  • 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_QBackingStore
  • tst_QBitArray
  • ...
|| ((
((d)->offset !...(QStringData))Description
TRUEevaluated 1718 times by 12 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QString
  • tst_QTime
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 1202891 times by 500 tests
Evaluated by:
  • tst_Collections
  • 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_QBackingStore
  • tst_QBitArray
  • ...
d)->offset != sizeof(QStringData))
((d)->offset !...(QStringData))Description
TRUEevaluated 1718 times by 12 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QString
  • tst_QTime
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 1202891 times by 500 tests
Evaluated by:
  • tst_Collections
  • 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_QBackingStore
  • tst_QBitArray
  • ...
) {
1718-17139594
614 Data::AllocationOptions allocOptions(d->capacityReserved ? Data::CapacityReserved : 0);-
615 Data *x = Data::allocate(alloc, allocOptions);-
616 do { if (!(x)
!(x)Description
TRUEnever evaluated
FALSEevaluated 17141536 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
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-17141536
617 x->size = qMin(int(alloc) - 1, d->size);-
618 ::memcpy(x->data(), d->data(), x->size * sizeof(QChar));-
619 x->data()[x->size] = 0;-
620 if (!d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 1718 times by 12 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QString
  • tst_QTime
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 17139818 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
  • ...
)
1718-17139818
621 Data::deallocate(d);
executed 1718 times by 12 tests: Data::deallocate(d);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QString
  • tst_QTime
  • tst_QUrl
  • tst_QXmlStream
1718
622 d = x;-
623 }
executed 17141536 times by 543 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
  • ...
else {
17141536
624 Data *p = static_cast<Data *>(::realloc(d, blockSize));-
625 do { if (!(p)
!(p)Description
TRUEnever evaluated
FALSEevaluated 1202891 times by 500 tests
Evaluated by:
  • tst_Collections
  • 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_QBackingStore
  • tst_QBitArray
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-1202891
626 d = p;-
627 d->alloc = alloc;-
628 d->offset = sizeof(QStringData);-
629 }
executed 1202891 times by 500 tests: end of block
Executed by:
  • tst_Collections
  • 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_QBackingStore
  • tst_QBitArray
  • ...
1202891
630}-
631-
632-
633void QString::expand(int i)-
634{-
635 resize(qMax(i + 1, d->size), QLatin1Char(' '));-
636}
never executed: end of block
0
637QString &QString::operator=(const QString &other) noexcept-
638{-
639 other.d->ref.ref();-
640 if (!d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 853249 times by 265 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • ...
FALSEevaluated 6633512 times by 445 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_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
)
853249-6633512
641 Data::deallocate(d);
executed 853249 times by 265 tests: Data::deallocate(d);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • ...
853249
642 d = other.d;-
643 return
executed 7486761 times by 451 tests: return *this;
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_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
*this;
executed 7486761 times by 451 tests: return *this;
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_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
7486761
644}-
645QString &QString::operator=(QLatin1String other)-
646{-
647 if (isDetached()
isDetached()Description
TRUEevaluated 136704 times by 527 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • ...
FALSEevaluated 86568 times by 511 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
&& other.size() <= capacity()
other.size() <= capacity()Description
TRUEevaluated 133632 times by 329 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
FALSEevaluated 3072 times by 503 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • ...
) {
3072-136704
648 d->size = other.size();-
649 d->data()[other.size()] = 0;-
650 qt_from_latin1(d->data(), other.latin1(), other.size());-
651 }
executed 133632 times by 329 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • ...
else {
133632
652 *this = fromLatin1(other.latin1(), other.size());-
653 }
executed 89640 times by 657 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
89640
654 return
executed 223272 times by 657 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
*this;
executed 223272 times by 657 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
223272
655}-
656QString &QString::operator=(QChar ch)-
657{-
658 if (isDetached()
isDetached()Description
TRUEevaluated 698 times by 162 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
FALSEevaluated 77060 times by 117 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontMetrics
  • ...
&& capacity() >= 1
capacity() >= 1Description
TRUEevaluated 697 times by 162 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
) {
1-77060
659-
660 ushort *dat = d->data();-
661 dat[0] = ch.unicode();-
662 dat[1] = 0;-
663 d->size = 1;-
664 }
executed 697 times by 162 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
else {
697
665 operator=(QString(ch));-
666 }
executed 77061 times by 117 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontMetrics
  • ...
77061
667 return
executed 77758 times by 218 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
*this;
executed 77758 times by 218 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
77758
668}-
669QString &QString::insert(int i, QLatin1String str)-
670{-
671 const char *s = str.latin1();-
672 if (i < 0
i < 0Description
TRUEnever evaluated
FALSEevaluated 17409 times by 58 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QItemModel
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
|| !s
!sDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 17401 times by 58 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QItemModel
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
|| !(*s)
!(*s)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 17393 times by 58 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QItemModel
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
)
0-17409
673 return
executed 16 times by 1 test: return *this;
Executed by:
  • tst_QString
*this;
executed 16 times by 1 test: return *this;
Executed by:
  • tst_QString
16
674-
675 int len = str.size();-
676 if (__builtin_expect(!!(i > d->size), false)
__builtin_expe...>size), false)Description
TRUEnever evaluated
FALSEevaluated 17393 times by 58 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QItemModel
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
)
0-17393
677 resize(i + len, QLatin1Char(' '));
never executed: resize(i + len, QLatin1Char(' '));
0
678 else-
679 resize(d->size + len);
executed 17393 times by 58 tests: resize(d->size + len);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QItemModel
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
17393
680-
681 ::memmove(d->data() + i + len, d->data() + i, (d->size - i - len) * sizeof(QChar));-
682 qt_from_latin1(d->data() + i, s, uint(len));-
683 return
executed 17393 times by 58 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QItemModel
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
*this;
executed 17393 times by 58 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QItemModel
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
17393
684}-
685QString& QString::insert(int i, const QChar *unicode, int size)-
686{-
687 if (i < 0
i < 0Description
TRUEnever evaluated
FALSEevaluated 1414856 times by 75 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractFileEngine
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • 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_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • ...
|| size <= 0
size <= 0Description
TRUEevaluated 353295 times by 39 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_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • ...
FALSEevaluated 1061561 times by 75 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractFileEngine
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • 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_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • ...
)
0-1414856
688 return
executed 353295 times by 39 tests: return *this;
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
  • ...
*this;
executed 353295 times by 39 tests: return *this;
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
  • ...
353295
689-
690 const ushort *s = (const ushort *)unicode;-
691 if (s >= d->data()
s >= d->data()Description
TRUEevaluated 473772 times by 69 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractFileEngine
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • 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_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
FALSEevaluated 587789 times by 74 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractFileEngine
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • 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_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • ...
&& s < d->data() + d->alloc
s < d->data() + d->allocDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
FALSEevaluated 473769 times by 69 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractFileEngine
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • 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_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
) {
3-587789
692-
693 ushort *tmp = static_cast<ushort *>(::malloc(size * sizeof(QChar)));-
694 do { if (!(tmp)
!(tmp)Description
TRUEnever evaluated
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-3
695 memcpy(tmp, s, size * sizeof(QChar));-
696 insert(i, reinterpret_cast<const QChar *>(tmp), size);-
697 ::free(tmp);-
698 return
executed 3 times by 2 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QString
*this;
executed 3 times by 2 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QString
3
699 }-
700-
701 if (__builtin_expect(!!(i > d->size), false)
__builtin_expe...>size), false)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
FALSEevaluated 1061556 times by 75 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractFileEngine
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • 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_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • ...
)
2-1061556
702 resize(i + size, QLatin1Char(' '));
executed 2 times by 2 tests: resize(i + size, QLatin1Char(' '));
Executed by:
  • tst_Collections
  • tst_QString
2
703 else-
704 resize(d->size + size);
executed 1061556 times by 75 tests: resize(d->size + size);
Executed by:
  • tst_Collections
  • tst_QAbstractFileEngine
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • 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_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • ...
1061556
705-
706 ::memmove(d->data() + i + size, d->data() + i, (d->size - i - size) * sizeof(QChar));-
707 memcpy(d->data() + i, s, size * sizeof(QChar));-
708 return
executed 1061558 times by 75 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAbstractFileEngine
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • 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_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • ...
*this;
executed 1061558 times by 75 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAbstractFileEngine
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • 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_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • ...
1061558
709}-
710QString& QString::insert(int i, QChar ch)-
711{-
712 if (i < 0
i < 0Description
TRUEnever evaluated
FALSEevaluated 510830 times by 413 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
)
0-510830
713 i += d->size;
never executed: i += d->size;
0
714 if (i < 0
i < 0Description
TRUEnever evaluated
FALSEevaluated 510830 times by 413 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
)
0-510830
715 return
never executed: return *this;
*this;
never executed: return *this;
0
716 if (__builtin_expect(!!(i > d->size), false)
__builtin_expe...>size), false)Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
FALSEevaluated 510828 times by 413 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
)
2-510828
717 resize(i + 1, QLatin1Char(' '));
executed 2 times by 2 tests: resize(i + 1, QLatin1Char(' '));
Executed by:
  • tst_Collections
  • tst_QString
2
718 else-
719 resize(d->size + 1);
executed 510828 times by 413 tests: resize(d->size + 1);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
510828
720 ::memmove(d->data() + i + 1, d->data() + i, (d->size - i - 1) * sizeof(QChar));-
721 d->data()[i] = ch.unicode();-
722 return
executed 510830 times by 413 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
*this;
executed 510830 times by 413 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
510830
723}-
724QString &QString::append(const QString &str)-
725{-
726 if (str.d != Data::sharedNull()
str.d != Data::sharedNull()Description
TRUEevaluated 51070895 times by 522 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_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
FALSEevaluated 41421 times by 138 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • ...
) {
41421-51070895
727 if (d == Data::sharedNull()
d == Data::sharedNull()Description
TRUEevaluated 387409 times by 226 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
FALSEevaluated 50683486 times by 508 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
) {
387409-50683486
728 operator=(str);-
729 }
executed 387409 times by 226 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
else {
387409
730 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 7313833 times by 283 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • ...
FALSEevaluated 43369653 times by 494 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • 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
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
|| uint(d->size + str.d->size) + 1u > d->alloc
uint(d->size +... 1u > d->allocDescription
TRUEevaluated 570071 times by 436 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
FALSEevaluated 42799582 times by 482 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • 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_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • ...
)
570071-43369653
731 reallocData(uint(d->size + str.d->size) + 1u, true);
executed 7883904 times by 482 tests: reallocData(uint(d->size + str.d->size) + 1u, true);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
7883904
732 memcpy(d->data() + d->size, str.d->data(), str.d->size * sizeof(QChar));-
733 d->size += str.d->size;-
734 d->data()[d->size] = '\0';-
735 }
executed 50683486 times by 508 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
50683486
736 }-
737 return
executed 51112316 times by 522 tests: return *this;
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_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
*this;
executed 51112316 times by 522 tests: return *this;
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_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
51112316
738}-
739-
740-
741-
742-
743-
744-
745-
746QString &QString::append(const QChar *str, int len)-
747{-
748 if (str
strDescription
TRUEevaluated 262545 times by 97 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontCache
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
&& len > 0
len > 0Description
TRUEevaluated 261788 times by 97 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontCache
  • ...
FALSEevaluated 757 times by 18 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusInterface
  • tst_QDBusXmlParser
  • tst_QDnsLookup
  • tst_QGraphicsScene
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QObject
  • tst_QPrintDevice
  • tst_QPrinterInfo
  • tst_QSslSocket
  • tst_QString
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
  • tst_qstandardpaths
) {
1-262545
749 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 54053 times by 78 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • ...
FALSEevaluated 207735 times by 91 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontCache
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • ...
|| uint(d->size + len) + 1u > d->alloc
uint(d->size +... 1u > d->allocDescription
TRUEevaluated 37420 times by 69 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusXmlParser
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QFile
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • ...
FALSEevaluated 170315 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontCache
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • ...
)
37420-207735
750 reallocData(uint(d->size + len) + 1u, true);
executed 91473 times by 84 tests: reallocData(uint(d->size + len) + 1u, true);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • ...
91473
751 memcpy(d->data() + d->size, str, len * sizeof(QChar));-
752 d->size += len;-
753 d->data()[d->size] = '\0';-
754 }
executed 261788 times by 97 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontCache
  • ...
261788
755 return
executed 262546 times by 97 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontCache
  • ...
*this;
executed 262546 times by 97 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontCache
  • ...
262546
756}-
757-
758-
759-
760-
761-
762-
763QString &QString::append(QLatin1String str)-
764{-
765 const char *s = str.latin1();-
766 if (s
sDescription
TRUEevaluated 126592 times by 235 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 57 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QXmlStream
) {
57-126592
767 int len = str.size();-
768 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 24169 times by 207 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 102423 times by 200 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • ...
|| uint(d->size + len) + 1u > d->alloc
uint(d->size +... 1u > d->allocDescription
TRUEevaluated 30756 times by 188 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • ...
FALSEevaluated 71667 times by 79 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QAction
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDebug
  • tst_QDir
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
)
24169-102423
769 reallocData(uint(d->size + len) + 1u, true);
executed 54925 times by 234 tests: reallocData(uint(d->size + len) + 1u, true);
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
54925
770 ushort *i = d->data() + d->size;-
771 qt_from_latin1(i, s, uint(len));-
772 i[len] = '\0';-
773 d->size += len;-
774 }
executed 126592 times by 235 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
126592
775 return
executed 126649 times by 235 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
*this;
executed 126649 times by 235 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
126649
776}-
777QString &QString::append(QChar ch)-
778{-
779 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 135065 times by 166 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColumnView
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 555989 times by 201 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QColor
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • ...
|| uint(d->size) + 2u > d->alloc
uint(d->size) + 2u > d->allocDescription
TRUEevaluated 46500 times by 169 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QColor
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • ...
FALSEevaluated 509489 times by 186 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QColor
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • ...
)
46500-555989
780 reallocData(uint(d->size) + 2u, true);
executed 181565 times by 196 tests: reallocData(uint(d->size) + 2u, true);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QColor
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • ...
181565
781 d->data()[d->size++] = ch.unicode();-
782 d->data()[d->size] = '\0';-
783 return
executed 691054 times by 216 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QColor
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • ...
*this;
executed 691054 times by 216 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QColor
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • ...
691054
784}-
785QString &QString::remove(int pos, int len)-
786{-
787 if (pos < 0
pos < 0Description
TRUEnever evaluated
FALSEevaluated 173715 times by 149 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • ...
)
0-173715
788 pos += d->size;
never executed: pos += d->size;
0
789 if (uint(pos) >= uint(d->size)
uint(pos) >= uint(d->size)Description
TRUEnever evaluated
FALSEevaluated 173843 times by 149 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • ...
) {
0-173843
790-
791 }
never executed: end of block
else if (len >= d->size - pos
len >= d->size - posDescription
TRUEevaluated 50029 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QAction
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QSettings
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextPieceTable
  • tst_QTreeWidget
  • tst_QUndoStack
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
FALSEevaluated 123814 times by 149 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • ...
) {
0-123814
792 resize(pos);-
793 }
executed 50029 times by 24 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QAction
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QSettings
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextPieceTable
  • tst_QTreeWidget
  • tst_QUndoStack
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
else if (len > 0
len > 0Description
TRUEevaluated 123813 times by 149 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
) {
1-123813
794 detach();-
795 memmove(d->data() + pos, d->data() + pos + len,-
796 (d->size - pos - len + 1) * sizeof(ushort));-
797 d->size -= len;-
798 }
executed 123813 times by 149 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • ...
123813
799 return
executed 173843 times by 149 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • ...
*this;
executed 173843 times by 149 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • ...
173843
800}-
801QString &QString::remove(const QString &str, Qt::CaseSensitivity cs)-
802{-
803 if (str.d->size
str.d->sizeDescription
TRUEevaluated 24541 times by 11 tests
Evaluated by:
  • tst_QAction
  • tst_QButtonGroup
  • tst_QDialogButtonBox
  • tst_QLineEdit
  • tst_QLogging
  • tst_QMenu
  • tst_QPrinter
  • tst_QString
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
) {
4-24541
804 int i = 0;-
805 while ((
(i = indexOf(s... i, cs)) != -1Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QAction
  • tst_QString
FALSEevaluated 24541 times by 11 tests
Evaluated by:
  • tst_QAction
  • tst_QButtonGroup
  • tst_QDialogButtonBox
  • tst_QLineEdit
  • tst_QLogging
  • tst_QMenu
  • tst_QPrinter
  • tst_QString
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
i = indexOf(str, i, cs)) != -1
(i = indexOf(s... i, cs)) != -1Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QAction
  • tst_QString
FALSEevaluated 24541 times by 11 tests
Evaluated by:
  • tst_QAction
  • tst_QButtonGroup
  • tst_QDialogButtonBox
  • tst_QLineEdit
  • tst_QLogging
  • tst_QMenu
  • tst_QPrinter
  • tst_QString
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
)
18-24541
806 remove(i, str.d->size);
executed 18 times by 2 tests: remove(i, str.d->size);
Executed by:
  • tst_QAction
  • tst_QString
18
807 }
executed 24541 times by 11 tests: end of block
Executed by:
  • tst_QAction
  • tst_QButtonGroup
  • tst_QDialogButtonBox
  • tst_QLineEdit
  • tst_QLogging
  • tst_QMenu
  • tst_QPrinter
  • tst_QString
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
24541
808 return
executed 24545 times by 11 tests: return *this;
Executed by:
  • tst_QAction
  • tst_QButtonGroup
  • tst_QDialogButtonBox
  • tst_QLineEdit
  • tst_QLogging
  • tst_QMenu
  • tst_QPrinter
  • tst_QString
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
*this;
executed 24545 times by 11 tests: return *this;
Executed by:
  • tst_QAction
  • tst_QButtonGroup
  • tst_QDialogButtonBox
  • tst_QLineEdit
  • tst_QLogging
  • tst_QMenu
  • tst_QPrinter
  • tst_QString
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
24545
809}-
810QString &QString::remove(QChar ch, Qt::CaseSensitivity cs)-
811{-
812 int i = 0;-
813 ushort c = ch.unicode();-
814 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 30102 times by 27 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QSpinBox
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentFragment
  • tst_Selftests
  • tst_languageChange
  • tst_qdbuscpp2xml
  • ...
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QString
) {
11-30102
815 while (i < d->size
i < d->sizeDescription
TRUEevaluated 760854 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QSpinBox
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentFragment
  • tst_Selftests
  • tst_languageChange
  • tst_qdbuscpp2xml
  • ...
FALSEevaluated 30102 times by 27 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QSpinBox
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentFragment
  • tst_Selftests
  • tst_languageChange
  • tst_qdbuscpp2xml
  • ...
)
30102-760854
816 if (d->data()[i] == ch
d->data()[i] == chDescription
TRUEevaluated 48434 times by 11 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QLogging
  • tst_QSpinBox
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentFragment
  • tst_Selftests
  • tst_languageChange
FALSEevaluated 712420 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QSpinBox
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentFragment
  • tst_Selftests
  • tst_languageChange
  • tst_qdbuscpp2xml
  • ...
)
48434-712420
817 remove(i, 1);
executed 48434 times by 11 tests: remove(i, 1);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QLogging
  • tst_QSpinBox
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentFragment
  • tst_Selftests
  • tst_languageChange
48434
818 else-
819 i++;
executed 712420 times by 26 tests: i++;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QSpinBox
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentFragment
  • tst_Selftests
  • tst_languageChange
  • tst_qdbuscpp2xml
  • ...
712420
820 }
executed 30102 times by 27 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QSpinBox
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentFragment
  • tst_Selftests
  • tst_languageChange
  • tst_qdbuscpp2xml
  • ...
else {
30102
821 c = foldCase(c);-
822 while (i < d->size
i < d->sizeDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QString
)
11-36
823 if (foldCase(d->data()[i]) == c
foldCase(d->data()[i]) == cDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
)
14-22
824 remove(i, 1);
executed 14 times by 1 test: remove(i, 1);
Executed by:
  • tst_QString
14
825 else-
826 i++;
executed 22 times by 1 test: i++;
Executed by:
  • tst_QString
22
827 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_QString
11
828 return
executed 30113 times by 27 tests: return *this;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QSpinBox
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentFragment
  • tst_Selftests
  • tst_languageChange
  • tst_qdbuscpp2xml
  • ...
*this;
executed 30113 times by 27 tests: return *this;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QSpinBox
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentFragment
  • tst_Selftests
  • tst_languageChange
  • tst_qdbuscpp2xml
  • ...
30113
829}-
830QString &QString::replace(int pos, int len, const QString &after)-
831{-
832 return
executed 2000587 times by 9 tests: return replace(pos, len, after.constData(), after.length());
Executed by:
  • tst_Collections
  • tst_QDateTimeEdit
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • tst_QTranslator
  • tst_qmakelib
replace(pos, len, after.constData(), after.length());
executed 2000587 times by 9 tests: return replace(pos, len, after.constData(), after.length());
Executed by:
  • tst_Collections
  • tst_QDateTimeEdit
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • tst_QTranslator
  • tst_qmakelib
2000587
833}-
834QString &QString::replace(int pos, int len, const QChar *unicode, int size)-
835{-
836 if (uint(pos) > uint(d->size)
uint(pos) > uint(d->size)Description
TRUEnever evaluated
FALSEevaluated 2109498 times by 22 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QChar
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • tst_QTextList
  • tst_QTime
  • tst_QTranslator
  • tst_QUrl
  • tst_QUrlInternal
  • tst_qmakelib
)
0-2109498
837 return
never executed: return *this;
*this;
never executed: return *this;
0
838 if (len > d->size - pos
len > d->size - posDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2109473 times by 22 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QChar
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • tst_QTextList
  • tst_QTime
  • tst_QTranslator
  • tst_QUrl
  • tst_QUrlInternal
  • tst_qmakelib
)
25-2109473
839 len = d->size - pos;
executed 25 times by 1 test: len = d->size - pos;
Executed by:
  • tst_QString
25
840-
841 uint index = pos;-
842 replace_helper(&index, 1, len, unicode, size);-
843 return
executed 2109498 times by 22 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QChar
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • tst_QTextList
  • tst_QTime
  • tst_QTranslator
  • tst_QUrl
  • tst_QUrlInternal
  • tst_qmakelib
*this;
executed 2109498 times by 22 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QChar
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • tst_QTextList
  • tst_QTime
  • tst_QTranslator
  • tst_QUrl
  • tst_QUrlInternal
  • tst_qmakelib
2109498
844}-
845QString &QString::replace(int pos, int len, QChar after)-
846{-
847 return
executed 12 times by 3 tests: return replace(pos, len, &after, 1);
Executed by:
  • tst_QCssParser
  • tst_QString
  • tst_QTextList
replace(pos, len, &after, 1);
executed 12 times by 3 tests: return replace(pos, len, &after, 1);
Executed by:
  • tst_QCssParser
  • tst_QString
  • tst_QTextList
12
848}-
849QString &QString::replace(const QString &before, const QString &after, Qt::CaseSensitivity cs)-
850{-
851 return
executed 168802 times by 19 tests: return replace(before.constData(), before.size(), after.constData(), after.size(), cs);
Executed by:
  • tst_Collections
  • tst_QCommandLineParser
  • tst_QFileInfo
  • tst_QFont
  • tst_QNetworkReply
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_QWidget_window
  • tst_Selftests
  • tst_qmakelib
replace(before.constData(), before.size(), after.constData(), after.size(), cs);
executed 168802 times by 19 tests: return replace(before.constData(), before.size(), after.constData(), after.size(), cs);
Executed by:
  • tst_Collections
  • tst_QCommandLineParser
  • tst_QFileInfo
  • tst_QFont
  • tst_QNetworkReply
  • tst_QSortFilterProxyModel
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringList
  • tst_QTextDocument
  • tst_QWidget_window
  • tst_Selftests
  • tst_qmakelib
168802
852}-
853-
854namespace {-
855QChar *textCopy(const QChar *start, int len)-
856{-
857 const size_t size = len * sizeof(QChar);-
858 QChar *const copy = static_cast<QChar *>(::malloc(size));-
859 do { if (!(copy)
!(copy)Description
TRUEnever evaluated
FALSEevaluated 28 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QString
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-28
860 ::memcpy(copy, start, size);-
861 return
executed 28 times by 4 tests: return copy;
Executed by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QString
copy;
executed 28 times by 4 tests: return copy;
Executed by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QString
28
862}-
863-
864bool pointsIntoRange(const QChar *ptr, const ushort *base, int len)-
865{-
866 const QChar *const start = reinterpret_cast<const QChar *>(base);-
867 return
executed 2111199 times by 50 tests: return start <= ptr && ptr < start + len;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QAction
  • tst_QChar
  • tst_QCommandLineParser
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • ...
start <= ptr && ptr < start + len;
executed 2111199 times by 50 tests: return start <= ptr && ptr < start + len;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QAction
  • tst_QChar
  • tst_QCommandLineParser
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • ...
2111199
868}-
869}-
870-
871-
872-
873-
874void QString::replace_helper(uint *indices, int nIndices, int blen, const QChar *after, int alen)-
875{-
876-
877-
878 QChar *afterBuffer = 0;-
879 if (pointsIntoRange(after, d->data(), d->size)
pointsIntoRang...ta(), d->size)Description
TRUEevaluated 26 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QString
FALSEevaluated 2111171 times by 50 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QAction
  • tst_QChar
  • tst_QCommandLineParser
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • ...
)
26-2111171
880 after = afterBuffer = textCopy(after, alen);
executed 26 times by 4 tests: after = afterBuffer = textCopy(after, alen);
Executed by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QString
26
881-
882 try {-
883 if (blen == alen
blen == alenDescription
TRUEevaluated 2014278 times by 21 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QChar
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • tst_QTime
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 96919 times by 39 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QChar
  • tst_QCommandLineParser
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • ...
) {
96919-2014278
884-
885 detach();-
886 for (int i = 0; i < nIndices
i < nIndicesDescription
TRUEevaluated 2014285 times by 21 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QChar
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • tst_QTime
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 2014278 times by 21 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QChar
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • tst_QTime
  • tst_QUrl
  • tst_QUrlInternal
; ++i)
2014278-2014285
887 memcpy(d->data() + indices[i], after, alen * sizeof(QChar));
executed 2014285 times by 21 tests: memcpy(d->data() + indices[i], after, alen * sizeof(QChar));
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QChar
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • tst_QTime
  • tst_QUrl
  • tst_QUrlInternal
2014285
888 }
executed 2014278 times by 21 tests: end of block
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QChar
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • tst_QTime
  • tst_QUrl
  • tst_QUrlInternal
else if (alen < blen
alen < blenDescription
TRUEevaluated 10372 times by 16 tests
Evaluated by:
  • tst_QChar
  • tst_QCssParser
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QString
  • tst_QStringList
  • tst_QTextList
  • tst_QTranslator
  • tst_QUrlInternal
  • tst_QWidget_window
  • tst_Selftests
  • tst_qmakelib
FALSEevaluated 86547 times by 32 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QChar
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFont
  • tst_QFontDialog
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • tst_QTcpServer
  • ...
) {
10372-2014278
889-
890 detach();-
891 uint to = indices[0];-
892 if (alen
alenDescription
TRUEevaluated 10340 times by 16 tests
Evaluated by:
  • tst_QChar
  • tst_QCssParser
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QString
  • tst_QStringList
  • tst_QTextList
  • tst_QTranslator
  • tst_QUrlInternal
  • tst_QWidget_window
  • tst_Selftests
  • tst_qmakelib
FALSEevaluated 32 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
)
32-10340
893 memcpy(d->data()+to, after, alen*sizeof(QChar));
executed 10340 times by 16 tests: memcpy(d->data()+to, after, alen*sizeof(QChar));
Executed by:
  • tst_QChar
  • tst_QCssParser
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QString
  • tst_QStringList
  • tst_QTextList
  • tst_QTranslator
  • tst_QUrlInternal
  • tst_QWidget_window
  • tst_Selftests
  • tst_qmakelib
10340
894 to += alen;-
895 uint movestart = indices[0] + blen;-
896 for (int i = 1; i < nIndices
i < nIndicesDescription
TRUEevaluated 1031 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 10372 times by 16 tests
Evaluated by:
  • tst_QChar
  • tst_QCssParser
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QString
  • tst_QStringList
  • tst_QTextList
  • tst_QTranslator
  • tst_QUrlInternal
  • tst_QWidget_window
  • tst_Selftests
  • tst_qmakelib
; ++i) {
1031-10372
897 int msize = indices[i] - movestart;-
898 if (msize > 0
msize > 0Description
TRUEevaluated 1029 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
) {
2-1029
899 memmove(d->data() + to, d->data() + movestart, msize * sizeof(QChar));-
900 to += msize;-
901 }
executed 1029 times by 1 test: end of block
Executed by:
  • tst_QString
1029
902 if (alen
alenDescription
TRUEevaluated 1026 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
) {
5-1026
903 memcpy(d->data() + to, after, alen * sizeof(QChar));-
904 to += alen;-
905 }
executed 1026 times by 1 test: end of block
Executed by:
  • tst_QString
1026
906 movestart = indices[i] + blen;-
907 }
executed 1031 times by 1 test: end of block
Executed by:
  • tst_QString
1031
908 int msize = d->size - movestart;-
909 if (msize > 0
msize > 0Description
TRUEevaluated 1283 times by 11 tests
Evaluated by:
  • tst_QCssParser
  • tst_QMdiArea
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QString
  • tst_QTextList
  • tst_QTranslator
  • tst_QUrlInternal
  • tst_QWidget_window
  • tst_Selftests
  • tst_qmakelib
FALSEevaluated 9089 times by 10 tests
Evaluated by:
  • tst_QChar
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QProgressBar
  • tst_QString
  • tst_QStringList
  • tst_QUrlInternal
  • tst_qmakelib
)
1283-9089
910 memmove(d->data() + to, d->data() + movestart, msize * sizeof(QChar));
executed 1283 times by 11 tests: memmove(d->data() + to, d->data() + movestart, msize * sizeof(QChar));
Executed by:
  • tst_QCssParser
  • tst_QMdiArea
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QString
  • tst_QTextList
  • tst_QTranslator
  • tst_QUrlInternal
  • tst_QWidget_window
  • tst_Selftests
  • tst_qmakelib
1283
911 resize(d->size - nIndices*(blen-alen));-
912 }
executed 10372 times by 16 tests: end of block
Executed by:
  • tst_QChar
  • tst_QCssParser
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QString
  • tst_QStringList
  • tst_QTextList
  • tst_QTranslator
  • tst_QUrlInternal
  • tst_QWidget_window
  • tst_Selftests
  • tst_qmakelib
else {
10372
913-
914 int adjust = nIndices*(alen-blen);-
915 int newLen = d->size + adjust;-
916 int moveend = d->size;-
917 resize(newLen);-
918-
919 while (nIndices
nIndicesDescription
TRUEevaluated 86663 times by 32 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QChar
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFont
  • tst_QFontDialog
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • tst_QTcpServer
  • ...
FALSEevaluated 86547 times by 32 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QChar
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFont
  • tst_QFontDialog
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • tst_QTcpServer
  • ...
) {
86547-86663
920 --nIndices;-
921 int movestart = indices[nIndices] + blen;-
922 int insertstart = indices[nIndices] + nIndices*(alen-blen);-
923 int moveto = insertstart + alen;-
924 memmove(d->data() + moveto, d->data() + movestart,-
925 (moveend - movestart)*sizeof(QChar));-
926 memcpy(d->data() + insertstart, after, alen * sizeof(QChar));-
927 moveend = movestart-blen;-
928 }
executed 86663 times by 32 tests: end of block
Executed by:
  • tst_Collections
  • tst_QAction
  • tst_QChar
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFont
  • tst_QFontDialog
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • tst_QTcpServer
  • ...
86663
929 }
executed 86547 times by 32 tests: end of block
Executed by:
  • tst_Collections
  • tst_QAction
  • tst_QChar
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QFont
  • tst_QFontDialog
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • tst_QTcpServer
  • ...
86547
930 } catch (const std::bad_alloc &) {-
931 ::free(afterBuffer);-
932 throw;
never executed: throw;
0
933 }-
934 ::free(afterBuffer);-
935}
executed 2111197 times by 50 tests: end of block
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QAction
  • tst_QChar
  • tst_QCommandLineParser
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • ...
2111197
936QString &QString::replace(const QChar *before, int blen,-
937 const QChar *after, int alen,-
938 Qt::CaseSensitivity cs)-
939{-
940 if (d->size == 0
d->size == 0Description
TRUEevaluated 2844 times by 28 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QToolButton
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QWidgetAction
  • tst_QXmlSimpleReader
  • ...
FALSEevaluated 192107 times by 104 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
) {
2844-192107
941 if (blen
blenDescription
TRUEevaluated 2838 times by 28 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QToolButton
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QWidgetAction
  • tst_QXmlSimpleReader
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
)
6-2838
942 return
executed 2838 times by 28 tests: return *this;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QToolButton
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QWidgetAction
  • tst_QXmlSimpleReader
  • ...
*this;
executed 2838 times by 28 tests: return *this;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QToolButton
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QWidgetAction
  • tst_QXmlSimpleReader
  • ...
2838
943 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QString
else {
6
944 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 192092 times by 104 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
&& before == after
before == afterDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 192090 times by 104 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
&& blen == alen
blen == alenDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
FALSEnever evaluated
)
0-192092
945 return
executed 2 times by 1 test: return *this;
Executed by:
  • tst_Collections
*this;
executed 2 times by 1 test: return *this;
Executed by:
  • tst_Collections
2
946 }
executed 192105 times by 104 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
192105
947 if (alen == 0
alen == 0Description
TRUEevaluated 21 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QString
FALSEevaluated 192090 times by 104 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
&& blen == 0
blen == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 17 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QString
)
4-192090
948 return
executed 4 times by 1 test: return *this;
Executed by:
  • tst_QString
*this;
executed 4 times by 1 test: return *this;
Executed by:
  • tst_QString
4
949-
950 QStringMatcher matcher(before, blen, cs);-
951 QChar *beforeBuffer = 0, *afterBuffer = 0;-
952-
953 int index = 0;-
954 while (1) {-
955 uint indices[1024];-
956 uint pos = 0;-
957 while (pos < 1024
pos < 1024Description
TRUEevaluated 194936 times by 104 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
) {
1-194936
958 index = matcher.indexIn(*this, index);-
959 if (index == -1
index == -1Description
TRUEevaluated 192107 times by 104 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
FALSEevaluated 2829 times by 35 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • ...
)
2829-192107
960 break;
executed 192107 times by 104 tests: break;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
192107
961 indices[pos++] = index;-
962 if (blen
blenDescription
TRUEevaluated 2819 times by 35 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • ...
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QString
)
10-2819
963 index += blen;
executed 2819 times by 35 tests: index += blen;
Executed by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • ...
2819
964 else-
965 index++;
executed 10 times by 1 test: index++;
Executed by:
  • tst_QString
10
966 }-
967 if (!pos
!posDescription
TRUEevaluated 190418 times by 93 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QFtp
  • tst_QGestureRecognizer
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • ...
FALSEevaluated 1690 times by 35 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • ...
)
1690-190418
968 break;
executed 190418 times by 93 tests: break;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QFtp
  • tst_QGestureRecognizer
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • ...
190418
969-
970 if (__builtin_expect(!!(index != -1), false)
__builtin_expe...!= -1), false)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 1689 times by 35 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • ...
) {
1-1689
971-
972-
973-
974-
975 if (!afterBuffer
!afterBufferDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEnever evaluated
&& pointsIntoRange(after, d->data(), d->size)
pointsIntoRang...ta(), d->size)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEnever evaluated
)
0-1
976 after = afterBuffer = textCopy(after, alen);
executed 1 time by 1 test: after = afterBuffer = textCopy(after, alen);
Executed by:
  • tst_QString
1
977-
978 if (!beforeBuffer
!beforeBufferDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEnever evaluated
&& pointsIntoRange(before, d->data(), d->size)
pointsIntoRang...ta(), d->size)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEnever evaluated
) {
0-1
979 beforeBuffer = textCopy(before, blen);-
980 matcher = QStringMatcher(beforeBuffer, blen, cs);-
981 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QString
1
982 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QString
1
983-
984 replace_helper(indices, pos, blen, after, alen);-
985-
986 if (__builtin_expect(!!(index == -1), true)
__builtin_expe... == -1), true)Description
TRUEevaluated 1689 times by 35 tests
Evaluated by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
)
1-1689
987 break;
executed 1689 times by 35 tests: break;
Executed by:
  • tst_Collections
  • tst_QAction
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFileInfo
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • ...
1689
988-
989 index += pos*(alen-blen);-
990 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QString
1
991 ::free(afterBuffer);-
992 ::free(beforeBuffer);-
993-
994 return
executed 192107 times by 104 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
*this;
executed 192107 times by 104 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
192107
995}-
996QString& QString::replace(QChar ch, const QString &after, Qt::CaseSensitivity cs)-
997{-
998 if (after.d->size == 0
after.d->size == 0Description
TRUEevaluated 37 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 33 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
)
33-37
999 return
executed 37 times by 1 test: return remove(ch, cs);
Executed by:
  • tst_QString
remove(ch, cs);
executed 37 times by 1 test: return remove(ch, cs);
Executed by:
  • tst_QString
37
1000-
1001 if (after.d->size == 1
after.d->size == 1Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
)
11-22
1002 return
executed 22 times by 1 test: return replace(ch, after.d->data()[0], cs);
Executed by:
  • tst_QString
replace(ch, after.d->data()[0], cs);
executed 22 times by 1 test: return replace(ch, after.d->data()[0], cs);
Executed by:
  • tst_QString
22
1003-
1004 if (d->size == 0
d->size == 0Description
TRUEnever evaluated
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
)
0-11
1005 return
never executed: return *this;
*this;
never executed: return *this;
0
1006-
1007 ushort cc = (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
? ch.unicode() : ch.toCaseFolded().unicode());
4-7
1008-
1009 int index = 0;-
1010 while (1) {-
1011 uint indices[1024];-
1012 uint pos = 0;-
1013 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
) {
7-13
1014 while (pos < 1024
pos < 1024Description
TRUEevaluated 71 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
FALSEnever evaluated
&& index < d->size
index < d->sizeDescription
TRUEevaluated 58 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
) {
0-71
1015 if (d->data()[index] == cc
d->data()[index] == ccDescription
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
FALSEevaluated 42 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
)
16-42
1016 indices[pos++] = index;
executed 16 times by 2 tests: indices[pos++] = index;
Executed by:
  • tst_Collections
  • tst_QString
16
1017 index++;-
1018 }
executed 58 times by 2 tests: end of block
Executed by:
  • tst_Collections
  • tst_QString
58
1019 }
executed 13 times by 2 tests: end of block
Executed by:
  • tst_Collections
  • tst_QString
else {
13
1020 while (pos < 1024
pos < 1024Description
TRUEevaluated 29 times by 1 test
Evaluated by:
  • tst_QString
FALSEnever evaluated
&& index < d->size
index < d->sizeDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
) {
0-29
1021 if (QChar::toCaseFolded(d->data()[index]) == cc
QChar::toCaseF...[index]) == ccDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QString
)
8-14
1022 indices[pos++] = index;
executed 8 times by 1 test: indices[pos++] = index;
Executed by:
  • tst_QString
8
1023 index++;-
1024 }
executed 22 times by 1 test: end of block
Executed by:
  • tst_QString
22
1025 }
executed 7 times by 1 test: end of block
Executed by:
  • tst_QString
7
1026 if (!pos
!posDescription
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
)
9-11
1027 break;
executed 11 times by 2 tests: break;
Executed by:
  • tst_Collections
  • tst_QString
11
1028-
1029 replace_helper(indices, pos, 1, after.constData(), after.d->size);-
1030-
1031 if (__builtin_expect(!!(index == -1), true)
__builtin_expe... == -1), true)Description
TRUEnever evaluated
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
)
0-9
1032 break;
never executed: break;
0
1033-
1034 index += pos*(after.d->size - 1);-
1035 }
executed 9 times by 2 tests: end of block
Executed by:
  • tst_Collections
  • tst_QString
9
1036 return
executed 11 times by 2 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QString
*this;
executed 11 times by 2 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QString
11
1037}-
1038QString& QString::replace(QChar before, QChar after, Qt::CaseSensitivity cs)-
1039{-
1040 ushort a = after.unicode();-
1041 ushort b = before.unicode();-
1042 if (d->size
d->sizeDescription
TRUEevaluated 135666 times by 63 tests
Evaluated by:
  • tst_Collections
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • ...
FALSEevaluated 1248 times by 9 tests
Evaluated by:
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QTextDocument
  • tst_QTreeView
  • tst_languageChange
) {
1248-135666
1043 detach();-
1044 ushort *i = d->data();-
1045 const ushort *e = i + d->size;-
1046 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 135644 times by 63 tests
Evaluated by:
  • tst_Collections
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • ...
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
) {
22-135644
1047 for (; i != e
i != eDescription
TRUEevaluated 1098526 times by 63 tests
Evaluated by:
  • tst_Collections
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • ...
FALSEevaluated 135644 times by 63 tests
Evaluated by:
  • tst_Collections
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • ...
; ++i)
135644-1098526
1048 if (*
*i == bDescription
TRUEevaluated 9864 times by 24 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCollator
  • tst_QComplexText
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QListView
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qmakelib
FALSEevaluated 1088662 times by 63 tests
Evaluated by:
  • tst_Collections
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • ...
i == b
*i == bDescription
TRUEevaluated 9864 times by 24 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCollator
  • tst_QComplexText
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QListView
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qmakelib
FALSEevaluated 1088662 times by 63 tests
Evaluated by:
  • tst_Collections
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • ...
)
9864-1088662
1049 *
executed 9864 times by 24 tests: *i = a;
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCollator
  • tst_QComplexText
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QListView
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qmakelib
i = a;
executed 9864 times by 24 tests: *i = a;
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCollator
  • tst_QComplexText
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QListView
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qmakelib
9864
1050 }
executed 135644 times by 63 tests: end of block
Executed by:
  • tst_Collections
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • ...
else {
135644
1051 b = foldCase(b);-
1052 for (; i != e
i != eDescription
TRUEevaluated 58 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
; ++i)
22-58
1053 if (foldCase(*i) == b
foldCase(*i) == bDescription
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QString
)
28-30
1054 *
executed 30 times by 1 test: *i = a;
Executed by:
  • tst_QString
i = a;
executed 30 times by 1 test: *i = a;
Executed by:
  • tst_QString
30
1055 }
executed 22 times by 1 test: end of block
Executed by:
  • tst_QString
22
1056 }-
1057 return
executed 136914 times by 63 tests: return *this;
Executed by:
  • tst_Collections
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • ...
*this;
executed 136914 times by 63 tests: return *this;
Executed by:
  • tst_Collections
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • ...
136914
1058}-
1059QString &QString::replace(QLatin1String before, QLatin1String after, Qt::CaseSensitivity cs)-
1060{-
1061 int alen = after.size();-
1062 int blen = before.size();-
1063 QVarLengthArray<ushort> a(alen);-
1064 QVarLengthArray<ushort> b(blen);-
1065 qt_from_latin1(a.data(), after.latin1(), alen);-
1066 qt_from_latin1(b.data(), before.latin1(), blen);-
1067 return
executed 1004 times by 42 tests: return replace((const QChar *)b.data(), blen, (const QChar *)a.data(), alen, cs);
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QLineEdit
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
replace((const QChar *)b.data(), blen, (const QChar *)a.data(), alen, cs);
executed 1004 times by 42 tests: return replace((const QChar *)b.data(), blen, (const QChar *)a.data(), alen, cs);
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QLineEdit
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
1004
1068}-
1069QString &QString::replace(QLatin1String before, const QString &after, Qt::CaseSensitivity cs)-
1070{-
1071 int blen = before.size();-
1072 QVarLengthArray<ushort> b(blen);-
1073 qt_from_latin1(b.data(), before.latin1(), blen);-
1074 return
executed 201 times by 3 tests: return replace((const QChar *)b.data(), blen, after.constData(), after.d->size, cs);
Executed by:
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QProgressBar
  • tst_QProgressDialog
replace((const QChar *)b.data(), blen, after.constData(), after.d->size, cs);
executed 201 times by 3 tests: return replace((const QChar *)b.data(), blen, after.constData(), after.d->size, cs);
Executed by:
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QProgressBar
  • tst_QProgressDialog
201
1075}-
1076QString &QString::replace(const QString &before, QLatin1String after, Qt::CaseSensitivity cs)-
1077{-
1078 int alen = after.size();-
1079 QVarLengthArray<ushort> a(alen);-
1080 qt_from_latin1(a.data(), after.latin1(), alen);-
1081 return
never executed: return replace(before.constData(), before.d->size, (const QChar *)a.data(), alen, cs);
replace(before.constData(), before.d->size, (const QChar *)a.data(), alen, cs);
never executed: return replace(before.constData(), before.d->size, (const QChar *)a.data(), alen, cs);
0
1082}-
1083QString &QString::replace(QChar c, QLatin1String after, Qt::CaseSensitivity cs)-
1084{-
1085 int alen = after.size();-
1086 QVarLengthArray<ushort> a(alen);-
1087 qt_from_latin1(a.data(), after.latin1(), alen);-
1088 return
executed 24942 times by 71 tests: return replace(&c, 1, (const QChar *)a.data(), alen, cs);
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • ...
replace(&c, 1, (const QChar *)a.data(), alen, cs);
executed 24942 times by 71 tests: return replace(&c, 1, (const QChar *)a.data(), alen, cs);
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • ...
24942
1089}-
1090bool operator==(const QString &s1, const QString &s2) noexcept-
1091{-
1092 if (s1.d->size != s2.d->size
s1.d->size != s2.d->sizeDescription
TRUEevaluated 358990 times by 302 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
FALSEevaluated 2791400 times by 526 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
)
358990-2791400
1093 return
executed 358990 times by 302 tests: return false;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
false;
executed 358990 times by 302 tests: return false;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
358990
1094-
1095 return
executed 2791400 times by 526 tests: return qMemEquals(s1.d->data(), s2.d->data(), s1.d->size);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
qMemEquals(s1.d->data(), s2.d->data(), s1.d->size);
executed 2791400 times by 526 tests: return qMemEquals(s1.d->data(), s2.d->data(), s1.d->size);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
2791400
1096}-
1097-
1098-
1099-
1100-
1101-
1102-
1103bool QString::operator==(QLatin1String other) const noexcept-
1104{-
1105 if (d->size != other.size()
d->size != other.size()Description
TRUEevaluated 1117851 times by 341 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
FALSEevaluated 195896 times by 444 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
)
195896-1117851
1106 return
executed 1117851 times by 341 tests: return false;
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
false;
executed 1117851 times by 341 tests: return false;
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
1117851
1107-
1108 if (!other.size()
!other.size()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 195892 times by 444 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
)
4-195892
1109 return
executed 4 times by 1 test: return isEmpty();
Executed by:
  • tst_QString
isEmpty();
executed 4 times by 1 test: return isEmpty();
Executed by:
  • tst_QString
4
1110-
1111 return
executed 195892 times by 444 tests: return compare_helper(data(), size(), other, Qt::CaseSensitive) == 0;
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
compare_helper(data(), size(), other, Qt::CaseSensitive) == 0;
executed 195892 times by 444 tests: return compare_helper(data(), size(), other, Qt::CaseSensitive) == 0;
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
195892
1112}-
1113bool operator<(const QString &s1, const QString &s2) noexcept-
1114{-
1115 return
executed 1719191 times by 420 tests: return ucstrcmp(s1.constData(), s1.length(), s2.constData(), s2.length()) < 0;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
ucstrcmp(s1.constData(), s1.length(), s2.constData(), s2.length()) < 0;
executed 1719191 times by 420 tests: return ucstrcmp(s1.constData(), s1.length(), s2.constData(), s2.length()) < 0;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
1719191
1116}-
1117-
1118-
1119-
1120-
1121-
1122-
1123bool QString::operator<(QLatin1String other) const noexcept-
1124{-
1125 const uchar *c = (const uchar *) other.latin1();-
1126 if (!c
!cDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2354 times by 19 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QErrorMessage
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QStaticText
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QWizard
|| *
*c == 0Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2347 times by 19 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QErrorMessage
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QStaticText
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QWizard
c == 0
*c == 0Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2347 times by 19 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QErrorMessage
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QStaticText
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QWizard
)
5-2354
1127 return
executed 12 times by 1 test: return false;
Executed by:
  • tst_QString
false;
executed 12 times by 1 test: return false;
Executed by:
  • tst_QString
12
1128-
1129 return
executed 2347 times by 19 tests: return compare_helper(data(), size(), other, Qt::CaseSensitive) < 0;
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QErrorMessage
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QStaticText
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QWizard
compare_helper(data(), size(), other, Qt::CaseSensitive) < 0;
executed 2347 times by 19 tests: return compare_helper(data(), size(), other, Qt::CaseSensitive) < 0;
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QErrorMessage
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QStaticText
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QWizard
2347
1130}-
1131bool QString::operator>(QLatin1String other) const noexcept-
1132{-
1133 const uchar *c = (const uchar *) other.latin1();-
1134 if (!c
!cDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 17569 times by 27 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QErrorMessage
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QStaticText
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • ...
|| *
*c == '\0'Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 17562 times by 27 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QErrorMessage
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QStaticText
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • ...
c == '\0'
*c == '\0'Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 17562 times by 27 tests
Evaluated by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QErrorMessage
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QStaticText
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • ...
)
5-17569
1135 return
executed 12 times by 1 test: return !isEmpty();
Executed by:
  • tst_QString
!isEmpty();
executed 12 times by 1 test: return !isEmpty();
Executed by:
  • tst_QString
12
1136-
1137 return
executed 17562 times by 27 tests: return compare_helper(data(), size(), other, Qt::CaseSensitive) > 0;
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QErrorMessage
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QStaticText
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • ...
compare_helper(data(), size(), other, Qt::CaseSensitive) > 0;
executed 17562 times by 27 tests: return compare_helper(data(), size(), other, Qt::CaseSensitive) > 0;
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QErrorMessage
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QNetworkCookieJar
  • tst_QPlainTextEdit
  • tst_QStaticText
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • ...
17562
1138}-
1139int QString::indexOf(const QString &str, int from, Qt::CaseSensitivity cs) const-
1140{-
1141 return
executed 899908 times by 83 tests: return qFindString(unicode(), length(), from, str.unicode(), str.length(), cs);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
qFindString(unicode(), length(), from, str.unicode(), str.length(), cs);
executed 899908 times by 83 tests: return qFindString(unicode(), length(), from, str.unicode(), str.length(), cs);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
899908
1142}-
1143int QString::indexOf(QLatin1String str, int from, Qt::CaseSensitivity cs) const-
1144{-
1145 return
executed 10519 times by 181 tests: return qt_find_latin1_string(unicode(), size(), str, from, cs);
Executed by:
  • tst_Gestures
  • 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
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • ...
qt_find_latin1_string(unicode(), size(), str, from, cs);
executed 10519 times by 181 tests: return qt_find_latin1_string(unicode(), size(), str, from, cs);
Executed by:
  • tst_Gestures
  • 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
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • ...
10519
1146}-
1147-
1148int qFindString(-
1149 const QChar *haystack0, int haystackLen, int from,-
1150 const QChar *needle0, int needleLen, Qt::CaseSensitivity cs)-
1151{-
1152 const int l = haystackLen;-
1153 const int sl = needleLen;-
1154 if (from < 0
from < 0Description
TRUEnever evaluated
FALSEevaluated 1477224 times by 293 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • 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_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
)
0-1477224
1155 from += l;
never executed: from += l;
0
1156 if (uint(sl + from) > (uint)l
uint(sl + from) > (uint)lDescription
TRUEevaluated 47418 times by 88 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBrush
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 1429806 times by 285 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • 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
  • ...
)
47418-1429806
1157 return
executed 47418 times by 88 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBrush
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
-1;
executed 47418 times by 88 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBrush
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
47418
1158 if (!sl
!slDescription
TRUEevaluated 392 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QStateMachine
  • tst_QString
  • tst_QStringRef
FALSEevaluated 1429414 times by 285 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • 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
  • ...
)
392-1429414
1159 return
executed 392 times by 12 tests: return from;
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QStateMachine
  • tst_QString
  • tst_QStringRef
from;
executed 392 times by 12 tests: return from;
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QRegExp
  • tst_QSortFilterProxyModel
  • tst_QStateMachine
  • tst_QString
  • tst_QStringRef
392
1160 if (!l
!lDescription
TRUEnever evaluated
FALSEevaluated 1429414 times by 285 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • 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
  • ...
)
0-1429414
1161 return
never executed: return -1;
-1;
never executed: return -1;
0
1162-
1163 if (sl == 1
sl == 1Description
TRUEevaluated 523575 times by 271 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEevaluated 905839 times by 210 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
)
523575-905839
1164 return
executed 523575 times by 271 tests: return findChar(haystack0, haystackLen, needle0[0], from, cs);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
findChar(haystack0, haystackLen, needle0[0], from, cs);
executed 523575 times by 271 tests: return findChar(haystack0, haystackLen, needle0[0], from, cs);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
523575
1165-
1166-
1167-
1168-
1169-
1170-
1171 if (l > 500
l > 500Description
TRUEevaluated 195 times by 14 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QMessageBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QXmlSimpleReader
  • tst_QXmlStream
FALSEevaluated 905644 times by 209 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
&& sl > 5
sl > 5Description
TRUEevaluated 176 times by 12 tests
Evaluated by:
  • tst_QGraphicsProxyWidget
  • tst_QMessageBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QXmlSimpleReader
  • tst_QXmlStream
FALSEevaluated 19 times by 2 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QImageReader
)
19-905644
1172 return
executed 176 times by 12 tests: return qFindStringBoyerMoore(haystack0, haystackLen, from, needle0, needleLen, cs);
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QMessageBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QXmlSimpleReader
  • tst_QXmlStream
qFindStringBoyerMoore(haystack0, haystackLen, from,
executed 176 times by 12 tests: return qFindStringBoyerMoore(haystack0, haystackLen, from, needle0, needleLen, cs);
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QMessageBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QXmlSimpleReader
  • tst_QXmlStream
176
1173 needle0, needleLen, cs);
executed 176 times by 12 tests: return qFindStringBoyerMoore(haystack0, haystackLen, from, needle0, needleLen, cs);
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QMessageBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QXmlSimpleReader
  • tst_QXmlStream
176
1174-
1175-
1176-
1177-
1178-
1179-
1180-
1181 const ushort *needle = (const ushort *)needle0;-
1182 const ushort *haystack = (const ushort *)haystack0 + from;-
1183 const ushort *end = (const ushort *)haystack0 + (l-sl);-
1184 const uint sl_minus_1 = sl - 1;-
1185 uint hashNeedle = 0, hashHaystack = 0;-
1186 int idx;-
1187-
1188 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 904345 times by 206 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 1318 times by 18 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
) {
1318-904345
1189 for (idx = 0; idx < sl
idx < slDescription
TRUEevaluated 4502412 times by 206 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 904345 times by 206 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
; ++idx) {
904345-4502412
1190 hashNeedle = ((hashNeedle<<1) + needle[idx]);-
1191 hashHaystack = ((hashHaystack<<1) + haystack[idx]);-
1192 }
executed 4502412 times by 206 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
4502412
1193 hashHaystack -= haystack[sl_minus_1];-
1194-
1195 while (haystack <= end
haystack <= endDescription
TRUEevaluated 5114794 times by 206 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 612933 times by 193 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
) {
612933-5114794
1196 hashHaystack += haystack[sl_minus_1];-
1197 if (hashHaystack == hashNeedle
hashHaystack == hashNeedleDescription
TRUEevaluated 291572 times by 69 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QGlobal
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QItemDelegate
  • ...
FALSEevaluated 4823222 times by 205 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
291572-4823222
1198 && ucstrncmp((const QChar *)needle, (const QChar *)haystack, sl) == 0
ucstrncmp((con...tack, sl) == 0Description
TRUEevaluated 291412 times by 67 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QAction
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QGlobal
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QItemDelegate
  • tst_QKeySequence
  • ...
FALSEevaluated 160 times by 18 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontMetrics
  • tst_QImage
  • tst_QImageReader
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QPluginLoader
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QTreeView
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlStream
  • tst_Selftests
)
160-291412
1199 return
executed 291412 times by 67 tests: return haystack - (const ushort *)haystack0;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QAction
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QGlobal
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QItemDelegate
  • tst_QKeySequence
  • ...
haystack - (const ushort *)haystack0;
executed 291412 times by 67 tests: return haystack - (const ushort *)haystack0;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QAction
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QGlobal
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QItemDelegate
  • tst_QKeySequence
  • ...
291412
1200-
1201 if (sl_minus_1 < sizeof(uint) * 8
sl_minus_1 < sizeof(uint) * 8Description
TRUEevaluated 4821888 times by 205 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 1494 times by 6 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
) hashHaystack -= uint(*haystack) << sl_minus_1;
executed 4821888 times by 205 tests: hashHaystack -= uint(*haystack) << sl_minus_1;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
hashHaystack <<= 1;
1494-4821888
1202 ++haystack;-
1203 }
executed 4823382 times by 205 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
4823382
1204 }
executed 612933 times by 193 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
else {
612933
1205 const ushort *haystack_start = (const ushort *)haystack0;-
1206 for (idx = 0; idx < sl
idx < slDescription
TRUEevaluated 4376 times by 18 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
FALSEevaluated 1318 times by 18 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
; ++idx) {
1318-4376
1207 hashNeedle = (hashNeedle<<1) + foldCase(needle + idx, needle);-
1208 hashHaystack = (hashHaystack<<1) + foldCase(haystack + idx, haystack_start);-
1209 }
executed 4376 times by 18 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
4376
1210 hashHaystack -= foldCase(haystack + sl_minus_1, haystack_start);-
1211-
1212 while (haystack <= end
haystack <= endDescription
TRUEevaluated 3265 times by 18 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
FALSEevaluated 219 times by 17 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
) {
219-3265
1213 hashHaystack += foldCase(haystack + sl_minus_1, haystack_start);-
1214 if (hashHaystack == hashNeedle
hashHaystack == hashNeedleDescription
TRUEevaluated 1102 times by 13 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTime
  • tst_qlogging - unknown status
FALSEevaluated 2163 times by 17 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
&& ucstrnicmp(needle, haystack, sl) == 0
ucstrnicmp(nee...tack, sl) == 0Description
TRUEevaluated 1099 times by 13 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTime
  • tst_qlogging - unknown status
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
)
3-2163
1215 return
executed 1099 times by 13 tests: return haystack - (const ushort *)haystack0;
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTime
  • tst_qlogging - unknown status
haystack - (const ushort *)haystack0;
executed 1099 times by 13 tests: return haystack - (const ushort *)haystack0;
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTime
  • tst_qlogging - unknown status
1099
1216-
1217 if (sl_minus_1 < sizeof(uint) * 8
sl_minus_1 < sizeof(uint) * 8Description
TRUEevaluated 1981 times by 17 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
FALSEevaluated 185 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
) hashHaystack -= uint(foldCase(haystack, haystack_start)) << sl_minus_1;
executed 1981 times by 17 tests: hashHaystack -= uint(foldCase(haystack, haystack_start)) << sl_minus_1;
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
hashHaystack <<= 1;
185-1981
1218 ++haystack;-
1219 }
executed 2166 times by 17 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
2166
1220 }
executed 219 times by 17 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
219
1221 return
executed 613152 times by 198 tests: return -1;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
-1;
executed 613152 times by 198 tests: return -1;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
613152
1222}-
1223int QString::indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const-
1224{-
1225 return
executed 907496 times by 285 tests: return findChar(unicode(), length(), ch, from, cs);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • ...
findChar(unicode(), length(), ch, from, cs);
executed 907496 times by 285 tests: return findChar(unicode(), length(), ch, from, cs);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • ...
907496
1226}-
1227int QString::indexOf(const QStringRef &str, int from, Qt::CaseSensitivity cs) const-
1228{-
1229 return
executed 392 times by 2 tests: return qFindString(unicode(), length(), from, str.unicode(), str.length(), cs);
Executed by:
  • tst_QString
  • tst_QStringRef
qFindString(unicode(), length(), from, str.unicode(), str.length(), cs);
executed 392 times by 2 tests: return qFindString(unicode(), length(), from, str.unicode(), str.length(), cs);
Executed by:
  • tst_QString
  • tst_QStringRef
392
1230}-
1231-
1232static int lastIndexOfHelper(const ushort *haystack, int from, const ushort *needle, int sl, Qt::CaseSensitivity cs)-
1233{-
1234-
1235-
1236-
1237-
1238 const ushort *end = haystack;-
1239 haystack += from;-
1240 const uint sl_minus_1 = sl - 1;-
1241 const ushort *n = needle+sl_minus_1;-
1242 const ushort *h = haystack+sl_minus_1;-
1243 uint hashNeedle = 0, hashHaystack = 0;-
1244 int idx;-
1245-
1246 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 85 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
FALSEevaluated 103 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
) {
85-103
1247 for (idx = 0; idx < sl
idx < slDescription
TRUEevaluated 1125 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
FALSEevaluated 85 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
; ++idx) {
85-1125
1248 hashNeedle = ((hashNeedle<<1) + *(n-idx));-
1249 hashHaystack = ((hashHaystack<<1) + *(h-idx));-
1250 }
executed 1125 times by 8 tests: end of block
Executed by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
1125
1251 hashHaystack -= *haystack;-
1252-
1253 while (haystack >= end
haystack >= endDescription
TRUEevaluated 668 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
FALSEevaluated 18 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
) {
18-668
1254 hashHaystack += *haystack;-
1255 if (hashHaystack == hashNeedle
hashHaystack == hashNeedleDescription
TRUEevaluated 71 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
FALSEevaluated 597 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
71-597
1256 && ucstrncmp((const QChar *)needle, (const QChar *)haystack, sl) == 0
ucstrncmp((con...tack, sl) == 0Description
TRUEevaluated 67 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
)
4-67
1257 return
executed 67 times by 8 tests: return haystack - end;
Executed by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
haystack - end;
executed 67 times by 8 tests: return haystack - end;
Executed by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
67
1258 --haystack;-
1259 if (sl_minus_1 < sizeof(uint) * 8
sl_minus_1 < sizeof(uint) * 8Description
TRUEevaluated 465 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
FALSEevaluated 136 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
) hashHaystack -= uint(haystack[sl]) << sl_minus_1;
executed 465 times by 5 tests: hashHaystack -= uint(haystack[sl]) << sl_minus_1;
Executed by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
hashHaystack <<= 1;
136-465
1260 }
executed 601 times by 5 tests: end of block
Executed by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
601
1261 }
executed 18 times by 4 tests: end of block
Executed by:
  • tst_Collections
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
else {
18
1262 for (idx = 0; idx < sl
idx < slDescription
TRUEevaluated 1106 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
FALSEevaluated 103 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
; ++idx) {
103-1106
1263 hashNeedle = ((hashNeedle<<1) + foldCase(n-idx, needle));-
1264 hashHaystack = ((hashHaystack<<1) + foldCase(h-idx, end));-
1265 }
executed 1106 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
1106
1266 hashHaystack -= foldCase(haystack, end);-
1267-
1268 while (haystack >= end
haystack >= endDescription
TRUEevaluated 675 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
FALSEevaluated 38 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
) {
38-675
1269 hashHaystack += foldCase(haystack, end);-
1270 if (hashHaystack == hashNeedle
hashHaystack == hashNeedleDescription
TRUEevaluated 69 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
FALSEevaluated 606 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
&& ucstrnicmp(needle, haystack, sl) == 0
ucstrnicmp(nee...tack, sl) == 0Description
TRUEevaluated 65 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
)
4-606
1271 return
executed 65 times by 3 tests: return haystack - end;
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
haystack - end;
executed 65 times by 3 tests: return haystack - end;
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
65
1272 --haystack;-
1273 if (sl_minus_1 < sizeof(uint) * 8
sl_minus_1 < sizeof(uint) * 8Description
TRUEevaluated 474 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
FALSEevaluated 136 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
) hashHaystack -= uint(foldCase(haystack + sl, end)) << sl_minus_1;
executed 474 times by 3 tests: hashHaystack -= uint(foldCase(haystack + sl, end)) << sl_minus_1;
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
hashHaystack <<= 1;
136-474
1274 }
executed 610 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
610
1275 }
executed 38 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
38
1276 return
executed 56 times by 4 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
-1;
executed 56 times by 4 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
56
1277}-
1278int QString::lastIndexOf(const QString &str, int from, Qt::CaseSensitivity cs) const-
1279{-
1280 const int sl = str.d->size;-
1281 if (sl == 1
sl == 1Description
TRUEevaluated 119 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 95 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
)
95-119
1282 return
executed 119 times by 1 test: return lastIndexOf(QChar(str.d->data()[0]), from, cs);
Executed by:
  • tst_QString
lastIndexOf(QChar(str.d->data()[0]), from, cs);
executed 119 times by 1 test: return lastIndexOf(QChar(str.d->data()[0]), from, cs);
Executed by:
  • tst_QString
119
1283-
1284 const int l = d->size;-
1285 if (from < 0
from < 0Description
TRUEevaluated 64 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
FALSEevaluated 31 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
)
31-64
1286 from += l;
executed 64 times by 5 tests: from += l;
Executed by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
64
1287 int delta = l-sl;-
1288 if (from == l
from == lDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 89 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
&& sl == 0
sl == 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QString
)
3-89
1289 return
executed 3 times by 1 test: return from;
Executed by:
  • tst_QString
from;
executed 3 times by 1 test: return from;
Executed by:
  • tst_QString
3
1290 if (uint(from) >= uint(l)
uint(from) >= uint(l)Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 76 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
|| delta < 0
delta < 0Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 67 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
)
9-76
1291 return
executed 25 times by 1 test: return -1;
Executed by:
  • tst_QString
-1;
executed 25 times by 1 test: return -1;
Executed by:
  • tst_QString
25
1292 if (from > delta
from > deltaDescription
TRUEevaluated 48 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
FALSEevaluated 19 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
)
19-48
1293 from = delta;
executed 48 times by 5 tests: from = delta;
Executed by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
48
1294-
1295 return
executed 67 times by 5 tests: return lastIndexOfHelper(d->data(), from, str.d->data(), str.d->size, cs);
Executed by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
lastIndexOfHelper(d->data(), from, str.d->data(), str.d->size, cs);
executed 67 times by 5 tests: return lastIndexOfHelper(d->data(), from, str.d->data(), str.d->size, cs);
Executed by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
67
1296}-
1297int QString::lastIndexOf(QLatin1String str, int from, Qt::CaseSensitivity cs) const-
1298{-
1299 const int sl = str.size();-
1300 if (sl == 1
sl == 1Description
TRUEnever evaluated
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QMdiSubWindow
)
0-13
1301 return
never executed: return lastIndexOf(QLatin1Char(str.latin1()[0]), from, cs);
lastIndexOf(QLatin1Char(str.latin1()[0]), from, cs);
never executed: return lastIndexOf(QLatin1Char(str.latin1()[0]), from, cs);
0
1302-
1303 const int l = d->size;-
1304 if (from < 0
from < 0Description
TRUEnever evaluated
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QMdiSubWindow
)
0-13
1305 from += l;
never executed: from += l;
0
1306 int delta = l-sl;-
1307 if (from == l
from == lDescription
TRUEnever evaluated
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QMdiSubWindow
&& sl == 0
sl == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0-13
1308 return
never executed: return from;
from;
never executed: return from;
0
1309 if (uint(from) >= uint(l)
uint(from) >= uint(l)Description
TRUEnever evaluated
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QMdiSubWindow
|| delta < 0
delta < 0Description
TRUEnever evaluated
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QMdiSubWindow
)
0-13
1310 return
never executed: return -1;
-1;
never executed: return -1;
0
1311 if (from > delta
from > deltaDescription
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QMdiSubWindow
FALSEnever evaluated
)
0-13
1312 from = delta;
executed 13 times by 2 tests: from = delta;
Executed by:
  • tst_QMdiArea
  • tst_QMdiSubWindow
13
1313-
1314 QVarLengthArray<ushort> s(sl);-
1315 qt_from_latin1(s.data(), str.latin1(), sl);-
1316-
1317 return
executed 13 times by 2 tests: return lastIndexOfHelper(d->data(), from, s.data(), sl, cs);
Executed by:
  • tst_QMdiArea
  • tst_QMdiSubWindow
lastIndexOfHelper(d->data(), from, s.data(), sl, cs);
executed 13 times by 2 tests: return lastIndexOfHelper(d->data(), from, s.data(), sl, cs);
Executed by:
  • tst_QMdiArea
  • tst_QMdiSubWindow
13
1318}-
1319-
1320-
1321-
1322-
1323-
1324-
1325-
1326int QString::lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const-
1327{-
1328 return
executed 263733 times by 303 tests: return qt_last_index_of(unicode(), size(), ch, from, cs);
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
qt_last_index_of(unicode(), size(), ch, from, cs);
executed 263733 times by 303 tests: return qt_last_index_of(unicode(), size(), ch, from, cs);
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
263733
1329}-
1330int QString::lastIndexOf(const QStringRef &str, int from, Qt::CaseSensitivity cs) const-
1331{-
1332 const int sl = str.size();-
1333 if (sl == 1
sl == 1Description
TRUEevaluated 86 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 62 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
)
62-86
1334 return
executed 86 times by 2 tests: return lastIndexOf(str.at(0), from, cs);
Executed by:
  • tst_QString
  • tst_QStringRef
lastIndexOf(str.at(0), from, cs);
executed 86 times by 2 tests: return lastIndexOf(str.at(0), from, cs);
Executed by:
  • tst_QString
  • tst_QStringRef
86
1335-
1336 const int l = d->size;-
1337 if (from < 0
from < 0Description
TRUEevaluated 48 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
)
14-48
1338 from += l;
executed 48 times by 2 tests: from += l;
Executed by:
  • tst_QString
  • tst_QStringRef
48
1339 int delta = l - sl;-
1340 if (from == l
from == lDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 58 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
&& sl == 0
sl == 0Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
)
2-58
1341 return
executed 2 times by 2 tests: return from;
Executed by:
  • tst_QString
  • tst_QStringRef
from;
executed 2 times by 2 tests: return from;
Executed by:
  • tst_QString
  • tst_QStringRef
2
1342 if (uint(from) >= uint(l)
uint(from) >= uint(l)Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 48 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
|| delta < 0
delta < 0Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 40 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
)
8-48
1343 return
executed 20 times by 2 tests: return -1;
Executed by:
  • tst_QString
  • tst_QStringRef
-1;
executed 20 times by 2 tests: return -1;
Executed by:
  • tst_QString
  • tst_QStringRef
20
1344 if (from > delta
from > deltaDescription
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
)
10-30
1345 from = delta;
executed 30 times by 2 tests: from = delta;
Executed by:
  • tst_QString
  • tst_QStringRef
30
1346-
1347 return
executed 40 times by 2 tests: return lastIndexOfHelper(d->data(), from, reinterpret_cast<const ushort*>(str.unicode()), str.size(), cs);
Executed by:
  • tst_QString
  • tst_QStringRef
lastIndexOfHelper(d->data(), from, reinterpret_cast<const ushort*>(str.unicode()),
executed 40 times by 2 tests: return lastIndexOfHelper(d->data(), from, reinterpret_cast<const ushort*>(str.unicode()), str.size(), cs);
Executed by:
  • tst_QString
  • tst_QStringRef
40
1348 str.size(), cs);
executed 40 times by 2 tests: return lastIndexOfHelper(d->data(), from, reinterpret_cast<const ushort*>(str.unicode()), str.size(), cs);
Executed by:
  • tst_QString
  • tst_QStringRef
40
1349}-
1350-
1351-
1352-
1353struct QStringCapture-
1354{-
1355 int pos;-
1356 int len;-
1357 int no;-
1358};-
1359template<> class QTypeInfo<QStringCapture > { public: enum { isComplex = (((Q_PRIMITIVE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_PRIMITIVE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_PRIMITIVE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QStringCapture)>sizeof(void*)), isPointer = false, isIntegral = QtPrivate::is_integral< QStringCapture >::value, isDummy = (((Q_PRIMITIVE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QStringCapture) }; static inline const char *name() { return "QStringCapture"; } };-
1360QString& QString::replace(const QRegExp &rx, const QString &after)-
1361{-
1362 QRegExp rx2(rx);-
1363-
1364 if (isEmpty()
isEmpty()Description
TRUEevaluated 51979 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QXmlSimpleReader
FALSEevaluated 90688 times by 17 tests
Evaluated by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
&& rx2.indexIn(*this) == -1
rx2.indexIn(*this) == -1Description
TRUEevaluated 51961 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QXmlSimpleReader
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QString
)
18-90688
1365 return
executed 51961 times by 2 tests: return *this;
Executed by:
  • tst_QString
  • tst_QXmlSimpleReader
*this;
executed 51961 times by 2 tests: return *this;
Executed by:
  • tst_QString
  • tst_QXmlSimpleReader
51961
1366-
1367 reallocData(uint(d->size) + 1u);-
1368-
1369 int index = 0;-
1370 int numCaptures = rx2.captureCount();-
1371 int al = after.length();-
1372 QRegExp::CaretMode caretMode = QRegExp::CaretAtZero;-
1373-
1374 if (numCaptures > 0
numCaptures > 0Description
TRUEevaluated 27 times by 4 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 90679 times by 16 tests
Evaluated by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QPlainTextEdit
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
) {
27-90679
1375 const QChar *uc = after.unicode();-
1376 int numBackRefs = 0;-
1377-
1378 for (int i = 0; i < al - 1
i < al - 1Description
TRUEevaluated 173 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 27 times by 4 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
; i++) {
27-173
1379 if (uc[i] == QLatin1Char('\\')
uc[i] == QLatin1Char('\\')Description
TRUEevaluated 76 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 97 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
) {
76-97
1380 int no = uc[i + 1].digitValue();-
1381 if (no > 0
no > 0Description
TRUEevaluated 68 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
&& no <= numCaptures
no <= numCapturesDescription
TRUEevaluated 66 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
)
2-68
1382 numBackRefs++;
executed 66 times by 3 tests: numBackRefs++;
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
66
1383 }
executed 76 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
76
1384 }
executed 173 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
173
1385-
1386-
1387-
1388-
1389 if (numBackRefs > 0
numBackRefs > 0Description
TRUEevaluated 21 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
) {
6-21
1390 QVarLengthArray<QStringCapture, 16> captures(numBackRefs);-
1391 int j = 0;-
1392-
1393 for (int i = 0; i < al - 1
i < al - 1Description
TRUEevaluated 164 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 21 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
; i++) {
21-164
1394 if (uc[i] == QLatin1Char('\\')
uc[i] == QLatin1Char('\\')Description
TRUEevaluated 72 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 92 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
) {
72-92
1395 int no = uc[i + 1].digitValue();-
1396 if (no > 0
no > 0Description
TRUEevaluated 67 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
&& no <= numCaptures
no <= numCapturesDescription
TRUEevaluated 66 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
) {
1-67
1397 QStringCapture capture;-
1398 capture.pos = i;-
1399 capture.len = 2;-
1400-
1401 if (i < al - 2
i < al - 2Description
TRUEevaluated 56 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 10 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
) {
10-56
1402 int secondDigit = uc[i + 2].digitValue();-
1403 if (secondDigit != -1
secondDigit != -1Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 28 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
&& ((
((no * 10) + s...<= numCapturesDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
no * 10) + secondDigit) <= numCaptures
((no * 10) + s...<= numCapturesDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
) {
6-28
1404 no = (no * 10) + secondDigit;-
1405 ++capture.len;-
1406 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QString
6
1407 }
executed 56 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
56
1408-
1409 capture.no = no;-
1410 captures[j++] = capture;-
1411 }
executed 66 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
66
1412 }
executed 72 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
72
1413 }
executed 164 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
164
1414-
1415 while (index <= length()
index <= length()Description
TRUEevaluated 46 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEnever evaluated
) {
0-46
1416 index = rx2.indexIn(*this, index, caretMode);-
1417 if (index == -1
index == -1Description
TRUEevaluated 21 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 25 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
)
21-25
1418 break;
executed 21 times by 3 tests: break;
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
21
1419-
1420 QString after2(after);-
1421 for (j = numBackRefs - 1; j >= 0
j >= 0Description
TRUEevaluated 64 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 25 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
; j--) {
25-64
1422 const QStringCapture &capture = captures[j];-
1423 after2.replace(capture.pos, capture.len, rx2.cap(capture.no));-
1424 }
executed 64 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
64
1425-
1426 replace(index, rx2.matchedLength(), after2);-
1427 index += after2.length();-
1428-
1429-
1430 if (rx2.matchedLength() == 0
rx2.matchedLength() == 0Description
TRUEnever evaluated
FALSEevaluated 25 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
)
0-25
1431 ++
never executed: ++index;
index;
never executed: ++index;
0
1432-
1433 caretMode = QRegExp::CaretWontMatch;-
1434 }
executed 25 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
25
1435 return
executed 21 times by 3 tests: return *this;
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
*this;
executed 21 times by 3 tests: return *this;
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
21
1436 }-
1437 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QString
6
1438-
1439-
1440-
1441-
1442-
1443 while (index != -1
index != -1Description
TRUEevaluated 90685 times by 17 tests
Evaluated by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
FALSEevaluated 3645 times by 12 tests
Evaluated by:
  • tst_Lancelot
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_uic
) {
3645-90685
1444 struct {-
1445 int pos;-
1446 int length;-
1447 } replacements[2048];-
1448-
1449 int pos = 0;-
1450 int adjust = 0;-
1451 while (pos < 2047
pos < 2047Description
TRUEevaluated 99686 times by 17 tests
Evaluated by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
FALSEnever evaluated
) {
0-99686
1452 index = rx2.indexIn(*this, index, caretMode);-
1453 if (index == -1
index == -1Description
TRUEevaluated 90685 times by 17 tests
Evaluated by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
FALSEevaluated 9001 times by 12 tests
Evaluated by:
  • tst_Lancelot
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_uic
)
9001-90685
1454 break;
executed 90685 times by 17 tests: break;
Executed by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
90685
1455 int ml = rx2.matchedLength();-
1456 replacements[pos].pos = index;-
1457 replacements[pos++].length = ml;-
1458 index += ml;-
1459 adjust += al - ml;-
1460-
1461 if (!ml
!mlDescription
TRUEevaluated 46 times by 3 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
FALSEevaluated 8955 times by 12 tests
Evaluated by:
  • tst_Lancelot
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_uic
)
46-8955
1462 index++;
executed 46 times by 3 tests: index++;
Executed by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
46
1463 }
executed 9001 times by 12 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_uic
9001
1464 if (!pos
!posDescription
TRUEevaluated 87040 times by 13 tests
Evaluated by:
  • tst_QFontComboBox
  • tst_QPlainTextEdit
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsystemsemaphore - unknown status
FALSEevaluated 3645 times by 12 tests
Evaluated by:
  • tst_Lancelot
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_uic
)
3645-87040
1465 break;
executed 87040 times by 13 tests: break;
Executed by:
  • tst_QFontComboBox
  • tst_QPlainTextEdit
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsystemsemaphore - unknown status
87040
1466 replacements[pos].pos = d->size;-
1467 int newlen = d->size + adjust;-
1468-
1469-
1470-
1471 if (index != -1
index != -1Description
TRUEnever evaluated
FALSEevaluated 3645 times by 12 tests
Evaluated by:
  • tst_Lancelot
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_uic
)
0-3645
1472 index += adjust;
never executed: index += adjust;
0
1473 QString newstring;-
1474 newstring.reserve(newlen + 1);-
1475 QChar *newuc = newstring.data();-
1476 QChar *uc = newuc;-
1477 int copystart = 0;-
1478 int i = 0;-
1479 while (i < pos
i < posDescription
TRUEevaluated 9001 times by 12 tests
Evaluated by:
  • tst_Lancelot
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_uic
FALSEevaluated 3645 times by 12 tests
Evaluated by:
  • tst_Lancelot
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_uic
) {
3645-9001
1480 int copyend = replacements[i].pos;-
1481 int size = copyend - copystart;-
1482 memcpy(uc, d->data() + copystart, size * sizeof(QChar));-
1483 uc += size;-
1484 memcpy(uc, after.d->data(), al * sizeof(QChar));-
1485 uc += al;-
1486 copystart = copyend + replacements[i].length;-
1487 i++;-
1488 }
executed 9001 times by 12 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_uic
9001
1489 memcpy(uc, d->data() + copystart, (d->size - copystart) * sizeof(QChar));-
1490 newstring.resize(newlen);-
1491 *this = newstring;-
1492 caretMode = QRegExp::CaretWontMatch;-
1493 }
executed 3645 times by 12 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_uic
3645
1494 return
executed 90685 times by 17 tests: return *this;
Executed by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
*this;
executed 90685 times by 17 tests: return *this;
Executed by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QPlainTextEdit
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
90685
1495}-
1496QString &QString::replace(const QRegularExpression &re, const QString &after)-
1497{-
1498 if (!re.isValid()
!re.isValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 7185 times by 4 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
  • tst_qdbusxml2cpp
) {
2-7185
1499 QMessageLogger(__FILE__, 3565, __PRETTY_FUNCTION__).warning("QString::replace: invalid QRegularExpression object");-
1500 return
executed 2 times by 1 test: return *this;
Executed by:
  • tst_QString
*this;
executed 2 times by 1 test: return *this;
Executed by:
  • tst_QString
2
1501 }-
1502-
1503 const QString copy(*this);-
1504 QRegularExpressionMatchIterator iterator = re.globalMatch(copy);-
1505 if (!iterator.hasNext()
!iterator.hasNext()Description
TRUEevaluated 5684 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
FALSEevaluated 1501 times by 4 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
  • tst_qdbusxml2cpp
)
1501-5684
1506 return
executed 5684 times by 3 tests: return *this;
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
*this;
executed 5684 times by 3 tests: return *this;
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
5684
1507-
1508 reallocData(uint(d->size) + 1u);-
1509-
1510 int numCaptures = re.captureCount();-
1511-
1512-
1513-
1514 QVector<QStringCapture> backReferences;-
1515 const int al = after.length();-
1516 const QChar *ac = after.unicode();-
1517-
1518 for (int i = 0; i < al - 1
i < al - 1Description
TRUEevaluated 30058 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
FALSEevaluated 1501 times by 4 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
  • tst_qdbusxml2cpp
; i++) {
1501-30058
1519 if (ac[i] == QLatin1Char('\\')
ac[i] == QLatin1Char('\\')Description
TRUEevaluated 55 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
FALSEevaluated 30003 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
) {
55-30003
1520 int no = ac[i + 1].digitValue();-
1521 if (no > 0
no > 0Description
TRUEevaluated 51 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
&& no <= numCaptures
no <= numCapturesDescription
TRUEevaluated 48 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QString
) {
3-51
1522 QStringCapture backReference;-
1523 backReference.pos = i;-
1524 backReference.len = 2;-
1525-
1526 if (i < al - 2
i < al - 2Description
TRUEevaluated 43 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
) {
5-43
1527 int secondDigit = ac[i + 2].digitValue();-
1528 if (secondDigit != -1
secondDigit != -1Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
&& ((
((no * 10) + s...<= numCapturesDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
no * 10) + secondDigit) <= numCaptures
((no * 10) + s...<= numCapturesDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
) {
6-28
1529 no = (no * 10) + secondDigit;-
1530 ++backReference.len;-
1531 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QString
6
1532 }
executed 43 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
43
1533-
1534 backReference.no = no;-
1535 backReferences.append(backReference);-
1536 }
executed 48 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
48
1537 }
executed 55 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
55
1538 }
executed 30058 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
30058
1539-
1540-
1541-
1542-
1543-
1544 int newLength = 0;-
1545 int lastEnd = 0;-
1546 QVector<QStringRef> chunks;-
1547 while (iterator.hasNext()
iterator.hasNext()Description
TRUEevaluated 1518 times by 4 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
  • tst_qdbusxml2cpp
FALSEevaluated 1501 times by 4 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
  • tst_qdbusxml2cpp
) {
1501-1518
1548 QRegularExpressionMatch match = iterator.next();-
1549 int len;-
1550-
1551 len = match.capturedStart() - lastEnd;-
1552 if (len > 0
len > 0Description
TRUEevaluated 1364 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_Selftests
FALSEevaluated 154 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
) {
154-1364
1553 chunks << copy.midRef(lastEnd, len);-
1554 newLength += len;-
1555 }
executed 1364 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_Selftests
1364
1556-
1557 lastEnd = 0;-
1558-
1559 for (const QStringCapture &backReference : qAsConst(backReferences)) {-
1560-
1561 len = backReference.pos - lastEnd;-
1562 if (len > 0
len > 0Description
TRUEevaluated 28 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
FALSEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
) {
28-30
1563 chunks << after.midRef(lastEnd, len);-
1564 newLength += len;-
1565 }
executed 28 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
28
1566-
1567-
1568 len = match.capturedLength(backReference.no);-
1569 if (len > 0
len > 0Description
TRUEevaluated 57 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
) {
1-57
1570 chunks << copy.midRef(match.capturedStart(backReference.no), len);-
1571 newLength += len;-
1572 }
executed 57 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
57
1573-
1574 lastEnd = backReference.pos + backReference.len;-
1575 }
executed 58 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
58
1576-
1577-
1578 len = after.length() - lastEnd;-
1579 if (len > 0
len > 0Description
TRUEevaluated 1387 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
FALSEevaluated 131 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
) {
131-1387
1580 chunks << after.midRef(lastEnd, len);-
1581 newLength += len;-
1582 }
executed 1387 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
1387
1583-
1584 lastEnd = match.capturedEnd();-
1585 }
executed 1518 times by 4 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
  • tst_qdbusxml2cpp
1518
1586-
1587-
1588 if (copy.length() > lastEnd
copy.length() > lastEndDescription
TRUEevaluated 1487 times by 4 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
  • tst_qdbusxml2cpp
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
) {
14-1487
1589 chunks << copy.midRef(lastEnd);-
1590 newLength += copy.length() - lastEnd;-
1591 }
executed 1487 times by 4 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
  • tst_qdbusxml2cpp
1487
1592-
1593-
1594 resize(newLength);-
1595 int i = 0;-
1596 QChar *uc = data();-
1597 for (const QStringRef &chunk : qAsConst(chunks)) {-
1598 int len = chunk.length();-
1599 memcpy(uc + i, chunk.unicode(), len * sizeof(QChar));-
1600 i += len;-
1601 }
executed 4323 times by 4 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
  • tst_qdbusxml2cpp
4323
1602-
1603 return
executed 1501 times by 4 tests: return *this;
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
  • tst_qdbusxml2cpp
*this;
executed 1501 times by 4 tests: return *this;
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_Selftests
  • tst_qdbusxml2cpp
1501
1604}-
1605int QString::count(const QString &str, Qt::CaseSensitivity cs) const-
1606{-
1607 return
executed 12 times by 4 tests: return qt_string_count(unicode(), size(), str.unicode(), str.size(), cs);
Executed by:
  • tst_Collections
  • tst_QProcess
  • tst_QSqlDatabase
  • tst_QString
qt_string_count(unicode(), size(), str.unicode(), str.size(), cs);
executed 12 times by 4 tests: return qt_string_count(unicode(), size(), str.unicode(), str.size(), cs);
Executed by:
  • tst_Collections
  • tst_QProcess
  • tst_QSqlDatabase
  • tst_QString
12
1608}-
1609int QString::count(QChar ch, Qt::CaseSensitivity cs) const-
1610{-
1611 return
executed 54672 times by 29 tests: return qt_string_count(unicode(), size(), ch, cs);
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QTableView
  • ...
qt_string_count(unicode(), size(), ch, cs);
executed 54672 times by 29 tests: return qt_string_count(unicode(), size(), ch, cs);
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QTableView
  • ...
54672
1612 }-
1613int QString::count(const QStringRef &str, Qt::CaseSensitivity cs) const-
1614{-
1615 return
executed 4 times by 1 test: return qt_string_count(unicode(), size(), str.unicode(), str.size(), cs);
Executed by:
  • tst_QString
qt_string_count(unicode(), size(), str.unicode(), str.size(), cs);
executed 4 times by 1 test: return qt_string_count(unicode(), size(), str.unicode(), str.size(), cs);
Executed by:
  • tst_QString
4
1616}-
1617int QString::indexOf(const QRegExp& rx, int from) const-
1618{-
1619 QRegExp rx2(rx);-
1620 return
executed 20349 times by 11 tests: return rx2.indexIn(*this, from);
Executed by:
  • tst_ModelTest
  • tst_QDBusInterface
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QProcess
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringList
  • tst_qstandardpaths
rx2.indexIn(*this, from);
executed 20349 times by 11 tests: return rx2.indexIn(*this, from);
Executed by:
  • tst_ModelTest
  • tst_QDBusInterface
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QProcess
  • tst_QSortFilterProxyModel
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringList
  • tst_qstandardpaths
20349
1621}-
1622int QString::indexOf(QRegExp& rx, int from) const-
1623{-
1624 return
executed 327 times by 5 tests: return rx.indexIn(*this, from);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFontComboBox
  • tst_QString
  • tst_QTime
rx.indexIn(*this, from);
executed 327 times by 5 tests: return rx.indexIn(*this, from);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFontComboBox
  • tst_QString
  • tst_QTime
327
1625}-
1626int QString::lastIndexOf(const QRegExp& rx, int from) const-
1627{-
1628 QRegExp rx2(rx);-
1629 return
executed 36 times by 1 test: return rx2.lastIndexIn(*this, from);
Executed by:
  • tst_QString
rx2.lastIndexIn(*this, from);
executed 36 times by 1 test: return rx2.lastIndexIn(*this, from);
Executed by:
  • tst_QString
36
1630}-
1631int QString::lastIndexOf(QRegExp& rx, int from) const-
1632{-
1633 return
executed 36 times by 1 test: return rx.lastIndexIn(*this, from);
Executed by:
  • tst_QString
rx.lastIndexIn(*this, from);
executed 36 times by 1 test: return rx.lastIndexIn(*this, from);
Executed by:
  • tst_QString
36
1634}-
1635int QString::count(const QRegExp& rx) const-
1636{-
1637 QRegExp rx2(rx);-
1638 int count = 0;-
1639 int index = -1;-
1640 int len = length();-
1641 while (index < len - 1
index < len - 1Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEnever evaluated
) {
0-5
1642 index = rx2.indexIn(*this, index + 1);-
1643 if (index == -1
index == -1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QString
)
2-3
1644 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QString
2
1645 count++;-
1646 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QString
3
1647 return
executed 2 times by 1 test: return count;
Executed by:
  • tst_QString
count;
executed 2 times by 1 test: return count;
Executed by:
  • tst_QString
2
1648}-
1649int QString::indexOf(const QRegularExpression& re, int from) const-
1650{-
1651 return
executed 65 times by 1 test: return indexOf(re, from, nullptr);
Executed by:
  • tst_QString
indexOf(re, from, nullptr);
executed 65 times by 1 test: return indexOf(re, from, nullptr);
Executed by:
  • tst_QString
65
1652}-
1653int QString::indexOf(const QRegularExpression &re, int from, QRegularExpressionMatch *rmatch) const-
1654{-
1655 if (!re.isValid()
!re.isValid()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 196 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextDocument
) {
3-196
1656 QMessageLogger(__FILE__, 3925, __PRETTY_FUNCTION__).warning("QString::indexOf: invalid QRegularExpression object");-
1657 return
executed 3 times by 1 test: return -1;
Executed by:
  • tst_QString
-1;
executed 3 times by 1 test: return -1;
Executed by:
  • tst_QString
3
1658 }-
1659-
1660 QRegularExpressionMatch match = re.match(*this, from);-
1661 if (match.hasMatch()
match.hasMatch()Description
TRUEevaluated 109 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextDocument
FALSEevaluated 87 times by 1 test
Evaluated by:
  • tst_QString
) {
87-109
1662 const int ret = match.capturedStart();-
1663 if (rmatch
rmatchDescription
TRUEevaluated 39 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextDocument
FALSEevaluated 70 times by 1 test
Evaluated by:
  • tst_QString
)
39-70
1664 *
executed 39 times by 2 tests: *rmatch = std::move(match);
Executed by:
  • tst_QString
  • tst_QTextDocument
rmatch = std::move(match);
executed 39 times by 2 tests: *rmatch = std::move(match);
Executed by:
  • tst_QString
  • tst_QTextDocument
39
1665 return
executed 109 times by 2 tests: return ret;
Executed by:
  • tst_QString
  • tst_QTextDocument
ret;
executed 109 times by 2 tests: return ret;
Executed by:
  • tst_QString
  • tst_QTextDocument
109
1666 }-
1667-
1668 return
executed 87 times by 1 test: return -1;
Executed by:
  • tst_QString
-1;
executed 87 times by 1 test: return -1;
Executed by:
  • tst_QString
87
1669}-
1670int QString::lastIndexOf(const QRegularExpression &re, int from) const-
1671{-
1672 return
executed 19 times by 1 test: return lastIndexOf(re, from, nullptr);
Executed by:
  • tst_QString
lastIndexOf(re, from, nullptr);
executed 19 times by 1 test: return lastIndexOf(re, from, nullptr);
Executed by:
  • tst_QString
19
1673}-
1674int QString::lastIndexOf(const QRegularExpression &re, int from, QRegularExpressionMatch *rmatch) const-
1675{-
1676 if (!re.isValid()
!re.isValid()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 57 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextDocument
) {
3-57
1677 QMessageLogger(__FILE__, 3976, __PRETTY_FUNCTION__).warning("QString::lastIndexOf: invalid QRegularExpression object");-
1678 return
executed 3 times by 1 test: return -1;
Executed by:
  • tst_QString
-1;
executed 3 times by 1 test: return -1;
Executed by:
  • tst_QString
3
1679 }-
1680-
1681 int endpos = (
(from < 0)Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 39 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextDocument
from < 0)
(from < 0)Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 39 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextDocument
? (size() + from + 1) : (from + 1);
18-39
1682 QRegularExpressionMatchIterator iterator = re.globalMatch(*this);-
1683 int lastIndex = -1;-
1684 while (iterator.hasNext()
iterator.hasNext()Description
TRUEevaluated 109 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextDocument
FALSEevaluated 40 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextDocument
) {
40-109
1685 QRegularExpressionMatch match = iterator.next();-
1686 int start = match.capturedStart();-
1687 if (start < endpos
start < endposDescription
TRUEevaluated 92 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextDocument
FALSEevaluated 17 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextDocument
) {
17-92
1688 lastIndex = start;-
1689 if (rmatch
rmatchDescription
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextDocument
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_QString
)
34-58
1690 *
executed 34 times by 2 tests: *rmatch = std::move(match);
Executed by:
  • tst_QString
  • tst_QTextDocument
rmatch = std::move(match);
executed 34 times by 2 tests: *rmatch = std::move(match);
Executed by:
  • tst_QString
  • tst_QTextDocument
34
1691 }
executed 92 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextDocument
else {
92
1692 break;
executed 17 times by 2 tests: break;
Executed by:
  • tst_QString
  • tst_QTextDocument
17
1693 }-
1694 }-
1695-
1696 return
executed 57 times by 2 tests: return lastIndex;
Executed by:
  • tst_QString
  • tst_QTextDocument
lastIndex;
executed 57 times by 2 tests: return lastIndex;
Executed by:
  • tst_QString
  • tst_QTextDocument
57
1697}-
1698-
1699-
1700-
1701-
1702-
1703-
1704-
1705bool QString::contains(const QRegularExpression &re) const-
1706{-
1707 return
executed 6 times by 2 tests: return contains(re, nullptr);
Executed by:
  • tst_QString
  • tst_QStringList
contains(re, nullptr);
executed 6 times by 2 tests: return contains(re, nullptr);
Executed by:
  • tst_QString
  • tst_QStringList
6
1708}-
1709bool QString::contains(const QRegularExpression &re, QRegularExpressionMatch *match) const-
1710{-
1711 if (!re.isValid()
!re.isValid()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
) {
1-12
1712 QMessageLogger(__FILE__, 4026, __PRETTY_FUNCTION__).warning("QString::contains: invalid QRegularExpression object");-
1713 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QString
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QString
1
1714 }-
1715 QRegularExpressionMatch m = re.match(*this);-
1716 bool hasMatch = m.hasMatch();-
1717 if (hasMatch
hasMatchDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
&& match
matchDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
)
3-9
1718 *
executed 4 times by 1 test: *match = std::move(m);
Executed by:
  • tst_QString
match = std::move(m);
executed 4 times by 1 test: *match = std::move(m);
Executed by:
  • tst_QString
4
1719 return
executed 12 times by 2 tests: return hasMatch;
Executed by:
  • tst_QString
  • tst_QStringList
hasMatch;
executed 12 times by 2 tests: return hasMatch;
Executed by:
  • tst_QString
  • tst_QStringList
12
1720}-
1721int QString::count(const QRegularExpression &re) const-
1722{-
1723 if (!re.isValid()
!re.isValid()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 122 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qdbusxml2cpp
) {
1-122
1724 QMessageLogger(__FILE__, 4051, __PRETTY_FUNCTION__).warning("QString::count: invalid QRegularExpression object");-
1725 return
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QString
0;
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QString
1
1726 }-
1727 int count = 0;-
1728 int index = -1;-
1729 int len = length();-
1730 while (index < len - 1
index < len - 1Description
TRUEevaluated 245 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qdbusxml2cpp
FALSEnever evaluated
) {
0-245
1731 QRegularExpressionMatch match = re.match(*this, index + 1);-
1732 if (!match.hasMatch()
!match.hasMatch()Description
TRUEevaluated 122 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qdbusxml2cpp
FALSEevaluated 123 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qdbusxml2cpp
)
122-123
1733 break;
executed 122 times by 2 tests: break;
Executed by:
  • tst_QString
  • tst_qdbusxml2cpp
122
1734 index = match.capturedStart();-
1735 count++;-
1736 }
executed 123 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qdbusxml2cpp
123
1737 return
executed 122 times by 2 tests: return count;
Executed by:
  • tst_QString
  • tst_qdbusxml2cpp
count;
executed 122 times by 2 tests: return count;
Executed by:
  • tst_QString
  • tst_qdbusxml2cpp
122
1738}-
1739QString QString::section(const QString &sep, int start, int end, SectionFlags flags) const-
1740{-
1741 const QVector<QStringRef> sections = splitRef(sep, KeepEmptyParts,-
1742 (flags & SectionCaseInsensitiveSeps) ? Qt::CaseInsensitive : Qt::CaseSensitive);-
1743 const int sectionsSize = sections.size();-
1744 if (!(flags & SectionSkipEmpty)
!(flags & SectionSkipEmpty)Description
TRUEevaluated 230 times by 11 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
FALSEevaluated 1992 times by 3 tests
Evaluated by:
  • tst_QLayout
  • tst_QString
  • tst_rcc
) {
230-1992
1745 if (start < 0
start < 0Description
TRUEevaluated 166 times by 8 tests
Evaluated by:
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
FALSEevaluated 64 times by 4 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QString
  • tst_qmakelib
)
64-166
1746 start += sectionsSize;
executed 166 times by 8 tests: start += sectionsSize;
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
166
1747 if (end < 0
end < 0Description
TRUEevaluated 171 times by 9 tests
Evaluated by:
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
FALSEevaluated 59 times by 4 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QString
  • tst_qmakelib
)
59-171
1748 end += sectionsSize;
executed 171 times by 9 tests: end += sectionsSize;
Executed by:
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
171
1749 }
executed 230 times by 11 tests: end of block
Executed by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
else {
230
1750 int skip = 0;-
1751 for (int k = 0; k < sectionsSize
k < sectionsSizeDescription
TRUEevaluated 15024 times by 3 tests
Evaluated by:
  • tst_QLayout
  • tst_QString
  • tst_rcc
FALSEevaluated 1992 times by 3 tests
Evaluated by:
  • tst_QLayout
  • tst_QString
  • tst_rcc
; ++k) {
1992-15024
1752 if (sections.at(k).isEmpty()
sections.at(k).isEmpty()Description
TRUEevaluated 2048 times by 2 tests
Evaluated by:
  • tst_QLayout
  • tst_QString
FALSEevaluated 12976 times by 3 tests
Evaluated by:
  • tst_QLayout
  • tst_QString
  • tst_rcc
)
2048-12976
1753 skip++;
executed 2048 times by 2 tests: skip++;
Executed by:
  • tst_QLayout
  • tst_QString
2048
1754 }
executed 15024 times by 3 tests: end of block
Executed by:
  • tst_QLayout
  • tst_QString
  • tst_rcc
15024
1755 if (start < 0
start < 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 1988 times by 3 tests
Evaluated by:
  • tst_QLayout
  • tst_QString
  • tst_rcc
)
4-1988
1756 start += sectionsSize - skip;
executed 4 times by 1 test: start += sectionsSize - skip;
Executed by:
  • tst_QString
4
1757 if (end < 0
end < 0Description
TRUEevaluated 1794 times by 2 tests
Evaluated by:
  • tst_QLayout
  • tst_QString
FALSEevaluated 198 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_rcc
)
198-1794
1758 end += sectionsSize - skip;
executed 1794 times by 2 tests: end += sectionsSize - skip;
Executed by:
  • tst_QLayout
  • tst_QString
1794
1759 }
executed 1992 times by 3 tests: end of block
Executed by:
  • tst_QLayout
  • tst_QString
  • tst_rcc
1992
1760 if (start >= sectionsSize
start >= sectionsSizeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2220 times by 13 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
|| end < 0
end < 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2218 times by 13 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
|| start > end
start > endDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2216 times by 13 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
)
2-2220
1761 return
executed 6 times by 1 test: return QString();
Executed by:
  • tst_QString
QString();
executed 6 times by 1 test: return QString();
Executed by:
  • tst_QString
6
1762-
1763 QString ret;-
1764 int first_i = start, last_i = end;-
1765 for (int x = 0, i = 0; x <= end
x <= endDescription
TRUEevaluated 13295 times by 13 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 2216 times by 13 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
&& i < sectionsSize
i < sectionsSizeDescription
TRUEevaluated 13295 times by 13 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
FALSEnever evaluated
; ++i) {
0-13295
1766 const QStringRef &section = sections.at(i);-
1767 const bool empty = section.isEmpty();-
1768 if (x >= start
x >= startDescription
TRUEevaluated 2307 times by 13 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 10988 times by 4 tests
Evaluated by:
  • tst_QLayout
  • tst_QString
  • tst_qmakelib
  • tst_rcc
) {
2307-10988
1769 if(x == start
x == startDescription
TRUEevaluated 2262 times by 13 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 45 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
)
45-2262
1770 first_i = i;
executed 2262 times by 13 tests: first_i = i;
Executed by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
2262
1771 if(x == end
x == endDescription
TRUEevaluated 2264 times by 13 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 43 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
)
43-2264
1772 last_i = i;
executed 2264 times by 13 tests: last_i = i;
Executed by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
2264
1773 if (x > start
x > startDescription
TRUEevaluated 45 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 2262 times by 13 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
&& i > 0
i > 0Description
TRUEevaluated 43 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
)
2-2262
1774 ret += sep;
executed 43 times by 2 tests: ret += sep;
Executed by:
  • tst_QString
  • tst_qmakelib
43
1775 ret += section;-
1776 }
executed 2307 times by 13 tests: end of block
Executed by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
2307
1777 if (!empty
!emptyDescription
TRUEevaluated 13139 times by 13 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 156 times by 1 test
Evaluated by:
  • tst_QString
|| !(flags & SectionSkipEmpty)
!(flags & SectionSkipEmpty)Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 132 times by 1 test
Evaluated by:
  • tst_QString
)
24-13139
1778 x++;
executed 13163 times by 13 tests: x++;
Executed by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
13163
1779 }
executed 13295 times by 13 tests: end of block
Executed by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
13295
1780 if ((flags & SectionIncludeLeadingSep) && first_i > 0
first_i > 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QString
)
10-16
1781 ret.prepend(sep);
executed 16 times by 1 test: ret.prepend(sep);
Executed by:
  • tst_QString
16
1782 if ((flags & SectionIncludeTrailingSep) && last_i < sectionsSize - 1
last_i < sectionsSize - 1Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
)
4-16
1783 ret += sep;
executed 16 times by 1 test: ret += sep;
Executed by:
  • tst_QString
16
1784 return
executed 2216 times by 13 tests: return ret;
Executed by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
ret;
executed 2216 times by 13 tests: return ret;
Executed by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
2216
1785}-
1786-
1787-
1788class qt_section_chunk {-
1789public:-
1790 qt_section_chunk() {}-
1791 qt_section_chunk(int l, QStringRef s) : length(l), string(std::move(s)) {}
executed 638 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qmakelib
638
1792 int length;-
1793 QStringRef string;-
1794};-
1795template<> class QTypeInfo<qt_section_chunk > { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(qt_section_chunk)>sizeof(void*)), isPointer = false, isIntegral = QtPrivate::is_integral< qt_section_chunk >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(qt_section_chunk) }; static inline const char *name() { return "qt_section_chunk"; } };-
1796-
1797static QString extractSections(const QVector<qt_section_chunk> &sections,-
1798 int start,-
1799 int end,-
1800 QString::SectionFlags flags)-
1801{-
1802 const int sectionsSize = sections.size();-
1803-
1804 if (!(flags & QString::SectionSkipEmpty)
!(flags & QStr...tionSkipEmpty)Description
TRUEevaluated 72 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QString
) {
18-72
1805 if (start < 0
start < 0Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 63 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
)
9-63
1806 start += sectionsSize;
executed 9 times by 2 tests: start += sectionsSize;
Executed by:
  • tst_QString
  • tst_qmakelib
9
1807 if (end < 0
end < 0Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 54 times by 1 test
Evaluated by:
  • tst_QString
)
18-54
1808 end += sectionsSize;
executed 18 times by 2 tests: end += sectionsSize;
Executed by:
  • tst_QString
  • tst_qmakelib
18
1809 }
executed 72 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qmakelib
else {
72
1810 int skip = 0;-
1811 for (int k = 0; k < sectionsSize
k < sectionsSizeDescription
TRUEevaluated 324 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QString
; ++k) {
18-324
1812 const qt_section_chunk &section = sections.at(k);-
1813 if (section.length == section.string.length()
section.length...tring.length()Description
TRUEevaluated 256 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 68 times by 1 test
Evaluated by:
  • tst_QString
)
68-256
1814 skip++;
executed 256 times by 1 test: skip++;
Executed by:
  • tst_QString
256
1815 }
executed 324 times by 1 test: end of block
Executed by:
  • tst_QString
324
1816 if (start < 0
start < 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QString
)
4-14
1817 start += sectionsSize - skip;
executed 4 times by 1 test: start += sectionsSize - skip;
Executed by:
  • tst_QString
4
1818 if (end < 0
end < 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QString
)
2-16
1819 end += sectionsSize - skip;
executed 2 times by 1 test: end += sectionsSize - skip;
Executed by:
  • tst_QString
2
1820 }
executed 18 times by 1 test: end of block
Executed by:
  • tst_QString
18
1821 if (start >= sectionsSize
start >= sectionsSizeDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 86 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
|| end < 0
end < 0Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 83 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
|| start > end
start > endDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 81 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
)
2-86
1822 return
executed 9 times by 2 tests: return QString();
Executed by:
  • tst_QString
  • tst_qmakelib
QString();
executed 9 times by 2 tests: return QString();
Executed by:
  • tst_QString
  • tst_qmakelib
9
1823-
1824 QString ret;-
1825 int x = 0;-
1826 int first_i = start, last_i = end;-
1827 for (int i = 0; x <= end
x <= endDescription
TRUEevaluated 365 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 81 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
&& i < sectionsSize
i < sectionsSizeDescription
TRUEevaluated 365 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEnever evaluated
; ++i) {
0-365
1828 const qt_section_chunk &section = sections.at(i);-
1829 const bool empty = (section.length == section.string.length());-
1830 if (x >= start
x >= startDescription
TRUEevaluated 192 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 173 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
) {
173-192
1831 if (x == start
x == startDescription
TRUEevaluated 127 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 65 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
)
65-127
1832 first_i = i;
executed 127 times by 2 tests: first_i = i;
Executed by:
  • tst_QString
  • tst_qmakelib
127
1833 if (x == end
x == endDescription
TRUEevaluated 129 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 63 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
)
63-129
1834 last_i = i;
executed 129 times by 2 tests: last_i = i;
Executed by:
  • tst_QString
  • tst_qmakelib
129
1835 if (x != start
x != startDescription
TRUEevaluated 65 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 127 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
)
65-127
1836 ret += section.string;
executed 65 times by 2 tests: ret += section.string;
Executed by:
  • tst_QString
  • tst_qmakelib
65
1837 else-
1838 ret += section.string.mid(section.length);
executed 127 times by 2 tests: ret += section.string.mid(section.length);
Executed by:
  • tst_QString
  • tst_qmakelib
127
1839 }-
1840 if (!empty
!emptyDescription
TRUEevaluated 183 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 182 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
|| !(flags & QString::SectionSkipEmpty)
!(flags & QStr...tionSkipEmpty)Description
TRUEevaluated 50 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 132 times by 1 test
Evaluated by:
  • tst_QString
)
50-183
1841 x++;
executed 233 times by 2 tests: x++;
Executed by:
  • tst_QString
  • tst_qmakelib
233
1842 }
executed 365 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qmakelib
365
1843-
1844 if ((flags & QString::SectionIncludeLeadingSep) && first_i >= 0
first_i >= 0Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
) {
2-44
1845 const qt_section_chunk &section = sections.at(first_i);-
1846 ret.prepend(section.string.left(section.length));-
1847 }
executed 44 times by 1 test: end of block
Executed by:
  • tst_QString
44
1848-
1849 if ((flags & QString::SectionIncludeTrailingSep)-
1850 && last_i < sectionsSize - 1
last_i < sectionsSize - 1Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
) {
6-28
1851 const qt_section_chunk &section = sections.at(last_i+1);-
1852 ret += section.string.left(section.length);-
1853 }
executed 28 times by 1 test: end of block
Executed by:
  • tst_QString
28
1854-
1855 return
executed 81 times by 2 tests: return ret;
Executed by:
  • tst_QString
  • tst_qmakelib
ret;
executed 81 times by 2 tests: return ret;
Executed by:
  • tst_QString
  • tst_qmakelib
81
1856}-
1857QString QString::section(const QRegExp &reg, int start, int end, SectionFlags flags) const-
1858{-
1859 const QChar *uc = unicode();-
1860 if(!uc
!ucDescription
TRUEnever evaluated
FALSEevaluated 48 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
)
0-48
1861 return
never executed: return QString();
QString();
never executed: return QString();
0
1862-
1863 QRegExp sep(reg);-
1864 sep.setCaseSensitivity((flags & SectionCaseInsensitiveSeps) ? Qt::CaseInsensitive-
1865 : Qt::CaseSensitive);-
1866-
1867 QVector<qt_section_chunk> sections;-
1868 int n = length(), m = 0, last_m = 0, last_len = 0;-
1869 while ((
(m = sep.index...his, m)) != -1Description
TRUEevaluated 277 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 48 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
m = sep.indexIn(*this, m)) != -1
(m = sep.index...his, m)) != -1Description
TRUEevaluated 277 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 48 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
) {
48-277
1870 sections.append(qt_section_chunk(last_len, QStringRef(this, last_m, m - last_m)));-
1871 last_m = m;-
1872 last_len = sep.matchedLength();-
1873 m += qMax(sep.matchedLength(), 1);-
1874 }
executed 277 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qmakelib
277
1875 sections.append(qt_section_chunk(last_len, QStringRef(this, last_m, n - last_m)));-
1876-
1877 return
executed 48 times by 2 tests: return extractSections(sections, start, end, flags);
Executed by:
  • tst_QString
  • tst_qmakelib
extractSections(sections, start, end, flags);
executed 48 times by 2 tests: return extractSections(sections, start, end, flags);
Executed by:
  • tst_QString
  • tst_qmakelib
48
1878}-
1879QString QString::section(const QRegularExpression &re, int start, int end, SectionFlags flags) const-
1880{-
1881 if (!re.isValid()
!re.isValid()Description
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QString
) {
0-42
1882 QMessageLogger(__FILE__, 4318, __PRETTY_FUNCTION__).warning("QString::section: invalid QRegularExpression object");-
1883 return
never executed: return QString();
QString();
never executed: return QString();
0
1884 }-
1885-
1886 const QChar *uc = unicode();-
1887 if (!uc
!ucDescription
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QString
)
0-42
1888 return
never executed: return QString();
QString();
never executed: return QString();
0
1889-
1890 QRegularExpression sep(re);-
1891 if (flags & SectionCaseInsensitiveSeps
flags & Sectio...nsensitiveSepsDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 41 times by 1 test
Evaluated by:
  • tst_QString
)
1-41
1892 sep.setPatternOptions(sep.patternOptions() | QRegularExpression::CaseInsensitiveOption);
executed 1 time by 1 test: sep.setPatternOptions(sep.patternOptions() | QRegularExpression::CaseInsensitiveOption);
Executed by:
  • tst_QString
1
1893-
1894 QVector<qt_section_chunk> sections;-
1895 int n = length(), m = 0, last_m = 0, last_len = 0;-
1896 QRegularExpressionMatchIterator iterator = sep.globalMatch(*this);-
1897 while (iterator.hasNext()
iterator.hasNext()Description
TRUEevaluated 271 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QString
) {
42-271
1898 QRegularExpressionMatch match = iterator.next();-
1899 m = match.capturedStart();-
1900 sections.append(qt_section_chunk(last_len, QStringRef(this, last_m, m - last_m)));-
1901 last_m = m;-
1902 last_len = match.capturedLength();-
1903 }
executed 271 times by 1 test: end of block
Executed by:
  • tst_QString
271
1904 sections.append(qt_section_chunk(last_len, QStringRef(this, last_m, n - last_m)));-
1905-
1906 return
executed 42 times by 1 test: return extractSections(sections, start, end, flags);
Executed by:
  • tst_QString
extractSections(sections, start, end, flags);
executed 42 times by 1 test: return extractSections(sections, start, end, flags);
Executed by:
  • tst_QString
42
1907}-
1908QString QString::left(int n) const-
1909{-
1910 if (uint(n) >= uint(d->size)
uint(n) >= uint(d->size)Description
TRUEevaluated 33846 times by 81 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsItem
  • ...
FALSEevaluated 79580 times by 197 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • ...
)
33846-79580
1911 return
executed 33846 times by 81 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsItem
  • ...
*this;
executed 33846 times by 81 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsItem
  • ...
33846
1912 return
executed 79580 times by 197 tests: return QString((const QChar*) d->data(), n);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • ...
QString((const QChar*) d->data(), n);
executed 79580 times by 197 tests: return QString((const QChar*) d->data(), n);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • ...
79580
1913}-
1914QString QString::right(int n) const-
1915{-
1916 if (uint(n) >= uint(d->size)
uint(n) >= uint(d->size)Description
TRUEevaluated 62 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QSqlTableModel
  • tst_QString
FALSEevaluated 4751 times by 32 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAction
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QImageReader
  • tst_QItemModel
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMimeDatabase
  • tst_QRadioButton
  • tst_QShortcut
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • ...
)
62-4751
1917 return
executed 62 times by 3 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QSqlTableModel
  • tst_QString
*this;
executed 62 times by 3 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QSqlTableModel
  • tst_QString
62
1918 return
executed 4751 times by 32 tests: return QString((const QChar*) d->data() + d->size - n, n);
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAction
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QImageReader
  • tst_QItemModel
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMimeDatabase
  • tst_QRadioButton
  • tst_QShortcut
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • ...
QString((const QChar*) d->data() + d->size - n, n);
executed 4751 times by 32 tests: return QString((const QChar*) d->data() + d->size - n, n);
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAction
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QImageReader
  • tst_QItemModel
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMimeDatabase
  • tst_QRadioButton
  • tst_QShortcut
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • ...
4751
1919}-
1920QString QString::mid(int position, int n) const-
1921{-
1922 using namespace QtPrivate;-
1923 switch (QContainerImplHelper::mid(d->size, &position, &n)) {-
1924 case
executed 12348 times by 7 tests: case QContainerImplHelper::Null:
Executed by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QString
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_QXmlStream
QContainerImplHelper::Null:
executed 12348 times by 7 tests: case QContainerImplHelper::Null:
Executed by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QString
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_QXmlStream
12348
1925 return
executed 12348 times by 7 tests: return QString();
Executed by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QString
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_QXmlStream
QString();
executed 12348 times by 7 tests: return QString();
Executed by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QString
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_QXmlStream
12348
1926 case
executed 6166 times by 43 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataUrl
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemEntry
  • tst_QFiledialog
  • tst_QGLFunctions
  • tst_QGraphicsProxyWidget
  • tst_QKeySequence
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
QContainerImplHelper::Empty:
executed 6166 times by 43 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataUrl
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemEntry
  • tst_QFiledialog
  • tst_QGLFunctions
  • tst_QGraphicsProxyWidget
  • tst_QKeySequence
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
6166
1927 {-
1928 QStringDataPtr empty = { Data::allocate(0) };-
1929 return
executed 6166 times by 43 tests: return QString(empty);
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataUrl
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemEntry
  • tst_QFiledialog
  • tst_QGLFunctions
  • tst_QGraphicsProxyWidget
  • tst_QKeySequence
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
QString(empty);
executed 6166 times by 43 tests: return QString(empty);
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataUrl
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemEntry
  • tst_QFiledialog
  • tst_QGLFunctions
  • tst_QGraphicsProxyWidget
  • tst_QKeySequence
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
6166
1930 }-
1931 case
executed 77627 times by 200 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • ...
QContainerImplHelper::Full:
executed 77627 times by 200 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • ...
77627
1932 return
executed 77627 times by 200 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • ...
*this;
executed 77627 times by 200 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • ...
77627
1933 case
executed 893675 times by 268 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • tst_QCssParser
  • ...
QContainerImplHelper::Subset:
executed 893675 times by 268 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • tst_QCssParser
  • ...
893675
1934 return
executed 893675 times by 268 tests: return QString((const QChar*)d->data() + position, n);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • tst_QCssParser
  • ...
QString((const QChar*)d->data() + position, n);
executed 893675 times by 268 tests: return QString((const QChar*)d->data() + position, n);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • tst_QCssParser
  • ...
893675
1935 }-
1936 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,4416) : qt_noop()); __builtin_unreachable(); } while (0);-
1937 return
never executed: return QString();
QString();
never executed: return QString();
0
1938}-
1939bool QString::startsWith(const QString& s, Qt::CaseSensitivity cs) const-
1940{-
1941 return
executed 432530 times by 119 tests: return qt_starts_with(isNull() ? 0 : unicode(), size(), s.isNull() ? 0 : s.unicode(), s.size(), cs);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • ...
qt_starts_with(isNull() ? 0 : unicode(), size(),
executed 432530 times by 119 tests: return qt_starts_with(isNull() ? 0 : unicode(), size(), s.isNull() ? 0 : s.unicode(), s.size(), cs);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • ...
432530
1942 s.isNull() ? 0 : s.unicode(), s.size(), cs);
executed 432530 times by 119 tests: return qt_starts_with(isNull() ? 0 : unicode(), size(), s.isNull() ? 0 : s.unicode(), s.size(), cs);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • ...
432530
1943}-
1944-
1945-
1946-
1947-
1948bool QString::startsWith(QLatin1String s, Qt::CaseSensitivity cs) const-
1949{-
1950 return
executed 252355 times by 235 tests: return qt_starts_with(isNull() ? 0 : unicode(), size(), s, cs);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
qt_starts_with(isNull() ? 0 : unicode(), size(), s, cs);
executed 252355 times by 235 tests: return qt_starts_with(isNull() ? 0 : unicode(), size(), s, cs);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
252355
1951}-
1952-
1953-
1954-
1955-
1956-
1957-
1958-
1959bool QString::startsWith(QChar c, Qt::CaseSensitivity cs) const-
1960{-
1961 return
executed 349268 times by 257 tests: return d->size && (cs == Qt::CaseSensitive ? d->data()[0] == c : foldCase(d->data()[0]) == foldCase(c.unicode()));
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
d->size
executed 349268 times by 257 tests: return d->size && (cs == Qt::CaseSensitive ? d->data()[0] == c : foldCase(d->data()[0]) == foldCase(c.unicode()));
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
349268
1962 && (cs == Qt::CaseSensitive
executed 349268 times by 257 tests: return d->size && (cs == Qt::CaseSensitive ? d->data()[0] == c : foldCase(d->data()[0]) == foldCase(c.unicode()));
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
349268
1963 ? d->data()[0] == c
executed 349268 times by 257 tests: return d->size && (cs == Qt::CaseSensitive ? d->data()[0] == c : foldCase(d->data()[0]) == foldCase(c.unicode()));
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
349268
1964 : foldCase(d->data()[0]) == foldCase(c.unicode()));
executed 349268 times by 257 tests: return d->size && (cs == Qt::CaseSensitive ? d->data()[0] == c : foldCase(d->data()[0]) == foldCase(c.unicode()));
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
349268
1965}-
1966bool QString::startsWith(const QStringRef &s, Qt::CaseSensitivity cs) const-
1967{-
1968 return
executed 4 times by 1 test: return qt_starts_with(isNull() ? 0 : unicode(), size(), s.isNull() ? 0 : s.unicode(), s.size(), cs);
Executed by:
  • tst_QString
qt_starts_with(isNull() ? 0 : unicode(), size(),
executed 4 times by 1 test: return qt_starts_with(isNull() ? 0 : unicode(), size(), s.isNull() ? 0 : s.unicode(), s.size(), cs);
Executed by:
  • tst_QString
4
1969 s.isNull() ? 0 : s.unicode(), s.size(), cs);
executed 4 times by 1 test: return qt_starts_with(isNull() ? 0 : unicode(), size(), s.isNull() ? 0 : s.unicode(), s.size(), cs);
Executed by:
  • tst_QString
4
1970}-
1971bool QString::endsWith(const QString& s, Qt::CaseSensitivity cs) const-
1972{-
1973 return
executed 4492 times by 62 tests: return qt_ends_with(isNull() ? 0 : unicode(), size(), s.isNull() ? 0 : s.unicode(), s.size(), cs);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLabel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
qt_ends_with(isNull() ? 0 : unicode(), size(),
executed 4492 times by 62 tests: return qt_ends_with(isNull() ? 0 : unicode(), size(), s.isNull() ? 0 : s.unicode(), s.size(), cs);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLabel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
4492
1974 s.isNull() ? 0 : s.unicode(), s.size(), cs);
executed 4492 times by 62 tests: return qt_ends_with(isNull() ? 0 : unicode(), size(), s.isNull() ? 0 : s.unicode(), s.size(), cs);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLabel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
4492
1975 }-
1976bool QString::endsWith(const QStringRef &s, Qt::CaseSensitivity cs) const-
1977{-
1978 return
executed 6 times by 1 test: return qt_ends_with(isNull() ? 0 : unicode(), size(), s.isNull() ? 0 : s.unicode(), s.size(), cs);
Executed by:
  • tst_QString
qt_ends_with(isNull() ? 0 : unicode(), size(),
executed 6 times by 1 test: return qt_ends_with(isNull() ? 0 : unicode(), size(), s.isNull() ? 0 : s.unicode(), s.size(), cs);
Executed by:
  • tst_QString
6
1979 s.isNull() ? 0 : s.unicode(), s.size(), cs);
executed 6 times by 1 test: return qt_ends_with(isNull() ? 0 : unicode(), size(), s.isNull() ? 0 : s.unicode(), s.size(), cs);
Executed by:
  • tst_QString
6
1980}-
1981-
1982-
1983-
1984-
1985-
1986bool QString::endsWith(QLatin1String s, Qt::CaseSensitivity cs) const-
1987{-
1988 return
executed 49972 times by 122 tests: return qt_ends_with(isNull() ? 0 : unicode(), size(), s, cs);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
qt_ends_with(isNull() ? 0 : unicode(), size(), s, cs);
executed 49972 times by 122 tests: return qt_ends_with(isNull() ? 0 : unicode(), size(), s, cs);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
49972
1989}-
1990-
1991-
1992-
1993-
1994-
1995-
1996-
1997bool QString::endsWith(QChar c, Qt::CaseSensitivity cs) const-
1998{-
1999 return
executed 156240 times by 334 tests: return d->size && (cs == Qt::CaseSensitive ? d->data()[d->size - 1] == c : foldCase(d->data()[d->size - 1]) == foldCase(c.unicode()));
Executed by:
  • tst_Gestures
  • 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_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • ...
d->size
executed 156240 times by 334 tests: return d->size && (cs == Qt::CaseSensitive ? d->data()[d->size - 1] == c : foldCase(d->data()[d->size - 1]) == foldCase(c.unicode()));
Executed by:
  • tst_Gestures
  • 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_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • ...
156240
2000 && (cs == Qt::CaseSensitive
executed 156240 times by 334 tests: return d->size && (cs == Qt::CaseSensitive ? d->data()[d->size - 1] == c : foldCase(d->data()[d->size - 1]) == foldCase(c.unicode()));
Executed by:
  • tst_Gestures
  • 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_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • ...
156240
2001 ? d->data()[d->size - 1] == c
executed 156240 times by 334 tests: return d->size && (cs == Qt::CaseSensitive ? d->data()[d->size - 1] == c : foldCase(d->data()[d->size - 1]) == foldCase(c.unicode()));
Executed by:
  • tst_Gestures
  • 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_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • ...
156240
2002 : foldCase(d->data()[d->size - 1]) == foldCase(c.unicode()));
executed 156240 times by 334 tests: return d->size && (cs == Qt::CaseSensitive ? d->data()[d->size - 1] == c : foldCase(d->data()[d->size - 1]) == foldCase(c.unicode()));
Executed by:
  • tst_Gestures
  • 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_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • ...
156240
2003}-
2004-
2005QByteArray QString::toLatin1_helper(const QString &string)-
2006{-
2007 if (__builtin_expect(!!(string.isNull()), false)
__builtin_expe...ull()), false)Description
TRUEevaluated 2239 times by 165 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
FALSEevaluated 232661 times by 433 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
)
2239-232661
2008 return
executed 2239 times by 165 tests: return QByteArray();
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
QByteArray();
executed 2239 times by 165 tests: return QByteArray();
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
2239
2009-
2010 return
executed 232661 times by 433 tests: return toLatin1_helper(string.constData(), string.length());
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
toLatin1_helper(string.constData(), string.length());
executed 232661 times by 433 tests: return toLatin1_helper(string.constData(), string.length());
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
232661
2011}-
2012-
2013QByteArray QString::toLatin1_helper(const QChar *data, int length)-
2014{-
2015 QByteArray ba(length, Qt::Uninitialized);-
2016-
2017-
2018-
2019 qt_to_latin1(reinterpret_cast<uchar *>(const_cast<char *>(ba.constData())),-
2020 reinterpret_cast<const ushort *>(data), length);-
2021 return
executed 237008 times by 434 tests: return ba;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
ba;
executed 237008 times by 434 tests: return ba;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
237008
2022}-
2023-
2024QByteArray QString::toLatin1_helper_inplace(QString &s)-
2025{-
2026 if (!s.isDetached()
!s.isDetached()Description
TRUEevaluated 30267 times by 156 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • ...
FALSEevaluated 46795 times by 131 tests
Evaluated by:
  • tst_Compiler
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • ...
)
30267-46795
2027 return
executed 30267 times by 156 tests: return s.toLatin1();
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • ...
s.toLatin1();
executed 30267 times by 156 tests: return s.toLatin1();
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • ...
30267
2028-
2029-
2030-
2031 const ushort *data = reinterpret_cast<const ushort *>(s.constData());-
2032 uint length = s.size();-
2033-
2034-
2035-
2036 QArrayData *ba_d = s.d;-
2037-
2038-
2039 ba_d->alloc *= sizeof(ushort);-
2040-
2041-
2042 s.d = QString().d;-
2043-
2044-
2045 uchar *dst = reinterpret_cast<uchar *>(ba_d->data());-
2046 qt_to_latin1(dst, data, length);-
2047 dst[length] = '\0';-
2048-
2049 QByteArrayDataPtr badptr = { ba_d };-
2050 return
executed 46795 times by 131 tests: return QByteArray(badptr);
Executed by:
  • tst_Compiler
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • ...
QByteArray(badptr);
executed 46795 times by 131 tests: return QByteArray(badptr);
Executed by:
  • tst_Compiler
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • ...
46795
2051}-
2052QByteArray QString::toLocal8Bit_helper(const QChar *data, int size)-
2053{-
2054-
2055 QTextCodec *localeCodec = QTextCodec::codecForLocale();-
2056 if (localeCodec
localeCodecDescription
TRUEevaluated 482680 times by 411 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 3 times by 1 test
Evaluated by:
  • tst_qlockfile - unknown status
)
3-482680
2057 return
executed 482680 times by 411 tests: return localeCodec->fromUnicode(data, size);
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
  • ...
localeCodec->fromUnicode(data, size);
executed 482680 times by 411 tests: return localeCodec->fromUnicode(data, size);
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
  • ...
482680
2058-
2059 return
executed 3 times by 1 test: return toLatin1_helper(data, size);
Executed by:
  • tst_qlockfile - unknown status
toLatin1_helper(data, size);
executed 3 times by 1 test: return toLatin1_helper(data, size);
Executed by:
  • tst_qlockfile - unknown status
3
2060}-
2061QByteArray QString::toUtf8_helper(const QString &str)-
2062{-
2063 if (str.isNull()
str.isNull()Description
TRUEevaluated 5705 times by 155 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
FALSEevaluated 100635 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
  • ...
)
5705-100635
2064 return
executed 5705 times by 155 tests: return QByteArray();
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
QByteArray();
executed 5705 times by 155 tests: return QByteArray();
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
5705
2065-
2066 return
executed 100635 times by 245 tests: return QUtf8::convertFromUnicode(str.constData(), str.length());
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
  • ...
QUtf8::convertFromUnicode(str.constData(), str.length());
executed 100635 times by 245 tests: return QUtf8::convertFromUnicode(str.constData(), str.length());
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
  • ...
100635
2067}-
2068QVector<uint> QString::toUcs4() const-
2069{-
2070 QVector<uint> v(length());-
2071 uint *a = v.data();-
2072 int len = toUcs4_helper(d->data(), length(), a);-
2073 v.resize(len);-
2074 return
executed 10 times by 1 test: return v;
Executed by:
  • tst_QString
v;
executed 10 times by 1 test: return v;
Executed by:
  • tst_QString
10
2075}-
2076-
2077QString::Data *QString::fromLatin1_helper(const char *str, int size)-
2078{-
2079 Data *d;-
2080 if (!str
!strDescription
TRUEevaluated 72 times by 5 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QLatin1String
  • tst_QMetaType
  • tst_QString
  • tst_QVariant
FALSEevaluated 1941418 times by 686 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) {
72-1941418
2081 d = Data::sharedNull();-
2082 }
executed 72 times by 5 tests: end of block
Executed by:
  • tst_QDBusXmlParser
  • tst_QLatin1String
  • tst_QMetaType
  • tst_QString
  • tst_QVariant
else if (size == 0
size == 0Description
TRUEevaluated 24189 times by 442 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
FALSEevaluated 1917229 times by 644 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
  • ...
|| (!*str
!*strDescription
TRUEevaluated 9 times by 4 tests
Evaluated by:
  • tst_QString
  • tst_QTextCodec
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 1917220 times by 644 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
  • ...
&& size < 0
size < 0Description
TRUEnever evaluated
FALSEevaluated 9 times by 4 tests
Evaluated by:
  • tst_QString
  • tst_QTextCodec
  • tst_QUrl
  • tst_QUrlInternal
)) {
0-1917229
2083 d = Data::allocate(0);-
2084 }
executed 24189 times by 442 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
else {
24189
2085 if (size < 0
size < 0Description
TRUEnever evaluated
FALSEevaluated 1917229 times by 644 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
  • ...
)
0-1917229
2086 size = qstrlen(str);
never executed: size = qstrlen(str);
0
2087 d = Data::allocate(size + 1);-
2088 do { if (!(d)
!(d)Description
TRUEnever evaluated
FALSEevaluated 1917229 times by 644 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
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-1917229
2089 d->size = size;-
2090 d->data()[size] = '\0';-
2091 ushort *dst = d->data();-
2092-
2093 qt_from_latin1(dst, str, uint(size));-
2094 }
executed 1917229 times by 644 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
  • ...
1917229
2095 return
executed 1941490 times by 686 tests: return d;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
d;
executed 1941490 times by 686 tests: return d;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1941490
2096}-
2097-
2098QString::Data *QString::fromAscii_helper(const char *str, int size)-
2099{-
2100 QString s = fromUtf8(str, size);-
2101 s.d->ref.ref();-
2102 return
executed 1402114 times by 340 tests: return s.d;
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_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBoxLayout
  • ...
s.d;
executed 1402114 times by 340 tests: return s.d;
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_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBoxLayout
  • ...
1402114
2103}-
2104QString QString::fromLocal8Bit_helper(const char *str, int size)-
2105{-
2106 if (!str
!strDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 294005 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
  • ...
)
1-294005
2107 return
executed 1 time by 1 test: return QString();
Executed by:
  • tst_QString
QString();
executed 1 time by 1 test: return QString();
Executed by:
  • tst_QString
1
2108 if (size == 0
size == 0Description
TRUEevaluated 1014 times by 12 tests
Evaluated by:
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDnsLookup_Appless
  • tst_QGuiApplication
  • tst_QString
  • tst_Utf8
  • tst_qmake
  • tst_qmessagehandler
  • tst_qstandardpaths
  • tst_selftests - unknown status
FALSEevaluated 292991 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
  • ...
|| (!*str
!*strDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_Utf8
FALSEevaluated 292988 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
  • ...
&& size < 0
size < 0Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_Utf8
)) {
0-292991
2109 QStringDataPtr empty = { Data::allocate(0) };-
2110 return
executed 1014 times by 12 tests: return QString(empty);
Executed by:
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDnsLookup_Appless
  • tst_QGuiApplication
  • tst_QString
  • tst_Utf8
  • tst_qmake
  • tst_qmessagehandler
  • tst_qstandardpaths
  • tst_selftests - unknown status
QString(empty);
executed 1014 times by 12 tests: return QString(empty);
Executed by:
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDnsLookup_Appless
  • tst_QGuiApplication
  • tst_QString
  • tst_Utf8
  • tst_qmake
  • tst_qmessagehandler
  • tst_qstandardpaths
  • tst_selftests - unknown status
1014
2111 }-
2112-
2113 if (size < 0
size < 0Description
TRUEnever evaluated
FALSEevaluated 292991 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
  • ...
)
0-292991
2114 size = qstrlen(str);
never executed: size = qstrlen(str);
0
2115 QTextCodec *codec = QTextCodec::codecForLocale();-
2116 if (codec
codecDescription
TRUEevaluated 292989 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
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qlockfile - unknown status
)
2-292989
2117 return
executed 292989 times by 340 tests: return codec->toUnicode(str, size);
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
  • ...
codec->toUnicode(str, size);
executed 292989 times by 340 tests: return codec->toUnicode(str, size);
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
  • ...
292989
2118-
2119 return
executed 2 times by 1 test: return fromLatin1(str, size);
Executed by:
  • tst_qlockfile - unknown status
fromLatin1(str, size);
executed 2 times by 1 test: return fromLatin1(str, size);
Executed by:
  • tst_qlockfile - unknown status
2
2120}-
2121QString QString::fromUtf8_helper(const char *str, int size)-
2122{-
2123 if (!str
!strDescription
TRUEevaluated 7640 times by 297 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
FALSEevaluated 3930821 times by 532 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_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
  • ...
)
7640-3930821
2124 return
executed 7640 times by 297 tests: return QString();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
QString();
executed 7640 times by 297 tests: return QString();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
7640
2125-
2126 ((!(size != -1)) ? qt_assert("size != -1",__FILE__,4818) : qt_noop());-
2127 return
executed 3930821 times by 532 tests: return QUtf8::convertToUnicode(str, size);
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
  • ...
QUtf8::convertToUnicode(str, size);
executed 3930821 times by 532 tests: return QUtf8::convertToUnicode(str, size);
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
2128}-
2129QString QString::fromUtf16(const ushort *unicode, int size)-
2130{-
2131 if (!unicode
!unicodeDescription
TRUEnever evaluated
FALSEevaluated 233831 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
)
0-233831
2132 return
never executed: return QString();
QString();
never executed: return QString();
0
2133 if (size < 0
size < 0Description
TRUEevaluated 164 times by 9 tests
Evaluated by:
  • tst_QDebug
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_QUrlInternal
  • tst_Utf8
FALSEevaluated 233667 times by 11 tests
Evaluated by:
  • tst_QItemModel
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlResult
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QTextCodec
  • tst_QUrlInternal
) {
164-233667
2134 size = 0;-
2135 while (unicode[size] != 0
unicode[size] != 0Description
TRUEevaluated 689 times by 9 tests
Evaluated by:
  • tst_QDebug
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_QUrlInternal
  • tst_Utf8
FALSEevaluated 164 times by 9 tests
Evaluated by:
  • tst_QDebug
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_QUrlInternal
  • tst_Utf8
)
164-689
2136 ++
executed 689 times by 9 tests: ++size;
Executed by:
  • tst_QDebug
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_QUrlInternal
  • tst_Utf8
size;
executed 689 times by 9 tests: ++size;
Executed by:
  • tst_QDebug
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_QUrlInternal
  • tst_Utf8
689
2137 }
executed 164 times by 9 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_QUrlInternal
  • tst_Utf8
164
2138 return
executed 233831 times by 18 tests: return QUtf16::convertToUnicode((const char *)unicode, size*2, 0);
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_Utf8
QUtf16::convertToUnicode((const char *)unicode, size*2, 0);
executed 233831 times by 18 tests: return QUtf16::convertToUnicode((const char *)unicode, size*2, 0);
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_Utf8
233831
2139}-
2140QString QString::fromUcs4(const uint *unicode, int size)-
2141{-
2142 if (!unicode
!unicodeDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 410515 times by 8 tests
Evaluated by:
  • tst_QLabel
  • tst_QString
  • tst_QStringIterator
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QXmlStream
  • tst_Utf8
  • tst_qmakelib
)
3-410515
2143 return
executed 3 times by 1 test: return QString();
Executed by:
  • tst_QString
QString();
executed 3 times by 1 test: return QString();
Executed by:
  • tst_QString
3
2144 if (size < 0
size < 0Description
TRUEevaluated 315 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_Utf8
  • tst_qmakelib
FALSEevaluated 410200 times by 7 tests
Evaluated by:
  • tst_QLabel
  • tst_QString
  • tst_QStringIterator
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QXmlStream
  • tst_Utf8
) {
315-410200
2145 size = 0;-
2146 while (unicode[size] != 0
unicode[size] != 0Description
TRUEevaluated 1163 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_Utf8
  • tst_qmakelib
FALSEevaluated 315 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_Utf8
  • tst_qmakelib
)
315-1163
2147 ++
executed 1163 times by 3 tests: ++size;
Executed by:
  • tst_QString
  • tst_Utf8
  • tst_qmakelib
size;
executed 1163 times by 3 tests: ++size;
Executed by:
  • tst_QString
  • tst_Utf8
  • tst_qmakelib
1163
2148 }
executed 315 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_Utf8
  • tst_qmakelib
315
2149 return
executed 410515 times by 8 tests: return QUtf32::convertToUnicode((const char *)unicode, size*4, 0);
Executed by:
  • tst_QLabel
  • tst_QString
  • tst_QStringIterator
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QXmlStream
  • tst_Utf8
  • tst_qmakelib
QUtf32::convertToUnicode((const char *)unicode, size*4, 0);
executed 410515 times by 8 tests: return QUtf32::convertToUnicode((const char *)unicode, size*4, 0);
Executed by:
  • tst_QLabel
  • tst_QString
  • tst_QStringIterator
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QXmlStream
  • tst_Utf8
  • tst_qmakelib
410515
2150}-
2151QString& QString::setUnicode(const QChar *unicode, int size)-
2152{-
2153 resize(size);-
2154 if (unicode
unicodeDescription
TRUEevaluated 184425 times by 20 tests
Evaluated by:
  • tst_QBoxLayout
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QProcess
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEnever evaluated
&& size
sizeDescription
TRUEevaluated 97555 times by 19 tests
Evaluated by:
  • tst_QBoxLayout
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QProcess
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 86870 times by 4 tests
Evaluated by:
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QMainWindow
  • tst_QTextStream
)
0-184425
2155 memcpy(d->data(), unicode, size * sizeof(QChar));
executed 97555 times by 19 tests: memcpy(d->data(), unicode, size * sizeof(QChar));
Executed by:
  • tst_QBoxLayout
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QProcess
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
97555
2156 return
executed 184425 times by 20 tests: return *this;
Executed by:
  • tst_QBoxLayout
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QProcess
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
*this;
executed 184425 times by 20 tests: return *this;
Executed by:
  • tst_QBoxLayout
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QProcess
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
184425
2157}-
2158QString QString::simplified_helper(const QString &str)-
2159{-
2160 return
executed 68112 times by 109 tests: return QStringAlgorithms<const QString>::simplified_helper(str);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
QStringAlgorithms<const QString>::simplified_helper(str);
executed 68112 times by 109 tests: return QStringAlgorithms<const QString>::simplified_helper(str);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
68112
2161}-
2162-
2163QString QString::simplified_helper(QString &str)-
2164{-
2165 return
executed 23141 times by 6 tests: return QStringAlgorithms<QString>::simplified_helper(str);
Executed by:
  • tst_Lancelot
  • tst_QImageReader
  • tst_QString
  • tst_QTextBoundaryFinder
  • tst_QXmlStream
  • tst_selftests - unknown status
QStringAlgorithms<QString>::simplified_helper(str);
executed 23141 times by 6 tests: return QStringAlgorithms<QString>::simplified_helper(str);
Executed by:
  • tst_Lancelot
  • tst_QImageReader
  • tst_QString
  • tst_QTextBoundaryFinder
  • tst_QXmlStream
  • tst_selftests - unknown status
23141
2166}-
2167QString QString::trimmed_helper(const QString &str)-
2168{-
2169 return
executed 8462 times by 104 tests: return QStringAlgorithms<const QString>::trimmed_helper(str);
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • ...
QStringAlgorithms<const QString>::trimmed_helper(str);
executed 8462 times by 104 tests: return QStringAlgorithms<const QString>::trimmed_helper(str);
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFile
  • ...
8462
2170}-
2171-
2172QString QString::trimmed_helper(QString &str)-
2173{-
2174 return
executed 6550 times by 31 tests: return QStringAlgorithms<QString>::trimmed_helper(str);
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QStaticText
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • ...
QStringAlgorithms<QString>::trimmed_helper(str);
executed 6550 times by 31 tests: return QStringAlgorithms<QString>::trimmed_helper(str);
Executed by:
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QStaticText
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • ...
6550
2175}-
2176void QString::truncate(int pos)-
2177{-
2178 if (pos < d->size
pos < d->sizeDescription
TRUEevaluated 42105615 times by 367 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_QBackingStore
  • ...
FALSEevaluated 3920098 times by 528 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_QAsn1Element
  • ...
)
3920098-42105615
2179 resize(pos);
executed 42105615 times by 367 tests: resize(pos);
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_QBackingStore
  • ...
42105615
2180}
executed 46025168 times by 564 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
  • ...
46025168
2181void QString::chop(int n)-
2182{-
2183 if (n > 0
n > 0Description
TRUEevaluated 68667 times by 364 tests
Evaluated by:
  • tst_Gestures
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
FALSEevaluated 140 times by 3 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_QString
  • tst_selftests - unknown status
)
140-68667
2184 resize(d->size - n);
executed 68667 times by 364 tests: resize(d->size - n);
Executed by:
  • tst_Gestures
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
68667
2185}
executed 68807 times by 364 tests: end of block
Executed by:
  • tst_Gestures
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
68807
2186QString& QString::fill(QChar ch, int size)-
2187{-
2188 resize(size < 0 ? d->size : size);-
2189 if (d->size
d->sizeDescription
TRUEevaluated 11557 times by 10 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
FALSEevaluated 5425 times by 5 tests
Evaluated by:
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QRegExp
  • tst_QXmlSimpleReader
) {
5425-11557
2190 QChar *i = (QChar*)d->data() + d->size;-
2191 QChar *b = (QChar*)d->data();-
2192 while (i != b
i != bDescription
TRUEevaluated 2697569 times by 10 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
FALSEevaluated 11557 times by 10 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
)
11557-2697569
2193 *--
executed 2697569 times by 10 tests: *--i = ch;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
i = ch;
executed 2697569 times by 10 tests: *--i = ch;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
2697569
2194 }
executed 11557 times by 10 tests: end of block
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
11557
2195 return
executed 16982 times by 12 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
*this;
executed 16982 times by 12 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
16982
2196}-
2197int QString::compare(const QString &other, Qt::CaseSensitivity cs) const noexcept-
2198{-
2199 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 240051 times by 215 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • ...
FALSEevaluated 513982 times by 161 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
)
240051-513982
2200 return
executed 240051 times by 215 tests: return ucstrcmp(constData(), length(), other.constData(), other.length());
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • ...
ucstrcmp(constData(), length(), other.constData(), other.length());
executed 240051 times by 215 tests: return ucstrcmp(constData(), length(), other.constData(), other.length());
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • ...
240051
2201 return
executed 513982 times by 161 tests: return ucstricmp(d->data(), d->data() + d->size, other.d->data(), other.d->data() + other.d->size);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
ucstricmp(d->data(), d->data() + d->size, other.d->data(), other.d->data() + other.d->size);
executed 513982 times by 161 tests: return ucstricmp(d->data(), d->data() + d->size, other.d->data(), other.d->data() + other.d->size);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
513982
2202}-
2203-
2204-
2205-
2206-
2207-
2208int QString::compare_helper(const QChar *data1, int length1, const QChar *data2, int length2,-
2209 Qt::CaseSensitivity cs) noexcept-
2210{-
2211 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 552902 times by 47 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QGraphicsSceneIndex
  • tst_QGuiApplication
  • tst_QHostAddress
  • tst_QImage
  • tst_QImageReader
  • tst_QItemModel
  • tst_QItemView
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • ...
FALSEevaluated 2594 times by 25 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_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_languageChange
  • tst_qmakelib
)
2594-552902
2212 return
executed 552902 times by 47 tests: return ucstrcmp(data1, length1, data2, length2);
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QGraphicsSceneIndex
  • tst_QGuiApplication
  • tst_QHostAddress
  • tst_QImage
  • tst_QImageReader
  • tst_QItemModel
  • tst_QItemView
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • ...
ucstrcmp(data1, length1, data2, length2);
executed 552902 times by 47 tests: return ucstrcmp(data1, length1, data2, length2);
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QGraphicsSceneIndex
  • tst_QGuiApplication
  • tst_QHostAddress
  • tst_QImage
  • tst_QImageReader
  • tst_QItemModel
  • tst_QItemView
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • ...
552902
2213 const ushort *s1 = reinterpret_cast<const ushort *>(data1);-
2214 const ushort *s2 = reinterpret_cast<const ushort *>(data2);-
2215 return
executed 2594 times by 25 tests: return ucstricmp(s1, s1 + length1, s2, s2 + length2);
Executed 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_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_languageChange
  • tst_qmakelib
ucstricmp(s1, s1 + length1, s2, s2 + length2);
executed 2594 times by 25 tests: return ucstricmp(s1, s1 + length1, s2, s2 + length2);
Executed 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_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolButton
  • tst_languageChange
  • tst_qmakelib
2594
2216}-
2217-
2218-
2219-
2220-
2221-
2222-
2223-
2224int QString::compare(QLatin1String other, Qt::CaseSensitivity cs) const noexcept-
2225{-
2226 return
executed 19282 times by 66 tests: return compare_helper(unicode(), length(), other, cs);
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFontDialog
  • ...
compare_helper(unicode(), length(), other, cs);
executed 19282 times by 66 tests: return compare_helper(unicode(), length(), other, cs);
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFontDialog
  • ...
19282
2227}-
2228int QString::compare_helper(const QChar *data1, int length1, const char *data2, int length2,-
2229 Qt::CaseSensitivity cs)-
2230{-
2231-
2232 const QString s2 = QString::fromUtf8(data2, length2 == -1 ? (data2 ? int(strlen(data2)) : -1) : length2);-
2233 return
executed 552553 times by 46 tests: return compare_helper(data1, length1, s2.constData(), s2.size(), cs);
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QGraphicsSceneIndex
  • tst_QGuiApplication
  • tst_QHostAddress
  • tst_QImage
  • tst_QImageReader
  • tst_QItemModel
  • tst_QItemView
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • ...
compare_helper(data1, length1, s2.constData(), s2.size(), cs);
executed 552553 times by 46 tests: return compare_helper(data1, length1, s2.constData(), s2.size(), cs);
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QGraphicsSceneIndex
  • tst_QGuiApplication
  • tst_QHostAddress
  • tst_QImage
  • tst_QImageReader
  • tst_QItemModel
  • tst_QItemView
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • ...
552553
2234}-
2235int QString::compare_helper(const QChar *data1, int length1, QLatin1String s2,-
2236 Qt::CaseSensitivity cs) noexcept-
2237{-
2238 const ushort *uc = reinterpret_cast<const ushort *>(data1);-
2239 const ushort *uce = uc + length1;-
2240 const uchar *c = (const uchar *)s2.latin1();-
2241-
2242 if (!c
!cDescription
TRUEnever evaluated
FALSEevaluated 235224 times by 445 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
)
0-235224
2243 return
never executed: return length1;
length1;
never executed: return length1;
0
2244-
2245 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 217591 times by 445 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
FALSEevaluated 17633 times by 48 tests
Evaluated by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • ...
) {
17633-217591
2246 return
executed 217591 times by 445 tests: return ucstrcmp(data1, length1, c, s2.size());
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
ucstrcmp(data1, length1, c, s2.size());
executed 217591 times by 445 tests: return ucstrcmp(data1, length1, c, s2.size());
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
217591
2247 } else {-
2248 return
executed 17633 times by 48 tests: return ucstricmp(uc, uce, c, c + s2.size());
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • ...
ucstricmp(uc, uce, c, c + s2.size());
executed 17633 times by 48 tests: return ucstricmp(uc, uce, c, c + s2.size());
Executed by:
  • tst_QAbstractPrintDialog
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPlainTextEdit
  • tst_QPrintDevice
  • tst_QPrinter
  • tst_QPrinterInfo
  • tst_QStaticText
  • ...
17633
2249 }-
2250}-
2251int QString::localeAwareCompare(const QString &other) const-
2252{-
2253 return
executed 11402 times by 6 tests: return localeAwareCompare_helper(constData(), length(), other.constData(), other.length());
Executed by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QListWidget
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
localeAwareCompare_helper(constData(), length(), other.constData(), other.length());
executed 11402 times by 6 tests: return localeAwareCompare_helper(constData(), length(), other.constData(), other.length());
Executed by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QListWidget
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
11402
2254}-
2255-
2256-
2257namespace { namespace Q_QGS_defaultCollator { typedef QThreadStorage<QCollator> Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 6 times by 6 tests
Evaluated by:
  • tst_modeltest - unknown status
  • tst_qitemmodel - unknown status
  • tst_qlistwidget - unknown status
  • tst_qtablewidget - unknown status
  • tst_qtreewidget - unknown status
  • tst_qtreewidgetitemiterator - unknown status
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 6 times by 6 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_modeltest - unknown status
  • tst_qitemmodel - unknown status
  • tst_qlistwidget - unknown status
  • tst_qtablewidget - unknown status
  • tst_qtreewidget - unknown status
  • tst_qtreewidgetitemiterator - unknown status
}
executed 6 times by 6 tests: end of block
Executed by:
  • tst_modeltest - unknown status
  • tst_qitemmodel - unknown status
  • tst_qlistwidget - unknown status
  • tst_qtablewidget - unknown status
  • tst_qtreewidget - unknown status
  • tst_qtreewidgetitemiterator - unknown status
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 22796 times by 6 tests: return &holder.value;
Executed by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QListWidget
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
&holder.value;
executed 22796 times by 6 tests: return &holder.value;
Executed by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QListWidget
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
} } } static QGlobalStatic<QThreadStorage<QCollator>, Q_QGS_defaultCollator::innerFunction, Q_QGS_defaultCollator::guard> defaultCollator;
0-22796
2258-
2259-
2260-
2261-
2262-
2263-
2264int QString::localeAwareCompare_helper(const QChar *data1, int length1,-
2265 const QChar *data2, int length2)-
2266{-
2267-
2268 if (length1 == 0
length1 == 0Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QTreeWidget
FALSEevaluated 11395 times by 6 tests
Evaluated by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QListWidget
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
|| length2 == 0
length2 == 0Description
TRUEnever evaluated
FALSEevaluated 11395 times by 6 tests
Evaluated by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QListWidget
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
)
0-11395
2269 return
executed 7 times by 1 test: return ucstrcmp(data1, length1, data2, length2);
Executed by:
  • tst_QTreeWidget
ucstrcmp(data1, length1, data2, length2);
executed 7 times by 1 test: return ucstrcmp(data1, length1, data2, length2);
Executed by:
  • tst_QTreeWidget
7
2270 if (!defaultCollator()->hasLocalData()
!defaultCollat...hasLocalData()Description
TRUEevaluated 6 times by 6 tests
Evaluated by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QListWidget
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
FALSEevaluated 11389 times by 5 tests
Evaluated by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QListWidget
  • tst_QTableWidget
  • tst_QTreeWidget
)
6-11389
2271 defaultCollator()->setLocalData(QCollator());
executed 6 times by 6 tests: defaultCollator()->setLocalData(QCollator());
Executed by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QListWidget
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
6
2272 return
executed 11395 times by 6 tests: return defaultCollator()->localData().compare(data1, length1, data2, length2);
Executed by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QListWidget
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
defaultCollator()->localData().compare(data1, length1, data2, length2);
executed 11395 times by 6 tests: return defaultCollator()->localData().compare(data1, length1, data2, length2);
Executed by:
  • tst_ModelTest
  • tst_QItemModel
  • tst_QListWidget
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
11395
2273}-
2274const ushort *QString::utf16() const-
2275{-
2276 if (((
((d)->offset !...(QStringData))Description
TRUEnever evaluated
FALSEevaluated 139250 times by 55 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFormLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMainWindow
  • tst_QMimeDatabase
  • ...
d)->offset != sizeof(QStringData))
((d)->offset !...(QStringData))Description
TRUEnever evaluated
FALSEevaluated 139250 times by 55 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFormLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMainWindow
  • tst_QMimeDatabase
  • ...
) {
0-139250
2277-
2278 const_cast<QString*>(this)->reallocData(uint(d->size) + 1u);-
2279 }
never executed: end of block
0
2280 return
executed 139250 times by 55 tests: return d->data();
Executed by:
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFormLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMainWindow
  • tst_QMimeDatabase
  • ...
d->data();
executed 139250 times by 55 tests: return d->data();
Executed by:
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFormLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMainWindow
  • tst_QMimeDatabase
  • ...
139250
2281}-
2282QString QString::leftJustified(int width, QChar fill, bool truncate) const-
2283{-
2284 QString result;-
2285 int len = length();-
2286 int padlen = width - len;-
2287 if (padlen > 0
padlen > 0Description
TRUEevaluated 806 times by 3 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
FALSEevaluated 4210 times by 1 test
Evaluated by:
  • tst_QString
) {
806-4210
2288 result.resize(len+padlen);-
2289 if (len
lenDescription
TRUEevaluated 805 times by 3 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
)
1-805
2290 memcpy(result.d->data(), d->data(), sizeof(QChar)*len);
executed 805 times by 3 tests: memcpy(result.d->data(), d->data(), sizeof(QChar)*len);
Executed by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
805
2291 QChar *uc = (QChar*)result.d->data() + len;-
2292 while (padlen--
padlen--Description
TRUEevaluated 32193 times by 3 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
FALSEevaluated 806 times by 3 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
)
806-32193
2293 *
executed 32193 times by 3 tests: * uc++ = fill;
Executed by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
uc++ = fill;
executed 32193 times by 3 tests: * uc++ = fill;
Executed by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
32193
2294 }
executed 806 times by 3 tests: end of block
Executed by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
else {
806
2295 if (truncate
truncateDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 4206 times by 1 test
Evaluated by:
  • tst_QString
)
4-4206
2296 result = left(width);
executed 4 times by 1 test: result = left(width);
Executed by:
  • tst_QString
4
2297 else-
2298 result = *this;
executed 4206 times by 1 test: result = *this;
Executed by:
  • tst_QString
4206
2299 }-
2300 return
executed 5016 times by 3 tests: return result;
Executed by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
result;
executed 5016 times by 3 tests: return result;
Executed by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
5016
2301}-
2302QString QString::rightJustified(int width, QChar fill, bool truncate) const-
2303{-
2304 QString result;-
2305 int len = length();-
2306 int padlen = width - len;-
2307 if (padlen > 0
padlen > 0Description
TRUEevaluated 802 times by 4 tests
Evaluated by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
FALSEevaluated 389151 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
) {
802-389151
2308 result.resize(len+padlen);-
2309 QChar *uc = (QChar*)result.d->data();-
2310 while (padlen--
padlen--Description
TRUEevaluated 30764 times by 4 tests
Evaluated by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
FALSEevaluated 802 times by 4 tests
Evaluated by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
)
802-30764
2311 *
executed 30764 times by 4 tests: * uc++ = fill;
Executed by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
uc++ = fill;
executed 30764 times by 4 tests: * uc++ = fill;
Executed by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
30764
2312 if (len
lenDescription
TRUEevaluated 801 times by 4 tests
Evaluated by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
)
1-801
2313 memcpy(uc, d->data(), sizeof(QChar)*len);
executed 801 times by 4 tests: memcpy(uc, d->data(), sizeof(QChar)*len);
Executed by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
801
2314 }
executed 802 times by 4 tests: end of block
Executed by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
else {
802
2315 if (truncate
truncateDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 389147 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
)
4-389147
2316 result = left(width);
executed 4 times by 1 test: result = left(width);
Executed by:
  • tst_QString
4
2317 else-
2318 result = *this;
executed 389147 times by 110 tests: result = *this;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
389147
2319 }-
2320 return
executed 389953 times by 110 tests: return result;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
result;
executed 389953 times by 110 tests: return result;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
389953
2321}-
2322namespace QUnicodeTables {-
2323template <typename Traits, typename T>-
2324__attribute__((noinline))-
2325static QString detachAndConvertCase(T &str, QStringIterator it)-
2326{-
2327 ((!(!str.isEmpty())) ? qt_assert("!str.isEmpty()",__FILE__,5802) : qt_noop());-
2328 QString s = std::move(str);-
2329 QChar *pp = s.begin() + it.index();-
2330-
2331 do {-
2332 uint uc = it.nextUnchecked();-
2333-
2334 const QUnicodeTables::Properties *prop = qGetProp(uc);-
2335 signed short caseDiff = Traits::caseDiff(prop);-
2336-
2337 if (__builtin_expect(!!(Traits::caseSpecial(prop)), false)
__builtin_expe...prop)), false)Description
TRUEevaluated 212 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2309443 times by 188 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
) {
212-2309443
2338 const ushort *specialCase = specialCaseMap + caseDiff;-
2339 ushort length = *specialCase++;-
2340-
2341 if (__builtin_expect(!!(length == 1), true)
__builtin_expe...h == 1), true)Description
TRUEevaluated 204 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QString
) {
8-204
2342 *pp++ = QChar(*specialCase);-
2343 }
executed 204 times by 1 test: end of block
Executed by:
  • tst_QString
else {
204
2344-
2345 int inpos = it.index() - 1;-
2346 int outpos = pp - s.constBegin();-
2347-
2348 s.replace(outpos, 1, reinterpret_cast<const QChar *>(specialCase), length);-
2349 pp = const_cast<QChar *>(s.constBegin()) + outpos + length;-
2350-
2351-
2352-
2353 if (str.isEmpty()
str.isEmpty()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
)
2-6
2354 it = QStringIterator(s.constBegin(), inpos + length, s.constEnd());
executed 6 times by 1 test: it = QStringIterator(s.constBegin(), inpos + length, s.constEnd());
Executed by:
  • tst_QString
6
2355 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QString
8
2356 } else if (__builtin_expect(!!(QChar::requiresSurrogates(uc)), false)
__builtin_expe...s(uc)), false)Description
TRUEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 2309420 times by 188 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
) {
23-2309420
2357-
2358 pp++;-
2359 *pp++ = QChar::lowSurrogate(uc + caseDiff);-
2360 }
executed 23 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
else {
23
2361 *pp++ = QChar(uc + caseDiff);-
2362 }
executed 2309420 times by 188 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
2309420
2363 } while (it.hasNext()
it.hasNext()Description
TRUEevaluated 2043470 times by 188 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
FALSEevaluated 266185 times by 188 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
);
266185-2043470
2364-
2365 return
executed 266185 times by 188 tests: return s;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
s;
executed 266185 times by 188 tests: return s;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
266185
2366}-
2367-
2368template <typename Traits, typename T>-
2369static QString convertCase(T &str)-
2370{-
2371 const QChar *p = str.constBegin();-
2372 const QChar *e = p + str.size();-
2373-
2374-
2375 while (e != p
e != pDescription
TRUEevaluated 545568 times by 222 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEevaluated 4050 times by 73 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontCache
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • ...
&& e[-1].isHighSurrogate()
e[-1].isHighSurrogate()Description
TRUEevaluated 2054 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 543514 times by 222 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • ...
)
2054-545568
2376 --
executed 2054 times by 1 test: --e;
Executed by:
  • tst_QString
e;
executed 2054 times by 1 test: --e;
Executed by:
  • tst_QString
2054
2377-
2378 QStringIterator it(p, e);-
2379 while (it.hasNext()
it.hasNext()Description
TRUEevaluated 1808666 times by 222 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEevaluated 281379 times by 181 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • ...
) {
281379-1808666
2380 uint uc = it.nextUnchecked();-
2381 if (Traits::caseDiff(qGetProp(uc))
Traits::caseDiff(qGetProp(uc))Description
TRUEevaluated 266185 times by 188 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
FALSEevaluated 1542481 times by 184 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • ...
) {
266185-1542481
2382 it.recedeUnchecked();-
2383 return
executed 266185 times by 188 tests: return detachAndConvertCase<Traits>(str, it);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
detachAndConvertCase<Traits>(str, it);
executed 266185 times by 188 tests: return detachAndConvertCase<Traits>(str, it);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
266185
2384 }-
2385 }
executed 1542481 times by 184 tests: end of block
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • ...
1542481
2386 return
executed 281379 times by 181 tests: return std::move(str);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • ...
std::move(str);
executed 281379 times by 181 tests: return std::move(str);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • ...
281379
2387}-
2388}-
2389-
2390QString QString::toLower_helper(const QString &str)-
2391{-
2392 return
executed 315713 times by 199 tests: return QUnicodeTables::convertCase<QUnicodeTables::LowercaseTraits>(str);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • 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_QDataStream
  • ...
QUnicodeTables::convertCase<QUnicodeTables::LowercaseTraits>(str);
executed 315713 times by 199 tests: return QUnicodeTables::convertCase<QUnicodeTables::LowercaseTraits>(str);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • 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_QDataStream
  • ...
315713
2393}-
2394-
2395QString QString::toLower_helper(QString &str)-
2396{-
2397 return
executed 45255 times by 174 tests: return QUnicodeTables::convertCase<QUnicodeTables::LowercaseTraits>(str);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
QUnicodeTables::convertCase<QUnicodeTables::LowercaseTraits>(str);
executed 45255 times by 174 tests: return QUnicodeTables::convertCase<QUnicodeTables::LowercaseTraits>(str);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • ...
45255
2398}-
2399QString QString::toCaseFolded_helper(const QString &str)-
2400{-
2401 return
executed 175937 times by 125 tests: return QUnicodeTables::convertCase<QUnicodeTables::CasefoldTraits>(str);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
QUnicodeTables::convertCase<QUnicodeTables::CasefoldTraits>(str);
executed 175937 times by 125 tests: return QUnicodeTables::convertCase<QUnicodeTables::CasefoldTraits>(str);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
175937
2402}-
2403-
2404QString QString::toCaseFolded_helper(QString &str)-
2405{-
2406 return
executed 18 times by 1 test: return QUnicodeTables::convertCase<QUnicodeTables::CasefoldTraits>(str);
Executed by:
  • tst_QString
QUnicodeTables::convertCase<QUnicodeTables::CasefoldTraits>(str);
executed 18 times by 1 test: return QUnicodeTables::convertCase<QUnicodeTables::CasefoldTraits>(str);
Executed by:
  • tst_QString
18
2407}-
2408QString QString::toUpper_helper(const QString &str)-
2409{-
2410 return
executed 6040 times by 15 tests: return QUnicodeTables::convertCase<QUnicodeTables::UppercaseTraits>(str);
Executed by:
  • tst_Collections
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QDateTime
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlRecord
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTextStream
  • tst_QTime
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
QUnicodeTables::convertCase<QUnicodeTables::UppercaseTraits>(str);
executed 6040 times by 15 tests: return QUnicodeTables::convertCase<QUnicodeTables::UppercaseTraits>(str);
Executed by:
  • tst_Collections
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QDateTime
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlRecord
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTextStream
  • tst_QTime
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
6040
2411}-
2412-
2413QString QString::toUpper_helper(QString &str)-
2414{-
2415 return
executed 4601 times by 23 tests: return QUnicodeTables::convertCase<QUnicodeTables::UppercaseTraits>(str);
Executed by:
  • tst_QAccessibility
  • tst_QColor
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHostInfo
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QSidebar
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlRecord
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_languageChange
QUnicodeTables::convertCase<QUnicodeTables::UppercaseTraits>(str);
executed 4601 times by 23 tests: return QUnicodeTables::convertCase<QUnicodeTables::UppercaseTraits>(str);
Executed by:
  • tst_QAccessibility
  • tst_QColor
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHostInfo
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QSidebar
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlRecord
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_languageChange
4601
2416}-
2417-
2418-
2419-
2420-
2421-
2422-
2423QString &QString::sprintf(const char *cformat, ...)-
2424{-
2425 va_list ap;-
2426 __builtin_va_start(ap,cformat);-
2427 *this = vasprintf(cformat, ap);-
2428 __builtin_va_end(ap);-
2429 return
executed 10040 times by 3 tests: return *this;
Executed by:
  • tst_QPrinter
  • tst_QString
  • tst_qmakelib
*this;
executed 10040 times by 3 tests: return *this;
Executed by:
  • tst_QPrinter
  • tst_QString
  • tst_qmakelib
10040
2430}-
2431QString QString::asprintf(const char *cformat, ...)-
2432{-
2433 va_list ap;-
2434 __builtin_va_start(ap,cformat);-
2435 const QString s = vasprintf(cformat, ap);-
2436 __builtin_va_end(ap);-
2437 return
executed 25965 times by 48 tests: return s;
Executed by:
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QChar
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QGetPutEnv
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLCDNumber
  • tst_QLatin1String
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • ...
s;
executed 25965 times by 48 tests: return s;
Executed by:
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QChar
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QGetPutEnv
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLCDNumber
  • tst_QLatin1String
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • ...
25965
2438}-
2439-
2440-
2441-
2442-
2443-
2444-
2445QString &QString::vsprintf(const char *cformat, va_list ap)-
2446{-
2447 return
never executed: return *this = vasprintf(cformat, ap);
*this = vasprintf(cformat, ap);
never executed: return *this = vasprintf(cformat, ap);
0
2448}-
2449-
2450static void append_utf8(QString &qs, const char *cs, int len)-
2451{-
2452 const int oldSize = qs.size();-
2453 qs.resize(oldSize + len);-
2454 const QChar *newEnd = QUtf8::convertToUnicode(qs.data() + oldSize, cs, len);-
2455 qs.resize(newEnd - qs.constData());-
2456}
executed 683187 times by 161 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
683187
2457-
2458static uint parse_flag_characters(const char * &c) noexcept-
2459{-
2460 uint flags = QLocaleData::ZeroPadExponent;-
2461 while (true) {-
2462 switch (*c) {-
2463 case
executed 4992 times by 1 test: case '#':
Executed by:
  • tst_QString
'#':
executed 4992 times by 1 test: case '#':
Executed by:
  • tst_QString
flags |= QLocaleData::Alternate; break;
executed 4992 times by 1 test: break;
Executed by:
  • tst_QString
4992
2464 case
executed 12678 times by 15 tests: case '0':
Executed by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
'0':
executed 12678 times by 15 tests: case '0':
Executed by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
flags |= QLocaleData::ZeroPadded; break;
executed 12678 times by 15 tests: break;
Executed by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
12678
2465 case
executed 5000 times by 1 test: case '-':
Executed by:
  • tst_QString
'-':
executed 5000 times by 1 test: case '-':
Executed by:
  • tst_QString
flags |= QLocaleData::LeftAdjusted; break;
executed 5000 times by 1 test: break;
Executed by:
  • tst_QString
5000
2466 case
executed 4992 times by 1 test: case ' ':
Executed by:
  • tst_QString
' ':
executed 4992 times by 1 test: case ' ':
Executed by:
  • tst_QString
flags |= QLocaleData::BlankBeforePositive; break;
executed 4992 times by 1 test: break;
Executed by:
  • tst_QString
4992
2467 case
executed 4992 times by 1 test: case '+':
Executed by:
  • tst_QString
'+':
executed 4992 times by 1 test: case '+':
Executed by:
  • tst_QString
flags |= QLocaleData::AlwaysShowSign; break;
executed 4992 times by 1 test: break;
Executed by:
  • tst_QString
4992
2468 case
executed 9984 times by 1 test: case '\'':
Executed by:
  • tst_QString
'\'':
executed 9984 times by 1 test: case '\'':
Executed by:
  • tst_QString
flags |= QLocaleData::ThousandsGroup; break;
executed 9984 times by 1 test: break;
Executed by:
  • tst_QString
9984
2469 default
executed 394937 times by 110 tests: default:
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
:
executed 394937 times by 110 tests: default:
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
return
executed 394937 times by 110 tests: return flags;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
flags;
executed 394937 times by 110 tests: return flags;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
394937
2470 }-
2471 ++c;-
2472 }
executed 42638 times by 15 tests: end of block
Executed by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
42638
2473}
never executed: end of block
0
2474-
2475static int parse_field_width(const char * &c)-
2476{-
2477 ((!(qIsDigit(*c))) ? qt_assert("qIsDigit(*c)",__FILE__,6010) : qt_noop());-
2478-
2479-
2480-
2481 const char *endp;-
2482 bool ok;-
2483 const qulonglong result = qstrtoull(c, &endp, 10, &ok);-
2484 c = endp;-
2485 while (qIsDigit(*c)
qIsDigit(*c)Description
TRUEnever evaluated
FALSEevaluated 24569 times by 22 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QTime
  • tst_QUdpSocket
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
)
0-24569
2486 ++
never executed: ++c;
c;
never executed: ++c;
0
2487 return
executed 24569 times by 22 tests: return ok && result < qulonglong(std::numeric_limits<int>::max()) ? int(result) : 0;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QTime
  • tst_QUdpSocket
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
ok && result < qulonglong(std::numeric_limits<int>::max()) ? int(result) : 0;
executed 24569 times by 22 tests: return ok && result < qulonglong(std::numeric_limits<int>::max()) ? int(result) : 0;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QTime
  • tst_QUdpSocket
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
24569
2488}-
2489-
2490enum LengthMod { lm_none, lm_hh, lm_h, lm_l, lm_ll, lm_L, lm_j, lm_z, lm_t };-
2491-
2492static inline bool can_consume(const char * &c, char ch) noexcept-
2493{-
2494 if (*
*c == chDescription
TRUEevaluated 2022 times by 3 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QStatusBar
  • tst_QString
FALSEevaluated 42 times by 7 tests
Evaluated by:
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QSslSocket
  • tst_QString
c == ch
*c == chDescription
TRUEevaluated 2022 times by 3 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QStatusBar
  • tst_QString
FALSEevaluated 42 times by 7 tests
Evaluated by:
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QSslSocket
  • tst_QString
) {
42-2022
2495 ++c;-
2496 return
executed 2022 times by 3 tests: return true;
Executed by:
  • tst_QAlgorithms
  • tst_QStatusBar
  • tst_QString
true;
executed 2022 times by 3 tests: return true;
Executed by:
  • tst_QAlgorithms
  • tst_QStatusBar
  • tst_QString
2022
2497 }-
2498 return
executed 42 times by 7 tests: return false;
Executed by:
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QSslSocket
  • tst_QString
false;
executed 42 times by 7 tests: return false;
Executed by:
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QSslSocket
  • tst_QString
42
2499}-
2500-
2501static LengthMod parse_length_modifier(const char * &c) noexcept-
2502{-
2503 switch (*c++) {-
2504 case
never executed: case 'h':
'h':
never executed: case 'h':
return
never executed: return can_consume(c, 'h') ? lm_hh : lm_h;
can_consume(c, 'h') ? lm_hh : lm_h;
never executed: return can_consume(c, 'h') ? lm_hh : lm_h;
0
2505 case
executed 2064 times by 9 tests: case 'l':
Executed by:
  • tst_QAlgorithms
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QSslSocket
  • tst_QStatusBar
  • tst_QString
'l':
executed 2064 times by 9 tests: case 'l':
Executed by:
  • tst_QAlgorithms
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QSslSocket
  • tst_QStatusBar
  • tst_QString
return
executed 2064 times by 9 tests: return can_consume(c, 'l') ? lm_ll : lm_l;
Executed by:
  • tst_QAlgorithms
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QSslSocket
  • tst_QStatusBar
  • tst_QString
can_consume(c, 'l') ? lm_ll : lm_l;
executed 2064 times by 9 tests: return can_consume(c, 'l') ? lm_ll : lm_l;
Executed by:
  • tst_QAlgorithms
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QSslSocket
  • tst_QStatusBar
  • tst_QString
2064
2506 case
never executed: case 'L':
'L':
never executed: case 'L':
return
never executed: return lm_L;
lm_L;
never executed: return lm_L;
0
2507 case
never executed: case 'j':
'j':
never executed: case 'j':
return
never executed: return lm_j;
lm_j;
never executed: return lm_j;
0
2508 case
executed 3 times by 1 test: case 'z':
Executed by:
  • tst_QString
'z':
executed 3 times by 1 test: case 'z':
Executed by:
  • tst_QString
3
2509 case
never executed: case 'Z':
'Z':
never executed: case 'Z':
return
executed 3 times by 1 test: return lm_z;
Executed by:
  • tst_QString
lm_z;
executed 3 times by 1 test: return lm_z;
Executed by:
  • tst_QString
0-3
2510 case
never executed: case 't':
't':
never executed: case 't':
return
never executed: return lm_t;
lm_t;
never executed: return lm_t;
0
2511 }-
2512 --c;-
2513 return
executed 392870 times by 110 tests: return lm_none;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
lm_none;
executed 392870 times by 110 tests: return lm_none;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
392870
2514}-
2515QString QString::vasprintf(const char *cformat, va_list ap)-
2516{-
2517 if (!cformat
!cformatDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 288236 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
|| !*cformat
!*cformatDescription
TRUEnever evaluated
FALSEevaluated 288236 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
) {
0-288236
2518-
2519 return
executed 1 time by 1 test: return fromLatin1("");
Executed by:
  • tst_QString
fromLatin1("");
executed 1 time by 1 test: return fromLatin1("");
Executed by:
  • tst_QString
1
2520 }-
2521-
2522-
2523-
2524 QString result;-
2525 const char *c = cformat;-
2526 for (;;) {-
2527-
2528 const char *cb = c;-
2529 while (*
*c != '\0'Description
TRUEevaluated 609515 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
FALSEevaluated 288236 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
c != '\0'
*c != '\0'Description
TRUEevaluated 609515 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
FALSEevaluated 288236 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
&& *
*c != '%'Description
TRUEevaluated 214564 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
FALSEevaluated 394951 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
c != '%'
*c != '%'Description
TRUEevaluated 214564 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
FALSEevaluated 394951 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
)
214564-609515
2530 c++;
executed 214564 times by 161 tests: c++;
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
214564
2531 append_utf8(result, cb, int(c - cb));-
2532-
2533 if (*
*c == '\0'Description
TRUEevaluated 288236 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
FALSEevaluated 394951 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
c == '\0'
*c == '\0'Description
TRUEevaluated 288236 times by 161 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
FALSEevaluated 394951 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
)
288236-394951
2534 break;
executed 288236 times by 161 tests: break;
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
288236
2535-
2536-
2537 const char *escape_start = c;-
2538 ++c;-
2539-
2540 if (*
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 394951 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
c == '\0'
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 394951 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
) {
0-394951
2541 result.append(QLatin1Char('%'));-
2542 break;
never executed: break;
0
2543 }-
2544 if (*
*c == '%'Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QPrinter
  • tst_QString
FALSEevaluated 394937 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
c == '%'
*c == '%'Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QPrinter
  • tst_QString
FALSEevaluated 394937 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
) {
14-394937
2545 result.append(QLatin1Char('%'));-
2546 ++c;-
2547 continue;
executed 14 times by 2 tests: continue;
Executed by:
  • tst_QPrinter
  • tst_QString
14
2548 }-
2549-
2550 uint flags = parse_flag_characters(c);-
2551-
2552 if (*
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 394937 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
c == '\0'
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 394937 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
) {
0-394937
2553 result.append(QLatin1String(escape_start));-
2554 break;
never executed: break;
0
2555 }-
2556-
2557-
2558 int width = -1;-
2559 if (qIsDigit(*c)
qIsDigit(*c)Description
TRUEevaluated 15195 times by 15 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEevaluated 379742 times by 103 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QFormLayout
  • tst_QGetPutEnv
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout1
  • ...
) {
15195-379742
2560 width = parse_field_width(c);-
2561 }
executed 15195 times by 15 tests: end of block
Executed by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
else if (*
*c == '*'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QLCDNumber
FALSEevaluated 379741 times by 103 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QFormLayout
  • tst_QGetPutEnv
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout1
  • ...
c == '*'
*c == '*'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QLCDNumber
FALSEevaluated 379741 times by 103 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QFormLayout
  • tst_QGetPutEnv
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout1
  • ...
) {
1-379741
2562 width = __builtin_va_arg(ap,int);-
2563 if (width < 0
width < 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QLCDNumber
)
0-1
2564 width = -1;
never executed: width = -1;
0
2565 ++c;-
2566 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QLCDNumber
1
2567-
2568 if (*
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 394937 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
c == '\0'
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 394937 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
) {
0-394937
2569 result.append(QLatin1String(escape_start));-
2570 break;
never executed: break;
0
2571 }-
2572-
2573-
2574 int precision = -1;-
2575 if (*
*c == '.'Description
TRUEevaluated 9375 times by 9 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QHttpSocketEngine
  • tst_QLCDNumber
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
FALSEevaluated 385562 times by 105 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • tst_QGetPutEnv
  • ...
c == '.'
*c == '.'Description
TRUEevaluated 9375 times by 9 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QHttpSocketEngine
  • tst_QLCDNumber
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
FALSEevaluated 385562 times by 105 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • tst_QGetPutEnv
  • ...
) {
9375-385562
2576 ++c;-
2577 if (qIsDigit(*c)
qIsDigit(*c)Description
TRUEevaluated 9374 times by 8 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QHttpSocketEngine
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QLCDNumber
) {
1-9374
2578 precision = parse_field_width(c);-
2579 }
executed 9374 times by 8 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QHttpSocketEngine
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
else if (*
*c == '*'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QLCDNumber
FALSEnever evaluated
c == '*'
*c == '*'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QLCDNumber
FALSEnever evaluated
) {
0-9374
2580 precision = __builtin_va_arg(ap,int);-
2581 if (precision < 0
precision < 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QLCDNumber
)
0-1
2582 precision = -1;
never executed: precision = -1;
0
2583 ++c;-
2584 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QLCDNumber
1
2585 }
executed 9375 times by 9 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QHttpSocketEngine
  • tst_QLCDNumber
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
9375
2586-
2587 if (*
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 394937 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
c == '\0'
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 394937 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
) {
0-394937
2588 result.append(QLatin1String(escape_start));-
2589 break;
never executed: break;
0
2590 }-
2591-
2592 const LengthMod length_mod = parse_length_modifier(c);-
2593-
2594 if (*
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 394937 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
c == '\0'
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 394937 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
) {
0-394937
2595 result.append(QLatin1String(escape_start));-
2596 break;
never executed: break;
0
2597 }-
2598-
2599-
2600 QString subst;-
2601 switch (*c) {-
2602 case
executed 288080 times by 46 tests: case 'd':
Executed by:
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFormLayout
  • tst_QGetPutEnv
  • tst_QGlyphRun
  • tst_QGraphicsGridLayout
  • tst_QGraphicsScene
  • tst_QImage
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPainter
  • tst_QReadWriteLock
  • tst_QRegExp
  • tst_QSettings
  • ...
'd':
executed 288080 times by 46 tests: case 'd':
Executed by:
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFormLayout
  • tst_QGetPutEnv
  • tst_QGlyphRun
  • tst_QGraphicsGridLayout
  • tst_QGraphicsScene
  • tst_QImage
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPainter
  • tst_QReadWriteLock
  • tst_QRegExp
  • tst_QSettings
  • ...
288080
2603 case
executed 750 times by 7 tests: case 'i':
Executed by:
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QCompleter
  • tst_QGuiVariant
  • tst_QString
  • tst_QVariant
  • tst_QWidgetsVariant
'i':
executed 750 times by 7 tests: case 'i':
Executed by:
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QCompleter
  • tst_QGuiVariant
  • tst_QString
  • tst_QVariant
  • tst_QWidgetsVariant
{
750
2604 qint64 i;-
2605 switch (length_mod) {-
2606 case
executed 288827 times by 50 tests: case lm_none:
Executed by:
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFormLayout
  • tst_QGetPutEnv
  • tst_QGlyphRun
  • tst_QGraphicsGridLayout
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPainter
  • ...
lm_none:
executed 288827 times by 50 tests: case lm_none:
Executed by:
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFormLayout
  • tst_QGetPutEnv
  • tst_QGlyphRun
  • tst_QGraphicsGridLayout
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPainter
  • ...
i = __builtin_va_arg(ap,int); break;
executed 288827 times by 50 tests: break;
Executed by:
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFormLayout
  • tst_QGetPutEnv
  • tst_QGlyphRun
  • tst_QGraphicsGridLayout
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPainter
  • ...
288827
2607 case
never executed: case lm_hh:
lm_hh:
never executed: case lm_hh:
i = __builtin_va_arg(ap,int); break;
never executed: break;
0
2608 case
never executed: case lm_h:
lm_h:
never executed: case lm_h:
i = __builtin_va_arg(ap,int); break;
never executed: break;
0
2609 case
executed 2 times by 2 tests: case lm_l:
Executed by:
  • tst_QSslSocket
  • tst_QString
lm_l:
executed 2 times by 2 tests: case lm_l:
Executed by:
  • tst_QSslSocket
  • tst_QString
i = __builtin_va_arg(ap,long int); break;
executed 2 times by 2 tests: break;
Executed by:
  • tst_QSslSocket
  • tst_QString
2
2610 case
executed 1 time by 1 test: case lm_ll:
Executed by:
  • tst_QStatusBar
lm_ll:
executed 1 time by 1 test: case lm_ll:
Executed by:
  • tst_QStatusBar
i = __builtin_va_arg(ap,qint64); break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QStatusBar
1
2611 case
never executed: case lm_j:
lm_j:
never executed: case lm_j:
i = __builtin_va_arg(ap,long int); break;
never executed: break;
0
2612 case
never executed: case lm_z:
lm_z:
never executed: case lm_z:
i = __builtin_va_arg(ap,size_t); break;
never executed: break;
0
2613 case
never executed: case lm_t:
lm_t:
never executed: case lm_t:
i = __builtin_va_arg(ap,int); break;
never executed: break;
0
2614 default
never executed: default:
:
never executed: default:
i = 0; break;
never executed: break;
0
2615 }-
2616 subst = QLocaleData::c()->longLongToString(i, precision, 10, width, flags);-
2617 ++c;-
2618 break;
executed 288830 times by 50 tests: break;
Executed by:
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QEasingCurve
  • tst_QFile
  • tst_QFormLayout
  • tst_QGetPutEnv
  • tst_QGlyphRun
  • tst_QGraphicsGridLayout
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPainter
  • ...
288830
2619 }-
2620 case
never executed: case 'o':
'o':
never executed: case 'o':
0
2621 case
executed 6 times by 2 tests: case 'u':
Executed by:
  • tst_QReadWriteLock
  • tst_QString
'u':
executed 6 times by 2 tests: case 'u':
Executed by:
  • tst_QReadWriteLock
  • tst_QString
6
2622 case
executed 6044 times by 5 tests: case 'x':
Executed by:
  • tst_QAlgorithms
  • tst_QGlyphRun
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
'x':
executed 6044 times by 5 tests: case 'x':
Executed by:
  • tst_QAlgorithms
  • tst_QGlyphRun
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
6044
2623 case
never executed: case 'X':
'X':
never executed: case 'X':
{
0
2624 quint64 u;-
2625 switch (length_mod) {-
2626 case
executed 4027 times by 6 tests: case lm_none:
Executed by:
  • tst_QAlgorithms
  • tst_QGlyphRun
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QReadWriteLock
lm_none:
executed 4027 times by 6 tests: case lm_none:
Executed by:
  • tst_QAlgorithms
  • tst_QGlyphRun
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QReadWriteLock
u = __builtin_va_arg(ap,uint); break;
executed 4027 times by 6 tests: break;
Executed by:
  • tst_QAlgorithms
  • tst_QGlyphRun
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QReadWriteLock
4027
2627 case
never executed: case lm_hh:
lm_hh:
never executed: case lm_hh:
u = __builtin_va_arg(ap,uint); break;
never executed: break;
0
2628 case
never executed: case lm_h:
lm_h:
never executed: case lm_h:
u = __builtin_va_arg(ap,uint); break;
never executed: break;
0
2629 case
never executed: case lm_l:
lm_l:
never executed: case lm_l:
u = __builtin_va_arg(ap,ulong); break;
never executed: break;
0
2630 case
executed 2020 times by 1 test: case lm_ll:
Executed by:
  • tst_QAlgorithms
lm_ll:
executed 2020 times by 1 test: case lm_ll:
Executed by:
  • tst_QAlgorithms
u = __builtin_va_arg(ap,quint64); break;
executed 2020 times by 1 test: break;
Executed by:
  • tst_QAlgorithms
2020
2631 case
executed 3 times by 1 test: case lm_z:
Executed by:
  • tst_QString
lm_z:
executed 3 times by 1 test: case lm_z:
Executed by:
  • tst_QString
u = __builtin_va_arg(ap,size_t); break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QString
3
2632 default
never executed: default:
:
never executed: default:
u = 0; break;
never executed: break;
0
2633 }-
2634-
2635 if (qIsUpper(*c)
qIsUpper(*c)Description
TRUEnever evaluated
FALSEevaluated 6050 times by 7 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QGlyphRun
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QReadWriteLock
  • tst_QString
)
0-6050
2636 flags |= QLocaleData::CapitalEorX;
never executed: flags |= QLocaleData::CapitalEorX;
0
2637-
2638 int base = 10;-
2639 switch (qToLower(*c)) {-
2640 case
never executed: case 'o':
'o':
never executed: case 'o':
0
2641 base = 8; break;
never executed: break;
0
2642 case
executed 6 times by 2 tests: case 'u':
Executed by:
  • tst_QReadWriteLock
  • tst_QString
'u':
executed 6 times by 2 tests: case 'u':
Executed by:
  • tst_QReadWriteLock
  • tst_QString
6
2643 base = 10; break;
executed 6 times by 2 tests: break;
Executed by:
  • tst_QReadWriteLock
  • tst_QString
6
2644 case
executed 6044 times by 5 tests: case 'x':
Executed by:
  • tst_QAlgorithms
  • tst_QGlyphRun
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
'x':
executed 6044 times by 5 tests: case 'x':
Executed by:
  • tst_QAlgorithms
  • tst_QGlyphRun
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
6044
2645 base = 16; break;
executed 6044 times by 5 tests: break;
Executed by:
  • tst_QAlgorithms
  • tst_QGlyphRun
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
6044
2646 default
never executed: default:
:
never executed: default:
break;
never executed: break;
0
2647 }-
2648 subst = QLocaleData::c()->unsLongLongToString(u, precision, base, width, flags);-
2649 ++c;-
2650 break;
executed 6050 times by 7 tests: break;
Executed by:
  • tst_QAlgorithms
  • tst_QGlyphRun
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QReadWriteLock
  • tst_QString
6050
2651 }-
2652 case
never executed: case 'E':
'E':
never executed: case 'E':
0
2653 case
never executed: case 'e':
'e':
never executed: case 'e':
0
2654 case
never executed: case 'F':
'F':
never executed: case 'F':
0
2655 case
executed 55 times by 8 tests: case 'f':
Executed by:
  • tst_PlatformSocketEngine
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
'f':
executed 55 times by 8 tests: case 'f':
Executed by:
  • tst_PlatformSocketEngine
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
55
2656 case
executed 4992 times by 1 test: case 'G':
Executed by:
  • tst_QString
'G':
executed 4992 times by 1 test: case 'G':
Executed by:
  • tst_QString
4992
2657 case
executed 5001 times by 3 tests: case 'g':
Executed by:
  • tst_QColor
  • tst_QLCDNumber
  • tst_QString
'g':
executed 5001 times by 3 tests: case 'g':
Executed by:
  • tst_QColor
  • tst_QLCDNumber
  • tst_QString
5001
2658 case
never executed: case 'A':
'A':
never executed: case 'A':
0
2659 case
never executed: case 'a':
'a':
never executed: case 'a':
{
0
2660 double d;-
2661 if (length_mod == lm_L
length_mod == lm_LDescription
TRUEnever evaluated
FALSEevaluated 10048 times by 10 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QColor
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QLCDNumber
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
)
0-10048
2662 d = __builtin_va_arg(ap,long double);
never executed: d = __builtin_va_arg(ap,long double);
0
2663 else-
2664 d = __builtin_va_arg(ap,double);
executed 10048 times by 10 tests: d = __builtin_va_arg(ap,double);
Executed by:
  • tst_PlatformSocketEngine
  • tst_QColor
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QLCDNumber
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
10048
2665-
2666 if (qIsUpper(*c)
qIsUpper(*c)Description
TRUEevaluated 4992 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 5056 times by 10 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QColor
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QLCDNumber
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
)
4992-5056
2667 flags |= QLocaleData::CapitalEorX;
executed 4992 times by 1 test: flags |= QLocaleData::CapitalEorX;
Executed by:
  • tst_QString
4992
2668-
2669 QLocaleData::DoubleForm form = QLocaleData::DFDecimal;-
2670 switch (qToLower(*c)) {-
2671 case
never executed: case 'e':
'e':
never executed: case 'e':
form = QLocaleData::DFExponent; break;
never executed: break;
0
2672 case
never executed: case 'a':
'a':
never executed: case 'a':
0
2673 case
executed 55 times by 8 tests: case 'f':
Executed by:
  • tst_PlatformSocketEngine
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
'f':
executed 55 times by 8 tests: case 'f':
Executed by:
  • tst_PlatformSocketEngine
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
form = QLocaleData::DFDecimal; break;
executed 55 times by 8 tests: break;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
55
2674 case
executed 9993 times by 3 tests: case 'g':
Executed by:
  • tst_QColor
  • tst_QLCDNumber
  • tst_QString
'g':
executed 9993 times by 3 tests: case 'g':
Executed by:
  • tst_QColor
  • tst_QLCDNumber
  • tst_QString
form = QLocaleData::DFSignificantDigits; break;
executed 9993 times by 3 tests: break;
Executed by:
  • tst_QColor
  • tst_QLCDNumber
  • tst_QString
9993
2675 default
never executed: default:
:
never executed: default:
break;
never executed: break;
0
2676 }-
2677 subst = QLocaleData::c()->doubleToString(d, precision, form, width, flags);-
2678 ++c;-
2679 break;
executed 10048 times by 10 tests: break;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QColor
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QLCDNumber
  • tst_QPrinter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
10048
2680 }-
2681 case
executed 218 times by 3 tests: case 'c':
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_selftests - unknown status
'c':
executed 218 times by 3 tests: case 'c':
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_selftests - unknown status
{
218
2682 if (length_mod == lm_l
length_mod == lm_lDescription
TRUEnever evaluated
FALSEevaluated 218 times by 3 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_selftests - unknown status
)
0-218
2683 subst = QChar((ushort) __builtin_va_arg(ap,int));
never executed: subst = QChar((ushort) __builtin_va_arg(ap,int));
0
2684 else-
2685 subst = QLatin1Char((uchar) __builtin_va_arg(ap,int));
executed 218 times by 3 tests: subst = QLatin1Char((uchar) __builtin_va_arg(ap,int));
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_selftests - unknown status
218
2686 ++c;-
2687 break;
executed 218 times by 3 tests: break;
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_selftests - unknown status
218
2688 }-
2689 case
executed 87840 times by 49 tests: case 's':
Executed by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCommandLineParser
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_QDebug
  • tst_QFormLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsLayout
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeySequence
  • tst_QLCDNumber
  • tst_QLatin1String
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaObject
  • ...
's':
executed 87840 times by 49 tests: case 's':
Executed by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCommandLineParser
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_QDebug
  • tst_QFormLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsLayout
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeySequence
  • tst_QLCDNumber
  • tst_QLatin1String
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaObject
  • ...
{
87840
2690 if (length_mod == lm_l
length_mod == lm_lDescription
TRUEevaluated 38 times by 6 tests
Evaluated by:
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QString
FALSEevaluated 87802 times by 49 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCommandLineParser
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_QDebug
  • tst_QFormLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsLayout
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeySequence
  • tst_QLCDNumber
  • tst_QLatin1String
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaObject
  • ...
) {
38-87802
2691 const ushort *buff = __builtin_va_arg(ap,const ushort*);-
2692 const ushort *ch = buff;-
2693 while (*
*ch != 0Description
TRUEevaluated 906 times by 5 tests
Evaluated by:
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMimeDatabase
  • tst_QString
FALSEevaluated 38 times by 6 tests
Evaluated by:
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QString
ch != 0
*ch != 0Description
TRUEevaluated 906 times by 5 tests
Evaluated by:
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMimeDatabase
  • tst_QString
FALSEevaluated 38 times by 6 tests
Evaluated by:
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QString
)
38-906
2694 ++
executed 906 times by 5 tests: ++ch;
Executed by:
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMimeDatabase
  • tst_QString
ch;
executed 906 times by 5 tests: ++ch;
Executed by:
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMimeDatabase
  • tst_QString
906
2695 subst.setUtf16(buff, ch - buff);-
2696 }
executed 38 times by 6 tests: end of block
Executed by:
  • tst_QBoxLayout
  • tst_QFormLayout
  • tst_QGridLayout
  • tst_QMainWindow
  • tst_QMimeDatabase
  • tst_QString
else
38
2697 subst = QString::fromUtf8(__builtin_va_arg(ap,const char*));
executed 87802 times by 49 tests: subst = QString::fromUtf8(__builtin_va_arg(ap,const char*));
Executed by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCommandLineParser
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_QDebug
  • tst_QFormLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsLayout
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeySequence
  • tst_QLCDNumber
  • tst_QLatin1String
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaObject
  • ...
87802
2698 if (precision != -1
precision != -1Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 87826 times by 49 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCommandLineParser
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_QDebug
  • tst_QFormLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsLayout
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeySequence
  • tst_QLCDNumber
  • tst_QLatin1String
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaObject
  • ...
)
14-87826
2699 subst.truncate(precision);
executed 14 times by 1 test: subst.truncate(precision);
Executed by:
  • tst_QString
14
2700 ++c;-
2701 break;
executed 87840 times by 49 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QBoxLayout
  • tst_QCommandLineParser
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDateTime
  • tst_QDebug
  • tst_QFormLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsLayout
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeySequence
  • tst_QLCDNumber
  • tst_QLatin1String
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaObject
  • ...
87840
2702 }-
2703 case
executed 1948 times by 33 tests: case 'p':
Executed by:
  • tst_QAccessibility
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QPrinter
  • tst_QSharedPointer
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QState
  • tst_QStateMachine
  • tst_QString
  • ...
'p':
executed 1948 times by 33 tests: case 'p':
Executed by:
  • tst_QAccessibility
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QPrinter
  • tst_QSharedPointer
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QState
  • tst_QStateMachine
  • tst_QString
  • ...
{
1948
2704 void *arg = __builtin_va_arg(ap,void*);-
2705 const quint64 i = reinterpret_cast<quintptr>(arg);-
2706 flags |= QLocaleData::Alternate;-
2707 subst = QLocaleData::c()->unsLongLongToString(i, precision, 16, width, flags);-
2708 ++c;-
2709 break;
executed 1948 times by 33 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QPrinter
  • tst_QSharedPointer
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QState
  • tst_QStateMachine
  • tst_QString
  • ...
1948
2710 }-
2711 case
executed 3 times by 1 test: case 'n':
Executed by:
  • tst_QString
'n':
executed 3 times by 1 test: case 'n':
Executed by:
  • tst_QString
3
2712 switch (length_mod) {-
2713 case
never executed: case lm_hh:
lm_hh:
never executed: case lm_hh:
{
0
2714 signed char *n = __builtin_va_arg(ap,signed char*);-
2715 *n = result.length();-
2716 break;
never executed: break;
0
2717 }-
2718 case
never executed: case lm_h:
lm_h:
never executed: case lm_h:
{
0
2719 short int *n = __builtin_va_arg(ap,short int*);-
2720 *n = result.length();-
2721 break;
never executed: break;
0
2722 }-
2723 case
never executed: case lm_l:
lm_l:
never executed: case lm_l:
{
0
2724 long int *n = __builtin_va_arg(ap,long int*);-
2725 *n = result.length();-
2726 break;
never executed: break;
0
2727 }-
2728 case
executed 1 time by 1 test: case lm_ll:
Executed by:
  • tst_QString
lm_ll:
executed 1 time by 1 test: case lm_ll:
Executed by:
  • tst_QString
{
1
2729 qint64 *n = __builtin_va_arg(ap,qint64*);-
2730 *n = result.length();-
2731 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QString
1
2732 }-
2733 default
executed 2 times by 1 test: default:
Executed by:
  • tst_QString
:
executed 2 times by 1 test: default:
Executed by:
  • tst_QString
{
2
2734 int *n = __builtin_va_arg(ap,int*);-
2735 *n = result.length();-
2736 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QString
2
2737 }-
2738 }-
2739 ++c;-
2740 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QString
3
2741-
2742 default
never executed: default:
:
never executed: default:
0
2743 for (const char *cc = escape_start; cc != c
cc != cDescription
TRUEnever evaluated
FALSEnever evaluated
; ++cc)
0
2744 result.append(QLatin1Char(*cc));
never executed: result.append(QLatin1Char(*cc));
0
2745 continue;
never executed: continue;
0
2746 }-
2747-
2748 if (flags & QLocaleData::LeftAdjusted
flags & QLocal...::LeftAdjustedDescription
TRUEevaluated 5000 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 389937 times by 110 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
)
5000-389937
2749 result.append(subst.leftJustified(width));
executed 5000 times by 1 test: result.append(subst.leftJustified(width));
Executed by:
  • tst_QString
5000
2750 else-
2751 result.append(subst.rightJustified(width));
executed 389937 times by 110 tests: result.append(subst.rightJustified(width));
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDate
  • tst_QDateTime
  • tst_QDebug
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFormLayout
  • ...
389937
2752 }-
2753-
2754 return
executed 288236 times by 161 tests: return result;
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
result;
executed 288236 times by 161 tests: return result;
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDataStream
  • ...
288236
2755}-
2756qint64 QString::toLongLong(bool *ok, int base) const-
2757{-
2758 return
executed 59908 times by 41 tests: return toIntegral_helper<qlonglong>(constData(), size(), ok, base);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • ...
toIntegral_helper<qlonglong>(constData(), size(), ok, base);
executed 59908 times by 41 tests: return toIntegral_helper<qlonglong>(constData(), size(), ok, base);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • ...
59908
2759}-
2760-
2761qlonglong QString::toIntegral_helper(const QChar *data, int len, bool *ok, int base)-
2762{-
2763-
2764-
2765-
2766-
2767-
2768-
2769-
2770 return
executed 156190 times by 67 tests: return QLocaleData::c()->stringToLongLong(data, len, base, ok, QLocale::RejectGroupSeparator);
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAction
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLabel
  • tst_QLayout
  • ...
QLocaleData::c()->stringToLongLong(data, len, base, ok, QLocale::RejectGroupSeparator);
executed 156190 times by 67 tests: return QLocaleData::c()->stringToLongLong(data, len, base, ok, QLocale::RejectGroupSeparator);
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAction
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLabel
  • tst_QLayout
  • ...
156190
2771}-
2772quint64 QString::toULongLong(bool *ok, int base) const-
2773{-
2774 return
executed 88 times by 4 tests: return toIntegral_helper<qulonglong>(constData(), size(), ok, base);
Executed by:
  • tst_QColorDialog
  • tst_QString
  • tst_QVariant
  • tst_languageChange
toIntegral_helper<qulonglong>(constData(), size(), ok, base);
executed 88 times by 4 tests: return toIntegral_helper<qulonglong>(constData(), size(), ok, base);
Executed by:
  • tst_QColorDialog
  • tst_QString
  • tst_QVariant
  • tst_languageChange
88
2775}-
2776-
2777qulonglong QString::toIntegral_helper(const QChar *data, uint len, bool *ok, int base)-
2778{-
2779-
2780-
2781-
2782-
2783-
2784-
2785-
2786 return
executed 3900 times by 20 tests: return QLocaleData::c()->stringToUnsLongLong(data, len, base, ok, QLocale::RejectGroupSeparator);
Executed by:
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QFtp
  • tst_QHostAddress
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
QLocaleData::c()->stringToUnsLongLong(data, len, base, ok,
executed 3900 times by 20 tests: return QLocaleData::c()->stringToUnsLongLong(data, len, base, ok, QLocale::RejectGroupSeparator);
Executed by:
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QFtp
  • tst_QHostAddress
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
3900
2787 QLocale::RejectGroupSeparator);
executed 3900 times by 20 tests: return QLocaleData::c()->stringToUnsLongLong(data, len, base, ok, QLocale::RejectGroupSeparator);
Executed by:
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QFtp
  • tst_QHostAddress
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Selftests
  • tst_languageChange
3900
2788}-
2789long QString::toLong(bool *ok, int base) const-
2790{-
2791 return
executed 54 times by 1 test: return toIntegral_helper<long>(constData(), size(), ok, base);
Executed by:
  • tst_QString
toIntegral_helper<long>(constData(), size(), ok, base);
executed 54 times by 1 test: return toIntegral_helper<long>(constData(), size(), ok, base);
Executed by:
  • tst_QString
54
2792}-
2793ulong QString::toULong(bool *ok, int base) const-
2794{-
2795 return
executed 40 times by 1 test: return toIntegral_helper<ulong>(constData(), size(), ok, base);
Executed by:
  • tst_QString
toIntegral_helper<ulong>(constData(), size(), ok, base);
executed 40 times by 1 test: return toIntegral_helper<ulong>(constData(), size(), ok, base);
Executed by:
  • tst_QString
40
2796}-
2797int QString::toInt(bool *ok, int base) const-
2798{-
2799 return
executed 34526 times by 23 tests: return toIntegral_helper<int>(constData(), size(), ok, base);
Executed by:
  • tst_Collections
  • tst_QCalendarWidget
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QLayout
  • tst_QPlugin
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSslKey
  • tst_QString
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTime
  • tst_QTreeWidget
  • tst_QXmlInputSource
  • tst_QtConcurrentMap
  • tst_qlibrary - unknown status
  • tst_qmakelib
toIntegral_helper<int>(constData(), size(), ok, base);
executed 34526 times by 23 tests: return toIntegral_helper<int>(constData(), size(), ok, base);
Executed by:
  • tst_Collections
  • tst_QCalendarWidget
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QLayout
  • tst_QPlugin
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSslKey
  • tst_QString
  • tst_QTextBoundaryFinder
  • tst_QTextCursor
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTime
  • tst_QTreeWidget
  • tst_QXmlInputSource
  • tst_QtConcurrentMap
  • tst_qlibrary - unknown status
  • tst_qmakelib
34526
2800}-
2801uint QString::toUInt(bool *ok, int base) const-
2802{-
2803 return
executed 1853 times by 10 tests: return toIntegral_helper<uint>(constData(), size(), ok, base);
Executed by:
  • tst_QFtp
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTcpServer
  • tst_QTextDocumentFragment
  • tst_QUdpSocket
  • tst_QXmlSimpleReader
toIntegral_helper<uint>(constData(), size(), ok, base);
executed 1853 times by 10 tests: return toIntegral_helper<uint>(constData(), size(), ok, base);
Executed by:
  • tst_QFtp
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTcpServer
  • tst_QTextDocumentFragment
  • tst_QUdpSocket
  • tst_QXmlSimpleReader
1853
2804}-
2805short QString::toShort(bool *ok, int base) const-
2806{-
2807 return
executed 70 times by 1 test: return toIntegral_helper<short>(constData(), size(), ok, base);
Executed by:
  • tst_QString
toIntegral_helper<short>(constData(), size(), ok, base);
executed 70 times by 1 test: return toIntegral_helper<short>(constData(), size(), ok, base);
Executed by:
  • tst_QString
70
2808}-
2809ushort QString::toUShort(bool *ok, int base) const-
2810{-
2811 return
executed 93 times by 4 tests: return toIntegral_helper<ushort>(constData(), size(), ok, base);
Executed by:
  • tst_QCssParser
  • tst_QFtp
  • tst_QString
  • tst_QTextList
toIntegral_helper<ushort>(constData(), size(), ok, base);
executed 93 times by 4 tests: return toIntegral_helper<ushort>(constData(), size(), ok, base);
Executed by:
  • tst_QCssParser
  • tst_QFtp
  • tst_QString
  • tst_QTextList
93
2812}-
2813double QString::toDouble(bool *ok) const-
2814{-
2815 return
executed 2767 times by 24 tests: return QLocaleData::c()->stringToDouble(constData(), size(), ok, QLocale::RejectGroupSeparator);
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
  • tst_QWidget
  • tst_Selftests
QLocaleData::c()->stringToDouble(constData(), size(), ok, QLocale::RejectGroupSeparator);
executed 2767 times by 24 tests: return QLocaleData::c()->stringToDouble(constData(), size(), ok, QLocale::RejectGroupSeparator);
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QVariant
  • tst_QWidget
  • tst_Selftests
2767
2816}-
2817float QString::toFloat(bool *ok) const-
2818{-
2819 return
executed 24 times by 3 tests: return QLocaleData::convertDoubleToFloat(toDouble(ok), ok);
Executed by:
  • tst_QObject
  • tst_QString
  • tst_QVariant
QLocaleData::convertDoubleToFloat(toDouble(ok), ok);
executed 24 times by 3 tests: return QLocaleData::convertDoubleToFloat(toDouble(ok), ok);
Executed by:
  • tst_QObject
  • tst_QString
  • tst_QVariant
24
2820}-
2821QString &QString::setNum(qlonglong n, int base)-
2822{-
2823 return
executed 26915 times by 6 tests: return *this = number(n, base);
Executed by:
  • tst_QHeaderView
  • tst_QLabel
  • tst_QMap
  • tst_QMap_StrictIterators
  • tst_QString
  • tst_qmakelib
*this = number(n, base);
executed 26915 times by 6 tests: return *this = number(n, base);
Executed by:
  • tst_QHeaderView
  • tst_QLabel
  • tst_QMap
  • tst_QMap_StrictIterators
  • tst_QString
  • tst_qmakelib
26915
2824}-
2825-
2826-
2827-
2828-
2829QString &QString::setNum(qulonglong n, int base)-
2830{-
2831 return
executed 4 times by 1 test: return *this = number(n, base);
Executed by:
  • tst_QString
*this = number(n, base);
executed 4 times by 1 test: return *this = number(n, base);
Executed by:
  • tst_QString
4
2832}-
2833QString &QString::setNum(double n, char f, int prec)-
2834{-
2835 return
executed 4 times by 2 tests: return *this = number(n, f, prec);
Executed by:
  • tst_QLabel
  • tst_QString
*this = number(n, f, prec);
executed 4 times by 2 tests: return *this = number(n, f, prec);
Executed by:
  • tst_QLabel
  • tst_QString
4
2836}-
2837QString QString::number(long n, int base)-
2838{-
2839 return
executed 18 times by 5 tests: return number(qlonglong(n), base);
Executed by:
  • tst_QColor
  • tst_QGuiVariant
  • tst_QSslSocket
  • tst_QString
  • tst_qlogging - unknown status
number(qlonglong(n), base);
executed 18 times by 5 tests: return number(qlonglong(n), base);
Executed by:
  • tst_QColor
  • tst_QGuiVariant
  • tst_QSslSocket
  • tst_QString
  • tst_qlogging - unknown status
18
2840}-
2841-
2842-
2843-
2844-
2845-
2846-
2847QString QString::number(ulong n, int base)-
2848{-
2849 return
executed 32 times by 4 tests: return number(qulonglong(n), base);
Executed by:
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QString
number(qulonglong(n), base);
executed 32 times by 4 tests: return number(qulonglong(n), base);
Executed by:
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QString
32
2850}-
2851-
2852-
2853-
2854-
2855QString QString::number(int n, int base)-
2856{-
2857 return
executed 4190033 times by 174 tests: return number(qlonglong(n), base);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCache
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
number(qlonglong(n), base);
executed 4190033 times by 174 tests: return number(qlonglong(n), base);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCache
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
4190033
2858}-
2859-
2860-
2861-
2862-
2863QString QString::number(uint n, int base)-
2864{-
2865 return
executed 17442 times by 63 tests: return number(qulonglong(n), base);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QBrush
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDataStream
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QItemSelectionModel
  • tst_QMenu
  • tst_QMimeData
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • ...
number(qulonglong(n), base);
executed 17442 times by 63 tests: return number(qulonglong(n), base);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QBrush
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDataStream
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QItemSelectionModel
  • tst_QMenu
  • tst_QMimeData
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • ...
17442
2866}-
2867-
2868-
2869-
2870-
2871QString QString::number(qlonglong n, int base)-
2872{-
2873-
2874-
2875-
2876-
2877-
2878-
2879 return
executed 4257340 times by 187 tests: return QLocaleData::c()->longLongToString(n, -1, base);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCache
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
QLocaleData::c()->longLongToString(n, -1, base);
executed 4257340 times by 187 tests: return QLocaleData::c()->longLongToString(n, -1, base);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCache
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
4257340
2880}-
2881-
2882-
2883-
2884-
2885QString QString::number(qulonglong n, int base)-
2886{-
2887-
2888-
2889-
2890-
2891-
2892-
2893 return
executed 19380 times by 78 tests: return QLocaleData::c()->unsLongLongToString(n, -1, base);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBrush
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • ...
QLocaleData::c()->unsLongLongToString(n, -1, base);
executed 19380 times by 78 tests: return QLocaleData::c()->unsLongLongToString(n, -1, base);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBrush
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • ...
19380
2894}-
2895QString QString::number(double n, char f, int prec)-
2896{-
2897 QLocaleData::DoubleForm form = QLocaleData::DFDecimal;-
2898 uint flags = 0;-
2899-
2900 if (qIsUpper(f)
qIsUpper(f)Description
TRUEnever evaluated
FALSEevaluated 2943 times by 30 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMetaType
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTreeWidget
  • ...
)
0-2943
2901 flags = QLocaleData::CapitalEorX;
never executed: flags = QLocaleData::CapitalEorX;
0
2902 f = qToLower(f);-
2903-
2904 switch (f) {-
2905 case
executed 983 times by 9 tests: case 'f':
Executed by:
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocument
  • tst_selftests - unknown status
'f':
executed 983 times by 9 tests: case 'f':
Executed by:
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocument
  • tst_selftests - unknown status
983
2906 form = QLocaleData::DFDecimal;-
2907 break;
executed 983 times by 9 tests: break;
Executed by:
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocument
  • tst_selftests - unknown status
983
2908 case
executed 12 times by 2 tests: case 'e':
Executed by:
  • tst_QString
  • tst_QStringRef
'e':
executed 12 times by 2 tests: case 'e':
Executed by:
  • tst_QString
  • tst_QStringRef
12
2909 form = QLocaleData::DFExponent;-
2910 break;
executed 12 times by 2 tests: break;
Executed by:
  • tst_QString
  • tst_QStringRef
12
2911 case
executed 1948 times by 24 tests: case 'g':
Executed by:
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QFont
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMetaType
  • tst_QPlainTextEdit
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidget
  • tst_QXmlStream
  • tst_qmakelib
'g':
executed 1948 times by 24 tests: case 'g':
Executed by:
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QFont
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMetaType
  • tst_QPlainTextEdit
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidget
  • tst_QXmlStream
  • tst_qmakelib
1948
2912 form = QLocaleData::DFSignificantDigits;-
2913 break;
executed 1948 times by 24 tests: break;
Executed by:
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QFont
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMetaType
  • tst_QPlainTextEdit
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidget
  • tst_QXmlStream
  • tst_qmakelib
1948
2914 default
never executed: default:
:
never executed: default:
0
2915-
2916-
2917-
2918 break;
never executed: break;
0
2919 }-
2920-
2921 return
executed 2943 times by 30 tests: return QLocaleData::c()->doubleToString(n, prec, form, -1, flags);
Executed by:
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMetaType
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTreeWidget
  • ...
QLocaleData::c()->doubleToString(n, prec, form, -1, flags);
executed 2943 times by 30 tests: return QLocaleData::c()->doubleToString(n, prec, form, -1, flags);
Executed by:
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMetaType
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTreeWidget
  • ...
2943
2922}-
2923-
2924namespace {-
2925template<class ResultList, class StringSource>-
2926static ResultList splitString(const StringSource &source, const QChar *sep,-
2927 QString::SplitBehavior behavior, Qt::CaseSensitivity cs, const int separatorSize)-
2928{-
2929 ResultList list;-
2930 int start = 0;-
2931 int end;-
2932 int extra = 0;-
2933 while ((
(end = qFindSt...ze, cs)) != -1Description
TRUEevaluated 348424 times by 239 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 79663 times by 275 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
end = qFindString(source.constData(), source.size(), start + extra, sep, separatorSize, cs)) != -1
(end = qFindSt...ze, cs)) != -1Description
TRUEevaluated 348424 times by 239 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 79663 times by 275 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
) {
79663-348424
2934 if (start != end
start != endDescription
TRUEevaluated 324893 times by 239 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 23531 times by 55 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QDir
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QImage
  • ...
|| behavior == QString::KeepEmptyParts
behavior == QS...KeepEmptyPartsDescription
TRUEevaluated 1144 times by 23 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QFiledialog
  • tst_QKeySequence
  • tst_QString
  • tst_QStringRef
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 22387 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDir
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSidebar
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • ...
)
1144-324893
2935 list.append(source.mid(start, end - start));
executed 326037 times by 239 tests: list.append(source.mid(start, end - start));
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
326037
2936 start = end + separatorSize;-
2937 extra = (separatorSize == 0
separatorSize == 0Description
TRUEevaluated 48 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 348376 times by 239 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
? 1 : 0);
48-348376
2938 }
executed 348424 times by 239 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
348424
2939 if (start != source.size()
start != source.size()Description
TRUEevaluated 76216 times by 266 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
FALSEevaluated 3447 times by 59 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDir
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGLFunctions
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QHostInfo
  • ...
|| behavior == QString::KeepEmptyParts
behavior == QS...KeepEmptyPartsDescription
TRUEevaluated 2867 times by 51 tests
Evaluated by:
  • tst_QApplication
  • tst_QBrush
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDnsLookup
  • tst_QFiledialog
  • tst_QGLFunctions
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QHostInfo
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QKeySequence
  • ...
FALSEevaluated 580 times by 18 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDateTime
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSidebar
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_qmakelib
  • tst_rcc
)
580-76216
2940 list.append(source.mid(start, -1));
executed 79083 times by 274 tests: list.append(source.mid(start, -1));
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
79083
2941 return
executed 79663 times by 275 tests: return list;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
list;
executed 79663 times by 275 tests: return list;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
79663
2942}-
2943-
2944}-
2945QStringList QString::split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const-
2946{-
2947 return
executed 607 times by 23 tests: return splitString<QStringList>(*this, sep.constData(), behavior, cs, sep.size());
Executed by:
  • tst_QBrush
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeySequence
  • tst_QPainter
  • tst_QPixmap
  • tst_QProcess
  • tst_QSettings
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
splitString<QStringList>(*this, sep.constData(), behavior, cs, sep.size());
executed 607 times by 23 tests: return splitString<QStringList>(*this, sep.constData(), behavior, cs, sep.size());
Executed by:
  • tst_QBrush
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeySequence
  • tst_QPainter
  • tst_QPixmap
  • tst_QProcess
  • tst_QSettings
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_languageChange
  • tst_qmakelib
607
2948}-
2949QVector<QStringRef> QString::splitRef(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const-
2950{-
2951 return
executed 2243 times by 13 tests: return splitString<QVector<QStringRef> >(QStringRef(this), sep.constData(), behavior, cs, sep.size());
Executed by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
splitString<QVector<QStringRef> >(QStringRef(this), sep.constData(), behavior, cs, sep.size());
executed 2243 times by 13 tests: return splitString<QVector<QStringRef> >(QStringRef(this), sep.constData(), behavior, cs, sep.size());
Executed by:
  • tst_QCommandLineParser
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qmakelib
  • tst_rcc
2243
2952}-
2953-
2954-
2955-
2956QStringList QString::split(QChar sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const-
2957{-
2958 return
executed 29542 times by 81 tests: return splitString<QStringList>(*this, &sep, behavior, cs, 1);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup
  • tst_QEasingCurve
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • tst_QGLFunctions
  • ...
splitString<QStringList>(*this, &sep, behavior, cs, 1);
executed 29542 times by 81 tests: return splitString<QStringList>(*this, &sep, behavior, cs, 1);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup
  • tst_QEasingCurve
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFtp
  • tst_QGLFunctions
  • ...
29542
2959}-
2960-
2961-
2962-
2963-
2964-
2965QVector<QStringRef> QString::splitRef(QChar sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const-
2966{-
2967 return
executed 43525 times by 238 tests: return splitString<QVector<QStringRef> >(QStringRef(this), &sep, behavior, cs, 1);
Executed by:
  • tst_Gestures
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
splitString<QVector<QStringRef> >(QStringRef(this), &sep, behavior, cs, 1);
executed 43525 times by 238 tests: return splitString<QVector<QStringRef> >(QStringRef(this), &sep, behavior, cs, 1);
Executed by:
  • tst_Gestures
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
43525
2968}-
2969QVector<QStringRef> QStringRef::split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const-
2970{-
2971 return
executed 32 times by 2 tests: return splitString<QVector<QStringRef> >(*this, sep.constData(), behavior, cs, sep.size());
Executed by:
  • tst_QImage
  • tst_QStringRef
splitString<QVector<QStringRef> >(*this, sep.constData(), behavior, cs, sep.size());
executed 32 times by 2 tests: return splitString<QVector<QStringRef> >(*this, sep.constData(), behavior, cs, sep.size());
Executed by:
  • tst_QImage
  • tst_QStringRef
32
2972}-
2973-
2974-
2975-
2976-
2977-
2978QVector<QStringRef> QStringRef::split(QChar sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const-
2979{-
2980 return
executed 3714 times by 168 tests: return splitString<QVector<QStringRef> >(*this, &sep, behavior, cs, 1);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
splitString<QVector<QStringRef> >(*this, &sep, behavior, cs, 1);
executed 3714 times by 168 tests: return splitString<QVector<QStringRef> >(*this, &sep, behavior, cs, 1);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
3714
2981}-
2982-
2983-
2984namespace {-
2985template<class ResultList, typename MidMethod>-
2986static ResultList splitString(const QString &source, MidMethod mid, const QRegExp &rx, QString::SplitBehavior behavior)-
2987{-
2988 QRegExp rx2(rx);-
2989 ResultList list;-
2990 int start = 0;-
2991 int extra = 0;-
2992 int end;-
2993 while ((
(end = rx2.ind... extra)) != -1Description
TRUEevaluated 14366 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
FALSEevaluated 506 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
end = rx2.indexIn(source, start + extra)) != -1
(end = rx2.ind... extra)) != -1Description
TRUEevaluated 14366 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
FALSEevaluated 506 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
) {
506-14366
2994 int matchedLen = rx2.matchedLength();-
2995 if (start != end
start != endDescription
TRUEevaluated 13920 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
FALSEevaluated 446 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QString
  • tst_languageChange
|| behavior == QString::KeepEmptyParts
behavior == QS...KeepEmptyPartsDescription
TRUEevaluated 424 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QString
  • tst_languageChange
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
)
22-13920
2996 list.append((source.*mid)(start, end - start));
executed 14344 times by 6 tests: list.append((source.*mid)(start, end - start));
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
14344
2997 start = end + matchedLen;-
2998 extra = (
(matchedLen == 0)Description
TRUEevaluated 62 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 14304 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
matchedLen == 0)
(matchedLen == 0)Description
TRUEevaluated 62 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 14304 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
? 1 : 0;
62-14304
2999 }
executed 14366 times by 6 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
14366
3000 if (start != source.size()
start != source.size()Description
TRUEevaluated 114 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QString
FALSEevaluated 392 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
|| behavior == QString::KeepEmptyParts
behavior == QS...KeepEmptyPartsDescription
TRUEevaluated 379 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QString
  • tst_languageChange
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_QString
)
13-392
3001 list.append((source.*mid)(start, -1));
executed 493 times by 5 tests: list.append((source.*mid)(start, -1));
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QString
  • tst_languageChange
493
3002 return
executed 506 times by 6 tests: return list;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
list;
executed 506 times by 6 tests: return list;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
506
3003}-
3004}-
3005QStringList QString::split(const QRegExp &rx, SplitBehavior behavior) const-
3006{-
3007 return
executed 479 times by 6 tests: return splitString<QStringList>(*this, &QString::mid, rx, behavior);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
splitString<QStringList>(*this, &QString::mid, rx, behavior);
executed 479 times by 6 tests: return splitString<QStringList>(*this, &QString::mid, rx, behavior);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_languageChange
479
3008}-
3009QVector<QStringRef> QString::splitRef(const QRegExp &rx, SplitBehavior behavior) const-
3010{-
3011 return
executed 27 times by 1 test: return splitString<QVector<QStringRef> >(*this, &QString::midRef, rx, behavior);
Executed by:
  • tst_QString
splitString<QVector<QStringRef> >(*this, &QString::midRef, rx, behavior);
executed 27 times by 1 test: return splitString<QVector<QStringRef> >(*this, &QString::midRef, rx, behavior);
Executed by:
  • tst_QString
27
3012}-
3013-
3014-
3015-
3016-
3017namespace {-
3018template<class ResultList, typename MidMethod>-
3019static ResultList splitString(const QString &source, MidMethod mid, const QRegularExpression &re,-
3020 QString::SplitBehavior behavior)-
3021{-
3022 ResultList list;-
3023 if (!re.isValid()
!re.isValid()Description
TRUEnever evaluated
FALSEevaluated 54 times by 1 test
Evaluated by:
  • tst_QString
) {
0-54
3024 QMessageLogger(__FILE__, 7016, __PRETTY_FUNCTION__).warning("QString::split: invalid QRegularExpression object");-
3025 return
never executed: return list;
list;
never executed: return list;
0
3026 }-
3027-
3028 int start = 0;-
3029 int end = 0;-
3030 QRegularExpressionMatchIterator iterator = re.globalMatch(source);-
3031 while (iterator.hasNext()
iterator.hasNext()Description
TRUEevaluated 210 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 54 times by 1 test
Evaluated by:
  • tst_QString
) {
54-210
3032 QRegularExpressionMatch match = iterator.next();-
3033 end = match.capturedStart();-
3034 if (start != end
start != endDescription
TRUEevaluated 146 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_QString
|| behavior == QString::KeepEmptyParts
behavior == QS...KeepEmptyPartsDescription
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
)
22-146
3035 list.append((source.*mid)(start, end - start));
executed 188 times by 1 test: list.append((source.*mid)(start, end - start));
Executed by:
  • tst_QString
188
3036 start = match.capturedEnd();-
3037 }
executed 210 times by 1 test: end of block
Executed by:
  • tst_QString
210
3038-
3039 if (start != source.size()
start != source.size()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_QString
|| behavior == QString::KeepEmptyParts
behavior == QS...KeepEmptyPartsDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QString
)
12-34
3040 list.append((source.*mid)(start, -1));
executed 42 times by 1 test: list.append((source.*mid)(start, -1));
Executed by:
  • tst_QString
42
3041-
3042 return
executed 54 times by 1 test: return list;
Executed by:
  • tst_QString
list;
executed 54 times by 1 test: return list;
Executed by:
  • tst_QString
54
3043}-
3044}-
3045QStringList QString::split(const QRegularExpression &re, SplitBehavior behavior) const-
3046{-
3047 return
executed 27 times by 1 test: return splitString<QStringList>(*this, &QString::mid, re, behavior);
Executed by:
  • tst_QString
splitString<QStringList>(*this, &QString::mid, re, behavior);
executed 27 times by 1 test: return splitString<QStringList>(*this, &QString::mid, re, behavior);
Executed by:
  • tst_QString
27
3048}-
3049QVector<QStringRef> QString::splitRef(const QRegularExpression &re, SplitBehavior behavior) const-
3050{-
3051 return
executed 27 times by 1 test: return splitString<QVector<QStringRef> >(*this, &QString::midRef, re, behavior);
Executed by:
  • tst_QString
splitString<QVector<QStringRef> >(*this, &QString::midRef, re, behavior);
executed 27 times by 1 test: return splitString<QVector<QStringRef> >(*this, &QString::midRef, re, behavior);
Executed by:
  • tst_QString
27
3052}-
3053QString QString::repeated(int times) const-
3054{-
3055 if (d->size == 0
d->size == 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QImageReader
  • tst_QString
)
5-9
3056 return
executed 5 times by 1 test: return *this;
Executed by:
  • tst_QString
*this;
executed 5 times by 1 test: return *this;
Executed by:
  • tst_QString
5
3057-
3058 if (times <= 1
times <= 1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QImageReader
  • tst_QString
) {
4-5
3059 if (times == 1
times == 1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QString
)
1-3
3060 return
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QString
*this;
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QString
1
3061 return
executed 3 times by 1 test: return QString();
Executed by:
  • tst_QString
QString();
executed 3 times by 1 test: return QString();
Executed by:
  • tst_QString
3
3062 }-
3063-
3064 const int resultSize = times * d->size;-
3065-
3066 QString result;-
3067 result.reserve(resultSize);-
3068 if (result.d->alloc != uint(resultSize) + 1u
result.d->allo...sultSize) + 1uDescription
TRUEnever evaluated
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QImageReader
  • tst_QString
)
0-5
3069 return
never executed: return QString();
QString();
never executed: return QString();
0
3070-
3071 memcpy(result.d->data(), d->data(), d->size * sizeof(ushort));-
3072-
3073 int sizeSoFar = d->size;-
3074 ushort *end = result.d->data() + sizeSoFar;-
3075-
3076 const int halfResultSize = resultSize >> 1;-
3077 while (sizeSoFar <= halfResultSize
sizeSoFar <= halfResultSizeDescription
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QImageReader
  • tst_QString
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QImageReader
  • tst_QString
) {
5-16
3078 memcpy(end, result.d->data(), sizeSoFar * sizeof(ushort));-
3079 end += sizeSoFar;-
3080 sizeSoFar <<= 1;-
3081 }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_QImageReader
  • tst_QString
16
3082 memcpy(end, result.d->data(), (resultSize - sizeSoFar) * sizeof(ushort));-
3083 result.d->data()[resultSize] = '\0';-
3084 result.d->size = resultSize;-
3085 return
executed 5 times by 2 tests: return result;
Executed by:
  • tst_QImageReader
  • tst_QString
result;
executed 5 times by 2 tests: return result;
Executed by:
  • tst_QImageReader
  • tst_QString
5
3086}-
3087-
3088void qt_string_normalize(QString *data, QString::NormalizationForm mode, QChar::UnicodeVersion version, int from)-
3089{-
3090 bool simple = true;-
3091 const QChar *p = data->constData();-
3092 int len = data->length();-
3093 for (int i = from; i < len
i < lenDescription
TRUEevaluated 613961 times by 9 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QLabel
  • tst_QNetworkCookie
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 11145 times by 3 tests
Evaluated by:
  • tst_QChar
  • tst_QUrl
  • tst_QUrlInternal
; ++i) {
11145-613961
3094 if (p[i].unicode() >= 0x80
p[i].unicode() >= 0x80Description
TRUEevaluated 566027 times by 9 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QLabel
  • tst_QNetworkCookie
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 47934 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
) {
47934-566027
3095 simple = false;-
3096 if (i > from
i > fromDescription
TRUEevaluated 32700 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 533327 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QLabel
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QUrl
  • tst_QUrlInternal
)
32700-533327
3097 from = i - 1;
executed 32700 times by 6 tests: from = i - 1;
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
32700
3098 break;
executed 566027 times by 9 tests: break;
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QLabel
  • tst_QNetworkCookie
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QUrl
  • tst_QUrlInternal
566027
3099 }-
3100 }
executed 47934 times by 6 tests: end of block
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
47934
3101 if (simple
simpleDescription
TRUEevaluated 11145 times by 3 tests
Evaluated by:
  • tst_QChar
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 566027 times by 9 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QLabel
  • tst_QNetworkCookie
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QUrl
  • tst_QUrlInternal
)
11145-566027
3102 return;
executed 11145 times by 3 tests: return;
Executed by:
  • tst_QChar
  • tst_QUrl
  • tst_QUrlInternal
11145
3103-
3104 if (version == QChar::Unicode_Unassigned
version == QCh...ode_UnassignedDescription
TRUEevaluated 565704 times by 4 tests
Evaluated by:
  • tst_QChar
  • tst_QLabel
  • tst_QTextLayout
  • tst_QTextScriptEngine
FALSEevaluated 323 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
) {
323-565704
3105 version = QChar::currentUnicodeVersion();-
3106 }
executed 565704 times by 4 tests: end of block
Executed by:
  • tst_QChar
  • tst_QLabel
  • tst_QTextLayout
  • tst_QTextScriptEngine
else if (int(version) <= NormalizationCorrectionsVersionMax
int(version) <...ionsVersionMaxDescription
TRUEevaluated 323 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
FALSEnever evaluated
) {
0-565704
3107 const QString &s = *data;-
3108 QChar *d = 0;-
3109 for (int i = 0; i < NumNormalizationCorrections
i < NumNormali...ionCorrectionsDescription
TRUEevaluated 1938 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 323 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
; ++i) {
323-1938
3110 const NormalizationCorrection &n = uc_normalization_corrections[i];-
3111 if (n.version > version
n.version > versionDescription
TRUEevaluated 1617 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 321 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
) {
321-1617
3112 int pos = from;-
3113 if (QChar::requiresSurrogates(n.ucs4)
QChar::require...ogates(n.ucs4)Description
TRUEevaluated 1615 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QChar
) {
2-1615
3114 ushort ucs4High = QChar::highSurrogate(n.ucs4);-
3115 ushort ucs4Low = QChar::lowSurrogate(n.ucs4);-
3116 ushort oldHigh = QChar::highSurrogate(n.old_mapping);-
3117 ushort oldLow = QChar::lowSurrogate(n.old_mapping);-
3118 while (pos < s.length() - 1
pos < s.length() - 1Description
TRUEevaluated 4925 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 1615 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
) {
1615-4925
3119 if (s.at(pos).unicode() == ucs4High
s.at(pos).unic...() == ucs4HighDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QChar
FALSEevaluated 4923 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
&& s.at(pos + 1).unicode() == ucs4Low
s.at(pos + 1)....e() == ucs4LowDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QChar
FALSEnever evaluated
) {
0-4923
3120 if (!d
!dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QChar
FALSEnever evaluated
)
0-2
3121 d = data->data();
executed 2 times by 1 test: d = data->data();
Executed by:
  • tst_QChar
2
3122 d[pos] = QChar(oldHigh);-
3123 d[++pos] = QChar(oldLow);-
3124 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QChar
2
3125 ++pos;-
3126 }
executed 4925 times by 6 tests: end of block
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
4925
3127 }
executed 1615 times by 6 tests: end of block
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
else {
1615
3128 while (pos < s.length()
pos < s.length()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QChar
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QChar
) {
2-3
3129 if (s.at(pos).unicode() == n.ucs4
s.at(pos).unicode() == n.ucs4Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QChar
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QChar
) {
1-2
3130 if (!d
!dDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QChar
FALSEnever evaluated
)
0-1
3131 d = data->data();
executed 1 time by 1 test: d = data->data();
Executed by:
  • tst_QChar
1
3132 d[pos] = QChar(n.old_mapping);-
3133 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QChar
1
3134 ++pos;-
3135 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QChar
3
3136 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QChar
2
3137 }-
3138 }
executed 1938 times by 6 tests: end of block
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
1938
3139 }
executed 323 times by 6 tests: end of block
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
323
3140-
3141 if (normalizationQuickCheckHelper(data, mode, from, &from)
normalizationQ..., from, &from)Description
TRUEevaluated 399976 times by 9 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QLabel
  • tst_QNetworkCookie
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 166051 times by 3 tests
Evaluated by:
  • tst_QChar
  • tst_QUrl
  • tst_QUrlInternal
)
166051-399976
3142 return;
executed 399976 times by 9 tests: return;
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QLabel
  • tst_QNetworkCookie
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QUrl
  • tst_QUrlInternal
399976
3143-
3144 decomposeHelper(data, mode < QString::NormalizationForm_KD, version, from);-
3145-
3146 canonicalOrderHelper(data, version, from);-
3147-
3148 if (mode == QString::NormalizationForm_D
mode == QStrin...lizationForm_DDescription
TRUEevaluated 40333 times by 1 test
Evaluated by:
  • tst_QChar
FALSEevaluated 125718 times by 3 tests
Evaluated by:
  • tst_QChar
  • tst_QUrl
  • tst_QUrlInternal
|| mode == QString::NormalizationForm_KD
mode == QStrin...izationForm_KDDescription
TRUEevaluated 51335 times by 1 test
Evaluated by:
  • tst_QChar
FALSEevaluated 74383 times by 3 tests
Evaluated by:
  • tst_QChar
  • tst_QUrl
  • tst_QUrlInternal
)
40333-125718
3149 return;
executed 91668 times by 1 test: return;
Executed by:
  • tst_QChar
91668
3150-
3151 composeHelper(data, version, from);-
3152}
executed 74383 times by 3 tests: end of block
Executed by:
  • tst_QChar
  • tst_QUrl
  • tst_QUrlInternal
74383
3153-
3154-
3155-
3156-
3157-
3158QString QString::normalized(QString::NormalizationForm mode, QChar::UnicodeVersion version) const-
3159{-
3160 QString copy = *this;-
3161 qt_string_normalize(&copy, mode, version, 0);-
3162 return
executed 576836 times by 4 tests: return copy;
Executed by:
  • tst_QChar
  • tst_QLabel
  • tst_QTextLayout
  • tst_QTextScriptEngine
copy;
executed 576836 times by 4 tests: return copy;
Executed by:
  • tst_QChar
  • tst_QLabel
  • tst_QTextLayout
  • tst_QTextScriptEngine
576836
3163}-
3164-
3165-
3166struct ArgEscapeData-
3167{-
3168 int min_escape;-
3169 int occurrences;-
3170 int locale_occurrences;-
3171-
3172 int escape_len;-
3173};-
3174-
3175static ArgEscapeData findArgEscapes(const QString &s)-
3176{-
3177 const QChar *uc_begin = s.unicode();-
3178 const QChar *uc_end = uc_begin + s.length();-
3179-
3180 ArgEscapeData d;-
3181-
3182 d.min_escape = 2147483647;-
3183 d.occurrences = 0;-
3184 d.escape_len = 0;-
3185 d.locale_occurrences = 0;-
3186-
3187 const QChar *c = uc_begin;-
3188 while (c != uc_end
c != uc_endDescription
TRUEevaluated 1750288 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 172334 times by 150 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • ...
) {
172334-1750288
3189 while (c != uc_end
c != uc_endDescription
TRUEevaluated 16168777 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 305831 times by 393 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
&& c->unicode() != '%'
c->unicode() != '%'Description
TRUEevaluated 14724320 times by 428 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 1444457 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
)
305831-16168777
3190 ++
executed 14724320 times by 428 tests: ++c;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
c;
executed 14724320 times by 428 tests: ++c;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
14724320
3191-
3192 if (c == uc_end
c == uc_endDescription
TRUEevaluated 305831 times by 393 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
FALSEevaluated 1444457 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
)
305831-1444457
3193 break;
executed 305831 times by 393 tests: break;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
305831
3194 const QChar *escape_start = c;-
3195 if (++
++c == uc_endDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QPrinter
  • tst_QString
FALSEevaluated 1444443 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
c == uc_end
++c == uc_endDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QPrinter
  • tst_QString
FALSEevaluated 1444443 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
)
14-1444443
3196 break;
executed 14 times by 2 tests: break;
Executed by:
  • tst_QPrinter
  • tst_QString
14
3197-
3198 bool locale_arg = false;-
3199 if (c->unicode() == 'L'
c->unicode() == 'L'Description
TRUEevaluated 276 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
FALSEevaluated 1444167 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
) {
276-1444167
3200 locale_arg = true;-
3201 if (++
++c == uc_endDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 260 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
c == uc_end
++c == uc_endDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 260 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
)
16-260
3202 break;
executed 16 times by 1 test: break;
Executed by:
  • tst_QString
16
3203 }
executed 260 times by 2 tests: end of block
Executed by:
  • tst_QListView
  • tst_QString
260
3204-
3205 int escape = c->digitValue();-
3206 if (escape == -1
escape == -1Description
TRUEevaluated 195 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 1444232 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
)
195-1444232
3207 continue;
executed 195 times by 1 test: continue;
Executed by:
  • tst_QString
195
3208-
3209 ++c;-
3210-
3211 if (c != uc_end
c != uc_endDescription
TRUEevaluated 1271900 times by 409 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 172332 times by 150 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • ...
) {
172332-1271900
3212 int next_escape = c->digitValue();-
3213 if (next_escape != -1
next_escape != -1Description
TRUEevaluated 94 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 1271806 times by 409 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
) {
94-1271806
3214 escape = (10 * escape) + next_escape;-
3215 ++c;-
3216 }
executed 94 times by 1 test: end of block
Executed by:
  • tst_QString
94
3217 }
executed 1271900 times by 409 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
1271900
3218-
3219 if (escape > d.min_escape
escape > d.min_escapeDescription
TRUEevaluated 965892 times by 357 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEevaluated 478340 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
)
478340-965892
3220 continue;
executed 965892 times by 357 tests: continue;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
965892
3221-
3222 if (escape < d.min_escape
escape < d.min_escapeDescription
TRUEevaluated 478222 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 118 times by 11 tests
Evaluated by:
  • tst_QRawFont
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qdbusxml2cpp
) {
118-478222
3223 d.min_escape = escape;-
3224 d.occurrences = 0;-
3225 d.escape_len = 0;-
3226 d.locale_occurrences = 0;-
3227 }
executed 478222 times by 429 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
478222
3228-
3229 ++d.occurrences;-
3230 if (locale_arg
locale_argDescription
TRUEevaluated 225 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
FALSEevaluated 478115 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
)
225-478115
3231 ++
executed 225 times by 2 tests: ++d.locale_occurrences;
Executed by:
  • tst_QListView
  • tst_QString
d.locale_occurrences;
executed 225 times by 2 tests: ++d.locale_occurrences;
Executed by:
  • tst_QListView
  • tst_QString
225
3232 d.escape_len += c - escape_start;-
3233 }
executed 478340 times by 429 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
478340
3234 return
executed 478195 times by 429 tests: return d;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
d;
executed 478195 times by 429 tests: return d;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
478195
3235}-
3236-
3237static QString replaceArgEscapes(const QString &s, const ArgEscapeData &d, int field_width,-
3238 const QString &arg, const QString &larg, QChar fillChar = QLatin1Char(' '))-
3239{-
3240 const QChar *uc_begin = s.unicode();-
3241 const QChar *uc_end = uc_begin + s.length();-
3242-
3243 int abs_field_width = qAbs(field_width);-
3244 int result_len = s.length()-
3245 - d.escape_len-
3246 + (d.occurrences - d.locale_occurrences)-
3247 *qMax(abs_field_width, arg.length())-
3248 + d.locale_occurrences-
3249 *qMax(abs_field_width, larg.length());-
3250-
3251 QString result(result_len, Qt::Uninitialized);-
3252 QChar *result_buff = (QChar*) result.unicode();-
3253-
3254 QChar *rc = result_buff;-
3255 const QChar *c = uc_begin;-
3256 int repl_cnt = 0;-
3257 while (c != uc_end
c != uc_endDescription
TRUEevaluated 478415 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 478189 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
) {
478189-478415
3258-
3259-
3260-
3261-
3262 const QChar *text_start = c;-
3263-
3264 while (c->unicode() != '%'
c->unicode() != '%'Description
TRUEevaluated 9449848 times by 426 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 478415 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
)
478415-9449848
3265 ++
executed 9449848 times by 426 tests: ++c;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
c;
executed 9449848 times by 426 tests: ++c;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
9449848
3266-
3267 const QChar *escape_start = c++;-
3268-
3269 bool locale_arg = false;-
3270 if (c->unicode() == 'L'
c->unicode() == 'L'Description
TRUEevaluated 225 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
FALSEevaluated 478190 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
) {
225-478190
3271 locale_arg = true;-
3272 ++c;-
3273 }
executed 225 times by 2 tests: end of block
Executed by:
  • tst_QListView
  • tst_QString
225
3274-
3275 int escape = c->digitValue();-
3276 if (escape != -1
escape != -1Description
TRUEevaluated 478352 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 63 times by 1 test
Evaluated by:
  • tst_QString
) {
63-478352
3277 if (c + 1 != uc_end
c + 1 != uc_endDescription
TRUEevaluated 396050 times by 409 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 82302 times by 150 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • ...
&& (
(c + 1)->digitValue() != -1Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 396042 times by 409 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
c + 1)->digitValue() != -1
(c + 1)->digitValue() != -1Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 396042 times by 409 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
) {
8-396050
3278 escape = (10 * escape) + (c + 1)->digitValue();-
3279 ++c;-
3280 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QString
8
3281 }
executed 478352 times by 429 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
478352
3282-
3283 if (escape != d.min_escape
escape != d.min_escapeDescription
TRUEevaluated 110 times by 2 tests
Evaluated by:
  • tst_QRawFont
  • tst_QString
FALSEevaluated 478305 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
) {
110-478305
3284 memcpy(rc, text_start, (c - text_start)*sizeof(QChar));-
3285 rc += c - text_start;-
3286 }
executed 110 times by 2 tests: end of block
Executed by:
  • tst_QRawFont
  • tst_QString
110
3287 else {-
3288 ++c;-
3289-
3290 memcpy(rc, text_start, (escape_start - text_start)*sizeof(QChar));-
3291 rc += escape_start - text_start;-
3292-
3293 uint pad_chars;-
3294 if (locale_arg
locale_argDescription
TRUEevaluated 224 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
FALSEevaluated 478081 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
)
224-478081
3295 pad_chars = qMax(abs_field_width, larg.length()) - larg.length();
executed 224 times by 2 tests: pad_chars = qMax(abs_field_width, larg.length()) - larg.length();
Executed by:
  • tst_QListView
  • tst_QString
224
3296 else-
3297 pad_chars = qMax(abs_field_width, arg.length()) - arg.length();
executed 478081 times by 429 tests: pad_chars = qMax(abs_field_width, arg.length()) - arg.length();
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
478081
3298-
3299 if (field_width > 0
field_width > 0Description
TRUEevaluated 1076 times by 6 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QStaticText
  • tst_QString
  • tst_QTimeZone
  • tst_QUrlInternal
FALSEevaluated 477229 times by 428 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
) {
1076-477229
3300 for (uint i = 0; i < pad_chars
i < pad_charsDescription
TRUEevaluated 145 times by 2 tests
Evaluated by:
  • tst_QStaticText
  • tst_QString
FALSEevaluated 1076 times by 6 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QStaticText
  • tst_QString
  • tst_QTimeZone
  • tst_QUrlInternal
; ++i)
145-1076
3301 (
executed 145 times by 2 tests: (rc++)->unicode() = fillChar.unicode();
Executed by:
  • tst_QStaticText
  • tst_QString
rc++)->unicode() = fillChar.unicode();
executed 145 times by 2 tests: (rc++)->unicode() = fillChar.unicode();
Executed by:
  • tst_QStaticText
  • tst_QString
145
3302 }
executed 1076 times by 6 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QStaticText
  • tst_QString
  • tst_QTimeZone
  • tst_QUrlInternal
1076
3303-
3304 if (locale_arg
locale_argDescription
TRUEevaluated 224 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
FALSEevaluated 478081 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
) {
224-478081
3305 memcpy(rc, larg.unicode(), larg.length()*sizeof(QChar));-
3306 rc += larg.length();-
3307 }
executed 224 times by 2 tests: end of block
Executed by:
  • tst_QListView
  • tst_QString
224
3308 else {-
3309 memcpy(rc, arg.unicode(), arg.length()*sizeof(QChar));-
3310 rc += arg.length();-
3311 }
executed 478081 times by 429 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
478081
3312-
3313 if (field_width < 0
field_width < 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 478300 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
) {
5-478300
3314 for (uint i = 0; i < pad_chars
i < pad_charsDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
; ++i)
5-12
3315 (
executed 12 times by 1 test: (rc++)->unicode() = fillChar.unicode();
Executed by:
  • tst_QString
rc++)->unicode() = fillChar.unicode();
executed 12 times by 1 test: (rc++)->unicode() = fillChar.unicode();
Executed by:
  • tst_QString
12
3316 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_QString
5
3317-
3318 if (++
++repl_cnt == d.occurrencesDescription
TRUEevaluated 478189 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 116 times by 11 tests
Evaluated by:
  • tst_QRawFont
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qdbusxml2cpp
repl_cnt == d.occurrences
++repl_cnt == d.occurrencesDescription
TRUEevaluated 478189 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 116 times by 11 tests
Evaluated by:
  • tst_QRawFont
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qdbusxml2cpp
) {
116-478189
3319 memcpy(rc, c, (uc_end - c)*sizeof(QChar));-
3320 rc += uc_end - c;-
3321 ((!(rc - result_buff == result_len)) ? qt_assert("rc - result_buff == result_len",__FILE__,7387) : qt_noop());-
3322 c = uc_end;-
3323 }
executed 478189 times by 429 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
478189
3324 }
executed 478305 times by 429 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
478305
3325 }-
3326 ((!(rc == result_buff + result_len)) ? qt_assert("rc == result_buff + result_len",__FILE__,7392) : qt_noop());-
3327-
3328 return
executed 478189 times by 429 tests: return result;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
result;
executed 478189 times by 429 tests: return result;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
478189
3329}-
3330QString QString::arg(const QString &a, int fieldWidth, QChar fillChar) const-
3331{-
3332 ArgEscapeData d = findArgEscapes(*this);-
3333-
3334 if (d.occurrences == 0
d.occurrences == 0Description
TRUEnever evaluated
FALSEevaluated 152516 times by 404 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
) {
0-152516
3335 QMessageLogger(__FILE__, 7431, __PRETTY_FUNCTION__).warning("QString::arg: Argument missing: %s, %s", toLocal8Bit().data(),-
3336 a.toLocal8Bit().data());-
3337 return
never executed: return *this;
*this;
never executed: return *this;
0
3338 }-
3339 return
executed 152516 times by 404 tests: return replaceArgEscapes(*this, d, fieldWidth, a, a, fillChar);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
replaceArgEscapes(*this, d, fieldWidth, a, a, fillChar);
executed 152516 times by 404 tests: return replaceArgEscapes(*this, d, fieldWidth, a, a, fillChar);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
152516
3340}-
3341QString QString::arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const-
3342{-
3343 ArgEscapeData d = findArgEscapes(*this);-
3344-
3345 if (d.occurrences == 0
d.occurrences == 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 228842 times by 362 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_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
) {
6-228842
3346 QMessageLogger(__FILE__, 7635, __PRETTY_FUNCTION__).warning() << "QString::arg: Argument missing:" << *this << ',' << a;-
3347 return
executed 6 times by 1 test: return *this;
Executed by:
  • tst_QString
*this;
executed 6 times by 1 test: return *this;
Executed by:
  • tst_QString
6
3348 }-
3349-
3350 unsigned flags = QLocaleData::NoFlags;-
3351 if (fillChar == QLatin1Char('0')
fillChar == QLatin1Char('0')Description
TRUEevaluated 39 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QString
  • tst_QTimeZone
FALSEevaluated 228803 times by 361 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_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
)
39-228803
3352 flags = QLocaleData::ZeroPadded;
executed 39 times by 4 tests: flags = QLocaleData::ZeroPadded;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QString
  • tst_QTimeZone
39
3353-
3354 QString arg;-
3355 if (d.occurrences > d.locale_occurrences
d.occurrences ...le_occurrencesDescription
TRUEevaluated 228631 times by 362 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_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
FALSEevaluated 211 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
)
211-228631
3356 arg = QLocaleData::c()->longLongToString(a, -1, base, fieldWidth, flags);
executed 228631 times by 362 tests: arg = QLocaleData::c()->longLongToString(a, -1, base, fieldWidth, flags);
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_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
228631
3357-
3358 QString locale_arg;-
3359 if (d.locale_occurrences > 0
d.locale_occurrences > 0Description
TRUEevaluated 211 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
FALSEevaluated 228631 times by 362 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_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
) {
211-228631
3360 QLocale locale;-
3361 if (!(locale.numberOptions() & QLocale::OmitGroupSeparator)
!(locale.numbe...roupSeparator)Description
TRUEevaluated 209 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
)
2-209
3362 flags |= QLocaleData::ThousandsGroup;
executed 209 times by 2 tests: flags |= QLocaleData::ThousandsGroup;
Executed by:
  • tst_QListView
  • tst_QString
209
3363 locale_arg = locale.d->m_data->longLongToString(a, -1, base, fieldWidth, flags);-
3364 }
executed 211 times by 2 tests: end of block
Executed by:
  • tst_QListView
  • tst_QString
211
3365-
3366 return
executed 228842 times by 362 tests: return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
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_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
executed 228842 times by 362 tests: return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
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_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
228842
3367}-
3368QString QString::arg(qulonglong a, int fieldWidth, int base, QChar fillChar) const-
3369{-
3370 ArgEscapeData d = findArgEscapes(*this);-
3371-
3372 if (d.occurrences == 0
d.occurrences == 0Description
TRUEnever evaluated
FALSEevaluated 1019 times by 8 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_QUrlInternal
  • tst_qstandardpaths
) {
0-1019
3373 QMessageLogger(__FILE__, 7679, __PRETTY_FUNCTION__).warning() << "QString::arg: Argument missing:" << *this << ',' << a;-
3374 return
never executed: return *this;
*this;
never executed: return *this;
0
3375 }-
3376-
3377 unsigned flags = QLocaleData::NoFlags;-
3378 if (fillChar == QLatin1Char('0')
fillChar == QLatin1Char('0')Description
TRUEevaluated 988 times by 1 test
Evaluated by:
  • tst_QUrlInternal
FALSEevaluated 31 times by 7 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_qstandardpaths
)
31-988
3379 flags = QLocaleData::ZeroPadded;
executed 988 times by 1 test: flags = QLocaleData::ZeroPadded;
Executed by:
  • tst_QUrlInternal
988
3380-
3381 QString arg;-
3382 if (d.occurrences > d.locale_occurrences
d.occurrences ...le_occurrencesDescription
TRUEevaluated 1019 times by 8 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_QUrlInternal
  • tst_qstandardpaths
FALSEnever evaluated
)
0-1019
3383 arg = QLocaleData::c()->unsLongLongToString(a, -1, base, fieldWidth, flags);
executed 1019 times by 8 tests: arg = QLocaleData::c()->unsLongLongToString(a, -1, base, fieldWidth, flags);
Executed by:
  • tst_QDateTime
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_QUrlInternal
  • tst_qstandardpaths
1019
3384-
3385 QString locale_arg;-
3386 if (d.locale_occurrences > 0
d.locale_occurrences > 0Description
TRUEnever evaluated
FALSEevaluated 1019 times by 8 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_QUrlInternal
  • tst_qstandardpaths
) {
0-1019
3387 QLocale locale;-
3388 if (!(locale.numberOptions() & QLocale::OmitGroupSeparator)
!(locale.numbe...roupSeparator)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
3389 flags |= QLocaleData::ThousandsGroup;
never executed: flags |= QLocaleData::ThousandsGroup;
0
3390 locale_arg = locale.d->m_data->unsLongLongToString(a, -1, base, fieldWidth, flags);-
3391 }
never executed: end of block
0
3392-
3393 return
executed 1019 times by 8 tests: return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
Executed by:
  • tst_QDateTime
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_QUrlInternal
  • tst_qstandardpaths
replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
executed 1019 times by 8 tests: return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
Executed by:
  • tst_QDateTime
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_QUrlInternal
  • tst_qstandardpaths
1019
3394}-
3395QString QString::arg(QChar a, int fieldWidth, QChar fillChar) const-
3396{-
3397 QString c;-
3398 c += a;-
3399 return
executed 191 times by 8 tests: return arg(c, fieldWidth, fillChar);
Executed by:
  • tst_QDateTime
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QUrl
  • tst_qmakelib
arg(c, fieldWidth, fillChar);
executed 191 times by 8 tests: return arg(c, fieldWidth, fillChar);
Executed by:
  • tst_QDateTime
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QUrl
  • tst_qmakelib
191
3400}-
3401-
3402-
3403-
3404-
3405-
3406-
3407QString QString::arg(char a, int fieldWidth, QChar fillChar) const-
3408{-
3409 QString c;-
3410 c += QLatin1Char(a);-
3411 return
executed 1 time by 1 test: return arg(c, fieldWidth, fillChar);
Executed by:
  • tst_QString
arg(c, fieldWidth, fillChar);
executed 1 time by 1 test: return arg(c, fieldWidth, fillChar);
Executed by:
  • tst_QString
1
3412}-
3413QString QString::arg(double a, int fieldWidth, char fmt, int prec, QChar fillChar) const-
3414{-
3415 ArgEscapeData d = findArgEscapes(*this);-
3416-
3417 if (d.occurrences == 0
d.occurrences == 0Description
TRUEnever evaluated
FALSEevaluated 95812 times by 7 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QPageSize
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QToolButton
) {
0-95812
3418 QMessageLogger(__FILE__, 7791, __PRETTY_FUNCTION__).warning("QString::arg: Argument missing: %s, %g", toLocal8Bit().data(), a);-
3419 return
never executed: return *this;
*this;
never executed: return *this;
0
3420 }-
3421-
3422 unsigned flags = QLocaleData::NoFlags;-
3423 if (fillChar == QLatin1Char('0')
fillChar == QLatin1Char('0')Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 95807 times by 7 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QPageSize
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QToolButton
)
5-95807
3424 flags = QLocaleData::ZeroPadded;
executed 5 times by 1 test: flags = QLocaleData::ZeroPadded;
Executed by:
  • tst_QString
5
3425-
3426 if (qIsUpper(fmt)
qIsUpper(fmt)Description
TRUEnever evaluated
FALSEevaluated 95812 times by 7 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QPageSize
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QToolButton
)
0-95812
3427 flags |= QLocaleData::CapitalEorX;
never executed: flags |= QLocaleData::CapitalEorX;
0
3428 fmt = qToLower(fmt);-
3429-
3430 QLocaleData::DoubleForm form = QLocaleData::DFDecimal;-
3431 switch (fmt) {-
3432 case
never executed: case 'f':
'f':
never executed: case 'f':
0
3433 form = QLocaleData::DFDecimal;-
3434 break;
never executed: break;
0
3435 case
never executed: case 'e':
'e':
never executed: case 'e':
0
3436 form = QLocaleData::DFExponent;-
3437 break;
never executed: break;
0
3438 case
executed 95812 times by 7 tests: case 'g':
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QPageSize
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QToolButton
'g':
executed 95812 times by 7 tests: case 'g':
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QPageSize
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QToolButton
95812
3439 form = QLocaleData::DFSignificantDigits;-
3440 break;
executed 95812 times by 7 tests: break;
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QPageSize
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QToolButton
95812
3441 default
never executed: default:
:
never executed: default:
0
3442-
3443-
3444-
3445 break;
never executed: break;
0
3446 }-
3447-
3448 QString arg;-
3449 if (d.occurrences > d.locale_occurrences
d.occurrences ...le_occurrencesDescription
TRUEevaluated 95803 times by 7 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QPageSize
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QToolButton
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QString
)
9-95803
3450 arg = QLocaleData::c()->doubleToString(a, prec, form, fieldWidth, flags);
executed 95803 times by 7 tests: arg = QLocaleData::c()->doubleToString(a, prec, form, fieldWidth, flags);
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QPageSize
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QToolButton
95803
3451-
3452 QString locale_arg;-
3453 if (d.locale_occurrences > 0
d.locale_occurrences > 0Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 95803 times by 7 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QPageSize
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QToolButton
) {
9-95803
3454 QLocale locale;-
3455-
3456 if (!(locale.numberOptions() & QLocale::OmitGroupSeparator)
!(locale.numbe...roupSeparator)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
)
2-7
3457 flags |= QLocaleData::ThousandsGroup;
executed 7 times by 1 test: flags |= QLocaleData::ThousandsGroup;
Executed by:
  • tst_QString
7
3458 if (!(locale.numberOptions() & QLocale::OmitLeadingZeroInExponent)
!(locale.numbe...eroInExponent)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QString
FALSEnever evaluated
)
0-9
3459 flags |= QLocaleData::ZeroPadExponent;
executed 9 times by 1 test: flags |= QLocaleData::ZeroPadExponent;
Executed by:
  • tst_QString
9
3460 locale_arg = locale.d->m_data->doubleToString(a, prec, form, fieldWidth, flags);-
3461 }
executed 9 times by 1 test: end of block
Executed by:
  • tst_QString
9
3462-
3463 return
executed 95812 times by 7 tests: return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QPageSize
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QToolButton
replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
executed 95812 times by 7 tests: return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QPageSize
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QToolButton
95812
3464}-
3465-
3466static int getEscape(const QChar *uc, int *pos, int len, int maxNumber = 999)-
3467{-
3468 int i = *pos;-
3469 ++i;-
3470 if (i < len
i < lenDescription
TRUEevaluated 691605 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEnever evaluated
&& uc[i] == QLatin1Char('L')
uc[i] == QLatin1Char('L')Description
TRUEnever evaluated
FALSEevaluated 691605 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
)
0-691605
3471 ++
never executed: ++i;
i;
never executed: ++i;
0
3472 if (i < len
i < lenDescription
TRUEevaluated 691605 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEnever evaluated
) {
0-691605
3473 int escape = uc[i].unicode() - '0';-
3474 if (uint(escape) >= 10U
uint(escape) >= 10UDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 691601 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
)
4-691601
3475 return
executed 4 times by 1 test: return -1;
Executed by:
  • tst_QString
-1;
executed 4 times by 1 test: return -1;
Executed by:
  • tst_QString
4
3476 ++i;-
3477 while (i < len
i < lenDescription
TRUEevaluated 686433 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 5190 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QChar
  • tst_QDBusMarshall
  • tst_QFileSystemWatcher
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsScene
  • tst_QKeySequence
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Spdy
  • tst_qdbuscpp2xml
  • tst_qmakelib
  • ...
) {
5190-686433
3478 int digit = uc[i].unicode() - '0';-
3479 if (uint(digit) >= 10U
uint(digit) >= 10UDescription
TRUEevaluated 686411 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
)
22-686411
3480 break;
executed 686411 times by 331 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
686411
3481 escape = (escape * 10) + digit;-
3482 ++i;-
3483 }
executed 22 times by 1 test: end of block
Executed by:
  • tst_QString
22
3484 if (escape <= maxNumber
escape <= maxNumberDescription
TRUEevaluated 691599 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
) {
2-691599
3485 *pos = i;-
3486 return
executed 691599 times by 331 tests: return escape;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
escape;
executed 691599 times by 331 tests: return escape;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
691599
3487 }-
3488 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QString
2
3489 return
executed 2 times by 1 test: return -1;
Executed by:
  • tst_QString
-1;
executed 2 times by 1 test: return -1;
Executed by:
  • tst_QString
2
3490}-
3491namespace {-
3492struct Part-
3493{-
3494 Part() : stringRef(), number(0) {}
never executed: end of block
0
3495 Part(const QString &s, int pos, int len, int num = -1) noexcept-
3496 : stringRef(&s, pos, len), number(num) {}
executed 1547777 times by 331 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
1547777
3497-
3498 QStringRef stringRef;-
3499 int number;-
3500};-
3501}-
3502-
3503template <>-
3504class QTypeInfo<Part> : public QTypeInfoMerger<Part, QStringRef, int> {};-
3505-
3506-
3507namespace {-
3508-
3509enum { ExpectedParts = 32 };-
3510-
3511typedef QVarLengthArray<Part, ExpectedParts> ParseResult;-
3512typedef QVarLengthArray<int, ExpectedParts/2> ArgIndexToPlaceholderMap;-
3513-
3514static ParseResult parseMultiArgFormatString(const QString &s)-
3515{-
3516 ParseResult result;-
3517-
3518 const QChar *uc = s.constData();-
3519 const int len = s.size();-
3520 const int end = len - 1;-
3521 int i = 0;-
3522 int last = 0;-
3523-
3524 while (i < end
i < endDescription
TRUEevaluated 6706850 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 180495 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
) {
180495-6706850
3525 if (uc[i] == QLatin1Char('%')
uc[i] == QLatin1Char('%')Description
TRUEevaluated 691605 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 6015245 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
) {
691605-6015245
3526 int percent = i;-
3527 int number = getEscape(uc, &i, len);-
3528 if (number != -1
number != -1Description
TRUEevaluated 691599 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
) {
6-691599
3529 if (last != percent
last != percentDescription
TRUEevaluated 680872 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 10727 times by 313 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
)
10727-680872
3530 result.push_back(Part(s, last, percent - last));
executed 680872 times by 331 tests: result.push_back(Part(s, last, percent - last));
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
680872
3531 result.push_back(Part(s, percent, i - percent, number));-
3532 last = i;-
3533 continue;
executed 691599 times by 331 tests: continue;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
691599
3534 }-
3535 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QString
6
3536 ++i;-
3537 }
executed 6015251 times by 331 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
6015251
3538-
3539 if (last < len
last < lenDescription
TRUEevaluated 175306 times by 313 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
FALSEevaluated 5189 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QChar
  • tst_QDBusMarshall
  • tst_QFileSystemWatcher
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsScene
  • tst_QKeySequence
  • tst_QLocalSocket
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Spdy
  • tst_qdbuscpp2xml
  • tst_qmakelib
  • ...
)
5189-175306
3540 result.push_back(Part(s, last, len - last));
executed 175306 times by 313 tests: result.push_back(Part(s, last, len - last));
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
175306
3541-
3542 return
executed 180495 times by 331 tests: return result;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
result;
executed 180495 times by 331 tests: return result;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
180495
3543}-
3544-
3545static ArgIndexToPlaceholderMap makeArgIndexToPlaceholderMap(const ParseResult &parts)-
3546{-
3547 ArgIndexToPlaceholderMap result;-
3548-
3549 for (ParseResult::const_iterator it = parts.begin(), end = parts.end(); it != end
it != endDescription
TRUEevaluated 1547777 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 180495 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
; ++it) {
180495-1547777
3550 if (it->number >= 0
it->number >= 0Description
TRUEevaluated 691599 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 856178 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
)
691599-856178
3551 result.push_back(it->number);
executed 691599 times by 331 tests: result.push_back(it->number);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
691599
3552 }
executed 1547777 times by 331 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
1547777
3553-
3554 std::sort(result.begin(), result.end());-
3555 result.erase(std::unique(result.begin(), result.end()),-
3556 result.end());-
3557-
3558 return
executed 180495 times by 331 tests: return result;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
result;
executed 180495 times by 331 tests: return result;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
180495
3559}-
3560-
3561static int resolveStringRefsAndReturnTotalSize(ParseResult &parts, const ArgIndexToPlaceholderMap &argIndexToPlaceholderMap, const QString *args[])-
3562{-
3563 int totalSize = 0;-
3564 for (ParseResult::iterator pit = parts.begin(), end = parts.end(); pit != end
pit != endDescription
TRUEevaluated 1547777 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 180495 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
; ++pit) {
180495-1547777
3565 if (pit->number != -1
pit->number != -1Description
TRUEevaluated 691599 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 856178 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
) {
691599-856178
3566 const ArgIndexToPlaceholderMap::const_iterator ait-
3567 = std::find(argIndexToPlaceholderMap.begin(), argIndexToPlaceholderMap.end(), pit->number);-
3568 if (ait != argIndexToPlaceholderMap.end()
ait != argInde...olderMap.end()Description
TRUEevaluated 691570 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 29 times by 2 tests
Evaluated by:
  • tst_QKeySequence
  • tst_QString
)
29-691570
3569 pit->stringRef = QStringRef(args[ait - argIndexToPlaceholderMap.begin()]);
executed 691570 times by 331 tests: pit->stringRef = QStringRef(args[ait - argIndexToPlaceholderMap.begin()]);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
691570
3570 }
executed 691599 times by 331 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
691599
3571 totalSize += pit->stringRef.size();-
3572 }
executed 1547777 times by 331 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
1547777
3573 return
executed 180495 times by 331 tests: return totalSize;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
totalSize;
executed 180495 times by 331 tests: return totalSize;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
180495
3574}-
3575-
3576}-
3577-
3578QString QString::multiArg(int numArgs, const QString **args) const-
3579{-
3580-
3581 ParseResult parts = parseMultiArgFormatString(*this);-
3582-
3583-
3584 ArgIndexToPlaceholderMap argIndexToPlaceholderMap = makeArgIndexToPlaceholderMap(parts);-
3585-
3586 if (argIndexToPlaceholderMap.size() > numArgs
argIndexToPlac...ze() > numArgsDescription
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QKeySequence
  • tst_QString
FALSEevaluated 180468 times by 330 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
)
27-180468
3587 argIndexToPlaceholderMap.resize(numArgs);
executed 27 times by 2 tests: argIndexToPlaceholderMap.resize(numArgs);
Executed by:
  • tst_QKeySequence
  • tst_QString
27
3588 else if (argIndexToPlaceholderMap.size() < numArgs
argIndexToPlac...ze() < numArgsDescription
TRUEnever evaluated
FALSEevaluated 180468 times by 330 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
)
0-180468
3589 QMessageLogger(__FILE__, 7997, __PRETTY_FUNCTION__).warning("QString::arg: %d argument(s) missing in %s",
never executed: QMessageLogger(__FILE__, 7997, __PRETTY_FUNCTION__).warning("QString::arg: %d argument(s) missing in %s", numArgs - argIndexToPlaceholderMap.size(), toLocal8Bit().data());
0
3590 numArgs - argIndexToPlaceholderMap.size(), toLocal8Bit().data());
never executed: QMessageLogger(__FILE__, 7997, __PRETTY_FUNCTION__).warning("QString::arg: %d argument(s) missing in %s", numArgs - argIndexToPlaceholderMap.size(), toLocal8Bit().data());
0
3591-
3592-
3593 const int totalSize = resolveStringRefsAndReturnTotalSize(parts, argIndexToPlaceholderMap, args);-
3594-
3595-
3596 QString result(totalSize, Qt::Uninitialized);-
3597 QChar *out = result.data();-
3598-
3599 for (ParseResult::const_iterator it = parts.begin(), end = parts.end(); it != end
it != endDescription
TRUEevaluated 1547777 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 180495 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
; ++it) {
180495-1547777
3600 if (const
const int sz =...ringRef.size()Description
TRUEevaluated 1544451 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 3326 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QKeySequence
  • tst_Selftests
  • tst_Spdy
  • tst_qdbusabstractadaptor - unknown status
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_selftests - unknown status
int sz = it->stringRef.size()
const int sz =...ringRef.size()Description
TRUEevaluated 1544451 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 3326 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QKeySequence
  • tst_Selftests
  • tst_Spdy
  • tst_qdbusabstractadaptor - unknown status
  • tst_qmakelib
  • tst_qstandardpaths
  • tst_selftests - unknown status
) {
3326-1544451
3601 memcpy(out, it->stringRef.constData(), sz * sizeof(QChar));-
3602 out += sz;-
3603 }
executed 1544451 times by 331 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
1544451
3604 }
executed 1547777 times by 331 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
1547777
3605-
3606 return
executed 180495 times by 331 tests: return result;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
result;
executed 180495 times by 331 tests: return result;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
180495
3607}-
3608bool QString::isSimpleText() const-
3609{-
3610 const ushort *p = d->data();-
3611 const ushort * const end = p + d->size;-
3612 while (p < end
p < endDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
3613 ushort uc = *p;-
3614-
3615 if (uc > 0x058f
uc > 0x058fDescription
TRUEnever evaluated
FALSEnever evaluated
&& (uc < 0x1100
uc < 0x1100Description
TRUEnever evaluated
FALSEnever evaluated
|| uc > 0xfb0f
uc > 0xfb0fDescription
TRUEnever evaluated
FALSEnever evaluated
)) {
0
3616 return
never executed: return false;
false;
never executed: return false;
0
3617 }-
3618 p++;-
3619 }
never executed: end of block
0
3620-
3621 return
never executed: return true;
true;
never executed: return true;
0
3622}-
3623-
3624-
3625-
3626-
3627-
3628bool QString::isRightToLeft() const-
3629{-
3630 const ushort *p = d->data();-
3631 const ushort * const end = p + d->size;-
3632 while (p < end
p < endDescription
TRUEevaluated 783037 times by 99 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • ...
FALSEevaluated 101798 times by 52 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
) {
101798-783037
3633 uint ucs4 = *p;-
3634 if (QChar::isHighSurrogate(ucs4)
QChar::isHighSurrogate(ucs4)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextLayout
FALSEevaluated 783027 times by 99 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • ...
&& p < end - 1
p < end - 1Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextLayout
FALSEnever evaluated
) {
0-783027
3635 ushort low = p[1];-
3636 if (QChar::isLowSurrogate(low)
QChar::isLowSurrogate(low)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextLayout
FALSEnever evaluated
) {
0-10
3637 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
3638 ++p;-
3639 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextLayout
10
3640 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextLayout
10
3641 switch (QChar::direction(ucs4))-
3642 {-
3643 case
executed 71112 times by 93 tests: case QChar::DirL:
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
QChar::DirL:
executed 71112 times by 93 tests: case QChar::DirL:
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
71112
3644 return
executed 71112 times by 93 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
false;
executed 71112 times by 93 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QFormLayout
  • ...
71112
3645 case
executed 572 times by 5 tests: case QChar::DirR:
Executed by:
  • tst_QFontDatabase
  • tst_QLineEdit
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextEdit
QChar::DirR:
executed 572 times by 5 tests: case QChar::DirR:
Executed by:
  • tst_QFontDatabase
  • tst_QLineEdit
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextEdit
572
3646 case
executed 21 times by 5 tests: case QChar::DirAL:
Executed by:
  • tst_QComplexText
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QString
QChar::DirAL:
executed 21 times by 5 tests: case QChar::DirAL:
Executed by:
  • tst_QComplexText
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QRawFont
  • tst_QString
21
3647 return
executed 593 times by 9 tests: return true;
Executed by:
  • tst_QComplexText
  • tst_QFontDatabase
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QLineEdit
  • tst_QRawFont
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextEdit
true;
executed 593 times by 9 tests: return true;
Executed by:
  • tst_QComplexText
  • tst_QFontDatabase
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QLineEdit
  • tst_QRawFont
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextEdit
593
3648 default
executed 711332 times by 61 tests: default:
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • ...
:
executed 711332 times by 61 tests: default:
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • ...
711332
3649 break;
executed 711332 times by 61 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • ...
711332
3650 }-
3651 ++p;-
3652 }
executed 711332 times by 61 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QComplexText
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • ...
711332
3653 return
executed 101798 times by 52 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
false;
executed 101798 times by 52 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
101798
3654}-
3655QString QString::fromRawData(const QChar *unicode, int size)-
3656{-
3657 Data *x;-
3658 if (!unicode
!unicodeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTokenAutomaton
FALSEevaluated 65226 times by 87 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
) {
2-65226
3659 x = Data::sharedNull();-
3660 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QTokenAutomaton
else if (!size
!sizeDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_qmakelib
FALSEevaluated 65215 times by 87 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
) {
2-65215
3661 x = Data::allocate(0);-
3662 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_qmakelib
else {
11
3663 x = Data::fromRawData(reinterpret_cast<const ushort *>(unicode), size);-
3664 do { if (!(x)
!(x)Description
TRUEnever evaluated
FALSEevaluated 65215 times by 87 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-65215
3665 }
executed 65215 times by 87 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
65215
3666 QStringDataPtr dataPtr = { x };-
3667 return
executed 65228 times by 87 tests: return QString(dataPtr);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
QString(dataPtr);
executed 65228 times by 87 tests: return QString(dataPtr);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
65228
3668}-
3669QString &QString::setRawData(const QChar *unicode, int size)-
3670{-
3671 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 745 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 576 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
|| d->alloc
d->allocDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 575 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
) {
1-745
3672 *this = fromRawData(unicode, size);-
3673 }
executed 746 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qmakelib
else {
746
3674 if (unicode
unicodeDescription
TRUEevaluated 575 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEnever evaluated
) {
0-575
3675 d->size = size;-
3676 d->offset = reinterpret_cast<const char *>(unicode) - reinterpret_cast<char *>(d);-
3677 }
executed 575 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qmakelib
else {
575
3678 d->offset = sizeof(QStringData);-
3679 d->size = 0;-
3680 }
never executed: end of block
0
3681 }-
3682 return
executed 1321 times by 2 tests: return *this;
Executed by:
  • tst_QString
  • tst_qmakelib
*this;
executed 1321 times by 2 tests: return *this;
Executed by:
  • tst_QString
  • tst_qmakelib
1321
3683}-
3684QDataStream &operator<<(QDataStream &out, const QString &str)-
3685{-
3686 if (out.version() == 1
out.version() == 1Description
TRUEnever evaluated
FALSEevaluated 15252 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • ...
) {
0-15252
3687 out << str.toLatin1();-
3688 }
never executed: end of block
else {
0
3689 if (!str.isNull()
!str.isNull()Description
TRUEevaluated 14893 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • ...
FALSEevaluated 359 times by 12 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QStandardItem
  • tst_QVariant
|| out.version() < 3
out.version() < 3Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
FALSEevaluated 358 times by 12 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QStandardItem
  • tst_QVariant
) {
1-14893
3690 if ((
(out.byteOrder...fo::BigEndian)Description
TRUEnever evaluated
FALSEevaluated 14894 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • ...
out.byteOrder() == QDataStream::BigEndian) == (QSysInfo::ByteOrder == QSysInfo::BigEndian)
(out.byteOrder...fo::BigEndian)Description
TRUEnever evaluated
FALSEevaluated 14894 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • ...
) {
0-14894
3691 out.writeBytes(reinterpret_cast<const char *>(str.unicode()), sizeof(QChar) * str.length());-
3692 }
never executed: end of block
else {
0
3693 QVarLengthArray<ushort> buffer(str.length());-
3694 const ushort *data = reinterpret_cast<const ushort *>(str.constData());-
3695 for (int i = 0; i < str.length()
i < str.length()Description
TRUEevaluated 46886 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • ...
FALSEevaluated 14894 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • ...
; i++) {
14894-46886
3696 buffer[i] = qbswap(*data);-
3697 ++data;-
3698 }
executed 46886 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • ...
46886
3699 out.writeBytes(reinterpret_cast<const char *>(buffer.data()), sizeof(ushort) * buffer.size());-
3700 }
executed 14894 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • ...
14894
3701 } else {-
3702-
3703 out << (quint32)0xffffffff;-
3704 }
executed 358 times by 12 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QStandardItem
  • tst_QVariant
358
3705 }-
3706 return
executed 15252 times by 28 tests: return out;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • ...
out;
executed 15252 times by 28 tests: return out;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • ...
15252
3707}-
3708QDataStream &operator>>(QDataStream &in, QString &str)-
3709{-
3710 if (in.version() == 1
in.version() == 1Description
TRUEnever evaluated
FALSEevaluated 15825 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
) {
0-15825
3711 QByteArray l;-
3712 in >> l;-
3713 str = QString::fromLatin1(l);-
3714 }
never executed: end of block
else {
0
3715 quint32 bytes = 0;-
3716 in >> bytes;-
3717 if (bytes == 0xffffffff
bytes == 0xffffffffDescription
TRUEevaluated 354 times by 12 tests
Evaluated by:
  • tst_QDataStream
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QStandardItem
  • tst_QVariant
FALSEevaluated 15471 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
) {
354-15471
3718 str.clear();-
3719 }
executed 354 times by 12 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QStandardItem
  • tst_QVariant
else if (bytes > 0
bytes > 0Description
TRUEevaluated 15074 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
FALSEevaluated 397 times by 5 tests
Evaluated by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
) {
354-15074
3720 if (bytes & 0x1
bytes & 0x1Description
TRUEevaluated 27 times by 1 test
Evaluated by:
  • tst_QDataStream
FALSEevaluated 15047 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
) {
27-15047
3721 str.clear();-
3722 in.setStatus(QDataStream::ReadCorruptData);-
3723 return
executed 27 times by 1 test: return in;
Executed by:
  • tst_QDataStream
in;
executed 27 times by 1 test: return in;
Executed by:
  • tst_QDataStream
27
3724 }-
3725-
3726 const quint32 Step = 1024 * 1024;-
3727 quint32 len = bytes / 2;-
3728 quint32 allocated = 0;-
3729-
3730 while (allocated < len
allocated < lenDescription
TRUEevaluated 15059 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
FALSEevaluated 15033 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
) {
15033-15059
3731 int blockSize = qMin(Step, len - allocated);-
3732 str.resize(allocated + blockSize);-
3733 if (in.readRawData(reinterpret_cast<char *>(str.data()) + allocated * 2,
in.readRawData... blockSize * 2Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QDataStream
FALSEevaluated 15045 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
14-15045
3734 blockSize * 2) != blockSize * 2
in.readRawData... blockSize * 2Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QDataStream
FALSEevaluated 15045 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
) {
14-15045
3735 str.clear();-
3736 in.setStatus(QDataStream::ReadPastEnd);-
3737 return
executed 14 times by 1 test: return in;
Executed by:
  • tst_QDataStream
in;
executed 14 times by 1 test: return in;
Executed by:
  • tst_QDataStream
14
3738 }-
3739 allocated += blockSize;-
3740 }
executed 15045 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
15045
3741-
3742 if ((
(in.byteOrder(...fo::BigEndian)Description
TRUEevaluated 15033 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
FALSEnever evaluated
in.byteOrder() == QDataStream::BigEndian)
(in.byteOrder(...fo::BigEndian)Description
TRUEevaluated 15033 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
FALSEnever evaluated
0-15033
3743 != (QSysInfo::ByteOrder == QSysInfo::BigEndian)
(in.byteOrder(...fo::BigEndian)Description
TRUEevaluated 15033 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
FALSEnever evaluated
) {
0-15033
3744 ushort *data = reinterpret_cast<ushort *>(str.data());-
3745 while (len--
len--Description
TRUEevaluated 12630580 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
FALSEevaluated 15033 times by 28 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
) {
15033-12630580
3746 *data = qbswap(*data);-
3747 ++data;-
3748 }
executed 12630580 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
12630580
3749 }
executed 15033 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
15033
3750 }
executed 15033 times by 28 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
else {
15033
3751 str = QString(QLatin1String(""));-
3752 }
executed 397 times by 5 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
397
3753 }-
3754 return
executed 15784 times by 28 tests: return in;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
in;
executed 15784 times by 28 tests: return in;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QHostAddress
  • tst_QIcon
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPicture
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTableWidget
  • tst_QTimeZone
  • ...
15784
3755}-
3756QString QStringRef::toString() const {-
3757 if (!m_string
!m_stringDescription
TRUEevaluated 8012 times by 38 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_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
FALSEevaluated 402702 times by 181 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
)
8012-402702
3758 return
executed 8012 times by 38 tests: return QString();
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_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
QString();
executed 8012 times by 38 tests: return QString();
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_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • ...
8012
3759 if (m_size
m_sizeDescription
TRUEevaluated 401662 times by 181 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
FALSEevaluated 1040 times by 16 tests
Evaluated by:
  • tst_QAbstractSpinBox
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLoggingRegistry
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QXmlStream
&& m_position == 0
m_position == 0Description
TRUEevaluated 97576 times by 153 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 304086 times by 86 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • ...
&& m_size == m_string->size()
m_size == m_string->size()Description
TRUEevaluated 68705 times by 131 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 28871 times by 43 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontCache
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPrinter
  • ...
)
1040-401662
3760 return
executed 68705 times by 131 tests: return *m_string;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
*m_string;
executed 68705 times by 131 tests: return *m_string;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
68705
3761 return
executed 333997 times by 88 tests: return QString(m_string->unicode() + m_position, m_size);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
QString(m_string->unicode() + m_position, m_size);
executed 333997 times by 88 tests: return QString(m_string->unicode() + m_position, m_size);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • ...
333997
3762}-
3763-
3764-
3765-
3766-
3767-
3768-
3769-
3770bool operator==(const QStringRef &s1,const QStringRef &s2) noexcept-
3771{ return
executed 2511992 times by 48 tests: return (s1.size() == s2.size() && qMemEquals((const ushort *)s1.unicode(), (const ushort *)s2.unicode(), s1.size()));
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • 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_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • ...
(s1.size() == s2.size() &&
executed 2511992 times by 48 tests: return (s1.size() == s2.size() && qMemEquals((const ushort *)s1.unicode(), (const ushort *)s2.unicode(), s1.size()));
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • 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_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • ...
2511992
3772 qMemEquals((const ushort *)s1.unicode(), (const ushort *)s2.unicode(), s1.size()));
executed 2511992 times by 48 tests: return (s1.size() == s2.size() && qMemEquals((const ushort *)s1.unicode(), (const ushort *)s2.unicode(), s1.size()));
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • 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_QDir
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • ...
2511992
3773}-
3774-
3775-
3776-
3777-
3778-
3779-
3780bool operator==(const QString &s1,const QStringRef &s2) noexcept-
3781{ return
executed 280789 times by 121 tests: return (s1.size() == s2.size() && qMemEquals((const ushort *)s1.unicode(), (const ushort *)s2.unicode(), s1.size()));
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • ...
(s1.size() == s2.size() &&
executed 280789 times by 121 tests: return (s1.size() == s2.size() && qMemEquals((const ushort *)s1.unicode(), (const ushort *)s2.unicode(), s1.size()));
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • ...
280789
3782 qMemEquals((const ushort *)s1.unicode(), (const ushort *)s2.unicode(), s1.size()));
executed 280789 times by 121 tests: return (s1.size() == s2.size() && qMemEquals((const ushort *)s1.unicode(), (const ushort *)s2.unicode(), s1.size()));
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • ...
280789
3783}-
3784-
3785-
3786-
3787-
3788-
3789-
3790bool operator==(QLatin1String s1, const QStringRef &s2) noexcept-
3791{-
3792 if (s1.size() != s2.size()
s1.size() != s2.size()Description
TRUEevaluated 840026 times by 66 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • 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_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • ...
FALSEevaluated 656355 times by 53 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_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • ...
)
656355-840026
3793 return
executed 840026 times by 66 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • 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_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • ...
false;
executed 840026 times by 66 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • 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_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • ...
840026
3794-
3795 const uchar *c = reinterpret_cast<const uchar *>(s1.latin1());-
3796 if (!c
!cDescription
TRUEnever evaluated
FALSEevaluated 656355 times by 53 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_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • ...
)
0-656355
3797 return
never executed: return s2.isEmpty();
s2.isEmpty();
never executed: return s2.isEmpty();
0
3798 return
executed 656355 times by 53 tests: return ucstrncmp(s2.unicode(), c, s2.size()) == 0;
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_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • ...
ucstrncmp(s2.unicode(), c, s2.size()) == 0;
executed 656355 times by 53 tests: return ucstrncmp(s2.unicode(), c, s2.size()) == 0;
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_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • ...
656355
3799}-
3800bool operator<(const QStringRef &s1,const QStringRef &s2) noexcept-
3801{-
3802 return
executed 3346 times by 14 tests: return ucstrcmp(s1.constData(), s1.length(), s2.constData(), s2.length()) < 0;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QString
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
ucstrcmp(s1.constData(), s1.length(), s2.constData(), s2.length()) < 0;
executed 3346 times by 14 tests: return ucstrcmp(s1.constData(), s1.length(), s2.constData(), s2.length()) < 0;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QString
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
3346
3803}-
3804QStringRef QStringRef::appendTo(QString *string) const-
3805{-
3806 if (!string
!stringDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
0-8
3807 return
never executed: return QStringRef();
QStringRef();
never executed: return QStringRef();
0
3808 int pos = string->size();-
3809 string->insert(pos, unicode(), size());-
3810 return
executed 8 times by 1 test: return QStringRef(string, pos, size());
Executed by:
  • tst_QXmlStream
QStringRef(string, pos, size());
executed 8 times by 1 test: return QStringRef(string, pos, size());
Executed by:
  • tst_QXmlStream
8
3811}-
3812QString &QString::append(const QStringRef &str)-
3813{-
3814 if (str.string() == this
str.string() == thisDescription
TRUEnever evaluated
FALSEevaluated 7514 times by 20 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QLayout
  • tst_QLineEdit
  • tst_QNetworkReply
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QTemporaryFile
  • tst_QWizard
  • tst_qmakelib
  • tst_rcc
) {
0-7514
3815 str.appendTo(this);-
3816 }
never executed: end of block
else if (!str.isNull()
!str.isNull()Description
TRUEevaluated 7508 times by 20 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QLayout
  • tst_QLineEdit
  • tst_QNetworkReply
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QTemporaryFile
  • tst_QWizard
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
) {
0-7508
3817 int oldSize = size();-
3818 resize(oldSize + str.size());-
3819 memcpy(data() + oldSize, str.unicode(), str.size() * sizeof(QChar));-
3820 }
executed 7508 times by 20 tests: end of block
Executed by:
  • tst_QCommandLineParser
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QLayout
  • tst_QLineEdit
  • tst_QNetworkReply
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QTemporaryFile
  • tst_QWizard
  • tst_qmakelib
  • tst_rcc
7508
3821 return
executed 7514 times by 20 tests: return *this;
Executed by:
  • tst_QCommandLineParser
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QLayout
  • tst_QLineEdit
  • tst_QNetworkReply
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QTemporaryFile
  • tst_QWizard
  • tst_qmakelib
  • tst_rcc
*this;
executed 7514 times by 20 tests: return *this;
Executed by:
  • tst_QCommandLineParser
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QLayout
  • tst_QLineEdit
  • tst_QNetworkReply
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QTemporaryFile
  • tst_QWizard
  • tst_qmakelib
  • tst_rcc
7514
3822}-
3823QStringRef QStringRef::left(int n) const-
3824{-
3825 if (uint(n) >= uint(m_size)
uint(n) >= uint(m_size)Description
TRUEevaluated 527 times by 15 tests
Evaluated by:
  • tst_QComboBox
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
FALSEevaluated 163 times by 10 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextEdit
)
163-527
3826 return
executed 527 times by 15 tests: return *this;
Executed by:
  • tst_QComboBox
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
*this;
executed 527 times by 15 tests: return *this;
Executed by:
  • tst_QComboBox
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
527
3827 return
executed 163 times by 10 tests: return QStringRef(m_string, m_position, n);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextEdit
QStringRef(m_string, m_position, n);
executed 163 times by 10 tests: return QStringRef(m_string, m_position, n);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextEdit
163
3828}-
3829QStringRef QString::leftRef(int n) const-
3830{-
3831 if (uint(n) >= uint(d->size)
uint(n) >= uint(d->size)Description
TRUEevaluated 49321 times by 14 tests
Evaluated by:
  • tst_QComboBox
  • tst_QCompleter
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QPluginLoader
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 28977 times by 19 tests
Evaluated by:
  • tst_QFtp
  • tst_QLineEdit
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QTabBar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
  • tst_selftests - unknown status
)
28977-49321
3832 n = d->size;
executed 49321 times by 14 tests: n = d->size;
Executed by:
  • tst_QComboBox
  • tst_QCompleter
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QPluginLoader
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
49321
3833 return
executed 78298 times by 25 tests: return QStringRef(this, 0, n);
Executed by:
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFtp
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QTabBar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
  • tst_selftests - unknown status
QStringRef(this, 0, n);
executed 78298 times by 25 tests: return QStringRef(this, 0, n);
Executed by:
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFtp
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QTabBar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
  • tst_selftests - unknown status
78298
3834}-
3835QStringRef QStringRef::right(int n) const-
3836{-
3837 if (uint(n) >= uint(m_size)
uint(n) >= uint(m_size)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QStringRef
FALSEevaluated 382 times by 7 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QUrl
  • tst_QVariant
)
10-382
3838 return
executed 10 times by 2 tests: return *this;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QStringRef
*this;
executed 10 times by 2 tests: return *this;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QStringRef
10
3839 return
executed 382 times by 7 tests: return QStringRef(m_string, m_size - n + m_position, n);
Executed by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QUrl
  • tst_QVariant
QStringRef(m_string, m_size - n + m_position, n);
executed 382 times by 7 tests: return QStringRef(m_string, m_size - n + m_position, n);
Executed by:
  • tst_QDateTime
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QUrl
  • tst_QVariant
382
3840}-
3841QStringRef QString::rightRef(int n) const-
3842{-
3843 if (uint(n) >= uint(d->size)
uint(n) >= uint(d->size)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2619 times by 33 tests
Evaluated by:
  • tst_QApplication
  • tst_QBrush
  • tst_QColor
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDataStream
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QImage
  • tst_QMimeData
  • tst_QPainter
  • tst_QPen
  • tst_QPixmapFilter
  • tst_QPlainTextEdit
  • tst_QStandardItem
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • ...
)
4-2619
3844 n = d->size;
executed 4 times by 1 test: n = d->size;
Executed by:
  • tst_QString
4
3845 return
executed 2623 times by 33 tests: return QStringRef(this, d->size - n, n);
Executed by:
  • tst_QApplication
  • tst_QBrush
  • tst_QColor
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDataStream
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QImage
  • tst_QMimeData
  • tst_QPainter
  • tst_QPen
  • tst_QPixmapFilter
  • tst_QPlainTextEdit
  • tst_QStandardItem
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • ...
QStringRef(this, d->size - n, n);
executed 2623 times by 33 tests: return QStringRef(this, d->size - n, n);
Executed by:
  • tst_QApplication
  • tst_QBrush
  • tst_QColor
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDataStream
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QImage
  • tst_QMimeData
  • tst_QPainter
  • tst_QPen
  • tst_QPixmapFilter
  • tst_QPlainTextEdit
  • tst_QStandardItem
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • tst_QTextCursor
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • ...
2623
3846}-
3847QStringRef QStringRef::mid(int pos, int n) const-
3848{-
3849 using namespace QtPrivate;-
3850 switch (QContainerImplHelper::mid(m_size, &pos, &n)) {-
3851 case
executed 31 times by 2 tests: case QContainerImplHelper::Null:
Executed by:
  • tst_QDateTime
  • tst_QStringRef
QContainerImplHelper::Null:
executed 31 times by 2 tests: case QContainerImplHelper::Null:
Executed by:
  • tst_QDateTime
  • tst_QStringRef
31
3852 return
executed 31 times by 2 tests: return QStringRef();
Executed by:
  • tst_QDateTime
  • tst_QStringRef
QStringRef();
executed 31 times by 2 tests: return QStringRef();
Executed by:
  • tst_QDateTime
  • tst_QStringRef
31
3853 case
executed 3092 times by 21 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QHostAddress
  • tst_QLayout
  • tst_QString
  • tst_QStringRef
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
QContainerImplHelper::Empty:
executed 3092 times by 21 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QHostAddress
  • tst_QLayout
  • tst_QString
  • tst_QStringRef
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
3092
3854 return
executed 3092 times by 21 tests: return QStringRef(m_string, 0, 0);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QHostAddress
  • tst_QLayout
  • tst_QString
  • tst_QStringRef
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
QStringRef(m_string, 0, 0);
executed 3092 times by 21 tests: return QStringRef(m_string, 0, 0);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QHostAddress
  • tst_QLayout
  • tst_QString
  • tst_QStringRef
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
3092
3855 case
executed 34883 times by 150 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • ...
QContainerImplHelper::Full:
executed 34883 times by 150 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • ...
34883
3856 return
executed 34883 times by 150 tests: return *this;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • ...
*this;
executed 34883 times by 150 tests: return *this;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • ...
34883
3857 case
executed 67473 times by 220 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • ...
QContainerImplHelper::Subset:
executed 67473 times by 220 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • ...
67473
3858 return
executed 67473 times by 220 tests: return QStringRef(m_string, pos + m_position, n);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • ...
QStringRef(m_string, pos + m_position, n);
executed 67473 times by 220 tests: return QStringRef(m_string, pos + m_position, n);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • ...
67473
3859 }-
3860 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,9618) : qt_noop()); __builtin_unreachable(); } while (0);-
3861 return
never executed: return QStringRef();
QStringRef();
never executed: return QStringRef();
0
3862}-
3863QStringRef QString::midRef(int position, int n) const-
3864{-
3865 using namespace QtPrivate;-
3866 switch (QContainerImplHelper::mid(d->size, &position, &n)) {-
3867 case
executed 285 times by 2 tests: case QContainerImplHelper::Null:
Executed by:
  • tst_QFontComboBox
  • tst_QString
QContainerImplHelper::Null:
executed 285 times by 2 tests: case QContainerImplHelper::Null:
Executed by:
  • tst_QFontComboBox
  • tst_QString
285
3868 return
executed 285 times by 2 tests: return QStringRef();
Executed by:
  • tst_QFontComboBox
  • tst_QString
QStringRef();
executed 285 times by 2 tests: return QStringRef();
Executed by:
  • tst_QFontComboBox
  • tst_QString
285
3869 case
executed 1841 times by 19 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTime
QContainerImplHelper::Empty:
executed 1841 times by 19 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTime
1841
3870 return
executed 1841 times by 19 tests: return QStringRef(this, 0, 0);
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTime
QStringRef(this, 0, 0);
executed 1841 times by 19 tests: return QStringRef(this, 0, 0);
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTime
1841
3871 case
executed 41759 times by 42 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • tst_QPlainTextEdit
  • tst_QPluginLoader
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • ...
QContainerImplHelper::Full:
executed 41759 times by 42 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • tst_QPlainTextEdit
  • tst_QPluginLoader
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • ...
41759
3872 return
executed 41759 times by 42 tests: return QStringRef(this, 0, d->size);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • tst_QPlainTextEdit
  • tst_QPluginLoader
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • ...
QStringRef(this, 0, d->size);
executed 41759 times by 42 tests: return QStringRef(this, 0, d->size);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMimeDatabase
  • tst_QPlainTextEdit
  • tst_QPluginLoader
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • ...
41759
3873 case
executed 64470 times by 200 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
QContainerImplHelper::Subset:
executed 64470 times by 200 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
64470
3874 return
executed 64470 times by 200 tests: return QStringRef(this, position, n);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
QStringRef(this, position, n);
executed 64470 times by 200 tests: return QStringRef(this, position, n);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
64470
3875 }-
3876 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,9655) : qt_noop()); __builtin_unreachable(); } while (0);-
3877 return
never executed: return QStringRef();
QStringRef();
never executed: return QStringRef();
0
3878}-
3879int QStringRef::indexOf(const QString &str, int from, Qt::CaseSensitivity cs) const-
3880{-
3881 return
executed 200 times by 2 tests: return qFindString(unicode(), length(), from, str.unicode(), str.length(), cs);
Executed by:
  • tst_QStringRef
  • tst_qmakelib
qFindString(unicode(), length(), from, str.unicode(), str.length(), cs);
executed 200 times by 2 tests: return qFindString(unicode(), length(), from, str.unicode(), str.length(), cs);
Executed by:
  • tst_QStringRef
  • tst_qmakelib
200
3882}-
3883int QStringRef::indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const-
3884{-
3885 return
executed 52119 times by 26 tests: return findChar(unicode(), length(), ch, from, cs);
Executed by:
  • tst_QComboBox
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • ...
findChar(unicode(), length(), ch, from, cs);
executed 52119 times by 26 tests: return findChar(unicode(), length(), ch, from, cs);
Executed by:
  • tst_QComboBox
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolButton
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • ...
52119
3886}-
3887int QStringRef::indexOf(QLatin1String str, int from, Qt::CaseSensitivity cs) const-
3888{-
3889 return
never executed: return qt_find_latin1_string(unicode(), size(), str, from, cs);
qt_find_latin1_string(unicode(), size(), str, from, cs);
never executed: return qt_find_latin1_string(unicode(), size(), str, from, cs);
0
3890}-
3891int QStringRef::indexOf(const QStringRef &str, int from, Qt::CaseSensitivity cs) const-
3892{-
3893 return
executed 196 times by 1 test: return qFindString(unicode(), size(), from, str.unicode(), str.size(), cs);
Executed by:
  • tst_QStringRef
qFindString(unicode(), size(), from, str.unicode(), str.size(), cs);
executed 196 times by 1 test: return qFindString(unicode(), size(), from, str.unicode(), str.size(), cs);
Executed by:
  • tst_QStringRef
196
3894}-
3895int QStringRef::lastIndexOf(const QString &str, int from, Qt::CaseSensitivity cs) const-
3896{-
3897 const int sl = str.size();-
3898 if (sl == 1
sl == 1Description
TRUEevaluated 53 times by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 50 times by 1 test
Evaluated by:
  • tst_QStringRef
)
50-53
3899 return
executed 53 times by 1 test: return lastIndexOf(str.at(0), from, cs);
Executed by:
  • tst_QStringRef
lastIndexOf(str.at(0), from, cs);
executed 53 times by 1 test: return lastIndexOf(str.at(0), from, cs);
Executed by:
  • tst_QStringRef
53
3900-
3901 const int l = size();;-
3902 if (from < 0
from < 0Description
TRUEevaluated 43 times by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QStringRef
)
7-43
3903 from += l;
executed 43 times by 1 test: from += l;
Executed by:
  • tst_QStringRef
43
3904 int delta = l - sl;-
3905 if (from == l
from == lDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 48 times by 1 test
Evaluated by:
  • tst_QStringRef
&& sl == 0
sl == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QStringRef
)
1-48
3906 return
executed 1 time by 1 test: return from;
Executed by:
  • tst_QStringRef
from;
executed 1 time by 1 test: return from;
Executed by:
  • tst_QStringRef
1
3907 if (uint(from) >= uint(l)
uint(from) >= uint(l)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 41 times by 1 test
Evaluated by:
  • tst_QStringRef
|| delta < 0
delta < 0Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_QStringRef
)
7-41
3908 return
executed 15 times by 1 test: return -1;
Executed by:
  • tst_QStringRef
-1;
executed 15 times by 1 test: return -1;
Executed by:
  • tst_QStringRef
15
3909 if (from > delta
from > deltaDescription
TRUEevaluated 29 times by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QStringRef
)
5-29
3910 from = delta;
executed 29 times by 1 test: from = delta;
Executed by:
  • tst_QStringRef
29
3911-
3912 return
executed 34 times by 1 test: return lastIndexOfHelper(reinterpret_cast<const ushort*>(unicode()), from, reinterpret_cast<const ushort*>(str.unicode()), str.size(), cs);
Executed by:
  • tst_QStringRef
lastIndexOfHelper(reinterpret_cast<const ushort*>(unicode()), from,
executed 34 times by 1 test: return lastIndexOfHelper(reinterpret_cast<const ushort*>(unicode()), from, reinterpret_cast<const ushort*>(str.unicode()), str.size(), cs);
Executed by:
  • tst_QStringRef
34
3913 reinterpret_cast<const ushort*>(str.unicode()), str.size(), cs);
executed 34 times by 1 test: return lastIndexOfHelper(reinterpret_cast<const ushort*>(unicode()), from, reinterpret_cast<const ushort*>(str.unicode()), str.size(), cs);
Executed by:
  • tst_QStringRef
34
3914}-
3915int QStringRef::lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const-
3916{-
3917 return
executed 136 times by 1 test: return qt_last_index_of(unicode(), size(), ch, from, cs);
Executed by:
  • tst_QStringRef
qt_last_index_of(unicode(), size(), ch, from, cs);
executed 136 times by 1 test: return qt_last_index_of(unicode(), size(), ch, from, cs);
Executed by:
  • tst_QStringRef
136
3918}-
3919int QStringRef::lastIndexOf(QLatin1String str, int from, Qt::CaseSensitivity cs) const-
3920{-
3921 const int sl = str.size();-
3922 if (sl == 1
sl == 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
3923 return
never executed: return lastIndexOf(QLatin1Char(str.latin1()[0]), from, cs);
lastIndexOf(QLatin1Char(str.latin1()[0]), from, cs);
never executed: return lastIndexOf(QLatin1Char(str.latin1()[0]), from, cs);
0
3924-
3925 const int l = size();-
3926 if (from < 0
from < 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
3927 from += l;
never executed: from += l;
0
3928 int delta = l - sl;-
3929 if (from == l
from == lDescription
TRUEnever evaluated
FALSEnever evaluated
&& sl == 0
sl == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
3930 return
never executed: return from;
from;
never executed: return from;
0
3931 if (uint(from) >= uint(l)
uint(from) >= uint(l)Description
TRUEnever evaluated
FALSEnever evaluated
|| delta < 0
delta < 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
3932 return
never executed: return -1;
-1;
never executed: return -1;
0
3933 if (from > delta
from > deltaDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
3934 from = delta;
never executed: from = delta;
0
3935-
3936 QVarLengthArray<ushort> s(sl);-
3937 qt_from_latin1(s.data(), str.latin1(), sl);-
3938-
3939 return
never executed: return lastIndexOfHelper(reinterpret_cast<const ushort*>(unicode()), from, s.data(), sl, cs);
lastIndexOfHelper(reinterpret_cast<const ushort*>(unicode()), from, s.data(), sl, cs);
never executed: return lastIndexOfHelper(reinterpret_cast<const ushort*>(unicode()), from, s.data(), sl, cs);
0
3940}-
3941int QStringRef::lastIndexOf(const QStringRef &str, int from, Qt::CaseSensitivity cs) const-
3942{-
3943 const int sl = str.size();-
3944 if (sl == 1
sl == 1Description
TRUEevaluated 53 times by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 50 times by 1 test
Evaluated by:
  • tst_QStringRef
)
50-53
3945 return
executed 53 times by 1 test: return lastIndexOf(str.at(0), from, cs);
Executed by:
  • tst_QStringRef
lastIndexOf(str.at(0), from, cs);
executed 53 times by 1 test: return lastIndexOf(str.at(0), from, cs);
Executed by:
  • tst_QStringRef
53
3946-
3947 const int l = size();-
3948 if (from < 0
from < 0Description
TRUEevaluated 43 times by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QStringRef
)
7-43
3949 from += l;
executed 43 times by 1 test: from += l;
Executed by:
  • tst_QStringRef
43
3950 int delta = l - sl;-
3951 if (from == l
from == lDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 48 times by 1 test
Evaluated by:
  • tst_QStringRef
&& sl == 0
sl == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QStringRef
)
1-48
3952 return
executed 1 time by 1 test: return from;
Executed by:
  • tst_QStringRef
from;
executed 1 time by 1 test: return from;
Executed by:
  • tst_QStringRef
1
3953 if (uint(from) >= uint(l)
uint(from) >= uint(l)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 41 times by 1 test
Evaluated by:
  • tst_QStringRef
|| delta < 0
delta < 0Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_QStringRef
)
7-41
3954 return
executed 15 times by 1 test: return -1;
Executed by:
  • tst_QStringRef
-1;
executed 15 times by 1 test: return -1;
Executed by:
  • tst_QStringRef
15
3955 if (from > delta
from > deltaDescription
TRUEevaluated 29 times by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QStringRef
)
5-29
3956 from = delta;
executed 29 times by 1 test: from = delta;
Executed by:
  • tst_QStringRef
29
3957-
3958 return
executed 34 times by 1 test: return lastIndexOfHelper(reinterpret_cast<const ushort*>(unicode()), from, reinterpret_cast<const ushort*>(str.unicode()), str.size(), cs);
Executed by:
  • tst_QStringRef
lastIndexOfHelper(reinterpret_cast<const ushort*>(unicode()), from,
executed 34 times by 1 test: return lastIndexOfHelper(reinterpret_cast<const ushort*>(unicode()), from, reinterpret_cast<const ushort*>(str.unicode()), str.size(), cs);
Executed by:
  • tst_QStringRef
34
3959 reinterpret_cast<const ushort*>(str.unicode()),
executed 34 times by 1 test: return lastIndexOfHelper(reinterpret_cast<const ushort*>(unicode()), from, reinterpret_cast<const ushort*>(str.unicode()), str.size(), cs);
Executed by:
  • tst_QStringRef
34
3960 str.size(), cs);
executed 34 times by 1 test: return lastIndexOfHelper(reinterpret_cast<const ushort*>(unicode()), from, reinterpret_cast<const ushort*>(str.unicode()), str.size(), cs);
Executed by:
  • tst_QStringRef
34
3961}-
3962int QStringRef::count(const QString &str, Qt::CaseSensitivity cs) const-
3963{-
3964 return
executed 4 times by 1 test: return qt_string_count(unicode(), size(), str.unicode(), str.size(), cs);
Executed by:
  • tst_QStringRef
qt_string_count(unicode(), size(), str.unicode(), str.size(), cs);
executed 4 times by 1 test: return qt_string_count(unicode(), size(), str.unicode(), str.size(), cs);
Executed by:
  • tst_QStringRef
4
3965}-
3966int QStringRef::count(QChar ch, Qt::CaseSensitivity cs) const-
3967{-
3968 return
executed 5 times by 1 test: return qt_string_count(unicode(), size(), ch, cs);
Executed by:
  • tst_QStringRef
qt_string_count(unicode(), size(), ch, cs);
executed 5 times by 1 test: return qt_string_count(unicode(), size(), ch, cs);
Executed by:
  • tst_QStringRef
5
3969}-
3970int QStringRef::count(const QStringRef &str, Qt::CaseSensitivity cs) const-
3971{-
3972 return
never executed: return qt_string_count(unicode(), size(), str.unicode(), str.size(), cs);
qt_string_count(unicode(), size(), str.unicode(), str.size(), cs);
never executed: return qt_string_count(unicode(), size(), str.unicode(), str.size(), cs);
0
3973}-
3974bool QStringRef::startsWith(const QString &str, Qt::CaseSensitivity cs) const-
3975{-
3976 return
executed 68 times by 3 tests: return qt_starts_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QSpinBox
  • tst_QStringRef
qt_starts_with(isNull() ? 0 : unicode(), size(),
executed 68 times by 3 tests: return qt_starts_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QSpinBox
  • tst_QStringRef
68
3977 str.isNull() ? 0 : str.unicode(), str.size(), cs);
executed 68 times by 3 tests: return qt_starts_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QSpinBox
  • tst_QStringRef
68
3978}-
3979-
3980-
3981-
3982-
3983-
3984-
3985bool QStringRef::startsWith(QLatin1String str, Qt::CaseSensitivity cs) const-
3986{-
3987 return
executed 5479 times by 28 tests: return qt_starts_with(isNull() ? 0 : unicode(), size(), str, cs);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStringRef
  • tst_QTcpSocket
  • ...
qt_starts_with(isNull() ? 0 : unicode(), size(), str, cs);
executed 5479 times by 28 tests: return qt_starts_with(isNull() ? 0 : unicode(), size(), str, cs);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDateTime
  • tst_QHttpNetworkConnection
  • tst_QItemModel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStringRef
  • tst_QTcpSocket
  • ...
5479
3988}-
3989-
3990-
3991-
3992-
3993-
3994-
3995bool QStringRef::startsWith(const QStringRef &str, Qt::CaseSensitivity cs) const-
3996{-
3997 return
never executed: return qt_starts_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
qt_starts_with(isNull() ? 0 : unicode(), size(),
never executed: return qt_starts_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
0
3998 str.isNull() ? 0 : str.unicode(), str.size(), cs);
never executed: return qt_starts_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
0
3999}-
4000bool QStringRef::startsWith(QChar ch, Qt::CaseSensitivity cs) const-
4001{-
4002 if (!isEmpty()
!isEmpty()Description
TRUEevaluated 93315 times by 185 tests
Evaluated by:
  • tst_Gestures
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
FALSEevaluated 17 times by 2 tests
Evaluated by:
  • tst_QLoggingRegistry
  • tst_QStringRef
) {
17-93315
4003 const ushort *data = reinterpret_cast<const ushort*>(unicode());-
4004 return
executed 93315 times by 185 tests: return (cs == Qt::CaseSensitive ? data[0] == ch : foldCase(data[0]) == foldCase(ch.unicode()));
Executed by:
  • tst_Gestures
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
(cs == Qt::CaseSensitive
executed 93315 times by 185 tests: return (cs == Qt::CaseSensitive ? data[0] == ch : foldCase(data[0]) == foldCase(ch.unicode()));
Executed by:
  • tst_Gestures
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
93315
4005 ? data[0] == ch
executed 93315 times by 185 tests: return (cs == Qt::CaseSensitive ? data[0] == ch : foldCase(data[0]) == foldCase(ch.unicode()));
Executed by:
  • tst_Gestures
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
93315
4006 : foldCase(data[0]) == foldCase(ch.unicode()));
executed 93315 times by 185 tests: return (cs == Qt::CaseSensitive ? data[0] == ch : foldCase(data[0]) == foldCase(ch.unicode()));
Executed by:
  • tst_Gestures
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • ...
93315
4007 } else {-
4008 return
executed 17 times by 2 tests: return false;
Executed by:
  • tst_QLoggingRegistry
  • tst_QStringRef
false;
executed 17 times by 2 tests: return false;
Executed by:
  • tst_QLoggingRegistry
  • tst_QStringRef
17
4009 }-
4010}-
4011bool QStringRef::endsWith(const QString &str, Qt::CaseSensitivity cs) const-
4012{-
4013 return
executed 70 times by 4 tests: return qt_ends_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStringRef
qt_ends_with(isNull() ? 0 : unicode(), size(),
executed 70 times by 4 tests: return qt_ends_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStringRef
70
4014 str.isNull() ? 0 : str.unicode(), str.size(), cs);
executed 70 times by 4 tests: return qt_ends_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStringRef
70
4015}-
4016bool QStringRef::endsWith(QChar ch, Qt::CaseSensitivity cs) const-
4017{-
4018 if (!isEmpty()
!isEmpty()Description
TRUEevaluated 24148 times by 10 tests
Evaluated by:
  • tst_QDateTime
  • tst_QFontCache
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QStringRef
) {
6-24148
4019 const ushort *data = reinterpret_cast<const ushort*>(unicode());-
4020 const int size = length();-
4021 return
executed 24148 times by 10 tests: return (cs == Qt::CaseSensitive ? data[size - 1] == ch : foldCase(data[size - 1]) == foldCase(ch.unicode()));
Executed by:
  • tst_QDateTime
  • tst_QFontCache
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
(cs == Qt::CaseSensitive
executed 24148 times by 10 tests: return (cs == Qt::CaseSensitive ? data[size - 1] == ch : foldCase(data[size - 1]) == foldCase(ch.unicode()));
Executed by:
  • tst_QDateTime
  • tst_QFontCache
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
24148
4022 ? data[size - 1] == ch
executed 24148 times by 10 tests: return (cs == Qt::CaseSensitive ? data[size - 1] == ch : foldCase(data[size - 1]) == foldCase(ch.unicode()));
Executed by:
  • tst_QDateTime
  • tst_QFontCache
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
24148
4023 : foldCase(data[size - 1]) == foldCase(ch.unicode()));
executed 24148 times by 10 tests: return (cs == Qt::CaseSensitive ? data[size - 1] == ch : foldCase(data[size - 1]) == foldCase(ch.unicode()));
Executed by:
  • tst_QDateTime
  • tst_QFontCache
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
24148
4024 } else {-
4025 return
executed 6 times by 1 test: return false;
Executed by:
  • tst_QStringRef
false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_QStringRef
6
4026 }-
4027}-
4028-
4029-
4030-
4031-
4032-
4033-
4034bool QStringRef::endsWith(QLatin1String str, Qt::CaseSensitivity cs) const-
4035{-
4036 return
executed 96430 times by 3 tests: return qt_ends_with(isNull() ? 0 : unicode(), size(), str, cs);
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QStringRef
qt_ends_with(isNull() ? 0 : unicode(), size(), str, cs);
executed 96430 times by 3 tests: return qt_ends_with(isNull() ? 0 : unicode(), size(), str, cs);
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QStringRef
96430
4037}-
4038-
4039-
4040-
4041-
4042-
4043-
4044bool QStringRef::endsWith(const QStringRef &str, Qt::CaseSensitivity cs) const-
4045{-
4046 return
never executed: return qt_ends_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
qt_ends_with(isNull() ? 0 : unicode(), size(),
never executed: return qt_ends_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
0
4047 str.isNull() ? 0 : str.unicode(), str.size(), cs);
never executed: return qt_ends_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
0
4048}-
4049static inline int qt_last_index_of(const QChar *haystack, int haystackLen, QChar needle,-
4050 int from, Qt::CaseSensitivity cs)-
4051{-
4052 ushort c = needle.unicode();-
4053 if (from < 0
from < 0Description
TRUEevaluated 256550 times by 303 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 7319 times by 40 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QDataUrl
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • ...
)
7319-256550
4054 from += haystackLen;
executed 256550 times by 303 tests: from += haystackLen;
Executed by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
256550
4055 if (uint(from) >= uint(haystackLen)
uint(from) >= ...t(haystackLen)Description
TRUEevaluated 1243 times by 14 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSystemEntry
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QPluginLoader
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEevaluated 262626 times by 303 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
)
1243-262626
4056 return
executed 1243 times by 14 tests: return -1;
Executed by:
  • tst_QFileDialog2
  • tst_QFileSystemEntry
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QPluginLoader
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
  • tst_qmakelib
  • tst_selftests - unknown status
-1;
executed 1243 times by 14 tests: return -1;
Executed by:
  • tst_QFileDialog2
  • tst_QFileSystemEntry
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QPluginLoader
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
  • tst_qmakelib
  • tst_selftests - unknown status
1243
4057 if (from >= 0
from >= 0Description
TRUEevaluated 262626 times by 303 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEnever evaluated
) {
0-262626
4058 const ushort *b = reinterpret_cast<const ushort*>(haystack);-
4059 const ushort *n = b + from;-
4060 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 262594 times by 303 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 32 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
) {
32-262594
4061 for (; n >= b
n >= bDescription
TRUEevaluated 4147227 times by 303 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 7415 times by 190 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • ...
; --n)
7415-4147227
4062 if (*
*n == cDescription
TRUEevaluated 255179 times by 285 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEevaluated 3892048 times by 303 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
n == c
*n == cDescription
TRUEevaluated 255179 times by 285 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEevaluated 3892048 times by 303 tests
Evaluated by:
  • 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_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
)
255179-3892048
4063 return
executed 255179 times by 285 tests: return n - b;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
n - b;
executed 255179 times by 285 tests: return n - b;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
255179
4064 }
executed 7415 times by 190 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • ...
else {
7415
4065 c = foldCase(c);-
4066 for (; n >= b
n >= bDescription
TRUEevaluated 56 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
; --n)
8-56
4067 if (foldCase(*n) == c
foldCase(*n) == cDescription
TRUEevaluated 24 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 32 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
)
24-32
4068 return
executed 24 times by 2 tests: return n - b;
Executed by:
  • tst_QString
  • tst_QStringRef
n - b;
executed 24 times by 2 tests: return n - b;
Executed by:
  • tst_QString
  • tst_QStringRef
24
4069 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
8
4070 }-
4071 return
executed 7423 times by 190 tests: return -1;
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • ...
-1;
executed 7423 times by 190 tests: return -1;
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • ...
7423
4072-
4073-
4074}-
4075-
4076static inline int qt_string_count(const QChar *haystack, int haystackLen,-
4077 const QChar *needle, int needleLen,-
4078 Qt::CaseSensitivity cs)-
4079{-
4080 int num = 0;-
4081 int i = -1;-
4082 if (haystackLen > 500
haystackLen > 500Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 18 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
&& needleLen > 5
needleLen > 5Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcess
) {
0-18
4083 QStringMatcher matcher(needle, needleLen, cs);-
4084 while ((
(i = matcher.i... i + 1)) != -1Description
TRUEnever evaluated
FALSEnever evaluated
i = matcher.indexIn(haystack, haystackLen, i + 1)) != -1
(i = matcher.i... i + 1)) != -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
4085 ++
never executed: ++num;
num;
never executed: ++num;
0
4086 }
never executed: end of block
else {
0
4087 while ((
(i = qFindStri...en, cs)) != -1Description
TRUEevaluated 20628 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QProcess
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QProcess
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
i = qFindString(haystack, haystackLen, i + 1, needle, needleLen, cs)) != -1
(i = qFindStri...en, cs)) != -1Description
TRUEevaluated 20628 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QProcess
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QProcess
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
)
20-20628
4088 ++
executed 20628 times by 5 tests: ++num;
Executed by:
  • tst_Collections
  • tst_QProcess
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
num;
executed 20628 times by 5 tests: ++num;
Executed by:
  • tst_Collections
  • tst_QProcess
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
20628
4089 }
executed 20 times by 5 tests: end of block
Executed by:
  • tst_Collections
  • tst_QProcess
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
20
4090 return
executed 20 times by 5 tests: return num;
Executed by:
  • tst_Collections
  • tst_QProcess
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
num;
executed 20 times by 5 tests: return num;
Executed by:
  • tst_Collections
  • tst_QProcess
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
20
4091}-
4092-
4093static inline int qt_string_count(const QChar *unicode, int size, QChar ch,-
4094 Qt::CaseSensitivity cs)-
4095{-
4096 ushort c = ch.unicode();-
4097 int num = 0;-
4098 const ushort *b = reinterpret_cast<const ushort*>(unicode);-
4099 const ushort *i = b + size;-
4100 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 54675 times by 30 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • ...
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
) {
2-54675
4101 while (i != b
i != bDescription
TRUEevaluated 530412 times by 30 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • ...
FALSEevaluated 54675 times by 30 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • ...
)
54675-530412
4102 if (*--
*--i == cDescription
TRUEevaluated 15161 times by 29 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • ...
FALSEevaluated 515251 times by 30 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • ...
i == c
*--i == cDescription
TRUEevaluated 15161 times by 29 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • ...
FALSEevaluated 515251 times by 30 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • ...
)
15161-515251
4103 ++
executed 15161 times by 29 tests: ++num;
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • ...
num;
executed 15161 times by 29 tests: ++num;
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • ...
15161
4104 }
executed 54675 times by 30 tests: end of block
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • ...
else {
54675
4105 c = foldCase(c);-
4106 while (i != b
i != bDescription
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
)
2-30
4107 if (foldCase(*(--i)) == c
foldCase(*(--i)) == cDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 24 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
)
6-24
4108 ++
executed 6 times by 2 tests: ++num;
Executed by:
  • tst_QString
  • tst_QStringRef
num;
executed 6 times by 2 tests: ++num;
Executed by:
  • tst_QString
  • tst_QStringRef
6
4109 }
executed 2 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
2
4110 return
executed 54677 times by 30 tests: return num;
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • ...
num;
executed 54677 times by 30 tests: return num;
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • 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_QListView
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QSidebar
  • tst_QString
  • tst_QStringRef
  • tst_QStyle
  • tst_QSystemTrayIcon
  • ...
54677
4111}-
4112-
4113static inline int qt_find_latin1_string(const QChar *haystack, int size,-
4114 QLatin1String needle,-
4115 int from, Qt::CaseSensitivity cs)-
4116{-
4117 if (size < needle.size()
size < needle.size()Description
TRUEevaluated 2811 times by 30 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QPlainTextEdit
  • tst_QSizeGrip
  • tst_QSplitter
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTreeView
  • tst_QWidget
  • ...
FALSEevaluated 7708 times by 181 tests
Evaluated by:
  • tst_Gestures
  • 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
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • ...
)
2811-7708
4118 return
executed 2811 times by 30 tests: return -1;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QPlainTextEdit
  • tst_QSizeGrip
  • tst_QSplitter
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTreeView
  • tst_QWidget
  • ...
-1;
executed 2811 times by 30 tests: return -1;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMdiSubWindow
  • tst_QPlainTextEdit
  • tst_QSizeGrip
  • tst_QSplitter
  • tst_QTableView
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTreeView
  • tst_QWidget
  • ...
2811
4119-
4120 const char *latin1 = needle.latin1();-
4121 int len = needle.size();-
4122 QVarLengthArray<ushort> s(len);-
4123 qt_from_latin1(s.data(), latin1, len);-
4124-
4125 return
executed 7708 times by 181 tests: return qFindString(haystack, size, from, reinterpret_cast<const QChar*>(s.constData()), len, cs);
Executed by:
  • tst_Gestures
  • 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
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • ...
qFindString(haystack, size, from,
executed 7708 times by 181 tests: return qFindString(haystack, size, from, reinterpret_cast<const QChar*>(s.constData()), len, cs);
Executed by:
  • tst_Gestures
  • 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
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • ...
7708
4126 reinterpret_cast<const QChar*>(s.constData()), len, cs);
executed 7708 times by 181 tests: return qFindString(haystack, size, from, reinterpret_cast<const QChar*>(s.constData()), len, cs);
Executed by:
  • tst_Gestures
  • 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
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • ...
7708
4127}-
4128-
4129static inline bool qt_starts_with(const QChar *haystack, int haystackLen,-
4130 const QChar *needle, int needleLen, Qt::CaseSensitivity cs)-
4131{-
4132 if (!haystack
!haystackDescription
TRUEevaluated 264 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QCompleter
  • tst_QFiledialog
  • tst_QNetworkReply
  • tst_QSql
  • tst_QString
  • tst_QStringRef
  • tst_QTreeView
FALSEevaluated 432338 times by 120 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • ...
)
264-432338
4133 return
executed 264 times by 8 tests: return !needle;
Executed by:
  • tst_QAbstractItemView
  • tst_QCompleter
  • tst_QFiledialog
  • tst_QNetworkReply
  • tst_QSql
  • tst_QString
  • tst_QStringRef
  • tst_QTreeView
!needle;
executed 264 times by 8 tests: return !needle;
Executed by:
  • tst_QAbstractItemView
  • tst_QCompleter
  • tst_QFiledialog
  • tst_QNetworkReply
  • tst_QSql
  • tst_QString
  • tst_QStringRef
  • tst_QTreeView
264
4134 if (haystackLen == 0
haystackLen == 0Description
TRUEevaluated 23 times by 5 tests
Evaluated by:
  • tst_QCompleter
  • tst_QNetworkCookieJar
  • tst_QString
  • tst_QStringRef
  • tst_rcc
FALSEevaluated 432315 times by 120 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • ...
)
23-432315
4135 return
executed 23 times by 5 tests: return needleLen == 0;
Executed by:
  • tst_QCompleter
  • tst_QNetworkCookieJar
  • tst_QString
  • tst_QStringRef
  • tst_rcc
needleLen == 0;
executed 23 times by 5 tests: return needleLen == 0;
Executed by:
  • tst_QCompleter
  • tst_QNetworkCookieJar
  • tst_QString
  • tst_QStringRef
  • tst_rcc
23
4136 if (needleLen > haystackLen
needleLen > haystackLenDescription
TRUEevaluated 101241 times by 28 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QNetworkCookieJar
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QStorageInfo
  • tst_QString
  • tst_QStringRef
  • tst_QWizard
  • tst_QXmlInputSource
  • tst_Selftests
  • tst_languageChange
  • ...
FALSEevaluated 331074 times by 120 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • ...
)
101241-331074
4137 return
executed 101241 times by 28 tests: return false;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QNetworkCookieJar
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QStorageInfo
  • tst_QString
  • tst_QStringRef
  • tst_QWizard
  • tst_QXmlInputSource
  • tst_Selftests
  • tst_languageChange
  • ...
false;
executed 101241 times by 28 tests: return false;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QNetworkCookieJar
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QStorageInfo
  • tst_QString
  • tst_QStringRef
  • tst_QWizard
  • tst_QXmlInputSource
  • tst_Selftests
  • tst_languageChange
  • ...
101241
4138-
4139 const ushort *h = reinterpret_cast<const ushort*>(haystack);-
4140 const ushort *n = reinterpret_cast<const ushort*>(needle);-
4141-
4142 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 328871 times by 113 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 2203 times by 22 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QFileDialog2
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QStorageInfo
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
) {
2203-328871
4143 return
executed 328871 times by 113 tests: return qMemEquals(h, n, needleLen);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
qMemEquals(h, n, needleLen);
executed 328871 times by 113 tests: return qMemEquals(h, n, needleLen);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
328871
4144 } else {-
4145 uint last = 0;-
4146 uint olast = 0;-
4147 for (int i = 0; i < needleLen
i < needleLenDescription
TRUEevaluated 5659 times by 22 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QFileDialog2
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QStorageInfo
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
FALSEevaluated 613 times by 21 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QFileDialog2
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QStorageInfo
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTableWidget
  • tst_QTreeView
; ++i)
613-5659
4148 if (foldCase(h[i], last) != foldCase(n[i], olast)
foldCase(h[i],...e(n[i], olast)Description
TRUEevaluated 1590 times by 13 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 4069 times by 21 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QFileDialog2
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QStorageInfo
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTableWidget
  • tst_QTreeView
)
1590-4069
4149 return
executed 1590 times by 13 tests: return false;
Executed by:
  • tst_QAbstractItemModel
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
false;
executed 1590 times by 13 tests: return false;
Executed by:
  • tst_QAbstractItemModel
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
1590
4150 }
executed 613 times by 21 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QFileDialog2
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QStorageInfo
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTableWidget
  • tst_QTreeView
613
4151 return
executed 613 times by 21 tests: return true;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QFileDialog2
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QStorageInfo
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTableWidget
  • tst_QTreeView
true;
executed 613 times by 21 tests: return true;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QFileDialog2
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QPrinter
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QStorageInfo
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTableWidget
  • tst_QTreeView
613
4152}-
4153-
4154static inline bool qt_starts_with(const QChar *haystack, int haystackLen,-
4155 QLatin1String needle, Qt::CaseSensitivity cs)-
4156{-
4157 if (!haystack
!haystackDescription
TRUEevaluated 6767 times by 53 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusXmlParser
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QItemModel
  • tst_QMainWindow
  • ...
FALSEevaluated 251067 times by 236 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
)
6767-251067
4158 return
executed 6767 times by 53 tests: return !needle.latin1();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusXmlParser
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QItemModel
  • tst_QMainWindow
  • ...
!needle.latin1();
executed 6767 times by 53 tests: return !needle.latin1();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusXmlParser
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QItemModel
  • tst_QMainWindow
  • ...
6767
4159 if (haystackLen == 0
haystackLen == 0Description
TRUEevaluated 1953 times by 11 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Selftests
  • tst_languageChange
  • tst_qlogging - unknown status
FALSEevaluated 249114 times by 236 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
)
1953-249114
4160 return
executed 1953 times by 11 tests: return !needle.latin1() || *needle.latin1() == 0;
Executed by:
  • tst_QDBusXmlParser
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Selftests
  • tst_languageChange
  • tst_qlogging - unknown status
!needle.latin1() || *needle.latin1() == 0;
executed 1953 times by 11 tests: return !needle.latin1() || *needle.latin1() == 0;
Executed by:
  • tst_QDBusXmlParser
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Selftests
  • tst_languageChange
  • tst_qlogging - unknown status
1953
4161 const int slen = needle.size();-
4162 if (slen > haystackLen
slen > haystackLenDescription
TRUEevaluated 164586 times by 136 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDir
  • tst_QDirIterator
  • ...
FALSEevaluated 84528 times by 234 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
)
84528-164586
4163 return
executed 164586 times by 136 tests: return false;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDir
  • tst_QDirIterator
  • ...
false;
executed 164586 times by 136 tests: return false;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDir
  • tst_QDirIterator
  • ...
164586
4164 const ushort *data = reinterpret_cast<const ushort*>(haystack);-
4165 const uchar *latin = reinterpret_cast<const uchar*>(needle.latin1());-
4166 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 80855 times by 233 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 3673 times by 15 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QApplication
  • tst_QComboBox
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTabBar
  • tst_QWidget
) {
3673-80855
4167 return
executed 80855 times by 233 tests: return ucstrncmp(haystack, latin, slen) == 0;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
ucstrncmp(haystack, latin, slen) == 0;
executed 80855 times by 233 tests: return ucstrncmp(haystack, latin, slen) == 0;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
80855
4168 } else {-
4169 for (int i = 0; i < slen
i < slenDescription
TRUEevaluated 3803 times by 15 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QApplication
  • tst_QComboBox
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTabBar
  • tst_QWidget
FALSEevaluated 34 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
; ++i)
34-3803
4170 if (foldCase(data[i]) != foldCase((ushort)latin[i])
foldCase(data[...hort)latin[i])Description
TRUEevaluated 3639 times by 15 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QApplication
  • tst_QComboBox
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTabBar
  • tst_QWidget
FALSEevaluated 164 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
)
164-3639
4171 return
executed 3639 times by 15 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QApplication
  • tst_QComboBox
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTabBar
  • tst_QWidget
false;
executed 3639 times by 15 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QApplication
  • tst_QComboBox
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QMainWindow
  • tst_QMenu
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTabBar
  • tst_QWidget
3639
4172 }
executed 34 times by 4 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
34
4173 return
executed 34 times by 4 tests: return true;
Executed by:
  • tst_QDateTime
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
true;
executed 34 times by 4 tests: return true;
Executed by:
  • tst_QDateTime
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
34
4174}-
4175-
4176static inline bool qt_ends_with(const QChar *haystack, int haystackLen,-
4177 const QChar *needle, int needleLen, Qt::CaseSensitivity cs)-
4178{-
4179 if (!haystack
!haystackDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 4562 times by 63 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLabel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
)
6-4562
4180 return
executed 6 times by 2 tests: return !needle;
Executed by:
  • tst_QString
  • tst_QStringRef
!needle;
executed 6 times by 2 tests: return !needle;
Executed by:
  • tst_QString
  • tst_QStringRef
6
4181 if (haystackLen == 0
haystackLen == 0Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 4556 times by 63 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLabel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
)
6-4556
4182 return
executed 6 times by 2 tests: return needleLen == 0;
Executed by:
  • tst_QString
  • tst_QStringRef
needleLen == 0;
executed 6 times by 2 tests: return needleLen == 0;
Executed by:
  • tst_QString
  • tst_QStringRef
6
4183 const int pos = haystackLen - needleLen;-
4184 if (pos < 0
pos < 0Description
TRUEevaluated 212 times by 24 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QHttpNetworkConnection
  • tst_QLabel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qmake
FALSEevaluated 4344 times by 54 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
)
212-4344
4185 return
executed 212 times by 24 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QHttpNetworkConnection
  • tst_QLabel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qmake
false;
executed 212 times by 24 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCompleter
  • tst_QHttpNetworkConnection
  • tst_QLabel
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QSslCertificate
  • tst_QSslEllipticCurve
  • tst_QSslError
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QTextBoundaryFinder
  • tst_QTextLayout
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qmake
212
4186-
4187 const ushort *h = reinterpret_cast<const ushort*>(haystack);-
4188 const ushort *n = reinterpret_cast<const ushort*>(needle);-
4189-
4190 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 4321 times by 52 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • ...
FALSEevaluated 23 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
) {
23-4321
4191 return
executed 4321 times by 52 tests: return qMemEquals(h + pos, n, needleLen);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • ...
qMemEquals(h + pos, n, needleLen);
executed 4321 times by 52 tests: return qMemEquals(h + pos, n, needleLen);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • ...
4321
4192 } else {-
4193 uint last = 0;-
4194 uint olast = 0;-
4195 for (int i = 0; i < needleLen
i < needleLenDescription
TRUEevaluated 24 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
FALSEevaluated 14 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
; i++)
14-24
4196 if (foldCase(h[pos+i], last) != foldCase(n[i], olast)
foldCase(h[pos...e(n[i], olast)Description
TRUEevaluated 9 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
FALSEevaluated 15 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
)
9-15
4197 return
executed 9 times by 4 tests: return false;
Executed by:
  • tst_QAbstractItemModel
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
false;
executed 9 times by 4 tests: return false;
Executed by:
  • tst_QAbstractItemModel
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
9
4198 }
executed 14 times by 4 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
14
4199 return
executed 14 times by 4 tests: return true;
Executed by:
  • tst_QAbstractItemModel
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
true;
executed 14 times by 4 tests: return true;
Executed by:
  • tst_QAbstractItemModel
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
14
4200}-
4201-
4202-
4203static inline bool qt_ends_with(const QChar *haystack, int haystackLen,-
4204 QLatin1String needle, Qt::CaseSensitivity cs)-
4205{-
4206 if (!haystack
!haystackDescription
TRUEevaluated 201 times by 13 tests
Evaluated by:
  • tst_QBrush
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QPixmap
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
FALSEevaluated 146201 times by 125 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
)
201-146201
4207 return
executed 201 times by 13 tests: return !needle.latin1();
Executed by:
  • tst_QBrush
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QPixmap
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
!needle.latin1();
executed 201 times by 13 tests: return !needle.latin1();
Executed by:
  • tst_QBrush
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QPixmap
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
201
4208 if (haystackLen == 0
haystackLen == 0Description
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QStringRef
FALSEevaluated 146187 times by 125 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
)
14-146187
4209 return
executed 14 times by 3 tests: return !needle.latin1() || *needle.latin1() == 0;
Executed by:
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QStringRef
!needle.latin1() || *needle.latin1() == 0;
executed 14 times by 3 tests: return !needle.latin1() || *needle.latin1() == 0;
Executed by:
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QStringRef
14
4210 const int slen = needle.size();-
4211 int pos = haystackLen - slen;-
4212 if (pos < 0
pos < 0Description
TRUEevaluated 49748 times by 11 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QCssParser
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocumentFragment
FALSEevaluated 96439 times by 125 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
)
49748-96439
4213 return
executed 49748 times by 11 tests: return false;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QCssParser
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocumentFragment
false;
executed 49748 times by 11 tests: return false;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QCssParser
  • tst_QIcoImageFormat
  • tst_QImageReader
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocumentFragment
49748
4214 const uchar *latin = reinterpret_cast<const uchar*>(needle.latin1());-
4215 const ushort *data = reinterpret_cast<const ushort*>(haystack);-
4216 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 95873 times by 121 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 566 times by 16 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QWidget
) {
566-95873
4217 return
executed 95873 times by 121 tests: return ucstrncmp(haystack + pos, latin, slen) == 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
ucstrncmp(haystack + pos, latin, slen) == 0;
executed 95873 times by 121 tests: return ucstrncmp(haystack + pos, latin, slen) == 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFactoryLoader
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
95873
4218 } else {-
4219 for (int i = 0; i < slen
i < slenDescription
TRUEevaluated 1125 times by 16 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QWidget
FALSEevaluated 511 times by 16 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QWidget
; i++)
511-1125
4220 if (foldCase(data[pos+i]) != foldCase((ushort)latin[i])
foldCase(data[...hort)latin[i])Description
TRUEevaluated 55 times by 7 tests
Evaluated by:
  • tst_QCssParser
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QToolTip
FALSEevaluated 1070 times by 16 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QWidget
)
55-1070
4221 return
executed 55 times by 7 tests: return false;
Executed by:
  • tst_QCssParser
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QToolTip
false;
executed 55 times by 7 tests: return false;
Executed by:
  • tst_QCssParser
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QToolTip
55
4222 }
executed 511 times by 16 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QWidget
511
4223 return
executed 511 times by 16 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QWidget
true;
executed 511 times by 16 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QToolTip
  • tst_QWidget
511
4224}-
4225QByteArray QStringRef::toLatin1() const-
4226{-
4227 return
executed 4355 times by 10 tests: return QString::toLatin1_helper(unicode(), length());
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QSettings
  • tst_QString
  • tst_QStringRef
  • tst_languageChange
QString::toLatin1_helper(unicode(), length());
executed 4355 times by 10 tests: return QString::toLatin1_helper(unicode(), length());
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QSettings
  • tst_QString
  • tst_QStringRef
  • tst_languageChange
4355
4228}-
4229QByteArray QStringRef::toLocal8Bit() const-
4230{-
4231-
4232 QTextCodec *localeCodec = QTextCodec::codecForLocale();-
4233 if (localeCodec
localeCodecDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QString
FALSEnever evaluated
)
0-8
4234 return
executed 8 times by 2 tests: return localeCodec->fromUnicode(unicode(), length());
Executed by:
  • tst_QFiledialog
  • tst_QString
localeCodec->fromUnicode(unicode(), length());
executed 8 times by 2 tests: return localeCodec->fromUnicode(unicode(), length());
Executed by:
  • tst_QFiledialog
  • tst_QString
8
4235-
4236 return
never executed: return toLatin1();
toLatin1();
never executed: return toLatin1();
0
4237}-
4238QByteArray QStringRef::toUtf8() const-
4239{-
4240 if (isNull()
isNull()Description
TRUEnever evaluated
FALSEevaluated 4688 times by 3 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QString
  • tst_QTimeZone
)
0-4688
4241 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
4242-
4243 return
executed 4688 times by 3 tests: return QUtf8::convertFromUnicode(constData(), length());
Executed by:
  • tst_QMimeDatabase
  • tst_QString
  • tst_QTimeZone
QUtf8::convertFromUnicode(constData(), length());
executed 4688 times by 3 tests: return QUtf8::convertFromUnicode(constData(), length());
Executed by:
  • tst_QMimeDatabase
  • tst_QString
  • tst_QTimeZone
4688
4244}-
4245QVector<uint> QStringRef::toUcs4() const-
4246{-
4247 QVector<uint> v(length());-
4248 uint *a = v.data();-
4249 int len = QString::toUcs4_helper(reinterpret_cast<const ushort *>(unicode()), length(), a);-
4250 v.resize(len);-
4251 return
never executed: return v;
v;
never executed: return v;
0
4252}-
4253QStringRef QStringRef::trimmed() const-
4254{-
4255 const QChar *begin = cbegin();-
4256 const QChar *end = cend();-
4257 QStringAlgorithms<const QStringRef>::trimmed_helper_positions(begin, end);-
4258 if (begin == cbegin()
begin == cbegin()Description
TRUEevaluated 37679 times by 135 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
FALSEevaluated 19 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QFontCache
  • tst_QSpinBox
  • tst_QStringRef
&& end == cend()
end == cend()Description
TRUEevaluated 37647 times by 134 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
FALSEevaluated 32 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QFtp
  • tst_QNetworkReply
  • tst_QSpinBox
)
19-37679
4259 return
executed 37647 times by 134 tests: return *this;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
*this;
executed 37647 times by 134 tests: return *this;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
37647
4260 if (begin == end
begin == endDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QStringRef
FALSEevaluated 48 times by 6 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QFontCache
  • tst_QFtp
  • tst_QNetworkReply
  • tst_QSpinBox
  • tst_QStringRef
)
3-48
4261 return
executed 3 times by 2 tests: return QStringRef();
Executed by:
  • tst_QDoubleSpinBox
  • tst_QStringRef
QStringRef();
executed 3 times by 2 tests: return QStringRef();
Executed by:
  • tst_QDoubleSpinBox
  • tst_QStringRef
3
4262 int position = m_position + (begin - cbegin());-
4263 return
executed 48 times by 6 tests: return QStringRef(m_string, position, end - begin);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QFontCache
  • tst_QFtp
  • tst_QNetworkReply
  • tst_QSpinBox
  • tst_QStringRef
QStringRef(m_string, position, end - begin);
executed 48 times by 6 tests: return QStringRef(m_string, position, end - begin);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QFontCache
  • tst_QFtp
  • tst_QNetworkReply
  • tst_QSpinBox
  • tst_QStringRef
48
4264}-
4265qint64 QStringRef::toLongLong(bool *ok, int base) const-
4266{-
4267 return
executed 46772 times by 2 tests: return QString::toIntegral_helper<qint64>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
  • tst_qmakelib
QString::toIntegral_helper<qint64>(constData(), size(), ok, base);
executed 46772 times by 2 tests: return QString::toIntegral_helper<qint64>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
  • tst_qmakelib
46772
4268}-
4269quint64 QStringRef::toULongLong(bool *ok, int base) const-
4270{-
4271 return
executed 41 times by 1 test: return QString::toIntegral_helper<quint64>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
QString::toIntegral_helper<quint64>(constData(), size(), ok, base);
executed 41 times by 1 test: return QString::toIntegral_helper<quint64>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
41
4272}-
4273long QStringRef::toLong(bool *ok, int base) const-
4274{-
4275 return
executed 58 times by 3 tests: return QString::toIntegral_helper<long>(constData(), size(), ok, base);
Executed by:
  • tst_QDateTime
  • tst_QStringRef
  • tst_QTime
QString::toIntegral_helper<long>(constData(), size(), ok, base);
executed 58 times by 3 tests: return QString::toIntegral_helper<long>(constData(), size(), ok, base);
Executed by:
  • tst_QDateTime
  • tst_QStringRef
  • tst_QTime
58
4276}-
4277ulong QStringRef::toULong(bool *ok, int base) const-
4278{-
4279 return
executed 40 times by 1 test: return QString::toIntegral_helper<ulong>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
QString::toIntegral_helper<ulong>(constData(), size(), ok, base);
executed 40 times by 1 test: return QString::toIntegral_helper<ulong>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
40
4280}-
4281int QStringRef::toInt(bool *ok, int base) const-
4282{-
4283 return
executed 14732 times by 16 tests: return QString::toIntegral_helper<int>(constData(), size(), ok, base);
Executed by:
  • tst_QAccessibility
  • tst_QAction
  • tst_QDate
  • tst_QDateTime
  • tst_QGuiVariant
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QShortcut
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
QString::toIntegral_helper<int>(constData(), size(), ok, base);
executed 14732 times by 16 tests: return QString::toIntegral_helper<int>(constData(), size(), ok, base);
Executed by:
  • tst_QAccessibility
  • tst_QAction
  • tst_QDate
  • tst_QDateTime
  • tst_QGuiVariant
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QShortcut
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
14732
4284}-
4285uint QStringRef::toUInt(bool *ok, int base) const-
4286{-
4287 return
executed 1684 times by 5 tests: return QString::toIntegral_helper<uint>(constData(), size(), ok, base);
Executed by:
  • tst_QHostAddress
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QXmlStream
  • tst_Selftests
QString::toIntegral_helper<uint>(constData(), size(), ok, base);
executed 1684 times by 5 tests: return QString::toIntegral_helper<uint>(constData(), size(), ok, base);
Executed by:
  • tst_QHostAddress
  • tst_QStringRef
  • tst_QTcpSocket
  • tst_QXmlStream
  • tst_Selftests
1684
4288}-
4289short QStringRef::toShort(bool *ok, int base) const-
4290{-
4291 return
executed 70 times by 1 test: return QString::toIntegral_helper<short>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
QString::toIntegral_helper<short>(constData(), size(), ok, base);
executed 70 times by 1 test: return QString::toIntegral_helper<short>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
70
4292}-
4293ushort QStringRef::toUShort(bool *ok, int base) const-
4294{-
4295 return
executed 61 times by 1 test: return QString::toIntegral_helper<ushort>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
QString::toIntegral_helper<ushort>(constData(), size(), ok, base);
executed 61 times by 1 test: return QString::toIntegral_helper<ushort>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
61
4296}-
4297double QStringRef::toDouble(bool *ok) const-
4298{-
4299 return
executed 84 times by 4 tests: return QLocaleData::c()->stringToDouble(constData(), size(), ok, QLocale::RejectGroupSeparator);
Executed by:
  • tst_QGuiVariant
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
QLocaleData::c()->stringToDouble(constData(), size(), ok, QLocale::RejectGroupSeparator);
executed 84 times by 4 tests: return QLocaleData::c()->stringToDouble(constData(), size(), ok, QLocale::RejectGroupSeparator);
Executed by:
  • tst_QGuiVariant
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
84
4300}-
4301float QStringRef::toFloat(bool *ok) const-
4302{-
4303 return
executed 15 times by 1 test: return QLocaleData::convertDoubleToFloat(toDouble(ok), ok);
Executed by:
  • tst_QStringRef
QLocaleData::convertDoubleToFloat(toDouble(ok), ok);
executed 15 times by 1 test: return QLocaleData::convertDoubleToFloat(toDouble(ok), ok);
Executed by:
  • tst_QStringRef
15
4304}-
4305QString QString::toHtmlEscaped() const-
4306{-
4307 QString rich;-
4308 const int len = length();-
4309 rich.reserve(int(len * 1.1));-
4310 for (int i = 0; i < len
i < lenDescription
TRUEevaluated 23789 times by 20 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QItemDelegate
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 2656 times by 20 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QItemDelegate
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
; ++i) {
2656-23789
4311 if (at(i) == QLatin1Char('<')
at(i) == QLatin1Char('<')Description
TRUEevaluated 737 times by 4 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QString
  • tst_QTextDocument
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 23052 times by 20 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QItemDelegate
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
)
737-23052
4312 rich += QLatin1String("&lt;");
executed 737 times by 4 tests: rich += QLatin1String("&lt;");
Executed by:
  • tst_QDBusInterface
  • tst_QString
  • tst_QTextDocument
  • tst_qdbuscpp2xml - unknown status
737
4313 else if (at(i) == QLatin1Char('>')
at(i) == QLatin1Char('>')Description
TRUEevaluated 737 times by 4 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QString
  • tst_QTextDocument
  • tst_qdbuscpp2xml - unknown status
FALSEevaluated 22315 times by 20 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QItemDelegate
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
)
737-22315
4314 rich += QLatin1String("&gt;");
executed 737 times by 4 tests: rich += QLatin1String("&gt;");
Executed by:
  • tst_QDBusInterface
  • tst_QString
  • tst_QTextDocument
  • tst_qdbuscpp2xml - unknown status
737
4315 else if (at(i) == QLatin1Char('&')
at(i) == QLatin1Char('&')Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextDocument
FALSEevaluated 22310 times by 20 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QItemDelegate
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
)
5-22310
4316 rich += QLatin1String("&amp;");
executed 5 times by 2 tests: rich += QLatin1String("&amp;");
Executed by:
  • tst_QString
  • tst_QTextDocument
5
4317 else if (at(i) == QLatin1Char('"')
at(i) == QLatin1Char('"')Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextDocument
FALSEevaluated 22304 times by 20 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QItemDelegate
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
)
6-22304
4318 rich += QLatin1String("&quot;");
executed 6 times by 2 tests: rich += QLatin1String("&quot;");
Executed by:
  • tst_QString
  • tst_QTextDocument
6
4319 else-
4320 rich += at(i);
executed 22304 times by 20 tests: rich += at(i);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QItemDelegate
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
22304
4321 }-
4322 rich.squeeze();-
4323 return
executed 2656 times by 20 tests: return rich;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QItemDelegate
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
rich;
executed 2656 times by 20 tests: return rich;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QItemDelegate
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextList
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusxml2cpp - unknown status
2656
4324}-
4325void QAbstractConcatenable::appendLatin1To(const char *a, int len, QChar *out) noexcept-
4326{-
4327 qt_from_latin1(reinterpret_cast<ushort *>(out), a, uint(len));-
4328}
executed 130482 times by 513 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
130482
4329-
4330-
Switch to Source codePreprocessed file

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