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 6490921 times by 720 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 32903230 times by 807 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
  • ...
)
6490921-32903230
45 return
executed 6490952 times by 720 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 6490952 times by 720 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
  • ...
6490952
46-
47 bool check = loopCheck(i);-
48 if (check
checkDescription
TRUEevaluated 1381261 times by 555 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 31522028 times by 807 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
  • ...
) {
1381261-31522028
49 const RetType &retval = returnIfFailed(i);-
50 return
executed 1381261 times by 555 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 1381261 times by 555 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
  • ...
1381261
51 }-
52-
53 return
executed 31510179 times by 807 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 31510179 times by 807 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
  • ...
31510179
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 15984012 times by 719 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 15984012 times by 719 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-15984012
64 }
executed 2504564 times by 720 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
  • ...
2504564
65};-
66template <> template <typename RetType, typename Functor1, typename Functor2>-
67inline RetType UnrollTailLoop<0>::exec(int, RetType returnIfExited, Functor1, Functor2, int)-
68{-
69 return
executed 523506 times by 484 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_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
returnIfExited;
executed 523506 times by 484 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_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
523506
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 1567911 times by 550 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 2214904 times by 720 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) {
1567911-2214904
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 1567911 times by 550 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_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
  • ...
1567911
106-
107 size = size % 16;-
108 dst += offset;-
109 str += offset;-
110-
111 return
executed 2214904 times by 720 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 2214904 times by 720 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
  • ...
2214904-14559810
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 767416 times by 380 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 767416 times by 380 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
  • ...
767416
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 383708 times by 380 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 289660 times by 448 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) {
289660-383708
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 383708 times by 380 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
  • ...
383708
165-
166 length = length % 16;-
167 dst += offset;-
168 src += offset;-
169-
170-
171 return
executed 289660 times by 448 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 1424191 times by 447 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 1424191 times by 447 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 289660 times by 448 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-1424202
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 4625 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 488665 times by 164 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
  • ...
)
4625-488665
183 return
executed 4625 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 4625 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
  • ...
4625
184 if (a == 0
a == 0Description
TRUEnever evaluated
FALSEevaluated 488665 times by 164 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-488665
185 return
never executed: return 1;
1;
never executed: return 1;
0
186 if (b == 0
b == 0Description
TRUEnever evaluated
FALSEevaluated 488665 times by 164 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-488665
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 226096 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 262569 times by 164 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
  • ...
)
226096-262569
191 e = a + (be - b);
executed 226096 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
  • ...
226096
192-
193 uint alast = 0;-
194 uint blast = 0;-
195 while (a < e
a < eDescription
TRUEevaluated 1637572 times by 164 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 71226 times by 162 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
  • ...
) {
71226-1637572
196-
197-
198-
199 int diff = foldCase(*a, alast) - foldCase(*b, blast);-
200 if ((
(diff)Description
TRUEevaluated 417439 times by 154 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 1220133 times by 163 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 417439 times by 154 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 1220133 times by 163 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
  • ...
)
417439-1220133
201 return
executed 417439 times by 154 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 417439 times by 154 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
  • ...
417439
202 ++a;-
203 ++b;-
204 }
executed 1220133 times by 163 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
  • ...
1220133
205 if (a == ae
a == aeDescription
TRUEevaluated 66587 times by 162 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 4639 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
  • ...
) {
4639-66587
206 if (b == be
b == beDescription
TRUEevaluated 57463 times by 162 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 9124 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
  • ...
)
9124-57463
207 return
executed 57463 times by 162 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 57463 times by 162 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
  • ...
57463
208 return
executed 9124 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 9124 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
  • ...
9124
209 }-
210 return
executed 4639 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 4639 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
  • ...
4639
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 16802 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-16802
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 16802 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-16802
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 3984 times by 24 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_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 12818 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
  • ...
)
3984-12818
226 e = a + (be - b);
executed 3984 times by 24 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_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
3984
227-
228 while (a < e
a < eDescription
TRUEevaluated 68943 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 4472 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
  • ...
) {
4472-68943
229 int diff = foldCase(*a) - foldCase(*b);-
230 if ((
(diff)Description
TRUEevaluated 12330 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 56613 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 12330 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 56613 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
  • ...
)
12330-56613
231 return
executed 12330 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 12330 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
  • ...
12330
232 ++a;-
233 ++b;-
234 }
executed 56613 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
  • ...
56613
235 if (a == ae
a == aeDescription
TRUEevaluated 4322 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 150 times by 13 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QXmlStream
) {
150-4322
236 if (b == be
b == beDescription
TRUEevaluated 3753 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 569 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
)
569-3753
237 return
executed 3753 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 3753 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
  • ...
3753
238 return
executed 569 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 569 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
569
239 }-
240 return
executed 150 times by 13 tests: return 1;
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QXmlStream
1;
executed 150 times by 13 tests: return 1;
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QXmlStream
150
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 6243664 times by 602 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
FALSEevaluated 3882046 times by 616 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) {
3882046-6243664
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 1473564 times by 468 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 4770100 times by 601 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_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
  • ...
) {
1473564-4770100
257-
258 uint idx = uint(__bsfd(mask));-
259 return
executed 1473564 times by 468 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 1473564 times by 468 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
  • ...
1473564
260 - reinterpret_cast<const QChar *>(ptr + distance + idx)->unicode();
executed 1473564 times by 468 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
  • ...
1473564
261 }-
262 }
executed 4770100 times by 601 tests: end of block
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_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
  • ...
4770100
263-
264 const auto &lambda = [=](int i) -> int {-
265 return
executed 13023200 times by 615 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 13023200 times by 615 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
  • ...
13023200
266 - reinterpret_cast<const QChar *>(ptr + distance)[i].unicode();
executed 13023200 times by 615 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
  • ...
13023200
267 };-
268 return
executed 3882046 times by 616 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 3882046 times by 616 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
  • ...
3882046
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 49948 times by 343 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 1099422 times by 460 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) {
49948-1099422
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 19712 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 30236 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
  • ...
) {
19712-30236
346-
347 uint idx = uint(__bsfd(mask));-
348 return
executed 19712 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 19712 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
  • ...
19712
349 }-
350 }
executed 30236 times by 342 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
  • ...
30236
351-
352-
353 enum { MaxTailLength = 7 };-
354-
355 if (uc + offset + 7 < e
uc + offset + 7 < eDescription
TRUEevaluated 361043 times by 254 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 738379 times by 455 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
  • ...
) {
361043-738379
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 80759 times by 228 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • 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
  • ...
FALSEevaluated 280284 times by 244 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
  • ...
) {
80759-280284
364-
365 uint idx = uint(__bsfd(mask));-
366 return
executed 80759 times by 228 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_QAbstractPrintDialog
  • 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
  • ...
uc[offset + idx / 2] - c[offset + idx / 2];
executed 80759 times by 228 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_QAbstractPrintDialog
  • 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
  • ...
80759
367 }-
368-
369-
370 offset += 8;-
371 }
executed 280284 times by 244 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
  • ...
280284
372-
373-
374-
375-
376-
377-
378-
379 uc += offset;-
380 c += offset;-
381-
382-
383 const auto &lambda = [=](int i) { return
executed 2969312 times by 459 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 2969312 times by 459 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
  • ...
};
2969312
384 return
executed 1018663 times by 459 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 1018663 times by 459 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
  • ...
1018663
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 80470 times by 428 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • 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
  • tst_QDataStream
  • ...
FALSEevaluated 2253452 times by 463 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 80469 times by 428 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • 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
  • tst_QDataStream
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
)
1-2253452
402 return
executed 80469 times by 428 tests: return 0;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • 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
  • tst_QDataStream
  • ...
0;
executed 80469 times by 428 tests: return 0;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • 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
  • tst_QDataStream
  • ...
80469
403 int l = qMin(alen, blen);-
404 int cmp = ucstrncmp(a, b, l);-
405 return
executed 2253777 times by 463 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
cmpDescription
TRUEevaluated 2072105 times by 443 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_QCssParser
  • ...
FALSEevaluated 181672 times by 207 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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_QCoreApplication
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
? cmp : (alen-blen);
executed 2253777 times by 463 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
  • ...
181672-2253777
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 921446 times by 461 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 3030930 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
|| !length
!lengthDescription
TRUEevaluated 220559 times by 132 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 2810371 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
)
220559-3030930
417 return
executed 1142005 times by 474 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 1142005 times by 474 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
  • ...
1142005
418-
419 return
executed 2810371 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
ucstrncmp(reinterpret_cast<const QChar *>(a), reinterpret_cast<const QChar *>(b), length) == 0;
executed 2810371 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
2810371
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 518239 times by 443 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
cmpDescription
TRUEevaluated 222479 times by 221 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • 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_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 295760 times by 440 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
  • ...
? cmp : (alen-blen);
executed 518239 times by 443 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
  • ...
222479-518239
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 1387889 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-1387889
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 1384399 times by 321 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 3491 times by 63 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • ...
) {
3491-1384399
436 const ushort *n = s + from;-
437 const ushort *e = s + len;-
438 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 1383938 times by 320 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-1383938
439-
440 __m128i mch = _mm_set1_epi32(c | (c << 16));-
441-
442-
443 for (const ushort *next = n + 8; next <= e
next <= eDescription
TRUEevaluated 1050720 times by 312 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 992185 times by 309 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) {
992185-1050720
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 391753 times by 270 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 658967 times by 297 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
  • ...
) {
391753-658967
448-
449-
450 return
executed 391753 times by 270 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 391753 times by 270 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
  • ...
391753
451 + __bsfd(mask)) >> 1;
executed 391753 times by 270 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
  • ...
391753
452 }-
453 }
executed 658967 times by 297 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
  • ...
658967
454-
455-
456 return
executed 992185 times by 309 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 992185 times by 309 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
  • ...
