qtextstream.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qtextstream.cpp
Switch to Source codePreprocessed file
LineSourceCount
1static const int QTEXTSTREAM_BUFFERSIZE = 16384;-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15QTextStreamPrivate::QTextStreamPrivate(QTextStream *q_ptr)-
16 :-
17-
18 readConverterSavedState(0),-
19-
20 readConverterSavedStateOffset(0),-
21 locale(QLocale::c())-
22{-
23 this->q_ptr = q_ptr;-
24 reset();-
25}
executed 79221 times by 96 tests: end of block
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_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
79221
26-
27-
28-
29-
30QTextStreamPrivate::~QTextStreamPrivate()-
31{-
32 if (deleteDevice
deleteDeviceDescription
TRUEevaluated 845 times by 8 tests
Evaluated by:
  • tst_QKeyEvent
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qmakelib
  • tst_qtextstream - unknown status
FALSEevaluated 78376 times by 93 tests
Evaluated 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
) {
845-78376
33-
34 device->blockSignals(true);-
35-
36 delete device;-
37 }
executed 845 times by 8 tests: end of block
Executed by:
  • tst_QKeyEvent
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qmakelib
  • tst_qtextstream - unknown status
845
38-
39 delete readConverterSavedState;-
40-
41}
executed 79221 times by 96 tests: end of block
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_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
79221
42-
43-
44static void resetCodecConverterStateHelper(QTextCodec::ConverterState *state)-
45{-
46 state->~ConverterState();-
47 new (state) QTextCodec::ConverterState;-
48}
executed 589195 times by 96 tests: end of block
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_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
589195
49-
50static void copyConverterStateHelper(QTextCodec::ConverterState *dest,-
51 const QTextCodec::ConverterState *src)-
52{-
53-
54-
55 ((!(!src->d)) ? qt_assert("!src->d",__FILE__,369) : qt_noop());-
56 dest->flags = src->flags;-
57 dest->invalidChars = src->invalidChars;-
58 dest->state_data[0] = src->state_data[0];-
59 dest->state_data[1] = src->state_data[1];-
60 dest->state_data[2] = src->state_data[2];-
61}
executed 2698 times by 16 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
2698
62-
63-
64void QTextStreamPrivate::Params::reset()-
65{-
66 realNumberPrecision = 6;-
67 integerBase = 0;-
68 fieldWidth = 0;-
69 padChar = QLatin1Char(' ');-
70 fieldAlignment = QTextStream::AlignRight;-
71 realNumberNotation = QTextStream::SmartNotation;-
72 numberFlags = 0;-
73}
executed 93328 times by 96 tests: end of block
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_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
93328
74-
75-
76-
77-
78void QTextStreamPrivate::reset()-
79{-
80 params.reset();-
81-
82 device = 0;-
83 deleteDevice = false;-
84 string = 0;-
85 stringOffset = 0;-
86 stringOpenMode = QIODevice::NotOpen;-
87-
88 readBufferOffset = 0;-
89 readBufferStartDevicePos = 0;-
90 lastTokenSize = 0;-
91-
92-
93 codec = QTextCodec::codecForLocale();-
94 resetCodecConverterStateHelper(&readConverterState);-
95 resetCodecConverterStateHelper(&writeConverterState);-
96 delete readConverterSavedState;-
97 readConverterSavedState = 0;-
98 writeConverterState.flags |= QTextCodec::IgnoreHeader;-
99 autoDetectUnicode = true;-
100-
101}
executed 79239 times by 96 tests: end of block
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_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
79239
102-
103-
104-
105-
106bool QTextStreamPrivate::fillReadBuffer(qint64 maxBytes)-
107{-
108-
109-
110 ((!(!string)) ? qt_assert("!string",__FILE__,424) : qt_noop());-
111 ((!(device)) ? qt_assert("device",__FILE__,425) : qt_noop());-
112-
113-
114 bool textModeEnabled = device->isTextModeEnabled();-
115 if (textModeEnabled
textModeEnabledDescription
TRUEevaluated 41040053 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
FALSEevaluated 2563 times by 13 tests
Evaluated by:
  • tst_QFileSystemModel
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
)
2563-41040053
116 device->setTextModeEnabled(false);
executed 41040053 times by 6 tests: device->setTextModeEnabled(false);
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
41040053
117-
118-
119 char buf[QTEXTSTREAM_BUFFERSIZE];-
120 qint64 bytesRead = 0;-
121 {-
122 if (maxBytes != -1
maxBytes != -1Description
TRUEevaluated 41035294 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 7322 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
)
7322-41035294
123 bytesRead = device->read(buf, qMin<qint64>(sizeof(buf), maxBytes));
executed 41035294 times by 1 test: bytesRead = device->read(buf, qMin<qint64>(sizeof(buf), maxBytes));
Executed by:
  • tst_QTextStream
41035294
124 else-
125 bytesRead = device->read(buf, sizeof(buf));
executed 7322 times by 17 tests: bytesRead = device->read(buf, sizeof(buf));
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
7322
126 }-
127-
128-
129 if (textModeEnabled
textModeEnabledDescription
TRUEevaluated 41040053 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
FALSEevaluated 2563 times by 13 tests
Evaluated by:
  • tst_QFileSystemModel
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
)
2563-41040053
130 device->setTextModeEnabled(true);
executed 41040053 times by 6 tests: device->setTextModeEnabled(true);
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
41040053
131-
132 if (bytesRead <= 0
bytesRead <= 0Description
TRUEevaluated 2523 times by 7 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QTextStream
  • tst_QXmlSimpleReader
FALSEevaluated 41040093 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
)
2523-41040093
133 return
executed 2523 times by 7 tests: return false;
Executed by:
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QTextStream
  • tst_QXmlSimpleReader
false;
executed 2523 times by 7 tests: return false;
Executed by:
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QTextStream
  • tst_QXmlSimpleReader
2523
134-
135-
136-
137-
138 if (!codec
!codecDescription
TRUEnever evaluated
FALSEevaluated 41040093 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
|| autoDetectUnicode
autoDetectUnicodeDescription
TRUEevaluated 4547 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 41035546 times by 5 tests
Evaluated by:
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QSplitter
  • tst_QTextStream
  • tst_QTimeZone
) {
0-41040093
139 autoDetectUnicode = false;-
140-
141 codec = QTextCodec::codecForUtfText(QByteArray::fromRawData(buf, bytesRead), codec);-
142 if (!codec
!codecDescription
TRUEnever evaluated
FALSEevaluated 4547 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
) {
0-4547
143 codec = QTextCodec::codecForLocale();-
144 writeConverterState.flags |= QTextCodec::IgnoreHeader;-
145 }
never executed: end of block
0
146 }
executed 4547 times by 17 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
4547
147 int oldReadBufferSize = readBuffer.size();-
148-
149-
150 readBuffer += __builtin_expect(!!(codec), true)
__builtin_expe...(codec), true)Description
TRUEevaluated 41040093 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
FALSEnever evaluated
? codec->toUnicode(buf, bytesRead, &readConverterState)
0-41040093
151 : QString::fromLatin1(buf, bytesRead);-
152-
153-
154-
155-
156-
157 if (readBuffer.size() > oldReadBufferSize
readBuffer.siz...ReadBufferSizeDescription
TRUEevaluated 41039411 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 682 times by 1 test
Evaluated by:
  • tst_QTextStream
&& textModeEnabled
textModeEnabledDescription
TRUEevaluated 41037818 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
FALSEevaluated 1593 times by 13 tests
Evaluated by:
  • tst_QFileSystemModel
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
) {
682-41039411
158 QChar CR = QLatin1Char('\r');-
159 QChar *writePtr = readBuffer.data() + oldReadBufferSize;-
160 QChar *readPtr = readBuffer.data() + oldReadBufferSize;-
161 QChar *endPtr = readBuffer.data() + readBuffer.size();-
162-
163 int n = oldReadBufferSize;-
164 if (readPtr < endPtr
readPtr < endPtrDescription
TRUEevaluated 41037818 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
FALSEnever evaluated
) {
0-41037818
165-
166 while (*
*readPtr++ != CRDescription
TRUEevaluated 63893758 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
FALSEevaluated 110 times by 1 test
Evaluated by:
  • tst_QTextStream
readPtr++ != CR
*readPtr++ != CRDescription
TRUEevaluated 63893758 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
FALSEevaluated 110 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
110-63893758
167 ++n;-
168 if (++
++writePtr == endPtrDescription
TRUEevaluated 41037708 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
FALSEevaluated 22856050 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
writePtr == endPtr
++writePtr == endPtrDescription
TRUEevaluated 41037708 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
FALSEevaluated 22856050 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
)
22856050-41037708
169 break;
executed 41037708 times by 6 tests: break;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
41037708
170 }
executed 22856050 times by 6 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
22856050
171 }
executed 41037818 times by 6 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
41037818
172 while (readPtr < endPtr
readPtr < endPtrDescription
TRUEevaluated 146620 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 41037818 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
) {
146620-41037818
173 QChar ch = *readPtr++;-
174 if (ch != CR
ch != CRDescription
TRUEevaluated 124415 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 22205 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
22205-124415
175 *writePtr++ = ch;-
176 }
executed 124415 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
124415
177 if (n < readBufferOffset
n < readBufferOffsetDescription
TRUEnever evaluated
FALSEevaluated 22205 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-22205
178 --
never executed: --readBufferOffset;
readBufferOffset;
never executed: --readBufferOffset;
0
179 --bytesRead;-
180 }
executed 22205 times by 1 test: end of block
Executed by:
  • tst_QTextStream
22205
181 ++n;-
182 }
executed 146620 times by 1 test: end of block
Executed by:
  • tst_QTextStream
146620
183 readBuffer.resize(writePtr - readBuffer.data());-
184 }
executed 41037818 times by 6 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_QXmlSimpleReader
41037818
185-
186-
187-
188-
189-
190 return
executed 41040093 times by 17 tests: return true;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
true;
executed 41040093 times by 17 tests: return true;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
41040093
191}-
192-
193-
194-
195-
196void QTextStreamPrivate::resetReadBuffer()-
197{-
198 readBuffer.clear();-
199 readBufferOffset = 0;-
200 readBufferStartDevicePos = (device
deviceDescription
TRUEevaluated 214481 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
? device->pos() : 0);
1-214481
201}
executed 214482 times by 1 test: end of block
Executed by:
  • tst_QTextStream
