Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | #include "qlocale_tools_p.h" | - |
42 | #include "qdoublescanprint_p.h" | - |
43 | #include "qlocale_p.h" | - |
44 | #include "qstring.h" | - |
45 | | - |
46 | #include <private/qnumeric_p.h> | - |
47 | | - |
48 | #include <ctype.h> | - |
49 | #include <errno.h> | - |
50 | #include <float.h> | - |
51 | #include <limits.h> | - |
52 | #include <math.h> | - |
53 | #include <stdlib.h> | - |
54 | #include <time.h> | - |
55 | | - |
56 | #if defined(Q_OS_LINUX) && !defined(__UCLIBC__) | - |
57 | # include <fenv.h> | - |
58 | #endif | - |
59 | | - |
60 | | - |
61 | #ifndef LLONG_MAX | - |
62 | # define LLONG_MAX Q_INT64_C(0x7fffffffffffffff) | - |
63 | #endif | - |
64 | #ifndef LLONG_MIN | - |
65 | # define LLONG_MIN (-LLONG_MAX - Q_INT64_C(1)) | - |
66 | #endif | - |
67 | #ifndef ULLONG_MAX | - |
68 | # define ULLONG_MAX Q_UINT64_C(0xffffffffffffffff) | - |
69 | #endif | - |
70 | | - |
71 | QT_BEGIN_NAMESPACE | - |
72 | | - |
73 | #include "../../3rdparty/freebsd/strtoull.c" | - |
74 | #include "../../3rdparty/freebsd/strtoll.c" | - |
75 | | - |
76 | QT_CLOCALE_HOLDER | - |
77 | | - |
78 | void doubleToAscii(double d, QLocaleData::DoubleForm form, int precision, char *buf, int bufSize, | - |
79 | bool &sign, int &length, int &decpt) | - |
80 | { | - |
81 | if (bufSize == 0) {TRUE | never evaluated | FALSE | evaluated 110646 times by 55 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QBrush
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- ...
|
| 0-110646 |
82 | decpt = 0; | - |
83 | sign = d < 0; | - |
84 | length = 0; | - |
85 | return; never executed: return; | 0 |
86 | } | - |
87 | | - |
88 | | - |
89 | | - |
90 | | - |
91 | | - |
92 | if (qt_is_inf(d)) {TRUE | evaluated 550 times by 4 testsEvaluated by:- tst_QDBusMarshall
- tst_QString
- tst_QTextStream
- tst_QVariant
| FALSE | evaluated 110096 times by 55 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QBrush
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- ...
|
| 550-110096 |
93 | sign = d < 0; | - |
94 | if (bufSize >= 3) {TRUE | evaluated 550 times by 4 testsEvaluated by:- tst_QDBusMarshall
- tst_QString
- tst_QTextStream
- tst_QVariant
| FALSE | never evaluated |
| 0-550 |
95 | buf[0] = 'i'; | - |
96 | buf[1] = 'n'; | - |
97 | buf[2] = 'f'; | - |
98 | length = 3; | - |
99 | } else {executed 550 times by 4 tests: end of block Executed by:- tst_QDBusMarshall
- tst_QString
- tst_QTextStream
- tst_QVariant
| 550 |
100 | length = 0; | - |
101 | } never executed: end of block | 0 |
102 | return;executed 550 times by 4 tests: return; Executed by:- tst_QDBusMarshall
- tst_QString
- tst_QTextStream
- tst_QVariant
| 550 |
103 | } else if (qt_is_nan(d)) {TRUE | evaluated 262 times by 3 testsEvaluated by:- tst_QDBusMarshall
- tst_QString
- tst_QTextStream
| FALSE | evaluated 109834 times by 55 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QBrush
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- ...
|
| 262-109834 |
104 | if (bufSize >= 3) {TRUE | evaluated 262 times by 3 testsEvaluated by:- tst_QDBusMarshall
- tst_QString
- tst_QTextStream
| FALSE | never evaluated |
| 0-262 |
105 | buf[0] = 'n'; | - |
106 | buf[1] = 'a'; | - |
107 | buf[2] = 'n'; | - |
108 | length = 3; | - |
109 | } else {executed 262 times by 3 tests: end of block Executed by:- tst_QDBusMarshall
- tst_QString
- tst_QTextStream
| 262 |
110 | length = 0; | - |
111 | } never executed: end of block | 0 |
112 | return;executed 262 times by 3 tests: return; Executed by:- tst_QDBusMarshall
- tst_QString
- tst_QTextStream
| 262 |
113 | } | - |
114 | | - |
115 | if (form == QLocaleData::DFSignificantDigits && precision == 0)TRUE | evaluated 107580 times by 42 testsEvaluated by:- tst_QBrush
- tst_QByteArray
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLCDNumber
- tst_QLabel
- tst_QMetaType
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPdfWriter
- tst_QPlainTextEdit
- tst_QPrinter
- ...
| FALSE | evaluated 2254 times by 21 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QByteDataBuffer
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItemAnimation
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QPrinter
- tst_QSpinBox
- tst_QString
- tst_QStringRef
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextStream
- tst_QUdpSocket
- tst_selftests - unknown status
|
TRUE | evaluated 1729 times by 2 testsEvaluated by:- tst_QString
- tst_QTextStream
| FALSE | evaluated 105851 times by 42 testsEvaluated by:- tst_QBrush
- tst_QByteArray
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLCDNumber
- tst_QLabel
- tst_QMetaType
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPdfWriter
- tst_QPlainTextEdit
- tst_QPrinter
- ...
|
| 1729-107580 |
116 | precision = 1; executed 1729 times by 2 tests: precision = 1; Executed by:- tst_QString
- tst_QTextStream
| 1729 |
117 | | - |
118 | #if !defined(QT_NO_DOUBLECONVERSION) && !defined(QT_BOOTSTRAPPED) | - |
119 | | - |
120 | if (form == QLocaleData::DFExponent && precision >= 0)TRUE | evaluated 17 times by 3 testsEvaluated by:- tst_QString
- tst_QStringRef
- tst_QTextStream
| FALSE | evaluated 109817 times by 54 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QBrush
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- ...
|
TRUE | evaluated 17 times by 3 testsEvaluated by:- tst_QString
- tst_QStringRef
- tst_QTextStream
| FALSE | never evaluated |
| 0-109817 |
121 | ++precision;executed 17 times by 3 tests: ++precision; Executed by:- tst_QString
- tst_QStringRef
- tst_QTextStream
| 17 |
122 | | - |
123 | double_conversion::DoubleToStringConverter::DtoaMode mode; | - |
124 | if (precision == QLocale::FloatingPointShortest) {TRUE | evaluated 144 times by 13 testsEvaluated by:- tst_QCssParser
- tst_QDBusMarshall
- tst_QGraphicsItem
- tst_QItemDelegate
- tst_QMetaType
- tst_QPropertyAnimation
- tst_QSqlDriver
- tst_QSqlQuery
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextList
- tst_QTreeWidget
- tst_QVariant
| FALSE | evaluated 109690 times by 48 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QBrush
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QLCDNumber
- tst_QLabel
- ...
|
| 144-109690 |
125 | mode = double_conversion::DoubleToStringConverter::SHORTEST; | - |
126 | } else if (form == QLocaleData::DFSignificantDigits || form == QLocaleData::DFExponent) {executed 144 times by 13 tests: end of block Executed by:- tst_QCssParser
- tst_QDBusMarshall
- tst_QGraphicsItem
- tst_QItemDelegate
- tst_QMetaType
- tst_QPropertyAnimation
- tst_QSqlDriver
- tst_QSqlQuery
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextList
- tst_QTreeWidget
- tst_QVariant
TRUE | evaluated 107436 times by 35 testsEvaluated by:- tst_QBrush
- tst_QByteArray
- tst_QColor
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLCDNumber
- tst_QLabel
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPdfWriter
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QString
- tst_QTextDocument
- tst_QTextDocumentFragment
- ...
| FALSE | evaluated 2254 times by 21 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QByteDataBuffer
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItemAnimation
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QPrinter
- tst_QSpinBox
- tst_QString
- tst_QStringRef
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextStream
- tst_QUdpSocket
- tst_selftests - unknown status
|
TRUE | evaluated 17 times by 3 testsEvaluated by:- tst_QString
- tst_QStringRef
- tst_QTextStream
| FALSE | evaluated 2237 times by 20 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QByteDataBuffer
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItemAnimation
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QPrinter
- tst_QSpinBox
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextStream
- tst_QUdpSocket
- tst_selftests - unknown status
|
| 17-107436 |
127 | mode = double_conversion::DoubleToStringConverter::PRECISION; | - |
128 | } else {executed 107453 times by 36 tests: end of block Executed by:- tst_QBrush
- tst_QByteArray
- tst_QColor
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLCDNumber
- tst_QLabel
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPdfWriter
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QString
- tst_QStringRef
- tst_QTextDocument
- ...
| 107453 |
129 | mode = double_conversion::DoubleToStringConverter::FIXED; | - |
130 | }executed 2237 times by 20 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QByteDataBuffer
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItemAnimation
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QPrinter
- tst_QSpinBox
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextStream
- tst_QUdpSocket
- tst_selftests - unknown status
| 2237 |
131 | double_conversion::DoubleToStringConverter::DoubleToAscii(d, mode, precision, buf, bufSize, | - |
132 | &sign, &length, &decpt); | - |
133 | #else // QT_NO_DOUBLECONVERSION || QT_BOOTSTRAPPED | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | if (precision > 999) | - |
140 | precision = 999; | - |
141 | else if (precision == QLocale::FloatingPointShortest) | - |
142 | precision = QLocaleData::DoubleMaxSignificant; | - |
143 | | - |
144 | if (isZero(d)) { | - |
145 | | - |
146 | sign = false; | - |
147 | buf[0] = '0'; | - |
148 | length = 1; | - |
149 | decpt = 1; | - |
150 | return; | - |
151 | } else if (d < 0) { | - |
152 | sign = true; | - |
153 | d = -d; | - |
154 | } else { | - |
155 | sign = false; | - |
156 | } | - |
157 | | - |
158 | const int formatLength = 7; | - |
159 | char format[formatLength]; | - |
160 | format[formatLength - 1] = '\0'; | - |
161 | format[0] = '%'; | - |
162 | format[1] = '.'; | - |
163 | format[2] = char((precision / 100) % 10) + '0'; | - |
164 | format[3] = char((precision / 10) % 10) + '0'; | - |
165 | format[4] = char(precision % 10) + '0'; | - |
166 | int extraChars; | - |
167 | switch (form) { | - |
168 | case QLocaleData::DFDecimal: | - |
169 | format[formatLength - 2] = 'f'; | - |
170 | | - |
171 | extraChars = (d > (1 << 19) ? QLocaleData::DoubleMaxDigitsBeforeDecimal : 6) + 2; | - |
172 | break; | - |
173 | case QLocaleData::DFExponent: | - |
174 | format[formatLength - 2] = 'e'; | - |
175 | | - |
176 | extraChars = 7; | - |
177 | break; | - |
178 | case QLocaleData::DFSignificantDigits: | - |
179 | format[formatLength - 2] = 'g'; | - |
180 | | - |
181 | | - |
182 | | - |
183 | extraChars = 7; | - |
184 | break; | - |
185 | default: | - |
186 | Q_UNREACHABLE(); | - |
187 | } | - |
188 | | - |
189 | QVarLengthArray<char> target(precision + extraChars); | - |
190 | | - |
191 | length = qDoubleSnprintf(target.data(), target.size(), QT_CLOCALE, format, d); | - |
192 | int firstSignificant = 0; | - |
193 | int decptInTarget = length; | - |
194 | | - |
195 | | - |
196 | | - |
197 | while (firstSignificant < length) { | - |
198 | if (target[firstSignificant] == '.') | - |
199 | decptInTarget = firstSignificant; | - |
200 | else if (target[firstSignificant] != '0') | - |
201 | break; | - |
202 | ++firstSignificant; | - |
203 | } | - |
204 | | - |
205 | | - |
206 | if (decptInTarget == length) | - |
207 | decptInTarget = std::find(target.data() + firstSignificant, target.data() + length, '.') - | - |
208 | target.data(); | - |
209 | | - |
210 | int eSign = length; | - |
211 | if (form != QLocaleData::DFDecimal) { | - |
212 | | - |
213 | eSign = std::find(target.data() + firstSignificant, target.data() + length, 'e') - | - |
214 | target.data(); | - |
215 | | - |
216 | if (eSign < length) { | - |
217 | | - |
218 | | - |
219 | | - |
220 | | - |
221 | | - |
222 | | - |
223 | bool ok; | - |
224 | const char *endptr; | - |
225 | decpt = qstrtoll(target.data() + eSign + 1, &endptr, 10, &ok) + 1; | - |
226 | Q_ASSERT(ok); | - |
227 | Q_ASSERT(endptr - target.data() <= length); | - |
228 | } else { | - |
229 | | - |
230 | | - |
231 | | - |
232 | | - |
233 | decpt = decptInTarget - firstSignificant; | - |
234 | } | - |
235 | } else { | - |
236 | | - |
237 | | - |
238 | decpt = decptInTarget - firstSignificant; | - |
239 | } | - |
240 | | - |
241 | | - |
242 | if (decptInTarget > firstSignificant) { | - |
243 | | - |
244 | int lengthBeforeDecpt = decptInTarget - firstSignificant; | - |
245 | memcpy(buf, target.data() + firstSignificant, qMin(lengthBeforeDecpt, bufSize)); | - |
246 | if (eSign > decptInTarget && lengthBeforeDecpt < bufSize) { | - |
247 | | - |
248 | memcpy(buf + lengthBeforeDecpt, target.data() + decptInTarget + 1, | - |
249 | qMin(eSign - decptInTarget - 1, bufSize - lengthBeforeDecpt)); | - |
250 | | - |
251 | | - |
252 | length = qMin(eSign - firstSignificant - 1, bufSize); | - |
253 | } else { | - |
254 | | - |
255 | length = qMin(eSign - firstSignificant, bufSize); | - |
256 | } | - |
257 | } else { | - |
258 | if (eSign > firstSignificant) { | - |
259 | | - |
260 | | - |
261 | memcpy(buf, target.data() + firstSignificant, qMin(eSign - firstSignificant, bufSize)); | - |
262 | | - |
263 | | - |
264 | | - |
265 | | - |
266 | ++decpt; | - |
267 | length = qMin(eSign - firstSignificant, bufSize); | - |
268 | } else { | - |
269 | | - |
270 | buf[0] = '0'; | - |
271 | length = 1; | - |
272 | decpt = 1; | - |
273 | } | - |
274 | } | - |
275 | #endif // QT_NO_DOUBLECONVERSION || QT_BOOTSTRAPPED | - |
276 | while (length > 1 && buf[length - 1] == '0') TRUE | evaluated 159154 times by 50 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QBrush
- tst_QByteArray
- tst_QColor
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QLabel
- tst_QMetaType
- ...
| FALSE | evaluated 61145 times by 46 testsEvaluated by:- tst_QAccessibility
- tst_QBrush
- tst_QByteDataBuffer
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QLCDNumber
- tst_QOpenGlConfig
- ...
|
TRUE | evaluated 110465 times by 35 testsEvaluated by:- tst_QBrush
- tst_QByteArray
- tst_QColor
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLabel
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPdfWriter
- tst_QPrinter
- tst_QSpinBox
- tst_QString
- tst_QStringRef
- tst_QTextDocument
- tst_QTextDocumentFragment
- ...
| FALSE | evaluated 48689 times by 43 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QByteArray
- tst_QColor
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QLabel
- tst_QMetaType
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- ...
|
| 48689-159154 |
277 | --length;executed 110465 times by 35 tests: --length; Executed by:- tst_QBrush
- tst_QByteArray
- tst_QColor
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLabel
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPdfWriter
- tst_QPrinter
- tst_QSpinBox
- tst_QString
- tst_QStringRef
- tst_QTextDocument
- tst_QTextDocumentFragment
- ...
| 110465 |
278 | }executed 109834 times by 55 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QBrush
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- ...
| 109834 |
279 | | - |
280 | double asciiToDouble(const char *num, int numLen, bool &ok, int &processed, | - |
281 | TrailingJunkMode trailingJunkMode) | - |
282 | { | - |
283 | if (*num == '\0') {TRUE | never evaluated | FALSE | evaluated 4198 times by 28 testsEvaluated by:- tst_QAccessibility
- tst_QComboBox
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- 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_QStringRef
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_QTextStream
- ...
|
| 0-4198 |
284 | ok = false; | - |
285 | processed = 0; | - |
286 | return 0.0; never executed: return 0.0; | 0 |
287 | } | - |
288 | | - |
289 | ok = true; | - |
290 | | - |
291 | | - |
292 | | - |
293 | | - |
294 | if (qstrcmp(num, "nan") == 0) {TRUE | evaluated 7 times by 1 test | FALSE | evaluated 4191 times by 28 testsEvaluated by:- tst_QAccessibility
- tst_QComboBox
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- 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_QStringRef
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_QTextStream
- ...
|
| 7-4191 |
295 | processed = 3; | - |
296 | return qt_snan();executed 7 times by 1 test: return qt_snan(); | 7 |
297 | } else if ((num[0] == '-' || num[0] == '+') && qstrcmp(num + 1, "nan") == 0) {TRUE | evaluated 404 times by 9 testsEvaluated by:- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QEasingCurve
- tst_QInputDialog
- tst_QItemDelegate
- tst_QSpinBox
- tst_QString
- tst_QStringRef
- tst_QTextStream
| FALSE | evaluated 3787 times by 28 testsEvaluated by:- tst_QAccessibility
- tst_QComboBox
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- 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_QStringRef
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_QTextStream
- ...
|
TRUE | evaluated 10 times by 3 testsEvaluated by:- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QString
| FALSE | evaluated 3777 times by 28 testsEvaluated by:- tst_QAccessibility
- tst_QComboBox
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- 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_QStringRef
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_QTextStream
- ...
|
TRUE | evaluated 2 times by 1 test | FALSE | evaluated 412 times by 9 testsEvaluated by:- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QEasingCurve
- tst_QInputDialog
- tst_QItemDelegate
- tst_QSpinBox
- tst_QString
- tst_QStringRef
- tst_QTextStream
|
| 2-3787 |
298 | processed = 0; | - |
299 | ok = false; | - |
300 | return 0.0;executed 2 times by 1 test: return 0.0; | 2 |
301 | } | - |
302 | | - |
303 | | - |
304 | | - |
305 | if (qstrcmp(num, "+inf") == 0) {TRUE | evaluated 3 times by 1 test | FALSE | evaluated 4186 times by 28 testsEvaluated by:- tst_QAccessibility
- tst_QComboBox
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- 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_QStringRef
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_QTextStream
- ...
|
| 3-4186 |
306 | processed = 4; | - |
307 | return qt_inf();executed 3 times by 1 test: return qt_inf(); | 3 |
308 | } else if (qstrcmp(num, "inf") == 0) {TRUE | evaluated 6 times by 1 test | FALSE | evaluated 4180 times by 28 testsEvaluated by:- tst_QAccessibility
- tst_QComboBox
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- 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_QStringRef
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_QTextStream
- ...
|
| 6-4180 |
309 | processed = 3; | - |
310 | return qt_inf();executed 6 times by 1 test: return qt_inf(); | 6 |
311 | } else if (qstrcmp(num, "-inf") == 0) {TRUE | evaluated 2 times by 1 test | FALSE | evaluated 4178 times by 28 testsEvaluated by:- tst_QAccessibility
- tst_QComboBox
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- 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_QStringRef
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_QTextStream
- ...
|
| 2-4178 |
312 | processed = 4; | - |
313 | return -qt_inf();executed 2 times by 1 test: return -qt_inf(); | 2 |
314 | } | - |
315 | | - |
316 | double d = 0.0; | - |
317 | #if !defined(QT_NO_DOUBLECONVERSION) && !defined(QT_BOOTSTRAPPED) | - |
318 | int conv_flags = (trailingJunkMode == TrailingJunkAllowed) ?TRUE | never evaluated | FALSE | evaluated 4178 times by 28 testsEvaluated by:- tst_QAccessibility
- tst_QComboBox
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- 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_QStringRef
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_QTextStream
- ...
|
| 0-4178 |
319 | double_conversion::StringToDoubleConverter::ALLOW_TRAILING_JUNK : | - |
320 | double_conversion::StringToDoubleConverter::NO_FLAGS; | - |
321 | double_conversion::StringToDoubleConverter conv(conv_flags, 0.0, qt_snan(), 0, 0); | - |
322 | d = conv.StringToDouble(num, numLen, &processed); | - |
323 | | - |
324 | if (!qIsFinite(d)) {TRUE | evaluated 328 times by 11 testsEvaluated by:- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QInputDialog
- tst_QMetaType
- tst_QObject
- tst_QString
- tst_QStringRef
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QVariant
| FALSE | evaluated 3850 times by 26 testsEvaluated by:- tst_QAccessibility
- tst_QComboBox
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QEasingCurve
- tst_QGraphicsProxyWidget
- tst_QGuiVariant
- tst_QInputDialog
- tst_QItemDelegate
- tst_QMainWindow
- tst_QPrinter
- tst_QSpinBox
- tst_QSqlDatabase
- tst_QString
- tst_QStringRef
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_QTextStream
- tst_QVariant
- tst_QWidget
- ...
|
| 328-3850 |
325 | ok = false; | - |
326 | if (qIsNaN(d)) {TRUE | evaluated 328 times by 11 testsEvaluated by:- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QInputDialog
- tst_QMetaType
- tst_QObject
- tst_QString
- tst_QStringRef
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QVariant
| FALSE | never evaluated |
| 0-328 |
327 | | - |
328 | processed = 0; | - |
329 | return 0.0;executed 328 times by 11 tests: return 0.0; Executed by:- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QInputDialog
- tst_QMetaType
- tst_QObject
- tst_QString
- tst_QStringRef
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QVariant
| 328 |
330 | } else { | - |
331 | | - |
332 | return d; never executed: return d; | 0 |
333 | } | - |
334 | } | - |
335 | #else | - |
336 | if (qDoubleSscanf(num, QT_CLOCALE, "%lf%n", &d, &processed) < 1) | - |
337 | processed = 0; | - |
338 | | - |
339 | if ((trailingJunkMode == TrailingJunkProhibited && processed != numLen) || qIsNaN(d)) { | - |
340 | | - |
341 | processed = 0; | - |
342 | ok = false; | - |
343 | return 0.0; | - |
344 | } | - |
345 | | - |
346 | if (!qIsFinite(d)) { | - |
347 | | - |
348 | | - |
349 | | - |
350 | ok = false; | - |
351 | for (int i = 0; i < processed; ++i) { | - |
352 | char c = num[i]; | - |
353 | if ((c < '0' || c > '9') && c != '.' && c != '-' && c != '+' && c != 'e') { | - |
354 | | - |
355 | processed = 0; | - |
356 | return 0.0; | - |
357 | } | - |
358 | } | - |
359 | return d; | - |
360 | } | - |
361 | #endif // !defined(QT_NO_DOUBLECONVERSION) && !defined(QT_BOOTSTRAPPED) | - |
362 | | - |
363 | | - |
364 | Q_ASSERT(trailingJunkMode == TrailingJunkAllowed || processed == numLen); | - |
365 | | - |
366 | | - |
367 | if (isZero(d)) {TRUE | evaluated 1182 times by 18 testsEvaluated by:- tst_QAccessibility
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QEasingCurve
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemDelegate
- tst_QMainWindow
- tst_QPrinter
- tst_QSpinBox
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_Selftests
| FALSE | evaluated 2668 times by 26 testsEvaluated by:- tst_QAccessibility
- tst_QComboBox
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QEasingCurve
- tst_QGraphicsProxyWidget
- tst_QGuiVariant
- tst_QInputDialog
- tst_QItemDelegate
- tst_QMainWindow
- tst_QPrinter
- tst_QSpinBox
- tst_QSqlDatabase
- tst_QString
- tst_QStringRef
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_QTextStream
- tst_QVariant
- tst_QWidget
- ...
|
| 1182-2668 |
368 | for (int i = 0; i < processed; ++i) {TRUE | evaluated 4553 times by 18 testsEvaluated by:- tst_QAccessibility
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QEasingCurve
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemDelegate
- tst_QMainWindow
- tst_QPrinter
- tst_QSpinBox
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_Selftests
| FALSE | evaluated 1182 times by 18 testsEvaluated by:- tst_QAccessibility
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QEasingCurve
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemDelegate
- tst_QMainWindow
- tst_QPrinter
- tst_QSpinBox
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_Selftests
|
| 1182-4553 |
369 | if (num[i] >= '1' && num[i] <= '9') {TRUE | never evaluated | FALSE | evaluated 4553 times by 18 testsEvaluated by:- tst_QAccessibility
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QEasingCurve
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemDelegate
- tst_QMainWindow
- tst_QPrinter
- tst_QSpinBox
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_Selftests
|
TRUE | never evaluated | FALSE | never evaluated |
| 0-4553 |
370 | | - |
371 | ok = false; | - |
372 | return 0.0; never executed: return 0.0; | 0 |
373 | } else if (num[i] == 'e') {TRUE | never evaluated | FALSE | evaluated 4553 times by 18 testsEvaluated by:- tst_QAccessibility
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QEasingCurve
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemDelegate
- tst_QMainWindow
- tst_QPrinter
- tst_QSpinBox
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_Selftests
|
| 0-4553 |
374 | break; never executed: break; | 0 |
375 | } | - |
376 | }executed 4553 times by 18 tests: end of block Executed by:- tst_QAccessibility
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QEasingCurve
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemDelegate
- tst_QMainWindow
- tst_QPrinter
- tst_QSpinBox
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_Selftests
| 4553 |
377 | }executed 1182 times by 18 tests: end of block Executed by:- tst_QAccessibility
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QEasingCurve
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemDelegate
- tst_QMainWindow
- tst_QPrinter
- tst_QSpinBox
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_Selftests
| 1182 |
378 | return d;executed 3850 times by 26 tests: return d; Executed by:- tst_QAccessibility
- tst_QComboBox
- tst_QCssParser
- tst_QDoubleSpinBox
- tst_QDoubleValidator
- tst_QEasingCurve
- tst_QGraphicsProxyWidget
- tst_QGuiVariant
- tst_QInputDialog
- tst_QItemDelegate
- tst_QMainWindow
- tst_QPrinter
- tst_QSpinBox
- tst_QSqlDatabase
- tst_QString
- tst_QStringRef
- tst_QStyleSheetStyle
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextList
- tst_QTextStream
- tst_QVariant
- tst_QWidget
- ...
| 3850 |
379 | } | - |
380 | | - |
381 | unsigned long long | - |
382 | qstrtoull(const char * nptr, const char **endptr, int base, bool *ok) | - |
383 | { | - |
384 | | - |
385 | | - |
386 | | - |
387 | const char *begin = nptr; | - |
388 | while (ascii_isspace(*begin))TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_QUrl
- tst_QVersionNumber
| FALSE | evaluated 108198 times by 84 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QAsn1Element
- tst_QByteArray
- tst_QColorDialog
- tst_QCssParser
- tst_QDataUrl
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFile
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- tst_QHttpSocketEngine
- ...
|
| 3-108198 |
389 | ++begin;executed 3 times by 2 tests: ++begin; Executed by:- tst_QUrl
- tst_QVersionNumber
| 3 |
390 | if (*begin == '-') {TRUE | evaluated 77 times by 10 testsEvaluated by:- tst_QDate
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QString
- tst_QStringRef
- tst_QUrl
- tst_QUrlInternal
- tst_QVariant
- tst_QVersionNumber
| FALSE | evaluated 108121 times by 84 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QAsn1Element
- tst_QByteArray
- tst_QColorDialog
- tst_QCssParser
- tst_QDataUrl
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFile
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- tst_QHttpSocketEngine
- ...
|
| 77-108121 |
391 | *ok = false; | - |
392 | return 0;executed 77 times by 10 tests: return 0; Executed by:- tst_QDate
- tst_QHostAddress
- tst_QHostInfo
- tst_QIpAddress
- tst_QString
- tst_QStringRef
- tst_QUrl
- tst_QUrlInternal
- tst_QVariant
- tst_QVersionNumber
| 77 |
393 | } | - |
394 | | - |
395 | *ok = true; | - |
396 | errno = 0; | - |
397 | char *endptr2 = 0; | - |
398 | unsigned long long result = qt_strtoull(nptr, &endptr2, base); | - |
399 | if (endptr)TRUE | evaluated 108121 times by 84 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QAsn1Element
- tst_QByteArray
- tst_QColorDialog
- tst_QCssParser
- tst_QDataUrl
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFile
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- tst_QHttpSocketEngine
- ...
| FALSE | never evaluated |
| 0-108121 |
400 | *endptr = endptr2;executed 108121 times by 84 tests: *endptr = endptr2; Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QAsn1Element
- tst_QByteArray
- tst_QColorDialog
- tst_QCssParser
- tst_QDataUrl
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFile
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- tst_QHttpSocketEngine
- ...
| 108121 |
401 | if ((result == 0 || result == std::numeric_limits<unsigned long long>::max())TRUE | evaluated 46394 times by 65 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAsn1Element
- tst_QByteArray
- tst_QDataUrl
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFileSelector
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QIpAddress
- tst_QItemDelegate
- tst_QMetaType
- ...
| FALSE | evaluated 61727 times by 70 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QAsn1Element
- tst_QByteArray
- tst_QColorDialog
- tst_QCssParser
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFile
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- tst_QHttpSocketEngine
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
|
TRUE | evaluated 18 times by 4 testsEvaluated by:- tst_QString
- tst_QStringRef
- tst_QVariant
- tst_QVersionNumber
| FALSE | evaluated 61709 times by 70 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QAsn1Element
- tst_QByteArray
- tst_QColorDialog
- tst_QCssParser
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFile
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- tst_QHttpSocketEngine
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
|
| 18-61727 |
402 | && (errno || endptr2 == nptr)) {TRUE | evaluated 36779 times by 48 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QDataUrl
- tst_QFileSelector
- tst_QFtp
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIpAddress
- tst_QMetaType
- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- ...
| FALSE | evaluated 9633 times by 43 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QAsn1Element
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QItemDelegate
- tst_QMimeDatabase
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- ...
|
TRUE | never evaluated | FALSE | evaluated 9633 times by 43 testsEvaluated by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QAsn1Element
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QIpAddress
- tst_QItemDelegate
- tst_QMimeDatabase
- tst_QNetworkAddressEntry
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- ...
|
| 0-36779 |
403 | *ok = false; | - |
404 | return 0;executed 36779 times by 48 tests: return 0; Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QDataUrl
- tst_QFileSelector
- tst_QFtp
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIpAddress
- tst_QMetaType
- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkCacheMetaData
- tst_QNetworkCookie
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- ...
| 36779 |
405 | } | - |
406 | return result;executed 71342 times by 70 tests: return result; Executed by:- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QAsn1Element
- tst_QByteArray
- tst_QColorDialog
- tst_QCssParser
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDnsLookup
- tst_QEventLoop
- tst_QFile
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHostAddress
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- tst_QHttpSocketEngine
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| 71342 |
407 | } | - |
408 | | - |
409 | long long | - |
410 | qstrtoll(const char * nptr, const char **endptr, int base, bool *ok) | - |
411 | { | - |
412 | *ok = true; | - |
413 | errno = 0; | - |
414 | char *endptr2 = 0; | - |
415 | long long result = qt_strtoll(nptr, &endptr2, base); | - |
416 | if (endptr)TRUE | evaluated 355844 times by 105 testsEvaluated by:- tst_Collections
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFtp
- ...
| FALSE | evaluated 43 times by 2 testsEvaluated by:- tst_QGestureRecognizer
- tst_QGetPutEnv
|
| 43-355844 |
417 | *endptr = endptr2;executed 355844 times by 105 tests: *endptr = endptr2; Executed by:- tst_Collections
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFtp
- ...
| 355844 |
418 | if ((result == 0 || result == std::numeric_limits<long long>::min()TRUE | evaluated 9959 times by 49 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QColorDialog
- tst_QDataStream
- tst_QDate
- tst_QDateTime
- tst_QFontDialog
- tst_QFtp
- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGLThreads
- tst_QGetPutEnv
- tst_QGraphicsView
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpNetworkConnection
- tst_QInputDialog
- tst_QIntValidator
- tst_QItemDelegate
- tst_QLayout
- tst_QLineEdit
- tst_QMdiArea
- tst_QMimeDatabase
- tst_QNetworkCookieJar
- ...
| FALSE | evaluated 345928 times by 104 testsEvaluated by:- tst_Collections
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAction
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFtp
- tst_QGLBuffer
- ...
|
TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_QString
- tst_QStringRef
| FALSE | evaluated 345922 times by 104 testsEvaluated by:- tst_Collections
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAction
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFtp
- tst_QGLBuffer
- ...
|
| 6-345928 |
419 | || result == std::numeric_limits<long long>::max())TRUE | evaluated 13 times by 3 testsEvaluated by:- tst_QIntValidator
- tst_QString
- tst_QStringRef
| FALSE | evaluated 345909 times by 104 testsEvaluated by:- tst_Collections
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAction
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFtp
- tst_QGLBuffer
- ...
|
| 13-345909 |
420 | && (errno || nptr == endptr2)) {TRUE | evaluated 201 times by 19 testsEvaluated by:- tst_QDate
- tst_QDateTime
- tst_QGetPutEnv
- tst_QInputDialog
- tst_QIntValidator
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QPlugin
- tst_QSettings
- tst_QSpinBox
- tst_QSqlError
- tst_QSqlRelationalTableModel
- tst_QString
- tst_QStringRef
- tst_QTime
- tst_QTreeWidget
- tst_QVariant
- tst_qmakelib
- tst_selftests - unknown status
| FALSE | evaluated 9777 times by 42 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QColorDialog
- tst_QDataStream
- tst_QDate
- tst_QDateTime
- tst_QFontDialog
- tst_QFtp
- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGLThreads
- tst_QGetPutEnv
- tst_QGraphicsView
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpNetworkConnection
- tst_QInputDialog
- tst_QIntValidator
- tst_QItemDelegate
- tst_QLayout
- tst_QLineEdit
- tst_QMdiArea
- tst_QMimeDatabase
- tst_QNetworkCookieJar
- ...
|
TRUE | never evaluated | FALSE | evaluated 9777 times by 42 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QColorDialog
- tst_QDataStream
- tst_QDate
- tst_QDateTime
- tst_QFontDialog
- tst_QFtp
- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGLThreads
- tst_QGetPutEnv
- tst_QGraphicsView
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpNetworkConnection
- tst_QInputDialog
- tst_QIntValidator
- tst_QItemDelegate
- tst_QLayout
- tst_QLineEdit
- tst_QMdiArea
- tst_QMimeDatabase
- tst_QNetworkCookieJar
- ...
|
| 0-9777 |
421 | *ok = false; | - |
422 | return 0;executed 201 times by 19 tests: return 0; Executed by:- tst_QDate
- tst_QDateTime
- tst_QGetPutEnv
- tst_QInputDialog
- tst_QIntValidator
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QPlugin
- tst_QSettings
- tst_QSpinBox
- tst_QSqlError
- tst_QSqlRelationalTableModel
- tst_QString
- tst_QStringRef
- tst_QTime
- tst_QTreeWidget
- tst_QVariant
- tst_qmakelib
- tst_selftests - unknown status
| 201 |
423 | } | - |
424 | return result;executed 355686 times by 105 tests: return result; Executed by:- tst_Collections
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDate
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFtp
- ...
| 355686 |
425 | } | - |
426 | | - |
427 | QString qulltoa(qulonglong l, int base, const QChar _zero) | - |
428 | { | - |
429 | ushort buff[65]; | - |
430 | ushort *p = buff + 65; | - |
431 | | - |
432 | if (base != 10 || _zero.unicode() == '0') {TRUE | evaluated 26388 times by 96 testsEvaluated by:- tst_Gestures
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QApplication
- tst_QBrush
- tst_QChar
- tst_QColor
- tst_QColorDialog
- tst_QCssParser
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDataStream
- tst_QDebug
- tst_QErrorMessage
- tst_QEventLoop
- tst_QFileSystemModel
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsLinearLayout
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- ...
| FALSE | evaluated 4981420 times by 456 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_Lancelot
- 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_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBuffer
- ...
|
TRUE | evaluated 4981409 times by 456 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_Lancelot
- 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_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBuffer
- ...
| FALSE | evaluated 11 times by 2 testsEvaluated by:- tst_QProgressBar
- tst_QString
|
| 11-4981420 |
433 | while (l != 0) {TRUE | evaluated 10051446 times by 319 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_Lancelot
- 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_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QBackingStore
- tst_QBoxLayout
- ...
| FALSE | evaluated 5007797 times by 467 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_Lancelot
- 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_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QBackingStore
- tst_QBoxLayout
- ...
|
| 5007797-10051446 |
434 | int c = l % base; | - |
435 | | - |
436 | --p; | - |
437 | | - |
438 | if (c < 10)TRUE | evaluated 9991798 times by 319 testsEvaluated by:- tst_Collections
- tst_Gestures
- tst_Lancelot
- 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_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QBackingStore
- tst_QBoxLayout
- ...
| FALSE | evaluated 59648 times by 90 testsEvaluated by:- tst_Gestures
- tst_ModelTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QApplication
- tst_QBrush
- tst_QChar
- tst_QColor
- tst_QColorDialog
- tst_QCssParser
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDataStream
- tst_QDebug
- tst_QErrorMessage
- tst_QEventLoop
- tst_QFileSystemModel
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsLinearLayout
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiEventLoop
- ...
|
| 59648-9991798 |
439 | *p = '0' + c;executed 9991798 times by 319 tests: *p = '0' + 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_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QBackingStore
- tst_QBoxLayout
- ...
| 9991798 |
440 | else | - |
441 | *p = c - 10 + 'a';executed 59648 times by 90 tests: *p = c - 10 + 'a'; Executed by:- tst_Gestures
- tst_ModelTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QApplication
- tst_QBrush
- tst_QChar
- tst_QColor
- tst_QColorDialog
- tst_QCssParser
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDataStream
- tst_QDebug
- tst_QErrorMessage
- tst_QEventLoop
- tst_QFileSystemModel
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsLinearLayout
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiEventLoop
- ...
| 59648 |
442 | | - |
443 | l /= base; | - |
444 | }executed 10051446 times by 319 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_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QBackingStore
- tst_QBoxLayout
- ...
| 10051446 |
445 | }executed 5007797 times by 467 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_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QBackingStore
- tst_QBoxLayout
- ...
| 5007797 |
446 | else { | - |
447 | while (l != 0) {TRUE | evaluated 32 times by 2 testsEvaluated by:- tst_QProgressBar
- tst_QString
| FALSE | evaluated 11 times by 2 testsEvaluated by:- tst_QProgressBar
- tst_QString
|
| 11-32 |
448 | int c = l % base; | - |
449 | | - |
450 | *(--p) = _zero.unicode() + c; | - |
451 | | - |
452 | l /= base; | - |
453 | }executed 32 times by 2 tests: end of block Executed by:- tst_QProgressBar
- tst_QString
| 32 |
454 | }executed 11 times by 2 tests: end of block Executed by:- tst_QProgressBar
- tst_QString
| 11 |
455 | | - |
456 | return QString(reinterpret_cast<QChar *>(p), 65 - (p - buff));executed 5007808 times by 467 tests: return QString(reinterpret_cast<QChar *>(p), 65 - (p - buff)); 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_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QBackingStore
- tst_QBoxLayout
- ...
| 5007808 |
457 | } | - |
458 | | - |
459 | QString qlltoa(qlonglong l, int base, const QChar zero) | - |
460 | { | - |
461 | return qulltoa(l < 0 ? -l : l, base, zero);executed 4942476 times by 439 tests: return qulltoa(l < 0 ? -l : l, base, zero); Executed by:- tst_Collections
- tst_Gestures
- tst_Lancelot
- 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_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAsn1Element
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBuffer
- tst_QButtonGroup
- ...
| 4942476 |
462 | } | - |
463 | | - |
464 | QString &decimalForm(QChar zero, QChar decimal, QChar group, | - |
465 | QString &digits, int decpt, int precision, | - |
466 | PrecisionMode pm, | - |
467 | bool always_show_decpt, | - |
468 | bool thousands_group) | - |
469 | { | - |
470 | if (decpt < 0) {TRUE | evaluated 18518 times by 5 testsEvaluated by:- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QInputDialog
- tst_QString
- tst_QTextStream
| FALSE | evaluated 84964 times by 54 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QBrush
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- ...
|
| 18518-84964 |
471 | for (int i = 0; i < -decpt; ++i)TRUE | evaluated 46372 times by 5 testsEvaluated by:- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QInputDialog
- tst_QString
- tst_QTextStream
| FALSE | evaluated 18518 times by 5 testsEvaluated by:- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QInputDialog
- tst_QString
- tst_QTextStream
|
| 18518-46372 |
472 | digits.prepend(zero);executed 46372 times by 5 tests: digits.prepend(zero); Executed by:- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QInputDialog
- tst_QString
- tst_QTextStream
| 46372 |
473 | decpt = 0; | - |
474 | }executed 18518 times by 5 tests: end of block Executed by:- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QInputDialog
- tst_QString
- tst_QTextStream
| 18518 |
475 | else if (decpt > digits.length()) {TRUE | evaluated 983 times by 20 testsEvaluated by:- tst_QCssParser
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QInputDialog
- tst_QItemDelegate
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextList
- tst_selftests - unknown status
| FALSE | evaluated 83981 times by 54 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QBrush
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- ...
|
| 983-83981 |
476 | for (int i = digits.length(); i < decpt; ++i)TRUE | evaluated 2314 times by 20 testsEvaluated by:- tst_QCssParser
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QInputDialog
- tst_QItemDelegate
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextList
- tst_selftests - unknown status
| FALSE | evaluated 983 times by 20 testsEvaluated by:- tst_QCssParser
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QInputDialog
- tst_QItemDelegate
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextList
- tst_selftests - unknown status
|
| 983-2314 |
477 | digits.append(zero);executed 2314 times by 20 tests: digits.append(zero); Executed by:- tst_QCssParser
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QInputDialog
- tst_QItemDelegate
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextList
- tst_selftests - unknown status
| 2314 |
478 | }executed 983 times by 20 tests: end of block Executed by:- tst_QCssParser
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QInputDialog
- tst_QItemDelegate
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextList
- tst_selftests - unknown status
| 983 |
479 | | - |
480 | if (pm == PMDecimalDigits) {TRUE | evaluated 2237 times by 20 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QByteDataBuffer
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItemAnimation
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QPrinter
- tst_QSpinBox
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextStream
- tst_QUdpSocket
- tst_selftests - unknown status
| FALSE | evaluated 101245 times by 42 testsEvaluated by:- tst_QBrush
- tst_QByteArray
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLCDNumber
- tst_QLabel
- tst_QMetaType
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPdfWriter
- tst_QPlainTextEdit
- tst_QPrinter
- ...
|
| 2237-101245 |
481 | uint decimal_digits = digits.length() - decpt; | - |
482 | for (int i = decimal_digits; i < precision; ++i)TRUE | evaluated 9836 times by 18 testsEvaluated by:- tst_QAccessibility
- tst_QByteDataBuffer
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItemAnimation
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QPrinter
- tst_QSpinBox
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextStream
- tst_QUdpSocket
- tst_selftests - unknown status
| FALSE | evaluated 2237 times by 20 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QByteDataBuffer
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItemAnimation
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QPrinter
- tst_QSpinBox
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextStream
- tst_QUdpSocket
- tst_selftests - unknown status
|
| 2237-9836 |
483 | digits.append(zero);executed 9836 times by 18 tests: digits.append(zero); Executed by:- tst_QAccessibility
- tst_QByteDataBuffer
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItemAnimation
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QPrinter
- tst_QSpinBox
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextStream
- tst_QUdpSocket
- tst_selftests - unknown status
| 9836 |
484 | }executed 2237 times by 20 tests: end of block Executed by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QByteDataBuffer
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItemAnimation
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QPrinter
- tst_QSpinBox
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextStream
- tst_QUdpSocket
- tst_selftests - unknown status
| 2237 |
485 | else if (pm == PMSignificantDigits) {TRUE | evaluated 2386 times by 2 testsEvaluated by:- tst_QString
- tst_QTextStream
| FALSE | evaluated 98859 times by 42 testsEvaluated by:- tst_QBrush
- tst_QByteArray
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLCDNumber
- tst_QLabel
- tst_QMetaType
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPdfWriter
- tst_QPlainTextEdit
- tst_QPrinter
- ...
|
| 2386-98859 |
486 | for (int i = digits.length(); i < precision; ++i)TRUE | evaluated 7938 times by 2 testsEvaluated by:- tst_QString
- tst_QTextStream
| FALSE | evaluated 2386 times by 2 testsEvaluated by:- tst_QString
- tst_QTextStream
|
| 2386-7938 |
487 | digits.append(zero);executed 7938 times by 2 tests: digits.append(zero); Executed by:- tst_QString
- tst_QTextStream
| 7938 |
488 | }executed 2386 times by 2 tests: end of block Executed by:- tst_QString
- tst_QTextStream
| 2386 |
489 | else { | - |
490 | }executed 98859 times by 42 tests: end of block Executed by:- tst_QBrush
- tst_QByteArray
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLCDNumber
- tst_QLabel
- tst_QMetaType
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPdfWriter
- tst_QPlainTextEdit
- tst_QPrinter
- ...
| 98859 |
491 | | - |
492 | if (always_show_decpt || decpt < digits.length())TRUE | evaluated 2388 times by 2 testsEvaluated by:- tst_QString
- tst_QTextStream
| FALSE | evaluated 101094 times by 54 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QBrush
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- ...
|
TRUE | evaluated 47695 times by 34 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QDBusMarshall
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QLabel
- tst_QMetaType
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPrinter
- tst_QSpinBox
- tst_QSqlDriver
- ...
| FALSE | evaluated 53399 times by 37 testsEvaluated by:- tst_QBrush
- tst_QByteDataBuffer
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLCDNumber
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPainter
- tst_QPdfWriter
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSpinBox
- tst_QString
- ...
|
| 2388-101094 |
493 | digits.insert(decpt, decimal);executed 50083 times by 34 tests: digits.insert(decpt, decimal); Executed by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QDBusMarshall
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QLabel
- tst_QMetaType
- tst_QOpenGlConfig
- tst_QPageSize
- tst_QPrinter
- tst_QSpinBox
- tst_QSqlDriver
- ...
| 50083 |
494 | | - |
495 | if (thousands_group) {TRUE | evaluated 5369 times by 11 testsEvaluated by:- tst_QAccessibility
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QPrinter
- tst_QString
- tst_QTextStream
| FALSE | evaluated 98113 times by 49 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QBrush
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLCDNumber
- tst_QLabel
- tst_QMetaType
- tst_QOpenGlConfig
- tst_QPageSize
- ...
|
| 5369-98113 |
496 | for (int i = decpt - 3; i > 0; i -= 3)TRUE | evaluated 2234 times by 3 testsEvaluated by:- tst_QDoubleSpinBox
- tst_QString
- tst_QTextStream
| FALSE | evaluated 5369 times by 11 testsEvaluated by:- tst_QAccessibility
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QPrinter
- tst_QString
- tst_QTextStream
|
| 2234-5369 |
497 | digits.insert(i, group);executed 2234 times by 3 tests: digits.insert(i, group); Executed by:- tst_QDoubleSpinBox
- tst_QString
- tst_QTextStream
| 2234 |
498 | }executed 5369 times by 11 tests: end of block Executed by:- tst_QAccessibility
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QPrinter
- tst_QString
- tst_QTextStream
| 5369 |
499 | | - |
500 | if (decpt == 0)TRUE | evaluated 45893 times by 13 testsEvaluated by:- tst_QColor
- tst_QDBusMarshall
- tst_QDoubleSpinBox
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QPrinter
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextStream
- tst_QTreeWidget
| FALSE | evaluated 57589 times by 53 testsEvaluated by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QBrush
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- ...
|
| 45893-57589 |
501 | digits.prepend(zero);executed 45893 times by 13 tests: digits.prepend(zero); Executed by:- tst_QColor
- tst_QDBusMarshall
- tst_QDoubleSpinBox
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QPrinter
- tst_QString
- tst_QTcpSocket
- tst_QTextDocument
- tst_QTextStream
- tst_QTreeWidget
| 45893 |
502 | | - |
503 | return digits;executed 103482 times by 54 tests: return digits; Executed by:- tst_PlatformSocketEngine
- tst_QAccessibility
- tst_QBrush
- tst_QByteArray
- tst_QByteDataBuffer
- tst_QColor
- tst_QCssParser
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDebug
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsAnchorLayout
- tst_QGraphicsItem
- tst_QGraphicsItemAnimation
- tst_QGraphicsTransform
- tst_QGraphicsView
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- ...
| 103482 |
504 | } | - |
505 | | - |
506 | QString &exponentForm(QChar zero, QChar decimal, QChar exponential, | - |
507 | QChar group, QChar plus, QChar minus, | - |
508 | QString &digits, int decpt, int precision, | - |
509 | PrecisionMode pm, | - |
510 | bool always_show_decpt, | - |
511 | bool leading_zero_in_exponent) | - |
512 | { | - |
513 | int exp = decpt - 1; | - |
514 | | - |
515 | if (pm == PMDecimalDigits) {TRUE | evaluated 17 times by 3 testsEvaluated by:- tst_QString
- tst_QStringRef
- tst_QTextStream
| FALSE | evaluated 6335 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDoubleSpinBox
- tst_QGraphicsTransform
- tst_QString
- tst_QTextStream
|
| 17-6335 |
516 | for (int i = digits.length(); i < precision + 1; ++i)TRUE | evaluated 16 times by 3 testsEvaluated by:- tst_QString
- tst_QStringRef
- tst_QTextStream
| FALSE | evaluated 17 times by 3 testsEvaluated by:- tst_QString
- tst_QStringRef
- tst_QTextStream
|
| 16-17 |
517 | digits.append(zero);executed 16 times by 3 tests: digits.append(zero); Executed by:- tst_QString
- tst_QStringRef
- tst_QTextStream
| 16 |
518 | }executed 17 times by 3 tests: end of block Executed by:- tst_QString
- tst_QStringRef
- tst_QTextStream
| 17 |
519 | else if (pm == PMSignificantDigits) {TRUE | evaluated 2224 times by 1 test | FALSE | evaluated 4111 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDoubleSpinBox
- tst_QGraphicsTransform
- tst_QString
- tst_QTextStream
|
| 2224-4111 |
520 | for (int i = digits.length(); i < precision; ++i)TRUE | evaluated 1920 times by 1 test | FALSE | evaluated 2224 times by 1 test |
| 1920-2224 |
521 | digits.append(zero);executed 1920 times by 1 test: digits.append(zero); | 1920 |
522 | }executed 2224 times by 1 test: end of block | 2224 |
523 | else { | - |
524 | }executed 4111 times by 5 tests: end of block Executed by:- tst_QByteArray
- tst_QDoubleSpinBox
- tst_QGraphicsTransform
- tst_QString
- tst_QTextStream
| 4111 |
525 | | - |
526 | if (always_show_decpt || digits.length() > 1)TRUE | evaluated 2226 times by 2 testsEvaluated by:- tst_QString
- tst_QTextStream
| FALSE | evaluated 4126 times by 6 testsEvaluated by:- tst_QByteArray
- tst_QDoubleSpinBox
- tst_QGraphicsTransform
- tst_QString
- tst_QStringRef
- tst_QTextStream
|
TRUE | evaluated 2805 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QGraphicsTransform
- tst_QString
- tst_QStringRef
- tst_QTextStream
| FALSE | evaluated 1321 times by 2 testsEvaluated by:- tst_QDoubleSpinBox
- tst_QString
|
| 1321-4126 |
527 | digits.insert(1, decimal);executed 5031 times by 5 tests: digits.insert(1, decimal); Executed by:- tst_QByteArray
- tst_QGraphicsTransform
- tst_QString
- tst_QStringRef
- tst_QTextStream
| 5031 |
528 | | - |
529 | digits.append(exponential); | - |
530 | digits.append(QLocaleData::longLongToString(zero, group, plus, minus, | - |
531 | exp, leading_zero_in_exponent ? 2 : 1, 10, -1, QLocaleData::AlwaysShowSign)); | - |
532 | | - |
533 | return digits;executed 6352 times by 6 tests: return digits; Executed by:- tst_QByteArray
- tst_QDoubleSpinBox
- tst_QGraphicsTransform
- tst_QString
- tst_QStringRef
- tst_QTextStream
| 6352 |
534 | } | - |
535 | | - |
536 | double qstrtod(const char *s00, const char **se, bool *ok) | - |
537 | { | - |
538 | const int len = static_cast<int>(strlen(s00)); | - |
539 | Q_ASSERT(len >= 0); | - |
540 | return qstrntod(s00, len, se, ok); never executed: return qstrntod(s00, len, se, ok); | 0 |
541 | } | - |
542 | | - |
543 | | - |
544 | | - |
545 | | - |
546 | | - |
547 | | - |
548 | double qstrntod(const char *s00, int len, const char **se, bool *ok) | - |
549 | { | - |
550 | int processed = 0; | - |
551 | bool nonNullOk = false; | - |
552 | double d = asciiToDouble(s00, len, nonNullOk, processed, TrailingJunkAllowed); | - |
553 | if (se)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
554 | *se = s00 + processed; never executed: *se = s00 + processed; | 0 |
555 | if (ok)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
556 | *ok = nonNullOk; never executed: *ok = nonNullOk; | 0 |
557 | return d; never executed: return d; | 0 |
558 | } | - |
559 | | - |
560 | QString qdtoa(qreal d, int *decpt, int *sign) | - |
561 | { | - |
562 | bool nonNullSign = false; | - |
563 | int nonNullDecpt = 0; | - |
564 | int length = 0; | - |
565 | | - |
566 | | - |
567 | char result[QLocaleData::DoubleMaxSignificant + 1]; | - |
568 | doubleToAscii(d, QLocaleData::DFSignificantDigits, QLocale::FloatingPointShortest, result, | - |
569 | QLocaleData::DoubleMaxSignificant + 1, nonNullSign, length, nonNullDecpt); | - |
570 | | - |
571 | if (sign)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
572 | *sign = nonNullSign ? 1 : 0; never executed: *sign = nonNullSign ? 1 : 0; TRUE | never evaluated | FALSE | never evaluated |
| 0 |
573 | if (decpt)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
574 | *decpt = nonNullDecpt; never executed: *decpt = nonNullDecpt; | 0 |
575 | | - |
576 | return QLatin1String(result, length); never executed: return QLatin1String(result, length); | 0 |
577 | } | - |
578 | | - |
579 | QT_END_NAMESPACE | - |
| | |