992185
457 [=](int i) { return
executed 2236993 times by 307 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 2236993 times by 307 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 992185 times by 309 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
  • ...
992185-2236993
458 [=](int i) { return
executed 71033 times by 138 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 71033 times by 138 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 992185 times by 309 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
  • ...
71033-992185
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 3616 times by 66 tests: return -1;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • ...
-1;
executed 3616 times by 66 tests: return -1;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • ...
3616
474}-
475-
476-
477-
478-
479-
480-
481inline bool qIsUpper(char ch)-
482{-
483 return
executed 114903 times by 50 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 >= 'A'Description
TRUEevaluated 114903 times by 50 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 109911 times by 50 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
  • ...
;
executed 114903 times by 50 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
  • ...
0-114903
484}-
485-
486inline bool qIsDigit(char ch)-
487{-
488 return
executed 420370 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 >= '0'Description
TRUEevaluated 411001 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
  • ...
FALSEevaluated 9369 times by 9 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QHttpSocketEngine
  • tst_QLCDNumber
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
&& ch <= '9'
ch <= '9'Description
TRUEevaluated 56329 times by 23 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_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QTime
  • tst_QUdpSocket
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEevaluated 354672 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
  • ...
;
executed 420370 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
  • ...
9369-420370
489}-
490-
491inline char qToLower(char ch)-
492{-
493 if (ch >= 'A'
ch >= 'A'Description
TRUEevaluated 114903 times by 50 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 109911 times by 50 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-114903
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 109911 times by 50 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 109911 times by 50 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
  • ...
109911
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 13159949 times by 546 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-13159949
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 101050 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 13058899 times by 546 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
  • ...
) {
101050-13058899
517 size = 0;-
518 while (!unicode[size].isNull()
!unicode[size].isNull()Description
TRUEevaluated 3080963 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 101050 times by 9 tests
Evaluated by:
  • tst_QItemModel
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
)
101050-3080963
519 ++
executed 3080963 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 3080963 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
3080963
520 }
executed 101050 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
101050
521 if (!size
!sizeDescription
TRUEevaluated 421779 times by 400 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 12738170 times by 421 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
  • ...
) {
421779-12738170
522 d = Data::allocate(0);-
523 }
executed 421779 times by 400 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 {
421779
524 d = Data::allocate(size + 1);-
525 do { if (!(d)
!(d)Description
TRUEnever evaluated
FALSEevaluated 12738170 times by 421 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-12738170
526 d->size = size;-
527 memcpy(d->data(), unicode, size * sizeof(QChar));-
528 d->data()[size] = '\0';-
529 }
executed 12738170 times by 421 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
  • ...
12738170
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 249846 times by 43 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QPlainTextEdit
  • tst_QSignalSpy
  • ...
) {
201-249846
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 249846 times by 43 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QPlainTextEdit
  • tst_QSignalSpy
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-249846
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 404828 times by 43 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QPlainTextEdit
  • tst_QSignalSpy
  • ...
FALSEevaluated 249846 times by 43 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QPlainTextEdit
  • tst_QSignalSpy
  • ...
)
249846-404828
552 *--
executed 404828 times by 43 tests: *--i = value;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QPlainTextEdit
  • tst_QSignalSpy
  • ...
i = value;
executed 404828 times by 43 tests: *--i = value;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QPlainTextEdit
  • tst_QSignalSpy
  • ...
404828
553 }
executed 249846 times by 43 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLineEdit
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QPlainTextEdit
  • tst_QSignalSpy
  • ...
249846
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 60792734 times by 594 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-60792734
566 d->size = size;-
567 d->data()[size] = '\0';-
568}
executed 60792734 times by 594 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
  • ...
60792734
569QString::QString(QChar ch)-
570{-
571 d = Data::allocate(2);-
572 do { if (!(d)
!(d)Description
TRUEnever evaluated
FALSEevaluated 488750 times by 265 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-488750
573 d->size = 1;-
574 d->data()[0] = ch.unicode();-
575 d->data()[1] = '\0';-
576}
executed 488750 times by 265 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
  • ...
488750
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 87220402 times by 559 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-87220402
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 87220520 times by 559 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 87220520 times by 559 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-87220520
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 1778203 times by 447 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_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCache
  • ...
FALSEevaluated 85442319 times by 544 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 227704 times by 168 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_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
  • tst_QDBusConnection
  • ...
FALSEevaluated 85214615 times by 535 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
  • ...
)
227704-85442319
588 reallocData(uint(size) + 1u, true);
executed 2005907 times by 460 tests: reallocData(uint(size) + 1u, true);
Executed by:
  • tst_Collections
  • 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_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
2005907
589 if (d->alloc
d->allocDescription
TRUEevaluated 87220522 times by 559 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-87220522
590 d->size = size;-
591 d->data()[size] = '\0';-
592 }
executed 87220522 times by 559 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
  • ...
87220522
593}
executed 87220522 times by 559 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
  • ...
87220522
594void QString::reallocData(uint alloc, bool grow)-
595{-
596 if (grow
growDescription
TRUEevaluated 3837956 times by 541 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
FALSEevaluated 1038742 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
  • ...
) {
1038742-3837956
597 if (alloc > (uint(MaxAllocSize) - sizeof(Data)) / sizeof(QChar)
alloc > (uint(... sizeof(QChar)Description
TRUEnever evaluated
FALSEevaluated 3837956 times by 541 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
)
0-3837956
598 qBadAlloc();
never executed: qBadAlloc();
0
599 alloc = qAllocMore(alloc * sizeof(QChar), sizeof(Data)) / sizeof(QChar);-
600 }
executed 3837956 times by 541 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_QApplication
  • tst_QArrayData
  • ...
3837956
601-
602 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 3633906 times by 538 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
FALSEevaluated 1242792 times by 503 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_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
|| ((
((d)->offset !...(QStringData))Description
TRUEevaluated 8376 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QString
  • tst_QTime
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 1234416 times by 503 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_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
d)->offset != sizeof(QStringData))
((d)->offset !...(QStringData))Description
TRUEevaluated 8376 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QString
  • tst_QTime
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 1234416 times by 503 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_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
) {
8376-3633906
603 Data::AllocationOptions allocOptions(d->capacityReserved ? Data::CapacityReserved : 0);-
604 Data *x = Data::allocate(alloc, allocOptions);-
605 do { if (!(x)
!(x)Description
TRUEnever evaluated
FALSEevaluated 3642282 times by 538 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-3642282
606 x->size = qMin(int(alloc) - 1, d->size);-
607 ::memcpy(x->data(), d->data(), x->size * sizeof(QChar));-
608 x->data()[x->size] = 0;-
609 if (!d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 8376 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QString
  • tst_QTime
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 3633906 times by 538 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
)
8376-3633906
610 Data::deallocate(d);
executed 8376 times by 14 tests: Data::deallocate(d);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QString
  • tst_QTime
  • tst_QUrl
  • tst_QXmlStream
8376
611 d = x;-
612 }
executed 3642282 times by 538 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_QApplication
  • tst_QArrayData
  • ...
else {
3642282
613 Data *p = static_cast<Data *>(::realloc(d, sizeof(Data) + alloc * sizeof(QChar)));-
614 do { if (!(p)
!(p)Description
TRUEnever evaluated
FALSEevaluated 1234416 times by 503 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_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-1234416
615 d = p;-
616 d->alloc = alloc;-
617 d->offset = sizeof(QStringData);-
618 }
executed 1234416 times by 503 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_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
1234416
619}-
620-
621void QString::expand(int i)-
622{-
623 int sz = d->size;-
624 resize(qMax(i + 1, sz));-
625 if (d->size - 1 > sz
d->size - 1 > szDescription
TRUEevaluated 699856 times by 100 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractFileEngine
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • 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_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QEventLoop
  • ...
FALSEevaluated 780777 times by 425 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
  • ...
) {
699856-780777
626 ushort *n = d->data() + d->size - 1;-
627 ushort *e = d->data() + sz;-
628 while (n != e
n != eDescription
TRUEevaluated 5687733 times by 100 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractFileEngine
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • 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_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QEventLoop
  • ...
FALSEevaluated 699856 times by 100 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractFileEngine
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • 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_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QEventLoop
  • ...
)
699856-5687733
629 *
executed 5687733 times by 100 tests: * --n = ' ';
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractFileEngine
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • 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_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QEventLoop
  • ...
--n = ' ';
executed 5687733 times by 100 tests: * --n = ' ';
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractFileEngine
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • 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_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QEventLoop
  • ...
5687733
630 }
executed 699856 times by 100 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractFileEngine
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • 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_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QEventLoop
  • ...
699856
631}
executed 1480633 times by 440 tests: end of block
Executed by:
  • tst_Collections
  • 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_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
1480633
632QString &QString::operator=(const QString &other) noexcept-
633{-
634 other.d->ref.ref();-
635 if (!d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 849156 times by 263 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 7023579 times by 448 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
)
849156-7023579
636 Data::deallocate(d);
executed 849156 times by 263 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
  • ...
849156
637 d = other.d;-
638 return
executed 7872735 times by 454 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
*this;
executed 7872735 times by 454 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
7872735
639}-
640QString &QString::operator=(QLatin1String other)-
641{-
642 if (isDetached()
isDetached()Description
TRUEevaluated 152758 times by 657 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_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 199496 times by 544 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 147839 times by 492 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_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
FALSEevaluated 4919 times by 641 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_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
  • ...
) {
4919-199496
643 d->size = other.size();-
644 d->data()[other.size()] = 0;-
645 qt_from_latin1(d->data(), other.latin1(), other.size());-
646 }
executed 147839 times by 492 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_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
else {
147839
647 *this = fromLatin1(other.latin1(), other.size());-
648 }
executed 204415 times by 690 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
  • ...
204415
649 return
executed 352254 times by 690 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 352254 times by 690 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
  • ...
352254
650}-
651QString &QString::operator=(QChar ch)-
652{-
653 if (isDetached()
isDetached()Description
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 75330 times by 107 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • ...
&& capacity() >= 1
capacity() >= 1Description
TRUEevaluated 696 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-75330
654-
655 ushort *dat = d->data();-
656 dat[0] = ch.unicode();-
657 dat[1] = 0;-
658 d->size = 1;-
659 }
executed 696 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 {
696
660 operator=(QString(ch));-
661 }
executed 75331 times by 107 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • ...
75331
662 return
executed 76027 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 76027 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
  • ...
76027
663}-
664QString &QString::insert(int i, QLatin1String str)-
665{-
666 const char *s = str.latin1();-
667 if (i < 0
i < 0Description
TRUEnever evaluated
FALSEevaluated 18042 times by 56 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • 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_QItemDelegate
  • tst_QItemModel
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • ...
|| !s
!sDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 18034 times by 56 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • 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_QItemDelegate
  • tst_QItemModel
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • ...
|| !(*s)
!(*s)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 18026 times by 56 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • 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_QItemDelegate
  • tst_QItemModel
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • ...
)
0-18042
668 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
669-
670 int len = str.size();-
671 expand(qMax(d->size, i) + len - 1);-
672-
673 ::memmove(d->data() + i + len, d->data() + i, (d->size - i - len) * sizeof(QChar));-
674 qt_from_latin1(d->data() + i, s, uint(len));-
675 return
executed 18026 times by 56 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • 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_QItemDelegate
  • tst_QItemModel
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • ...
*this;
executed 18026 times by 56 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • 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_QItemDelegate
  • tst_QItemModel
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • ...
18026
676}-
677QString& QString::insert(int i, const QChar *unicode, int size)-
678{-
679 if (i < 0
i < 0Description
TRUEnever evaluated
FALSEevaluated 984787 times by 84 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • 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_QDBusType
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QDir
  • ...
|| size <= 0
size <= 0Description
TRUEevaluated 279220 times by 45 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • 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_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • ...
FALSEevaluated 705567 times by 68 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_QDBusType
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • ...
)
0-984787
680 return
executed 279220 times by 45 tests: return *this;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • 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_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • ...
*this;
executed 279220 times by 45 tests: return *this;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • 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_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • ...
279220
681-
682 const ushort *s = (const ushort *)unicode;-
683 if (s >= d->data()
s >= d->data()Description
TRUEevaluated 150314 times by 61 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractFileEngine
  • 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_QDBusType
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • ...
FALSEevaluated 555253 times by 63 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_QDBusType
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • ...
&& s < d->data() + d->alloc
s < d->data() + d->allocDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QString
FALSEevaluated 150311 times by 61 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractFileEngine
  • 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_QDBusType
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • ...
) {
3-555253
684-
685 ushort *tmp = static_cast<ushort *>(::malloc(size * sizeof(QChar)));-
686 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
687 memcpy(tmp, s, size * sizeof(QChar));-
688 insert(i, reinterpret_cast<const QChar *>(tmp), size);-
689 ::free(tmp);-
690 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
691 }-
692-
693 expand(qMax(d->size, i) + size - 1);-
694-
695 ::memmove(d->data() + i + size, d->data() + i, (d->size - i - size) * sizeof(QChar));-
696 memcpy(d->data() + i, s, size * sizeof(QChar));-
697 return
executed 705564 times by 68 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_QDBusType
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • ...
*this;
executed 705564 times by 68 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_QDBusType
  • tst_QDBusXmlParser
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • ...
705564
698}-
699QString& QString::insert(int i, QChar ch)-
700{-
701 if (i < 0
i < 0Description
TRUEnever evaluated
FALSEevaluated 730500 times by 421 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-730500
702 i += d->size;
never executed: i += d->size;
0
703 if (i < 0
i < 0Description
TRUEnever evaluated
FALSEevaluated 730500 times by 421 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-730500
704 return
never executed: return *this;
*this;
never executed: return *this;
0
705 expand(qMax(i, d->size));-
706 ::memmove(d->data() + i + 1, d->data() + i, (d->size - i - 1) * sizeof(QChar));-
707 d->data()[i] = ch.unicode();-
708 return
executed 730500 times by 421 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 730500 times by 421 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
  • ...
730500
709}-
710QString &QString::append(const QString &str)-
711{-
712 if (str.d != Data::sharedNull()
str.d != Data::sharedNull()Description
TRUEevaluated 44864085 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_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
FALSEevaluated 41338 times by 135 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_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • ...
) {
41338-44864085
713 if (d == Data::sharedNull()
d == Data::sharedNull()Description
TRUEevaluated 560528 times by 266 tests
Evaluated by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • ...
FALSEevaluated 44303557 times by 510 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_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • ...
) {
560528-44303557
714 operator=(str);-
715 }
executed 560528 times by 266 tests: end of block
Executed by:
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • ...
else {
560528
716 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 474489 times by 300 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • 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_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • ...
FALSEevaluated 43829068 times by 499 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_QBitArray
  • ...
|| uint(d->size + str.d->size) + 1u > d->alloc
uint(d->size +... 1u > d->allocDescription
TRUEevaluated 642292 times by 457 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_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBitArray
  • tst_QBoxLayout
  • ...
FALSEevaluated 43186776 times by 483 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_QBitArray
  • ...
)
474489-43829068
717 reallocData(uint(d->size + str.d->size) + 1u, true);
executed 1116781 times by 499 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_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
  • ...
1116781
718 memcpy(d->data() + d->size, str.d->data(), str.d->size * sizeof(QChar));-
719 d->size += str.d->size;-
720 d->data()[d->size] = '\0';-
721 }
executed 44303557 times by 510 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_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
  • ...
44303557
722 }-
723 return
executed 44905423 times by 528 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
*this;
executed 44905423 times by 528 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
44905423
724}-
725-
726-
727-
728-
729-
730-
731-
732QString &QString::append(const QChar *str, int len)-
733{-
734 if (str
strDescription
TRUEevaluated 261951 times by 99 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 259145 times by 99 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 2806 times by 10 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QString
  • tst_QTextStream
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_Selftests
) {
1-261951
735 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 54210 times by 80 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_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • ...
FALSEevaluated 204935 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 36484 times by 68 tests
Evaluated by:
  • 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
  • tst_QKeyEvent
  • ...
FALSEevaluated 168451 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
  • ...
)
36484-204935
736 reallocData(uint(d->size + len) + 1u, true);
executed 90694 times by 86 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_QGuiApplication
  • tst_QGuiEventLoop
  • ...
90694
737 memcpy(d->data() + d->size, str, len * sizeof(QChar));-
738 d->size += len;-
739 d->data()[d->size] = '\0';-
740 }
executed 259145 times by 99 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
  • ...
259145
741 return
executed 261952 times by 99 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 261952 times by 99 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
  • ...
261952
742}-
743-
744-
745-
746-
747-
748-
749QString &QString::append(QLatin1String str)-
750{-
751 const char *s = str.latin1();-
752 if (s
sDescription
TRUEevaluated 116300 times by 149 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QColorDialog
  • 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_QDBusReply
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • ...
FALSEevaluated 57 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QXmlStream
) {
57-116300
753 int len = str.size();-
754 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 12945 times by 106 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDebug
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDnsLookup
  • ...
FALSEevaluated 103355 times by 110 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • 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_QFileSelector
  • ...
|| uint(d->size + len) + 1u > d->alloc
uint(d->size +... 1u > d->allocDescription
TRUEevaluated 25238 times by 93 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDir
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • ...
FALSEevaluated 78117 times by 80 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
  • ...
)
12945-103355
755 reallocData(uint(d->size + len) + 1u, true);
executed 38183 times by 142 tests: reallocData(uint(d->size + len) + 1u, true);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • 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_QDBusReply
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDebug
  • ...
38183
756 ushort *i = d->data() + d->size;-
757 qt_from_latin1(i, s, uint(len));-
758 i[len] = '\0';-
759 d->size += len;-
760 }
executed 116300 times by 149 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QColorDialog
  • 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_QDBusReply
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • ...
116300
761 return
executed 116357 times by 149 tests: return *this;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QColorDialog
  • 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_QDBusReply
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • ...
*this;
executed 116357 times by 149 tests: return *this;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QColorDialog
  • 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_QDBusReply
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • ...
116357
762}-
763QString &QString::append(QChar ch)-
764{-
765 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 146081 times by 174 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • 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_QDate
  • ...
FALSEevaluated 428586 times by 204 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_QAlgorithms
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QColor
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • ...
|| uint(d->size) + 2u > d->alloc
uint(d->size) + 2u > d->allocDescription
TRUEevaluated 36013 times by 171 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 392573 times by 188 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • 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
  • ...
)
36013-428586
766 reallocData(uint(d->size) + 2u, true);
executed 182094 times by 202 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_QAlgorithms
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QColor
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • ...
182094
767 d->data()[d->size++] = ch.unicode();-
768 d->data()[d->size] = '\0';-
769 return
executed 574667 times by 221 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_QAlgorithms
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QColor
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • ...
*this;
executed 574667 times by 221 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_QAlgorithms
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QColor
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusInterface
  • ...
574667
770}-
771QString &QString::remove(int pos, int len)-
772{-
773 if (pos < 0
pos < 0Description
TRUEnever evaluated
FALSEevaluated 173831 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-173831
774 pos += d->size;
never executed: pos += d->size;
0
775 if (uint(pos) >= uint(d->size)
uint(pos) >= uint(d->size)Description
TRUEnever evaluated
FALSEevaluated 173739 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-173739
776-
777 }
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 123802 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-123802
778 resize(pos);-
779 }
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 123801 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-123801
780 detach();-
781 memmove(d->data() + pos, d->data() + pos + len,-
782 (d->size - pos - len + 1) * sizeof(ushort));-
783 d->size -= len;-
784 }
executed 123801 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
  • ...
123801
785 return
executed 173831 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 173831 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
  • ...
173831
786}-
787QString &QString::remove(const QString &str, Qt::CaseSensitivity cs)-
788{-
789 if (str.d->size
str.d->sizeDescription
TRUEevaluated 24569 times by 12 tests
Evaluated by:
  • tst_QAction
  • tst_QButtonGroup
  • tst_QDialogButtonBox
  • tst_QLineEdit
  • tst_QLogging
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPrinter
  • tst_QString
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
) {
4-24569
790 int i = 0;-
791 while ((
(i = indexOf(s... i, cs)) != -1Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QAction
  • tst_QString
FALSEevaluated 24569 times by 12 tests
Evaluated by:
  • tst_QAction
  • tst_QButtonGroup
  • tst_QDialogButtonBox
  • tst_QLineEdit
  • tst_QLogging
  • tst_QMenu
  • tst_QMessageBox
  • 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 24569 times by 12 tests
Evaluated by:
  • tst_QAction
  • tst_QButtonGroup
  • tst_QDialogButtonBox
  • tst_QLineEdit
  • tst_QLogging
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPrinter
  • tst_QString
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
)
18-24569
792 remove(i, str.d->size);
executed 18 times by 2 tests: remove(i, str.d->size);
Executed by:
  • tst_QAction
  • tst_QString
18
793 }
executed 24569 times by 12 tests: end of block
Executed by:
  • tst_QAction
  • tst_QButtonGroup
  • tst_QDialogButtonBox
  • tst_QLineEdit
  • tst_QLogging
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPrinter
  • tst_QString
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
24569
794 return
executed 24573 times by 12 tests: return *this;
Executed by:
  • tst_QAction
  • tst_QButtonGroup
  • tst_QDialogButtonBox
  • tst_QLineEdit
  • tst_QLogging
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPrinter
  • tst_QString
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
*this;
executed 24573 times by 12 tests: return *this;
Executed by:
  • tst_QAction
  • tst_QButtonGroup
  • tst_QDialogButtonBox
  • tst_QLineEdit
  • tst_QLogging
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPrinter
  • tst_QString
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
24573
795}-
796QString &QString::remove(QChar ch, Qt::CaseSensitivity cs)-
797{-
798 int i = 0;-
799 ushort c = ch.unicode();-
800 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 30147 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_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
  • tst_rcc
  • ...
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QString
) {
11-30147
801 while (i < d->size
i < d->sizeDescription
TRUEevaluated 760913 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLogging
  • tst_QLoggingRegistry
  • 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
  • tst_rcc
FALSEevaluated 30147 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_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
  • tst_rcc
  • ...
)
30147-760913
802 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 712479 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLogging
  • tst_QLoggingRegistry
  • 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
  • tst_rcc
)
48434-712479
803 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
804 else-
805 i++;
executed 712479 times by 25 tests: i++;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLogging
  • tst_QLoggingRegistry
  • 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
  • tst_rcc
712479
806 }
executed 30147 times by 26 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_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
  • tst_rcc
  • ...
else {
30147
807 c = foldCase(c);-
808 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
809 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
810 remove(i, 1);
executed 14 times by 1 test: remove(i, 1);
Executed by:
  • tst_QString
14
811 else-
812 i++;
executed 22 times by 1 test: i++;
Executed by:
  • tst_QString
22
813 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_QString
11
814 return
executed 30158 times by 26 tests: return *this;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLogging
  • tst_QLoggingRegistry
  • 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
  • tst_rcc
  • ...
*this;
executed 30158 times by 26 tests: return *this;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLogging
  • tst_QLoggingRegistry
  • 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
  • tst_rcc
  • ...
30158
815}-
816QString &QString::replace(int pos, int len, const QString &after)-
817{-
818 QString copy = after;-
819 return
executed 2003365 times by 18 tests: return replace(pos, len, copy.constData(), copy.length());
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • tst_QTime
  • tst_QTranslator
  • tst_qmakelib
replace(pos, len, copy.constData(), copy.length());
executed 2003365 times by 18 tests: return replace(pos, len, copy.constData(), copy.length());
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • tst_QTime
  • tst_QTranslator
  • tst_qmakelib
2003365
820}-
821QString &QString::replace(int pos, int len, const QChar *unicode, int size)-
822{-
823 if (uint(pos) > uint(d->size)
uint(pos) > uint(d->size)Description
TRUEnever evaluated
FALSEevaluated 2109496 times by 23 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QChar
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • 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-2109496
824 return
never executed: return *this;
*this;
never executed: return *this;
0
825 if (len > d->size - pos
len > d->size - posDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2109471 times by 23 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QChar
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • 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-2109471
826 len = d->size - pos;
executed 25 times by 1 test: len = d->size - pos;
Executed by:
  • tst_QString
25
827-
828 uint index = pos;-
829 replace_helper(&index, 1, len, unicode, size);-
830 return
executed 2109496 times by 23 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QChar
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • 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 2109496 times by 23 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QChar
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • 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
2109496
831}-
832QString &QString::replace(int pos, int len, QChar after)-
833{-
834 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
835}-
836QString &QString::replace(const QString &before, const QString &after, Qt::CaseSensitivity cs)-
837{-
838 return
executed 164573 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 164573 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
164573
839}-
840-
841namespace {-
842QChar *textCopy(const QChar *start, int len)-
843{-
844 const size_t size = len * sizeof(QChar);-
845 QChar *const copy = static_cast<QChar *>(::malloc(size));-
846 do { if (!(copy)
!(copy)Description
TRUEnever evaluated
FALSEevaluated 25 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QString
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-25
847 ::memcpy(copy, start, size);-
848 return
executed 25 times by 4 tests: return copy;
Executed by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QString
copy;
executed 25 times by 4 tests: return copy;
Executed by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QString
25
849}-
850-
851bool pointsIntoRange(const QChar *ptr, const ushort *base, int len)-
852{-
853 const QChar *const start = reinterpret_cast<const QChar *>(base);-
854 return
executed 2111196 times by 51 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_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFtp
  • tst_QItemDelegate
  • ...
start <= ptr
start <= ptrDescription
TRUEevaluated 109438 times by 48 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QAction
  • tst_QChar
  • 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_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • ...
FALSEevaluated 2001758 times by 21 tests
Evaluated by:
  • tst_Collections
  • tst_QCommandLineParser
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QFont
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QTextDocument
  • tst_QTime
  • tst_QTranslator
  • tst_QWidget_window
  • tst_Selftests
  • tst_qmakelib
&& ptr < start + len
ptr < start + lenDescription
TRUEevaluated 25 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QString
FALSEevaluated 109413 times by 47 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QAction
  • tst_QChar
  • 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_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • ...
;
executed 2111196 times by 51 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_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFtp
  • tst_QItemDelegate
  • ...
25-2111196
855}-
856}-
857-
858-
859-
860-
861void QString::replace_helper(uint *indices, int nIndices, int blen, const QChar *after, int alen)-
862{-
863-
864-
865 QChar *afterBuffer = 0;-
866 if (pointsIntoRange(after, d->data(), d->size)
pointsIntoRang...ta(), d->size)Description
TRUEevaluated 23 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QString
FALSEevaluated 2111171 times by 51 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_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFtp
  • tst_QItemDelegate
  • ...
)
23-2111171
867 after = afterBuffer = textCopy(after, alen);
executed 23 times by 4 tests: after = afterBuffer = textCopy(after, alen);
Executed by:
  • tst_Collections
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QString
23
868-
869 try {-
870 if (blen == alen
blen == alenDescription
TRUEevaluated 2014274 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 96920 times by 40 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_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • ...
) {
96920-2014274
871-
872 detach();-
873 for (int i = 0; i < nIndices
i < nIndicesDescription
TRUEevaluated 2014281 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 2014274 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)
2014274-2014281
874 memcpy(d->data() + indices[i], after, alen * sizeof(QChar));
executed 2014281 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
2014281
875 }
executed 2014274 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 10370 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 86550 times by 33 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_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • ...
) {
10370-2014274
876-
877 detach();-
878 uint to = indices[0];-
879 if (alen
alenDescription
TRUEevaluated 10338 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-10338
880 memcpy(d->data()+to, after, alen*sizeof(QChar));
executed 10338 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
10338
881 to += alen;-
882 uint movestart = indices[0] + blen;-
883 for (int i = 1; i < nIndices
i < nIndicesDescription
TRUEevaluated 1031 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 10370 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-10370
884 int msize = indices[i] - movestart;-
885 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
886 memmove(d->data() + to, d->data() + movestart, msize * sizeof(QChar));-
887 to += msize;-
888 }
executed 1029 times by 1 test: end of block
Executed by:
  • tst_QString
1029
889 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
890 memcpy(d->data() + to, after, alen * sizeof(QChar));-
891 to += alen;-
892 }
executed 1026 times by 1 test: end of block
Executed by:
  • tst_QString
1026
893 movestart = indices[i] + blen;-
894 }
executed 1031 times by 1 test: end of block
Executed by:
  • tst_QString
1031
895 int msize = d->size - movestart;-
896 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 9087 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-9087
897 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
898 resize(d->size - nIndices*(blen-alen));-
899 }
executed 10370 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 {
10370
900-
901 int adjust = nIndices*(alen-blen);-
902 int newLen = d->size + adjust;-
903 int moveend = d->size;-
904 resize(newLen);-
905-
906 while (nIndices
nIndicesDescription
TRUEevaluated 86666 times by 33 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_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • ...
FALSEevaluated 86550 times by 33 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_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • ...
) {
86550-86666
907 --nIndices;-
908 int movestart = indices[nIndices] + blen;-
909 int insertstart = indices[nIndices] + nIndices*(alen-blen);-
910 int moveto = insertstart + alen;-
911 memmove(d->data() + moveto, d->data() + movestart,-
912 (moveend - movestart)*sizeof(QChar));-
913 memcpy(d->data() + insertstart, after, alen * sizeof(QChar));-
914 moveend = movestart-blen;-
915 }
executed 86666 times by 33 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_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • ...
86666
916 }
executed 86550 times by 33 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_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QProgressBar
  • tst_QSettings
  • tst_QString
  • tst_QStringList
  • ...
86550
917 } catch (const std::bad_alloc &) {-
918 ::free(afterBuffer);-
919 throw;
never executed: throw;
0
920 }-
921 ::free(afterBuffer);-
922}
executed 2111194 times by 51 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_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFtp
  • tst_QItemDelegate
  • ...
2111194
923QString &QString::replace(const QChar *before, int blen,-
924 const QChar *after, int alen,-
925 Qt::CaseSensitivity cs)-
926{-
927 if (d->size == 0
d->size == 0Description
TRUEevaluated 1574 times by 17 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
  • tst_QXmlSimpleReader
  • tst_Selftests
  • tst_qmakelib
FALSEevaluated 174176 times by 73 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
) {
1574-174176
928 if (blen
blenDescription
TRUEevaluated 1568 times by 17 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
  • tst_QXmlSimpleReader
  • tst_Selftests
  • tst_qmakelib
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
)
6-1568
929 return
executed 1568 times by 17 tests: return *this;
Executed by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
  • tst_QXmlSimpleReader
  • tst_Selftests
  • tst_qmakelib
*this;
executed 1568 times by 17 tests: return *this;
Executed by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QToolButton
  • tst_QWidgetAction
  • tst_QXmlSimpleReader
  • tst_Selftests
  • tst_qmakelib
1568
930 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QString
else {
6
931 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 174161 times by 73 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
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 174159 times by 73 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
&& blen == alen
blen == alenDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
FALSEnever evaluated
)
0-174161
932 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
933 }
executed 174174 times by 73 tests: end of block
Executed by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
174174
934 if (alen == 0
alen == 0Description
TRUEevaluated 21 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QString
FALSEevaluated 174159 times by 73 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
&& 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-174159
935 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
936-
937 QStringMatcher matcher(before, blen, cs);-
938 QChar *beforeBuffer = 0, *afterBuffer = 0;-
939-
940 int index = 0;-
941 while (1) {-
942 uint indices[1024];-
943 uint pos = 0;-
944 while (pos < 1024
pos < 1024Description
TRUEevaluated 176988 times by 73 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
) {
1-176988
945 index = matcher.indexIn(*this, index);-
946 if (index == -1
index == -1Description
TRUEevaluated 174176 times by 73 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
FALSEevaluated 2812 times by 32 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_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • ...
)
2812-174176
947 break;
executed 174176 times by 73 tests: break;
Executed by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
174176
948 indices[pos++] = index;-
949 if (blen
blenDescription
TRUEevaluated 2802 times by 32 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_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • ...
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QString
)
10-2802
950 index += blen;
executed 2802 times by 32 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_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • ...
2802
951 else-
952 index++;
executed 10 times by 1 test: index++;
Executed by:
  • tst_QString
10
953 }-
954 if (!pos
!posDescription
TRUEevaluated 172504 times by 61 tests
Evaluated by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QInputDialog
  • tst_QItemModel
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
FALSEevaluated 1673 times by 32 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_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • ...
)
1673-172504
955 break;
executed 172504 times by 61 tests: break;
Executed by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGestureRecognizer
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QInputDialog
  • tst_QItemModel
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
172504
956-
957 if (__builtin_expect(!!(index != -1), false)
__builtin_expe...!= -1), false)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 1672 times by 32 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_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • ...
) {
1-1672
958-
959-
960-
961-
962 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
963 after = afterBuffer = textCopy(after, alen);
executed 1 time by 1 test: after = afterBuffer = textCopy(after, alen);
Executed by:
  • tst_QString
1
964-
965 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
966 beforeBuffer = textCopy(before, blen);-
967 matcher = QStringMatcher(beforeBuffer, blen, cs);-
968 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QString
1
969 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QString
1
970-
971 replace_helper(indices, pos, blen, after, alen);-
972-
973 if (__builtin_expect(!!(index == -1), true)
__builtin_expe... == -1), true)Description
TRUEevaluated 1672 times by 32 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_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
)
1-1672
974 break;
executed 1672 times by 32 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_QNetworkReply
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStringList
  • ...
1672
975-
976 index += pos*(alen-blen);-
977 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QString
1
978 ::free(afterBuffer);-
979 ::free(beforeBuffer);-
980-
981 return
executed 174176 times by 73 tests: return *this;
Executed by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
*this;
executed 174176 times by 73 tests: return *this;
Executed by:
  • tst_Collections
  • 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFiledialog
  • tst_QFont
  • ...
174176
982}-
983QString& QString::replace(QChar ch, const QString &after, Qt::CaseSensitivity cs)-
984{-
985 if (after.d->size == 0
after.d->size == 0Description
TRUEevaluated 37 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 14856 times by 44 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • ...
)
37-14856
986 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
987-
988 if (after.d->size == 1
after.d->size == 1Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 14834 times by 44 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • ...
)
22-14834
989 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
990-
991 if (d->size == 0
d->size == 0Description
TRUEevaluated 1154 times by 11 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 13680 times by 42 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
)
1154-13680
992 return
executed 1154 times by 11 tests: return *this;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_Spdy
*this;
executed 1154 times by 11 tests: return *this;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_Spdy
1154
993-
994 ushort cc = (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 13676 times by 42 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
? ch.unicode() : ch.toCaseFolded().unicode());
4-13676
995-
996 int index = 0;-
997 while (1) {-
998 uint indices[1024];-
999 uint pos = 0;-
1000 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 13698 times by 42 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
) {
7-13698
1001 while (pos < 1024
pos < 1024Description
TRUEevaluated 416523 times by 42 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
FALSEnever evaluated
&& index < d->size
index < d->sizeDescription
TRUEevaluated 402825 times by 42 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
FALSEevaluated 13698 times by 42 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
) {
0-416523
1002 if (d->data()[index] == cc
d->data()[index] == ccDescription
TRUEevaluated 32 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QNetworkProxyFactory
  • tst_QString
  • tst_QTcpServer
  • tst_QUrl
FALSEevaluated 402793 times by 42 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
)
32-402793
1003 indices[pos++] = index;
executed 32 times by 5 tests: indices[pos++] = index;
Executed by:
  • tst_Collections
  • tst_QNetworkProxyFactory
  • tst_QString
  • tst_QTcpServer
  • tst_QUrl
32
1004 index++;-
1005 }
executed 402825 times by 42 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
402825
1006 }
executed 13698 times by 42 tests: end of block
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
else {
13698
1007 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
1008 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
1009 indices[pos++] = index;
executed 8 times by 1 test: indices[pos++] = index;
Executed by:
  • tst_QString
8
1010 index++;-
1011 }
executed 22 times by 1 test: end of block
Executed by:
  • tst_QString
22
1012 }
executed 7 times by 1 test: end of block
Executed by:
  • tst_QString
7
1013 if (!pos
!posDescription
TRUEevaluated 13680 times by 42 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
FALSEevaluated 25 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QNetworkProxyFactory
  • tst_QString
  • tst_QTcpServer
  • tst_QUrl
)
25-13680
1014 break;
executed 13680 times by 42 tests: break;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
13680
1015-
1016 replace_helper(indices, pos, 1, after.constData(), after.d->size);-
1017-
1018 if (__builtin_expect(!!(index == -1), true)
__builtin_expe... == -1), true)Description
TRUEnever evaluated
FALSEevaluated 25 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QNetworkProxyFactory
  • tst_QString
  • tst_QTcpServer
  • tst_QUrl
)
0-25
1019 break;
never executed: break;
0
1020-
1021 index += pos*(after.d->size - 1);-
1022 }
executed 25 times by 5 tests: end of block
Executed by:
  • tst_Collections
  • tst_QNetworkProxyFactory
  • tst_QString
  • tst_QTcpServer
  • tst_QUrl
25
1023 return
executed 13680 times by 42 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
*this;
executed 13680 times by 42 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
13680
1024}-
1025QString& QString::replace(QChar before, QChar after, Qt::CaseSensitivity cs)-
1026{-
1027 ushort a = after.unicode();-
1028 ushort b = before.unicode();-
1029 if (d->size
d->sizeDescription
TRUEevaluated 136058 times by 64 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 1311 times by 9 tests
Evaluated by:
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QTextDocument
  • tst_QTreeView
  • tst_languageChange
) {
1311-136058
1030 detach();-
1031 ushort *i = d->data();-
1032 const ushort *e = i + d->size;-
1033 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 136036 times by 64 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-136036
1034 for (; i != e
i != eDescription
TRUEevaluated 1107344 times by 64 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 136036 times by 64 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)
136036-1107344
1035 if (*
*i == bDescription
TRUEevaluated 9865 times by 25 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
  • tst_qnetworkreply - unknown status
FALSEevaluated 1097479 times by 64 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 9865 times by 25 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
  • tst_qnetworkreply - unknown status
FALSEevaluated 1097479 times by 64 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
  • ...
)
9865-1097479
1036 *
executed 9865 times by 25 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
  • tst_qnetworkreply - unknown status
i = a;
executed 9865 times by 25 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
  • tst_qnetworkreply - unknown status
9865
1037 }
executed 136036 times by 64 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 {
136036
1038 b = foldCase(b);-
1039 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
1040 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
1041 *
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
1042 }
executed 22 times by 1 test: end of block
Executed by:
  • tst_QString
22
1043 }-
1044 return
executed 137369 times by 64 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 137369 times by 64 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
  • ...
137369
1045}-
1046QString &QString::replace(QLatin1String before, QLatin1String after, Qt::CaseSensitivity cs)-
1047{-
1048 int alen = after.size();-
1049 int blen = before.size();-
1050 QVarLengthArray<ushort> a(alen);-
1051 QVarLengthArray<ushort> b(blen);-
1052 qt_from_latin1(a.data(), after.latin1(), alen);-
1053 qt_from_latin1(b.data(), before.latin1(), blen);-
1054 return
executed 1016 times by 43 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_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
replace((const QChar *)b.data(), blen, (const QChar *)a.data(), alen, cs);
executed 1016 times by 43 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_QInputDialog
  • tst_QLineEdit
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
1016
1055}-
1056QString &QString::replace(QLatin1String before, const QString &after, Qt::CaseSensitivity cs)-
1057{-
1058 int blen = before.size();-
1059 QVarLengthArray<ushort> b(blen);-
1060 qt_from_latin1(b.data(), before.latin1(), blen);-
1061 return
executed 210 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 210 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
210
1062}-
1063QString &QString::replace(const QString &before, QLatin1String after, Qt::CaseSensitivity cs)-
1064{-
1065 int alen = after.size();-
1066 QVarLengthArray<ushort> a(alen);-
1067 qt_from_latin1(a.data(), after.latin1(), alen);-
1068 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
1069}-
1070QString &QString::replace(QChar c, QLatin1String after, Qt::CaseSensitivity cs)-
1071{-
1072 int alen = after.size();-
1073 QVarLengthArray<ushort> a(alen);-
1074 qt_from_latin1(a.data(), after.latin1(), alen);-
1075 return
executed 9949 times by 35 tests: return replace(&c, 1, (const QChar *)a.data(), alen, cs);
Executed by:
  • 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_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • ...
replace(&c, 1, (const QChar *)a.data(), alen, cs);
executed 9949 times by 35 tests: return replace(&c, 1, (const QChar *)a.data(), alen, cs);
Executed by:
  • 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_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • ...
9949
1076}-
1077bool operator==(const QString &s1, const QString &s2)-
1078{-
1079 if (s1.d->size != s2.d->size
s1.d->size != s2.d->sizeDescription
TRUEevaluated 435387 times by 306 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_QCache
  • tst_QCalendarWidget
  • ...
FALSEevaluated 2823015 times by 525 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
)
435387-2823015
1080 return
executed 435387 times by 306 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_QCache
  • tst_QCalendarWidget
  • ...
false;
executed 435387 times by 306 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_QCache
  • tst_QCalendarWidget
  • ...
435387
1081-
1082 return
executed 2823015 times by 525 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
qMemEquals(s1.d->data(), s2.d->data(), s1.d->size);
executed 2823015 times by 525 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_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
2823015
1083}-
1084-
1085-
1086-
1087-
1088-
1089-
1090bool QString::operator==(QLatin1String other) const-
1091{-
1092 if (d->size != other.size()
d->size != other.size()Description
TRUEevaluated 1241903 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 281771 times by 442 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
  • ...
)
281771-1241903
1093 return
executed 1241903 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 1241903 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
  • ...
1241903
1094-
1095 if (!other.size()
!other.size()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 281767 times by 442 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-281767
1096 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
1097-
1098 return
executed 281767 times by 442 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 281767 times by 442 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
  • ...
281767
1099}-
1100bool operator<(const QString &s1, const QString &s2)-
1101{-
1102 return
executed 1722682 times by 419 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 1722682 times by 419 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
  • ...
1722682
1103}-
1104-
1105-
1106-
1107-
1108-
1109-
1110bool QString::operator<(QLatin1String other) const-
1111{-
1112 const uchar *c = (const uchar *) other.latin1();-
1113 if (!c
!cDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2322 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 2315 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 2315 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-2322
1114 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
1115-
1116 return
executed 2315 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 2315 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
2315
1117}-
1118bool QString::operator>(QLatin1String other) const-
1119{-
1120 const uchar *c = (const uchar *) other.latin1();-
1121 if (!c
!cDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 232374 times by 129 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • ...
|| *
*c == '\0'Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 232367 times by 129 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • ...
c == '\0'
*c == '\0'Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 232367 times by 129 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • ...
)
5-232374
1122 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
1123-
1124 return
executed 232367 times by 129 tests: return compare_helper(data(), size(), other, Qt::CaseSensitive) > 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • ...
compare_helper(data(), size(), other, Qt::CaseSensitive) > 0;
executed 232367 times by 129 tests: return compare_helper(data(), size(), other, Qt::CaseSensitive) > 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • ...
232367
1125}-
1126int QString::indexOf(const QString &str, int from, Qt::CaseSensitivity cs) const-
1127{-
1128 return
executed 902450 times by 89 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 902450 times by 89 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
  • ...
902450
1129}-
1130int QString::indexOf(QLatin1String str, int from, Qt::CaseSensitivity cs) const-
1131{-
1132 return
executed 14855 times by 185 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_QCompleter
  • ...
qt_find_latin1_string(unicode(), size(), str, from, cs);
executed 14855 times by 185 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_QCompleter
  • ...
14855
1133}-
1134-
1135int qFindString(-
1136 const QChar *haystack0, int haystackLen, int from,-
1137 const QChar *needle0, int needleLen, Qt::CaseSensitivity cs)-
1138{-
1139 const int l = haystackLen;-
1140 const int sl = needleLen;-
1141 if (from < 0
from < 0Description
TRUEnever evaluated
FALSEevaluated 1478944 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-1478944
1142 from += l;
never executed: from += l;
0
1143 if (uint(sl + from) > (uint)l
uint(sl + from) > (uint)lDescription
TRUEevaluated 47215 times by 89 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 1431729 times by 284 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
  • ...
)
47215-1431729
1144 return
executed 47215 times by 89 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 47215 times by 89 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
  • ...
47215
1145 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 1431337 times by 284 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-1431337
1146 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
1147 if (!l
!lDescription
TRUEnever evaluated
FALSEevaluated 1431337 times by 284 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-1431337
1148 return
never executed: return -1;
-1;
never executed: return -1;
0
1149-
1150 if (sl == 1
sl == 1Description
TRUEevaluated 526085 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 905252 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
  • ...
)
526085-905252
1151 return
executed 526085 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 526085 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
  • ...
526085
1152-
1153-
1154-
1155-
1156-
1157-
1158 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 905057 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-905057
1159 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
1160 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
1161-
1162-
1163-
1164-
1165-
1166-
1167-
1168 const ushort *needle = (const ushort *)needle0;-
1169 const ushort *haystack = (const ushort *)haystack0 + from;-
1170 const ushort *end = (const ushort *)haystack0 + (l-sl);-
1171 const uint sl_minus_1 = sl - 1;-
1172 uint hashNeedle = 0, hashHaystack = 0;-
1173 int idx;-
1174-
1175 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 903757 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 1319 times by 19 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QPushButton
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
) {
1319-903757
1176 for (idx = 0; idx < sl
idx < slDescription
TRUEevaluated 4496626 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 903757 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) {
903757-4496626
1177 hashNeedle = ((hashNeedle<<1) + needle[idx]);-
1178 hashHaystack = ((hashHaystack<<1) + haystack[idx]);-
1179 }
executed 4496626 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
  • ...
4496626
1180 hashHaystack -= haystack[sl_minus_1];-
1181-
1182 while (haystack <= end
haystack <= endDescription
TRUEevaluated 5110418 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 612526 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
  • ...
) {
612526-5110418
1183 hashHaystack += haystack[sl_minus_1];-
1184 if (hashHaystack == hashNeedle
hashHaystack == hashNeedleDescription
TRUEevaluated 291391 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 4819027 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
  • ...
291391-4819027
1185 && ucstrncmp((const QChar *)needle, (const QChar *)haystack, sl) == 0
ucstrncmp((con...tack, sl) == 0Description
TRUEevaluated 291231 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-291231
1186 return
executed 291231 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 291231 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
  • ...
291231
1187-
1188 if (sl_minus_1 < sizeof(uint) * 8
sl_minus_1 < sizeof(uint) * 8Description
TRUEevaluated 4817693 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 4817693 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-4817693
1189 ++haystack;-
1190 }
executed 4819187 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
  • ...
4819187
1191 }
executed 612526 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 {
612526
1192 const ushort *haystack_start = (const ushort *)haystack0;-
1193 for (idx = 0; idx < sl
idx < slDescription
TRUEevaluated 4382 times by 19 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QPushButton
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
FALSEevaluated 1319 times by 19 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QPushButton
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
; ++idx) {
1319-4382
1194 hashNeedle = (hashNeedle<<1) + foldCase(needle + idx, needle);-
1195 hashHaystack = (hashHaystack<<1) + foldCase(haystack + idx, haystack_start);-
1196 }
executed 4382 times by 19 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QPushButton
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
4382
1197 hashHaystack -= foldCase(haystack + sl_minus_1, haystack_start);-
1198-
1199 while (haystack <= end
haystack <= endDescription
TRUEevaluated 3269 times by 19 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QPushButton
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
FALSEevaluated 220 times by 18 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QPushButton
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
) {
220-3269
1200 hashHaystack += foldCase(haystack + sl_minus_1, haystack_start);-
1201 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 2167 times by 18 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QPushButton
  • 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-2167
1202 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
1203-
1204 if (sl_minus_1 < sizeof(uint) * 8
sl_minus_1 < sizeof(uint) * 8Description
TRUEevaluated 1985 times by 18 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QPushButton
  • 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 1985 times by 18 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_QPushButton
  • 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-1985
1205 ++haystack;-
1206 }
executed 2170 times by 18 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QPushButton
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
2170
1207 }
executed 220 times by 18 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QLabel
  • tst_QPushButton
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlQuery
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTime
  • tst_qlogging - unknown status
220
1208 return
executed 612746 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 612746 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
  • ...
612746
1209}-
1210int QString::indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const-
1211{-
1212 return
executed 810642 times by 282 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 810642 times by 282 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
  • ...
810642
1213}-
1214int QString::indexOf(const QStringRef &str, int from, Qt::CaseSensitivity cs) const-
1215{-
1216 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
1217}-
1218-
1219static int lastIndexOfHelper(const ushort *haystack, int from, const ushort *needle, int sl, Qt::CaseSensitivity cs)-
1220{-
1221-
1222-
1223-
1224-
1225 const ushort *end = haystack;-
1226 haystack += from;-
1227 const uint sl_minus_1 = sl - 1;-
1228 const ushort *n = needle+sl_minus_1;-
1229 const ushort *h = haystack+sl_minus_1;-
1230 uint hashNeedle = 0, hashHaystack = 0;-
1231 int idx;-
1232-
1233 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
1234 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
1235 hashNeedle = ((hashNeedle<<1) + *(n-idx));-
1236 hashHaystack = ((hashHaystack<<1) + *(h-idx));-
1237 }
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
1238 hashHaystack -= *haystack;-
1239-
1240 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
1241 hashHaystack += *haystack;-
1242 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
1243 && 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
1244 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
1245 --haystack;-
1246 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
1247 }
executed 601 times by 5 tests: end of block
Executed by:
  • tst_Collections
  • tst_QMdiArea
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
601
1248 }
executed 18 times by 4 tests: end of block
Executed by:
  • tst_Collections
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
else {
18
1249 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
1250 hashNeedle = ((hashNeedle<<1) + foldCase(n-idx, needle));-
1251 hashHaystack = ((hashHaystack<<1) + foldCase(h-idx, end));-
1252 }
executed 1106 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
1106
1253 hashHaystack -= foldCase(haystack, end);-
1254-
1255 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
1256 hashHaystack += foldCase(haystack, end);-
1257 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
1258 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
1259 --haystack;-
1260 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
1261 }
executed 610 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
610
1262 }
executed 38 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
38
1263 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
1264}-
1265int QString::lastIndexOf(const QString &str, int from, Qt::CaseSensitivity cs) const-
1266{-
1267 const int sl = str.d->size;-
1268 if (sl == 1
sl == 1Description
TRUEevaluated 3232 times by 3 tests
Evaluated by:
  • tst_QDataStream
  • tst_QDir
  • tst_QString
FALSEevaluated 95 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
)
95-3232
1269 return
executed 3232 times by 3 tests: return lastIndexOf(QChar(str.d->data()[0]), from, cs);
Executed by:
  • tst_QDataStream
  • tst_QDir
  • tst_QString
lastIndexOf(QChar(str.d->data()[0]), from, cs);
executed 3232 times by 3 tests: return lastIndexOf(QChar(str.d->data()[0]), from, cs);
Executed by:
  • tst_QDataStream
  • tst_QDir
  • tst_QString
3232
1270-
1271 const int l = d->size;-
1272 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
1273 from += l;
executed 64 times by 5 tests: from += l;
Executed by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
64
1274 int delta = l-sl;-
1275 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
1276 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
1277 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
1278 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
1279 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
1280 from = delta;
executed 48 times by 5 tests: from = delta;
Executed by:
  • tst_Collections
  • tst_QString
  • tst_QTextDocument
  • tst_Selftests
  • tst_qmake
48
1281-
1282 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
1283}-
1284int QString::lastIndexOf(QLatin1String str, int from, Qt::CaseSensitivity cs) const-
1285{-
1286 const int sl = str.size();-
1287 if (sl == 1
sl == 1Description
TRUEnever evaluated
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QMdiSubWindow
)
0-13
1288 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
1289-
1290 const int l = d->size;-
1291 if (from < 0
from < 0Description
TRUEnever evaluated
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QMdiSubWindow
)
0-13
1292 from += l;
never executed: from += l;
0
1293 int delta = l-sl;-
1294 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
1295 return
never executed: return from;
from;
never executed: return from;
0
1296 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
1297 return
never executed: return -1;
-1;
never executed: return -1;
0
1298 if (from > delta
from > deltaDescription
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QMdiSubWindow
FALSEnever evaluated
)
0-13
1299 from = delta;
executed 13 times by 2 tests: from = delta;
Executed by:
  • tst_QMdiArea
  • tst_QMdiSubWindow
13
1300-
1301 QVarLengthArray<ushort> s(sl);-
1302 qt_from_latin1(s.data(), str.latin1(), sl);-
1303-
1304 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
1305}-
1306-
1307-
1308-
1309-
1310-
1311-
1312-
1313int QString::lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const-
1314{-
1315 return
executed 259457 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 259457 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
  • ...
259457
1316}-
1317int QString::lastIndexOf(const QStringRef &str, int from, Qt::CaseSensitivity cs) const-
1318{-
1319 const int sl = str.size();-
1320 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
1321 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
1322-
1323 const int l = d->size;-
1324 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
1325 from += l;
executed 48 times by 2 tests: from += l;
Executed by:
  • tst_QString
  • tst_QStringRef
48
1326 int delta = l - sl;-
1327 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
1328 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
1329 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
1330 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
1331 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
1332 from = delta;
executed 30 times by 2 tests: from = delta;
Executed by:
  • tst_QString
  • tst_QStringRef
30
1333-
1334 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
1335 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
1336}-
1337-
1338-
1339-
1340struct QStringCapture-
1341{-
1342 int pos;-
1343 int len;-
1344 int no;-
1345};-
1346template<> 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"; } };-
1347QString& QString::replace(const QRegExp &rx, const QString &after)-
1348{-
1349 QRegExp rx2(rx);-
1350-
1351 if (isEmpty()
isEmpty()Description
TRUEevaluated 51979 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QXmlSimpleReader
FALSEevaluated 90586 times by 15 tests
Evaluated by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • 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-90586
1352 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
1353-
1354 reallocData(uint(d->size) + 1u);-
1355-
1356 int index = 0;-
1357 int numCaptures = rx2.captureCount();-
1358 int al = after.length();-
1359 QRegExp::CaretMode caretMode = QRegExp::CaretAtZero;-
1360-
1361 if (numCaptures > 0
numCaptures > 0Description
TRUEevaluated 27 times by 4 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEevaluated 90577 times by 14 tests
Evaluated by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
) {
27-90577
1362 const QChar *uc = after.unicode();-
1363 int numBackRefs = 0;-
1364-
1365 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
1366 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
1367 int no = uc[i + 1].digitValue();-
1368 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
1369 numBackRefs++;
executed 66 times by 3 tests: numBackRefs++;
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
66
1370 }
executed 76 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
76
1371 }
executed 173 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
173
1372-
1373-
1374-
1375-
1376 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
1377 QVarLengthArray<QStringCapture, 16> captures(numBackRefs);-
1378 int j = 0;-
1379-
1380 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
1381 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
1382 int no = uc[i + 1].digitValue();-
1383 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
1384 QStringCapture capture;-
1385 capture.pos = i;-
1386 capture.len = 2;-
1387-
1388 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
1389 int secondDigit = uc[i + 2].digitValue();-
1390 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
1391 no = (no * 10) + secondDigit;-
1392 ++capture.len;-
1393 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QString
6
1394 }
executed 56 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
56
1395-
1396 capture.no = no;-
1397 captures[j++] = capture;-
1398 }
executed 66 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
66
1399 }
executed 72 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
72
1400 }
executed 164 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
164
1401-
1402 while (index <= length()
index <= length()Description
TRUEevaluated 46 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
FALSEnever evaluated
) {
0-46
1403 index = rx2.indexIn(*this, index, caretMode);-
1404 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
1405 break;
executed 21 times by 3 tests: break;
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
21
1406-
1407 QString after2(after);-
1408 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
1409 const QStringCapture &capture = captures[j];-
1410 after2.replace(capture.pos, capture.len, rx2.cap(capture.no));-
1411 }
executed 64 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
64
1412-
1413 replace(index, rx2.matchedLength(), after2);-
1414 index += after2.length();-
1415-
1416-
1417 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
1418 ++
never executed: ++index;
index;
never executed: ++index;
0
1419-
1420 caretMode = QRegExp::CaretWontMatch;-
1421 }
executed 25 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qmakelib
25
1422 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
1423 }-
1424 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_QRegExp
  • tst_QString