214482
202-
203-
204-
205-
206void QTextStreamPrivate::flushWriteBuffer()-
207{-
208-
209-
210 if (string
stringDescription
TRUEevaluated 48597 times by 7 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QLogging
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
FALSEevaluated 241565 times by 19 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
|| !device
!deviceDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 241552 times by 19 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
)
13-241565
211 return;
executed 48610 times by 7 tests: return;
Executed by:
  • tst_QDBusXmlParser
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QLogging
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
48610
212-
213-
214-
215 if (status != QTextStream::Ok
status != QTextStream::OkDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 241549 times by 19 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
)
3-241549
216 return;
executed 3 times by 1 test: return;
Executed by:
  • tst_QTextStream
3
217-
218 if (writeBuffer.isEmpty()
writeBuffer.isEmpty()Description
TRUEevaluated 214885 times by 6 tests
Evaluated by:
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QSaveFile
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 26664 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
)
26664-214885
219 return;
executed 214885 times by 6 tests: return;
Executed by:
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QSaveFile
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_qdbusxml2cpp - unknown status
214885
220 if (!codec
!codecDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qtextstream - unknown status
FALSEevaluated 26663 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
)
1-26663
221 codec = QTextCodec::codecForLocale();
executed 1 time by 1 test: codec = QTextCodec::codecForLocale();
Executed by:
  • tst_qtextstream - unknown status
1
222 QByteArray data = __builtin_expect(!!(codec), true)
__builtin_expe...(codec), true)Description
TRUEevaluated 26663 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qtextstream - unknown status
? codec->fromUnicode(writeBuffer.data(), writeBuffer.size(), &writeConverterState)
1-26663
223 : writeBuffer.toLatin1();-
224-
225-
226-
227 writeBuffer.clear();-
228-
229-
230 qint64 bytesWritten = device->write(data);-
231 if (bytesWritten <= 0
bytesWritten <= 0Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 26662 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
) {
2-26662
232 status = QTextStream::WriteFailed;-
233 return;
executed 2 times by 2 tests: return;
Executed by:
  • tst_QString
  • tst_QTextStream
2
234 }-
235-
236-
237-
238 QFileDevice *file = qobject_cast<QFileDevice *>(device);-
239 bool flushed = !file
!fileDescription
TRUEevaluated 10830 times by 7 tests
Evaluated by:
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
FALSEevaluated 15832 times by 11 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTextStream
|| file->flush()
file->flush()Description
TRUEevaluated 15832 times by 11 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QTextStream
FALSEnever evaluated
;
0-15832
240 if (!flushed
!flushedDescription
TRUEnever evaluated
FALSEevaluated 26662 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
|| bytesWritten != qint64(data.size())
bytesWritten !...4(data.size())Description
TRUEnever evaluated
FALSEevaluated 26662 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
)
0-26662
241 status = QTextStream::WriteFailed;
never executed: status = QTextStream::WriteFailed;
0
242}
executed 26662 times by 17 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
26662
243-
244QString QTextStreamPrivate::read(int maxlen)-
245{-
246 QString ret;-
247 if (string
stringDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 1871 times by 2 tests
Evaluated by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
) {
5-1871
248 lastTokenSize = qMin(maxlen, string->size() - stringOffset);-
249 ret = string->mid(stringOffset, lastTokenSize);-
250 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
5
251 while (readBuffer.size() - readBufferOffset < maxlen
readBuffer.siz...ffset < maxlenDescription
TRUEevaluated 3731 times by 2 tests
Evaluated by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QTextStream
&& fillReadBuffer()
fillReadBuffer()Description
TRUEevaluated 1867 times by 2 tests
Evaluated by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
FALSEevaluated 1864 times by 2 tests
Evaluated by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
) ;
executed 1867 times by 2 tests: ;
Executed by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
7-3731
252 lastTokenSize = qMin(maxlen, readBuffer.size() - readBufferOffset);-
253 ret = readBuffer.mid(readBufferOffset, lastTokenSize);-
254 }
executed 1871 times by 2 tests: end of block
Executed by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
1871
255 consumeLastToken();-
256-
257-
258-
259-
260 return
executed 1876 times by 2 tests: return ret;
Executed by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
ret;
executed 1876 times by 2 tests: return ret;
Executed by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
1876
261}-
262bool QTextStreamPrivate::scan(const QChar **ptr, int *length, int maxlen, TokenDelimiter delimiter)-
263{-
264 int totalSize = 0;-
265 int delimSize = 0;-
266 bool consumeDelimiter = false;-
267 bool foundToken = false;-
268 int startOffset = device
deviceDescription
TRUEevaluated 183752 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 24207 times by 4 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QTextStream
? readBufferOffset : stringOffset;
24207-183752
269 QChar lastChar;-
270-
271 bool canStillReadFromDevice = true;-
272 do {-
273 int endOffset;-
274 const QChar *chPtr;-
275 if (device
deviceDescription
TRUEevaluated 186683 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 24207 times by 4 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QTextStream
) {
24207-186683
276 chPtr = readBuffer.constData();-
277 endOffset = readBuffer.size();-
278 }
executed 186683 times by 16 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
else {
186683
279 chPtr = string->constData();-
280 endOffset = string->size();-
281 }
executed 24207 times by 4 tests: end of block
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QTextStream
24207
282 chPtr += startOffset;-
283-
284 for (; !foundToken
!foundTokenDescription
TRUEevaluated 4218720 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 207676 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
&& startOffset < endOffset
startOffset < endOffsetDescription
TRUEevaluated 4215516 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 3204 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
&& (!maxlen
!maxlenDescription
TRUEevaluated 4164300 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 51216 times by 2 tests
Evaluated by:
  • tst_QLayout
  • tst_QTextStream
|| totalSize < maxlen
totalSize < maxlenDescription
TRUEevaluated 51206 times by 2 tests
Evaluated by:
  • tst_QLayout
  • tst_QTextStream
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QTextStream
); ++startOffset) {
10-4218720
285 const QChar ch = *chPtr++;-
286 ++totalSize;-
287-
288 switch (delimiter) {-
289 case
executed 5982 times by 4 tests: case Space:
Executed by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
Space:
executed 5982 times by 4 tests: case Space:
Executed by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
5982
290 if (ch.isSpace()
ch.isSpace()Description
TRUEevaluated 424 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
FALSEevaluated 5558 times by 4 tests
Evaluated by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
) {
424-5558
291 foundToken = true;-
292 delimSize = 1;-
293 }
executed 424 times by 3 tests: end of block
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
424
294 break;
executed 5982 times by 4 tests: break;
Executed by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
5982
295 case
executed 63851 times by 4 tests: case NotSpace:
Executed by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
NotSpace:
executed 63851 times by 4 tests: case NotSpace:
Executed by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
63851
296 if (!ch.isSpace()
!ch.isSpace()Description
TRUEevaluated 22940 times by 4 tests
Evaluated by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
FALSEevaluated 40911 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
) {
22940-40911
297 foundToken = true;-
298 delimSize = 1;-
299 }
executed 22940 times by 4 tests: end of block
Executed by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
22940
300 break;
executed 63851 times by 4 tests: break;
Executed by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
63851
301 case
executed 4145673 times by 14 tests: case EndOfLine:
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
EndOfLine:
executed 4145673 times by 14 tests: case EndOfLine:
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
4145673
302 if (ch == QLatin1Char('\n')
ch == QLatin1Char('\n')Description
TRUEevaluated 184312 times by 13 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 3961361 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
) {
184312-3961361
303 foundToken = true;-
304 delimSize = (
(lastChar == Q...in1Char('\r'))Description
TRUEevaluated 75386 times by 2 tests
Evaluated by:
  • tst_QTcpSocket
  • tst_QTextStream
FALSEevaluated 108926 times by 12 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
lastChar == QLatin1Char('\r'))
(lastChar == Q...in1Char('\r'))Description
TRUEevaluated 75386 times by 2 tests
Evaluated by:
  • tst_QTcpSocket
  • tst_QTextStream
FALSEevaluated 108926 times by 12 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
? 2 : 1;
75386-108926
305 consumeDelimiter = true;-
306 }
executed 184312 times by 13 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
184312
307 lastChar = ch;-
308 break;
executed 4145673 times by 14 tests: break;
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
4145673
309 }-
310 }
executed 4214578 times by 17 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
4214578
311 }
executed 210890 times by 17 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
while (!foundToken
!foundTokenDescription
TRUEevaluated 3214 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 207676 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
3214-210890
312 && (!maxlen
!maxlenDescription
TRUEevaluated 3186 times by 15 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 28 times by 2 tests
Evaluated by:
  • tst_QLayout
  • tst_QTextStream
|| totalSize < maxlen
totalSize < maxlenDescription
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QLayout
  • tst_QTextStream
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextStream
)
12-3186
313 && (device
deviceDescription
TRUEevaluated 3174 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 28 times by 2 tests
Evaluated by:
  • tst_QLoggingRegistry
  • tst_QTextStream
&& (
(canStillReadF...lReadBuffer())Description
TRUEevaluated 2931 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 243 times by 6 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QTextStream
canStillReadFromDevice = fillReadBuffer())
(canStillReadF...lReadBuffer())Description
TRUEevaluated 2931 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 243 times by 6 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QTextStream
));
28-3174
314-
315 if (totalSize == 0
totalSize == 0Description
TRUEevaluated 79 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 207880 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
) {
79-207880
316-
317-
318-
319 return
executed 79 times by 1 test: return false;
Executed by:
  • tst_QTextStream
false;
executed 79 times by 1 test: return false;
Executed by:
  • tst_QTextStream
79
320 }-
321-
322-
323-
324 if (delimiter == EndOfLine
delimiter == EndOfLineDescription
TRUEevaluated 184388 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 23492 times by 4 tests
Evaluated by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
&& totalSize > 0
totalSize > 0Description
TRUEevaluated 184388 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
&& !foundToken
!foundTokenDescription
TRUEevaluated 76 times by 4 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTextStream
FALSEevaluated 184312 times by 13 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
) {
0-184388
325 if (((string
stringDescription
TRUEevaluated 21 times by 2 tests
Evaluated by:
  • tst_QLoggingRegistry
  • tst_QTextStream
FALSEevaluated 55 times by 4 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTextStream
&& stringOffset + totalSize == string->size()
stringOffset +...string->size()Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QLoggingRegistry
  • tst_QTextStream
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QTextStream
) || (device
deviceDescription
TRUEevaluated 55 times by 4 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTextStream
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QTextStream
&& device->atEnd()
device->atEnd()Description
TRUEevaluated 53 times by 4 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTextStream
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
))
2-55
326 && lastChar == QLatin1Char('\r')
lastChar == QLatin1Char('\r')Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 58 times by 4 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTextStream
) {
11-58
327 consumeDelimiter = true;-
328 ++delimSize;-
329 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_QTextStream
11
330 }
executed 76 times by 4 tests: end of block
Executed by:
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTextStream
76
331-
332-
333 if (length
lengthDescription
TRUEevaluated 184841 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 23039 times by 4 tests
Evaluated by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
)
23039-184841
334 *
executed 184841 times by 17 tests: *length = totalSize - delimSize;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
length = totalSize - delimSize;
executed 184841 times by 17 tests: *length = totalSize - delimSize;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
184841
335 if (ptr
ptrDescription
TRUEevaluated 184841 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 23039 times by 4 tests
Evaluated by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
)
23039-184841
336 *
executed 184841 times by 17 tests: *ptr = readPtr();
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
ptr = readPtr();
executed 184841 times by 17 tests: *ptr = readPtr();
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
184841
337-
338-
339-
340 lastTokenSize = totalSize;-
341 if (!consumeDelimiter
!consumeDelimiterDescription
TRUEevaluated 23557 times by 7 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
FALSEevaluated 184323 times by 13 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
)
23557-184323
342 lastTokenSize -= delimSize;
executed 23557 times by 7 tests: lastTokenSize -= delimSize;
Executed by:
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
23557
343-
344-
345-
346-
347-
348 return
executed 207880 times by 17 tests: return true;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
true;
executed 207880 times by 17 tests: return true;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
207880
349}-
350-
351-
352-
353-
354inline const QChar *QTextStreamPrivate::readPtr() const-
355{-
356 ((!(readBufferOffset <= readBuffer.size())) ? qt_assert("readBufferOffset <= readBuffer.size()",__FILE__,744) : qt_noop());-
357 if (string
stringDescription
TRUEevaluated 24368 times by 4 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QTextStream
FALSEevaluated 230089 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
)
24368-230089
358 return
executed 24368 times by 4 tests: return string->constData() + stringOffset;
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QTextStream
string->constData() + stringOffset;
executed 24368 times by 4 tests: return string->constData() + stringOffset;
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QTextStream
24368
359 return
executed 230089 times by 16 tests: return readBuffer.constData() + readBufferOffset;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
readBuffer.constData() + readBufferOffset;
executed 230089 times by 16 tests: return readBuffer.constData() + readBufferOffset;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
230089
360}-
361-
362-
363-
364-
365inline void QTextStreamPrivate::consumeLastToken()-
366{-
367 if (lastTokenSize
lastTokenSizeDescription
TRUEevaluated 208105 times by 18 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 867 times by 4 tests
Evaluated by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
)
867-208105
368 consume(lastTokenSize);
executed 208105 times by 18 tests: consume(lastTokenSize);
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
208105
369 lastTokenSize = 0;-
370}
executed 208972 times by 18 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
208972
371-
372-
373-
374-
375inline void QTextStreamPrivate::consume(int size)-
376{-
377-
378-
379-
380 if (string
stringDescription
TRUEevaluated 24412 times by 4 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QTextStream
FALSEevaluated 253309 times by 17 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
) {
24412-253309
381 stringOffset += size;-
382 if (stringOffset > string->size()
stringOffset > string->size()Description
TRUEnever evaluated
FALSEevaluated 24412 times by 4 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QTextStream
)
0-24412
383 stringOffset = string->size();
never executed: stringOffset = string->size();
0
384 }
executed 24412 times by 4 tests: end of block
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QTextStream
else {
24412
385 readBufferOffset += size;-
386 if (readBufferOffset >= readBuffer.size()
readBufferOffs...dBuffer.size()Description
TRUEevaluated 2698 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 250611 times by 10 tests
Evaluated by:
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QSplitter
  • tst_QString
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
) {
2698-250611
387 readBufferOffset = 0;-
388 readBuffer.clear();-
389 saveConverterState(device->pos());-
390 }
executed 2698 times by 16 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
else if (readBufferOffset > QTEXTSTREAM_BUFFERSIZE
readBufferOffs...EAM_BUFFERSIZEDescription
TRUEevaluated 1300 times by 3 tests
Evaluated by:
  • tst_QLayout
  • tst_QTextStream
  • tst_QTimeZone
FALSEevaluated 249311 times by 10 tests
Evaluated by:
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QSplitter
  • tst_QString
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
) {
1300-249311
391 readBuffer = readBuffer.remove(0,readBufferOffset);-
392 readConverterSavedStateOffset += readBufferOffset;-
393 readBufferOffset = 0;-
394 }
executed 1300 times by 3 tests: end of block
Executed by:
  • tst_QLayout
  • tst_QTextStream
  • tst_QTimeZone
1300
395 }
executed 253309 times by 17 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
253309
396}-
397-
398-
399-
400-
401inline void QTextStreamPrivate::saveConverterState(qint64 newPos)-
402{-
403-
404 if (readConverterState.d
readConverterState.dDescription
TRUEnever evaluated
FALSEevaluated 2698 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
) {
0-2698
405-
406-
407 return;
never executed: return;
0
408 }-
409-
410 if (!readConverterSavedState
!readConverterSavedStateDescription
TRUEevaluated 2666 times by 16 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 32 times by 2 tests
Evaluated by:
  • tst_QSplitter
  • tst_QTextStream
)
32-2666
411 readConverterSavedState = new QTextCodec::ConverterState;
executed 2666 times by 16 tests: readConverterSavedState = new QTextCodec::ConverterState;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
2666
412 copyConverterStateHelper(readConverterSavedState, &readConverterState);-
413-
414-
415 readBufferStartDevicePos = newPos;-
416 readConverterSavedStateOffset = 0;-
417}
executed 2698 times by 16 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSettings
  • tst_QSplitter
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
2698
418-
419-
420-
421-
422inline void QTextStreamPrivate::restoreToSavedConverterState()-
423{-
424-
425 if (readConverterSavedState
readConverterSavedStateDescription
TRUEnever evaluated
FALSEevaluated 1775 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-1775
426-
427-
428 copyConverterStateHelper(&readConverterState, readConverterSavedState);-
429 }
never executed: end of block
else {
0
430-
431-
432 resetCodecConverterStateHelper(&readConverterState);-
433 }
executed 1775 times by 1 test: end of block
Executed by:
  • tst_QTextStream
1775
434-
435}-
436-
437-
438-
439-
440void QTextStreamPrivate::write(const QChar *data, int len)-
441{-
442 if (string
stringDescription
TRUEevaluated 162509 times by 79 tests
Evaluated 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_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • ...
FALSEevaluated 33084 times by 13 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
) {
33084-162509
443-
444 string->append(data, len);-
445 }
executed 162509 times by 79 tests: end of block
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_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • ...
else {
162509
446 writeBuffer.append(data, len);-
447 if (writeBuffer.size() > QTEXTSTREAM_BUFFERSIZE
writeBuffer.si...EAM_BUFFERSIZEDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QLocalSocket
  • tst_QTextStream
FALSEevaluated 33080 times by 13 tests
Evaluated by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
)
4-33080
448 flushWriteBuffer();
executed 4 times by 2 tests: flushWriteBuffer();
Executed by:
  • tst_QLocalSocket
  • tst_QTextStream
4
449 }
executed 33084 times by 13 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
33084
450}-
451-
452-
453-
454-
455inline void QTextStreamPrivate::write(QChar ch)-
456{-
457 if (string
stringDescription
TRUEevaluated 94016 times by 75 tests
Evaluated 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_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • ...
FALSEevaluated 70541 times by 11 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
) {
70541-94016
458-
459 string->append(ch);-
460 }
executed 94016 times by 75 tests: end of block
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_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • ...
else {
94016
461 writeBuffer += ch;-
462 if (writeBuffer.size() > QTEXTSTREAM_BUFFERSIZE
writeBuffer.si...EAM_BUFFERSIZEDescription
TRUEnever evaluated
FALSEevaluated 70541 times by 11 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
)
0-70541
463 flushWriteBuffer();
never executed: flushWriteBuffer();
0
464 }
executed 70541 times by 11 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
70541
465}-
466-
467-
468-
469-
470void QTextStreamPrivate::write(QLatin1String data)-
471{-
472 if (string
stringDescription
TRUEevaluated 41996 times by 19 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QLogging
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextStream
  • tst_QTreeView
  • tst_QVariant
  • tst_QWidget_window
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Selftests
  • tst_selftests - unknown status
FALSEevaluated 18796 times by 14 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
) {
18796-41996
473-
474 string->append(data);-
475 }
executed 41996 times by 19 tests: end of block
Executed by:
  • tst_QDBusXmlParser
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QLogging
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextStream
  • tst_QTreeView
  • tst_QVariant
  • tst_QWidget_window
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Selftests
  • tst_selftests - unknown status
else {
41996
476 writeBuffer += data;-
477 if (writeBuffer.size() > QTEXTSTREAM_BUFFERSIZE
writeBuffer.si...EAM_BUFFERSIZEDescription
TRUEnever evaluated
FALSEevaluated 18796 times by 14 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
)
0-18796
478 flushWriteBuffer();
never executed: flushWriteBuffer();
0
479 }
executed 18796 times by 14 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
18796
480}-
481-
482-
483-
484-
485void QTextStreamPrivate::writePadding(int len)-
486{-
487 if (string
stringDescription
TRUEevaluated 72 times by 4 tests
Evaluated by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
FALSEevaluated 4406 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
72-4406
488-
489 string->resize(string->size() + len, params.padChar);-
490 }
executed 72 times by 4 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
else {
72
491 writeBuffer.resize(writeBuffer.size() + len, params.padChar);-
492 if (writeBuffer.size() > QTEXTSTREAM_BUFFERSIZE
writeBuffer.si...EAM_BUFFERSIZEDescription
TRUEnever evaluated
FALSEevaluated 4406 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-4406
493 flushWriteBuffer();
never executed: flushWriteBuffer();
0
494 }
executed 4406 times by 1 test: end of block
Executed by:
  • tst_QTextStream
4406
495}-
496-
497-
498-
499-
500inline bool QTextStreamPrivate::getChar(QChar *ch)-
501{-
502 if ((string
stringDescription
TRUEevaluated 250 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 69793 times by 2 tests
Evaluated by:
  • tst_QSplitter
  • tst_QTextStream
&& stringOffset == string->size()
stringOffset == string->size()Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 239 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
)
11-69793
503 || (device
deviceDescription
TRUEevaluated 69793 times by 2 tests
Evaluated by:
  • tst_QSplitter
  • tst_QTextStream
FALSEevaluated 239 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
&& readBuffer.isEmpty()
readBuffer.isEmpty()Description
TRUEevaluated 417 times by 2 tests
Evaluated by:
  • tst_QSplitter
  • tst_QTextStream
FALSEevaluated 69376 times by 2 tests
Evaluated by:
  • tst_QSplitter
  • tst_QTextStream
&& !fillReadBuffer()
!fillReadBuffer()Description
TRUEevaluated 416 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QSplitter
)) {
1-69793
504 if (ch
chDescription
TRUEevaluated 427 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEnever evaluated
)
0-427
505 *
executed 427 times by 2 tests: *ch = 0;
Executed by:
  • tst_QString
  • tst_QTextStream
ch = 0;
executed 427 times by 2 tests: *ch = 0;
Executed by:
  • tst_QString
  • tst_QTextStream
427
506 return
executed 427 times by 2 tests: return false;
Executed by:
  • tst_QString
  • tst_QTextStream
false;
executed 427 times by 2 tests: return false;
Executed by:
  • tst_QString
  • tst_QTextStream
427
507 }-
508 if (ch
chDescription
TRUEevaluated 69616 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
FALSEnever evaluated
)
0-69616
509 *
executed 69616 times by 3 tests: *ch = *readPtr();
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
ch = *readPtr();
executed 69616 times by 3 tests: *ch = *readPtr();
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
69616
510 consume(1);-
511 return
executed 69616 times by 3 tests: return true;
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
true;
executed 69616 times by 3 tests: return true;
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
69616
512}-
513-
514-
515-
516-
517inline void QTextStreamPrivate::ungetChar(QChar ch)-
518{-
519 if (string
stringDescription
TRUEevaluated 51 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 39049 times by 2 tests
Evaluated by:
  • tst_QSplitter
  • tst_QTextStream
) {
51-39049
520 if (stringOffset == 0
stringOffset == 0Description
TRUEnever evaluated
FALSEevaluated 51 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
)
0-51
521 string->prepend(ch);
never executed: string->prepend(ch);
0
522 else-
523 (*
executed 51 times by 2 tests: (*string)[--stringOffset] = ch;
Executed by:
  • tst_QString
  • tst_QTextStream
string)[--stringOffset] = ch;
executed 51 times by 2 tests: (*string)[--stringOffset] = ch;
Executed by:
  • tst_QString
  • tst_QTextStream
51
524 return;
executed 51 times by 2 tests: return;
Executed by:
  • tst_QString
  • tst_QTextStream
51
525 }-
526-
527 if (readBufferOffset == 0
readBufferOffset == 0Description
TRUEevaluated 45 times by 2 tests
Evaluated by:
  • tst_QSplitter
  • tst_QTextStream
FALSEevaluated 39004 times by 2 tests
Evaluated by:
  • tst_QSplitter
  • tst_QTextStream
) {
45-39004
528 readBuffer.prepend(ch);-
529 return;
executed 45 times by 2 tests: return;
Executed by:
  • tst_QSplitter
  • tst_QTextStream
45
530 }-
531-
532 readBuffer[--readBufferOffset] = ch;-
533}
executed 39004 times by 2 tests: end of block
Executed by:
  • tst_QSplitter
  • tst_QTextStream
39004
534-
535-
536-
537-
538inline void QTextStreamPrivate::putChar(QChar ch)-
539{-
540 if (params.fieldWidth > 0
params.fieldWidth > 0Description
TRUEevaluated 2004 times by 2 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QTextStream
FALSEevaluated 164557 times by 82 tests
Evaluated 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_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • ...
)
2004-164557
541 putString(&ch, 1);
executed 2004 times by 2 tests: putString(&ch, 1);
Executed by:
  • tst_QGuiVariant
  • tst_QTextStream
2004
542 else-
543 write(ch);
executed 164428 times by 82 tests: write(ch);
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_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • ...
164428
544}-
545-
546-
547-
548-
549-
550QTextStreamPrivate::PaddingResult QTextStreamPrivate::padding(int len) const-
551{-
552 ((!(params.fieldWidth > len)) ? qt_assert("params.fieldWidth > len",__FILE__,940) : qt_noop());-
553-
554 int left = 0, right = 0;-
555-
556 const int padSize = params.fieldWidth - len;-
557-
558 switch (params.fieldAlignment) {-
559 case
never executed: case QTextStream::AlignLeft:
QTextStream::AlignLeft:
never executed: case QTextStream::AlignLeft:
0
560 right = padSize;-
561 break;
never executed: break;
0
562 case
executed 2235 times by 4 tests: case QTextStream::AlignRight:
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
QTextStream::AlignRight:
executed 2235 times by 4 tests: case QTextStream::AlignRight:
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
2235
563 case
executed 4 times by 1 test: case QTextStream::AlignAccountingStyle:
Executed by:
  • tst_QTextStream
QTextStream::AlignAccountingStyle:
executed 4 times by 1 test: case QTextStream::AlignAccountingStyle:
Executed by:
  • tst_QTextStream
4
564 left = padSize;-
565 break;
executed 2239 times by 4 tests: break;
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
2239
566 case
never executed: case QTextStream::AlignCenter:
QTextStream::AlignCenter:
never executed: case QTextStream::AlignCenter:
0
567 left = padSize/2;-
568 right = padSize - padSize/2;-
569 break;
never executed: break;
0
570 }-
571 const PaddingResult result = { left, right };-
572 return
executed 2239 times by 4 tests: return result;
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
result;
executed 2239 times by 4 tests: return result;
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
2239
573}-
574-
575-
576-
577-
578void QTextStreamPrivate::putString(const QChar *data, int len, bool number)-
579{-
580 if (__builtin_expect(!!(params.fieldWidth > len), false)
__builtin_expe...> len), false)Description
TRUEevaluated 2237 times by 4 tests
Evaluated by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
FALSEevaluated 149522 times by 86 tests
Evaluated 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
) {
2237-149522
581-
582-
583-
584 const PaddingResult pad = padding(len);-
585-
586 if (params.fieldAlignment == QTextStream::AlignAccountingStyle
params.fieldAl...ccountingStyleDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 2235 times by 4 tests
Evaluated by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
&& number
numberDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
) {
0-2235
587 const QChar sign = len > 0
len > 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
? data[0] : QChar();
0-2
588 if (sign == locale.negativeSign()
sign == locale.negativeSign()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
|| sign == locale.positiveSign()
sign == locale.positiveSign()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-2
589-
590 write(&sign, 1);-
591 ++data;-
592 --len;-
593 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QTextStream
2
594 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QTextStream
2
595-
596 writePadding(pad.left);-
597 write(data, len);-
598 writePadding(pad.right);-
599 }
executed 2237 times by 4 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
else {
2237
600 write(data, len);-
601 }
executed 149522 times by 86 tests: end of block
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_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
149522
602}-
603-
604-
605-
606-
607void QTextStreamPrivate::putString(QLatin1String data, bool number)-
608{-
609 if (__builtin_expect(!!(params.fieldWidth > data.size()), false)
__builtin_expe...ize()), false)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 60790 times by 30 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QOpenGlConfig
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QTreeView
  • tst_QVariant
  • tst_QWidget_window
  • tst_QXmlSimpleReader
  • ...
) {
2-60790
610-
611-
612-
613 const PaddingResult pad = padding(data.size());-
614-
615 if (params.fieldAlignment == QTextStream::AlignAccountingStyle
params.fieldAl...ccountingStyleDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& number
numberDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-2
616 const QChar sign = data.size() > 0
data.size() > 0Description
TRUEnever evaluated
FALSEnever evaluated
? QLatin1Char(*data.data()) : QChar();
0
617 if (sign == locale.negativeSign()
sign == locale.negativeSign()Description
TRUEnever evaluated
FALSEnever evaluated
|| sign == locale.positiveSign()
sign == locale.positiveSign()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
618-
619 write(&sign, 1);-
620 data = QLatin1String(data.data() + 1, data.size() - 1);-
621 }
never executed: end of block
0
622 }
never executed: end of block
0
623-
624 writePadding(pad.left);-
625 write(data);-
626 writePadding(pad.right);-
627 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
2
628 write(data);-
629 }
executed 60790 times by 30 tests: end of block
Executed by:
  • tst_QDBusXmlParser
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QOpenGlConfig
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QTreeView
  • tst_QVariant
  • tst_QWidget_window
  • tst_QXmlSimpleReader
  • ...
60790
630}-
631-
632-
633-
634-
635-
636-
637-
638QTextStream::QTextStream()-
639 : d_ptr(new QTextStreamPrivate(this))-
640{-
641-
642-
643-
644 QTextStreamPrivate * const d = d_func();-
645 d->status = Ok;-
646}
executed 15 times by 1 test: end of block
Executed by:
  • tst_QTextStream