6
1425-
1426-
1427-
1428-
1429-
1430 while (index != -1
index != -1Description
TRUEevaluated 90583 times by 15 tests
Evaluated by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
FALSEevaluated 3642 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
) {
3642-90583
1431 struct {-
1432 int pos;-
1433 int length;-
1434 } replacements[2048];-
1435-
1436 int pos = 0;-
1437 int adjust = 0;-
1438 while (pos < 2047
pos < 2047Description
TRUEevaluated 99581 times by 15 tests
Evaluated by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
FALSEnever evaluated
) {
0-99581
1439 index = rx2.indexIn(*this, index, caretMode);-
1440 if (index == -1
index == -1Description
TRUEevaluated 90583 times by 15 tests
Evaluated by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
FALSEevaluated 8998 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
)
8998-90583
1441 break;
executed 90583 times by 15 tests: break;
Executed by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
90583
1442 int ml = rx2.matchedLength();-
1443 replacements[pos].pos = index;-
1444 replacements[pos++].length = ml;-
1445 index += ml;-
1446 adjust += al - ml;-
1447-
1448 if (!ml
!mlDescription
TRUEevaluated 46 times by 3 tests
Evaluated by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
FALSEevaluated 8952 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-8952
1449 index++;
executed 46 times by 3 tests: index++;
Executed by:
  • tst_QRegExp
  • tst_QString
  • tst_QTextDocument
46
1450 }
executed 8998 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
8998
1451 if (!pos
!posDescription
TRUEevaluated 86941 times by 9 tests
Evaluated by:
  • tst_QFontComboBox
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsystemsemaphore - unknown status
FALSEevaluated 3642 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
)
3642-86941
1452 break;
executed 86941 times by 9 tests: break;
Executed by:
  • tst_QFontComboBox
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsystemsemaphore - unknown status
86941
1453 replacements[pos].pos = d->size;-
1454 int newlen = d->size + adjust;-
1455-
1456-
1457-
1458 if (index != -1
index != -1Description
TRUEnever evaluated
FALSEevaluated 3642 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-3642
1459 index += adjust;
never executed: index += adjust;
0
1460 QString newstring;-
1461 newstring.reserve(newlen + 1);-
1462 QChar *newuc = newstring.data();-
1463 QChar *uc = newuc;-
1464 int copystart = 0;-
1465 int i = 0;-
1466 while (i < pos
i < posDescription
TRUEevaluated 8998 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 3642 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
) {
3642-8998
1467 int copyend = replacements[i].pos;-
1468 int size = copyend - copystart;-
1469 memcpy(uc, d->data() + copystart, size * sizeof(QChar));-
1470 uc += size;-
1471 memcpy(uc, after.d->data(), al * sizeof(QChar));-
1472 uc += al;-
1473 copystart = copyend + replacements[i].length;-
1474 i++;-
1475 }
executed 8998 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
8998
1476 memcpy(uc, d->data() + copystart, (d->size - copystart) * sizeof(QChar));-
1477 newstring.resize(newlen);-
1478 *this = newstring;-
1479 caretMode = QRegExp::CaretWontMatch;-
1480 }
executed 3642 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
3642
1481 return
executed 90583 times by 15 tests: return *this;
Executed by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
*this;
executed 90583 times by 15 tests: return *this;
Executed by:
  • tst_Lancelot
  • tst_QFontComboBox
  • tst_QRegExp
  • tst_QSharedMemory
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringList
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_uic
90583
1482}-
1483QString &QString::replace(const QRegularExpression &re, const QString &after)-
1484{-
1485 if (!re.isValid()
!re.isValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 153 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
) {
2-153
1486 QMessageLogger(__FILE__, 3535, __PRETTY_FUNCTION__).warning("QString::replace: invalid QRegularExpression object");-
1487 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
1488 }-
1489-
1490 const QString copy(*this);-
1491 QRegularExpressionMatchIterator iterator = re.globalMatch(copy);-
1492 if (!iterator.hasNext()
!iterator.hasNext()Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
FALSEevaluated 141 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
)
12-141
1493 return
executed 12 times by 2 tests: return *this;
Executed by:
  • tst_QString
  • tst_QStringList
*this;
executed 12 times by 2 tests: return *this;
Executed by:
  • tst_QString
  • tst_QStringList
12
1494-
1495 reallocData(uint(d->size) + 1u);-
1496-
1497 int numCaptures = re.captureCount();-
1498-
1499-
1500-
1501 QVector<QStringCapture> backReferences;-
1502 const int al = after.length();-
1503 const QChar *ac = after.unicode();-
1504-
1505 for (int i = 0; i < al - 1
i < al - 1Description
TRUEevaluated 138 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
FALSEevaluated 141 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
; i++) {
138-141
1506 if (ac[i] == QLatin1Char('\\')
ac[i] == QLatin1Char('\\')Description
TRUEevaluated 55 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
FALSEevaluated 83 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
) {
55-83
1507 int no = ac[i + 1].digitValue();-
1508 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
1509 QStringCapture backReference;-
1510 backReference.pos = i;-
1511 backReference.len = 2;-
1512-
1513 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
1514 int secondDigit = ac[i + 2].digitValue();-
1515 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
1516 no = (no * 10) + secondDigit;-
1517 ++backReference.len;-
1518 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QString
6
1519 }
executed 43 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
43
1520-
1521 backReference.no = no;-
1522 backReferences.append(backReference);-
1523 }
executed 48 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
48
1524 }
executed 55 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
55
1525 }
executed 138 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
138
1526-
1527-
1528-
1529-
1530-
1531 int newLength = 0;-
1532 int lastEnd = 0;-
1533 QVector<QStringRef> chunks;-
1534 while (iterator.hasNext()
iterator.hasNext()Description
TRUEevaluated 158 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
FALSEevaluated 141 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
) {
141-158
1535 QRegularExpressionMatch match = iterator.next();-
1536 int len;-
1537-
1538 len = match.capturedStart() - lastEnd;-
1539 if (len > 0
len > 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 154 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
) {
4-154
1540 chunks << copy.midRef(lastEnd, len);-
1541 newLength += len;-
1542 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QString
4
1543-
1544 lastEnd = 0;-
1545-
1546 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(backReferences)>::type> _container_((backReferences)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QStringCapture &backReference = *_container_.i; _container_.control; _container_.control = 0) {-
1547-
1548 len = backReference.pos - lastEnd;-
1549 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
1550 chunks << after.midRef(lastEnd, len);-
1551 newLength += len;-
1552 }
executed 28 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
28
1553-
1554-
1555 len = match.capturedLength(backReference.no);-
1556 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
1557 chunks << copy.midRef(match.capturedStart(backReference.no), len);-
1558 newLength += len;-
1559 }
executed 57 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
57
1560-
1561 lastEnd = backReference.pos + backReference.len;-
1562 }
executed 58 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
58
1563-
1564-
1565 len = after.length() - lastEnd;-
1566 if (len > 0
len > 0Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
FALSEevaluated 131 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
) {
27-131
1567 chunks << after.midRef(lastEnd, len);-
1568 newLength += len;-
1569 }
executed 27 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
27
1570-
1571 lastEnd = match.capturedEnd();-
1572 }
executed 158 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
158
1573-
1574-
1575 if (copy.length() > lastEnd
copy.length() > lastEndDescription
TRUEevaluated 127 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringList
) {
14-127
1576 chunks << copy.midRef(lastEnd);-
1577 newLength += copy.length() - lastEnd;-
1578 }
executed 127 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
127
1579-
1580-
1581 resize(newLength);-
1582 int i = 0;-
1583 QChar *uc = data();-
1584 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(chunks)>::type> _container_((chunks)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QStringRef &chunk = *_container_.i; _container_.control; _container_.control = 0) {-
1585 int len = chunk.length();-
1586 memcpy(uc + i, chunk.unicode(), len * sizeof(QChar));-
1587 i += len;-
1588 }
executed 243 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
243
1589-
1590 return
executed 141 times by 3 tests: return *this;
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
*this;
executed 141 times by 3 tests: return *this;
Executed by:
  • tst_QString
  • tst_QStringList
  • tst_qdbusxml2cpp
141
1591}-
1592int QString::count(const QString &str, Qt::CaseSensitivity cs) const-
1593{-
1594 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
1595}-
1596int QString::count(QChar ch, Qt::CaseSensitivity cs) const-
1597{-
1598 return
executed 10950 times by 11 tests: return qt_string_count(unicode(), size(), ch, cs);
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QTableView
  • tst_QTreeView
  • tst_QXmlStream
qt_string_count(unicode(), size(), ch, cs);
executed 10950 times by 11 tests: return qt_string_count(unicode(), size(), ch, cs);
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QTableView
  • tst_QTreeView
  • tst_QXmlStream
10950
1599 }-
1600int QString::count(const QStringRef &str, Qt::CaseSensitivity cs) const-
1601{-
1602 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
1603}-
1604int QString::indexOf(const QRegExp& rx, int from) const-
1605{-
1606 QRegExp rx2(rx);-
1607 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
1608}-
1609int QString::indexOf(QRegExp& rx, int from) const-
1610{-
1611 return
executed 323 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 323 times by 5 tests: return rx.indexIn(*this, from);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFontComboBox
  • tst_QString
  • tst_QTime
323
1612}-
1613int QString::lastIndexOf(const QRegExp& rx, int from) const-
1614{-
1615 QRegExp rx2(rx);-
1616 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
1617}-
1618int QString::lastIndexOf(QRegExp& rx, int from) const-
1619{-
1620 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
1621}-
1622int QString::count(const QRegExp& rx) const-
1623{-
1624 QRegExp rx2(rx);-
1625 int count = 0;-
1626 int index = -1;-
1627 int len = length();-
1628 while (index < len - 1
index < len - 1Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEnever evaluated
) {
0-5
1629 index = rx2.indexIn(*this, index + 1);-
1630 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
1631 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QString
2
1632 count++;-
1633 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QString
3
1634 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
1635}-
1636int QString::indexOf(const QRegularExpression& re, int from) const-
1637{-
1638 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
1639}-
1640int QString::indexOf(const QRegularExpression &re, int from, QRegularExpressionMatch *rmatch) const-
1641{-
1642 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
1643 QMessageLogger(__FILE__, 3895, __PRETTY_FUNCTION__).warning("QString::indexOf: invalid QRegularExpression object");-
1644 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
1645 }-
1646-
1647 QRegularExpressionMatch match = re.match(*this, from);-
1648 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
1649 const int ret = match.capturedStart();-
1650 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
1651 *
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
1652 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
1653 }-
1654-
1655 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
1656}-
1657int QString::lastIndexOf(const QRegularExpression &re, int from) const-
1658{-
1659 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
1660}-
1661int QString::lastIndexOf(const QRegularExpression &re, int from, QRegularExpressionMatch *rmatch) const-
1662{-
1663 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
1664 QMessageLogger(__FILE__, 3946, __PRETTY_FUNCTION__).warning("QString::lastIndexOf: invalid QRegularExpression object");-
1665 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
1666 }-
1667-
1668 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
1669 QRegularExpressionMatchIterator iterator = re.globalMatch(*this);-
1670 int lastIndex = -1;-
1671 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
1672 QRegularExpressionMatch match = iterator.next();-
1673 int start = match.capturedStart();-
1674 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
1675 lastIndex = start;-
1676 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
1677 *
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
1678 }
executed 92 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextDocument
else {
92
1679 break;
executed 17 times by 2 tests: break;
Executed by:
  • tst_QString
  • tst_QTextDocument
17
1680 }-
1681 }-
1682-
1683 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
1684}-
1685-
1686-
1687-
1688-
1689-
1690-
1691-
1692bool QString::contains(const QRegularExpression &re) const-
1693{-
1694 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
1695}-
1696bool QString::contains(const QRegularExpression &re, QRegularExpressionMatch *match) const-
1697{-
1698 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
1699 QMessageLogger(__FILE__, 3996, __PRETTY_FUNCTION__).warning("QString::contains: invalid QRegularExpression object");-
1700 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
1701 }-
1702 QRegularExpressionMatch m = re.match(*this);-
1703 bool hasMatch = m.hasMatch();-
1704 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
1705 *
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
1706 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
1707}-
1708int QString::count(const QRegularExpression &re) const-
1709{-
1710 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
1711 QMessageLogger(__FILE__, 4021, __PRETTY_FUNCTION__).warning("QString::count: invalid QRegularExpression object");-
1712 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
1713 }-
1714 int count = 0;-
1715 int index = -1;-
1716 int len = length();-
1717 while (index < len - 1
index < len - 1Description
TRUEevaluated 245 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qdbusxml2cpp
FALSEnever evaluated
) {
0-245
1718 QRegularExpressionMatch match = re.match(*this, index + 1);-
1719 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
1720 break;
executed 122 times by 2 tests: break;
Executed by:
  • tst_QString
  • tst_qdbusxml2cpp
122
1721 index = match.capturedStart();-
1722 count++;-
1723 }
executed 123 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qdbusxml2cpp
123
1724 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
1725}-
1726QString QString::section(const QString &sep, int start, int end, SectionFlags flags) const-
1727{-
1728 const QVector<QStringRef> sections = splitRef(sep, KeepEmptyParts,-
1729 (flags & SectionCaseInsensitiveSeps) ? Qt::CaseInsensitive : Qt::CaseSensitive);-
1730 const int sectionsSize = sections.size();-
1731 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
1732 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
1733 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
1734 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
1735 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
1736 }
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
1737 int skip = 0;-
1738 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
1739 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
1740 skip++;
executed 2048 times by 2 tests: skip++;
Executed by:
  • tst_QLayout
  • tst_QString
2048
1741 }
executed 15024 times by 3 tests: end of block
Executed by:
  • tst_QLayout
  • tst_QString
  • tst_rcc
15024
1742 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
1743 start += sectionsSize - skip;
executed 4 times by 1 test: start += sectionsSize - skip;
Executed by:
  • tst_QString
4
1744 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
1745 end += sectionsSize - skip;
executed 1794 times by 2 tests: end += sectionsSize - skip;
Executed by:
  • tst_QLayout
  • tst_QString
1794
1746 }
executed 1992 times by 3 tests: end of block
Executed by:
  • tst_QLayout
  • tst_QString
  • tst_rcc
1992
1747 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
1748 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
1749-
1750 QString ret;-
1751 int first_i = start, last_i = end;-
1752 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
1753 const QStringRef &section = sections.at(i);-
1754 const bool empty = section.isEmpty();-
1755 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
1756 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
1757 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
1758 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
1759 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
1760 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
1761 ret += sep;
executed 43 times by 2 tests: ret += sep;
Executed by:
  • tst_QString
  • tst_qmakelib
43
1762 ret += section;-
1763 }
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
1764 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
1765 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
1766 }
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
1767 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
1768 ret.prepend(sep);
executed 16 times by 1 test: ret.prepend(sep);
Executed by:
  • tst_QString
16
1769 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
1770 ret += sep;
executed 16 times by 1 test: ret += sep;
Executed by:
  • tst_QString
16
1771 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
1772}-
1773-
1774-
1775class qt_section_chunk {-
1776public:-
1777 qt_section_chunk() {}-
1778 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
1779 int length;-
1780 QStringRef string;-
1781};-
1782template<> 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"; } };-
1783-
1784static QString extractSections(const QVector<qt_section_chunk> &sections,-
1785 int start,-
1786 int end,-
1787 QString::SectionFlags flags)-
1788{-
1789 const int sectionsSize = sections.size();-
1790-
1791 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
1792 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
1793 start += sectionsSize;
executed 9 times by 2 tests: start += sectionsSize;
Executed by:
  • tst_QString
  • tst_qmakelib
9
1794 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
1795 end += sectionsSize;
executed 18 times by 2 tests: end += sectionsSize;
Executed by:
  • tst_QString
  • tst_qmakelib
18
1796 }
executed 72 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qmakelib
else {
72
1797 int skip = 0;-
1798 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
1799 const qt_section_chunk &section = sections.at(k);-
1800 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
1801 skip++;
executed 256 times by 1 test: skip++;
Executed by:
  • tst_QString
256
1802 }
executed 324 times by 1 test: end of block
Executed by:
  • tst_QString
324
1803 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
1804 start += sectionsSize - skip;
executed 4 times by 1 test: start += sectionsSize - skip;
Executed by:
  • tst_QString
4
1805 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
1806 end += sectionsSize - skip;
executed 2 times by 1 test: end += sectionsSize - skip;
Executed by:
  • tst_QString
2
1807 }
executed 18 times by 1 test: end of block
Executed by:
  • tst_QString
18
1808 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
1809 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
1810-
1811 QString ret;-
1812 int x = 0;-
1813 int first_i = start, last_i = end;-
1814 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
1815 const qt_section_chunk &section = sections.at(i);-
1816 const bool empty = (section.length == section.string.length());-
1817 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
1818 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
1819 first_i = i;
executed 127 times by 2 tests: first_i = i;
Executed by:
  • tst_QString
  • tst_qmakelib
127
1820 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
1821 last_i = i;
executed 129 times by 2 tests: last_i = i;
Executed by:
  • tst_QString
  • tst_qmakelib
129
1822 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
1823 ret += section.string;
executed 65 times by 2 tests: ret += section.string;
Executed by:
  • tst_QString
  • tst_qmakelib
65
1824 else-
1825 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
1826 }-
1827 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
1828 x++;
executed 233 times by 2 tests: x++;
Executed by:
  • tst_QString
  • tst_qmakelib
233
1829 }
executed 365 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qmakelib
365
1830-
1831 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
1832 const qt_section_chunk &section = sections.at(first_i);-
1833 ret.prepend(section.string.left(section.length));-
1834 }
executed 44 times by 1 test: end of block
Executed by:
  • tst_QString
44
1835-
1836 if ((flags & QString::SectionIncludeTrailingSep)-
1837 && 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
1838 const qt_section_chunk &section = sections.at(last_i+1);-
1839 ret += section.string.left(section.length);-
1840 }
executed 28 times by 1 test: end of block
Executed by:
  • tst_QString
28
1841-
1842 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
1843}-
1844QString QString::section(const QRegExp &reg, int start, int end, SectionFlags flags) const-
1845{-
1846 const QChar *uc = unicode();-
1847 if(!uc
!ucDescription
TRUEnever evaluated
FALSEevaluated 48 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
)
0-48
1848 return
never executed: return QString();
QString();
never executed: return QString();
0
1849-
1850 QRegExp sep(reg);-
1851 sep.setCaseSensitivity((flags & SectionCaseInsensitiveSeps) ? Qt::CaseInsensitive-
1852 : Qt::CaseSensitive);-
1853-
1854 QVector<qt_section_chunk> sections;-
1855 int n = length(), m = 0, last_m = 0, last_len = 0;-
1856 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
1857 sections.append(qt_section_chunk(last_len, QStringRef(this, last_m, m - last_m)));-
1858 last_m = m;-
1859 last_len = sep.matchedLength();-
1860 m += qMax(sep.matchedLength(), 1);-
1861 }
executed 277 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qmakelib
277
1862 sections.append(qt_section_chunk(last_len, QStringRef(this, last_m, n - last_m)));-
1863-
1864 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
1865}-
1866QString QString::section(const QRegularExpression &re, int start, int end, SectionFlags flags) const-
1867{-
1868 if (!re.isValid()
!re.isValid()Description
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QString
) {
0-42
1869 QMessageLogger(__FILE__, 4288, __PRETTY_FUNCTION__).warning("QString::section: invalid QRegularExpression object");-
1870 return
never executed: return QString();
QString();
never executed: return QString();
0
1871 }-
1872-
1873 const QChar *uc = unicode();-
1874 if (!uc
!ucDescription
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QString
)
0-42
1875 return
never executed: return QString();
QString();
never executed: return QString();
0
1876-
1877 QRegularExpression sep(re);-
1878 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
1879 sep.setPatternOptions(sep.patternOptions() | QRegularExpression::CaseInsensitiveOption);
executed 1 time by 1 test: sep.setPatternOptions(sep.patternOptions() | QRegularExpression::CaseInsensitiveOption);
Executed by:
  • tst_QString
1
1880-
1881 QVector<qt_section_chunk> sections;-
1882 int n = length(), m = 0, last_m = 0, last_len = 0;-
1883 QRegularExpressionMatchIterator iterator = sep.globalMatch(*this);-
1884 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
1885 QRegularExpressionMatch match = iterator.next();-
1886 m = match.capturedStart();-
1887 sections.append(qt_section_chunk(last_len, QStringRef(this, last_m, m - last_m)));-
1888 last_m = m;-
1889 last_len = match.capturedLength();-
1890 }
executed 271 times by 1 test: end of block
Executed by:
  • tst_QString
271
1891 sections.append(qt_section_chunk(last_len, QStringRef(this, last_m, n - last_m)));-
1892-
1893 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
1894}-
1895QString QString::left(int n) const-
1896{-
1897 if (uint(n) >= uint(d->size)
uint(n) >= uint(d->size)Description
TRUEevaluated 38684 times by 85 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • ...
FALSEevaluated 82353 times by 198 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
  • ...
)
38684-82353
1898 return
executed 38684 times by 85 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • ...
*this;
executed 38684 times by 85 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • ...
38684
1899 return
executed 82353 times by 198 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 82353 times by 198 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
  • ...
82353
1900}-
1901QString QString::right(int n) const-
1902{-
1903 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 4888 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-4888
1904 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
1905 return
executed 4888 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 4888 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
  • ...
4888
1906}-
1907QString QString::mid(int position, int n) const-
1908{-
1909 using namespace QtPrivate;-
1910 switch (QContainerImplHelper::mid(d->size, &position, &n)) {-
1911 case
executed 12345 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 12345 times by 7 tests: case QContainerImplHelper::Null:
Executed by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QString
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_QXmlStream
12345
1912 return
executed 12345 times by 7 tests: return QString();
Executed by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QString
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_QXmlStream
QString();
executed 12345 times by 7 tests: return QString();
Executed by:
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QString
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_QXmlStream
12345
1913 case
executed 11669 times by 196 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_Collections
  • 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
  • ...
QContainerImplHelper::Empty:
executed 11669 times by 196 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_Collections
  • 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
  • ...
11669
1914 {-
1915 QStringDataPtr empty = { Data::allocate(0) };-
1916 return
executed 11669 times by 196 tests: return QString(empty);
Executed by:
  • tst_Collections
  • 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
  • ...
QString(empty);
executed 11669 times by 196 tests: return QString(empty);
Executed by:
  • tst_Collections
  • 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
  • ...
11669
1917 }-
1918 case
executed 109317 times by 229 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_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_QCoreApplication
  • ...
QContainerImplHelper::Full:
executed 109317 times by 229 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_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_QCoreApplication
  • ...
109317
1919 return
executed 109317 times by 229 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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_QCoreApplication
  • ...
*this;
executed 109317 times by 229 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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_QCoreApplication
  • ...
109317
1920 case
executed 910993 times by 339 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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
  • ...
QContainerImplHelper::Subset:
executed 910993 times by 339 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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
  • ...
910993
1921 return
executed 910993 times by 339 tests: return QString((const QChar*)d->data() + position, n);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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
  • ...
QString((const QChar*)d->data() + position, n);
executed 910993 times by 339 tests: return QString((const QChar*)d->data() + position, n);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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
  • ...
910993
1922 }-
1923 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,4386) : qt_noop()); __builtin_unreachable(); } while (0);-
1924 return
never executed: return QString();
QString();
never executed: return QString();
0
1925}-
1926bool QString::startsWith(const QString& s, Qt::CaseSensitivity cs) const-
1927{-
1928 return
executed 260839 times by 122 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 260839 times by 122 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
  • ...
260839
1929 s.isNull() ? 0 : s.unicode(), s.size(), cs);
executed 260839 times by 122 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
  • ...
260839
1930}-
1931-
1932-
1933-
1934-
1935bool QString::startsWith(QLatin1String s, Qt::CaseSensitivity cs) const-
1936{-
1937 return
executed 271321 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 271321 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
  • ...
271321
1938}-
1939-
1940-
1941-
1942-
1943-
1944-
1945-
1946bool QString::startsWith(QChar c, Qt::CaseSensitivity cs) const-
1947{-
1948 return
executed 491395 times by 270 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_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • ...
d->size
d->sizeDescription
TRUEevaluated 486964 times by 268 tests
Evaluated 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_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEevaluated 4431 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QColorDialog
  • tst_QDBusMarshall
  • tst_QDataUrl
  • tst_QDate
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSpinBox
  • tst_QSslSocket
  • tst_QString
  • ...
executed 491395 times by 270 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_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • ...
4431-491395
1949 && (
(cs == Qt::Cas...(c.unicode()))Description
TRUEevaluated 204081 times by 232 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 282883 times by 242 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_QAbstractTextDocumentLayout
  • 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
  • ...
cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 486957 times by 268 tests
Evaluated 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_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
executed 491395 times by 270 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_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • ...
7-491395
1950 ? d->data()[0] == c
(cs == Qt::Cas...(c.unicode()))Description
TRUEevaluated 204081 times by 232 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 282883 times by 242 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_QAbstractTextDocumentLayout
  • 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
  • ...
executed 491395 times by 270 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_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • ...
204081-491395
1951 : foldCase(d->data()[0]) == foldCase(c.unicode()))
(cs == Qt::Cas...(c.unicode()))Description
TRUEevaluated 204081 times by 232 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 282883 times by 242 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_QAbstractTextDocumentLayout
  • 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
  • ...
;
executed 491395 times by 270 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_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • ...
204081-491395
1952}-
1953bool QString::startsWith(const QStringRef &s, Qt::CaseSensitivity cs) const-
1954{-
1955 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
1956 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
1957}-
1958bool QString::endsWith(const QString& s, Qt::CaseSensitivity cs) const-
1959{-
1960 return
executed 4627 times by 69 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_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLabel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • ...
qt_ends_with(isNull() ? 0 : unicode(), size(),
executed 4627 times by 69 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_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLabel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • ...
4627
1961 s.isNull() ? 0 : s.unicode(), s.size(), cs);
executed 4627 times by 69 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_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLabel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • ...
4627
1962 }-
1963bool QString::endsWith(const QStringRef &s, Qt::CaseSensitivity cs) const-
1964{-
1965 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
1966 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
1967}-
1968-
1969-
1970-
1971-
1972-
1973bool QString::endsWith(QLatin1String s, Qt::CaseSensitivity cs) const-
1974{-
1975 return
executed 49832 times by 121 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 49832 times by 121 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
  • ...
49832
1976}-
1977-
1978-
1979-
1980-
1981-
1982-
1983-
1984bool QString::endsWith(QChar c, Qt::CaseSensitivity cs) const-
1985{-
1986 return
executed 278838 times by 335 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
d->sizeDescription
TRUEevaluated 278162 times by 331 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_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • ...
FALSEevaluated 676 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • 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_QDebug
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QString
  • tst_QTextDocument
  • tst_QTextList
  • ...
executed 278838 times by 335 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
  • ...
676-278838
1987 && (
(cs == Qt::Cas...(c.unicode()))Description
TRUEevaluated 47682 times by 152 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 230480 times by 297 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • 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_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • ...
cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 278155 times by 331 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_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • ...
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
executed 278838 times by 335 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
  • ...
7-278838
1988 ? d->data()[d->size - 1] == c
(cs == Qt::Cas...(c.unicode()))Description
TRUEevaluated 47682 times by 152 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 230480 times by 297 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • 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_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • ...
executed 278838 times by 335 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
  • ...
47682-278838
1989 : foldCase(d->data()[d->size - 1]) == foldCase(c.unicode()))
(cs == Qt::Cas...(c.unicode()))Description
TRUEevaluated 47682 times by 152 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 230480 times by 297 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • 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_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QClipboard
  • ...
;
executed 278838 times by 335 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
  • ...
47682-278838
1990}-
1991-
1992QByteArray QString::toLatin1_helper(const QString &string)-
1993{-
1994 if (__builtin_expect(!!(string.isNull()), false)
__builtin_expe...ull()), false)Description
TRUEevaluated 6199 times by 166 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 237874 times by 434 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
  • ...
)
6199-237874
1995 return
executed 6199 times by 166 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 6199 times by 166 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
  • ...