15
647-
648-
649-
650-
651QTextStream::QTextStream(QIODevice *device)-
652 : d_ptr(new QTextStreamPrivate(this))-
653{-
654-
655-
656-
657-
658 QTextStreamPrivate * const d = d_func();-
659 d->device = device;-
660-
661 d->deviceClosedNotifier.setupDevice(this, d->device);-
662-
663 d->status = Ok;-
664}
executed 2874 times by 22 tests: end of block
Executed by:
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSaveFile
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QXmlSimpleReader
  • tst_qmakelib
  • tst_qstandardpaths
2874
665-
666-
667-
668-
669-
670QTextStream::QTextStream(QString *string, QIODevice::OpenMode openMode)-
671 : d_ptr(new QTextStreamPrivate(this))-
672{-
673-
674-
675-
676-
677 QTextStreamPrivate * const d = d_func();-
678 d->string = string;-
679 d->stringOpenMode = openMode;-
680 d->status = Ok;-
681}
executed 75486 times by 80 tests: end of block
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_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • ...
75486
682-
683-
684-
685-
686-
687-
688QTextStream::QTextStream(QByteArray *array, QIODevice::OpenMode openMode)-
689 : d_ptr(new QTextStreamPrivate(this))-
690{-
691-
692-
693-
694-
695 QTextStreamPrivate * const d = d_func();-
696 d->device = new QBuffer(array);-
697 d->device->open(openMode);-
698 d->deleteDevice = true;-
699-
700 d->deviceClosedNotifier.setupDevice(this, d->device);-
701-
702 d->status = Ok;-
703}
executed 830 times by 6 tests: end of block
Executed by:
  • tst_QKeyEvent
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
830
704QTextStream::QTextStream(const QByteArray &array, QIODevice::OpenMode openMode)-
705 : d_ptr(new QTextStreamPrivate(this))-
706{-
707-
708-
709-
710-
711 QBuffer *buffer = new QBuffer;-
712 buffer->setData(array);-
713 buffer->open(openMode);-
714-
715 QTextStreamPrivate * const d = d_func();-
716 d->device = buffer;-
717 d->deleteDevice = true;-
718-
719 d->deviceClosedNotifier.setupDevice(this, d->device);-
720-
721 d->status = Ok;-
722}
executed 16 times by 3 tests: end of block
Executed by:
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_qmakelib
16
723QTextStream::QTextStream(FILE *fileHandle, QIODevice::OpenMode openMode)-
724 : d_ptr(new QTextStreamPrivate(this))-
725{-
726-
727-
728-
729-
730 QFile *file = new QFile;-
731 file->open(fileHandle, openMode);-
732-
733 QTextStreamPrivate * const d = d_func();-
734 d->device = file;-
735 d->deleteDevice = true;-
736-
737 d->deviceClosedNotifier.setupDevice(this, d->device);-
738-
739 d->status = Ok;-
740}
never executed: end of block
0
741-
742-
743-
744-
745-
746-
747-
748QTextStream::~QTextStream()-
749{-
750 QTextStreamPrivate * const d = d_func();-
751-
752-
753-
754 if (!d->writeBuffer.isEmpty()
!d->writeBuffer.isEmpty()Description
TRUEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QKeyEvent
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
FALSEevaluated 79200 times by 95 tests
Evaluated 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_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
)
21-79200
755 d->flushWriteBuffer();
executed 21 times by 4 tests: d->flushWriteBuffer();
Executed by:
  • tst_QKeyEvent
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
21
756}
executed 79221 times by 96 tests: end of block
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_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
79221
757-
758-
759-
760-
761-
762-
763void QTextStream::reset()-
764{-
765 QTextStreamPrivate * const d = d_func();-
766-
767 d->params.reset();-
768}
executed 924 times by 13 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QNetworkConfigurationManager
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
924
769-
770-
771-
772-
773-
774-
775void QTextStream::flush()-
776{-
777 QTextStreamPrivate * const d = d_func();-
778 d->flushWriteBuffer();-
779}
executed 75666 times by 21 tests: end of block
Executed by:
  • tst_QDBusXmlParser
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
75666
780-
781-
782-
783-
784-
785bool QTextStream::seek(qint64 pos)-
786{-
787 QTextStreamPrivate * const d = d_func();-
788 d->lastTokenSize = 0;-
789-
790 if (d->device
d->deviceDescription
TRUEevaluated 214471 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 47 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
47-214471
791-
792 d->flushWriteBuffer();-
793 if (!d->device->seek(pos)
!d->device->seek(pos)Description
TRUEnever evaluated
FALSEevaluated 214471 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-214471
794 return
never executed: return false;
false;
never executed: return false;
0
795 d->resetReadBuffer();-
796-
797-
798-
799 resetCodecConverterStateHelper(&d->readConverterState);-
800 resetCodecConverterStateHelper(&d->writeConverterState);-
801 delete d->readConverterSavedState;-
802 d->readConverterSavedState = 0;-
803 d->writeConverterState.flags |= QTextCodec::IgnoreHeader;-
804-
805 return
executed 214471 times by 1 test: return true;
Executed by:
  • tst_QTextStream
true;
executed 214471 times by 1 test: return true;
Executed by:
  • tst_QTextStream
214471
806 }-
807-
808-
809 if (d->string
d->stringDescription
TRUEevaluated 47 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& pos <= d->string->size()
pos <= d->string->size()Description
TRUEevaluated 47 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
) {
0-47
810 d->stringOffset = int(pos);-
811 return
executed 47 times by 1 test: return true;
Executed by:
  • tst_QTextStream
true;
executed 47 times by 1 test: return true;
Executed by:
  • tst_QTextStream
47
812 }-
813 return
never executed: return false;
false;
never executed: return false;
0
814}-
815qint64 QTextStream::pos() const-
816{-
817 const QTextStreamPrivate * const d = d_func();-
818 if (d->device
d->deviceDescription
TRUEevaluated 216444 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
36-216444
819-
820 if (d->readBuffer.isEmpty()
d->readBuffer.isEmpty()Description
TRUEevaluated 214669 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 1775 times by 1 test
Evaluated by:
  • tst_QTextStream
)
1775-214669
821 return
executed 214669 times by 1 test: return d->device->pos();
Executed by:
  • tst_QTextStream
d->device->pos();
executed 214669 times by 1 test: return d->device->pos();
Executed by:
  • tst_QTextStream
214669
822 if (d->device->isSequential()
d->device->isSequential()Description
TRUEnever evaluated
FALSEevaluated 1775 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-1775
823 return
never executed: return 0;
0;
never executed: return 0;
0
824-
825-
826 if (!d->device->seek(d->readBufferStartDevicePos)
!d->device->se...tartDevicePos)Description
TRUEnever evaluated
FALSEevaluated 1775 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-1775
827 return
never executed: return qint64(-1);
qint64(-1);
never executed: return qint64(-1);
0
828-
829-
830 QTextStreamPrivate *thatd = const_cast<QTextStreamPrivate *>(d);-
831 thatd->readBuffer.clear();-
832-
833-
834 thatd->restoreToSavedConverterState();-
835 if (d->readBufferStartDevicePos == 0
d->readBufferS...DevicePos == 0Description
TRUEevaluated 1760 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 15 times by 1 test
Evaluated by:
  • tst_QTextStream
)
15-1760
836 thatd->autoDetectUnicode = true;
executed 1760 times by 1 test: thatd->autoDetectUnicode = true;
Executed by:
  • tst_QTextStream
1760
837-
838-
839-
840-
841 int oldReadBufferOffset = d->readBufferOffset + d->readConverterSavedStateOffset;-
842 while (d->readBuffer.size() < oldReadBufferOffset
d->readBuffer....adBufferOffsetDescription
TRUEevaluated 41035294 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 1775 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
1775-41035294
843 if (!thatd->fillReadBuffer(1)
!thatd->fillReadBuffer(1)Description
TRUEnever evaluated
FALSEevaluated 41035294 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-41035294
844 return
never executed: return qint64(-1);
qint64(-1);
never executed: return qint64(-1);
0
845 }
executed 41035294 times by 1 test: end of block
Executed by:
  • tst_QTextStream
41035294
846 thatd->readBufferOffset = oldReadBufferOffset;-
847 thatd->readConverterSavedStateOffset = 0;-
848-
849-
850 return
executed 1775 times by 1 test: return d->device->pos();
Executed by:
  • tst_QTextStream
d->device->pos();
executed 1775 times by 1 test: return d->device->pos();
Executed by:
  • tst_QTextStream
1775
851 }-
852-
853 if (d->string
d->stringDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
)
0-36
854 return
executed 36 times by 1 test: return d->stringOffset;
Executed by:
  • tst_QTextStream
d->stringOffset;
executed 36 times by 1 test: return d->stringOffset;
Executed by:
  • tst_QTextStream
36
855-
856 QMessageLogger(__FILE__, 1282, __PRETTY_FUNCTION__).warning("QTextStream::pos: no device");-
857 return
never executed: return qint64(-1);
qint64(-1);
never executed: return qint64(-1);
0
858}-
859void QTextStream::skipWhiteSpace()-
860{-
861 QTextStreamPrivate * const d = d_func();-
862 do { if (!d->string
!d->stringDescription
TRUEevaluated 405 times by 2 tests
Evaluated by:
  • tst_QSplitter
  • tst_QTextStream
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextStream
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 405 times by 2 tests
Evaluated by:
  • tst_QSplitter
  • tst_QTextStream
) { QMessageLogger(__FILE__, 1300, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return ;
;
never executed: return ;
} } while (0);
0-405
863 d->scan(0, 0, 0, QTextStreamPrivate::NotSpace);-
864 d->consumeLastToken();-
865}
executed 408 times by 2 tests: end of block
Executed by:
  • tst_QSplitter
  • tst_QTextStream
408
866void QTextStream::setDevice(QIODevice *device)-
867{-
868 QTextStreamPrivate * const d = d_func();-
869 flush();-
870 if (d->deleteDevice
d->deleteDeviceDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
1-10
871-
872 d->deviceClosedNotifier.disconnect();-
873-
874 delete d->device;-
875 d->deleteDevice = false;-
876 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QTextStream
1
877-
878 d->reset();-
879 d->status = Ok;-
880 d->device = device;-
881 d->resetReadBuffer();-
882-
883 d->deviceClosedNotifier.setupDevice(this, d->device);-
884-
885}
executed 11 times by 1 test: end of block
Executed by:
  • tst_QTextStream
11
886-
887-
888-
889-
890-
891-
892-
893QIODevice *QTextStream::device() const-
894{-
895 const QTextStreamPrivate * const d = d_func();-
896 return
executed 3 times by 1 test: return d->device;
Executed by:
  • tst_QTextStream
d->device;
executed 3 times by 1 test: return d->device;
Executed by:
  • tst_QTextStream
3
897}-
898void QTextStream::setString(QString *string, QIODevice::OpenMode openMode)-
899{-
900 QTextStreamPrivate * const d = d_func();-
901 flush();-
902 if (d->deleteDevice
d->deleteDeviceDescription
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-7
903-
904 d->deviceClosedNotifier.disconnect();-
905 d->device->blockSignals(true);-
906-
907 delete d->device;-
908 d->deleteDevice = false;-
909 }
never executed: end of block
0
910-
911 d->reset();-
912 d->status = Ok;-
913 d->string = string;-
914 d->stringOpenMode = openMode;-
915}
executed 7 times by 1 test: end of block
Executed by:
  • tst_QTextStream
7
916-
917-
918-
919-
920-
921-
922-
923QString *QTextStream::string() const-
924{-
925 const QTextStreamPrivate * const d = d_func();-
926 return
executed 1 time by 1 test: return d->string;
Executed by:
  • tst_QTextStream
d->string;
executed 1 time by 1 test: return d->string;
Executed by:
  • tst_QTextStream
1
927}-
928void QTextStream::setFieldAlignment(FieldAlignment mode)-
929{-
930 QTextStreamPrivate * const d = d_func();-
931 d->params.fieldAlignment = mode;-
932}
executed 9 times by 2 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QTextStream
9
933-
934-
935-
936-
937-
938-
939QTextStream::FieldAlignment QTextStream::fieldAlignment() const-
940{-
941 const QTextStreamPrivate * const d = d_func();-
942 return
executed 4 times by 1 test: return d->params.fieldAlignment;
Executed by:
  • tst_QTextStream
d->params.fieldAlignment;
executed 4 times by 1 test: return d->params.fieldAlignment;
Executed by:
  • tst_QTextStream
4
943}-
944void QTextStream::setPadChar(QChar ch)-
945{-
946 QTextStreamPrivate * const d = d_func();-
947 d->params.padChar = ch;-
948}
executed 9 times by 2 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QTextStream
9
949-
950-
951-
952-
953-
954-
955QChar QTextStream::padChar() const-
956{-
957 const QTextStreamPrivate * const d = d_func();-
958 return
executed 2 times by 1 test: return d->params.padChar;
Executed by:
  • tst_QTextStream
d->params.padChar;
executed 2 times by 1 test: return d->params.padChar;
Executed by:
  • tst_QTextStream
2
959}-
960void QTextStream::setFieldWidth(int width)-
961{-
962 QTextStreamPrivate * const d = d_func();-
963 d->params.fieldWidth = width;-
964}
executed 31 times by 4 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
31
965-
966-
967-
968-
969-
970-
971int QTextStream::fieldWidth() const-
972{-
973 const QTextStreamPrivate * const d = d_func();-
974 return
executed 3 times by 1 test: return d->params.fieldWidth;
Executed by:
  • tst_QTextStream
d->params.fieldWidth;
executed 3 times by 1 test: return d->params.fieldWidth;
Executed by:
  • tst_QTextStream
3
975}-
976void QTextStream::setNumberFlags(NumberFlags flags)-
977{-
978 QTextStreamPrivate * const d = d_func();-
979 d->params.numberFlags = flags;-
980}
executed 103 times by 4 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkConfigurationManager
  • tst_QTextStream
103
981-
982-
983-
984-
985-
986-
987QTextStream::NumberFlags QTextStream::numberFlags() const-
988{-
989 const QTextStreamPrivate * const d = d_func();-
990 return
executed 1624 times by 10 tests: return d->params.numberFlags;
Executed by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QNetworkConfigurationManager
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
d->params.numberFlags;
executed 1624 times by 10 tests: return d->params.numberFlags;
Executed by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QNetworkConfigurationManager
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
1624
991}-
992void QTextStream::setIntegerBase(int base)-
993{-
994 QTextStreamPrivate * const d = d_func();-
995 d->params.integerBase = base;-
996}
executed 240 times by 7 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QKeyEvent
  • tst_QNetworkConfigurationManager
  • tst_QSplitter
  • tst_QTextStream
  • tst_QVariant
240
997-
998-
999-
1000-
1001-
1002-
1003-
1004int QTextStream::integerBase() const-
1005{-
1006 const QTextStreamPrivate * const d = d_func();-
1007 return
executed 3 times by 1 test: return d->params.integerBase;
Executed by:
  • tst_QTextStream
d->params.integerBase;
executed 3 times by 1 test: return d->params.integerBase;
Executed by:
  • tst_QTextStream
3
1008}-
1009void QTextStream::setRealNumberNotation(RealNumberNotation notation)-
1010{-
1011 QTextStreamPrivate * const d = d_func();-
1012 d->params.realNumberNotation = notation;-
1013}
executed 9 times by 1 test: end of block
Executed by:
  • tst_QTextStream
9
1014-
1015-
1016-
1017-
1018-
1019-
1020QTextStream::RealNumberNotation QTextStream::realNumberNotation() const-
1021{-
1022 const QTextStreamPrivate * const d = d_func();-
1023 return
executed 309 times by 9 tests: return d->params.realNumberNotation;
Executed by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
d->params.realNumberNotation;
executed 309 times by 9 tests: return d->params.realNumberNotation;
Executed by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
309
1024}-
1025void QTextStream::setRealNumberPrecision(int precision)-
1026{-
1027 QTextStreamPrivate * const d = d_func();-
1028 if (precision < 0
precision < 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
2-10
1029 QMessageLogger(__FILE__, 1563, __PRETTY_FUNCTION__).warning("QTextStream::setRealNumberPrecision: Invalid precision (%d)", precision);-
1030 d->params.realNumberPrecision = 6;-
1031 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_QTextStream
2
1032 }-
1033 d->params.realNumberPrecision = precision;-
1034}
executed 10 times by 1 test: end of block
Executed by:
  • tst_QTextStream
10
1035-
1036-
1037-
1038-
1039-
1040-
1041-
1042int QTextStream::realNumberPrecision() const-
1043{-
1044 const QTextStreamPrivate * const d = d_func();-
1045 return
executed 3 times by 1 test: return d->params.realNumberPrecision;
Executed by:
  • tst_QTextStream
d->params.realNumberPrecision;
executed 3 times by 1 test: return d->params.realNumberPrecision;
Executed by:
  • tst_QTextStream
3
1046}-
1047-
1048-
1049-
1050-
1051-
1052-
1053-
1054QTextStream::Status QTextStream::status() const-
1055{-
1056 const QTextStreamPrivate * const d = d_func();-
1057 return
executed 17141 times by 4 tests: return d->status;
Executed by:
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QTextStream
d->status;
executed 17141 times by 4 tests: return d->status;
Executed by:
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QTextStream
17141
1058}-
1059void QTextStream::resetStatus()-
1060{-
1061 QTextStreamPrivate * const d = d_func();-
1062 d->status = Ok;-
1063}
executed 3 times by 1 test: end of block
Executed by:
  • tst_QTextStream
3
1064void QTextStream::setStatus(Status status)-
1065{-
1066 QTextStreamPrivate * const d = d_func();-
1067 if (d->status == Ok
d->status == OkDescription
TRUEevaluated 79 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
)
0-79
1068 d->status = status;
executed 79 times by 1 test: d->status = status;
Executed by:
  • tst_QTextStream
79
1069}
executed 79 times by 1 test: end of block
Executed by:
  • tst_QTextStream
79
1070-
1071-
1072-
1073-
1074-
1075-
1076-
1077bool QTextStream::atEnd() const-
1078{-
1079 const QTextStreamPrivate * const d = d_func();-
1080 do { if (!d->string
!d->stringDescription
TRUEevaluated 113676 times by 11 tests
Evaluated by:
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSplitter
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 48149 times by 3 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QTextStream
&& !d->device
!d->deviceDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 113675 times by 11 tests
Evaluated by:
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSplitter
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
) { QMessageLogger(__FILE__, 1633, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
executed 1 time by 1 test: return true;
Executed by:
  • tst_QTextStream
true;
executed 1 time by 1 test: return true;
Executed by:
  • tst_QTextStream
} } while (0);
1-113676
1081-
1082 if (d->string
d->stringDescription
TRUEevaluated 48149 times by 3 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QTextStream
FALSEevaluated 113675 times by 11 tests
Evaluated by:
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSplitter
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
)
48149-113675
1083 return
executed 48149 times by 3 tests: return d->string->size() == d->stringOffset;
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QTextStream
d->string->size() == d->stringOffset;
executed 48149 times by 3 tests: return d->string->size() == d->stringOffset;
Executed by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QTextStream
48149
1084 return
executed 113675 times by 11 tests: return d->readBuffer.isEmpty() && d->device->atEnd();
Executed by:
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSplitter
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
d->readBuffer.isEmpty() && d->device->atEnd();
executed 113675 times by 11 tests: return d->readBuffer.isEmpty() && d->device->atEnd();
Executed by:
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QSplitter
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
113675
1085}-
1086QString QTextStream::readAll()-
1087{-
1088 QTextStreamPrivate * const d = d_func();-
1089 do { if (!d->string
!d->stringDescription
TRUEevaluated 1865 times by 2 tests
Evaluated by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QTextStream
&& !d->device
!d->deviceDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 1864 times by 2 tests
Evaluated by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
) { QMessageLogger(__FILE__, 1653, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
executed 1 time by 1 test: return QString();
Executed by:
  • tst_QTextStream
QString();
executed 1 time by 1 test: return QString();
Executed by:
  • tst_QTextStream
} } while (0);
1-1865
1090-
1091 return
executed 1869 times by 2 tests: return d->read(2147483647);
Executed by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
d->read(2147483647);
executed 1869 times by 2 tests: return d->read(2147483647);
Executed by:
  • tst_QTextStream
  • tst_QXmlSimpleReader
1869
1092}-
1093QString QTextStream::readLine(qint64 maxlen)-
1094{-
1095 QString line;-
1096-
1097 readLineInto(&line, maxlen);-
1098 return
executed 154261 times by 14 tests: return line;
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
line;
executed 154261 times by 14 tests: return line;
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
154261
1099}-
1100bool QTextStream::readLineInto(QString *line, qint64 maxlen)-
1101{-
1102 QTextStreamPrivate * const d = d_func();-
1103-
1104 if (!d->string
!d->stringDescription
TRUEevaluated 160283 times by 13 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 24119 times by 3 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QTextStream
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 160283 times by 13 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
) {
0-160283
1105 QMessageLogger(__FILE__, 1713, __PRETTY_FUNCTION__).warning("QTextStream: No device");-
1106 if (line
lineDescription
TRUEnever evaluated
FALSEnever evaluated
&& !line->isNull()
!line->isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1107 line->resize(0);
never executed: line->resize(0);
0
1108 return
never executed: return false;
false;
never executed: return false;
0
1109 }-
1110-
1111 const QChar *readPtr;-
1112 int length;-
1113 if (!d->scan(&readPtr, &length, int(maxlen), QTextStreamPrivate::EndOfLine)
!d->scan(&read...te::EndOfLine)Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 184388 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
) {
14-184388
1114 if (line
lineDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& !line->isNull()
!line->isNull()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-14
1115 line->resize(0);
executed 4 times by 1 test: line->resize(0);
Executed by:
  • tst_QTextStream
4
1116 return
executed 14 times by 1 test: return false;
Executed by:
  • tst_QTextStream
false;
executed 14 times by 1 test: return false;
Executed by:
  • tst_QTextStream
14
1117 }-
1118-
1119 if (__builtin_expect(!!(line), true)
__builtin_expe...!(line), true)Description
TRUEevaluated 184387 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 1 time by 1 test
Evaluated by:
  • tst_QTextStream
)
1-184387
1120 line->setUnicode(readPtr, length);
executed 184387 times by 14 tests: line->setUnicode(readPtr, length);
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
184387
1121 d->consumeLastToken();-
1122 return
executed 184388 times by 14 tests: return true;
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
true;
executed 184388 times by 14 tests: return true;
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
184388
1123}-
1124QString QTextStream::read(qint64 maxlen)-
1125{-
1126 QTextStreamPrivate * const d = d_func();-
1127 do { if (!d->string
!d->stringDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 1744, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return QString();
QString();
never executed: return QString();
} } while (0);
0-8
1128-
1129 if (maxlen <= 0
maxlen <= 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QTextStream
)
1-7
1130 return
executed 1 time by 1 test: return QString::fromLatin1("");
Executed by:
  • tst_QTextStream
QString::fromLatin1("");
executed 1 time by 1 test: return QString::fromLatin1("");
Executed by:
  • tst_QTextStream
1
1131-
1132 return
executed 7 times by 1 test: return d->read(int(maxlen));
Executed by:
  • tst_QTextStream
d->read(int(maxlen));
executed 7 times by 1 test: return d->read(int(maxlen));
Executed by:
  • tst_QTextStream
7
1133}-
1134-
1135-
1136-
1137-
1138QTextStreamPrivate::NumberParsingStatus QTextStreamPrivate::getNumber(qulonglong *ret)-
1139{-
1140 scan(0, 0, 0, NotSpace);-
1141 consumeLastToken();-
1142-
1143-
1144 int base = params.integerBase;-
1145 if (base == 0
base == 0Description
TRUEevaluated 16440 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 4875 times by 1 test
Evaluated by:
  • tst_QSplitter
) {
4875-16440
1146 QChar ch;-
1147 if (!getChar(&ch)
!getChar(&ch)Description
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 16414 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
)
26-16414
1148 return
executed 26 times by 1 test: return npsInvalidPrefix;
Executed by:
  • tst_QTextStream
npsInvalidPrefix;
executed 26 times by 1 test: return npsInvalidPrefix;
Executed by:
  • tst_QTextStream
26
1149 if (ch == QLatin1Char('0')
ch == QLatin1Char('0')Description
TRUEevaluated 1733 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 14681 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
) {
1733-14681
1150 QChar ch2;-
1151 if (!getChar(&ch2)
!getChar(&ch2)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 1727 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
6-1727
1152-
1153 *ret = 0;-
1154 return
executed 6 times by 1 test: return npsOk;
Executed by:
  • tst_QTextStream
npsOk;
executed 6 times by 1 test: return npsOk;
Executed by:
  • tst_QTextStream
6
1155 }-
1156 ch2 = ch2.toLower();-
1157-
1158 if (ch2 == QLatin1Char('x')
ch2 == QLatin1Char('x')Description
TRUEevaluated 60 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 1667 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
60-1667
1159 base = 16;-
1160 }
executed 60 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else if (ch2 == QLatin1Char('b')
ch2 == QLatin1Char('b')Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 1625 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
42-1625
1161 base = 2;-
1162 }
executed 42 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else if (ch2.isDigit()
ch2.isDigit()Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 1601 times by 1 test
Evaluated by:
  • tst_QTextStream
&& ch2.digitValue() >= 0
ch2.digitValue() >= 0Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& ch2.digitValue() <= 7
ch2.digitValue() <= 7Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
) {
0-1601
1163 base = 8;-
1164 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
24
1165 base = 10;-
1166 }
executed 1601 times by 1 test: end of block
Executed by:
  • tst_QTextStream
1601
1167 ungetChar(ch2);-
1168 }
executed 1727 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else if (ch == locale.negativeSign()
ch == locale.negativeSign()Description
TRUEevaluated 104 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 14577 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
|| ch == locale.positiveSign()
ch == locale.positiveSign()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 14575 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
|| ch.isDigit()
ch.isDigit()Description
TRUEevaluated 14567 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
2-14577
1169 base = 10;-
1170 }
executed 14673 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextStream
else {
14673
1171 ungetChar(ch);-
1172 return
executed 8 times by 1 test: return npsInvalidPrefix;
Executed by:
  • tst_QTextStream
npsInvalidPrefix;
executed 8 times by 1 test: return npsInvalidPrefix;
Executed by:
  • tst_QTextStream
8
1173 }-
1174 ungetChar(ch);-
1175-
1176-
1177-
1178 }
executed 16400 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextStream
16400
1179-
1180 qulonglong val=0;-
1181 switch (base) {-
1182 case
executed 42 times by 1 test: case 2:
Executed by:
  • tst_QTextStream
2:
executed 42 times by 1 test: case 2:
Executed by:
  • tst_QTextStream
{
42
1183 QChar pf1, pf2, dig;-
1184-
1185 if (!getChar(&pf1)
!getChar(&pf1)Description
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QTextStream
|| pf1 != QLatin1Char('0')
pf1 != QLatin1Char('0')Description
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-42
1186 return
never executed: return npsInvalidPrefix;
npsInvalidPrefix;
never executed: return npsInvalidPrefix;
0
1187 if (!getChar(&pf2)
!getChar(&pf2)Description
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QTextStream
|| pf2.toLower() != QLatin1Char('b')
pf2.toLower() ...atin1Char('b')Description
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-42
1188 return
never executed: return npsInvalidPrefix;
npsInvalidPrefix;
never executed: return npsInvalidPrefix;
0
1189-
1190 int ndigits = 0;-
1191 while (getChar(&dig)
getChar(&dig)Description
TRUEevaluated 156 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
30-156
1192 int n = dig.toLower().unicode();-
1193 if (n == '0'
n == '0'Description
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 84 times by 1 test
Evaluated by:
  • tst_QTextStream
|| n == '1'
n == '1'Description
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
12-84
1194 val <<= 1;-
1195 val += n - '0';-
1196 }
executed 144 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
144
1197 ungetChar(dig);-
1198 break;
executed 12 times by 1 test: break;
Executed by:
  • tst_QTextStream
12
1199 }-
1200 ndigits++;-
1201 }
executed 144 times by 1 test: end of block
Executed by:
  • tst_QTextStream
144
1202 if (ndigits == 0
ndigits == 0Description
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-42
1203-
1204 ungetChar(pf2);-
1205 ungetChar(pf1);-
1206 return
never executed: return npsMissingDigit;
npsMissingDigit;
never executed: return npsMissingDigit;
0
1207 }-
1208 break;
executed 42 times by 1 test: break;
Executed by:
  • tst_QTextStream
42
1209 }-
1210 case
executed 24 times by 1 test: case 8:
Executed by:
  • tst_QTextStream
8:
executed 24 times by 1 test: case 8:
Executed by:
  • tst_QTextStream
{
24
1211 QChar pf, dig;-
1212-
1213 if (!getChar(&pf)
!getChar(&pf)Description
TRUEnever evaluated
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_QTextStream
|| pf != QLatin1Char('0')
pf != QLatin1Char('0')Description
TRUEnever evaluated
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-24
1214 return
never executed: return npsInvalidPrefix;
npsInvalidPrefix;
never executed: return npsInvalidPrefix;
0
1215-
1216 int ndigits = 0;-
1217 while (getChar(&dig)
getChar(&dig)Description
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
12-72
1218 int n = dig.toLower().unicode();-
1219 if (n >= '0'
n >= '0'Description
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& n <= '7'
n <= '7'Description
TRUEevaluated 60 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-72
1220 val *= 8;-
1221 val += n - '0';-
1222 }
executed 60 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
60
1223 ungetChar(dig);-
1224 break;
executed 12 times by 1 test: break;
Executed by:
  • tst_QTextStream
12
1225 }-
1226 ndigits++;-
1227 }
executed 60 times by 1 test: end of block
Executed by:
  • tst_QTextStream
60
1228 if (ndigits == 0
ndigits == 0Description
TRUEnever evaluated
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-24
1229-
1230 ungetChar(pf);-
1231 return
never executed: return npsMissingDigit;
npsMissingDigit;
never executed: return npsMissingDigit;
0
1232 }-
1233 break;
executed 24 times by 1 test: break;
Executed by:
  • tst_QTextStream
24
1234 }-
1235 case
executed 21149 times by 3 tests: case 10:
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
10:
executed 21149 times by 3 tests: case 10:
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
{
21149
1236-
1237 QChar sign;-
1238 int ndigits = 0;-
1239 if (!getChar(&sign)
!getChar(&sign)Description
TRUEnever evaluated
FALSEevaluated 21149 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
)
0-21149
1240 return
never executed: return npsMissingDigit;
npsMissingDigit;
never executed: return npsMissingDigit;
0
1241 if (sign != locale.negativeSign()
sign != locale.negativeSign()Description
TRUEevaluated 21045 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
FALSEevaluated 104 times by 1 test
Evaluated by:
  • tst_QTextStream
&& sign != locale.positiveSign()
sign != locale.positiveSign()Description
TRUEevaluated 21043 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
2-21045
1242 if (!sign.isDigit()
!sign.isDigit()Description
TRUEnever evaluated
FALSEevaluated 21043 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
) {
0-21043
1243 ungetChar(sign);-
1244 return
never executed: return npsMissingDigit;
npsMissingDigit;
never executed: return npsMissingDigit;
0
1245 }-
1246 val += sign.digitValue();-
1247 ndigits++;-
1248 }
executed 21043 times by 3 tests: end of block
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
21043
1249-
1250 QChar ch;-
1251 while (getChar(&ch)
getChar(&ch)Description
TRUEevaluated 28447 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
FALSEevaluated 260 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
) {
260-28447
1252 if (ch.isDigit()
ch.isDigit()Description
TRUEevaluated 7557 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
FALSEevaluated 20890 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
) {
7557-20890
1253 val *= 10;-
1254 val += ch.digitValue();-
1255 }
executed 7557 times by 3 tests: end of block
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
else if (locale != QLocale::c()
locale != QLocale::c()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 20889 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
&& ch == locale.groupSeparator()
ch == locale.groupSeparator()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
) {
0-20889
1256 continue;
executed 1 time by 1 test: continue;
Executed by:
  • tst_QTextStream
1
1257 } else {-
1258 ungetChar(ch);-
1259 break;
executed 20889 times by 3 tests: break;
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
20889
1260 }-
1261 ndigits++;-
1262 }
executed 7557 times by 3 tests: end of block
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
7557
1263 if (ndigits == 0
ndigits == 0Description
TRUEnever evaluated
FALSEevaluated 21149 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
)
0-21149
1264 return
never executed: return npsMissingDigit;
npsMissingDigit;
never executed: return npsMissingDigit;
0
1265 if (sign == locale.negativeSign()
sign == locale.negativeSign()Description
TRUEevaluated 104 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 21045 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
) {
104-21045
1266 qlonglong ival = qlonglong(val);-
1267 if (ival > 0
ival > 0Description
TRUEevaluated 98 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QTextStream
)
6-98
1268 ival = -ival;
executed 98 times by 1 test: ival = -ival;
Executed by:
  • tst_QTextStream
98
1269 val = qulonglong(ival);-
1270 }
executed 104 times by 1 test: end of block
Executed by:
  • tst_QTextStream
104
1271 break;
executed 21149 times by 3 tests: break;
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
21149
1272 }-
1273 case
executed 60 times by 1 test: case 16:
Executed by:
  • tst_QTextStream
16:
executed 60 times by 1 test: case 16:
Executed by:
  • tst_QTextStream
{
60
1274 QChar pf1, pf2, dig;-
1275-
1276 if (!getChar(&pf1)
!getChar(&pf1)Description
TRUEnever evaluated
FALSEevaluated 60 times by 1 test
Evaluated by:
  • tst_QTextStream
|| pf1 != QLatin1Char('0')
pf1 != QLatin1Char('0')Description
TRUEnever evaluated
FALSEevaluated 60 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-60
1277 return
never executed: return npsInvalidPrefix;
npsInvalidPrefix;
never executed: return npsInvalidPrefix;
0
1278 if (!getChar(&pf2)
!getChar(&pf2)Description
TRUEnever evaluated
FALSEevaluated 60 times by 1 test
Evaluated by:
  • tst_QTextStream
|| pf2.toLower() != QLatin1Char('x')
pf2.toLower() ...atin1Char('x')Description
TRUEnever evaluated
FALSEevaluated 60 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-60
1279 return
never executed: return npsInvalidPrefix;
npsInvalidPrefix;
never executed: return npsInvalidPrefix;
0
1280-
1281 int ndigits = 0;-
1282 while (getChar(&dig)
getChar(&dig)Description
TRUEevaluated 318 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 48 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
48-318
1283 int n = dig.toLower().unicode();-
1284 if (n >= '0'
n >= '0'Description
TRUEevaluated 318 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& n <= '9'
n <= '9'Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 306 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-318
1285 val <<= 4;-
1286 val += n - '0';-
1287 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else if (n >= 'a'
n >= 'a'Description
TRUEevaluated 306 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& n <= 'f'
n <= 'f'Description
TRUEevaluated 294 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-306
1288 val <<= 4;-
1289 val += 10 + (n - 'a');-
1290 }
executed 294 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
294
1291 ungetChar(dig);-
1292 break;
executed 12 times by 1 test: break;
Executed by:
  • tst_QTextStream
12
1293 }-
1294 ndigits++;-
1295 }
executed 306 times by 1 test: end of block
Executed by:
  • tst_QTextStream
306
1296 if (ndigits == 0
ndigits == 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 54 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
6-54
1297 return
executed 6 times by 1 test: return npsMissingDigit;
Executed by:
  • tst_QTextStream
npsMissingDigit;
executed 6 times by 1 test: return npsMissingDigit;
Executed by:
  • tst_QTextStream
6
1298 }-
1299 break;
executed 54 times by 1 test: break;
Executed by:
  • tst_QTextStream
54
1300 }-
1301 default
never executed: default:
:
never executed: default:
0
1302-
1303 return
never executed: return npsInvalidPrefix;
npsInvalidPrefix;
never executed: return npsInvalidPrefix;
0
1304 }-
1305-
1306 if (ret
retDescription
TRUEevaluated 21269 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
FALSEnever evaluated
)
0-21269
1307 *
executed 21269 times by 3 tests: *ret = val;
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
ret = val;
executed 21269 times by 3 tests: *ret = val;
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
21269
1308 return
executed 21269 times by 3 tests: return npsOk;
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
npsOk;
executed 21269 times by 3 tests: return npsOk;
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
21269
1309}-
1310-
1311-
1312-
1313-
1314-
1315bool QTextStreamPrivate::getReal(double *f)-
1316{-
1317-
1318-
1319-
1320 enum ParserState {-
1321 Init = 0,-
1322 Sign = 1,-
1323 Mantissa = 2,-
1324 Dot = 3,-
1325 Abscissa = 4,-
1326 ExpMark = 5,-
1327 ExpSign = 6,-
1328 Exponent = 7,-
1329 Nan1 = 8,-
1330 Nan2 = 9,-
1331 Inf1 = 10,-
1332 Inf2 = 11,-
1333 NanInf = 12,-
1334 Done = 13-
1335 };-
1336 enum InputToken {-
1337 None = 0,-
1338 InputSign = 1,-
1339 InputDigit = 2,-
1340 InputDot = 3,-
1341 InputExp = 4,-
1342 InputI = 5,-
1343 InputN = 6,-
1344 InputF = 7,-
1345 InputA = 8,-
1346 InputT = 9-
1347 };-
1348-
1349 static const uchar table[13][10] = {-
1350-
1351 { 0, Sign, Mantissa, Dot, 0, Inf1, Nan1, 0, 0, 0 },-
1352 { 0, 0, Mantissa, Dot, 0, Inf1, Nan1, 0, 0, 0 },-
1353 { Done, Done, Mantissa, Dot, ExpMark, 0, 0, 0, 0, 0 },-
1354 { 0, 0, Abscissa, 0, 0, 0, 0, 0, 0, 0 },-
1355 { Done, Done, Abscissa, Done, ExpMark, 0, 0, 0, 0, 0 },-
1356 { 0, ExpSign, Exponent, 0, 0, 0, 0, 0, 0, 0 },-
1357 { 0, 0, Exponent, 0, 0, 0, 0, 0, 0, 0 },-
1358 { Done, Done, Exponent, Done, Done, 0, 0, 0, 0, 0 },-
1359 { 0, 0, 0, 0, 0, 0, 0, 0, Nan2, 0 },-
1360 { 0, 0, 0, 0, 0, 0, NanInf, 0, 0, 0 },-
1361 { 0, 0, 0, 0, 0, 0, Inf2, 0, 0, 0 },-
1362 { 0, 0, 0, 0, 0, 0, 0, NanInf, 0, 0 },-
1363 { Done, 0, 0, 0, 0, 0, 0, 0, 0, 0 },-
1364 };-
1365-
1366 ParserState state = Init;-
1367 InputToken input = None;-
1368-
1369 scan(0, 0, 0, NotSpace);-
1370 consumeLastToken();-
1371-
1372 const int BufferSize = 128;-
1373 char buf[BufferSize];-
1374 int i = 0;-
1375-
1376 QChar c;-
1377 while (getChar(&c)
getChar(&c)Description
TRUEevaluated 282 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 29 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
29-282
1378 switch (c.unicode()) {-
1379 case
executed 10 times by 1 test: case '0':
Executed by:
  • tst_QTextStream
'0':
executed 10 times by 1 test: case '0':
Executed by:
  • tst_QTextStream
case
executed 23 times by 1 test: case '1':
Executed by:
  • tst_QTextStream
'1':
executed 23 times by 1 test: case '1':
Executed by:
  • tst_QTextStream
case
executed 11 times by 1 test: case '2':
Executed by:
  • tst_QTextStream
'2':
executed 11 times by 1 test: case '2':
Executed by:
  • tst_QTextStream
case
executed 15 times by 1 test: case '3':
Executed by:
  • tst_QTextStream
'3':
executed 15 times by 1 test: case '3':
Executed by:
  • tst_QTextStream
case
executed 16 times by 1 test: case '4':
Executed by:
  • tst_QTextStream
'4':
executed 16 times by 1 test: case '4':
Executed by:
  • tst_QTextStream
10-23
1380 case
executed 2 times by 1 test: case '5':
Executed by:
  • tst_QTextStream
'5':
executed 2 times by 1 test: case '5':
Executed by:
  • tst_QTextStream
case
never executed: case '6':
'6':
never executed: case '6':
case
never executed: case '7':
'7':
never executed: case '7':
case
never executed: case '8':
'8':
never executed: case '8':
case
never executed: case '9':
'9':
never executed: case '9':
0-2
1381 input = InputDigit;-
1382 break;
executed 77 times by 1 test: break;
Executed by:
  • tst_QTextStream
77
1383 case
executed 12 times by 1 test: case 'i':
Executed by:
  • tst_QTextStream
'i':
executed 12 times by 1 test: case 'i':
Executed by:
  • tst_QTextStream
case
executed 6 times by 1 test: case 'I':
Executed by:
  • tst_QTextStream
'I':
executed 6 times by 1 test: case 'I':
Executed by:
  • tst_QTextStream
6-12
1384 input = InputI;-
1385 break;
executed 18 times by 1 test: break;
Executed by:
  • tst_QTextStream
18
1386 case
executed 30 times by 1 test: case 'n':
Executed by:
  • tst_QTextStream
'n':
executed 30 times by 1 test: case 'n':
Executed by:
  • tst_QTextStream
case
executed 24 times by 1 test: case 'N':
Executed by:
  • tst_QTextStream
'N':
executed 24 times by 1 test: case 'N':
Executed by:
  • tst_QTextStream
24-30
1387 input = InputN;-
1388 break;
executed 54 times by 1 test: break;
Executed by:
  • tst_QTextStream
54
1389 case
executed 12 times by 1 test: case 'f':
Executed by:
  • tst_QTextStream
'f':
executed 12 times by 1 test: case 'f':
Executed by:
  • tst_QTextStream
case
executed 6 times by 1 test: case 'F':
Executed by:
  • tst_QTextStream
'F':
executed 6 times by 1 test: case 'F':
Executed by:
  • tst_QTextStream
6-12
1390 input = InputF;-
1391 break;
executed 18 times by 1 test: break;
Executed by:
  • tst_QTextStream
18
1392 case
executed 9 times by 1 test: case 'a':
Executed by:
  • tst_QTextStream
'a':
executed 9 times by 1 test: case 'a':
Executed by:
  • tst_QTextStream
case
executed 12 times by 1 test: case 'A':
Executed by:
  • tst_QTextStream
'A':
executed 12 times by 1 test: case 'A':
Executed by:
  • tst_QTextStream
9-12
1393 input = InputA;-
1394 break;
executed 21 times by 1 test: break;
Executed by:
  • tst_QTextStream
21
1395 case
never executed: case 't':
't':
never executed: case 't':
case
never executed: case 'T':
'T':
never executed: case 'T':
0
1396 input = InputT;-
1397 break;
never executed: break;
0
1398 default
executed 94 times by 1 test: default:
Executed by:
  • tst_QTextStream
:
executed 94 times by 1 test: default:
Executed by:
  • tst_QTextStream
{
94
1399 QChar lc = c.toLower();-
1400 if (lc == locale.decimalPoint().toLower()
lc == locale.d...nt().toLower()Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 81 times by 1 test
Evaluated by:
  • tst_QTextStream
)
13-81
1401 input = InputDot;
executed 13 times by 1 test: input = InputDot;
Executed by:
  • tst_QTextStream
13
1402 else if (lc == locale.exponential().toLower()
lc == locale.e...al().toLower()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 73 times by 1 test
Evaluated by:
  • tst_QTextStream
)
8-73
1403 input = InputExp;
executed 8 times by 1 test: input = InputExp;
Executed by:
  • tst_QTextStream
8
1404 else if (lc == locale.negativeSign().toLower()
lc == locale.n...gn().toLower()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 53 times by 1 test
Evaluated by:
  • tst_QTextStream
20-53
1405 || lc == locale.positiveSign().toLower()
lc == locale.p...gn().toLower()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 37 times by 1 test
Evaluated by:
  • tst_QTextStream
)
16-37
1406 input = InputSign;
executed 36 times by 1 test: input = InputSign;
Executed by:
  • tst_QTextStream
36
1407 else if (locale != QLocale::c()
locale != QLocale::c()Description
TRUEnever evaluated
FALSEevaluated 37 times by 1 test
Evaluated by:
  • tst_QTextStream
0-37
1408 && lc == locale.groupSeparator().toLower()
lc == locale.g...or().toLower()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1409 input = InputDigit;
never executed: input = InputDigit;
0
1410 else-
1411 input = None;
executed 37 times by 1 test: input = None;
Executed by:
  • tst_QTextStream
37
1412 }-
1413 break;
executed 94 times by 1 test: break;
Executed by:
  • tst_QTextStream
94
1414 }-
1415-
1416 state = ParserState(table[state][input]);-
1417-
1418 if (state == Init
state == InitDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 279 times by 1 test
Evaluated by:
  • tst_QTextStream
|| state == Done
state == DoneDescription
TRUEevaluated 37 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 242 times by 1 test
Evaluated by:
  • tst_QTextStream
|| i > (BufferSize - 5)
i > (BufferSize - 5)Description
TRUEnever evaluated
FALSEevaluated 242 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-279
1419 ungetChar(c);-
1420 if (i > (BufferSize - 5)
i > (BufferSize - 5)Description
TRUEnever evaluated
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-40
1421 while (getChar(&c)
getChar(&c)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1422 if (!c.isDigit()
!c.isDigit()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1423 ungetChar(c);-
1424 break;
never executed: break;
0
1425 }-
1426 }
never executed: end of block
0
1427 }
never executed: end of block
0
1428 break;
executed 40 times by 1 test: break;
Executed by:
  • tst_QTextStream
40
1429 }-
1430-
1431 buf[i++] = c.toLatin1();-
1432 }
executed 242 times by 1 test: end of block
Executed by:
  • tst_QTextStream
242
1433-
1434 if (i == 0
i == 0Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 59 times by 1 test
Evaluated by:
  • tst_QTextStream
)
10-59
1435 return
executed 10 times by 1 test: return false;
Executed by:
  • tst_QTextStream
false;
executed 10 times by 1 test: return false;
Executed by:
  • tst_QTextStream
10
1436 if (!f
!fDescription
TRUEnever evaluated
FALSEevaluated 59 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-59
1437 return
never executed: return true;
true;
never executed: return true;
0
1438 buf[i] = '\0';-
1439-
1440-
1441-
1442-
1443-
1444 if (!qstricmp(buf, "nan")
!qstricmp(buf, "nan")Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 53 times by 1 test
Evaluated by:
  • tst_QTextStream
|| !qstricmp(buf, "+nan")
!qstricmp(buf, "+nan")Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 47 times by 1 test
Evaluated by:
  • tst_QTextStream
|| !qstricmp(buf, "-nan")
!qstricmp(buf, "-nan")Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 41 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
6-53
1445 *f = qSNaN();-
1446 return
executed 18 times by 1 test: return true;
Executed by:
  • tst_QTextStream
true;
executed 18 times by 1 test: return true;
Executed by:
  • tst_QTextStream
18
1447 } else if (!qstricmp(buf, "+inf")
!qstricmp(buf, "+inf")Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 35 times by 1 test
Evaluated by:
  • tst_QTextStream
|| !qstricmp(buf, "inf")
!qstricmp(buf, "inf")Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 29 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
6-35
1448 *f = qInf();-
1449 return
executed 12 times by 1 test: return true;
Executed by:
  • tst_QTextStream
true;
executed 12 times by 1 test: return true;
Executed by:
  • tst_QTextStream
12
1450 } else if (!qstricmp(buf, "-inf")
!qstricmp(buf, "-inf")Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
6-23
1451 *f = -qInf();-
1452 return
executed 6 times by 1 test: return true;
Executed by:
  • tst_QTextStream
true;
executed 6 times by 1 test: return true;
Executed by:
  • tst_QTextStream
6
1453 }-
1454 bool ok;-
1455 *f = locale.toDouble(QString::fromLatin1(buf), &ok);-
1456 return
executed 23 times by 1 test: return ok;
Executed by:
  • tst_QTextStream
ok;
executed 23 times by 1 test: return ok;
Executed by:
  • tst_QTextStream
23
1457}-
1458QTextStream &QTextStream::operator>>(QChar &c)-
1459{-
1460 QTextStreamPrivate * const d = d_func();-
1461 do { if (!d->string
!d->stringDescription
TRUEevaluated 830 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QTextStream
&& !d->device
!d->deviceDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 829 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2089, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QTextStream
} } while (0);
1-830
1462 d->scan(0, 0, 0, QTextStreamPrivate::NotSpace);-
1463 if (!d->getChar(&c)
!d->getChar(&c)Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 823 times by 1 test
Evaluated by:
  • tst_QTextStream
)
16-823
1464 setStatus(ReadPastEnd);
executed 16 times by 1 test: setStatus(ReadPastEnd);
Executed by:
  • tst_QTextStream
16
1465 return
executed 839 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 839 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
839
1466}-
1467QTextStream &QTextStream::operator>>(char &c)-
1468{-
1469 QChar ch;-
1470 *this >> ch;-
1471 c = ch.toLatin1();-
1472 return
executed 19 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 19 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
19
1473}-
1474QTextStream &QTextStream::operator>>(signed short &i)-
1475{-
1476 do { QTextStreamPrivate * const d = d_func(); do { if (!d->string
!d->stringDescription
TRUEevaluated 69 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 69 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2139, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0); qulonglong tmp; switch (d->getNumber(&tmp)) { case
executed 63 times by 1 test: case QTextStreamPrivate::npsOk:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsOk:
executed 63 times by 1 test: case QTextStreamPrivate::npsOk:
Executed by:
  • tst_QTextStream
i = (signed short)tmp; break;
executed 63 times by 1 test: break;
Executed by:
  • tst_QTextStream
case
executed 1 time by 1 test: case QTextStreamPrivate::npsMissingDigit:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsMissingDigit:
executed 1 time by 1 test: case QTextStreamPrivate::npsMissingDigit:
Executed by:
  • tst_QTextStream
case
executed 5 times by 1 test: case QTextStreamPrivate::npsInvalidPrefix:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsInvalidPrefix:
executed 5 times by 1 test: case QTextStreamPrivate::npsInvalidPrefix:
Executed by:
  • tst_QTextStream
i = (signed short)0; setStatus(atEnd() ? QTextStream::ReadPastEnd : QTextStream::ReadCorruptData); break;
executed 6 times by 1 test: break;
Executed by:
  • tst_QTextStream
} return
executed 69 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 69 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
} while (0);
0-69
1477}
never executed: end of block
0
1478-
1479-
1480-
1481-
1482-
1483-
1484QTextStream &QTextStream::operator>>(unsigned short &i)-
1485{-
1486 do { QTextStreamPrivate * const d = d_func(); do { if (!d->string
!d->stringDescription
TRUEevaluated 69 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 69 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2149, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0); qulonglong tmp; switch (d->getNumber(&tmp)) { case
executed 63 times by 1 test: case QTextStreamPrivate::npsOk:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsOk:
executed 63 times by 1 test: case QTextStreamPrivate::npsOk:
Executed by:
  • tst_QTextStream
i = (unsigned short)tmp; break;
executed 63 times by 1 test: break;
Executed by:
  • tst_QTextStream
case
executed 1 time by 1 test: case QTextStreamPrivate::npsMissingDigit:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsMissingDigit:
executed 1 time by 1 test: case QTextStreamPrivate::npsMissingDigit:
Executed by:
  • tst_QTextStream
case
executed 5 times by 1 test: case QTextStreamPrivate::npsInvalidPrefix:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsInvalidPrefix:
executed 5 times by 1 test: case QTextStreamPrivate::npsInvalidPrefix:
Executed by:
  • tst_QTextStream
i = (unsigned short)0; setStatus(atEnd() ? QTextStream::ReadPastEnd : QTextStream::ReadCorruptData); break;
executed 6 times by 1 test: break;
Executed by:
  • tst_QTextStream
} return
executed 69 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 69 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
} while (0);
0-69
1487}
never executed: end of block
0
1488-
1489-
1490-
1491-
1492-
1493-
1494QTextStream &QTextStream::operator>>(signed int &i)-
1495{-
1496 do { QTextStreamPrivate * const d = d_func(); do { if (!d->string
!d->stringDescription
TRUEevaluated 20958 times by 2 tests
Evaluated by:
  • tst_QSplitter
  • tst_QTextStream
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 20958 times by 2 tests
Evaluated by:
  • tst_QSplitter
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2159, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0); qulonglong tmp; switch (d->getNumber(&tmp)) { case
executed 20960 times by 3 tests: case QTextStreamPrivate::npsOk:
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
QTextStreamPrivate::npsOk:
executed 20960 times by 3 tests: case QTextStreamPrivate::npsOk:
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
i = (signed int)tmp; break;
executed 20960 times by 3 tests: break;
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
case
executed 1 time by 1 test: case QTextStreamPrivate::npsMissingDigit:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsMissingDigit:
executed 1 time by 1 test: case QTextStreamPrivate::npsMissingDigit:
Executed by:
  • tst_QTextStream
case
executed 9 times by 1 test: case QTextStreamPrivate::npsInvalidPrefix:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsInvalidPrefix:
executed 9 times by 1 test: case QTextStreamPrivate::npsInvalidPrefix:
Executed by:
  • tst_QTextStream
i = (signed int)0; setStatus(atEnd() ? QTextStream::ReadPastEnd : QTextStream::ReadCorruptData); break;
executed 10 times by 1 test: break;
Executed by:
  • tst_QTextStream
} return
executed 20970 times by 3 tests: return *this;
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
*this;
executed 20970 times by 3 tests: return *this;
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
} while (0);
0-20970
1497}
never executed: end of block
0
1498-
1499-
1500-
1501-
1502-
1503-
1504QTextStream &QTextStream::operator>>(unsigned int &i)-
1505{-
1506 do { QTextStreamPrivate * const d = d_func(); do { if (!d->string
!d->stringDescription
TRUEevaluated 69 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 69 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2169, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0); qulonglong tmp; switch (d->getNumber(&tmp)) { case
executed 63 times by 1 test: case QTextStreamPrivate::npsOk:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsOk:
executed 63 times by 1 test: case QTextStreamPrivate::npsOk:
Executed by:
  • tst_QTextStream
i = (unsigned int)tmp; break;
executed 63 times by 1 test: break;
Executed by:
  • tst_QTextStream
case
executed 1 time by 1 test: case QTextStreamPrivate::npsMissingDigit:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsMissingDigit:
executed 1 time by 1 test: case QTextStreamPrivate::npsMissingDigit:
Executed by:
  • tst_QTextStream
case
executed 5 times by 1 test: case QTextStreamPrivate::npsInvalidPrefix:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsInvalidPrefix:
executed 5 times by 1 test: case QTextStreamPrivate::npsInvalidPrefix:
Executed by:
  • tst_QTextStream
i = (unsigned int)0; setStatus(atEnd() ? QTextStream::ReadPastEnd : QTextStream::ReadCorruptData); break;
executed 6 times by 1 test: break;
Executed by:
  • tst_QTextStream
} return
executed 69 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 69 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
} while (0);
0-69
1507}
never executed: end of block
0
1508-
1509-
1510-
1511-
1512-
1513-
1514QTextStream &QTextStream::operator>>(signed long &i)-
1515{-
1516 do { QTextStreamPrivate * const d = d_func(); do { if (!d->string
!d->stringDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEnever evaluated
) { QMessageLogger(__FILE__, 2179, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0); qulonglong tmp; switch (d->getNumber(&tmp)) { case
never executed: case QTextStreamPrivate::npsOk:
QTextStreamPrivate::npsOk:
never executed: case QTextStreamPrivate::npsOk:
i = (signed long)tmp; break;
never executed: break;
case
never executed: case QTextStreamPrivate::npsMissingDigit:
QTextStreamPrivate::npsMissingDigit:
never executed: case QTextStreamPrivate::npsMissingDigit:
case
never executed: case QTextStreamPrivate::npsInvalidPrefix:
QTextStreamPrivate::npsInvalidPrefix:
never executed: case QTextStreamPrivate::npsInvalidPrefix:
i = (signed long)0; setStatus(atEnd() ? QTextStream::ReadPastEnd : QTextStream::ReadCorruptData); break;
never executed: break;
} return
never executed: return *this;
*this;
never executed: return *this;
} while (0);
0
1517}
never executed: end of block
0
1518-
1519-
1520-
1521-
1522-
1523-
1524QTextStream &QTextStream::operator>>(unsigned long &i)-
1525{-
1526 do { QTextStreamPrivate * const d = d_func(); do { if (!d->string
!d->stringDescription
TRUEnever evaluated
FALSEnever evaluated
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEnever evaluated
) { QMessageLogger(__FILE__, 2189, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0); qulonglong tmp; switch (d->getNumber(&tmp)) { case
never executed: case QTextStreamPrivate::npsOk:
QTextStreamPrivate::npsOk:
never executed: case QTextStreamPrivate::npsOk:
i = (unsigned long)tmp; break;
never executed: break;
case
never executed: case QTextStreamPrivate::npsMissingDigit:
QTextStreamPrivate::npsMissingDigit:
never executed: case QTextStreamPrivate::npsMissingDigit:
case
never executed: case QTextStreamPrivate::npsInvalidPrefix:
QTextStreamPrivate::npsInvalidPrefix:
never executed: case QTextStreamPrivate::npsInvalidPrefix:
i = (unsigned long)0; setStatus(atEnd() ? QTextStream::ReadPastEnd : QTextStream::ReadCorruptData); break;
never executed: break;
} return
never executed: return *this;
*this;
never executed: return *this;
} while (0);
0
1527}
never executed: end of block
0
1528-
1529-
1530-
1531-
1532-
1533-
1534QTextStream &QTextStream::operator>>(qlonglong &i)-
1535{-
1536 do { QTextStreamPrivate * const d = d_func(); do { if (!d->string
!d->stringDescription
TRUEevaluated 69 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 69 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2199, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0); qulonglong tmp; switch (d->getNumber(&tmp)) { case
executed 63 times by 1 test: case QTextStreamPrivate::npsOk:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsOk:
executed 63 times by 1 test: case QTextStreamPrivate::npsOk:
Executed by:
  • tst_QTextStream
i = (qlonglong)tmp; break;
executed 63 times by 1 test: break;
Executed by:
  • tst_QTextStream
case
executed 1 time by 1 test: case QTextStreamPrivate::npsMissingDigit:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsMissingDigit:
executed 1 time by 1 test: case QTextStreamPrivate::npsMissingDigit:
Executed by:
  • tst_QTextStream
case
executed 5 times by 1 test: case QTextStreamPrivate::npsInvalidPrefix:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsInvalidPrefix:
executed 5 times by 1 test: case QTextStreamPrivate::npsInvalidPrefix:
Executed by:
  • tst_QTextStream
i = (qlonglong)0; setStatus(atEnd() ? QTextStream::ReadPastEnd : QTextStream::ReadCorruptData); break;
executed 6 times by 1 test: break;
Executed by:
  • tst_QTextStream
} return
executed 69 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 69 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
} while (0);
0-69
1537}
never executed: end of block
0
1538-
1539-
1540-
1541-
1542-
1543-
1544QTextStream &QTextStream::operator>>(qulonglong &i)-
1545{-
1546 do { QTextStreamPrivate * const d = d_func(); do { if (!d->string
!d->stringDescription
TRUEevaluated 69 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 69 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2209, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0); qulonglong tmp; switch (d->getNumber(&tmp)) { case
executed 63 times by 1 test: case QTextStreamPrivate::npsOk:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsOk:
executed 63 times by 1 test: case QTextStreamPrivate::npsOk:
Executed by:
  • tst_QTextStream
i = (qulonglong)tmp; break;
executed 63 times by 1 test: break;
Executed by:
  • tst_QTextStream
case
executed 1 time by 1 test: case QTextStreamPrivate::npsMissingDigit:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsMissingDigit:
executed 1 time by 1 test: case QTextStreamPrivate::npsMissingDigit:
Executed by:
  • tst_QTextStream
case
executed 5 times by 1 test: case QTextStreamPrivate::npsInvalidPrefix:
Executed by:
  • tst_QTextStream
QTextStreamPrivate::npsInvalidPrefix:
executed 5 times by 1 test: case QTextStreamPrivate::npsInvalidPrefix:
Executed by:
  • tst_QTextStream
i = (qulonglong)0; setStatus(atEnd() ? QTextStream::ReadPastEnd : QTextStream::ReadCorruptData); break;
executed 6 times by 1 test: break;
Executed by:
  • tst_QTextStream
} return
executed 69 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 69 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
} while (0);
0-69
1547}
never executed: end of block
0
1548QTextStream &QTextStream::operator>>(float &f)-
1549{-
1550 do { QTextStreamPrivate * const d = d_func(); do { if (!d->string
!d->stringDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QTextStream
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2225, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0); double tmp; if (d->getReal(&tmp)
d->getReal(&tmp)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTextStream
) { f = (float)tmp; }
executed 28 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else { f = (float)0; setStatus(atEnd() ? QTextStream::ReadPastEnd : QTextStream::ReadCorruptData); }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QTextStream
return
executed 32 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 32 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
} while (0);
0-32
1551}
never executed: end of block
0
1552-
1553-
1554-
1555-
1556-
1557-
1558QTextStream &QTextStream::operator>>(double &f)-
1559{-
1560 do { QTextStreamPrivate * const d = d_func(); do { if (!d->string
!d->stringDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 21 times by 1 test
Evaluated by:
  • tst_QTextStream
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2235, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0); double tmp; if (d->getReal(&tmp)
d->getReal(&tmp)Description
TRUEevaluated 31 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QTextStream
) { f = (double)tmp; }
executed 31 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else { f = (double)0; setStatus(atEnd() ? QTextStream::ReadPastEnd : QTextStream::ReadCorruptData); }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QTextStream
return
executed 37 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 37 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
} while (0);
0-37
1561}
never executed: end of block
0
1562QTextStream &QTextStream::operator>>(QString &str)-
1563{-
1564 QTextStreamPrivate * const d = d_func();-
1565 do { if (!d->string
!d->stringDescription
TRUEevaluated 425 times by 4 tests
Evaluated by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextStream
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 425 times by 4 tests
Evaluated by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2248, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-425
1566-
1567 str.clear();-
1568 d->scan(0, 0, 0, QTextStreamPrivate::NotSpace);-
1569 d->consumeLastToken();-
1570-
1571 const QChar *ptr;-
1572 int length;-
1573 if (!d->scan(&ptr, &length, 0, QTextStreamPrivate::Space)
!d->scan(&ptr,...rivate::Space)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 433 times by 4 tests
Evaluated by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
) {
4-433
1574 setStatus(ReadPastEnd);-
1575 return
executed 4 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 4 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
4
1576 }-
1577-
1578 str = QString(ptr, length);-
1579 d->consumeLastToken();-
1580 return
executed 433 times by 4 tests: return *this;
Executed by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
*this;
executed 433 times by 4 tests: return *this;
Executed by:
  • tst_QSettings
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
433
1581}-
1582QTextStream &QTextStream::operator>>(QByteArray &array)-
1583{-
1584 QTextStreamPrivate * const d = d_func();-
1585 do { if (!d->string
!d->stringDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2276, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-14
1586-
1587 array.clear();-
1588 d->scan(0, 0, 0, QTextStreamPrivate::NotSpace);-
1589 d->consumeLastToken();-
1590-
1591 const QChar *ptr;-
1592 int length;-
1593 if (!d->scan(&ptr, &length, 0, QTextStreamPrivate::Space)
!d->scan(&ptr,...rivate::Space)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
3-11
1594 setStatus(ReadPastEnd);-
1595 return
executed 3 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 3 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
3
1596 }-
1597-
1598 for (int i = 0; i < length
i < lengthDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QTextStream
; ++i)
11-20
1599 array += ptr[i].toLatin1();
executed 20 times by 1 test: array += ptr[i].toLatin1();
Executed by:
  • tst_QTextStream
20
1600-
1601 d->consumeLastToken();-
1602 return
executed 11 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 11 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
11
1603}-
1604QTextStream &QTextStream::operator>>(char *c)-
1605{-
1606 QTextStreamPrivate * const d = d_func();-
1607 *c = 0;-
1608 do { if (!d->string
!d->stringDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& !d->device
!d->deviceDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2313, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QTextStream
} } while (0);
0-13
1609 d->scan(0, 0, 0, QTextStreamPrivate::NotSpace);-
1610 d->consumeLastToken();-
1611-
1612 const QChar *ptr;-
1613 int length;-
1614 if (!d->scan(&ptr, &length, 0, QTextStreamPrivate::Space)
!d->scan(&ptr,...rivate::Space)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
3-9
1615 setStatus(ReadPastEnd);-
1616 return
executed 3 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 3 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
3
1617 }-
1618-
1619 for (int i = 0; i < length
i < lengthDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QTextStream
; ++i)
9-14
1620 *
executed 14 times by 1 test: *c++ = ptr[i].toLatin1();
Executed by:
  • tst_QTextStream
c++ = ptr[i].toLatin1();
executed 14 times by 1 test: *c++ = ptr[i].toLatin1();
Executed by:
  • tst_QTextStream
14
1621 *c = '\0';-
1622 d->consumeLastToken();-
1623 return
executed 9 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 9 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
9
1624}-
1625-
1626-
1627-
1628-
1629void QTextStreamPrivate::putNumber(qulonglong number, bool negative)-
1630{-
1631 QString result;-
1632-
1633 unsigned flags = 0;-
1634 const QTextStream::NumberFlags numberFlags = params.numberFlags;-
1635 if (numberFlags & QTextStream::ShowBase
numberFlags & ...ream::ShowBaseDescription
TRUEevaluated 134 times by 11 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDebug
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QMdiSubWindow
  • tst_QNetworkConfigurationManager
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
FALSEevaluated 24545 times by 44 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • ...
)
134-24545
1636 flags |= QLocaleData::ShowBase;
executed 134 times by 11 tests: flags |= QLocaleData::ShowBase;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDebug
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QMdiSubWindow
  • tst_QNetworkConfigurationManager
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
134
1637 if (numberFlags & QTextStream::ForceSign
numberFlags & ...eam::ForceSignDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 24676 times by 47 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
)
3-24676
1638 flags |= QLocaleData::AlwaysShowSign;
executed 3 times by 1 test: flags |= QLocaleData::AlwaysShowSign;
Executed by:
  • tst_QTextStream
3
1639 if (numberFlags & QTextStream::UppercaseBase
numberFlags & ...:UppercaseBaseDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 24672 times by 47 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
)
7-24672
1640 flags |= QLocaleData::UppercaseBase;
executed 7 times by 1 test: flags |= QLocaleData::UppercaseBase;
Executed by:
  • tst_QTextStream
7
1641 if (numberFlags & QTextStream::UppercaseDigits
numberFlags & ...ppercaseDigitsDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 24670 times by 47 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
)
9-24670
1642 flags |= QLocaleData::CapitalEorX;
executed 9 times by 1 test: flags |= QLocaleData::CapitalEorX;
Executed by:
  • tst_QTextStream
9
1643-
1644-
1645-
1646 if (locale != QLocale::c()
locale != QLocale::c()Description
TRUEevaluated 261 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 24418 times by 47 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
&& !locale.numberOptions().testFlag(QLocale::OmitGroupSeparator)
!locale.number...roupSeparator)Description
TRUEevaluated 175 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 86 times by 1 test
Evaluated by:
  • tst_QTextStream
)
86-24418
1647 flags |= QLocaleData::ThousandsGroup;
executed 175 times by 1 test: flags |= QLocaleData::ThousandsGroup;
Executed by:
  • tst_QTextStream
175
1648-
1649 const QLocaleData *dd = locale.d->m_data;-
1650 int base = params.integerBase
params.integerBaseDescription
TRUEevaluated 235 times by 12 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDebug
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QKeyEvent
  • tst_QMdiSubWindow
  • tst_QNetworkConfigurationManager
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
FALSEevaluated 24444 times by 43 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • ...
? params.integerBase : 10;
235-24444
1651 if (negative
negativeDescription
TRUEevaluated 1341 times by 8 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
FALSEevaluated 23338 times by 47 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
&& base == 10
base == 10Description
TRUEevaluated 1337 times by 8 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
4-23338
1652 result = dd->longLongToString(-static_cast<qlonglong>(number), -1,-
1653 base, -1, flags);-
1654 }
executed 1337 times by 8 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
else if (negative
negativeDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 23338 times by 47 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
) {
4-23338
1655-
1656-
1657-
1658-
1659 result = dd->unsLongLongToString(number, -1, base, -1, flags);-
1660 result.prepend(locale.negativeSign());-
1661 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
4
1662 result = dd->unsLongLongToString(number, -1, base, -1, flags);-
1663-
1664-
1665 if (number == 0
number == 0Description
TRUEevaluated 2750 times by 21 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextStream
  • tst_QTreeView
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
FALSEevaluated 20588 times by 44 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
&& base == 8
base == 8Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 2749 times by 21 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextStream
  • tst_QTreeView
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindow
&& params.numberFlags & QTextStream::ShowBase
1-20588
1666 && result == QLatin1String("0")
result == QLatin1String("0")Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
) {
0-1
1667 result.prepend(QLatin1Char('0'));-
1668 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QTextStream
1
1669 }
executed 23338 times by 47 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
23338
1670 putString(result, true);-
1671}
executed 24679 times by 47 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
24679
1672-
1673-
1674-
1675-
1676-
1677-
1678-
1679QTextStream &QTextStream::operator<<(QChar c)-
1680{-
1681 QTextStreamPrivate * const d = d_func();-
1682 do { if (!d->string
!d->stringDescription
TRUEevaluated 26222 times by 11 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
FALSEevaluated 24576 times by 5 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QGuiVariant
  • tst_QLogging
  • tst_QXmlSimpleReader
  • tst_QXmlStream
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 26222 times by 11 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
) { QMessageLogger(__FILE__, 2387, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-26222
1683 d->putChar(c);-
1684 return
executed 50798 times by 15 tests: return *this;
Executed by:
  • tst_QDBusXmlParser
  • tst_QFile
  • tst_QFileInfo
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
*this;
executed 50798 times by 15 tests: return *this;
Executed by:
  • tst_QDBusXmlParser
  • tst_QFile
  • tst_QFileInfo
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
50798
1685}-
1686-
1687-
1688-
1689-
1690-
1691-
1692QTextStream &QTextStream::operator<<(char c)-
1693{-
1694 QTextStreamPrivate * const d = d_func();-
1695 do { if (!d->string
!d->stringDescription
TRUEevaluated 46319 times by 7 tests
Evaluated by:
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 69444 times by 75 tests
Evaluated 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_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • ...
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 46319 times by 7 tests
Evaluated by:
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
) { QMessageLogger(__FILE__, 2400, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-69444
1696 d->putChar(QChar::fromLatin1(c));-
1697 return
executed 115763 times by 80 tests: return *this;
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_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • ...
*this;
executed 115763 times by 80 tests: return *this;
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_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • ...
115763
1698}-
1699QTextStream &QTextStream::operator<<(signed short i)-
1700{-
1701 QTextStreamPrivate * const d = d_func();-
1702 do { if (!d->string
!d->stringDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QDebug
  • tst_QVariant
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2416, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-36
1703 d->putNumber((qulonglong)qAbs(qlonglong(i)), i < 0);-
1704 return
executed 38 times by 3 tests: return *this;
Executed by:
  • tst_QDebug
  • tst_QTextStream
  • tst_QVariant
*this;
executed 38 times by 3 tests: return *this;
Executed by:
  • tst_QDebug
  • tst_QTextStream
  • tst_QVariant
38
1705}-
1706-
1707-
1708-
1709-
1710-
1711-
1712QTextStream &QTextStream::operator<<(unsigned short i)-
1713{-
1714 QTextStreamPrivate * const d = d_func();-
1715 do { if (!d->string
!d->stringDescription
TRUEevaluated 117 times by 2 tests
Evaluated by:
  • tst_QKeyEvent
  • tst_QTextStream
FALSEevaluated 81 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 117 times by 2 tests
Evaluated by:
  • tst_QKeyEvent
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2429, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-117
1716 d->putNumber((qulonglong)i, false);-
1717 return
executed 198 times by 6 tests: return *this;
Executed by:
  • tst_QKeyEvent
  • tst_QNetworkProxyFactory
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QVariant
*this;
executed 198 times by 6 tests: return *this;
Executed by:
  • tst_QKeyEvent
  • tst_QNetworkProxyFactory
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QVariant
198
1718}-
1719-
1720-
1721-
1722-
1723-
1724-
1725QTextStream &QTextStream::operator<<(signed int i)-
1726{-
1727 QTextStreamPrivate * const d = d_func();-
1728 do { if (!d->string
!d->stringDescription
TRUEevaluated 3410 times by 7 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QTextStream
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 14993 times by 33 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QObjectPerformance
  • tst_QOpenGlConfig
  • tst_QSslSocket
  • tst_QTextLayout
  • tst_QTextStream
  • ...
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 3410 times by 7 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QTextStream
  • tst_qdbusxml2cpp - unknown status
) { QMessageLogger(__FILE__, 2442, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-14993
1729 d->putNumber((qulonglong)qAbs(qlonglong(i)), i < 0);-
1730 return
executed 18403 times by 39 tests: return *this;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • ...
*this;
executed 18403 times by 39 tests: return *this;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMenu
  • tst_QMenuBar
  • tst_QNetworkConfigurationManager
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • ...
18403
1731}-
1732-
1733-
1734-
1735-
1736-
1737-
1738QTextStream &QTextStream::operator<<(unsigned int i)-
1739{-
1740 QTextStreamPrivate * const d = d_func();-
1741 do { if (!d->string
!d->stringDescription
TRUEevaluated 60 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 6 times by 3 tests
Evaluated by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QVariant
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 60 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2455, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-60
1742 d->putNumber((qulonglong)i, false);-
1743 return
executed 66 times by 4 tests: return *this;
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QTextStream
  • tst_QVariant
*this;
executed 66 times by 4 tests: return *this;
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QTextStream
  • tst_QVariant
66
1744}-
1745-
1746-
1747-
1748-
1749-
1750-
1751QTextStream &QTextStream::operator<<(signed long i)-
1752{-
1753 QTextStreamPrivate * const d = d_func();-
1754 do { if (!d->string
!d->stringDescription
TRUEnever evaluated
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QDebug
  • tst_QVariant
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEnever evaluated
) { QMessageLogger(__FILE__, 2468, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-2
1755 d->putNumber((qulonglong)qAbs(qlonglong(i)), i < 0);-
1756 return
executed 2 times by 2 tests: return *this;
Executed by:
  • tst_QDebug
  • tst_QVariant
*this;
executed 2 times by 2 tests: return *this;
Executed by:
  • tst_QDebug
  • tst_QVariant
2
1757}-
1758-
1759-
1760-
1761-
1762-
1763-
1764QTextStream &QTextStream::operator<<(unsigned long i)-
1765{-
1766 QTextStreamPrivate * const d = d_func();-
1767 do { if (!d->string
!d->stringDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEnever evaluated
) { QMessageLogger(__FILE__, 2481, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-1
1768 d->putNumber((qulonglong)i, false);-
1769 return
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QVariant
*this;
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QVariant
1
1770}-
1771-
1772-
1773-
1774-
1775-
1776-
1777QTextStream &QTextStream::operator<<(qlonglong i)-
1778{-
1779 QTextStreamPrivate * const d = d_func();-
1780 do { if (!d->string
!d->stringDescription
TRUEevaluated 97 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 5734 times by 10 tests
Evaluated by:
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QMimeDatabase
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QString
  • tst_QTreeView
  • tst_QVariant
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 97 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2494, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-5734
1781 d->putNumber((qulonglong)qAbs(i), i < 0);-
1782 return
executed 5831 times by 11 tests: return *this;
Executed by:
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QMimeDatabase
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QString
  • tst_QTextStream
  • tst_QTreeView
  • tst_QVariant
*this;
executed 5831 times by 11 tests: return *this;
Executed by:
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QMimeDatabase
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QString
  • tst_QTextStream
  • tst_QTreeView
  • tst_QVariant
5831
1783}-
1784-
1785-
1786-
1787-
1788-
1789-
1790QTextStream &QTextStream::operator<<(qulonglong i)-
1791{-
1792 QTextStreamPrivate * const d = d_func();-
1793 do { if (!d->string
!d->stringDescription
TRUEevaluated 76 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 14 times by 4 tests
Evaluated by:
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QVariant
  • tst_QWidget_window
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 76 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2507, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-76
1794 d->putNumber(i, false);-
1795 return
executed 90 times by 5 tests: return *this;
Executed by:
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget_window
*this;
executed 90 times by 5 tests: return *this;
Executed by:
  • tst_QDebug
  • tst_QElapsedTimer
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget_window
90
1796}-
1797QTextStream &QTextStream::operator<<(float f)-
1798{-
1799 return
executed 54 times by 3 tests: return *this << double(f);
Executed by:
  • tst_QGuiVariant
  • tst_QTextStream
  • tst_QVariant
*this << double(f);
executed 54 times by 3 tests: return *this << double(f);
Executed by:
  • tst_QGuiVariant
  • tst_QTextStream
  • tst_QVariant
54
1800}-
1801-
1802-
1803-
1804-
1805-
1806-
1807QTextStream &QTextStream::operator<<(double f)-
1808{-
1809 QTextStreamPrivate * const d = d_func();-
1810 do { if (!d->string
!d->stringDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 278 times by 9 tests
Evaluated by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2536, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-278
1811-
1812 QLocaleData::DoubleForm form = QLocaleData::DFDecimal;-
1813 switch (realNumberNotation()) {-
1814 case
executed 2 times by 1 test: case FixedNotation:
Executed by:
  • tst_QTextStream
FixedNotation:
executed 2 times by 1 test: case FixedNotation:
Executed by:
  • tst_QTextStream
2
1815 form = QLocaleData::DFDecimal;-
1816 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QTextStream
2
1817 case
executed 5 times by 1 test: case ScientificNotation:
Executed by:
  • tst_QTextStream
ScientificNotation:
executed 5 times by 1 test: case ScientificNotation:
Executed by:
  • tst_QTextStream
5
1818 form = QLocaleData::DFExponent;-
1819 break;
executed 5 times by 1 test: break;
Executed by:
  • tst_QTextStream
5
1820 case
executed 299 times by 9 tests: case SmartNotation:
Executed by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
SmartNotation:
executed 299 times by 9 tests: case SmartNotation:
Executed by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
299
1821 form = QLocaleData::DFSignificantDigits;-
1822 break;
executed 299 times by 9 tests: break;
Executed by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
299
1823 }-
1824-
1825 uint flags = 0;-
1826 if (numberFlags() & ShowBase
numberFlags() & ShowBaseDescription
TRUEnever evaluated
FALSEevaluated 306 times by 9 tests
Evaluated by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
)
0-306
1827 flags |= QLocaleData::ShowBase;
never executed: flags |= QLocaleData::ShowBase;
0
1828 if (numberFlags() & ForceSign
numberFlags() & ForceSignDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 302 times by 9 tests
Evaluated by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
)
4-302
1829 flags |= QLocaleData::AlwaysShowSign;
executed 4 times by 1 test: flags |= QLocaleData::AlwaysShowSign;
Executed by:
  • tst_QTextStream
4
1830 if (numberFlags() & UppercaseBase
numberFlags() & UppercaseBaseDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 305 times by 9 tests
Evaluated by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
)
1-305
1831 flags |= QLocaleData::UppercaseBase;
executed 1 time by 1 test: flags |= QLocaleData::UppercaseBase;
Executed by:
  • tst_QTextStream
1
1832 if (numberFlags() & UppercaseDigits
numberFlags() ...ppercaseDigitsDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 299 times by 9 tests
Evaluated by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
)
7-299
1833 flags |= QLocaleData::CapitalEorX;
executed 7 times by 1 test: flags |= QLocaleData::CapitalEorX;
Executed by:
  • tst_QTextStream
7
1834 if (numberFlags() & ForcePoint
numberFlags() & ForcePointDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 300 times by 9 tests
Evaluated by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
)
6-300
1835 flags |= QLocaleData::Alternate;
executed 6 times by 1 test: flags |= QLocaleData::Alternate;
Executed by:
  • tst_QTextStream
6
1836 if (locale() != QLocale::c()
locale() != QLocale::c()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 294 times by 9 tests
Evaluated by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
&& !(locale().numberOptions() & QLocale::OmitGroupSeparator)
!(locale().num...roupSeparator)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
)
0-294
1837 flags |= QLocaleData::ThousandsGroup;
executed 12 times by 1 test: flags |= QLocaleData::ThousandsGroup;
Executed by:
  • tst_QTextStream
12
1838 if (!(locale().numberOptions() & QLocale::OmitLeadingZeroInExponent)
!(locale().num...eroInExponent)Description
TRUEevaluated 306 times by 9 tests
Evaluated by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
FALSEnever evaluated
)
0-306
1839 flags |= QLocaleData::ZeroPadExponent;
executed 306 times by 9 tests: flags |= QLocaleData::ZeroPadExponent;
Executed by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
306
1840-
1841 const QLocaleData *dd = d->locale.d->m_data;-
1842 QString num = dd->doubleToString(f, d->params.realNumberPrecision, form, -1, flags);-
1843 d->putString(num, true);-
1844 return
executed 306 times by 9 tests: return *this;
Executed by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
*this;
executed 306 times by 9 tests: return *this;
Executed by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
306
1845}-
1846QTextStream &QTextStream::operator<<(const QString &string)-
1847{-
1848 QTextStreamPrivate * const d = d_func();-
1849 do { if (!d->string
!d->stringDescription
TRUEevaluated 27011 times by 10 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 95658 times by 72 tests
Evaluated 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_QFile
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • tst_QLocalSocket
  • ...
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 27011 times by 10 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
) { QMessageLogger(__FILE__, 2584, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-95658
1850 d->putString(string);-
1851 return
executed 122669 times by 78 tests: return *this;
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_QFile
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • ...
*this;
executed 122669 times by 78 tests: return *this;
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_QFile
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • ...
122669
1852}-
1853-
1854-
1855-
1856-
1857-
1858-
1859-
1860QTextStream &QTextStream::operator<<(QLatin1String string)-
1861{-
1862 QTextStreamPrivate * const d = d_func();-
1863 do { if (!d->string
!d->stringDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2598, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-3
1864 d->putString(string);-
1865 return
executed 3 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 3 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
3
1866}-
1867QTextStream &QTextStream::operator<<(const QStringRef &string)-
1868{-
1869 QTextStreamPrivate * const d = d_func();-
1870 do { if (!d->string
!d->stringDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
) { QMessageLogger(__FILE__, 2613, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-2
1871 d->putString(string.data(), string.size());-
1872 return
executed 2 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
*this;
executed 2 times by 1 test: return *this;
Executed by:
  • tst_QTextStream
2
1873}-
1874-
1875-
1876-
1877-
1878-
1879-
1880-
1881QTextStream &QTextStream::operator<<(const QByteArray &array)-
1882{-
1883 QTextStreamPrivate * const d = d_func();-
1884 do { if (!d->string
!d->stringDescription
TRUEevaluated 247 times by 2 tests
Evaluated by:
  • tst_QTextStream
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 194 times by 1 test
Evaluated by:
  • tst_QOpenGlConfig
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 247 times by 2 tests
Evaluated by:
  • tst_QTextStream
  • tst_qdbusxml2cpp - unknown status
) { QMessageLogger(__FILE__, 2627, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-247
1885 d->putString(QString::fromUtf8(array.constData(), array.length()));-
1886 return
executed 441 times by 3 tests: return *this;
Executed by:
  • tst_QOpenGlConfig
  • tst_QTextStream
  • tst_qdbusxml2cpp - unknown status
*this;
executed 441 times by 3 tests: return *this;
Executed by:
  • tst_QOpenGlConfig
  • tst_QTextStream
  • tst_qdbusxml2cpp - unknown status
441
1887}-
1888QTextStream &QTextStream::operator<<(const char *string)-
1889{-
1890 QTextStreamPrivate * const d = d_func();-
1891 do { if (!d->string
!d->stringDescription
TRUEevaluated 18793 times by 14 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
FALSEevaluated 41996 times by 19 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QLogging
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextStream
  • tst_QTreeView
  • tst_QVariant
  • tst_QWidget_window
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Selftests
  • tst_selftests - unknown status
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 18793 times by 14 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLoggingRegistry
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
) { QMessageLogger(__FILE__, 2648, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-41996
1892 d->putString(QLatin1String(string));-
1893 return
executed 60789 times by 30 tests: return *this;
Executed by:
  • tst_QDBusXmlParser
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QOpenGlConfig
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QTreeView
  • tst_QVariant
  • tst_QWidget_window
  • tst_QXmlSimpleReader
  • ...
*this;
executed 60789 times by 30 tests: return *this;
Executed by:
  • tst_QDBusXmlParser
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QOpenGlConfig
  • tst_QSaveFile
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
  • tst_QTreeView
  • tst_QVariant
  • tst_QWidget_window
  • tst_QXmlSimpleReader
  • ...
60789
1894}-
1895-
1896-
1897-
1898-
1899-
1900-
1901-
1902QTextStream &QTextStream::operator<<(const void *ptr)-
1903{-
1904 QTextStreamPrivate * const d = d_func();-
1905 do { if (!d->string
!d->stringDescription
TRUEnever evaluated
FALSEevaluated 50 times by 7 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QGraphicsItem
  • tst_QMdiSubWindow
  • tst_QVariant
  • tst_QWidget
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEnever evaluated
) { QMessageLogger(__FILE__, 2662, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-50
1906 const int oldBase = d->params.integerBase;-
1907 const NumberFlags oldFlags = d->params.numberFlags;-
1908 d->params.integerBase = 16;-
1909 d->params.numberFlags |= ShowBase;-
1910 d->putNumber(reinterpret_cast<quintptr>(ptr), false);-
1911 d->params.integerBase = oldBase;-
1912 d->params.numberFlags = oldFlags;-
1913 return
executed 50 times by 7 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QGraphicsItem
  • tst_QMdiSubWindow
  • tst_QVariant
  • tst_QWidget
*this;
executed 50 times by 7 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QGraphicsItem
  • tst_QMdiSubWindow
  • tst_QVariant
  • tst_QWidget
50
1914}-
1915QTextStream &bin(QTextStream &stream)-
1916{-
1917 stream.setIntegerBase(2);-
1918 return
executed 15 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
stream;
executed 15 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
15
1919}-
1920QTextStream &oct(QTextStream &stream)-
1921{-
1922 stream.setIntegerBase(8);-
1923 return
executed 3 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
stream;
executed 3 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
3
1924}-
1925QTextStream &dec(QTextStream &stream)-
1926{-
1927 stream.setIntegerBase(10);-
1928 return
executed 82 times by 2 tests: return stream;
Executed by:
  • tst_QGuiVariant
  • tst_QKeyEvent
stream;
executed 82 times by 2 tests: return stream;
Executed by:
  • tst_QGuiVariant
  • tst_QKeyEvent
82
1929}-
1930QTextStream &hex(QTextStream &stream)-
1931{-
1932 stream.setIntegerBase(16);-
1933 return
executed 136 times by 6 tests: return stream;
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QKeyEvent
  • tst_QNetworkConfigurationManager
  • tst_QTextStream
  • tst_QVariant
stream;
executed 136 times by 6 tests: return stream;
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QKeyEvent
  • tst_QNetworkConfigurationManager
  • tst_QTextStream
  • tst_QVariant
136
1934}-
1935QTextStream &showbase(QTextStream &stream)-
1936{-
1937 stream.setNumberFlags(stream.numberFlags() | QTextStream::ShowBase);-
1938 return
executed 59 times by 4 tests: return stream;
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkConfigurationManager
  • tst_QTextStream
stream;
executed 59 times by 4 tests: return stream;
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkConfigurationManager
  • tst_QTextStream
59
1939}-
1940QTextStream &forcesign(QTextStream &stream)-
1941{-
1942 stream.setNumberFlags(stream.numberFlags() | QTextStream::ForceSign);-
1943 return
executed 1 time by 1 test: return stream;
Executed by:
  • tst_QTextStream
stream;
executed 1 time by 1 test: return stream;
Executed by:
  • tst_QTextStream
1
1944}-
1945QTextStream &forcepoint(QTextStream &stream)-
1946{-
1947 stream.setNumberFlags(stream.numberFlags() | QTextStream::ForcePoint);-
1948 return
executed 3 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
stream;
executed 3 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
3
1949}-
1950QTextStream &noshowbase(QTextStream &stream)-
1951{-
1952 stream.setNumberFlags(stream.numberFlags() &= ~QTextStream::ShowBase);-
1953 return
executed 1 time by 1 test: return stream;
Executed by:
  • tst_QGuiVariant
stream;
executed 1 time by 1 test: return stream;
Executed by:
  • tst_QGuiVariant
1
1954}-
1955QTextStream &noforcesign(QTextStream &stream)-
1956{-
1957 stream.setNumberFlags(stream.numberFlags() &= ~QTextStream::ForceSign);-
1958 return
never executed: return stream;
stream;
never executed: return stream;
0
1959}-
1960QTextStream &noforcepoint(QTextStream &stream)-
1961{-
1962 stream.setNumberFlags(stream.numberFlags() &= ~QTextStream::ForcePoint);-
1963 return
never executed: return stream;
stream;
never executed: return stream;
0
1964}-
1965QTextStream &uppercasebase(QTextStream &stream)-
1966{-
1967 stream.setNumberFlags(stream.numberFlags() | QTextStream::UppercaseBase);-
1968 return
executed 7 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
stream;
executed 7 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
7
1969}-
1970QTextStream &uppercasedigits(QTextStream &stream)-
1971{-
1972 stream.setNumberFlags(stream.numberFlags() | QTextStream::UppercaseDigits);-
1973 return
executed 10 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
stream;
executed 10 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
10
1974}-
1975QTextStream &lowercasebase(QTextStream &stream)-
1976{-
1977 stream.setNumberFlags(stream.numberFlags() & ~QTextStream::UppercaseBase);-
1978 return
executed 5 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
stream;
executed 5 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
5
1979}-
1980QTextStream &lowercasedigits(QTextStream &stream)-
1981{-
1982 stream.setNumberFlags(stream.numberFlags() & ~QTextStream::UppercaseDigits);-
1983 return
executed 3 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
stream;
executed 3 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
3
1984}-
1985QTextStream &fixed(QTextStream &stream)-
1986{-
1987 stream.setRealNumberNotation(QTextStream::FixedNotation);-
1988 return
executed 1 time by 1 test: return stream;
Executed by:
  • tst_QTextStream
stream;
executed 1 time by 1 test: return stream;
Executed by:
  • tst_QTextStream
1
1989}-
1990QTextStream &scientific(QTextStream &stream)-
1991{-
1992 stream.setRealNumberNotation(QTextStream::ScientificNotation);-
1993 return
executed 1 time by 1 test: return stream;
Executed by:
  • tst_QTextStream
stream;
executed 1 time by 1 test: return stream;
Executed by:
  • tst_QTextStream
1
1994}-
1995QTextStream &left(QTextStream &stream)-
1996{-
1997 stream.setFieldAlignment(QTextStream::AlignLeft);-
1998 return
never executed: return stream;
stream;
never executed: return stream;
0
1999}-
2000QTextStream &right(QTextStream &stream)-
2001{-
2002 stream.setFieldAlignment(QTextStream::AlignRight);-
2003 return
executed 1 time by 1 test: return stream;
Executed by:
  • tst_QDebug
stream;
executed 1 time by 1 test: return stream;
Executed by:
  • tst_QDebug
1
2004}-
2005QTextStream &center(QTextStream &stream)-
2006{-
2007 stream.setFieldAlignment(QTextStream::AlignCenter);-
2008 return
never executed: return stream;
stream;
never executed: return stream;
0
2009}-
2010QTextStream &endl(QTextStream &stream)-
2011{-
2012 return
executed 50771 times by 14 tests: return stream << QLatin1Char('\n') << flush;
Executed by:
  • tst_QDBusXmlParser
  • tst_QFile
  • tst_QFileInfo
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
stream << QLatin1Char('\n') << flush;
executed 50771 times by 14 tests: return stream << QLatin1Char('\n') << flush;
Executed by:
  • tst_QDBusXmlParser
  • tst_QFile
  • tst_QFileInfo
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
50771
2013}-
2014QTextStream &flush(QTextStream &stream)-
2015{-
2016 stream.flush();-
2017 return
executed 50774 times by 15 tests: return stream;
Executed by:
  • tst_QDBusXmlParser
  • tst_QFile
  • tst_QFileInfo
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
stream;
executed 50774 times by 15 tests: return stream;
Executed by:
  • tst_QDBusXmlParser
  • tst_QFile
  • tst_QFileInfo
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_qdbusxml2cpp - unknown status
  • tst_qtextstream - unknown status
50774
2018}-
2019QTextStream &reset(QTextStream &stream)-
2020{-
2021 stream.reset();-
2022 return
executed 3 times by 2 tests: return stream;
Executed by:
  • tst_QDebug
  • tst_QVariant
stream;
executed 3 times by 2 tests: return stream;
Executed by:
  • tst_QDebug
  • tst_QVariant
3
2023}-
2024QTextStream &ws(QTextStream &stream)-
2025{-
2026 stream.skipWhiteSpace();-
2027 return
executed 3 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
stream;
executed 3 times by 1 test: return stream;
Executed by:
  • tst_QTextStream
3
2028}-
2029QTextStream &bom(QTextStream &stream)-
2030{-
2031 stream.setGenerateByteOrderMark(true);-
2032 return
executed 1 time by 1 test: return stream;
Executed by:
  • tst_QTextStream
stream;
executed 1 time by 1 test: return stream;
Executed by:
  • tst_QTextStream
1
2033}-
2034void QTextStream::setCodec(QTextCodec *codec)-
2035{-
2036 QTextStreamPrivate * const d = d_func();-
2037 qint64 seekPos = -1;-
2038 if (!d->readBuffer.isEmpty()
!d->readBuffer.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 2129 times by 6 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QFile
  • tst_QString
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
) {
1-2129
2039 if (!d->device->isSequential()
!d->device->isSequential()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
) {
0-1
2040 seekPos = pos();-
2041 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QTextStream
1
2042 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QTextStream
1
2043 d->codec = codec;-
2044 if (seekPos >=0
seekPos >=0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 2129 times by 6 tests
Evaluated by:
  • tst_QDBusXmlParser
  • tst_QFile
  • tst_QString
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
&& !d->readBuffer.isEmpty()
!d->readBuffer.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
)
0-2129
2045 seek(seekPos);
executed 1 time by 1 test: seek(seekPos);
Executed by:
  • tst_QTextStream
1
2046}
executed 2130 times by 6 tests: end of block
Executed by:
  • tst_QDBusXmlParser
  • tst_QFile
  • tst_QString
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
2130
2047void QTextStream::setCodec(const char *codecName)-
2048{-
2049 QTextCodec *codec = QTextCodec::codecForName(codecName);-
2050 if (codec
codecDescription
TRUEevaluated 1941 times by 4 tests
Evaluated by:
  • tst_QFile
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
FALSEnever evaluated
)
0-1941
2051 setCodec(codec);
executed 1941 times by 4 tests: setCodec(codec);
Executed by:
  • tst_QFile
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
1941
2052}
executed 1941 times by 4 tests: end of block
Executed by:
  • tst_QFile
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
1941
2053-
2054-
2055-
2056-
2057-
2058-
2059QTextCodec *QTextStream::codec() const-
2060{-
2061 const QTextStreamPrivate * const d = d_func();-
2062 return
executed 401 times by 3 tests: return d->codec;
Executed by:
  • tst_QDBusXmlParser
  • tst_QTextStream
  • tst_QXmlSimpleReader
d->codec;
executed 401 times by 3 tests: return d->codec;
Executed by:
  • tst_QDBusXmlParser
  • tst_QTextStream
  • tst_QXmlSimpleReader
401
2063}-
2064void QTextStream::setAutoDetectUnicode(bool enabled)-
2065{-
2066 QTextStreamPrivate * const d = d_func();-
2067 d->autoDetectUnicode = enabled;-
2068}
executed 55 times by 1 test: end of block
Executed by:
  • tst_QTextStream
55
2069-
2070-
2071-
2072-
2073-
2074-
2075-
2076bool QTextStream::autoDetectUnicode() const-
2077{-
2078 const QTextStreamPrivate * const d = d_func();-
2079 return
executed 2 times by 1 test: return d->autoDetectUnicode;
Executed by:
  • tst_QTextStream
d->autoDetectUnicode;
executed 2 times by 1 test: return d->autoDetectUnicode;
Executed by:
  • tst_QTextStream
2
2080}-
2081void QTextStream::setGenerateByteOrderMark(bool generate)-
2082{-
2083 QTextStreamPrivate * const d = d_func();-
2084 if (d->writeBuffer.isEmpty()
d->writeBuffer.isEmpty()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
) {
0-3
2085 d->writeConverterState.flags.setFlag(QTextCodec::IgnoreHeader, !generate);-
2086 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QTextStream
3
2087}
executed 3 times by 1 test: end of block
Executed by:
  • tst_QTextStream
3
2088bool QTextStream::generateByteOrderMark() const-
2089{-
2090 const QTextStreamPrivate * const d = d_func();-
2091 return
executed 2 times by 1 test: return (d->writeConverterState.flags & QTextCodec::IgnoreHeader) == 0;
Executed by:
  • tst_QTextStream
(d->writeConverterState.flags & QTextCodec::IgnoreHeader) == 0;
executed 2 times by 1 test: return (d->writeConverterState.flags & QTextCodec::IgnoreHeader) == 0;
Executed by:
  • tst_QTextStream
2
2092}-
2093void QTextStream::setLocale(const QLocale &locale)-
2094{-
2095 QTextStreamPrivate * const d = d_func();-
2096 d->locale = locale;-
2097}
executed 384 times by 1 test: end of block
Executed by:
  • tst_QTextStream
384
2098QLocale QTextStream::locale() const-
2099{-
2100 const QTextStreamPrivate * const d = d_func();-
2101 return
executed 624 times by 9 tests: return d->locale;
Executed by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
d->locale;
executed 624 times by 9 tests: return d->locale;
Executed by:
  • tst_QBrush
  • tst_QDebug
  • tst_QGraphicsAnchorLayout
  • tst_QGuiVariant
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
624
2102}-
2103-
2104-
Switch to Source codePreprocessed file

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