6199
1996-
1997 return
executed 237874 times by 434 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 237874 times by 434 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
  • ...
237874
1998}-
1999-
2000QByteArray QString::toLatin1_helper(const QChar *data, int length)-
2001{-
2002 QByteArray ba(length, Qt::Uninitialized);-
2003-
2004-
2005-
2006 qt_to_latin1(reinterpret_cast<uchar *>(const_cast<char *>(ba.constData())),-
2007 reinterpret_cast<const ushort *>(data), length);-
2008 return
executed 238133 times by 435 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 238133 times by 435 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
  • ...
238133
2009}-
2010-
2011QByteArray QString::toLatin1_helper_inplace(QString &s)-
2012{-
2013 if (!s.isDetached()
!s.isDetached()Description
TRUEevaluated 30170 times by 159 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 51527 times by 135 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_QDateTimeEdit
  • ...
)
30170-51527
2014 return
executed 30170 times by 159 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 30170 times by 159 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
  • ...
30170
2015-
2016-
2017-
2018 const ushort *data = reinterpret_cast<const ushort *>(s.constData());-
2019 uint length = s.size();-
2020-
2021-
2022-
2023 QArrayData *ba_d = s.d;-
2024-
2025-
2026 ba_d->alloc *= sizeof(ushort);-
2027-
2028-
2029 s.d = QString().d;-
2030-
2031-
2032 uchar *dst = reinterpret_cast<uchar *>(ba_d->data());-
2033 qt_to_latin1(dst, data, length);-
2034 dst[length] = '\0';-
2035-
2036 QByteArrayDataPtr badptr = { ba_d };-
2037 return
executed 51527 times by 135 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_QDateTimeEdit
  • ...
QByteArray(badptr);
executed 51527 times by 135 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_QDateTimeEdit
  • ...
51527
2038}-
2039QByteArray QString::toLocal8Bit_helper(const QChar *data, int size)-
2040{-
2041-
2042 QTextCodec *localeCodec = QTextCodec::codecForLocale();-
2043 if (localeCodec
localeCodecDescription
TRUEevaluated 556603 times by 408 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qlockfile - unknown status
)
3-556603
2044 return
executed 556603 times by 408 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 556603 times by 408 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
  • ...
556603
2045-
2046 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
2047}-
2048QByteArray QString::toUtf8_helper(const QString &str)-
2049{-
2050 if (str.isNull()
str.isNull()Description
TRUEevaluated 5786 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 109953 times by 247 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
)
5786-109953
2051 return
executed 5786 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 5786 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
  • ...
5786
2052-
2053 return
executed 109953 times by 247 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 109953 times by 247 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
  • ...
109953
2054}-
2055QVector<uint> QString::toUcs4() const-
2056{-
2057 QVector<uint> v(length());-
2058 uint *a = v.data();-
2059 int len = toUcs4_helper(d->data(), length(), a);-
2060 v.resize(len);-
2061 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
2062}-
2063-
2064QString::Data *QString::fromLatin1_helper(const char *str, int size)-
2065{-
2066 Data *d;-
2067 if (!str
!strDescription
TRUEevaluated 103 times by 7 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QLatin1String
  • tst_QMetaType
  • tst_QPushButton
  • tst_QString
  • tst_QStyle
  • tst_QVariant
FALSEevaluated 1844871 times by 720 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
  • ...
) {
103-1844871
2068 d = Data::sharedNull();-
2069 }
executed 103 times by 7 tests: end of block
Executed by:
  • tst_QDBusXmlParser
  • tst_QLatin1String
  • tst_QMetaType
  • tst_QPushButton
  • tst_QString
  • tst_QStyle
  • tst_QVariant
else if (size == 0
size == 0Description
TRUEevaluated 24602 times by 473 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 1820269 times by 720 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
  • ...
|| (!*str
!*strDescription
TRUEevaluated 423 times by 10 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QString
  • tst_QTextCodec
  • tst_QUrl
  • tst_QUrlInternal
  • tst_languageChange
FALSEevaluated 1819846 times by 720 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
  • ...
&& size < 0
size < 0Description
TRUEnever evaluated
FALSEevaluated 423 times by 10 tests
Evaluated by:
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QString
  • tst_QTextCodec
  • tst_QUrl
  • tst_QUrlInternal
  • tst_languageChange
)) {
0-1820269
2070 d = Data::allocate(0);-
2071 }
executed 24602 times by 473 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 {
24602
2072 if (size < 0
size < 0Description
TRUEnever evaluated
FALSEevaluated 1820269 times by 720 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
  • ...
)
0-1820269
2073 size = qstrlen(str);
never executed: size = qstrlen(str);
0
2074 d = Data::allocate(size + 1);-
2075 do { if (!(d)
!(d)Description
TRUEnever evaluated
FALSEevaluated 1820269 times by 720 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-1820269
2076 d->size = size;-
2077 d->data()[size] = '\0';-
2078 ushort *dst = d->data();-
2079-
2080 qt_from_latin1(dst, str, uint(size));-
2081 }
executed 1820269 times by 720 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
  • ...
1820269
2082 return
executed 1844974 times by 720 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 1844974 times by 720 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
  • ...
1844974
2083}-
2084-
2085QString::Data *QString::fromAscii_helper(const char *str, int size)-
2086{-
2087 QString s = fromUtf8(str, size);-
2088 s.d->ref.ref();-
2089 return
executed 4790842 times by 345 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 4790842 times by 345 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
  • ...
4790842
2090}-
2091QString QString::fromLocal8Bit_helper(const char *str, int size)-
2092{-
2093 if (!str
!strDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 285178 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-285178
2094 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
2095 if (size == 0
size == 0Description
TRUEevaluated 894 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 284284 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 284281 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-284284
2096 QStringDataPtr empty = { Data::allocate(0) };-
2097 return
executed 894 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 894 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
894
2098 }-
2099-
2100 if (size < 0
size < 0Description
TRUEnever evaluated
FALSEevaluated 284284 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-284284
2101 size = qstrlen(str);
never executed: size = qstrlen(str);
0
2102 QTextCodec *codec = QTextCodec::codecForLocale();-
2103 if (codec
codecDescription
TRUEevaluated 284282 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-284282
2104 return
executed 284282 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 284282 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
  • ...
284282
2105-
2106 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
2107}-
2108QString QString::fromUtf8_helper(const char *str, int size)-
2109{-
2110 if (!str
!strDescription
TRUEevaluated 7629 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 7808200 times by 550 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
)
7629-7808200
2111 return
executed 7629 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 7629 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
  • ...
7629
2112-
2113 ((!(size != -1)) ? qt_assert("size != -1",__FILE__,4788) : qt_noop());-
2114 return
executed 7808200 times by 550 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_QAnimationGroup
  • tst_QApplication
  • ...
QUtf8::convertToUnicode(str, size);
executed 7808200 times by 550 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_QAnimationGroup
  • tst_QApplication
  • ...
7808200
2115}-
2116QString QString::fromUtf16(const ushort *unicode, int size)-
2117{-
2118 if (!unicode
!unicodeDescription
TRUEnever evaluated
FALSEevaluated 233804 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-233804
2119 return
never executed: return QString();
QString();
never executed: return QString();
0
2120 if (size < 0
size < 0Description
TRUEevaluated 132 times by 8 tests
Evaluated by:
  • tst_QDebug
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_Utf8
FALSEevaluated 233672 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
) {
132-233672
2121 size = 0;-
2122 while (unicode[size] != 0
unicode[size] != 0Description
TRUEevaluated 625 times by 8 tests
Evaluated by:
  • tst_QDebug
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_Utf8
FALSEevaluated 132 times by 8 tests
Evaluated by:
  • tst_QDebug
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_Utf8
)
132-625
2123 ++
executed 625 times by 8 tests: ++size;
Executed by:
  • tst_QDebug
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_Utf8
size;
executed 625 times by 8 tests: ++size;
Executed by:
  • tst_QDebug
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_Utf8
625
2124 }
executed 132 times by 8 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QNetworkCookieJar
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
  • tst_Utf8
132
2125 return
executed 233804 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 233804 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
233804
2126}-
2127QString QString::fromUcs4(const uint *unicode, int size)-
2128{-
2129 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
2130 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
2131 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
2132 size = 0;-
2133 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
2134 ++
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
2135 }
executed 315 times by 3 tests: end of block
Executed by:
  • tst_QString
  • tst_Utf8
  • tst_qmakelib
315
2136 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
2137}-
2138QString& QString::setUnicode(const QChar *unicode, int size)-
2139{-
2140 resize(size);-
2141 if (unicode
unicodeDescription
TRUEevaluated 184392 times by 14 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEnever evaluated
&& size
sizeDescription
TRUEevaluated 97526 times by 14 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 86866 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-184392
2142 memcpy(d->data(), unicode, size * sizeof(QChar));
executed 97526 times by 14 tests: memcpy(d->data(), unicode, size * sizeof(QChar));
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
97526
2143 return
executed 184392 times by 14 tests: return *this;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
*this;
executed 184392 times by 14 tests: return *this;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
184392
2144}-
2145QString QString::simplified_helper(const QString &str)-
2146{-
2147 return
executed 67827 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 67827 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
  • ...
67827
2148}-
2149-
2150QString QString::simplified_helper(QString &str)-
2151{-
2152 return
executed 8900 times by 5 tests: return QStringAlgorithms<QString>::simplified_helper(str);
Executed by:
  • tst_Lancelot
  • tst_QImageReader
  • tst_QString
  • tst_QTextBoundaryFinder
  • tst_QXmlStream
QStringAlgorithms<QString>::simplified_helper(str);
executed 8900 times by 5 tests: return QStringAlgorithms<QString>::simplified_helper(str);
Executed by:
  • tst_Lancelot
  • tst_QImageReader
  • tst_QString
  • tst_QTextBoundaryFinder
  • tst_QXmlStream
8900
2153}-
2154QString QString::trimmed_helper(const QString &str)-
2155{-
2156 return
executed 45079 times by 191 tests: return QStringAlgorithms<const QString>::trimmed_helper(str);
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • ...
QStringAlgorithms<const QString>::trimmed_helper(str);
executed 45079 times by 191 tests: return QStringAlgorithms<const QString>::trimmed_helper(str);
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • 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_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCoreApplication
  • tst_QCssParser
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • ...
45079
2157}-
2158-
2159QString QString::trimmed_helper(QString &str)-
2160{-
2161 return
executed 6520 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 6520 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
  • ...
6520
2162}-
2163void QString::truncate(int pos)-
2164{-
2165 if (pos < d->size
pos < d->sizeDescription
TRUEevaluated 42095002 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 7810261 times by 546 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
)
7810261-42095002
2166 resize(pos);
executed 42095002 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
  • ...
42095002
2167}
executed 49905263 times by 574 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
  • ...
49905263
2168void QString::chop(int n)-
2169{-
2170 if (n > 0
n > 0Description
TRUEevaluated 68267 times by 363 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_QCommandLinkButton
  • ...
FALSEevaluated 140 times by 3 tests
Evaluated by:
  • tst_QByteDataBuffer
  • tst_QString
  • tst_selftests - unknown status
)
140-68267
2171 resize(d->size - n);
executed 68267 times by 363 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_QCommandLinkButton
  • ...
68267
2172}
executed 68407 times by 363 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_QCommandLinkButton
  • ...
68407
2173QString& QString::fill(QChar ch, int size)-
2174{-
2175 resize(size < 0 ? d->size : size);-
2176 if (d->size
d->sizeDescription
TRUEevaluated 11590 times by 11 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • 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-11590
2177 QChar *i = (QChar*)d->data() + d->size;-
2178 QChar *b = (QChar*)d->data();-
2179 while (i != b
i != bDescription
TRUEevaluated 2697612 times by 11 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
FALSEevaluated 11590 times by 11 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
)
11590-2697612
2180 *--
executed 2697612 times by 11 tests: *--i = ch;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
i = ch;
executed 2697612 times by 11 tests: *--i = ch;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
2697612
2181 }
executed 11590 times by 11 tests: end of block
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
11590
2182 return
executed 17015 times by 13 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
*this;
executed 17015 times by 13 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QLCDNumber
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTextCodec
  • tst_QXmlSimpleReader
17015
2183}-
2184int QString::compare(const QString &other, Qt::CaseSensitivity cs) const-
2185{-
2186 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 235536 times by 214 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 491957 times by 160 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
  • ...
)
235536-491957
2187 return
executed 235536 times by 214 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 235536 times by 214 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
  • ...
235536
2188 return
executed 491957 times by 160 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 491957 times by 160 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
  • ...
491957
2189}-
2190-
2191-
2192-
2193-
2194-
2195int QString::compare_helper(const QChar *data1, int length1, const QChar *data2, int length2,-
2196 Qt::CaseSensitivity cs)-
2197{-
2198 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 373040 times by 62 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_QHash
  • tst_QHash_StrictIterators
  • tst_QHostAddress
  • tst_QImage
  • tst_QImageReader
  • tst_QItemModel
  • tst_QItemView
  • tst_QKeySequence
  • tst_QLocalSocket
  • ...
FALSEevaluated 162 times by 3 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
)
162-373040
2199 return
executed 373040 times by 62 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_QHash
  • tst_QHash_StrictIterators
  • tst_QHostAddress
  • tst_QImage
  • tst_QImageReader
  • tst_QItemModel
  • tst_QItemView
  • tst_QKeySequence
  • tst_QLocalSocket
  • ...
ucstrcmp(data1, length1, data2, length2);
executed 373040 times by 62 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_QHash
  • tst_QHash_StrictIterators
  • tst_QHostAddress
  • tst_QImage
  • tst_QImageReader
  • tst_QItemModel
  • tst_QItemView
  • tst_QKeySequence
  • tst_QLocalSocket
  • ...
373040
2200 const ushort *s1 = reinterpret_cast<const ushort *>(data1);-
2201 const ushort *s2 = reinterpret_cast<const ushort *>(data2);-
2202 return
executed 162 times by 3 tests: return ucstricmp(s1, s1 + length1, s2, s2 + length2);
Executed by:
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
ucstricmp(s1, s1 + length1, s2, s2 + length2);
executed 162 times by 3 tests: return ucstricmp(s1, s1 + length1, s2, s2 + length2);
Executed by:
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
162
2203}-
2204-
2205-
2206-
2207-
2208-
2209-
2210-
2211int QString::compare(QLatin1String other, Qt::CaseSensitivity cs) const-
2212{-
2213 return
executed 18451 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 18451 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
  • ...
18451
2214}-
2215int QString::compare_helper(const QChar *data1, int length1, const char *data2, int length2,-
2216 Qt::CaseSensitivity cs)-
2217{-
2218-
2219 const QString s2 = QString::fromUtf8(data2, length2 == -1 ? (data2 ? int(strlen(data2)) : -1) : length2);-
2220 return
executed 372703 times by 61 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_QHash
  • tst_QHash_StrictIterators
  • tst_QHostAddress
  • tst_QImage
  • tst_QImageReader
  • tst_QItemModel
  • tst_QItemView
  • tst_QKeySequence
  • tst_QLocalSocket
  • ...
compare_helper(data1, length1, s2.constData(), s2.size(), cs);
executed 372703 times by 61 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_QHash
  • tst_QHash_StrictIterators
  • tst_QHostAddress
  • tst_QImage
  • tst_QImageReader
  • tst_QItemModel
  • tst_QItemView
  • tst_QKeySequence
  • tst_QLocalSocket
  • ...
372703
2221}-
2222int QString::compare_helper(const QChar *data1, int length1, QLatin1String s2,-
2223 Qt::CaseSensitivity cs)-
2224{-
2225 const ushort *uc = reinterpret_cast<const ushort *>(data1);-
2226 const ushort *uce = uc + length1;-
2227 const uchar *c = (const uchar *)s2.latin1();-
2228-
2229 if (!c
!cDescription
TRUEnever evaluated
FALSEevaluated 535041 times by 443 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-535041
2230 return
never executed: return length1;
length1;
never executed: return length1;
0
2231-
2232 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 518239 times by 443 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 16802 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
  • ...
) {
16802-518239
2233 return
executed 518239 times by 443 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 518239 times by 443 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
  • ...
518239
2234 } else {-
2235 return
executed 16802 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 16802 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
  • ...
16802
2236 }-
2237}-
2238int QString::localeAwareCompare(const QString &other) const-
2239{-
2240 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
2241}-
2242-
2243-
2244namespace { 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
2245-
2246-
2247-
2248-
2249-
2250-
2251int QString::localeAwareCompare_helper(const QChar *data1, int length1,-
2252 const QChar *data2, int length2)-
2253{-
2254-
2255 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
2256 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
2257 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
2258 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
2259 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
2260}-
2261const ushort *QString::utf16() const-
2262{-
2263 if (((
((d)->offset !...(QStringData))Description
TRUEnever evaluated
FALSEevaluated 124123 times by 30 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QColorDialog
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QObject
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QPrinter
  • tst_QRegularExpressionValidator
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlQuery
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringList
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_QXmlSimpleReader
  • ...
d)->offset != sizeof(QStringData))
((d)->offset !...(QStringData))Description
TRUEnever evaluated
FALSEevaluated 124123 times by 30 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QColorDialog
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QObject
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QPrinter
  • tst_QRegularExpressionValidator
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlQuery
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringList
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_QXmlSimpleReader
  • ...
) {
0-124123
2264-
2265 const_cast<QString*>(this)->reallocData(uint(d->size) + 1u);-
2266 }
never executed: end of block
0
2267 return
executed 124123 times by 30 tests: return d->data();
Executed by:
  • tst_QAuthenticator
  • tst_QColorDialog
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QObject
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QPrinter
  • tst_QRegularExpressionValidator
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlQuery
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringList
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_QXmlSimpleReader
  • ...
d->data();
executed 124123 times by 30 tests: return d->data();
Executed by:
  • tst_QAuthenticator
  • tst_QColorDialog
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QObject
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QPrinter
  • tst_QRegularExpressionValidator
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSqlQuery
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringList
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QVariant
  • tst_QWidgetsVariant
  • tst_QXmlSimpleReader
  • ...
124123
2268}-
2269QString QString::leftJustified(int width, QChar fill, bool truncate) const-
2270{-
2271 QString result;-
2272 int len = length();-
2273 int padlen = width - len;-
2274 if (padlen > 0
padlen > 0Description
TRUEevaluated 804 times by 3 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
FALSEevaluated 4209 times by 1 test
Evaluated by:
  • tst_QString
) {
804-4209
2275 result.resize(len+padlen);-
2276 if (len
lenDescription
TRUEevaluated 803 times by 3 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
)
1-803
2277 memcpy(result.d->data(), d->data(), sizeof(QChar)*len);
executed 803 times by 3 tests: memcpy(result.d->data(), d->data(), sizeof(QChar)*len);
Executed by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
803
2278 QChar *uc = (QChar*)result.d->data() + len;-
2279 while (padlen--
padlen--Description
TRUEevaluated 32181 times by 3 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
FALSEevaluated 804 times by 3 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
)
804-32181
2280 *
executed 32181 times by 3 tests: * uc++ = fill;
Executed by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
uc++ = fill;
executed 32181 times by 3 tests: * uc++ = fill;
Executed by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
32181
2281 }
executed 804 times by 3 tests: end of block
Executed by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
else {
804
2282 if (truncate
truncateDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 4205 times by 1 test
Evaluated by:
  • tst_QString
)
4-4205
2283 result = left(width);
executed 4 times by 1 test: result = left(width);
Executed by:
  • tst_QString
4
2284 else-
2285 result = *this;
executed 4205 times by 1 test: result = *this;
Executed by:
  • tst_QString
4205
2286 }-
2287 return
executed 5013 times by 3 tests: return result;
Executed by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
result;
executed 5013 times by 3 tests: return result;
Executed by:
  • tst_QCommandLineParser
  • tst_QLineEdit
  • tst_QString
5013
2288}-
2289QString QString::rightJustified(int width, QChar fill, bool truncate) const-
2290{-
2291 QString result;-
2292 int len = length();-
2293 int padlen = width - len;-
2294 if (padlen > 0
padlen > 0Description
TRUEevaluated 800 times by 4 tests
Evaluated by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
FALSEevaluated 348892 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
  • ...
) {
800-348892
2295 result.resize(len+padlen);-
2296 QChar *uc = (QChar*)result.d->data();-
2297 while (padlen--
padlen--Description
TRUEevaluated 30752 times by 4 tests
Evaluated by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
FALSEevaluated 800 times by 4 tests
Evaluated by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
)
800-30752
2298 *
executed 30752 times by 4 tests: * uc++ = fill;
Executed by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
uc++ = fill;
executed 30752 times by 4 tests: * uc++ = fill;
Executed by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
30752
2299 if (len
lenDescription
TRUEevaluated 799 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-799
2300 memcpy(uc, d->data(), sizeof(QChar)*len);
executed 799 times by 4 tests: memcpy(uc, d->data(), sizeof(QChar)*len);
Executed by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
799
2301 }
executed 800 times by 4 tests: end of block
Executed by:
  • tst_QLCDNumber
  • tst_QString
  • tst_QTextStream
  • tst_qlogging - unknown status
else {
800
2302 if (truncate
truncateDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 348888 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-348888
2303 result = left(width);
executed 4 times by 1 test: result = left(width);
Executed by:
  • tst_QString
4
2304 else-
2305 result = *this;
executed 348888 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
  • ...
348888
2306 }-
2307 return
executed 349692 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 349692 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
  • ...
349692
2308}-
2309namespace QUnicodeTables {-
2310template <typename Traits, typename T>-
2311__attribute__((noinline))-
2312static QString detachAndConvertCase(T &str, QStringIterator it)-
2313{-
2314 ((!(!str.isEmpty())) ? qt_assert("!str.isEmpty()",__FILE__,5772) : qt_noop());-
2315 QString s = std::move(str);-
2316 QChar *pp = s.begin() + it.index();-
2317-
2318 do {-
2319 uint uc = it.nextUnchecked();-
2320-
2321 const QUnicodeTables::Properties *prop = qGetProp(uc);-
2322 signed short caseDiff = Traits::caseDiff(prop);-
2323-
2324 if (__builtin_expect(!!(Traits::caseSpecial(prop)), false)
__builtin_expe...prop)), false)Description
TRUEevaluated 212 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2302984 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-2302984
2325 const ushort *specialCase = specialCaseMap + caseDiff;-
2326 ushort length = *specialCase++;-
2327-
2328 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
2329 *pp++ = QChar(*specialCase);-
2330 }
executed 204 times by 1 test: end of block
Executed by:
  • tst_QString
else {
204
2331-
2332 int inpos = it.index() - 1;-
2333 int outpos = pp - s.constBegin();-
2334-
2335 s.replace(outpos, 1, reinterpret_cast<const QChar *>(specialCase), length);-
2336 pp = const_cast<QChar *>(s.constBegin()) + outpos + length;-
2337-
2338-
2339-
2340 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
2341 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
2342 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QString
8
2343 } 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 2302961 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-2302961
2344-
2345 pp++;-
2346 *pp++ = QChar::lowSurrogate(uc + caseDiff);-
2347 }
executed 23 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
else {
23
2348 *pp++ = QChar(uc + caseDiff);-
2349 }
executed 2302961 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
  • ...
2302961
2350 } while (it.hasNext()
it.hasNext()Description
TRUEevaluated 2036673 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 266523 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
  • ...
);
266523-2036673
2351-
2352 return
executed 266523 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 266523 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
  • ...
266523
2353}-
2354-
2355template <typename Traits, typename T>-
2356static QString convertCase(T &str)-
2357{-
2358 const QChar *p = str.constBegin();-
2359 const QChar *e = p + str.size();-
2360-
2361-
2362 while (e != p
e != pDescription
TRUEevaluated 457969 times by 221 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 3938 times by 72 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 455915 times by 221 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-457969
2363 --
executed 2054 times by 1 test: --e;
Executed by:
  • tst_QString
e;
executed 2054 times by 1 test: --e;
Executed by:
  • tst_QString
2054
2364-
2365 QStringIterator it(p, e);-
2366 while (it.hasNext()
it.hasNext()Description
TRUEevaluated 755433 times by 221 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 193330 times by 179 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
  • ...
) {
193330-755433
2367 uint uc = it.nextUnchecked();-
2368 if (Traits::caseDiff(qGetProp(uc))
Traits::caseDiff(qGetProp(uc))Description
TRUEevaluated 266523 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 488910 times by 182 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
  • ...
) {
266523-488910
2369 it.recedeUnchecked();-
2370 return
executed 266523 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 266523 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
  • ...
266523
2371 }-
2372 }
executed 488910 times by 182 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
  • ...
488910
2373 return
executed 193330 times by 179 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 193330 times by 179 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
  • ...
193330
2374}-
2375}-
2376-
2377QString QString::toLower_helper(const QString &str)-
2378{-
2379 return
executed 222004 times by 197 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 222004 times by 197 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
  • ...
222004
2380}-
2381-
2382QString QString::toLower_helper(QString &str)-
2383{-
2384 return
executed 51524 times by 177 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_QDate
  • tst_QDateTime
  • ...
QUnicodeTables::convertCase<QUnicodeTables::LowercaseTraits>(str);
executed 51524 times by 177 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_QDate
  • tst_QDateTime
  • ...
51524
2385}-
2386QString QString::toCaseFolded_helper(const QString &str)-
2387{-
2388 return
executed 175591 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 175591 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
  • ...
175591
2389}-
2390-
2391QString QString::toCaseFolded_helper(QString &str)-
2392{-
2393 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
2394}-
2395QString QString::toUpper_helper(const QString &str)-
2396{-
2397 return
executed 6050 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 6050 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
6050
2398}-
2399-
2400QString QString::toUpper_helper(QString &str)-
2401{-
2402 return
executed 4666 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 4666 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
4666
2403}-
2404-
2405-
2406-
2407-
2408-
2409-
2410QString &QString::sprintf(const char *cformat, ...)-
2411{-
2412 va_list ap;-
2413 __builtin_va_start(ap,cformat);-
2414 *this = vasprintf(cformat, ap);-
2415 __builtin_va_end(ap);-
2416 return
executed 10031 times by 3 tests: return *this;
Executed by:
  • tst_QPrinter
  • tst_QString
  • tst_qmakelib
*this;
executed 10031 times by 3 tests: return *this;
Executed by:
  • tst_QPrinter
  • tst_QString
  • tst_qmakelib
10031
2417}-
2418QString QString::asprintf(const char *cformat, ...)-
2419{-
2420 va_list ap;-
2421 __builtin_va_start(ap,cformat);-
2422 const QString s = vasprintf(cformat, ap);-
2423 __builtin_va_end(ap);-
2424 return
executed 25889 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_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
s;
executed 25889 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_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
25889
2425}-
2426-
2427-
2428-
2429-
2430-
2431-
2432QString &QString::vsprintf(const char *cformat, va_list ap)-
2433{-
2434 return
never executed: return *this = vasprintf(cformat, ap);
*this = vasprintf(cformat, ap);
never executed: return *this = vasprintf(cformat, ap);
0
2435}-
2436QString QString::vasprintf(const char *cformat, va_list ap)-
2437{-
2438 if (!cformat
!cformatDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 247956 times by 160 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 247956 times by 160 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-247956
2439-
2440 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
2441 }-
2442-
2443-
2444-
2445 QString result;-
2446 const char *c = cformat;-
2447 for (;;) {-
2448-
2449 const char *cb = c;-
2450 while (*
*c != '\0'Description
TRUEevaluated 564273 times by 160 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 247956 times by 160 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 564273 times by 160 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 247956 times by 160 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 209586 times by 160 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 354687 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 209586 times by 160 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 354687 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
  • ...
)
209586-564273
2451 c++;
executed 209586 times by 160 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
  • ...
209586
2452 result.append(QString::fromUtf8(cb, (int)(c - cb)));-
2453-
2454 if (*
*c == '\0'Description
TRUEevaluated 247956 times by 160 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 354687 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 247956 times by 160 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 354687 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
  • ...
)
247956-354687
2455 break;
executed 247956 times by 160 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
  • ...
247956
2456-
2457-
2458 const char *escape_start = c;-
2459 ++c;-
2460-
2461 if (*
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 354687 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 354687 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-354687
2462 result.append(QLatin1Char('%'));-
2463 break;
never executed: break;
0
2464 }-
2465 if (*
*c == '%'Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QPrinter
  • tst_QString
FALSEevaluated 354673 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 354673 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-354673
2466 result.append(QLatin1Char('%'));-
2467 ++c;-
2468 continue;
executed 14 times by 2 tests: continue;
Executed by:
  • tst_QPrinter
  • tst_QString
14
2469 }-
2470-
2471-
2472 uint flags = 0;-
2473 bool no_more_flags = false;-
2474 do {-
2475 switch (*c) {-
2476 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
2477 case
executed 12776 times by 16 tests: case '0':
Executed by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
'0':
executed 12776 times by 16 tests: case '0':
Executed by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
flags |= QLocaleData::ZeroPadded; break;
executed 12776 times by 16 tests: break;
Executed by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
12776
2478 case
executed 4997 times by 1 test: case '-':
Executed by:
  • tst_QString
'-':
executed 4997 times by 1 test: case '-':
Executed by:
  • tst_QString
flags |= QLocaleData::LeftAdjusted; break;
executed 4997 times by 1 test: break;
Executed by:
  • tst_QString
4997
2479 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
2480 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
2481 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
2482 default
executed 354673 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 354673 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
  • ...
no_more_flags = true; break;
executed 354673 times by 110 tests: break;
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
  • ...
354673
2483 }-
2484-
2485 if (!no_more_flags
!no_more_flagsDescription
TRUEevaluated 42733 times by 16 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEevaluated 354673 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
  • ...
)
42733-354673
2486 ++
executed 42733 times by 16 tests: ++c;
Executed by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
c;
executed 42733 times by 16 tests: ++c;
Executed by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
42733
2487 }
executed 397406 times by 110 tests: end of block
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
  • ...
while (!no_more_flags
!no_more_flagsDescription
TRUEevaluated 42733 times by 16 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEevaluated 354673 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
  • ...
);
42733-397406
2488-
2489 if (*
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 354673 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 354673 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-354673
2490 result.append(QLatin1String(escape_start));-
2491 break;
never executed: break;
0
2492 }-
2493-
2494-
2495 int width = -1;-
2496 if (qIsDigit(*c)
qIsDigit(*c)Description
TRUEevaluated 15288 times by 16 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEevaluated 339385 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
  • ...
) {
15288-339385
2497 QString width_str;-
2498 while (*
*c != '\0'Description
TRUEevaluated 35096 times by 16 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEnever evaluated
c != '\0'
*c != '\0'Description
TRUEevaluated 35096 times by 16 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEnever evaluated
&& qIsDigit(*c)
qIsDigit(*c)Description
TRUEevaluated 19808 times by 16 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEevaluated 15288 times by 16 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
)
0-35096
2499 width_str.append(QLatin1Char(*c++));
executed 19808 times by 16 tests: width_str.append(QLatin1Char(*c++));
Executed by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
19808
2500-
2501-
2502-
2503 width = width_str.toInt();-
2504 }
executed 15288 times by 16 tests: end of block
Executed by:
  • tst_QAlgorithms
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QString
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_selftests - unknown status
15288
2505 else if (*
*c == '*'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QLCDNumber
FALSEevaluated 339384 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 339384 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-339384
2506 width = __builtin_va_arg(ap,int);-
2507 if (width < 0
width < 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QLCDNumber
)
0-1
2508 width = -1;
never executed: width = -1;
0
2509 ++c;-
2510 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QLCDNumber
1
2511-
2512 if (*
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 354673 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 354673 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-354673
2513 result.append(QLatin1String(escape_start));-
2514 break;
never executed: break;
0
2515 }-
2516-
2517-
2518 int precision = -1;-
2519 if (*
*c == '.'Description
TRUEevaluated 9368 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 345305 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 9368 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 345305 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
  • ...
) {
9368-345305
2520 ++c;-
2521 if (qIsDigit(*c)
qIsDigit(*c)Description
TRUEevaluated 9367 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-9367
2522 QString precision_str;-
2523 while (*
*c != '\0'Description
TRUEevaluated 21233 times by 8 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QHttpSocketEngine
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
FALSEnever evaluated
c != '\0'
*c != '\0'Description
TRUEevaluated 21233 times by 8 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QHttpSocketEngine
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
FALSEnever evaluated
&& qIsDigit(*c)
qIsDigit(*c)Description
TRUEevaluated 11866 times by 8 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QHttpSocketEngine
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
FALSEevaluated 9367 times by 8 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QHttpSocketEngine
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
)
0-21233
2524 precision_str.append(QLatin1Char(*c++));
executed 11866 times by 8 tests: precision_str.append(QLatin1Char(*c++));
Executed by:
  • tst_PlatformSocketEngine
  • tst_QHttpSocketEngine
  • tst_QPrinter
  • tst_QRegExp
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
11866
2525-
2526-
2527-
2528 precision = precision_str.toInt();-
2529 }
executed 9367 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
9367
2530 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-1
2531 precision = __builtin_va_arg(ap,int);-
2532 if (precision < 0
precision < 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QLCDNumber
)
0-1
2533 precision = -1;
never executed: precision = -1;
0
2534 ++c;-
2535 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QLCDNumber
1
2536 }
executed 9368 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
9368
2537-
2538 if (*
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 354673 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 354673 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-354673
2539 result.append(QLatin1String(escape_start));-
2540 break;
never executed: break;
0
2541 }-
2542-
2543-
2544 enum LengthMod { lm_none, lm_hh, lm_h, lm_l, lm_ll, lm_L, lm_j, lm_z, lm_t };-
2545 LengthMod length_mod = lm_none;-
2546 switch (*c) {-
2547 case
never executed: case 'h':
'h':
never executed: case 'h':
0
2548 ++c;-
2549 if (*
*c == 'h'Description
TRUEnever evaluated
FALSEnever evaluated
c == 'h'
*c == 'h'Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2550 length_mod = lm_hh;-
2551 ++c;-
2552 }
never executed: end of block
0
2553 else-
2554 length_mod = lm_h;
never executed: length_mod = lm_h;
0
2555 break;
never executed: break;
0
2556-
2557 case
executed 2026 times by 4 tests: case 'l':
Executed by:
  • tst_QAlgorithms
  • tst_QSslSocket
  • tst_QStatusBar
  • tst_QString
'l':
executed 2026 times by 4 tests: case 'l':
Executed by:
  • tst_QAlgorithms
  • tst_QSslSocket
  • tst_QStatusBar
  • tst_QString
2026
2558 ++c;-
2559 if (*
*c == 'l'Description
TRUEevaluated 2022 times by 3 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QStatusBar
  • tst_QString
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QSslSocket
  • tst_QString
c == 'l'
*c == 'l'Description
TRUEevaluated 2022 times by 3 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QStatusBar
  • tst_QString
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QSslSocket
  • tst_QString
) {
4-2022
2560 length_mod = lm_ll;-
2561 ++c;-
2562 }
executed 2022 times by 3 tests: end of block
Executed by:
  • tst_QAlgorithms
  • tst_QStatusBar
  • tst_QString
2022
2563 else-
2564 length_mod = lm_l;
executed 4 times by 2 tests: length_mod = lm_l;
Executed by:
  • tst_QSslSocket
  • tst_QString
4
2565 break;
executed 2026 times by 4 tests: break;
Executed by:
  • tst_QAlgorithms
  • tst_QSslSocket
  • tst_QStatusBar
  • tst_QString
2026
2566-
2567 case
never executed: case 'L':
'L':
never executed: case 'L':
0
2568 ++c;-
2569 length_mod = lm_L;-
2570 break;
never executed: break;
0
2571-
2572 case
never executed: case 'j':
'j':
never executed: case 'j':
0
2573 ++c;-
2574 length_mod = lm_j;-
2575 break;
never executed: break;
0
2576-
2577 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
2578 case
never executed: case 'Z':
'Z':
never executed: case 'Z':
0
2579 ++c;-
2580 length_mod = lm_z;-
2581 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QString
3
2582-
2583 case
never executed: case 't':
't':
never executed: case 't':
0
2584 ++c;-
2585 length_mod = lm_t;-
2586 break;
never executed: break;
0
2587-
2588 default
executed 352644 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 352644 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
  • ...
break;
executed 352644 times by 110 tests: break;
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
  • ...
352644
2589 }-
2590-
2591 if (*
*c == '\0'Description
TRUEnever evaluated
FALSEevaluated 354673 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 354673 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-354673
2592 result.append(QLatin1String(escape_start));-
2593 break;
never executed: break;
0
2594 }-
2595-
2596-
2597 QString subst;-
2598 switch (*c) {-
2599 case
executed 247852 times by 47 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_QListView
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPainter
  • tst_QReadWriteLock
  • tst_QRegExp
  • ...
'd':
executed 247852 times by 47 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_QListView
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPainter
  • tst_QReadWriteLock
  • tst_QRegExp
  • ...
247852
2600 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
2601 qint64 i;-
2602 switch (length_mod) {-
2603 case
executed 248599 times by 51 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_QListView
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
lm_none:
executed 248599 times by 51 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_QListView
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
i = __builtin_va_arg(ap,int); break;
executed 248599 times by 51 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_QListView
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
248599
2604 case
never executed: case lm_hh:
lm_hh:
never executed: case lm_hh:
i = __builtin_va_arg(ap,int); break;
never executed: break;
0
2605 case
never executed: case lm_h:
lm_h:
never executed: case lm_h:
i = __builtin_va_arg(ap,int); break;
never executed: break;
0
2606 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
2607 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
2608 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
2609 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
2610 case
never executed: case lm_t:
lm_t:
never executed: case lm_t:
i = __builtin_va_arg(ap,int); break;
never executed: break;
0
2611 default
never executed: default:
:
never executed: default:
i = 0; break;
never executed: break;
0
2612 }-
2613 subst = QLocaleData::c()->longLongToString(i, precision, 10, width, flags);-
2614 ++c;-
2615 break;
executed 248602 times by 51 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_QListView
  • tst_QMutex
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
248602
2616 }-
2617 case
never executed: case 'o':
'o':
never executed: case 'o':
0
2618 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
2619 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
2620 case
never executed: case 'X':
'X':
never executed: case 'X':
{
0
2621 quint64 u;-
2622 switch (length_mod) {-
2623 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
2624 case
never executed: case lm_hh:
lm_hh:
never executed: case lm_hh:
u = __builtin_va_arg(ap,uint); break;
never executed: break;
0
2625 case
never executed: case lm_h:
lm_h:
never executed: case lm_h:
u = __builtin_va_arg(ap,uint); break;
never executed: break;
0
2626 case
never executed: case lm_l:
lm_l:
never executed: case lm_l:
u = __builtin_va_arg(ap,ulong); break;
never executed: break;
0
2627 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
2628 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
2629 default
never executed: default:
:
never executed: default:
u = 0; break;
never executed: break;
0
2630 }-
2631-
2632 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
2633 flags |= QLocaleData::CapitalEorX;
never executed: flags |= QLocaleData::CapitalEorX;
0
2634-
2635 int base = 10;-
2636 switch (qToLower(*c)) {-
2637 case
never executed: case 'o':
'o':
never executed: case 'o':
0
2638 base = 8; break;
never executed: break;
0
2639 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
2640 base = 10; break;
executed 6 times by 2 tests: break;
Executed by:
  • tst_QReadWriteLock
  • tst_QString
6
2641 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
2642 base = 16; break;
executed 6044 times by 5 tests: break;
Executed by:
  • tst_QAlgorithms
  • tst_QGlyphRun
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
6044
2643 default
never executed: default:
:
never executed: default:
break;
never executed: break;
0
2644 }-
2645 subst = QLocaleData::c()->unsLongLongToString(u, precision, base, width, flags);-
2646 ++c;-
2647 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
2648 }-
2649 case
never executed: case 'E':
'E':
never executed: case 'E':
0
2650 case
never executed: case 'e':
'e':
never executed: case 'e':
0
2651 case
never executed: case 'F':
'F':
never executed: case 'F':
0
2652 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
2653 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
2654 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
2655 case
never executed: case 'A':
'A':
never executed: case 'A':
0
2656 case
never executed: case 'a':
'a':
never executed: case 'a':
{
0
2657 double d;-
2658 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
2659 d = __builtin_va_arg(ap,long double);
never executed: d = __builtin_va_arg(ap,long double);
0
2660 else-
2661 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
2662-
2663 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
2664 flags |= QLocaleData::CapitalEorX;
executed 4992 times by 1 test: flags |= QLocaleData::CapitalEorX;
Executed by:
  • tst_QString
4992
2665-
2666 QLocaleData::DoubleForm form = QLocaleData::DFDecimal;-
2667 switch (qToLower(*c)) {-
2668 case
never executed: case 'e':
'e':
never executed: case 'e':
form = QLocaleData::DFExponent; break;
never executed: break;
0
2669 case
never executed: case 'a':
'a':
never executed: case 'a':
0
2670 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
2671 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
2672 default
never executed: default:
:
never executed: default:
break;
never executed: break;
0
2673 }-
2674 subst = QLocaleData::c()->doubleToString(d, precision, form, width, flags);-
2675 ++c;-
2676 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
2677 }-
2678 case
executed 216 times by 4 tests: case 'c':
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
'c':
executed 216 times by 4 tests: case 'c':
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
{
216
2679 if (length_mod == lm_l
length_mod == lm_lDescription
TRUEnever evaluated
FALSEevaluated 216 times by 4 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
)
0-216
2680 subst = QChar((ushort) __builtin_va_arg(ap,int));
never executed: subst = QChar((ushort) __builtin_va_arg(ap,int));
0
2681 else-
2682 subst = QLatin1Char((uchar) __builtin_va_arg(ap,int));
executed 216 times by 4 tests: subst = QLatin1Char((uchar) __builtin_va_arg(ap,int));
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
216
2683 ++c;-
2684 break;
executed 216 times by 4 tests: break;
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_selftests - unknown status
216
2685 }-
2686 case
executed 87800 times by 50 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 87800 times by 50 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
  • ...
{
87800
2687 if (length_mod == lm_l
length_mod == lm_lDescription
TRUEnever evaluated
FALSEevaluated 87800 times by 50 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
  • ...
) {
0-87800
2688 const ushort *buff = __builtin_va_arg(ap,const ushort*);-
2689 const ushort *ch = buff;-
2690 while (*
*ch != 0Description
TRUEnever evaluated
FALSEnever evaluated
ch != 0
*ch != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2691 ++
never executed: ++ch;
ch;
never executed: ++ch;
0
2692 subst.setUtf16(buff, ch - buff);-
2693 }
never executed: end of block
else
0
2694 subst = QString::fromUtf8(__builtin_va_arg(ap,const char*));
executed 87800 times by 50 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
  • ...
87800
2695 if (precision != -1
precision != -1Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 87793 times by 50 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
  • ...
)
7-87793
2696 subst.truncate(precision);
executed 7 times by 1 test: subst.truncate(precision);
Executed by:
  • tst_QString
7
2697 ++c;-
2698 break;
executed 87800 times by 50 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
  • ...
87800
2699 }-
2700 case
executed 1955 times by 32 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 1955 times by 32 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
  • ...
{
1955
2701 void *arg = __builtin_va_arg(ap,void*);-
2702 const quint64 i = reinterpret_cast<quintptr>(arg);-
2703 flags |= QLocaleData::Alternate;-
2704 subst = QLocaleData::c()->unsLongLongToString(i, precision, 16, width, flags);-
2705 ++c;-
2706 break;
executed 1955 times by 32 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
  • ...
1955
2707 }-
2708 case
executed 2 times by 1 test: case 'n':
Executed by:
  • tst_QString
'n':
executed 2 times by 1 test: case 'n':
Executed by:
  • tst_QString
2
2709 switch (length_mod) {-
2710 case
never executed: case lm_hh:
lm_hh:
never executed: case lm_hh:
{
0
2711 signed char *n = __builtin_va_arg(ap,signed char*);-
2712 *n = result.length();-
2713 break;
never executed: break;
0
2714 }-
2715 case
never executed: case lm_h:
lm_h:
never executed: case lm_h:
{
0
2716 short int *n = __builtin_va_arg(ap,short int*);-
2717 *n = result.length();-
2718 break;
never executed: break;
0
2719 }-
2720 case
never executed: case lm_l:
lm_l:
never executed: case lm_l:
{
0
2721 long int *n = __builtin_va_arg(ap,long int*);-
2722 *n = result.length();-
2723 break;
never executed: break;
0
2724 }-
2725 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
2726 qint64 *n = __builtin_va_arg(ap,qint64*);-
2727 volatile uint tmp = result.length();-
2728 *n = tmp;-
2729 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QString
1
2730 }-
2731 default
executed 1 time by 1 test: default:
Executed by:
  • tst_QString
:
executed 1 time by 1 test: default:
Executed by:
  • tst_QString
{
1
2732 int *n = __builtin_va_arg(ap,int*);-
2733 *n = result.length();-
2734 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QString
1
2735 }-
2736 }-
2737 ++c;-
2738 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QString
2
2739-
2740 default
never executed: default:
:
never executed: default:
0
2741 for (const char *cc = escape_start; cc != c
cc != cDescription
TRUEnever evaluated
FALSEnever evaluated
; ++cc)
0
2742 result.append(QLatin1Char(*cc));
never executed: result.append(QLatin1Char(*cc));
0
2743 continue;
never executed: continue;
0
2744 }-
2745-
2746 if (flags & QLocaleData::LeftAdjusted
flags & QLocal...::LeftAdjustedDescription
TRUEevaluated 4997 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 349676 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
  • ...
)
4997-349676
2747 result.append(subst.leftJustified(width));
executed 4997 times by 1 test: result.append(subst.leftJustified(width));
Executed by:
  • tst_QString
4997
2748 else-
2749 result.append(subst.rightJustified(width));
executed 349676 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
  • ...
349676
2750 }-
2751-
2752 return
executed 247956 times by 160 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 247956 times by 160 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
  • ...
247956
2753}-
2754qint64 QString::toLongLong(bool *ok, int base) const-
2755{-
2756 return
executed 59908 times by 42 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 42 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
2757}-
2758-
2759qlonglong QString::toIntegral_helper(const QChar *data, int len, bool *ok, int base)-
2760{-
2761-
2762-
2763-
2764-
2765-
2766-
2767-
2768 return
executed 180845 times by 79 tests: return QLocaleData::c()->stringToLongLong(data, len, base, ok, QLocaleData::FailOnGroupSeparators);
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • ...
QLocaleData::c()->stringToLongLong(data, len, base, ok, QLocaleData::FailOnGroupSeparators);
executed 180845 times by 79 tests: return QLocaleData::c()->stringToLongLong(data, len, base, ok, QLocaleData::FailOnGroupSeparators);
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • ...
180845
2769}-
2770quint64 QString::toULongLong(bool *ok, int base) const-
2771{-
2772 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
2773}-
2774-
2775qulonglong QString::toIntegral_helper(const QChar *data, uint len, bool *ok, int base)-
2776{-
2777-
2778-
2779-
2780-
2781-
2782-
2783-
2784 return
executed 3890 times by 20 tests: return QLocaleData::c()->stringToUnsLongLong(data, len, base, ok, QLocaleData::FailOnGroupSeparators);
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, QLocaleData::FailOnGroupSeparators);
executed 3890 times by 20 tests: return QLocaleData::c()->stringToUnsLongLong(data, len, base, ok, QLocaleData::FailOnGroupSeparators);
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
3890
2785}-
2786long QString::toLong(bool *ok, int base) const-
2787{-
2788 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
2789}-
2790ulong QString::toULong(bool *ok, int base) const-
2791{-
2792 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
2793}-
2794int QString::toInt(bool *ok, int base) const-
2795{-
2796 return
executed 73138 times by 47 tests: return toIntegral_helper<int>(constData(), size(), ok, base);
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QFontDialog
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeySequence
  • tst_QLayout
  • tst_QMimeDatabase
  • tst_QNetworkRequest
  • tst_QPlugin
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSettings
  • tst_QShortcut
  • ...
toIntegral_helper<int>(constData(), size(), ok, base);
executed 73138 times by 47 tests: return toIntegral_helper<int>(constData(), size(), ok, base);
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QFontDialog
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeySequence
  • tst_QLayout
  • tst_QMimeDatabase
  • tst_QNetworkRequest
  • tst_QPlugin
  • tst_QPrinter
  • tst_QRegExp
  • tst_QSettings
  • tst_QShortcut
  • ...
73138
2797}-
2798uint QString::toUInt(bool *ok, int base) const-
2799{-
2800 return
executed 2060 times by 12 tests: return toIntegral_helper<uint>(constData(), size(), ok, base);
Executed by:
  • tst_QFtp
  • tst_QHostAddress
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QUdpSocket
  • tst_QXmlSimpleReader
toIntegral_helper<uint>(constData(), size(), ok, base);
executed 2060 times by 12 tests: return toIntegral_helper<uint>(constData(), size(), ok, base);
Executed by:
  • tst_QFtp
  • tst_QHostAddress
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QUdpSocket
  • tst_QXmlSimpleReader
2060
2801}-
2802short QString::toShort(bool *ok, int base) const-
2803{-
2804 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
2805}-
2806ushort QString::toUShort(bool *ok, int base) const-
2807{-
2808 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
2809}-
2810double QString::toDouble(bool *ok) const-
2811{-
2812 return
executed 2728 times by 25 tests: return QLocaleData::c()->stringToDouble(constData(), size(), ok, QLocaleData::FailOnGroupSeparators);
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • 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, QLocaleData::FailOnGroupSeparators);
executed 2728 times by 25 tests: return QLocaleData::c()->stringToDouble(constData(), size(), ok, QLocaleData::FailOnGroupSeparators);
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • 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
2728
2813}-
2814float QString::toFloat(bool *ok) const-
2815{-
2816 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
2817}-
2818QString &QString::setNum(qlonglong n, int base)-
2819{-
2820 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
2821}-
2822-
2823-
2824-
2825-
2826QString &QString::setNum(qulonglong n, int base)-
2827{-
2828 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
2829}-
2830QString &QString::setNum(double n, char f, int prec)-
2831{-
2832 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
2833}-
2834QString QString::number(long n, int base)-
2835{-
2836 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
2837}-
2838-
2839-
2840-
2841-
2842-
2843-
2844QString QString::number(ulong n, int base)-
2845{-
2846 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
2847}-
2848-
2849-
2850-
2851-
2852QString QString::number(int n, int base)-
2853{-
2854 return
executed 561031 times by 159 tests: return number(qlonglong(n), base);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCache
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • ...
number(qlonglong(n), base);
executed 561031 times by 159 tests: return number(qlonglong(n), base);
Executed by:
  • tst_Collections
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCache
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • ...
561031
2855}-
2856-
2857-
2858-
2859-
2860QString QString::number(uint n, int base)-
2861{-
2862 return
executed 14397 times by 42 tests: return number(qulonglong(n), base);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPainter
  • tst_QRawFont
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • ...
number(qulonglong(n), base);
executed 14397 times by 42 tests: return number(qulonglong(n), base);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPainter
  • tst_QRawFont
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • ...
14397
2863}-
2864-
2865-
2866-
2867-
2868QString QString::number(qlonglong n, int base)-
2869{-
2870-
2871-
2872-
2873-
2874-
2875-
2876 return
executed 627410 times by 175 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_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
QLocaleData::c()->longLongToString(n, -1, base);
executed 627410 times by 175 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_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
627410
2877}-
2878-
2879-
2880-
2881-
2882QString QString::number(qulonglong n, int base)-
2883{-
2884-
2885-
2886-
2887-
2888-
2889-
2890 return
executed 14870 times by 57 tests: return QLocaleData::c()->unsLongLongToString(n, -1, base);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMetaObject
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
QLocaleData::c()->unsLongLongToString(n, -1, base);
executed 14870 times by 57 tests: return QLocaleData::c()->unsLongLongToString(n, -1, base);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMetaObject
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
14870
2891}-
2892QString QString::number(double n, char f, int prec)-
2893{-
2894 QLocaleData::DoubleForm form = QLocaleData::DFDecimal;-
2895 uint flags = 0;-
2896-
2897 if (qIsUpper(f)
qIsUpper(f)Description
TRUEnever evaluated
FALSEevaluated 2702 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-2702
2898 flags = QLocaleData::CapitalEorX;
never executed: flags = QLocaleData::CapitalEorX;
0
2899 f = qToLower(f);-
2900-
2901 switch (f) {-
2902 case
executed 987 times by 8 tests: case 'f':
Executed by:
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextDocument
  • tst_selftests - unknown status
'f':
executed 987 times by 8 tests: case 'f':
Executed by:
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextDocument
  • tst_selftests - unknown status
987
2903 form = QLocaleData::DFDecimal;-
2904 break;
executed 987 times by 8 tests: break;
Executed by:
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextDocument
  • tst_selftests - unknown status
987
2905 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
2906 form = QLocaleData::DFExponent;-
2907 break;
executed 12 times by 2 tests: break;
Executed by:
  • tst_QString
  • tst_QStringRef
12
2908 case
executed 1703 times by 23 tests: case 'g':
Executed by:
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QFont
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • 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 1703 times by 23 tests: case 'g':
Executed by:
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QFont
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • 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
1703
2909 form = QLocaleData::DFSignificantDigits;-
2910 break;
executed 1703 times by 23 tests: break;
Executed by:
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QFont
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • 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
1703
2911 default
never executed: default:
:
never executed: default:
0
2912-
2913-
2914-
2915 break;
never executed: break;
0
2916 }-
2917-
2918 return
executed 2702 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 2702 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
  • ...
2702
2919}-
2920-
2921namespace {-
2922template<class ResultList, class StringSource>-
2923static ResultList splitString(const StringSource &source, const QChar *sep,-
2924 QString::SplitBehavior behavior, Qt::CaseSensitivity cs, const int separatorSize)-
2925{-
2926 ResultList list;-
2927 int start = 0;-
2928 int end;-
2929 int extra = 0;-
2930 while ((
(end = qFindSt...ze, cs)) != -1Description
TRUEevaluated 348488 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 78545 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 348488 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 78545 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
  • ...
) {
78545-348488
2931 if (start != end
start != endDescription
TRUEevaluated 321823 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 26665 times by 187 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_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
|| behavior == QString::KeepEmptyParts
behavior == QS...KeepEmptyPartsDescription
TRUEevaluated 4428 times by 170 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_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 22237 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
  • ...
)
4428-321823
2932 list.append(source.mid(start, end - start));
executed 326251 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
  • ...
326251
2933 start = end + separatorSize;-
2934 extra = (separatorSize == 0
separatorSize == 0Description
TRUEevaluated 48 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 348440 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-348440
2935 }
executed 348488 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
  • ...
348488
2936 if (start != source.size()
start != source.size()Description
TRUEevaluated 75068 times by 265 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 3477 times by 61 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 2898 times by 53 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 579 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
)
579-75068
2937 list.append(source.mid(start, -1));
executed 77966 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
  • ...
77966
2938 return
executed 78545 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 78545 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
  • ...
78545
2939}-
2940-
2941}-
2942QStringList QString::split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const-
2943{-
2944 return
executed 1002 times by 29 tests: return splitString<QStringList>(*this, sep.constData(), behavior, cs, sep.size());
Executed by:
  • tst_Collections
  • tst_QBrush
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QKeySequence
  • tst_QPainter
  • tst_QPixmap
  • tst_QProcess
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • ...
splitString<QStringList>(*this, sep.constData(), behavior, cs, sep.size());
executed 1002 times by 29 tests: return splitString<QStringList>(*this, sep.constData(), behavior, cs, sep.size());
Executed by:
  • tst_Collections
  • tst_QBrush
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QKeySequence
  • tst_QPainter
  • tst_QPixmap
  • tst_QProcess
  • tst_QSettings
  • tst_QSortFilterProxyModel
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • ...
1002
2945}-
2946QVector<QStringRef> QString::splitRef(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const-
2947{-
2948 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
2949}-
2950-
2951-
2952-
2953QStringList QString::split(QChar sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const-
2954{-
2955 return
executed 74194 times by 258 tests: return splitString<QStringList>(*this, &sep, behavior, cs, 1);
Executed by:
  • 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_QCommandLinkButton
  • tst_QCompleter
  • ...
splitString<QStringList>(*this, &sep, behavior, cs, 1);
executed 74194 times by 258 tests: return splitString<QStringList>(*this, &sep, behavior, cs, 1);
Executed by:
  • 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_QCommandLinkButton
  • tst_QCompleter
  • ...
74194
2956}-
2957-
2958-
2959-
2960-
2961-
2962QVector<QStringRef> QString::splitRef(QChar sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const-
2963{-
2964 return
executed 973 times by 11 tests: return splitString<QVector<QStringRef> >(QStringRef(this), &sep, behavior, cs, 1);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QNetworkRequest
  • tst_QResourceEngine
  • tst_QString
  • tst_QTemporaryFile
  • tst_QUrl
  • tst_qmakelib
  • tst_rcc
splitString<QVector<QStringRef> >(QStringRef(this), &sep, behavior, cs, 1);
executed 973 times by 11 tests: return splitString<QVector<QStringRef> >(QStringRef(this), &sep, behavior, cs, 1);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QNetworkRequest
  • tst_QResourceEngine
  • tst_QString
  • tst_QTemporaryFile
  • tst_QUrl
  • tst_qmakelib
  • tst_rcc
973
2965}-
2966QVector<QStringRef> QStringRef::split(const QString &sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const-
2967{-
2968 return
executed 30 times by 1 test: return splitString<QVector<QStringRef> >(*this, sep.constData(), behavior, cs, sep.size());
Executed by:
  • tst_QStringRef
splitString<QVector<QStringRef> >(*this, sep.constData(), behavior, cs, sep.size());
executed 30 times by 1 test: return splitString<QVector<QStringRef> >(*this, sep.constData(), behavior, cs, sep.size());
Executed by:
  • tst_QStringRef
30
2969}-
2970-
2971-
2972-
2973-
2974-
2975QVector<QStringRef> QStringRef::split(QChar sep, QString::SplitBehavior behavior, Qt::CaseSensitivity cs) const-
2976{-
2977 return
executed 103 times by 5 tests: return splitString<QVector<QStringRef> >(*this, &sep, behavior, cs, 1);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStringRef
splitString<QVector<QStringRef> >(*this, &sep, behavior, cs, 1);
executed 103 times by 5 tests: return splitString<QVector<QStringRef> >(*this, &sep, behavior, cs, 1);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStringRef
103
2978}-
2979-
2980-
2981namespace {-
2982template<class ResultList, typename MidMethod>-
2983static ResultList splitString(const QString &source, MidMethod mid, const QRegExp &rx, QString::SplitBehavior behavior)-
2984{-
2985 QRegExp rx2(rx);-
2986 ResultList list;-
2987 int start = 0;-
2988 int extra = 0;-
2989 int end;-
2990 while ((
(end = rx2.ind... extra)) != -1Description
TRUEevaluated 14356 times by 7 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_QTextDocument
  • tst_languageChange
FALSEevaluated 603 times by 10 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
end = rx2.indexIn(source, start + extra)) != -1
(end = rx2.ind... extra)) != -1Description
TRUEevaluated 14356 times by 7 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_QTextDocument
  • tst_languageChange
FALSEevaluated 603 times by 10 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
) {
603-14356
2991 int matchedLen = rx2.matchedLength();-
2992 if (start != end
start != endDescription
TRUEevaluated 13911 times by 7 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_QTextDocument
  • tst_languageChange
FALSEevaluated 445 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QString
  • tst_languageChange
|| behavior == QString::KeepEmptyParts
behavior == QS...KeepEmptyPartsDescription
TRUEevaluated 423 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-13911
2993 list.append((source.*mid)(start, end - start));
executed 14334 times by 7 tests: list.append((source.*mid)(start, end - start));
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_QTextDocument
  • tst_languageChange
14334
2994 start = end + matchedLen;-
2995 extra = (
(matchedLen == 0)Description
TRUEevaluated 62 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 14294 times by 7 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_QTextDocument
  • tst_languageChange
matchedLen == 0)
(matchedLen == 0)Description
TRUEevaluated 62 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 14294 times by 7 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_QTextDocument
  • tst_languageChange
? 1 : 0;
62-14294
2996 }
executed 14356 times by 7 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QProcess
  • tst_QString
  • tst_QTextDocument
  • tst_languageChange
14356
2997 if (start != source.size()
start != source.size()Description
TRUEevaluated 212 times by 7 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
FALSEevaluated 391 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 378 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-391
2998 list.append((source.*mid)(start, -1));
executed 590 times by 9 tests: list.append((source.*mid)(start, -1));
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
590
2999 return
executed 603 times by 10 tests: return list;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
list;
executed 603 times by 10 tests: return list;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
603
3000}-
3001}-
3002QStringList QString::split(const QRegExp &rx, SplitBehavior behavior) const-
3003{-
3004 return
executed 576 times by 10 tests: return splitString<QStringList>(*this, &QString::mid, rx, behavior);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
splitString<QStringList>(*this, &QString::mid, rx, behavior);
executed 576 times by 10 tests: return splitString<QStringList>(*this, &QString::mid, rx, behavior);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_languageChange
576
3005}-
3006QVector<QStringRef> QString::splitRef(const QRegExp &rx, SplitBehavior behavior) const-
3007{-
3008 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
3009}-
3010-
3011-
3012-
3013-
3014namespace {-
3015template<class ResultList, typename MidMethod>-
3016static ResultList splitString(const QString &source, MidMethod mid, const QRegularExpression &re,-
3017 QString::SplitBehavior behavior)-
3018{-
3019 ResultList list;-
3020 if (!re.isValid()
!re.isValid()Description
TRUEnever evaluated
FALSEevaluated 54 times by 1 test
Evaluated by:
  • tst_QString
) {
0-54
3021 QMessageLogger(__FILE__, 6996, __PRETTY_FUNCTION__).warning("QString::split: invalid QRegularExpression object");-
3022 return
never executed: return list;
list;
never executed: return list;
0
3023 }-
3024-
3025 int start = 0;-
3026 int end = 0;-
3027 QRegularExpressionMatchIterator iterator = re.globalMatch(source);-
3028 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
3029 QRegularExpressionMatch match = iterator.next();-
3030 end = match.capturedStart();-
3031 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
3032 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
3033 start = match.capturedEnd();-
3034 }
executed 210 times by 1 test: end of block
Executed by:
  • tst_QString
210
3035-
3036 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
3037 list.append((source.*mid)(start, -1));
executed 42 times by 1 test: list.append((source.*mid)(start, -1));
Executed by:
  • tst_QString
42
3038-
3039 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
3040}-
3041}-
3042QStringList QString::split(const QRegularExpression &re, SplitBehavior behavior) const-
3043{-
3044 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
3045}-
3046QVector<QStringRef> QString::splitRef(const QRegularExpression &re, SplitBehavior behavior) const-
3047{-
3048 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
3049}-
3050QString QString::repeated(int times) const-
3051{-
3052 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
3053 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
3054-
3055 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
3056 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
3057 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
3058 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
3059 }-
3060-
3061 const int resultSize = times * d->size;-
3062-
3063 QString result;-
3064 result.reserve(resultSize);-
3065 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
3066 return
never executed: return QString();
QString();
never executed: return QString();
0
3067-
3068 memcpy(result.d->data(), d->data(), d->size * sizeof(ushort));-
3069-
3070 int sizeSoFar = d->size;-
3071 ushort *end = result.d->data() + sizeSoFar;-
3072-
3073 const int halfResultSize = resultSize >> 1;-
3074 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
3075 memcpy(end, result.d->data(), sizeSoFar * sizeof(ushort));-
3076 end += sizeSoFar;-
3077 sizeSoFar <<= 1;-
3078 }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_QImageReader
  • tst_QString
16
3079 memcpy(end, result.d->data(), (resultSize - sizeSoFar) * sizeof(ushort));-
3080 result.d->data()[resultSize] = '\0';-
3081 result.d->size = resultSize;-
3082 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
3083}-
3084-
3085void qt_string_normalize(QString *data, QString::NormalizationForm mode, QChar::UnicodeVersion version, int from)-
3086{-
3087 bool simple = true;-
3088 const QChar *p = data->constData();-
3089 int len = data->length();-
3090 for (int i = from; i < len
i < lenDescription
TRUEevaluated 614491 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 11147 times by 3 tests
Evaluated by:
  • tst_QChar
  • tst_QUrl
  • tst_QUrlInternal
; ++i) {
11147-614491
3091 if (p[i].unicode() >= 0x80
p[i].unicode() >= 0x80Description
TRUEevaluated 566529 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 47962 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
) {
47962-566529
3092 simple = false;-
3093 if (i > from
i > fromDescription
TRUEevaluated 32720 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 533809 times by 8 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QLabel
  • tst_QNetworkCookie
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QUrl
  • tst_QUrlInternal
)
32720-533809
3094 from = i - 1;
executed 32720 times by 6 tests: from = i - 1;
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
32720
3095 break;
executed 566529 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
566529
3096 }-
3097 }
executed 47962 times by 6 tests: end of block
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
47962
3098 if (simple
simpleDescription
TRUEevaluated 11147 times by 3 tests
Evaluated by:
  • tst_QChar
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 566529 times by 9 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QLabel
  • tst_QNetworkCookie
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QUrl
  • tst_QUrlInternal
)
11147-566529
3099 return;
executed 11147 times by 3 tests: return;
Executed by:
  • tst_QChar
  • tst_QUrl
  • tst_QUrlInternal
11147
3100-
3101 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 825 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
) {
825-565704
3102 version = QChar::currentUnicodeVersion();-
3103 }
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 825 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
FALSEnever evaluated
) {
0-565704
3104 const QString &s = *data;-
3105 QChar *d = 0;-
3106 for (int i = 0; i < NumNormalizationCorrections
i < NumNormali...ionCorrectionsDescription
TRUEevaluated 4950 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 825 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
; ++i) {
825-4950
3107 const NormalizationCorrection &n = uc_normalization_corrections[i];-
3108 if (n.version > version
n.version > versionDescription
TRUEevaluated 4127 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 823 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
) {
823-4127
3109 int pos = from;-
3110 if (QChar::requiresSurrogates(n.ucs4)
QChar::require...ogates(n.ucs4)Description
TRUEevaluated 4125 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-4125
3111 ushort ucs4High = QChar::highSurrogate(n.ucs4);-
3112 ushort ucs4Low = QChar::lowSurrogate(n.ucs4);-
3113 ushort oldHigh = QChar::highSurrogate(n.old_mapping);-
3114 ushort oldLow = QChar::lowSurrogate(n.old_mapping);-
3115 while (pos < s.length() - 1
pos < s.length() - 1Description
TRUEevaluated 9480 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 4125 times by 6 tests
Evaluated by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
) {
4125-9480
3116 if (s.at(pos).unicode() == ucs4High
s.at(pos).unic...() == ucs4HighDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QChar
FALSEevaluated 9478 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-9478
3117 if (!d
!dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QChar
FALSEnever evaluated
)
0-2
3118 d = data->data();
executed 2 times by 1 test: d = data->data();
Executed by:
  • tst_QChar
2
3119 d[pos] = QChar(oldHigh);-
3120 d[++pos] = QChar(oldLow);-
3121 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QChar
2
3122 ++pos;-
3123 }
executed 9480 times by 6 tests: end of block
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
9480
3124 }
executed 4125 times by 6 tests: end of block
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
else {
4125
3125 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
3126 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
3127 if (!d
!dDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QChar
FALSEnever evaluated
)
0-1
3128 d = data->data();
executed 1 time by 1 test: d = data->data();
Executed by:
  • tst_QChar
1
3129 d[pos] = QChar(n.old_mapping);-
3130 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QChar
1
3131 ++pos;-
3132 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QChar
3
3133 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QChar
2
3134 }-
3135 }
executed 4950 times by 6 tests: end of block
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
4950
3136 }
executed 825 times by 6 tests: end of block
Executed by:
  • tst_QChar
  • tst_QDnsLookup
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QUrl
  • tst_QUrlInternal
825
3137-
3138 if (normalizationQuickCheckHelper(data, mode, from, &from)
normalizationQ..., from, &from)Description
TRUEevaluated 400478 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-400478
3139 return;
executed 400478 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
400478
3140-
3141 decomposeHelper(data, mode < QString::NormalizationForm_KD, version, from);-
3142-
3143 canonicalOrderHelper(data, version, from);-
3144-
3145 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
3146 return;
executed 91668 times by 1 test: return;
Executed by:
  • tst_QChar
91668
3147-
3148 composeHelper(data, version, from);-
3149}
executed 74383 times by 3 tests: end of block
Executed by:
  • tst_QChar
  • tst_QUrl
  • tst_QUrlInternal
74383
3150-
3151-
3152-
3153-
3154-
3155QString QString::normalized(QString::NormalizationForm mode, QChar::UnicodeVersion version) const-
3156{-
3157 QString copy = *this;-
3158 qt_string_normalize(&copy, mode, version, 0);-
3159 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
3160}-
3161-
3162-
3163struct ArgEscapeData-
3164{-
3165 int min_escape;-
3166 int occurrences;-
3167 int locale_occurrences;-
3168-
3169 int escape_len;-
3170};-
3171-
3172static ArgEscapeData findArgEscapes(const QString &s)-
3173{-
3174 const QChar *uc_begin = s.unicode();-
3175 const QChar *uc_end = uc_begin + s.length();-
3176-
3177 ArgEscapeData d;-
3178-
3179 d.min_escape = 2147483647;-
3180 d.occurrences = 0;-
3181 d.escape_len = 0;-
3182 d.locale_occurrences = 0;-
3183-
3184 const QChar *c = uc_begin;-
3185 while (c != uc_end
c != uc_endDescription
TRUEevaluated 22493547 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEevaluated 10622012 times by 192 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
) {
10622012-22493547
3186 while (c != uc_end
c != uc_endDescription
TRUEevaluated 75218581 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEevaluated 309507 times by 398 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 53034541 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEevaluated 22184040 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
)
309507-75218581
3187 ++
executed 53034541 times by 438 tests: ++c;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
c;
executed 53034541 times by 438 tests: ++c;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
53034541
3188-
3189 if (c == uc_end
c == uc_endDescription
TRUEevaluated 309507 times by 398 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 22184040 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
)
309507-22184040
3190 break;
executed 309507 times by 398 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
  • ...
309507
3191 const QChar *escape_start = c;-
3192 if (++
++c == uc_endDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QPrinter
  • tst_QString
FALSEevaluated 22184026 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
c == uc_end
++c == uc_endDescription
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QPrinter
  • tst_QString
FALSEevaluated 22184026 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
)
14-22184026
3193 break;
executed 14 times by 2 tests: break;
Executed by:
  • tst_QPrinter
  • tst_QString
14
3194-
3195 bool locale_arg = false;-
3196 if (c->unicode() == 'L'
c->unicode() == 'L'Description
TRUEevaluated 276 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
FALSEevaluated 22183750 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
) {
276-22183750
3197 locale_arg = true;-
3198 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
3199 break;
executed 16 times by 1 test: break;
Executed by:
  • tst_QString
16
3200 }
executed 260 times by 2 tests: end of block
Executed by:
  • tst_QListView
  • tst_QString
260
3201-
3202 int escape = c->digitValue();-
3203 if (escape == -1
escape == -1Description
TRUEevaluated 195 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 22183815 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
)
195-22183815
3204 continue;
executed 195 times by 1 test: continue;
Executed by:
  • tst_QString
195
3205-
3206 ++c;-
3207-
3208 if (c != uc_end
c != uc_endDescription
TRUEevaluated 11561805 times by 420 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEevaluated 10622010 times by 192 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
) {
10622010-11561805
3209 int next_escape = c->digitValue();-
3210 if (next_escape != -1
next_escape != -1Description
TRUEevaluated 94 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 11561711 times by 420 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
) {
94-11561711
3211 escape = (10 * escape) + next_escape;-
3212 ++c;-
3213 }
executed 94 times by 1 test: end of block
Executed by:
  • tst_QString
94
3214 }
executed 11561805 times by 420 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
11561805
3215-
3216 if (escape > d.min_escape
escape > d.min_escapeDescription
TRUEevaluated 11251161 times by 367 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • 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
  • ...
FALSEevaluated 10932654 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
)
10932654-11251161
3217 continue;
executed 11251161 times by 367 tests: continue;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • 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
  • ...
11251161
3218-
3219 if (escape < d.min_escape
escape < d.min_escapeDescription
TRUEevaluated 10932506 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEevaluated 148 times by 12 tests
Evaluated by:
  • tst_QImage
  • tst_QRawFont
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qdbusxml2cpp
) {
148-10932506
3220 d.min_escape = escape;-
3221 d.occurrences = 0;-
3222 d.escape_len = 0;-
3223 d.locale_occurrences = 0;-
3224 }
executed 10932506 times by 440 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
10932506
3225-
3226 ++d.occurrences;-
3227 if (locale_arg
locale_argDescription
TRUEevaluated 225 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
FALSEevaluated 10932429 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
)
225-10932429
3228 ++
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
3229 d.escape_len += c - escape_start;-
3230 }
executed 10932654 times by 440 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
10932654
3231 return
executed 10931549 times by 440 tests: return d;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
d;
executed 10931549 times by 440 tests: return d;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
10931549
3232}-
3233-
3234static QString replaceArgEscapes(const QString &s, const ArgEscapeData &d, int field_width,-
3235 const QString &arg, const QString &larg, QChar fillChar = QLatin1Char(' '))-
3236{-
3237 const QChar *uc_begin = s.unicode();-
3238 const QChar *uc_end = uc_begin + s.length();-
3239-
3240 int abs_field_width = qAbs(field_width);-
3241 int result_len = s.length()-
3242 - d.escape_len-
3243 + (d.occurrences - d.locale_occurrences)-
3244 *qMax(abs_field_width, arg.length())-
3245 + d.locale_occurrences-
3246 *qMax(abs_field_width, larg.length());-
3247-
3248 QString result(result_len, Qt::Uninitialized);-
3249 QChar *result_buff = (QChar*) result.unicode();-
3250-
3251 QChar *rc = result_buff;-
3252 const QChar *c = uc_begin;-
3253 int repl_cnt = 0;-
3254 while (c != uc_end
c != uc_endDescription
TRUEevaluated 10934379 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEevaluated 10931543 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
) {
10931543-10934379
3255-
3256-
3257-
3258-
3259 const QChar *text_start = c;-
3260-
3261 while (c->unicode() != '%'
c->unicode() != '%'Description
TRUEevaluated 37290485 times by 436 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEevaluated 10934379 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
)
10934379-37290485
3262 ++
executed 37290485 times by 436 tests: ++c;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
c;
executed 37290485 times by 436 tests: ++c;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
37290485
3263-
3264 const QChar *escape_start = c++;-
3265-
3266 bool locale_arg = false;-
3267 if (c->unicode() == 'L'
c->unicode() == 'L'Description
TRUEevaluated 225 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
FALSEevaluated 10934154 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
) {
225-10934154
3268 locale_arg = true;-
3269 ++c;-
3270 }
executed 225 times by 2 tests: end of block
Executed by:
  • tst_QListView
  • tst_QString
225
3271-
3272 int escape = c->digitValue();-
3273 if (escape != -1
escape != -1Description
TRUEevaluated 10934316 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEevaluated 63 times by 1 test
Evaluated by:
  • tst_QString
) {
63-10934316
3274 if (c + 1 != uc_end
c + 1 != uc_endDescription
TRUEevaluated 7281355 times by 420 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEevaluated 3652961 times by 192 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
&& (
(c + 1)->digitValue() != -1Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 7281347 times by 420 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
c + 1)->digitValue() != -1
(c + 1)->digitValue() != -1Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 7281347 times by 420 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
) {
8-7281355
3275 escape = (10 * escape) + (c + 1)->digitValue();-
3276 ++c;-
3277 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QString
8
3278 }
executed 10934316 times by 440 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
10934316
3279-
3280 if (escape != d.min_escape
escape != d.min_escapeDescription
TRUEevaluated 2690 times by 3 tests
Evaluated by:
  • tst_QRawFont
  • tst_QStandardItemModel
  • tst_QString
FALSEevaluated 10931689 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
) {
2690-10931689
3281 memcpy(rc, text_start, (c - text_start)*sizeof(QChar));-
3282 rc += c - text_start;-
3283 }
executed 2690 times by 3 tests: end of block
Executed by:
  • tst_QRawFont
  • tst_QStandardItemModel
  • tst_QString
2690
3284 else {-
3285 ++c;-
3286-
3287 memcpy(rc, text_start, (escape_start - text_start)*sizeof(QChar));-
3288 rc += escape_start - text_start;-
3289-
3290 uint pad_chars;-
3291 if (locale_arg
locale_argDescription
TRUEevaluated 224 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
FALSEevaluated 10931465 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
)
224-10931465
3292 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
3293 else-
3294 pad_chars = qMax(abs_field_width, arg.length()) - arg.length();
executed 10931465 times by 440 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_QAbstractItemModel
  • 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
  • ...
10931465
3295-
3296 if (field_width > 0
field_width > 0Description
TRUEevaluated 1102 times by 8 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemSelectionModel
  • tst_QSqlQuery
  • tst_QStaticText
  • tst_QString
  • tst_QTimeZone
  • tst_QUrlInternal
FALSEevaluated 10930587 times by 439 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
) {
1102-10930587
3297 for (uint i = 0; i < pad_chars
i < pad_charsDescription
TRUEevaluated 4915 times by 3 tests
Evaluated by:
  • tst_QItemSelectionModel
  • tst_QStaticText
  • tst_QString
FALSEevaluated 1102 times by 8 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemSelectionModel
  • tst_QSqlQuery
  • tst_QStaticText
  • tst_QString
  • tst_QTimeZone
  • tst_QUrlInternal
; ++i)
1102-4915
3298 (
executed 4915 times by 3 tests: (rc++)->unicode() = fillChar.unicode();
Executed by:
  • tst_QItemSelectionModel
  • tst_QStaticText
  • tst_QString
rc++)->unicode() = fillChar.unicode();
executed 4915 times by 3 tests: (rc++)->unicode() = fillChar.unicode();
Executed by:
  • tst_QItemSelectionModel
  • tst_QStaticText
  • tst_QString
4915
3299 }
executed 1102 times by 8 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemSelectionModel
  • tst_QSqlQuery
  • tst_QStaticText
  • tst_QString
  • tst_QTimeZone
  • tst_QUrlInternal
1102
3300-
3301 if (locale_arg
locale_argDescription
TRUEevaluated 224 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
FALSEevaluated 10931465 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
) {
224-10931465
3302 memcpy(rc, larg.unicode(), larg.length()*sizeof(QChar));-
3303 rc += larg.length();-
3304 }
executed 224 times by 2 tests: end of block
Executed by:
  • tst_QListView
  • tst_QString
224
3305 else {-
3306 memcpy(rc, arg.unicode(), arg.length()*sizeof(QChar));-
3307 rc += arg.length();-
3308 }
executed 10931465 times by 440 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
10931465
3309-
3310 if (field_width < 0
field_width < 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 10931684 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
) {
5-10931684
3311 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
3312 (
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
3313 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_QString
5
3314-
3315 if (++
++repl_cnt == d.occurrencesDescription
TRUEevaluated 10931543 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEevaluated 146 times by 12 tests
Evaluated by:
  • tst_QImage
  • 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 10931543 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEevaluated 146 times by 12 tests
Evaluated by:
  • tst_QImage
  • tst_QRawFont
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_qdbusxml2cpp
) {
146-10931543
3316 memcpy(rc, c, (uc_end - c)*sizeof(QChar));-
3317 rc += uc_end - c;-
3318 ((!(rc - result_buff == result_len)) ? qt_assert("rc - result_buff == result_len",__FILE__,7367) : qt_noop());-
3319 c = uc_end;-
3320 }
executed 10931543 times by 440 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
10931543
3321 }
executed 10931689 times by 440 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
10931689
3322 }-
3323 ((!(rc == result_buff + result_len)) ? qt_assert("rc == result_buff + result_len",__FILE__,7372) : qt_noop());-
3324-
3325 return
executed 10931543 times by 440 tests: return result;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
result;
executed 10931543 times by 440 tests: return result;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
10931543
3326}-
3327QString QString::arg(const QString &a, int fieldWidth, QChar fillChar) const-
3328{-
3329 ArgEscapeData d = findArgEscapes(*this);-
3330-
3331 if (d.occurrences == 0
d.occurrences == 0Description
TRUEnever evaluated
FALSEevaluated 138442 times by 408 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-138442
3332 QMessageLogger(__FILE__, 7411, __PRETTY_FUNCTION__).warning("QString::arg: Argument missing: %s, %s", toLocal8Bit().data(),-
3333 a.toLocal8Bit().data());-
3334 return
never executed: return *this;
*this;
never executed: return *this;
0
3335 }-
3336 return
executed 138442 times by 408 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 138442 times by 408 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
  • ...
138442
3337}-
3338QString QString::arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const-
3339{-
3340 ArgEscapeData d = findArgEscapes(*this);-
3341-
3342 if (d.occurrences == 0
d.occurrences == 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 10690556 times by 385 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • 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_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
) {
6-10690556
3343 QMessageLogger(__FILE__, 7615, __PRETTY_FUNCTION__).warning() << "QString::arg: Argument missing:" << *this << ',' << a;-
3344 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
3345 }-
3346-
3347 unsigned flags = QLocaleData::NoFlags;-
3348 if (fillChar == QLatin1Char('0')
fillChar == QLatin1Char('0')Description
TRUEevaluated 41 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QSqlQuery
  • tst_QString
  • tst_QTimeZone
FALSEevaluated 10690515 times by 384 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • 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_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
)
41-10690515
3349 flags = QLocaleData::ZeroPadded;
executed 41 times by 5 tests: flags = QLocaleData::ZeroPadded;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QSqlQuery
  • tst_QString
  • tst_QTimeZone
41
3350-
3351 QString arg;-
3352 if (d.occurrences > d.locale_occurrences
d.occurrences ...le_occurrencesDescription
TRUEevaluated 10690345 times by 385 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • 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_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
FALSEevaluated 211 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
)
211-10690345
3353 arg = QLocaleData::c()->longLongToString(a, -1, base, fieldWidth, flags);
executed 10690345 times by 385 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_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
  • ...
10690345
3354-
3355 QString locale_arg;-
3356 if (d.locale_occurrences > 0
d.locale_occurrences > 0Description
TRUEevaluated 211 times by 2 tests
Evaluated by:
  • tst_QListView
  • tst_QString
FALSEevaluated 10690345 times by 385 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • 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_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
) {
211-10690345
3357 QLocale locale;-
3358 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
3359 flags |= QLocaleData::ThousandsGroup;
executed 209 times by 2 tests: flags |= QLocaleData::ThousandsGroup;
Executed by:
  • tst_QListView
  • tst_QString
209
3360 locale_arg = locale.d->m_data->longLongToString(a, -1, base, fieldWidth, flags);-
3361 }
executed 211 times by 2 tests: end of block
Executed by:
  • tst_QListView
  • tst_QString
211
3362-
3363 return
executed 10690556 times by 385 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_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
  • ...
replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
executed 10690556 times by 385 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_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
  • ...
10690556
3364}-
3365QString QString::arg(qulonglong a, int fieldWidth, int base, QChar fillChar) const-
3366{-
3367 ArgEscapeData d = findArgEscapes(*this);-
3368-
3369 if (d.occurrences == 0
d.occurrences == 0Description
TRUEnever evaluated
FALSEevaluated 6442 times by 14 tests
Evaluated by:
  • tst_QDateTime
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • tst_QItemSelectionModel
  • tst_QMenu
  • tst_QMetaType
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_QUrlInternal
  • tst_QXmlStream
  • tst_qstandardpaths
) {
0-6442
3370 QMessageLogger(__FILE__, 7659, __PRETTY_FUNCTION__).warning() << "QString::arg: Argument missing:" << *this << ',' << a;-
3371 return
never executed: return *this;
*this;
never executed: return *this;
0
3372 }-
3373-
3374 unsigned flags = QLocaleData::NoFlags;-
3375 if (fillChar == QLatin1Char('0')
fillChar == QLatin1Char('0')Description
TRUEevaluated 442 times by 1 test
Evaluated by:
  • tst_QUrlInternal
FALSEevaluated 6000 times by 13 tests
Evaluated by:
  • tst_QDateTime
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • tst_QItemSelectionModel
  • tst_QMenu
  • tst_QMetaType
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_QXmlStream
  • tst_qstandardpaths
)
442-6000
3376 flags = QLocaleData::ZeroPadded;
executed 442 times by 1 test: flags = QLocaleData::ZeroPadded;
Executed by:
  • tst_QUrlInternal
442
3377-
3378 QString arg;-
3379 if (d.occurrences > d.locale_occurrences
d.occurrences ...le_occurrencesDescription
TRUEevaluated 6442 times by 14 tests
Evaluated by:
  • tst_QDateTime
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • tst_QItemSelectionModel
  • tst_QMenu
  • tst_QMetaType
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_QUrlInternal
  • tst_QXmlStream
  • tst_qstandardpaths
FALSEnever evaluated
)
0-6442
3380 arg = QLocaleData::c()->unsLongLongToString(a, -1, base, fieldWidth, flags);
executed 6442 times by 14 tests: arg = QLocaleData::c()->unsLongLongToString(a, -1, base, fieldWidth, flags);
Executed by:
  • tst_QDateTime
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • tst_QItemSelectionModel
  • tst_QMenu
  • tst_QMetaType
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_QUrlInternal
  • tst_QXmlStream
  • tst_qstandardpaths
6442
3381-
3382 QString locale_arg;-
3383 if (d.locale_occurrences > 0
d.locale_occurrences > 0Description
TRUEnever evaluated
FALSEevaluated 6442 times by 14 tests
Evaluated by:
  • tst_QDateTime
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • tst_QItemSelectionModel
  • tst_QMenu
  • tst_QMetaType
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_QUrlInternal
  • tst_QXmlStream
  • tst_qstandardpaths
) {
0-6442
3384 QLocale locale;-
3385 if (!(locale.numberOptions() & QLocale::OmitGroupSeparator)
!(locale.numbe...roupSeparator)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
3386 flags |= QLocaleData::ThousandsGroup;
never executed: flags |= QLocaleData::ThousandsGroup;
0
3387 locale_arg = locale.d->m_data->unsLongLongToString(a, -1, base, fieldWidth, flags);-
3388 }
never executed: end of block
0
3389-
3390 return
executed 6442 times by 14 tests: return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
Executed by:
  • tst_QDateTime
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • tst_QItemSelectionModel
  • tst_QMenu
  • tst_QMetaType
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_QUrlInternal
  • tst_QXmlStream
  • tst_qstandardpaths
replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
executed 6442 times by 14 tests: return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
Executed by:
  • tst_QDateTime
  • tst_QFtp
  • tst_QGraphicsAnchorLayout1
  • tst_QItemSelectionModel
  • tst_QMenu
  • tst_QMetaType
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPluginLoader
  • tst_QSqlThread
  • tst_QString
  • tst_QUrlInternal
  • tst_QXmlStream
  • tst_qstandardpaths
6442
3391}-
3392QString QString::arg(QChar a, int fieldWidth, QChar fillChar) const-
3393{-
3394 QString c;-
3395 c += a;-
3396 return
executed 419 times by 14 tests: return arg(c, fieldWidth, fillChar);
Executed by:
  • tst_QDateTime
  • tst_QFileSystemModel
  • tst_QListWidget
  • tst_QRegExp
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QTreeWidget
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
arg(c, fieldWidth, fillChar);
executed 419 times by 14 tests: return arg(c, fieldWidth, fillChar);
Executed by:
  • tst_QDateTime
  • tst_QFileSystemModel
  • tst_QListWidget
  • tst_QRegExp
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QTreeWidget
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
419
3397}-
3398-
3399-
3400-
3401-
3402-
3403-
3404QString QString::arg(char a, int fieldWidth, QChar fillChar) const-
3405{-
3406 QString c;-
3407 c += QLatin1Char(a);-
3408 return
executed 4 times by 2 tests: return arg(c, fieldWidth, fillChar);
Executed by:
  • tst_QShortcut
  • tst_QString
arg(c, fieldWidth, fillChar);
executed 4 times by 2 tests: return arg(c, fieldWidth, fillChar);
Executed by:
  • tst_QShortcut
  • tst_QString
4
3409}-
3410QString QString::arg(double a, int fieldWidth, char fmt, int prec, QChar fillChar) const-
3411{-
3412 ArgEscapeData d = findArgEscapes(*this);-
3413-
3414 if (d.occurrences == 0
d.occurrences == 0Description
TRUEnever evaluated
FALSEevaluated 96103 times by 10 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
) {
0-96103
3415 QMessageLogger(__FILE__, 7771, __PRETTY_FUNCTION__).warning("QString::arg: Argument missing: %s, %g", toLocal8Bit().data(), a);-
3416 return
never executed: return *this;
*this;
never executed: return *this;
0
3417 }-
3418-
3419 unsigned flags = QLocaleData::NoFlags;-
3420 if (fillChar == QLatin1Char('0')
fillChar == QLatin1Char('0')Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 96098 times by 10 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
)
5-96098
3421 flags = QLocaleData::ZeroPadded;
executed 5 times by 1 test: flags = QLocaleData::ZeroPadded;
Executed by:
  • tst_QString
5
3422-
3423 if (qIsUpper(fmt)
qIsUpper(fmt)Description
TRUEnever evaluated
FALSEevaluated 96103 times by 10 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
)
0-96103
3424 flags |= QLocaleData::CapitalEorX;
never executed: flags |= QLocaleData::CapitalEorX;
0
3425 fmt = qToLower(fmt);-
3426-
3427 QLocaleData::DoubleForm form = QLocaleData::DFDecimal;-
3428 switch (fmt) {-
3429 case
never executed: case 'f':
'f':
never executed: case 'f':
0
3430 form = QLocaleData::DFDecimal;-
3431 break;
never executed: break;
0
3432 case
never executed: case 'e':
'e':
never executed: case 'e':
0
3433 form = QLocaleData::DFExponent;-
3434 break;
never executed: break;
0
3435 case
executed 96103 times by 10 tests: case 'g':
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
'g':
executed 96103 times by 10 tests: case 'g':
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
96103
3436 form = QLocaleData::DFSignificantDigits;-
3437 break;
executed 96103 times by 10 tests: break;
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
96103
3438 default
never executed: default:
:
never executed: default:
0
3439-
3440-
3441-
3442 break;
never executed: break;
0
3443 }-
3444-
3445 QString arg;-
3446 if (d.occurrences > d.locale_occurrences
d.occurrences ...le_occurrencesDescription
TRUEevaluated 96094 times by 10 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QString
)
9-96094
3447 arg = QLocaleData::c()->doubleToString(a, prec, form, fieldWidth, flags);
executed 96094 times by 10 tests: arg = QLocaleData::c()->doubleToString(a, prec, form, fieldWidth, flags);
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
96094
3448-
3449 QString locale_arg;-
3450 if (d.locale_occurrences > 0
d.locale_occurrences > 0Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 96094 times by 10 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
) {
9-96094
3451 QLocale locale;-
3452-
3453 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
3454 flags |= QLocaleData::ThousandsGroup;
executed 7 times by 1 test: flags |= QLocaleData::ThousandsGroup;
Executed by:
  • tst_QString
7
3455 locale_arg = locale.d->m_data->doubleToString(a, prec, form, fieldWidth, flags);-
3456 }
executed 9 times by 1 test: end of block
Executed by:
  • tst_QString
9
3457-
3458 return
executed 96103 times by 10 tests: return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
executed 96103 times by 10 tests: return replaceArgEscapes(*this, d, fieldWidth, arg, locale_arg, fillChar);
Executed by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
96103
3459}-
3460-
3461static int getEscape(const QChar *uc, int *pos, int len, int maxNumber = 999)-
3462{-
3463 int i = *pos;-
3464 ++i;-
3465 if (i < len
i < lenDescription
TRUEevaluated 675339 times by 332 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 675339 times by 332 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-675339
3466 ++
never executed: ++i;
i;
never executed: ++i;
0
3467 if (i < len
i < lenDescription
TRUEevaluated 675339 times by 332 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-675339
3468 int escape = uc[i].unicode() - '0';-
3469 if (uint(escape) >= 10U
uint(escape) >= 10UDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 675335 times by 332 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-675335
3470 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
3471 ++i;-
3472 while (i < len
i < lenDescription
TRUEevaluated 670450 times by 332 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 4907 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QChar
  • tst_QDBusMarshall
  • tst_QDnsLookup
  • tst_QFileSystemWatcher
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • 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
  • ...
) {
4907-670450
3473 int digit = uc[i].unicode() - '0';-
3474 if (uint(digit) >= 10U
uint(digit) >= 10UDescription
TRUEevaluated 670428 times by 332 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-670428
3475 break;
executed 670428 times by 332 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
  • ...
670428
3476 escape = (escape * 10) + digit;-
3477 ++i;-
3478 }
executed 22 times by 1 test: end of block
Executed by:
  • tst_QString
22
3479 if (escape <= maxNumber
escape <= maxNumberDescription
TRUEevaluated 675333 times by 332 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-675333
3480 *pos = i;-
3481 return
executed 675333 times by 332 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 675333 times by 332 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
  • ...
675333
3482 }-
3483 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QString
2
3484 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
3485}-
3486namespace {-
3487struct Part-
3488{-
3489 Part() : stringRef(), number(0) {}
never executed: end of block
0
3490 Part(const QString &s, int pos, int len, int num = -1) noexcept-
3491 : stringRef(&s, pos, len), number(num) {}
executed 1511589 times by 332 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
  • ...
1511589
3492-
3493 QStringRef stringRef;-
3494 int number;-
3495};-
3496}-
3497-
3498template <>-
3499class QTypeInfo<Part> : public QTypeInfoMerger<Part, QStringRef, int> {};-
3500-
3501-
3502namespace {-
3503-
3504enum { ExpectedParts = 32 };-
3505-
3506typedef QVarLengthArray<Part, ExpectedParts> ParseResult;-
3507typedef QVarLengthArray<int, ExpectedParts/2> ArgIndexToPlaceholderMap;-
3508-
3509static ParseResult parseMultiArgFormatString(const QString &s)-
3510{-
3511 ParseResult result;-
3512-
3513 const QChar *uc = s.constData();-
3514 const int len = s.size();-
3515 const int end = len - 1;-
3516 int i = 0;-
3517 int last = 0;-
3518-
3519 while (i < end
i < endDescription
TRUEevaluated 6557102 times by 332 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 176270 times by 332 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
  • ...
) {
176270-6557102
3520 if (uc[i] == QLatin1Char('%')
uc[i] == QLatin1Char('%')Description
TRUEevaluated 675339 times by 332 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 5881763 times by 332 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
  • ...
) {
675339-5881763
3521 int percent = i;-
3522 int number = getEscape(uc, &i, len);-
3523 if (number != -1
number != -1Description
TRUEevaluated 675333 times by 332 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-675333
3524 if (last != percent
last != percentDescription
TRUEevaluated 664892 times by 332 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 10441 times by 314 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
  • ...
)
10441-664892
3525 result.push_back(Part(s, last, percent - last));
executed 664892 times by 332 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
  • ...
664892
3526 result.push_back(Part(s, percent, i - percent, number));-
3527 last = i;-
3528 continue;
executed 675333 times by 332 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
  • ...
675333
3529 }-
3530 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QString
6
3531 ++i;-
3532 }
executed 5881769 times by 332 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
  • ...
5881769
3533-
3534 if (last < len
last < lenDescription
TRUEevaluated 171364 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 4906 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QChar
  • tst_QDBusMarshall
  • tst_QDnsLookup
  • tst_QFileSystemWatcher
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • 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
  • ...
)
4906-171364
3535 result.push_back(Part(s, last, len - last));
executed 171364 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
  • ...
171364
3536-
3537 return
executed 176270 times by 332 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 176270 times by 332 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
  • ...
176270
3538}-
3539-
3540static ArgIndexToPlaceholderMap makeArgIndexToPlaceholderMap(const ParseResult &parts)-
3541{-
3542 ArgIndexToPlaceholderMap result;-
3543-
3544 for (ParseResult::const_iterator it = parts.begin(), end = parts.end(); it != end
it != endDescription
TRUEevaluated 1511589 times by 332 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 176270 times by 332 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) {
176270-1511589
3545 if (it->number >= 0
it->number >= 0Description
TRUEevaluated 675333 times by 332 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 836256 times by 332 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
  • ...
)
675333-836256
3546 result.push_back(it->number);
executed 675333 times by 332 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
  • ...
675333
3547 }
executed 1511589 times by 332 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
  • ...
1511589
3548-
3549 std::sort(result.begin(), result.end());-
3550 result.erase(std::unique(result.begin(), result.end()),-
3551 result.end());-
3552-
3553 return
executed 176270 times by 332 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 176270 times by 332 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
  • ...
176270
3554}-
3555-
3556static int resolveStringRefsAndReturnTotalSize(ParseResult &parts, const ArgIndexToPlaceholderMap &argIndexToPlaceholderMap, const QString *args[])-
3557{-
3558 int totalSize = 0;-
3559 for (ParseResult::iterator pit = parts.begin(), end = parts.end(); pit != end
pit != endDescription
TRUEevaluated 1511589 times by 332 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 176270 times by 332 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) {
176270-1511589
3560 if (pit->number != -1
pit->number != -1Description
TRUEevaluated 675333 times by 332 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 836256 times by 332 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
  • ...
) {
675333-836256
3561 const ArgIndexToPlaceholderMap::const_iterator ait-
3562 = std::find(argIndexToPlaceholderMap.begin(), argIndexToPlaceholderMap.end(), pit->number);-
3563 if (ait != argIndexToPlaceholderMap.end()
ait != argInde...olderMap.end()Description
TRUEevaluated 675304 times by 332 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-675304
3564 pit->stringRef = QStringRef(args[ait - argIndexToPlaceholderMap.begin()]);
executed 675304 times by 332 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
  • ...
675304
3565 }
executed 675333 times by 332 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
  • ...
675333
3566 totalSize += pit->stringRef.size();-
3567 }
executed 1511589 times by 332 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
  • ...
1511589
3568 return
executed 176270 times by 332 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 176270 times by 332 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
  • ...
176270
3569}-
3570-
3571}-
3572-
3573QString QString::multiArg(int numArgs, const QString **args) const-
3574{-
3575-
3576 ParseResult parts = parseMultiArgFormatString(*this);-
3577-
3578-
3579 ArgIndexToPlaceholderMap argIndexToPlaceholderMap = makeArgIndexToPlaceholderMap(parts);-
3580-
3581 if (argIndexToPlaceholderMap.size() > numArgs
argIndexToPlac...ze() > numArgsDescription
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QKeySequence
  • tst_QString
FALSEevaluated 176243 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
  • ...
)
27-176243
3582 argIndexToPlaceholderMap.resize(numArgs);
executed 27 times by 2 tests: argIndexToPlaceholderMap.resize(numArgs);
Executed by:
  • tst_QKeySequence
  • tst_QString
27
3583 else if (argIndexToPlaceholderMap.size() < numArgs
argIndexToPlac...ze() < numArgsDescription
TRUEnever evaluated
FALSEevaluated 176243 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-176243
3584 QMessageLogger(__FILE__, 7975, __PRETTY_FUNCTION__).warning("QString::arg: %d argument(s) missing in %s",
never executed: QMessageLogger(__FILE__, 7975, __PRETTY_FUNCTION__).warning("QString::arg: %d argument(s) missing in %s", numArgs - argIndexToPlaceholderMap.size(), toLocal8Bit().data());
0
3585 numArgs - argIndexToPlaceholderMap.size(), toLocal8Bit().data());
never executed: QMessageLogger(__FILE__, 7975, __PRETTY_FUNCTION__).warning("QString::arg: %d argument(s) missing in %s", numArgs - argIndexToPlaceholderMap.size(), toLocal8Bit().data());
0
3586-
3587-
3588 const int totalSize = resolveStringRefsAndReturnTotalSize(parts, argIndexToPlaceholderMap, args);-
3589-
3590-
3591 QString result(totalSize, Qt::Uninitialized);-
3592 QChar *out = result.data();-
3593-
3594 for (ParseResult::const_iterator it = parts.begin(), end = parts.end(); it != end
it != endDescription
TRUEevaluated 1511589 times by 332 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 176270 times by 332 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) {
176270-1511589
3595 if (const
const int sz =...ringRef.size()Description
TRUEevaluated 1508615 times by 332 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 2974 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 1508615 times by 332 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 2974 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
) {
2974-1508615
3596 memcpy(out, it->stringRef.constData(), sz * sizeof(QChar));-
3597 out += sz;-
3598 }
executed 1508615 times by 332 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
  • ...
1508615
3599 }
executed 1511589 times by 332 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
  • ...
1511589
3600-
3601 return
executed 176270 times by 332 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 176270 times by 332 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
  • ...
176270
3602}-
3603bool QString::isSimpleText() const-
3604{-
3605 const ushort *p = d->data();-
3606 const ushort * const end = p + d->size;-
3607 while (p < end
p < endDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
3608 ushort uc = *p;-
3609-
3610 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
3611 return
never executed: return false;
false;
never executed: return false;
0
3612 }-
3613 p++;-
3614 }
never executed: end of block
0
3615-
3616 return
never executed: return true;
true;
never executed: return true;
0
3617}-
3618-
3619-
3620-
3621-
3622-
3623bool QString::isRightToLeft() const-
3624{-
3625 const ushort *p = d->data();-
3626 const ushort * const end = p + d->size;-
3627 while (p < end
p < endDescription
TRUEevaluated 762475 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 99380 times by 50 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
  • ...
) {
99380-762475
3628 uint ucs4 = *p;-
3629 if (QChar::isHighSurrogate(ucs4)
QChar::isHighSurrogate(ucs4)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextLayout
FALSEevaluated 762465 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-762465
3630 ushort low = p[1];-
3631 if (QChar::isLowSurrogate(low)
QChar::isLowSurrogate(low)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextLayout
FALSEnever evaluated
) {
0-10
3632 ucs4 = QChar::surrogateToUcs4(ucs4, low);-
3633 ++p;-
3634 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextLayout
10
3635 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextLayout
10
3636 switch (QChar::direction(ucs4))-
3637 {-
3638 case
executed 66885 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 66885 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
  • ...
66885
3639 return
executed 66885 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 66885 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
  • ...
66885
3640 case
executed 428 times by 5 tests: case QChar::DirR:
Executed by:
  • tst_QFontDatabase
  • tst_QLineEdit
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextEdit
QChar::DirR:
executed 428 times by 5 tests: case QChar::DirR:
Executed by:
  • tst_QFontDatabase
  • tst_QLineEdit
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextEdit
428
3641 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
3642 return
executed 449 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 449 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
449
3643 default
executed 695141 times by 59 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 695141 times by 59 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
  • ...
695141
3644 break;
executed 695141 times by 59 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
  • ...
695141
3645 }-
3646 ++p;-
3647 }
executed 695141 times by 59 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
  • ...
695141
3648 return
executed 99380 times by 50 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 99380 times by 50 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
  • ...
99380
3649}-
3650QString QString::fromRawData(const QChar *unicode, int size)-
3651{-
3652 Data *x;-
3653 if (!unicode
!unicodeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTokenAutomaton
FALSEevaluated 79154 times by 91 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_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
) {
2-79154
3654 x = Data::sharedNull();-
3655 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QTokenAutomaton
else if (!size
!sizeDescription
TRUEevaluated 18 times by 4 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QUrl
  • tst_QUrlInternal
  • tst_qmakelib
FALSEevaluated 79136 times by 91 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_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
) {
2-79136
3656 x = Data::allocate(0);-
3657 }
executed 18 times by 4 tests: end of block
Executed by:
  • tst_QNetworkCookieJar
  • tst_QUrl
  • tst_QUrlInternal
  • tst_qmakelib
else {
18
3658 x = Data::fromRawData(reinterpret_cast<const ushort *>(unicode), size);-
3659 do { if (!(x)
!(x)Description
TRUEnever evaluated
FALSEevaluated 79136 times by 91 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_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-79136
3660 }
executed 79136 times by 91 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_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
79136
3661 QStringDataPtr dataPtr = { x };-
3662 return
executed 79156 times by 91 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_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
QString(dataPtr);
executed 79156 times by 91 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_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDatabase
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
79156
3663}-
3664QString &QString::setRawData(const QChar *unicode, int size)-
3665{-
3666 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 761 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEevaluated 608 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 607 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
) {
1-761
3667 *this = fromRawData(unicode, size);-
3668 }
executed 762 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qmakelib
else {
762
3669 if (unicode
unicodeDescription
TRUEevaluated 607 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_qmakelib
FALSEnever evaluated
) {
0-607
3670 d->size = size;-
3671 d->offset = reinterpret_cast<const char *>(unicode) - reinterpret_cast<char *>(d);-
3672 }
executed 607 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_qmakelib
else {
607
3673 d->offset = sizeof(QStringData);-
3674 d->size = 0;-
3675 }
never executed: end of block
0
3676 }-
3677 return
executed 1369 times by 2 tests: return *this;
Executed by:
  • tst_QString
  • tst_qmakelib
*this;
executed 1369 times by 2 tests: return *this;
Executed by:
  • tst_QString
  • tst_qmakelib
1369
3678}-
3679QDataStream &operator<<(QDataStream &out, const QString &str)-
3680{-
3681 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
3682 out << str.toLatin1();-
3683 }
never executed: end of block
else {
0
3684 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
3685 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
3686 out.writeBytes(reinterpret_cast<const char *>(str.unicode()), sizeof(QChar) * str.length());-
3687 }
never executed: end of block
else {
0
3688 QVarLengthArray<ushort> buffer(str.length());-
3689 const ushort *data = reinterpret_cast<const ushort *>(str.constData());-
3690 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
3691 buffer[i] = qbswap(*data);-
3692 ++data;-
3693 }
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
3694 out.writeBytes(reinterpret_cast<const char *>(buffer.data()), sizeof(ushort) * buffer.size());-
3695 }
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
3696 } else {-
3697-
3698 out << (quint32)0xffffffff;-
3699 }
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
3700 }-
3701 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
3702}-
3703QDataStream &operator>>(QDataStream &in, QString &str)-
3704{-
3705 if (in.version() == 1
in.version() == 1Description
TRUEnever evaluated
FALSEevaluated 15640 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-15640
3706 QByteArray l;-
3707 in >> l;-
3708 str = QString::fromLatin1(l);-
3709 }
never executed: end of block
else {
0
3710 quint32 bytes = 0;-
3711 in >> bytes;-
3712 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 15286 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-15286
3713 str.clear();-
3714 }
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 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
  • ...
FALSEevaluated 253 times by 5 tests
Evaluated by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
) {
253-15033
3715 if (bytes & 0x1
bytes & 0x1Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QDataStream
FALSEevaluated 15027 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
  • ...
) {
6-15027
3716 str.clear();-
3717 in.setStatus(QDataStream::ReadCorruptData);-
3718 return
executed 6 times by 1 test: return in;
Executed by:
  • tst_QDataStream
in;
executed 6 times by 1 test: return in;
Executed by:
  • tst_QDataStream
6
3719 }-
3720-
3721 const quint32 Step = 1024 * 1024;-
3722 quint32 len = bytes / 2;-
3723 quint32 allocated = 0;-
3724-
3725 while (allocated < len
allocated < lenDescription
TRUEevaluated 15039 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 15013 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
  • ...
) {
15013-15039
3726 int blockSize = qMin(Step, len - allocated);-
3727 str.resize(allocated + blockSize);-
3728 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 15025 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-15025
3729 blockSize * 2) != blockSize * 2
in.readRawData... blockSize * 2Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QDataStream
FALSEevaluated 15025 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-15025
3730 str.clear();-
3731 in.setStatus(QDataStream::ReadPastEnd);-
3732 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
3733 }-
3734 allocated += blockSize;-
3735 }
executed 15025 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
  • ...
15025
3736-
3737 if ((
(in.byteOrder(...fo::BigEndian)Description
TRUEevaluated 15013 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 15013 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-15013
3738 != (QSysInfo::ByteOrder == QSysInfo::BigEndian)
(in.byteOrder(...fo::BigEndian)Description
TRUEevaluated 15013 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-15013
3739 ushort *data = reinterpret_cast<ushort *>(str.data());-
3740 while (len--
len--Description
TRUEevaluated 12630552 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 15013 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
  • ...
) {
15013-12630552
3741 *data = qbswap(*data);-
3742 ++data;-
3743 }
executed 12630552 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
  • ...
12630552
3744 }
executed 15013 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
  • ...
15013
3745 }
executed 15013 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 {
15013
3746 str = QString(QLatin1String(""));-
3747 }
executed 253 times by 5 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
253
3748 }-
3749 return
executed 15620 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 15620 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
  • ...
15620
3750}-
3751QString QStringRef::toString() const {-
3752 if (!m_string
!m_stringDescription
TRUEevaluated 17923 times by 16 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_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 239563 times by 52 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • 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_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • ...
)
17923-239563
3753 return
executed 17923 times by 16 tests: return QString();
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
QString();
executed 17923 times by 16 tests: return QString();
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
17923
3754 if (m_size
m_sizeDescription
TRUEevaluated 239482 times by 52 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • 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_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • ...
FALSEevaluated 81 times by 4 tests
Evaluated by:
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QStringRef
  • tst_QXmlStream
&& m_position == 0
m_position == 0Description
TRUEevaluated 58080 times by 33 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QString
  • tst_QStringRef
  • tst_QStyle
  • ...
FALSEevaluated 181402 times by 26 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_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSettings
  • tst_QString
  • tst_QStringBuilder1
  • tst_QStringBuilder2
  • tst_QStringBuilder3
  • tst_QStringBuilder4
  • tst_QStringRef
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
  • ...
&& m_size == m_string->size()
m_size == m_string->size()Description
TRUEevaluated 31905 times by 30 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QString
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • ...
FALSEevaluated 26175 times by 10 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QSettings
  • tst_QString
  • tst_QStringRef
  • tst_languageChange
  • tst_qmakelib
)
81-239482
3755 return
executed 31905 times by 30 tests: return *m_string;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QString
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • ...
*m_string;
executed 31905 times by 30 tests: return *m_string;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QLoggingRegistry
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QString
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QSystemTrayIcon
  • ...
31905
3756 return
executed 207658 times by 30 tests: return QString(m_string->unicode() + m_position, m_size);
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_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSettings
  • tst_QString
  • tst_QStringBuilder1
  • tst_QStringBuilder2
  • tst_QStringBuilder3
  • tst_QStringBuilder4
  • tst_QStringRef
  • ...
QString(m_string->unicode() + m_position, m_size);
executed 207658 times by 30 tests: return QString(m_string->unicode() + m_position, m_size);
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_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSettings
  • tst_QString
  • tst_QStringBuilder1
  • tst_QStringBuilder2
  • tst_QStringBuilder3
  • tst_QStringBuilder4
  • tst_QStringRef
  • ...
207658
3757}-
3758-
3759-
3760-
3761-
3762-
3763-
3764-
3765bool operator==(const QStringRef &s1,const QStringRef &s2)-
3766{ return
executed 2052076 times by 24 tests: return (s1.size() == s2.size() && qMemEquals((const ushort *)s1.unicode(), (const ushort *)s2.unicode(), s1.size()));
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_QDir
  • tst_QFileSystemWatcher
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QTemporaryFile
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
  • tst_qmakelib
  • tst_rcc
(s1.size() == s2.size()
s1.size() == s2.size()Description
TRUEevaluated 637293 times by 23 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_QDir
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QTemporaryFile
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 1414783 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_QDir
  • tst_QFileSystemWatcher
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSslSocket
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
  • tst_qmakelib
&&
executed 2052076 times by 24 tests: return (s1.size() == s2.size() && qMemEquals((const ushort *)s1.unicode(), (const ushort *)s2.unicode(), s1.size()));
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_QDir
  • tst_QFileSystemWatcher
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QTemporaryFile
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
  • tst_qmakelib
  • tst_rcc
637293-2052076
3767 qMemEquals((const ushort *)s1.unicode(), (const ushort *)s2.unicode(), s1.size())
qMemEquals((co...(), s1.size())Description
TRUEevaluated 524160 times by 23 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_QDir
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QTemporaryFile
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 113133 times by 18 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_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSslSocket
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
  • tst_qmakelib
);
executed 2052076 times by 24 tests: return (s1.size() == s2.size() && qMemEquals((const ushort *)s1.unicode(), (const ushort *)s2.unicode(), s1.size()));
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_QDir
  • tst_QFileSystemWatcher
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QTemporaryFile
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
  • tst_qmakelib
  • tst_rcc
113133-2052076
3768}-
3769-
3770-
3771-
3772-
3773-
3774-
3775bool operator==(const QString &s1,const QStringRef &s2)-
3776{ return
executed 288268 times by 118 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()
s1.size() == s2.size()Description
TRUEevaluated 282696 times by 118 tests
Evaluated 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
  • ...
FALSEevaluated 5572 times by 21 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QPlainTextEdit
  • tst_QShortcut
  • tst_QString
  • tst_QTextEdit
  • tst_QTime
  • tst_QXmlStream
  • tst_languageChange
  • tst_qmakelib
&&
executed 288268 times by 118 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
  • ...
5572-288268
3777 qMemEquals((const ushort *)s1.unicode(), (const ushort *)s2.unicode(), s1.size())
qMemEquals((co...(), s1.size())Description
TRUEevaluated 282321 times by 118 tests
Evaluated 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
  • ...
FALSEevaluated 375 times by 12 tests
Evaluated by:
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QKeySequence
  • tst_QPlainTextEdit
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_qmakelib
);
executed 288268 times by 118 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
  • ...
375-288268
3778}-
3779-
3780-
3781-
3782-
3783-
3784-
3785bool operator==(QLatin1String s1, const QStringRef &s2)-
3786{-
3787 if (s1.size() != s2.size()
s1.size() != s2.size()Description
TRUEevaluated 698948 times by 21 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_QDate
  • tst_QDateTime
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
  • tst_qmakelib
FALSEevaluated 408352 times by 36 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_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
)
408352-698948
3788 return
executed 698948 times by 21 tests: return false;
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_QDate
  • tst_QDateTime
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
  • tst_qmakelib
false;
executed 698948 times by 21 tests: return false;
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_QDate
  • tst_QDateTime
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qdbusxml2cpp - unknown status
  • tst_qmakelib
698948
3789-
3790 const uchar *c = reinterpret_cast<const uchar *>(s1.latin1());-
3791 if (!c
!cDescription
TRUEnever evaluated
FALSEevaluated 408352 times by 36 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_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
)
0-408352
3792 return
never executed: return s2.isEmpty();
s2.isEmpty();
never executed: return s2.isEmpty();
0
3793 return
executed 408352 times by 36 tests: return ucstrncmp(s2.unicode(), c, s2.size()) == 0;
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_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
ucstrncmp(s2.unicode(), c, s2.size()) == 0;
executed 408352 times by 36 tests: return ucstrncmp(s2.unicode(), c, s2.size()) == 0;
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_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontMetrics
  • tst_QGraphicsProxyWidget
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
408352
3794}-
3795bool operator<(const QStringRef &s1,const QStringRef &s2)-
3796{-
3797 return
executed 2981 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 2981 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
2981
3798}-
3799QStringRef QStringRef::appendTo(QString *string) const-
3800{-
3801 if (!string
!stringDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QXmlStream
)
0-8
3802 return
never executed: return QStringRef();
QStringRef();
never executed: return QStringRef();
0
3803 int pos = string->size();-
3804 string->insert(pos, unicode(), size());-
3805 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
3806}-
3807QString &QString::append(const QStringRef &str)-
3808{-
3809 if (str.string() == this
str.string() == thisDescription
TRUEnever evaluated
FALSEevaluated 2947 times by 16 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QTemporaryFile
  • tst_qmakelib
  • tst_rcc
) {
0-2947
3810 str.appendTo(this);-
3811 }
never executed: end of block
else if (!str.isNull()
!str.isNull()Description
TRUEevaluated 2941 times by 16 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QTemporaryFile
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
) {
0-2941
3812 int oldSize = size();-
3813 resize(oldSize + str.size());-
3814 memcpy(data() + oldSize, str.unicode(), str.size() * sizeof(QChar));-
3815 }
executed 2941 times by 16 tests: end of block
Executed by:
  • tst_QCommandLineParser
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QTemporaryFile
  • tst_qmakelib
  • tst_rcc
2941
3816 return
executed 2947 times by 16 tests: return *this;
Executed by:
  • tst_QCommandLineParser
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QTemporaryFile
  • tst_qmakelib
  • tst_rcc
*this;
executed 2947 times by 16 tests: return *this;
Executed by:
  • tst_QCommandLineParser
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QLayout
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QTemporaryFile
  • tst_qmakelib
  • tst_rcc
2947
3817}-
3818QStringRef QStringRef::left(int n) const-
3819{-
3820 if (uint(n) >= uint(m_size)
uint(n) >= uint(m_size)Description
TRUEevaluated 42 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QString
  • tst_QStringRef
FALSEevaluated 104 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
)
42-104
3821 return
executed 42 times by 3 tests: return *this;
Executed by:
  • tst_QDateTime
  • tst_QString
  • tst_QStringRef
*this;
executed 42 times by 3 tests: return *this;
Executed by:
  • tst_QDateTime
  • tst_QString
  • tst_QStringRef
42
3822 return
executed 104 times by 4 tests: return QStringRef(m_string, m_position, n);
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
QStringRef(m_string, m_position, n);
executed 104 times by 4 tests: return QStringRef(m_string, m_position, n);
Executed by:
  • tst_QDateTime
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
104
3823}-
3824QStringRef QString::leftRef(int n) const-
3825{-
3826 if (uint(n) >= uint(d->size)
uint(n) >= uint(d->size)Description
TRUEevaluated 49221 times by 7 tests
Evaluated by:
  • tst_QPluginLoader
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 24211 times by 14 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMetaObject
  • tst_QPluginLoader
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
  • tst_selftests - unknown status
)
24211-49221
3827 n = d->size;
executed 49221 times by 7 tests: n = d->size;
Executed by:
  • tst_QPluginLoader
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
49221
3828 return
executed 73432 times by 14 tests: return QStringRef(this, 0, n);
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMetaObject
  • tst_QPluginLoader
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
  • tst_selftests - unknown status
QStringRef(this, 0, n);
executed 73432 times by 14 tests: return QStringRef(this, 0, n);
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMetaObject
  • tst_QPluginLoader
  • tst_QSslSocket
  • tst_QString
  • tst_QStringRef
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUrl
  • tst_QXmlStream
  • tst_qmakelib
  • tst_selftests - unknown status
73432
3829}-
3830QStringRef QStringRef::right(int n) const-
3831{-
3832 if (uint(n) >= uint(m_size)
uint(n) >= uint(m_size)Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 59 times by 5 tests
Evaluated by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QVariant
)
9-59
3833 return
executed 9 times by 1 test: return *this;
Executed by:
  • tst_QStringRef
*this;
executed 9 times by 1 test: return *this;
Executed by:
  • tst_QStringRef
9
3834 return
executed 59 times by 5 tests: return QStringRef(m_string, m_size - n + m_position, n);
Executed by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QVariant
QStringRef(m_string, m_size - n + m_position, n);
executed 59 times by 5 tests: return QStringRef(m_string, m_size - n + m_position, n);
Executed by:
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QVariant
59
3835}-
3836QStringRef QString::rightRef(int n) const-
3837{-
3838 if (uint(n) >= uint(d->size)
uint(n) >= uint(d->size)Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QString
FALSEevaluated 462 times by 16 tests
Evaluated by:
  • tst_QApplication
  • tst_QColor
  • tst_QColorDialog
  • tst_QGuiVariant
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_languageChange
)
5-462
3839 n = d->size;
executed 5 times by 2 tests: n = d->size;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QString
5
3840 return
executed 467 times by 16 tests: return QStringRef(this, d->size - n, n);
Executed by:
  • tst_QApplication
  • tst_QColor
  • tst_QColorDialog
  • tst_QGuiVariant
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_languageChange
QStringRef(this, d->size - n, n);
executed 467 times by 16 tests: return QStringRef(this, d->size - n, n);
Executed by:
  • tst_QApplication
  • tst_QColor
  • tst_QColorDialog
  • tst_QGuiVariant
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QString
  • tst_QStringMatcher
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_languageChange
467
3841}-
3842QStringRef QStringRef::mid(int pos, int n) const-
3843{-
3844 using namespace QtPrivate;-
3845 switch (QContainerImplHelper::mid(m_size, &pos, &n)) {-
3846 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
3847 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
3848 case
executed 2255 times by 4 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_QDateTime
  • tst_QLayout
  • tst_QString
  • tst_QStringRef
QContainerImplHelper::Empty:
executed 2255 times by 4 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_QDateTime
  • tst_QLayout
  • tst_QString
  • tst_QStringRef
2255
3849 return
executed 2255 times by 4 tests: return QStringRef(m_string, 0, 0);
Executed by:
  • tst_QDateTime
  • tst_QLayout
  • tst_QString
  • tst_QStringRef
QStringRef(m_string, 0, 0);
executed 2255 times by 4 tests: return QStringRef(m_string, 0, 0);
Executed by:
  • tst_QDateTime
  • tst_QLayout
  • tst_QString
  • tst_QStringRef
2255
3850 case
executed 301 times by 15 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_QCommandLineParser
  • tst_QDate
  • tst_QDateTime
  • tst_QFiledialog
  • tst_QNetworkRequest
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_qmakelib
QContainerImplHelper::Full:
executed 301 times by 15 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_QCommandLineParser
  • tst_QDate
  • tst_QDateTime
  • tst_QFiledialog
  • tst_QNetworkRequest
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_qmakelib
301
3851 return
executed 301 times by 15 tests: return *this;
Executed by:
  • tst_QCommandLineParser
  • tst_QDate
  • tst_QDateTime
  • tst_QFiledialog
  • tst_QNetworkRequest
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_qmakelib
*this;
executed 301 times by 15 tests: return *this;
Executed by:
  • tst_QCommandLineParser
  • tst_QDate
  • tst_QDateTime
  • tst_QFiledialog
  • tst_QNetworkRequest
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • tst_QSqlRelationalTableModel
  • tst_QSqlTableModel
  • tst_QSqlThread
  • tst_QString
  • tst_QStringRef
  • tst_qmakelib
301
3852 case
executed 15958 times by 19 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_QCommandLineParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QLayout
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QResourceEngine
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTemporaryFile
  • tst_QTime
  • tst_QUrl
  • tst_QVariant
  • tst_qmakelib
  • tst_rcc
QContainerImplHelper::Subset:
executed 15958 times by 19 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_QCommandLineParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QLayout
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QResourceEngine
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTemporaryFile
  • tst_QTime
  • tst_QUrl
  • tst_QVariant
  • tst_qmakelib
  • tst_rcc
15958
3853 return
executed 15958 times by 19 tests: return QStringRef(m_string, pos + m_position, n);
Executed by:
  • tst_QCommandLineParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QLayout
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QResourceEngine
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTemporaryFile
  • tst_QTime
  • tst_QUrl
  • tst_QVariant
  • tst_qmakelib
  • tst_rcc
QStringRef(m_string, pos + m_position, n);
executed 15958 times by 19 tests: return QStringRef(m_string, pos + m_position, n);
Executed by:
  • tst_QCommandLineParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QLayout
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QResourceEngine
  • tst_QSqlQuery
  • tst_QString
  • tst_QStringRef
  • tst_QTemporaryFile
  • tst_QTime
  • tst_QUrl
  • tst_QVariant
  • tst_qmakelib
  • tst_rcc
15958
3854 }-
3855 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,9525) : qt_noop()); __builtin_unreachable(); } while (0);-
3856 return
never executed: return QStringRef();
QStringRef();
never executed: return QStringRef();
0
3857}-
3858QStringRef QString::midRef(int position, int n) const-
3859{-
3860 using namespace QtPrivate;-
3861 switch (QContainerImplHelper::mid(d->size, &position, &n)) {-
3862 case
executed 273 times by 2 tests: case QContainerImplHelper::Null:
Executed by:
  • tst_QFontComboBox
  • tst_QString
QContainerImplHelper::Null:
executed 273 times by 2 tests: case QContainerImplHelper::Null:
Executed by:
  • tst_QFontComboBox
  • tst_QString
273
3863 return
executed 273 times by 2 tests: return QStringRef();
Executed by:
  • tst_QFontComboBox
  • tst_QString
QStringRef();
executed 273 times by 2 tests: return QStringRef();
Executed by:
  • tst_QFontComboBox
  • tst_QString
273
3864 case
executed 482 times by 5 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
QContainerImplHelper::Empty:
executed 482 times by 5 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
482
3865 return
executed 482 times by 5 tests: return QStringRef(this, 0, 0);
Executed by:
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
QStringRef(this, 0, 0);
executed 482 times by 5 tests: return QStringRef(this, 0, 0);
Executed by:
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QString
  • tst_QStringRef
482
3866 case
executed 33042 times by 36 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPluginLoader
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QSidebar
  • ...
QContainerImplHelper::Full:
executed 33042 times by 36 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPluginLoader
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QSidebar
  • ...
33042
3867 return
executed 33042 times by 36 tests: return QStringRef(this, 0, d->size);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPluginLoader
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QSidebar
  • ...
QStringRef(this, 0, d->size);
executed 33042 times by 36 tests: return QStringRef(this, 0, d->size);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPluginLoader
  • tst_QPrinter
  • tst_QRegularExpression_AlwaysOptimize
  • tst_QRegularExpression_DefaultOptimize
  • tst_QRegularExpression_ForceOptimize
  • tst_QSettings
  • tst_QSidebar
  • ...
33042
3868 case
executed 34011 times by 47 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAction
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QPluginLoader
  • ...
QContainerImplHelper::Subset:
executed 34011 times by 47 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAction
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QPluginLoader
  • ...
34011
3869 return
executed 34011 times by 47 tests: return QStringRef(this, position, n);
Executed by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAction
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QPluginLoader
  • ...
QStringRef(this, position, n);
executed 34011 times by 47 tests: return QStringRef(this, position, n);
Executed by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAction
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDir
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFont
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QPluginLoader
  • ...
34011
3870 }-
3871 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,9562) : qt_noop()); __builtin_unreachable(); } while (0);-
3872 return
never executed: return QStringRef();
QStringRef();
never executed: return QStringRef();
0
3873}-
3874int QStringRef::indexOf(const QString &str, int from, Qt::CaseSensitivity cs) const-
3875{-
3876 return
executed 197 times by 1 test: return qFindString(unicode(), length(), from, str.unicode(), str.length(), cs);
Executed by:
  • tst_QStringRef
qFindString(unicode(), length(), from, str.unicode(), str.length(), cs);
executed 197 times by 1 test: return qFindString(unicode(), length(), from, str.unicode(), str.length(), cs);
Executed by:
  • tst_QStringRef
197
3877}-
3878int QStringRef::indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const-
3879{-
3880 return
executed 51163 times by 12 tests: return findChar(unicode(), length(), ch, from, cs);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QStringRef
  • tst_QXmlStream
  • tst_languageChange
findChar(unicode(), length(), ch, from, cs);
executed 51163 times by 12 tests: return findChar(unicode(), length(), ch, from, cs);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QStringRef
  • tst_QXmlStream
  • tst_languageChange
51163
3881}-
3882int QStringRef::indexOf(QLatin1String str, int from, Qt::CaseSensitivity cs) const-
3883{-
3884 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
3885}-
3886int QStringRef::indexOf(const QStringRef &str, int from, Qt::CaseSensitivity cs) const-
3887{-
3888 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
3889}-
3890int QStringRef::lastIndexOf(const QString &str, int from, Qt::CaseSensitivity cs) const-
3891{-
3892 const int sl = str.size();-
3893 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
3894 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
3895-
3896 const int l = size();;-
3897 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
3898 from += l;
executed 43 times by 1 test: from += l;
Executed by:
  • tst_QStringRef
43
3899 int delta = l - sl;-
3900 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
3901 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
3902 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
3903 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
3904 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
3905 from = delta;
executed 29 times by 1 test: from = delta;
Executed by:
  • tst_QStringRef
29
3906-
3907 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
3908 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
3909}-
3910int QStringRef::lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const-
3911{-
3912 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
3913}-
3914int QStringRef::lastIndexOf(QLatin1String str, int from, Qt::CaseSensitivity cs) const-
3915{-
3916 const int sl = str.size();-
3917 if (sl == 1
sl == 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
3918 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
3919-
3920 const int l = size();-
3921 if (from < 0
from < 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
3922 from += l;
never executed: from += l;
0
3923 int delta = l - sl;-
3924 if (from == l
from == lDescription
TRUEnever evaluated
FALSEnever evaluated
&& sl == 0
sl == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
3925 return
never executed: return from;
from;
never executed: return from;
0
3926 if (uint(from) >= uint(l)
uint(from) >= uint(l)Description
TRUEnever evaluated
FALSEnever evaluated
|| delta < 0
delta < 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
3927 return
never executed: return -1;
-1;
never executed: return -1;
0
3928 if (from > delta
from > deltaDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
3929 from = delta;
never executed: from = delta;
0
3930-
3931 QVarLengthArray<ushort> s(sl);-
3932 qt_from_latin1(s.data(), str.latin1(), sl);-
3933-
3934 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
3935}-
3936int QStringRef::lastIndexOf(const QStringRef &str, int from, Qt::CaseSensitivity cs) const-
3937{-
3938 const int sl = str.size();-
3939 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
3940 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
3941-
3942 const int l = size();-
3943 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
3944 from += l;
executed 43 times by 1 test: from += l;
Executed by:
  • tst_QStringRef
43
3945 int delta = l - sl;-
3946 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
3947 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
3948 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
3949 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
3950 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
3951 from = delta;
executed 29 times by 1 test: from = delta;
Executed by:
  • tst_QStringRef
29
3952-
3953 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
3954 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
3955 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
3956}-
3957int QStringRef::count(const QString &str, Qt::CaseSensitivity cs) const-
3958{-
3959 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
3960}-
3961int QStringRef::count(QChar ch, Qt::CaseSensitivity cs) const-
3962{-
3963 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
3964}-
3965int QStringRef::count(const QStringRef &str, Qt::CaseSensitivity cs) const-
3966{-
3967 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
3968}-
3969bool QStringRef::startsWith(const QString &str, Qt::CaseSensitivity cs) const-
3970{-
3971 return
executed 25 times by 1 test: return qt_starts_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
Executed by:
  • tst_QStringRef
qt_starts_with(isNull() ? 0 : unicode(), size(),
executed 25 times by 1 test: return qt_starts_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
Executed by:
  • tst_QStringRef
25
3972 str.isNull() ? 0 : str.unicode(), str.size(), cs);
executed 25 times by 1 test: return qt_starts_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
Executed by:
  • tst_QStringRef
25
3973}-
3974-
3975-
3976-
3977-
3978-
3979-
3980bool QStringRef::startsWith(QLatin1String str, Qt::CaseSensitivity cs) const-
3981{-
3982 return
executed 38 times by 2 tests: return qt_starts_with(isNull() ? 0 : unicode(), size(), str, cs);
Executed by:
  • tst_QDateTime
  • tst_QStringRef
qt_starts_with(isNull() ? 0 : unicode(), size(), str, cs);
executed 38 times by 2 tests: return qt_starts_with(isNull() ? 0 : unicode(), size(), str, cs);
Executed by:
  • tst_QDateTime
  • tst_QStringRef
38
3983}-
3984-
3985-
3986-
3987-
3988-
3989-
3990bool QStringRef::startsWith(const QStringRef &str, Qt::CaseSensitivity cs) const-
3991{-
3992 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
3993 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
3994}-
3995bool QStringRef::startsWith(QChar ch, Qt::CaseSensitivity cs) const-
3996{-
3997 if (!isEmpty()
!isEmpty()Description
TRUEevaluated 24063 times by 4 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QStringRef
  • tst_qmakelib
FALSEevaluated 17 times by 2 tests
Evaluated by:
  • tst_QLoggingRegistry
  • tst_QStringRef
) {
17-24063
3998 const ushort *data = reinterpret_cast<const ushort*>(unicode());-
3999 return
executed 24063 times by 4 tests: return (cs == Qt::CaseSensitive ? data[0] == ch : foldCase(data[0]) == foldCase(ch.unicode()));
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QStringRef
  • tst_qmakelib
(cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 24056 times by 4 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QStringRef
  • tst_qmakelib
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QStringRef
executed 24063 times by 4 tests: return (cs == Qt::CaseSensitive ? data[0] == ch : foldCase(data[0]) == foldCase(ch.unicode()));
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QStringRef
  • tst_qmakelib
7-24063
4000 ? data[0] == ch
executed 24063 times by 4 tests: return (cs == Qt::CaseSensitive ? data[0] == ch : foldCase(data[0]) == foldCase(ch.unicode()));
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QStringRef
  • tst_qmakelib
24063
4001 : foldCase(data[0]) == foldCase(ch.unicode()));
executed 24063 times by 4 tests: return (cs == Qt::CaseSensitive ? data[0] == ch : foldCase(data[0]) == foldCase(ch.unicode()));
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QStringRef
  • tst_qmakelib
24063
4002 } else {-
4003 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
4004 }-
4005}-
4006bool QStringRef::endsWith(const QString &str, Qt::CaseSensitivity cs) const-
4007{-
4008 return
executed 25 times by 1 test: return qt_ends_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
Executed by:
  • tst_QStringRef
qt_ends_with(isNull() ? 0 : unicode(), size(),
executed 25 times by 1 test: return qt_ends_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
Executed by:
  • tst_QStringRef
25
4009 str.isNull() ? 0 : str.unicode(), str.size(), cs);
executed 25 times by 1 test: return qt_ends_with(isNull() ? 0 : unicode(), size(), str.isNull() ? 0 : str.unicode(), str.size(), cs);
Executed by:
  • tst_QStringRef
25
4010}-
4011bool QStringRef::endsWith(QChar ch, Qt::CaseSensitivity cs) const-
4012{-
4013 if (!isEmpty()
!isEmpty()Description
TRUEevaluated 24143 times by 7 tests
Evaluated by:
  • tst_QDateTime
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QStringRef
) {
6-24143
4014 const ushort *data = reinterpret_cast<const ushort*>(unicode());-
4015 const int size = length();-
4016 return
executed 24143 times by 7 tests: return (cs == Qt::CaseSensitive ? data[size - 1] == ch : foldCase(data[size - 1]) == foldCase(ch.unicode()));
Executed by:
  • tst_QDateTime
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QVariant
(cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 24136 times by 7 tests
Evaluated by:
  • tst_QDateTime
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QStringRef
executed 24143 times by 7 tests: return (cs == Qt::CaseSensitive ? data[size - 1] == ch : foldCase(data[size - 1]) == foldCase(ch.unicode()));
Executed by:
  • tst_QDateTime
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QVariant
7-24143
4017 ? data[size - 1] == ch
executed 24143 times by 7 tests: return (cs == Qt::CaseSensitive ? data[size - 1] == ch : foldCase(data[size - 1]) == foldCase(ch.unicode()));
Executed by:
  • tst_QDateTime
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QVariant
24143
4018 : foldCase(data[size - 1]) == foldCase(ch.unicode()));
executed 24143 times by 7 tests: return (cs == Qt::CaseSensitive ? data[size - 1] == ch : foldCase(data[size - 1]) == foldCase(ch.unicode()));
Executed by:
  • tst_QDateTime
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QNetworkReply
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QVariant
24143
4019 } else {-
4020 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
4021 }-
4022}-
4023-
4024-
4025-
4026-
4027-
4028-
4029bool QStringRef::endsWith(QLatin1String str, Qt::CaseSensitivity cs) const-
4030{-
4031 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
4032}-
4033-
4034-
4035-
4036-
4037-
4038-
4039bool QStringRef::endsWith(const QStringRef &str, Qt::CaseSensitivity cs) const-
4040{-
4041 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
4042 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
4043}-
4044static inline int qt_last_index_of(const QChar *haystack, int haystackLen, QChar needle,-
4045 int from, Qt::CaseSensitivity cs)-
4046{-
4047 ushort c = needle.unicode();-
4048 if (from < 0
from < 0Description
TRUEevaluated 252301 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 7292 times by 41 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
  • ...
)
7292-252301
4049 from += haystackLen;
executed 252301 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
  • ...
252301
4050 if (uint(from) >= uint(haystackLen)
uint(from) >= ...t(haystackLen)Description
TRUEevaluated 1126 times by 18 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSystemEntry
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QPluginLoader
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringRef
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QUrl
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEevaluated 258467 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
  • ...
)
1126-258467
4051 return
executed 1126 times by 18 tests: return -1;
Executed by:
  • tst_QFileDialog2
  • tst_QFileSystemEntry
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QPluginLoader
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringRef
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QUrl
  • tst_qmakelib
  • tst_selftests - unknown status
-1;
executed 1126 times by 18 tests: return -1;
Executed by:
  • tst_QFileDialog2
  • tst_QFileSystemEntry
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGlyphRun
  • tst_QLabel
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QPluginLoader
  • tst_QSslCertificate
  • tst_QString
  • tst_QStringRef
  • tst_QTextLayout
  • tst_QTextScriptEngine
  • tst_QUrl
  • tst_qmakelib
  • tst_selftests - unknown status
1126
4052 if (from >= 0
from >= 0Description
TRUEevaluated 258467 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-258467
4053 const ushort *b = reinterpret_cast<const ushort*>(haystack);-
4054 const ushort *n = b + from;-
4055 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 258435 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-258435
4056 for (; n >= b
n >= bDescription
TRUEevaluated 4078365 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 7251 times by 191 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)
7251-4078365
4057 if (*
*n == cDescription
TRUEevaluated 251184 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 3827181 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 251184 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 3827181 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
  • ...
)
251184-3827181
4058 return
executed 251184 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 251184 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
  • ...
251184
4059 }
executed 7251 times by 191 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 {
7251
4060 c = foldCase(c);-
4061 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
4062 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
4063 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
4064 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
8
4065 }-
4066 return
executed 7259 times by 191 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 7259 times by 191 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
  • ...
7259
4067-
4068-
4069}-
4070-
4071static inline int qt_string_count(const QChar *haystack, int haystackLen,-
4072 const QChar *needle, int needleLen,-
4073 Qt::CaseSensitivity cs)-
4074{-
4075 int num = 0;-
4076 int i = -1;-
4077 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
4078 QStringMatcher matcher(needle, needleLen, cs);-
4079 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
4080 ++
never executed: ++num;
num;
never executed: ++num;
0
4081 }
never executed: end of block
else {
0
4082 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
4083 ++
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
4084 }
executed 20 times by 5 tests: end of block
Executed by:
  • tst_Collections
  • tst_QProcess
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
20
4085 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
4086}-
4087-
4088static inline int qt_string_count(const QChar *unicode, int size, QChar ch,-
4089 Qt::CaseSensitivity cs)-
4090{-
4091 ushort c = ch.unicode();-
4092 int num = 0;-
4093 const ushort *b = reinterpret_cast<const ushort*>(unicode);-
4094 const ushort *i = b + size;-
4095 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 10953 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
  • tst_QXmlStream
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
) {
2-10953
4096 while (i != b
i != bDescription
TRUEevaluated 139343 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
  • tst_QXmlStream
FALSEevaluated 10953 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
  • tst_QXmlStream
)
10953-139343
4097 if (*--
*--i == cDescription
TRUEevaluated 7874 times by 10 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 131469 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
  • tst_QXmlStream
i == c
*--i == cDescription
TRUEevaluated 7874 times by 10 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 131469 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
  • tst_QXmlStream
)
7874-131469
4098 ++
executed 7874 times by 10 tests: ++num;
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
num;
executed 7874 times by 10 tests: ++num;
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
7874
4099 }
executed 10953 times by 12 tests: end of block
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
  • tst_QXmlStream
else {
10953
4100 c = foldCase(c);-
4101 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
4102 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
4103 ++
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
4104 }
executed 2 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QStringRef
2
4105 return
executed 10955 times by 12 tests: return num;
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
  • tst_QXmlStream
num;
executed 10955 times by 12 tests: return num;
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileSystemModel
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTableView
  • tst_QTreeView
  • tst_QXmlStream
10955
4106}-
4107-
4108static inline int qt_find_latin1_string(const QChar *haystack, int size,-
4109 QLatin1String needle,-
4110 int from, Qt::CaseSensitivity cs)-
4111{-
4112 if (size < needle.size()
size < needle.size()Description
TRUEevaluated 6912 times by 125 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 7943 times by 182 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
  • ...
)
6912-7943
4113 return
executed 6912 times by 125 tests: return -1;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
-1;
executed 6912 times by 125 tests: return -1;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
6912
4114-
4115 const char *latin1 = needle.latin1();-
4116 int len = needle.size();-
4117 QVarLengthArray<ushort> s(len);-
4118 qt_from_latin1(s.data(), latin1, len);-
4119-
4120 return
executed 7943 times by 182 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 7943 times by 182 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
  • ...
7943
4121 reinterpret_cast<const QChar*>(s.constData()), len, cs);
executed 7943 times by 182 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
  • ...
7943
4122}-
4123-
4124static inline bool qt_starts_with(const QChar *haystack, int haystackLen,-
4125 const QChar *needle, int needleLen, Qt::CaseSensitivity cs)-
4126{-
4127 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 260604 times by 123 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-260604
4128 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
4129 if (haystackLen == 0
haystackLen == 0Description
TRUEevaluated 23 times by 5 tests
Evaluated by:
  • tst_QCompleter
  • tst_QNetworkCookieJar
  • tst_QString
  • tst_QStringRef
  • tst_rcc
FALSEevaluated 260581 times by 123 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-260581
4130 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
4131 if (needleLen > haystackLen
needleLen > haystackLenDescription
TRUEevaluated 53492 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 207089 times by 123 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
  • ...
)
53492-207089
4132 return
executed 53492 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 53492 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
  • ...
53492
4133-
4134 const ushort *h = reinterpret_cast<const ushort*>(haystack);-
4135 const ushort *n = reinterpret_cast<const ushort*>(needle);-
4136-
4137 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 204961 times by 116 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 2128 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
) {
2128-204961
4138 return
executed 204961 times by 116 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 204961 times by 116 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
  • ...
204961
4139 } else {-
4140 uint last = 0;-
4141 uint olast = 0;-
4142 for (int i = 0; i < needleLen
i < needleLenDescription
TRUEevaluated 5450 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 609 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)
609-5450
4143 if (foldCase(h[i], last) != foldCase(n[i], olast)
foldCase(h[i],...e(n[i], olast)Description
TRUEevaluated 1519 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 3931 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
)
1519-3931
4144 return
executed 1519 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 1519 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
1519
4145 }
executed 609 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
609
4146 return
executed 609 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 609 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
609
4147}-
4148-
4149static inline bool qt_starts_with(const QChar *haystack, int haystackLen,-
4150 QLatin1String needle, Qt::CaseSensitivity cs)-
4151{-
4152 if (!haystack
!haystackDescription
TRUEevaluated 7027 times by 55 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 264332 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
  • ...
)
7027-264332
4153 return
executed 7027 times by 55 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 7027 times by 55 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
  • ...
7027
4154 if (haystackLen == 0
haystackLen == 0Description
TRUEevaluated 1834 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 262498 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
  • ...
)
1834-262498
4155 return
executed 1834 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()Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 1832 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
|| *
*needle.latin1() == 0Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 1830 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
needle.latin1() == 0
*needle.latin1() == 0Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 1830 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
;
executed 1834 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
2-1834
4156 const int slen = needle.size();-
4157 if (slen > haystackLen
slen > haystackLenDescription
TRUEevaluated 162139 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 100359 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
  • ...
)
100359-162139
4158 return
executed 162139 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 162139 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
  • ...
162139
4159 const ushort *data = reinterpret_cast<const ushort*>(haystack);-
4160 const uchar *latin = reinterpret_cast<const uchar*>(needle.latin1());-
4161 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 96768 times by 232 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 3591 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
) {
3591-96768
4162 return
executed 96768 times by 232 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 96768 times by 232 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
  • ...
96768
4163 } else {-
4164 for (int i = 0; i < slen
i < slenDescription
TRUEevaluated 3694 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 31 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
; ++i)
31-3694
4165 if (foldCase(data[i]) != foldCase((ushort)latin[i])
foldCase(data[...hort)latin[i])Description
TRUEevaluated 3560 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 134 times by 4 tests
Evaluated by:
  • tst_QDateTime
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
)
134-3560
4166 return
executed 3560 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 3560 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
3560
4167 }
executed 31 times by 4 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
31
4168 return
executed 31 times by 4 tests: return true;
Executed by:
  • tst_QDateTime
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
true;
executed 31 times by 4 tests: return true;
Executed by:
  • tst_QDateTime
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
31
4169}-
4170-
4171static inline bool qt_ends_with(const QChar *haystack, int haystackLen,-
4172 const QChar *needle, int needleLen, Qt::CaseSensitivity cs)-
4173{-
4174 if (!haystack
!haystackDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 4652 times by 70 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_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLabel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • ...
)
6-4652
4175 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
4176 if (haystackLen == 0
haystackLen == 0Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 4646 times by 70 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_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLabel
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • ...
)
6-4646
4177 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
4178 const int pos = haystackLen - needleLen;-
4179 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 4434 times by 62 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_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • ...
)
212-4434
4180 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
4181-
4182 const ushort *h = reinterpret_cast<const ushort*>(haystack);-
4183 const ushort *n = reinterpret_cast<const ushort*>(needle);-
4184-
4185 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 4411 times by 60 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_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
FALSEevaluated 23 times by 4 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
) {
23-4411
4186 return
executed 4411 times by 60 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_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
qMemEquals(h + pos, n, needleLen);
executed 4411 times by 60 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_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QLibrary
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
4411
4187 } else {-
4188 uint last = 0;-
4189 uint olast = 0;-
4190 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
4191 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
4192 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
4193 }
executed 14 times by 4 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QString
  • tst_QStringRef
  • tst_QUrl
14
4194 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
4195}-
4196-
4197-
4198static inline bool qt_ends_with(const QChar *haystack, int haystackLen,-
4199 QLatin1String needle, Qt::CaseSensitivity cs)-
4200{-
4201 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 146061 times by 124 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-146061
4202 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
4203 if (haystackLen == 0
haystackLen == 0Description
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QStringRef
FALSEevaluated 146047 times by 124 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-146047
4204 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()Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 12 times by 3 tests
Evaluated by:
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QStringRef
|| *
*needle.latin1() == 0Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 10 times by 3 tests
Evaluated by:
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QStringRef
needle.latin1() == 0
*needle.latin1() == 0Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
FALSEevaluated 10 times by 3 tests
Evaluated by:
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QStringRef
;
executed 14 times by 3 tests: return !needle.latin1() || *needle.latin1() == 0;
Executed by:
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QStringRef
2-14
4205 const int slen = needle.size();-
4206 int pos = haystackLen - slen;-
4207 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 96299 times by 124 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-96299
4208 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
4209 const uchar *latin = reinterpret_cast<const uchar*>(needle.latin1());-
4210 const ushort *data = reinterpret_cast<const ushort*>(haystack);-
4211 if (cs == Qt::CaseSensitive
cs == Qt::CaseSensitiveDescription
TRUEevaluated 95775 times by 120 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 524 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
) {
524-95775
4212 return
executed 95775 times by 120 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 95775 times by 120 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
  • ...
95775
4213 } else {-
4214 for (int i = 0; i < slen
i < slenDescription
TRUEevaluated 1041 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 469 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++)
469-1041
4215 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 986 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-986
4216 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
4217 }
executed 469 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
469
4218 return
executed 469 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 469 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
469
4219}-
4220QByteArray QStringRef::toLatin1() const-
4221{-
4222 return
executed 256 times by 6 tests: return QString::toLatin1_helper(unicode(), length());
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QString
  • tst_QStringRef
  • tst_languageChange
QString::toLatin1_helper(unicode(), length());
executed 256 times by 6 tests: return QString::toLatin1_helper(unicode(), length());
Executed by:
  • tst_QColorDialog
  • tst_QGraphicsProxyWidget
  • tst_QSettings
  • tst_QString
  • tst_QStringRef
  • tst_languageChange
256
4223}-
4224QByteArray QStringRef::toLocal8Bit() const-
4225{-
4226-
4227 QTextCodec *localeCodec = QTextCodec::codecForLocale();-
4228 if (localeCodec
localeCodecDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEnever evaluated
)
0-5
4229 return
executed 5 times by 1 test: return localeCodec->fromUnicode(unicode(), length());
Executed by:
  • tst_QString
localeCodec->fromUnicode(unicode(), length());
executed 5 times by 1 test: return localeCodec->fromUnicode(unicode(), length());
Executed by:
  • tst_QString
5
4230-
4231 return
never executed: return toLatin1();
toLatin1();
never executed: return toLatin1();
0
4232}-
4233QByteArray QStringRef::toUtf8() const-
4234{-
4235 if (isNull()
isNull()Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
)
0-5
4236 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
4237-
4238 return
executed 5 times by 1 test: return QUtf8::convertFromUnicode(constData(), length());
Executed by:
  • tst_QString
QUtf8::convertFromUnicode(constData(), length());
executed 5 times by 1 test: return QUtf8::convertFromUnicode(constData(), length());
Executed by:
  • tst_QString
5
4239}-
4240QVector<uint> QStringRef::toUcs4() const-
4241{-
4242 QVector<uint> v(length());-
4243 uint *a = v.data();-
4244 int len = QString::toUcs4_helper(reinterpret_cast<const ushort *>(unicode()), length(), a);-
4245 v.resize(len);-
4246 return
never executed: return v;
v;
never executed: return v;
0
4247}-
4248QStringRef QStringRef::trimmed() const-
4249{-
4250 const QChar *begin = cbegin();-
4251 const QChar *end = cend();-
4252 QStringAlgorithms<const QStringRef>::trimmed_helper_positions(begin, end);-
4253 if (begin == cbegin()
begin == cbegin()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QStringRef
&& end == cend()
end == cend()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QStringRef
FALSEnever evaluated
)
0-3
4254 return
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QStringRef
*this;
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QStringRef
1
4255 if (begin == end
begin == endDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QStringRef
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QStringRef
)
1-2
4256 return
executed 1 time by 1 test: return QStringRef();
Executed by:
  • tst_QStringRef
QStringRef();
executed 1 time by 1 test: return QStringRef();
Executed by:
  • tst_QStringRef
1
4257 int position = m_position + (begin - cbegin());-
4258 return
executed 2 times by 1 test: return QStringRef(m_string, position, end - begin);
Executed by:
  • tst_QStringRef
QStringRef(m_string, position, end - begin);
executed 2 times by 1 test: return QStringRef(m_string, position, end - begin);
Executed by:
  • tst_QStringRef
2
4259}-
4260qint64 QStringRef::toLongLong(bool *ok, int base) const-
4261{-
4262 return
executed 46761 times by 1 test: return QString::toIntegral_helper<qint64>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
QString::toIntegral_helper<qint64>(constData(), size(), ok, base);
executed 46761 times by 1 test: return QString::toIntegral_helper<qint64>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
46761
4263}-
4264quint64 QStringRef::toULongLong(bool *ok, int base) const-
4265{-
4266 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
4267}-
4268long QStringRef::toLong(bool *ok, int base) const-
4269{-
4270 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
4271}-
4272ulong QStringRef::toULong(bool *ok, int base) const-
4273{-
4274 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
4275}-
4276int QStringRef::toInt(bool *ok, int base) const-
4277{-
4278 return
executed 786 times by 9 tests: return QString::toIntegral_helper<int>(constData(), size(), ok, base);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
QString::toIntegral_helper<int>(constData(), size(), ok, base);
executed 786 times by 9 tests: return QString::toIntegral_helper<int>(constData(), size(), ok, base);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSqlQuery
  • tst_QStringRef
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
786
4279}-
4280uint QStringRef::toUInt(bool *ok, int base) const-
4281{-
4282 return
executed 1467 times by 3 tests: return QString::toIntegral_helper<uint>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
  • tst_QXmlStream
  • tst_Selftests
QString::toIntegral_helper<uint>(constData(), size(), ok, base);
executed 1467 times by 3 tests: return QString::toIntegral_helper<uint>(constData(), size(), ok, base);
Executed by:
  • tst_QStringRef
  • tst_QXmlStream
  • tst_Selftests
1467
4283}-
4284short QStringRef::toShort(bool *ok, int base) const-
4285{-
4286 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
4287}-
4288ushort QStringRef::toUShort(bool *ok, int base) const-
4289{-
4290 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
4291}-
4292double QStringRef::toDouble(bool *ok) const-
4293{-
4294 return
executed 79 times by 1 test: return QLocaleData::c()->stringToDouble(constData(), size(), ok, QLocaleData::FailOnGroupSeparators);
Executed by:
  • tst_QStringRef
QLocaleData::c()->stringToDouble(constData(), size(), ok, QLocaleData::FailOnGroupSeparators);
executed 79 times by 1 test: return QLocaleData::c()->stringToDouble(constData(), size(), ok, QLocaleData::FailOnGroupSeparators);
Executed by:
  • tst_QStringRef
79
4295}-
4296float QStringRef::toFloat(bool *ok) const-
4297{-
4298 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
4299}-
4300QString QString::toHtmlEscaped() const-
4301{-
4302 QString rich;-
4303 const int len = length();-
4304 rich.reserve(int(len * 1.1));-
4305 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
4306 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
4307 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
4308 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
4309 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
4310 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
4311 rich += QLatin1String("&amp;");
executed 5 times by 2 tests: rich += QLatin1String("&amp;");
Executed by:
  • tst_QString
  • tst_QTextDocument
5
4312 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
4313 rich += QLatin1String("&quot;");
executed 6 times by 2 tests: rich += QLatin1String("&quot;");
Executed by:
  • tst_QString
  • tst_QTextDocument
6
4314 else-
4315 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
4316 }-
4317 rich.squeeze();-
4318 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
4319}-
4320void QAbstractConcatenable::appendLatin1To(const char *a, int len, QChar *out)-
4321{-
4322 qt_from_latin1(reinterpret_cast<ushort *>(out), a, uint(len));-
4323}
executed 92320 times by 180 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnectionNoBus
  • ...
92320
4324-
4325-
Switch to Source codePreprocessed file

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