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 78681 times by 98 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
  • ...
78681
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 77990 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
  • ...
) {
845-77990
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 78835 times by 98 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
  • ...
78835
42-
43-
44static void resetCodecConverterStateHelper(QTextCodec::ConverterState *state)-
45{-
46 state->~ConverterState();-
47 new (state) QTextCodec::ConverterState;-
48}
executed 588423 times by 98 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
  • ...
588423
49-
50static void copyConverterStateHelper(QTextCodec::ConverterState *dest,-
51 const QTextCodec::ConverterState *src)-
52{-
53-
54-
55 ((!(!src->d)) ? qt_assert("!src->d",__FILE__,362) : 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 92953 times by 98 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
  • ...
92953
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 78853 times by 98 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
  • ...
78853
102-
103-
104-
105-
106bool QTextStreamPrivate::fillReadBuffer(qint64 maxBytes)-
107{-
108-
109-
110 ((!(!string)) ? qt_assert("!string",__FILE__,417) : qt_noop());-
111 ((!(device)) ? qt_assert("device",__FILE__,418) : 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 183757 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-183757
269 QChar lastChar;-
270-
271 bool canStillReadFromDevice = true;-
272 do {-
273 int endOffset;-
274 const QChar *chPtr;-
275 if (device
deviceDescription
TRUEevaluated 186688 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-186688
276 chPtr = readBuffer.constData();-
277 endOffset = readBuffer.size();-
278 }
executed 186688 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 {
186688
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 4219026 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 207681 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 4215822 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 4164606 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-4219026
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 4145979 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 4145979 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
4145979
302 if (ch == QLatin1Char('\n')
ch == QLatin1Char('\n')Description
TRUEevaluated 184317 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 3961028 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
) {
184317-3961028
303 foundToken = true;-
304 delimSize = (
(lastChar == Q...in1Char('\r'))Description
TRUEevaluated 75386 times by 2 tests
Evaluated by:
  • tst_QTcpSocket
  • tst_QTextStream
FALSEevaluated 108931 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 108931 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-108931
305 consumeDelimiter = true;-
306 }
executed 184317 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
184317
307 lastChar = ch;-
308 break;
executed 4145979 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
4145979
309 }-
310 }
executed 4215812 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
4215812
311 }
executed 210895 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 207681 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-210895
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 207885 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-207885
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 184393 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 184393 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 184317 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-184393
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 184846 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-184846
334 *
executed 184846 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 184846 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
184846
335 if (ptr
ptrDescription
TRUEevaluated 184846 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-184846
336 *
executed 184846 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 184846 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
184846
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 184328 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-184328
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 207885 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 207885 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
207885
349}-
350-
351-
352-
353-
354inline const QChar *QTextStreamPrivate::readPtr() const-
355{-
356 ((!(readBufferOffset <= readBuffer.size())) ? qt_assert("readBufferOffset <= readBuffer.size()",__FILE__,737) : qt_noop());-
357 if (string
stringDescription
TRUEevaluated 24368 times by 4 tests
Evaluated by:
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QString
  • tst_QTextStream
FALSEevaluated 230094 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-230094
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 230094 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 230094 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
230094
360}-
361-
362-
363-
364-
365inline void QTextStreamPrivate::consumeLastToken()-
366{-
367 if (lastTokenSize
lastTokenSizeDescription
TRUEevaluated 208110 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-208110
368 consume(lastTokenSize);
executed 208110 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
208110
369 lastTokenSize = 0;-
370}
executed 208977 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
208977
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 253314 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-253314
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 250616 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-250616
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 1301 times by 3 tests
Evaluated by:
  • tst_QLayout
  • tst_QTextStream
  • tst_QTimeZone
FALSEevaluated 249315 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
) {
1301-249315
391 readBuffer = readBuffer.remove(0,readBufferOffset);-
392 readConverterSavedStateOffset += readBufferOffset;-
393 readBufferOffset = 0;-
394 }
executed 1301 times by 3 tests: end of block
Executed by:
  • tst_QLayout
  • tst_QTextStream
  • tst_QTimeZone
1301
395 }
executed 253314 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
253314
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 160957 times by 81 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_QGuiApplication
  • tst_QGuiEventLoop
  • ...
FALSEevaluated 37490 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
) {
37490-160957
443-
444 string->append(data, len);-
445 }
executed 160957 times by 81 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_QGuiApplication
  • tst_QGuiEventLoop
  • ...
else {
160957
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 37486 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-37486
448 flushWriteBuffer();
executed 4 times by 2 tests: flushWriteBuffer();
Executed by:
  • tst_QLocalSocket
  • tst_QTextStream
4
449 }
executed 37490 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
37490
450}-
451-
452-
453-
454-
455inline void QTextStreamPrivate::write(QChar ch)-
456{-
457 if (string
stringDescription
TRUEevaluated 93254 times by 77 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_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • ...
FALSEevaluated 63096 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
) {
63096-93254
458-
459 string->append(ch);-
460 }
executed 93254 times by 77 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_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • ...
else {
93254
461 writeBuffer += ch;-
462 if (writeBuffer.size() > QTEXTSTREAM_BUFFERSIZE
writeBuffer.si...EAM_BUFFERSIZEDescription
TRUEnever evaluated
FALSEevaluated 63096 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-63096
463 flushWriteBuffer();
never executed: flushWriteBuffer();
0
464 }
executed 63096 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
63096
465}-
466-
467-
468-
469-
470void QTextStreamPrivate::write(QLatin1String data)-
471{-
472 if (string
stringDescription
TRUEevaluated 41270 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 26241 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
) {
26241-41270
473-
474 string->append(data);-
475 }
executed 41270 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 {
41270
476 writeBuffer += data;-
477 if (writeBuffer.size() > QTEXTSTREAM_BUFFERSIZE
writeBuffer.si...EAM_BUFFERSIZEDescription
TRUEnever evaluated
FALSEevaluated 26241 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-26241
478 flushWriteBuffer();
never executed: flushWriteBuffer();
0
479 }
executed 26241 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
26241
480}-
481-
482-
483-
484-
485inline bool QTextStreamPrivate::getChar(QChar *ch)-
486{-
487 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
488 || (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
489 if (ch
chDescription
TRUEevaluated 427 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEnever evaluated
)
0-427
490 *
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
491 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
492 }-
493 if (ch
chDescription
TRUEevaluated 69616 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
FALSEnever evaluated
)
0-69616
494 *
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
495 consume(1);-
496 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
497}-
498-
499-
500-
501-
502inline void QTextStreamPrivate::ungetChar(QChar ch)-
503{-
504 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
505 if (stringOffset == 0
stringOffset == 0Description
TRUEnever evaluated
FALSEevaluated 51 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
)
0-51
506 string->prepend(ch);
never executed: string->prepend(ch);
0
507 else-
508 (*
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
509 return;
executed 51 times by 2 tests: return;
Executed by:
  • tst_QString
  • tst_QTextStream
51
510 }-
511-
512 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
513 readBuffer.prepend(ch);-
514 return;
executed 45 times by 2 tests: return;
Executed by:
  • tst_QSplitter
  • tst_QTextStream
45
515 }-
516-
517 readBuffer[--readBufferOffset] = ch;-
518}
executed 39004 times by 2 tests: end of block
Executed by:
  • tst_QSplitter
  • tst_QTextStream
39004
519-
520-
521-
522-
523inline void QTextStreamPrivate::putChar(QChar ch)-
524{-
525 if (params.fieldWidth > 0
params.fieldWidth > 0Description
TRUEevaluated 2004 times by 2 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QTextStream
FALSEevaluated 156350 times by 85 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_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • ...
)
2004-156350
526 putString(&ch, 1);
executed 2004 times by 2 tests: putString(&ch, 1);
Executed by:
  • tst_QGuiVariant
  • tst_QTextStream
2004
527 else-
528 write(ch);
executed 156350 times by 85 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_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • ...
156350
529}-
530-
531-
532-
533-
534-
535QTextStreamPrivate::PaddingResult QTextStreamPrivate::padding(int len) const-
536{-
537 ((!(params.fieldWidth > len)) ? qt_assert("params.fieldWidth > len",__FILE__,918) : qt_noop());-
538-
539-
540-
541 PaddingResult result;-
542-
543 const int padSize = params.fieldWidth - len;-
544-
545 result.padding.resize(padSize);-
546 std::fill_n(result.padding.begin(), padSize, params.padChar);-
547-
548 switch (params.fieldAlignment) {-
549 case
never executed: case QTextStream::AlignLeft:
QTextStream::AlignLeft:
never executed: case QTextStream::AlignLeft:
0
550 result.left = 0;-
551 result.right = padSize;-
552 break;
never executed: break;
0
553 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
554 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
555 result.left = padSize;-
556 result.right = 0;-
557 break;
executed 2239 times by 4 tests: break;
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
2239
558 case
never executed: case QTextStream::AlignCenter:
QTextStream::AlignCenter:
never executed: case QTextStream::AlignCenter:
0
559 result.left = padSize/2;-
560 result.right = padSize - padSize/2;-
561 break;
never executed: break;
0
562 }-
563-
564 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
565}-
566-
567-
568-
569-
570void QTextStreamPrivate::putString(const QChar *data, int len, bool number)-
571{-
572 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 147691 times by 88 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-147691
573-
574-
575-
576 const PaddingResult pad = padding(len);-
577-
578 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
579 const QChar sign = len > 0
len > 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
? data[0] : QChar();
0-2
580 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
581-
582 write(&sign, 1);-
583 ++data;-
584 --len;-
585 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QTextStream
2
586 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QTextStream
2
587-
588 write(pad.padding.constData(), pad.left);-
589 write(data, len);-
590 write(pad.padding.constData(), pad.right);-
591 }
executed 2237 times by 4 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
else {
2237
592 write(data, len);-
593 }
executed 147879 times by 88 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
  • ...
147879
594}-
595-
596-
597-
598-
599void QTextStreamPrivate::putString(QLatin1String data, bool number)-
600{-
601 if (__builtin_expect(!!(params.fieldWidth > data.size()), false)
__builtin_expe...ize()), false)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 67509 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-67509
602-
603-
604-
605 const PaddingResult pad = padding(data.size());-
606-
607 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
608 const QChar sign = data.size() > 0
data.size() > 0Description
TRUEnever evaluated
FALSEnever evaluated
? QLatin1Char(*data.data()) : QChar();
0
609 if (sign == locale.negativeSign()
sign == locale.negativeSign()Description
TRUEnever evaluated
FALSEnever evaluated
|| sign == locale.positiveSign()
sign == locale.positiveSign()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
610-
611 write(&sign, 1);-
612 data = QLatin1String(data.data() + 1, data.size() - 1);-
613 }
never executed: end of block
0
614 }
never executed: end of block
0
615-
616 write(pad.padding.constData(), pad.left);-
617 write(data);-
618 write(pad.padding.constData(), pad.right);-
619 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
2
620 write(data);-
621 }
executed 67509 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
  • ...
67509
622}-
623-
624-
625-
626-
627-
628-
629-
630QTextStream::QTextStream()-
631 : d_ptr(new QTextStreamPrivate(this))-
632{-
633-
634-
635-
636 QTextStreamPrivate * const d = d_func();-
637 d->status = Ok;-
638}
executed 15 times by 1 test: end of block
Executed by:
  • tst_QTextStream
15
639-
640-
641-
642-
643QTextStream::QTextStream(QIODevice *device)-
644 : d_ptr(new QTextStreamPrivate(this))-
645{-
646-
647-
648-
649-
650 QTextStreamPrivate * const d = d_func();-
651 d->device = device;-
652-
653 d->deviceClosedNotifier.setupDevice(this, d->device);-
654-
655 d->status = Ok;-
656}
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
657-
658-
659-
660-
661-
662QTextStream::QTextStream(QString *string, QIODevice::OpenMode openMode)-
663 : d_ptr(new QTextStreamPrivate(this))-
664{-
665-
666-
667-
668-
669 QTextStreamPrivate * const d = d_func();-
670 d->string = string;-
671 d->stringOpenMode = openMode;-
672 d->status = Ok;-
673}
executed 75100 times by 82 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_QGuiApplication
  • tst_QGuiEventLoop
  • ...
75100
674-
675-
676-
677-
678-
679-
680QTextStream::QTextStream(QByteArray *array, QIODevice::OpenMode openMode)-
681 : d_ptr(new QTextStreamPrivate(this))-
682{-
683-
684-
685-
686-
687 QTextStreamPrivate * const d = d_func();-
688 d->device = new QBuffer(array);-
689 d->device->open(openMode);-
690 d->deleteDevice = true;-
691-
692 d->deviceClosedNotifier.setupDevice(this, d->device);-
693-
694 d->status = Ok;-
695}
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
696QTextStream::QTextStream(const QByteArray &array, QIODevice::OpenMode openMode)-
697 : d_ptr(new QTextStreamPrivate(this))-
698{-
699-
700-
701-
702-
703 QBuffer *buffer = new QBuffer;-
704 buffer->setData(array);-
705 buffer->open(openMode);-
706-
707 QTextStreamPrivate * const d = d_func();-
708 d->device = buffer;-
709 d->deleteDevice = true;-
710-
711 d->deviceClosedNotifier.setupDevice(this, d->device);-
712-
713 d->status = Ok;-
714}
executed 16 times by 3 tests: end of block
Executed by:
  • tst_QLoggingRegistry
  • tst_QTextStream
  • tst_qmakelib
16
715QTextStream::QTextStream(FILE *fileHandle, QIODevice::OpenMode openMode)-
716 : d_ptr(new QTextStreamPrivate(this))-
717{-
718-
719-
720-
721-
722 QFile *file = new QFile;-
723 file->open(fileHandle, openMode);-
724-
725 QTextStreamPrivate * const d = d_func();-
726 d->device = file;-
727 d->deleteDevice = true;-
728-
729 d->deviceClosedNotifier.setupDevice(this, d->device);-
730-
731 d->status = Ok;-
732}
never executed: end of block
0
733-
734-
735-
736-
737-
738-
739-
740QTextStream::~QTextStream()-
741{-
742 QTextStreamPrivate * const d = d_func();-
743-
744-
745-
746 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 78814 times by 97 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-78814
747 d->flushWriteBuffer();
executed 21 times by 4 tests: d->flushWriteBuffer();
Executed by:
  • tst_QKeyEvent
  • tst_QSettings
  • tst_QString
  • tst_QTextStream
21
748}
executed 78835 times by 98 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
  • ...
78835
749-
750-
751-
752-
753-
754-
755void QTextStream::reset()-
756{-
757 QTextStreamPrivate * const d = d_func();-
758-
759 d->params.reset();-
760}
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
761-
762-
763-
764-
765-
766-
767void QTextStream::flush()-
768{-
769 QTextStreamPrivate * const d = d_func();-
770 d->flushWriteBuffer();-
771}
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
772-
773-
774-
775-
776-
777bool QTextStream::seek(qint64 pos)-
778{-
779 QTextStreamPrivate * const d = d_func();-
780 d->lastTokenSize = 0;-
781-
782 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
783-
784 d->flushWriteBuffer();-
785 if (!d->device->seek(pos)
!d->device->seek(pos)Description
TRUEnever evaluated
FALSEevaluated 214471 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-214471
786 return
never executed: return false;
false;
never executed: return false;
0
787 d->resetReadBuffer();-
788-
789-
790-
791 resetCodecConverterStateHelper(&d->readConverterState);-
792 resetCodecConverterStateHelper(&d->writeConverterState);-
793 delete d->readConverterSavedState;-
794 d->readConverterSavedState = 0;-
795 d->writeConverterState.flags |= QTextCodec::IgnoreHeader;-
796-
797 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
798 }-
799-
800-
801 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
802 d->stringOffset = int(pos);-
803 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
804 }-
805 return
never executed: return false;
false;
never executed: return false;
0
806}-
807qint64 QTextStream::pos() const-
808{-
809 const QTextStreamPrivate * const d = d_func();-
810 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
811-
812 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
813 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
814 if (d->device->isSequential()
d->device->isSequential()Description
TRUEnever evaluated
FALSEevaluated 1775 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-1775
815 return
never executed: return 0;
0;
never executed: return 0;
0
816-
817-
818 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
819 return
never executed: return qint64(-1);
qint64(-1);
never executed: return qint64(-1);
0
820-
821-
822 QTextStreamPrivate *thatd = const_cast<QTextStreamPrivate *>(d);-
823 thatd->readBuffer.clear();-
824-
825-
826 thatd->restoreToSavedConverterState();-
827 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
828 thatd->autoDetectUnicode = true;
executed 1760 times by 1 test: thatd->autoDetectUnicode = true;
Executed by:
  • tst_QTextStream
1760
829-
830-
831-
832-
833 int oldReadBufferOffset = d->readBufferOffset + d->readConverterSavedStateOffset;-
834 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
835 if (!thatd->fillReadBuffer(1)
!thatd->fillReadBuffer(1)Description
TRUEnever evaluated
FALSEevaluated 41035294 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-41035294
836 return
never executed: return qint64(-1);
qint64(-1);
never executed: return qint64(-1);
0
837 }
executed 41035294 times by 1 test: end of block
Executed by:
  • tst_QTextStream
41035294
838 thatd->readBufferOffset = oldReadBufferOffset;-
839 thatd->readConverterSavedStateOffset = 0;-
840-
841-
842 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
843 }-
844-
845 if (d->string
d->stringDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
)
0-36
846 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
847-
848 QMessageLogger(__FILE__, 1267, __PRETTY_FUNCTION__).warning("QTextStream::pos: no device");-
849 return
never executed: return qint64(-1);
qint64(-1);
never executed: return qint64(-1);
0
850}-
851void QTextStream::skipWhiteSpace()-
852{-
853 QTextStreamPrivate * const d = d_func();-
854 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__, 1285, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return ;
;
never executed: return ;
} } while (0);
0-405
855 d->scan(0, 0, 0, QTextStreamPrivate::NotSpace);-
856 d->consumeLastToken();-
857}
executed 408 times by 2 tests: end of block
Executed by:
  • tst_QSplitter
  • tst_QTextStream
408
858void QTextStream::setDevice(QIODevice *device)-
859{-
860 QTextStreamPrivate * const d = d_func();-
861 flush();-
862 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
863-
864 d->deviceClosedNotifier.disconnect();-
865-
866 delete d->device;-
867 d->deleteDevice = false;-
868 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QTextStream
1
869-
870 d->reset();-
871 d->status = Ok;-
872 d->device = device;-
873 d->resetReadBuffer();-
874-
875 d->deviceClosedNotifier.setupDevice(this, d->device);-
876-
877}
executed 11 times by 1 test: end of block
Executed by:
  • tst_QTextStream
11
878-
879-
880-
881-
882-
883-
884-
885QIODevice *QTextStream::device() const-
886{-
887 const QTextStreamPrivate * const d = d_func();-
888 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
889}-
890void QTextStream::setString(QString *string, QIODevice::OpenMode openMode)-
891{-
892 QTextStreamPrivate * const d = d_func();-
893 flush();-
894 if (d->deleteDevice
d->deleteDeviceDescription
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-7
895-
896 d->deviceClosedNotifier.disconnect();-
897 d->device->blockSignals(true);-
898-
899 delete d->device;-
900 d->deleteDevice = false;-
901 }
never executed: end of block
0
902-
903 d->reset();-
904 d->status = Ok;-
905 d->string = string;-
906 d->stringOpenMode = openMode;-
907}
executed 7 times by 1 test: end of block
Executed by:
  • tst_QTextStream
7
908-
909-
910-
911-
912-
913-
914-
915QString *QTextStream::string() const-
916{-
917 const QTextStreamPrivate * const d = d_func();-
918 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
919}-
920void QTextStream::setFieldAlignment(FieldAlignment mode)-
921{-
922 QTextStreamPrivate * const d = d_func();-
923 d->params.fieldAlignment = mode;-
924}
executed 9 times by 2 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QTextStream
9
925-
926-
927-
928-
929-
930-
931QTextStream::FieldAlignment QTextStream::fieldAlignment() const-
932{-
933 const QTextStreamPrivate * const d = d_func();-
934 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
935}-
936void QTextStream::setPadChar(QChar ch)-
937{-
938 QTextStreamPrivate * const d = d_func();-
939 d->params.padChar = ch;-
940}
executed 9 times by 2 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QTextStream
9
941-
942-
943-
944-
945-
946-
947QChar QTextStream::padChar() const-
948{-
949 const QTextStreamPrivate * const d = d_func();-
950 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
951}-
952void QTextStream::setFieldWidth(int width)-
953{-
954 QTextStreamPrivate * const d = d_func();-
955 d->params.fieldWidth = width;-
956}
executed 31 times by 4 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkInterface
  • tst_QTextStream
31
957-
958-
959-
960-
961-
962-
963int QTextStream::fieldWidth() const-
964{-
965 const QTextStreamPrivate * const d = d_func();-
966 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
967}-
968void QTextStream::setNumberFlags(NumberFlags flags)-
969{-
970 QTextStreamPrivate * const d = d_func();-
971 d->params.numberFlags = flags;-
972}
executed 103 times by 4 tests: end of block
Executed by:
  • tst_QDebug
  • tst_QGuiVariant
  • tst_QNetworkConfigurationManager
  • tst_QTextStream
103
973-
974-
975-
976-
977-
978-
979QTextStream::NumberFlags QTextStream::numberFlags() const-
980{-
981 const QTextStreamPrivate * const d = d_func();-
982 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
983}-
984void QTextStream::setIntegerBase(int base)-
985{-
986 QTextStreamPrivate * const d = d_func();-
987 d->params.integerBase = base;-
988}
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
989-
990-
991-
992-
993-
994-
995-
996int QTextStream::integerBase() const-
997{-
998 const QTextStreamPrivate * const d = d_func();-
999 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
1000}-
1001void QTextStream::setRealNumberNotation(RealNumberNotation notation)-
1002{-
1003 QTextStreamPrivate * const d = d_func();-
1004 d->params.realNumberNotation = notation;-
1005}
executed 9 times by 1 test: end of block
Executed by:
  • tst_QTextStream
9
1006-
1007-
1008-
1009-
1010-
1011-
1012QTextStream::RealNumberNotation QTextStream::realNumberNotation() const-
1013{-
1014 const QTextStreamPrivate * const d = d_func();-
1015 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
1016}-
1017void QTextStream::setRealNumberPrecision(int precision)-
1018{-
1019 QTextStreamPrivate * const d = d_func();-
1020 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
1021 QMessageLogger(__FILE__, 1548, __PRETTY_FUNCTION__).warning("QTextStream::setRealNumberPrecision: Invalid precision (%d)", precision);-
1022 d->params.realNumberPrecision = 6;-
1023 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_QTextStream
2
1024 }-
1025 d->params.realNumberPrecision = precision;-
1026}
executed 10 times by 1 test: end of block
Executed by:
  • tst_QTextStream
10
1027-
1028-
1029-
1030-
1031-
1032-
1033-
1034int QTextStream::realNumberPrecision() const-
1035{-
1036 const QTextStreamPrivate * const d = d_func();-
1037 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
1038}-
1039-
1040-
1041-
1042-
1043-
1044-
1045-
1046QTextStream::Status QTextStream::status() const-
1047{-
1048 const QTextStreamPrivate * const d = d_func();-
1049 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
1050}-
1051void QTextStream::resetStatus()-
1052{-
1053 QTextStreamPrivate * const d = d_func();-
1054 d->status = Ok;-
1055}
executed 3 times by 1 test: end of block
Executed by:
  • tst_QTextStream
3
1056void QTextStream::setStatus(Status status)-
1057{-
1058 QTextStreamPrivate * const d = d_func();-
1059 if (d->status == Ok
d->status == OkDescription
TRUEevaluated 79 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
)
0-79
1060 d->status = status;
executed 79 times by 1 test: d->status = status;
Executed by:
  • tst_QTextStream
79
1061}
executed 79 times by 1 test: end of block
Executed by:
  • tst_QTextStream
79
1062-
1063-
1064-
1065-
1066-
1067-
1068-
1069bool QTextStream::atEnd() const-
1070{-
1071 const QTextStreamPrivate * const d = d_func();-
1072 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__, 1618, __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
1073-
1074 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
1075 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
1076 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->readBuffer.isEmpty()Description
TRUEevaluated 897 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 112778 times by 9 tests
Evaluated by:
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLoggingRegistry
  • tst_QSplitter
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
&& d->device->atEnd()
d->device->atEnd()Description
TRUEevaluated 407 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 490 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
;
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
407-113675
1077}-
1078QString QTextStream::readAll()-
1079{-
1080 QTextStreamPrivate * const d = d_func();-
1081 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__, 1638, __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
1082-
1083 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
1084}-
1085QString QTextStream::readLine(qint64 maxlen)-
1086{-
1087 QString line;-
1088-
1089 readLineInto(&line, maxlen);-
1090 return
executed 154266 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 154266 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
154266
1091}-
1092bool QTextStream::readLineInto(QString *line, qint64 maxlen)-
1093{-
1094 QTextStreamPrivate * const d = d_func();-
1095-
1096 if (!d->string
!d->stringDescription
TRUEevaluated 160288 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 160288 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-160288
1097 QMessageLogger(__FILE__, 1698, __PRETTY_FUNCTION__).warning("QTextStream: No device");-
1098 if (line
lineDescription
TRUEnever evaluated
FALSEnever evaluated
&& !line->isNull()
!line->isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1099 line->resize(0);
never executed: line->resize(0);
0
1100 return
never executed: return false;
false;
never executed: return false;
0
1101 }-
1102-
1103 const QChar *readPtr;-
1104 int length;-
1105 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 184393 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-184393
1106 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
1107 line->resize(0);
executed 4 times by 1 test: line->resize(0);
Executed by:
  • tst_QTextStream
4
1108 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
1109 }-
1110-
1111 if (__builtin_expect(!!(line), true)
__builtin_expe...!(line), true)Description
TRUEevaluated 184392 times by 14 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QProcess
  • tst_QTcpSocket
  • tst_QTemporaryDir
  • tst_QTextStream
  • tst_QTimeZone
  • tst_qmakelib
  • tst_qstandardpaths
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
)
1-184392
1112 line->setUnicode(readPtr, length);
executed 184392 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
184392
1113 d->consumeLastToken();-
1114 return
executed 184393 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 184393 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
184393
1115}-
1116QString QTextStream::read(qint64 maxlen)-
1117{-
1118 QTextStreamPrivate * const d = d_func();-
1119 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__, 1729, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return QString();
QString();
never executed: return QString();
} } while (0);
0-8
1120-
1121 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
1122 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
1123-
1124 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
1125}-
1126-
1127-
1128-
1129-
1130QTextStreamPrivate::NumberParsingStatus QTextStreamPrivate::getNumber(qulonglong *ret)-
1131{-
1132 scan(0, 0, 0, NotSpace);-
1133 consumeLastToken();-
1134-
1135-
1136 int base = params.integerBase;-
1137 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
1138 QChar ch;-
1139 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
1140 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
1141 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
1142 QChar ch2;-
1143 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
1144-
1145 *ret = 0;-
1146 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
1147 }-
1148 ch2 = ch2.toLower();-
1149-
1150 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
1151 base = 16;-
1152 }
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
1153 base = 2;-
1154 }
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
1155 base = 8;-
1156 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
24
1157 base = 10;-
1158 }
executed 1601 times by 1 test: end of block
Executed by:
  • tst_QTextStream
1601
1159 ungetChar(ch2);-
1160 }
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
1161 base = 10;-
1162 }
executed 14673 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextStream
else {
14673
1163 ungetChar(ch);-
1164 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
1165 }-
1166 ungetChar(ch);-
1167-
1168-
1169-
1170 }
executed 16400 times by 2 tests: end of block
Executed by:
  • tst_QString
  • tst_QTextStream
16400
1171-
1172 qulonglong val=0;-
1173 switch (base) {-
1174 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
1175 QChar pf1, pf2, dig;-
1176-
1177 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
1178 return
never executed: return npsInvalidPrefix;
npsInvalidPrefix;
never executed: return npsInvalidPrefix;
0
1179 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
1180 return
never executed: return npsInvalidPrefix;
npsInvalidPrefix;
never executed: return npsInvalidPrefix;
0
1181-
1182 int ndigits = 0;-
1183 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
1184 int n = dig.toLower().unicode();-
1185 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
1186 val <<= 1;-
1187 val += n - '0';-
1188 }
executed 144 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
144
1189 ungetChar(dig);-
1190 break;
executed 12 times by 1 test: break;
Executed by:
  • tst_QTextStream
12
1191 }-
1192 ndigits++;-
1193 }
executed 144 times by 1 test: end of block
Executed by:
  • tst_QTextStream
144
1194 if (ndigits == 0
ndigits == 0Description
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-42
1195-
1196 ungetChar(pf2);-
1197 ungetChar(pf1);-
1198 return
never executed: return npsMissingDigit;
npsMissingDigit;
never executed: return npsMissingDigit;
0
1199 }-
1200 break;
executed 42 times by 1 test: break;
Executed by:
  • tst_QTextStream
42
1201 }-
1202 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
1203 QChar pf, dig;-
1204-
1205 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
1206 return
never executed: return npsInvalidPrefix;
npsInvalidPrefix;
never executed: return npsInvalidPrefix;
0
1207-
1208 int ndigits = 0;-
1209 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
1210 int n = dig.toLower().unicode();-
1211 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
1212 val *= 8;-
1213 val += n - '0';-
1214 }
executed 60 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
60
1215 ungetChar(dig);-
1216 break;
executed 12 times by 1 test: break;
Executed by:
  • tst_QTextStream
12
1217 }-
1218 ndigits++;-
1219 }
executed 60 times by 1 test: end of block
Executed by:
  • tst_QTextStream
60
1220 if (ndigits == 0
ndigits == 0Description
TRUEnever evaluated
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-24
1221-
1222 ungetChar(pf);-
1223 return
never executed: return npsMissingDigit;
npsMissingDigit;
never executed: return npsMissingDigit;
0
1224 }-
1225 break;
executed 24 times by 1 test: break;
Executed by:
  • tst_QTextStream
24
1226 }-
1227 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
1228-
1229 QChar sign;-
1230 int ndigits = 0;-
1231 if (!getChar(&sign)
!getChar(&sign)Description
TRUEnever evaluated
FALSEevaluated 21149 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
)
0-21149
1232 return
never executed: return npsMissingDigit;
npsMissingDigit;
never executed: return npsMissingDigit;
0
1233 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
1234 if (!sign.isDigit()
!sign.isDigit()Description
TRUEnever evaluated
FALSEevaluated 21043 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
) {
0-21043
1235 ungetChar(sign);-
1236 return
never executed: return npsMissingDigit;
npsMissingDigit;
never executed: return npsMissingDigit;
0
1237 }-
1238 val += sign.digitValue();-
1239 ndigits++;-
1240 }
executed 21043 times by 3 tests: end of block
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
21043
1241-
1242 QChar ch;-
1243 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
1244 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
1245 val *= 10;-
1246 val += ch.digitValue();-
1247 }
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
1248 continue;
executed 1 time by 1 test: continue;
Executed by:
  • tst_QTextStream
1
1249 } else {-
1250 ungetChar(ch);-
1251 break;
executed 20889 times by 3 tests: break;
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
20889
1252 }-
1253 ndigits++;-
1254 }
executed 7557 times by 3 tests: end of block
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
7557
1255 if (ndigits == 0
ndigits == 0Description
TRUEnever evaluated
FALSEevaluated 21149 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
)
0-21149
1256 return
never executed: return npsMissingDigit;
npsMissingDigit;
never executed: return npsMissingDigit;
0
1257 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
1258 qlonglong ival = qlonglong(val);-
1259 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
1260 ival = -ival;
executed 98 times by 1 test: ival = -ival;
Executed by:
  • tst_QTextStream
98
1261 val = qulonglong(ival);-
1262 }
executed 104 times by 1 test: end of block
Executed by:
  • tst_QTextStream
104
1263 break;
executed 21149 times by 3 tests: break;
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
21149
1264 }-
1265 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
1266 QChar pf1, pf2, dig;-
1267-
1268 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
1269 return
never executed: return npsInvalidPrefix;
npsInvalidPrefix;
never executed: return npsInvalidPrefix;
0
1270 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
1271 return
never executed: return npsInvalidPrefix;
npsInvalidPrefix;
never executed: return npsInvalidPrefix;
0
1272-
1273 int ndigits = 0;-
1274 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
1275 int n = dig.toLower().unicode();-
1276 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
1277 val <<= 4;-
1278 val += n - '0';-
1279 }
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
1280 val <<= 4;-
1281 val += 10 + (n - 'a');-
1282 }
executed 294 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
294
1283 ungetChar(dig);-
1284 break;
executed 12 times by 1 test: break;
Executed by:
  • tst_QTextStream
12
1285 }-
1286 ndigits++;-
1287 }
executed 306 times by 1 test: end of block
Executed by:
  • tst_QTextStream
306
1288 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
1289 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
1290 }-
1291 break;
executed 54 times by 1 test: break;
Executed by:
  • tst_QTextStream
54
1292 }-
1293 default
never executed: default:
:
never executed: default:
0
1294-
1295 return
never executed: return npsInvalidPrefix;
npsInvalidPrefix;
never executed: return npsInvalidPrefix;
0
1296 }-
1297-
1298 if (ret
retDescription
TRUEevaluated 21269 times by 3 tests
Evaluated by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
FALSEnever evaluated
)
0-21269
1299 *
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
1300 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
1301}-
1302-
1303-
1304-
1305-
1306-
1307bool QTextStreamPrivate::getReal(double *f)-
1308{-
1309-
1310-
1311-
1312 enum ParserState {-
1313 Init = 0,-
1314 Sign = 1,-
1315 Mantissa = 2,-
1316 Dot = 3,-
1317 Abscissa = 4,-
1318 ExpMark = 5,-
1319 ExpSign = 6,-
1320 Exponent = 7,-
1321 Nan1 = 8,-
1322 Nan2 = 9,-
1323 Inf1 = 10,-
1324 Inf2 = 11,-
1325 NanInf = 12,-
1326 Done = 13-
1327 };-
1328 enum InputToken {-
1329 None = 0,-
1330 InputSign = 1,-
1331 InputDigit = 2,-
1332 InputDot = 3,-
1333 InputExp = 4,-
1334 InputI = 5,-
1335 InputN = 6,-
1336 InputF = 7,-
1337 InputA = 8,-
1338 InputT = 9-
1339 };-
1340-
1341 static const uchar table[13][10] = {-
1342-
1343 { 0, Sign, Mantissa, Dot, 0, Inf1, Nan1, 0, 0, 0 },-
1344 { 0, 0, Mantissa, Dot, 0, Inf1, Nan1, 0, 0, 0 },-
1345 { Done, Done, Mantissa, Dot, ExpMark, 0, 0, 0, 0, 0 },-
1346 { 0, 0, Abscissa, 0, 0, 0, 0, 0, 0, 0 },-
1347 { Done, Done, Abscissa, Done, ExpMark, 0, 0, 0, 0, 0 },-
1348 { 0, ExpSign, Exponent, 0, 0, 0, 0, 0, 0, 0 },-
1349 { 0, 0, Exponent, 0, 0, 0, 0, 0, 0, 0 },-
1350 { Done, Done, Exponent, Done, Done, 0, 0, 0, 0, 0 },-
1351 { 0, 0, 0, 0, 0, 0, 0, 0, Nan2, 0 },-
1352 { 0, 0, 0, 0, 0, 0, NanInf, 0, 0, 0 },-
1353 { 0, 0, 0, 0, 0, 0, Inf2, 0, 0, 0 },-
1354 { 0, 0, 0, 0, 0, 0, 0, NanInf, 0, 0 },-
1355 { Done, 0, 0, 0, 0, 0, 0, 0, 0, 0 },-
1356 };-
1357-
1358 ParserState state = Init;-
1359 InputToken input = None;-
1360-
1361 scan(0, 0, 0, NotSpace);-
1362 consumeLastToken();-
1363-
1364 const int BufferSize = 128;-
1365 char buf[BufferSize];-
1366 int i = 0;-
1367-
1368 QChar c;-
1369 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
1370 switch (c.unicode()) {-
1371 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
1372 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
1373 input = InputDigit;-
1374 break;
executed 77 times by 1 test: break;
Executed by:
  • tst_QTextStream
77
1375 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
1376 input = InputI;-
1377 break;
executed 18 times by 1 test: break;
Executed by:
  • tst_QTextStream
18
1378 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
1379 input = InputN;-
1380 break;
executed 54 times by 1 test: break;
Executed by:
  • tst_QTextStream
54
1381 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
1382 input = InputF;-
1383 break;
executed 18 times by 1 test: break;
Executed by:
  • tst_QTextStream
18
1384 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
1385 input = InputA;-
1386 break;
executed 21 times by 1 test: break;
Executed by:
  • tst_QTextStream
21
1387 case
never executed: case 't':
't':
never executed: case 't':
case
never executed: case 'T':
'T':
never executed: case 'T':
0
1388 input = InputT;-
1389 break;
never executed: break;
0
1390 default
executed 94 times by 1 test: default:
Executed by:
  • tst_QTextStream
:
executed 94 times by 1 test: default:
Executed by:
  • tst_QTextStream
{
94
1391 QChar lc = c.toLower();-
1392 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
1393 input = InputDot;
executed 13 times by 1 test: input = InputDot;
Executed by:
  • tst_QTextStream
13
1394 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
1395 input = InputExp;
executed 8 times by 1 test: input = InputExp;
Executed by:
  • tst_QTextStream
8
1396 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
1397 || 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
1398 input = InputSign;
executed 36 times by 1 test: input = InputSign;
Executed by:
  • tst_QTextStream
36
1399 else if (locale != QLocale::c()
locale != QLocale::c()Description
TRUEnever evaluated
FALSEevaluated 37 times by 1 test
Evaluated by:
  • tst_QTextStream
0-37
1400 && lc == locale.groupSeparator().toLower()
lc == locale.g...or().toLower()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1401 input = InputDigit;
never executed: input = InputDigit;
0
1402 else-
1403 input = None;
executed 37 times by 1 test: input = None;
Executed by:
  • tst_QTextStream
37
1404 }-
1405 break;
executed 94 times by 1 test: break;
Executed by:
  • tst_QTextStream
94
1406 }-
1407-
1408 state = ParserState(table[state][input]);-
1409-
1410 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
1411 ungetChar(c);-
1412 if (i > (BufferSize - 5)
i > (BufferSize - 5)Description
TRUEnever evaluated
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_QTextStream
) {
0-40
1413 while (getChar(&c)
getChar(&c)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1414 if (!c.isDigit()
!c.isDigit()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1415 ungetChar(c);-
1416 break;
never executed: break;
0
1417 }-
1418 }
never executed: end of block
0
1419 }
never executed: end of block
0
1420 break;
executed 40 times by 1 test: break;
Executed by:
  • tst_QTextStream
40
1421 }-
1422-
1423 buf[i++] = c.toLatin1();-
1424 }
executed 242 times by 1 test: end of block
Executed by:
  • tst_QTextStream
242
1425-
1426 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
1427 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
1428 if (!f
!fDescription
TRUEnever evaluated
FALSEevaluated 59 times by 1 test
Evaluated by:
  • tst_QTextStream
)
0-59
1429 return
never executed: return true;
true;
never executed: return true;
0
1430 buf[i] = '\0';-
1431-
1432-
1433-
1434-
1435-
1436 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
1437 *f = qSNaN();-
1438 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
1439 } 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
1440 *f = qInf();-
1441 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
1442 } 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
1443 *f = -qInf();-
1444 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
1445 }-
1446 bool ok;-
1447 *f = locale.toDouble(QString::fromLatin1(buf), &ok);-
1448 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
1449}-
1450QTextStream &QTextStream::operator>>(QChar &c)-
1451{-
1452 QTextStreamPrivate * const d = d_func();-
1453 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__, 2074, __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
1454 d->scan(0, 0, 0, QTextStreamPrivate::NotSpace);-
1455 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
1456 setStatus(ReadPastEnd);
executed 16 times by 1 test: setStatus(ReadPastEnd);
Executed by:
  • tst_QTextStream
16
1457 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
1458}-
1459QTextStream &QTextStream::operator>>(char &c)-
1460{-
1461 QChar ch;-
1462 *this >> ch;-
1463 c = ch.toLatin1();-
1464 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
1465}-
1466QTextStream &QTextStream::operator>>(signed short &i)-
1467{-
1468 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__, 2124, __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
1469}
never executed: end of block
0
1470-
1471-
1472-
1473-
1474-
1475-
1476QTextStream &QTextStream::operator>>(unsigned short &i)-
1477{-
1478 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__, 2134, __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
1479}
never executed: end of block
0
1480-
1481-
1482-
1483-
1484-
1485-
1486QTextStream &QTextStream::operator>>(signed int &i)-
1487{-
1488 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__, 2144, __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
1489}
never executed: end of block
0
1490-
1491-
1492-
1493-
1494-
1495-
1496QTextStream &QTextStream::operator>>(unsigned int &i)-
1497{-
1498 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__, 2154, __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
1499}
never executed: end of block
0
1500-
1501-
1502-
1503-
1504-
1505-
1506QTextStream &QTextStream::operator>>(signed long &i)-
1507{-
1508 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__, 2164, __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
1509}
never executed: end of block
0
1510-
1511-
1512-
1513-
1514-
1515-
1516QTextStream &QTextStream::operator>>(unsigned long &i)-
1517{-
1518 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__, 2174, __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
1519}
never executed: end of block
0
1520-
1521-
1522-
1523-
1524-
1525-
1526QTextStream &QTextStream::operator>>(qlonglong &i)-
1527{-
1528 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__, 2184, __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
1529}
never executed: end of block
0
1530-
1531-
1532-
1533-
1534-
1535-
1536QTextStream &QTextStream::operator>>(qulonglong &i)-
1537{-
1538 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__, 2194, __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
1539}
never executed: end of block
0
1540QTextStream &QTextStream::operator>>(float &f)-
1541{-
1542 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__, 2210, __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
1543}
never executed: end of block
0
1544-
1545-
1546-
1547-
1548-
1549-
1550QTextStream &QTextStream::operator>>(double &f)-
1551{-
1552 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__, 2220, __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
1553}
never executed: end of block
0
1554QTextStream &QTextStream::operator>>(QString &str)-
1555{-
1556 QTextStreamPrivate * const d = d_func();-
1557 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__, 2233, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-425
1558-
1559 str.clear();-
1560 d->scan(0, 0, 0, QTextStreamPrivate::NotSpace);-
1561 d->consumeLastToken();-
1562-
1563 const QChar *ptr;-
1564 int length;-
1565 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
1566 setStatus(ReadPastEnd);-
1567 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
1568 }-
1569-
1570 str = QString(ptr, length);-
1571 d->consumeLastToken();-
1572 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
1573}-
1574QTextStream &QTextStream::operator>>(QByteArray &array)-
1575{-
1576 QTextStreamPrivate * const d = d_func();-
1577 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__, 2261, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-14
1578-
1579 array.clear();-
1580 d->scan(0, 0, 0, QTextStreamPrivate::NotSpace);-
1581 d->consumeLastToken();-
1582-
1583 const QChar *ptr;-
1584 int length;-
1585 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
1586 setStatus(ReadPastEnd);-
1587 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
1588 }-
1589-
1590 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
1591 array += ptr[i].toLatin1();
executed 20 times by 1 test: array += ptr[i].toLatin1();
Executed by:
  • tst_QTextStream
20
1592-
1593 d->consumeLastToken();-
1594 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
1595}-
1596QTextStream &QTextStream::operator>>(char *c)-
1597{-
1598 QTextStreamPrivate * const d = d_func();-
1599 *c = 0;-
1600 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__, 2298, __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
1601 d->scan(0, 0, 0, QTextStreamPrivate::NotSpace);-
1602 d->consumeLastToken();-
1603-
1604 const QChar *ptr;-
1605 int length;-
1606 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
1607 setStatus(ReadPastEnd);-
1608 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
1609 }-
1610-
1611 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
1612 *
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
1613 *c = '\0';-
1614 d->consumeLastToken();-
1615 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
1616}-
1617-
1618-
1619-
1620-
1621void QTextStreamPrivate::putNumber(qulonglong number, bool negative)-
1622{-
1623 QString result;-
1624-
1625 unsigned flags = 0;-
1626 const QTextStream::NumberFlags numberFlags = params.numberFlags;-
1627 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 24925 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-24925
1628 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
1629 if (numberFlags & QTextStream::ForceSign
numberFlags & ...eam::ForceSignDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 25056 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-25056
1630 flags |= QLocaleData::AlwaysShowSign;
executed 3 times by 1 test: flags |= QLocaleData::AlwaysShowSign;
Executed by:
  • tst_QTextStream
3
1631 if (numberFlags & QTextStream::UppercaseBase
numberFlags & ...:UppercaseBaseDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 25052 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-25052
1632 flags |= QLocaleData::UppercaseBase;
executed 7 times by 1 test: flags |= QLocaleData::UppercaseBase;
Executed by:
  • tst_QTextStream
7
1633 if (numberFlags & QTextStream::UppercaseDigits
numberFlags & ...ppercaseDigitsDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 25050 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-25050
1634 flags |= QLocaleData::CapitalEorX;
executed 9 times by 1 test: flags |= QLocaleData::CapitalEorX;
Executed by:
  • tst_QTextStream
9
1635-
1636-
1637-
1638 if (locale != QLocale::c()
locale != QLocale::c()Description
TRUEevaluated 261 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 24798 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-24798
1639 flags |= QLocaleData::ThousandsGroup;
executed 175 times by 1 test: flags |= QLocaleData::ThousandsGroup;
Executed by:
  • tst_QTextStream
175
1640-
1641 const QLocaleData *dd = locale.d->m_data;-
1642 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 24824 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-24824
1643 if (negative
negativeDescription
TRUEevaluated 1398 times by 8 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
FALSEevaluated 23661 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 1394 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-23661
1644 result = dd->longLongToString(-static_cast<qlonglong>(number), -1,-
1645 base, -1, flags);-
1646 }
executed 1394 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 23661 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-23661
1647-
1648-
1649-
1650-
1651 result = dd->unsLongLongToString(number, -1, base, -1, flags);-
1652 result.prepend(locale.negativeSign());-
1653 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QTextStream
else {
4
1654 result = dd->unsLongLongToString(number, -1, base, -1, flags);-
1655-
1656-
1657 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 20911 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-20911
1658 && result == QLatin1String("0")
result == QLatin1String("0")Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
) {
0-1
1659 result.prepend(QLatin1Char('0'));-
1660 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QTextStream
1
1661 }
executed 23661 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
  • ...
23661
1662 putString(result, true);-
1663}
executed 25059 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
  • ...
25059
1664-
1665-
1666-
1667-
1668-
1669-
1670-
1671QTextStream &QTextStream::operator<<(QChar c)-
1672{-
1673 QTextStreamPrivate * const d = d_func();-
1674 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__, 2372, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-26222
1675 d->putChar(c);-
1676 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
1677}-
1678-
1679-
1680-
1681-
1682-
1683-
1684QTextStream &QTextStream::operator<<(char c)-
1685{-
1686 QTextStreamPrivate * const d = d_func();-
1687 do { if (!d->string
!d->stringDescription
TRUEevaluated 38874 times by 6 tests
Evaluated by:
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QTextStream
  • tst_qdbusxml2cpp - unknown status
FALSEevaluated 68682 times by 76 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_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • ...
&& !d->device
!d->deviceDescription
TRUEnever evaluated
FALSEevaluated 38874 times by 6 tests
Evaluated by:
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QTextStream
  • tst_qdbusxml2cpp - unknown status
) { QMessageLogger(__FILE__, 2385, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-68682
1688 d->putChar(QChar::fromLatin1(c));-
1689 return
executed 107556 times by 82 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_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • ...
*this;
executed 107556 times by 82 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_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • ...
107556
1690}-
1691QTextStream &QTextStream::operator<<(signed short i)-
1692{-
1693 QTextStreamPrivate * const d = d_func();-
1694 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__, 2401, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-36
1695 d->putNumber((qulonglong)qAbs(qlonglong(i)), i < 0);-
1696 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
1697}-
1698-
1699-
1700-
1701-
1702-
1703-
1704QTextStream &QTextStream::operator<<(unsigned short i)-
1705{-
1706 QTextStreamPrivate * const d = d_func();-
1707 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__, 2414, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-117
1708 d->putNumber((qulonglong)i, false);-
1709 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
1710}-
1711-
1712-
1713-
1714-
1715-
1716-
1717QTextStream &QTextStream::operator<<(signed int i)-
1718{-
1719 QTextStreamPrivate * const d = d_func();-
1720 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 15069 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__, 2427, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-15069
1721 d->putNumber((qulonglong)qAbs(qlonglong(i)), i < 0);-
1722 return
executed 18479 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 18479 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
  • ...
18479
1723}-
1724-
1725-
1726-
1727-
1728-
1729-
1730QTextStream &QTextStream::operator<<(unsigned int i)-
1731{-
1732 QTextStreamPrivate * const d = d_func();-
1733 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__, 2440, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-60
1734 d->putNumber((qulonglong)i, false);-
1735 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
1736}-
1737-
1738-
1739-
1740-
1741-
1742-
1743QTextStream &QTextStream::operator<<(signed long i)-
1744{-
1745 QTextStreamPrivate * const d = d_func();-
1746 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__, 2453, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-2
1747 d->putNumber((qulonglong)qAbs(qlonglong(i)), i < 0);-
1748 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
1749}-
1750-
1751-
1752-
1753-
1754-
1755-
1756QTextStream &QTextStream::operator<<(unsigned long i)-
1757{-
1758 QTextStreamPrivate * const d = d_func();-
1759 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__, 2466, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-1
1760 d->putNumber((qulonglong)i, false);-
1761 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
1762}-
1763-
1764-
1765-
1766-
1767-
1768-
1769QTextStream &QTextStream::operator<<(qlonglong i)-
1770{-
1771 QTextStreamPrivate * const d = d_func();-
1772 do { if (!d->string
!d->stringDescription
TRUEevaluated 97 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 6038 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__, 2479, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-6038
1773 d->putNumber((qulonglong)qAbs(i), i < 0);-
1774 return
executed 6135 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 6135 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
6135
1775}-
1776-
1777-
1778-
1779-
1780-
1781-
1782QTextStream &QTextStream::operator<<(qulonglong i)-
1783{-
1784 QTextStreamPrivate * const d = d_func();-
1785 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__, 2492, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-76
1786 d->putNumber(i, false);-
1787 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
1788}-
1789QTextStream &QTextStream::operator<<(float f)-
1790{-
1791 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
1792}-
1793-
1794-
1795-
1796-
1797-
1798-
1799QTextStream &QTextStream::operator<<(double f)-
1800{-
1801 QTextStreamPrivate * const d = d_func();-
1802 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__, 2521, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-278
1803-
1804 QLocaleData::DoubleForm form = QLocaleData::DFDecimal;-
1805 switch (realNumberNotation()) {-
1806 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
1807 form = QLocaleData::DFDecimal;-
1808 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QTextStream
2
1809 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
1810 form = QLocaleData::DFExponent;-
1811 break;
executed 5 times by 1 test: break;
Executed by:
  • tst_QTextStream
5
1812 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
1813 form = QLocaleData::DFSignificantDigits;-
1814 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
1815 }-
1816-
1817 uint flags = 0;-
1818 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
1819 flags |= QLocaleData::ShowBase;
never executed: flags |= QLocaleData::ShowBase;
0
1820 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
1821 flags |= QLocaleData::AlwaysShowSign;
executed 4 times by 1 test: flags |= QLocaleData::AlwaysShowSign;
Executed by:
  • tst_QTextStream
4
1822 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
1823 flags |= QLocaleData::UppercaseBase;
executed 1 time by 1 test: flags |= QLocaleData::UppercaseBase;
Executed by:
  • tst_QTextStream
1
1824 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
1825 flags |= QLocaleData::CapitalEorX;
executed 7 times by 1 test: flags |= QLocaleData::CapitalEorX;
Executed by:
  • tst_QTextStream
7
1826 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
1827 flags |= QLocaleData::Alternate;
executed 6 times by 1 test: flags |= QLocaleData::Alternate;
Executed by:
  • tst_QTextStream
6
1828 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
1829 flags |= QLocaleData::ThousandsGroup;
executed 12 times by 1 test: flags |= QLocaleData::ThousandsGroup;
Executed by:
  • tst_QTextStream
12
1830-
1831 const QLocaleData *dd = d->locale.d->m_data;-
1832 QString num = dd->doubleToString(f, d->params.realNumberPrecision, form, -1, flags);-
1833 d->putString(num, true);-
1834 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
1835}-
1836QTextStream &QTextStream::operator<<(const QString &string)-
1837{-
1838 QTextStreamPrivate * const d = d_func();-
1839 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 93635 times by 74 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_QGuiApplication
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIODevice
  • ...
&& !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__, 2567, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-93635
1840 d->putString(string);-
1841 return
executed 120646 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_QFile
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • ...
*this;
executed 120646 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_QFile
  • tst_QFileInfo
  • tst_QFileSystemWatcher
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • ...
120646
1842}-
1843-
1844-
1845-
1846-
1847-
1848-
1849-
1850QTextStream &QTextStream::operator<<(QLatin1String string)-
1851{-
1852 QTextStreamPrivate * const d = d_func();-
1853 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__, 2581, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-3
1854 d->putString(string);-
1855 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
1856}-
1857QTextStream &QTextStream::operator<<(const QStringRef &string)-
1858{-
1859 QTextStreamPrivate * const d = d_func();-
1860 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__, 2596, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-2
1861 d->putString(string.data(), string.size());-
1862 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
1863}-
1864-
1865-
1866-
1867-
1868-
1869-
1870-
1871QTextStream &QTextStream::operator<<(const QByteArray &array)-
1872{-
1873 QTextStreamPrivate * const d = d_func();-
1874 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__, 2610, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-247
1875 d->putString(QString::fromUtf8(array.constData(), array.length()));-
1876 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
1877}-
1878QTextStream &QTextStream::operator<<(const char *string)-
1879{-
1880 QTextStreamPrivate * const d = d_func();-
1881 do { if (!d->string
!d->stringDescription
TRUEevaluated 26238 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 41270 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 26238 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__, 2631, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-41270
1882 d->putString(QLatin1String(string));-
1883 return
executed 67508 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 67508 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
  • ...
67508
1884}-
1885-
1886-
1887-
1888-
1889-
1890-
1891-
1892QTextStream &QTextStream::operator<<(const void *ptr)-
1893{-
1894 QTextStreamPrivate * const d = d_func();-
1895 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__, 2645, __PRETTY_FUNCTION__).warning("QTextStream: No device"); return
never executed: return *this;
*this;
never executed: return *this;
} } while (0);
0-50
1896 const int oldBase = d->params.integerBase;-
1897 const NumberFlags oldFlags = d->params.numberFlags;-
1898 d->params.integerBase = 16;-
1899 d->params.numberFlags |= ShowBase;-
1900 d->putNumber(reinterpret_cast<quintptr>(ptr), false);-
1901 d->params.integerBase = oldBase;-
1902 d->params.numberFlags = oldFlags;-
1903 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
1904}-
1905QTextStream &bin(QTextStream &stream)-
1906{-
1907 stream.setIntegerBase(2);-
1908 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
1909}-
1910QTextStream &oct(QTextStream &stream)-
1911{-
1912 stream.setIntegerBase(8);-
1913 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
1914}-
1915QTextStream &dec(QTextStream &stream)-
1916{-
1917 stream.setIntegerBase(10);-
1918 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
1919}-
1920QTextStream &hex(QTextStream &stream)-
1921{-
1922 stream.setIntegerBase(16);-
1923 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
1924}-
1925QTextStream &showbase(QTextStream &stream)-
1926{-
1927 stream.setNumberFlags(stream.numberFlags() | QTextStream::ShowBase);-
1928 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
1929}-
1930QTextStream &forcesign(QTextStream &stream)-
1931{-
1932 stream.setNumberFlags(stream.numberFlags() | QTextStream::ForceSign);-
1933 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
1934}-
1935QTextStream &forcepoint(QTextStream &stream)-
1936{-
1937 stream.setNumberFlags(stream.numberFlags() | QTextStream::ForcePoint);-
1938 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
1939}-
1940QTextStream &noshowbase(QTextStream &stream)-
1941{-
1942 stream.setNumberFlags(stream.numberFlags() &= ~QTextStream::ShowBase);-
1943 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
1944}-
1945QTextStream &noforcesign(QTextStream &stream)-
1946{-
1947 stream.setNumberFlags(stream.numberFlags() &= ~QTextStream::ForceSign);-
1948 return
never executed: return stream;
stream;
never executed: return stream;
0
1949}-
1950QTextStream &noforcepoint(QTextStream &stream)-
1951{-
1952 stream.setNumberFlags(stream.numberFlags() &= ~QTextStream::ForcePoint);-
1953 return
never executed: return stream;
stream;
never executed: return stream;
0
1954}-
1955QTextStream &uppercasebase(QTextStream &stream)-
1956{-
1957 stream.setNumberFlags(stream.numberFlags() | QTextStream::UppercaseBase);-
1958 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
1959}-
1960QTextStream &uppercasedigits(QTextStream &stream)-
1961{-
1962 stream.setNumberFlags(stream.numberFlags() | QTextStream::UppercaseDigits);-
1963 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
1964}-
1965QTextStream &lowercasebase(QTextStream &stream)-
1966{-
1967 stream.setNumberFlags(stream.numberFlags() & ~QTextStream::UppercaseBase);-
1968 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
1969}-
1970QTextStream &lowercasedigits(QTextStream &stream)-
1971{-
1972 stream.setNumberFlags(stream.numberFlags() & ~QTextStream::UppercaseDigits);-
1973 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
1974}-
1975QTextStream &fixed(QTextStream &stream)-
1976{-
1977 stream.setRealNumberNotation(QTextStream::FixedNotation);-
1978 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
1979}-
1980QTextStream &scientific(QTextStream &stream)-
1981{-
1982 stream.setRealNumberNotation(QTextStream::ScientificNotation);-
1983 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
1984}-
1985QTextStream &left(QTextStream &stream)-
1986{-
1987 stream.setFieldAlignment(QTextStream::AlignLeft);-
1988 return
never executed: return stream;
stream;
never executed: return stream;
0
1989}-
1990QTextStream &right(QTextStream &stream)-
1991{-
1992 stream.setFieldAlignment(QTextStream::AlignRight);-
1993 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
1994}-
1995QTextStream &center(QTextStream &stream)-
1996{-
1997 stream.setFieldAlignment(QTextStream::AlignCenter);-
1998 return
never executed: return stream;
stream;
never executed: return stream;
0
1999}-
2000QTextStream &endl(QTextStream &stream)-
2001{-
2002 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
2003}-
2004QTextStream &flush(QTextStream &stream)-
2005{-
2006 stream.flush();-
2007 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
2008}-
2009QTextStream &reset(QTextStream &stream)-
2010{-
2011 stream.reset();-
2012 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
2013}-
2014QTextStream &ws(QTextStream &stream)-
2015{-
2016 stream.skipWhiteSpace();-
2017 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
2018}-
2019QTextStream &bom(QTextStream &stream)-
2020{-
2021 stream.setGenerateByteOrderMark(true);-
2022 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
2023}-
2024void QTextStream::setCodec(QTextCodec *codec)-
2025{-
2026 QTextStreamPrivate * const d = d_func();-
2027 qint64 seekPos = -1;-
2028 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
2029 if (!d->device->isSequential()
!d->device->isSequential()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
) {
0-1
2030 seekPos = pos();-
2031 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QTextStream
1
2032 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QTextStream
1
2033 d->codec = codec;-
2034 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
2035 seek(seekPos);
executed 1 time by 1 test: seek(seekPos);
Executed by:
  • tst_QTextStream
1
2036}
executed 2130 times by 6 tests: end of block
Executed by:
  • tst_QDBusXmlParser
  • tst_QFile
  • tst_QString
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
2130
2037void QTextStream::setCodec(const char *codecName)-
2038{-
2039 QTextCodec *codec = QTextCodec::codecForName(codecName);-
2040 if (codec
codecDescription
TRUEevaluated 1941 times by 4 tests
Evaluated by:
  • tst_QFile
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
FALSEnever evaluated
)
0-1941
2041 setCodec(codec);
executed 1941 times by 4 tests: setCodec(codec);
Executed by:
  • tst_QFile
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
1941
2042}
executed 1941 times by 4 tests: end of block
Executed by:
  • tst_QFile
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
1941
2043-
2044-
2045-
2046-
2047-
2048-
2049QTextCodec *QTextStream::codec() const-
2050{-
2051 const QTextStreamPrivate * const d = d_func();-
2052 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
2053}-
2054void QTextStream::setAutoDetectUnicode(bool enabled)-
2055{-
2056 QTextStreamPrivate * const d = d_func();-
2057 d->autoDetectUnicode = enabled;-
2058}
executed 55 times by 1 test: end of block
Executed by:
  • tst_QTextStream
55
2059-
2060-
2061-
2062-
2063-
2064-
2065-
2066bool QTextStream::autoDetectUnicode() const-
2067{-
2068 const QTextStreamPrivate * const d = d_func();-
2069 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
2070}-
2071void QTextStream::setGenerateByteOrderMark(bool generate)-
2072{-
2073 QTextStreamPrivate * const d = d_func();-
2074 if (d->writeBuffer.isEmpty()
d->writeBuffer.isEmpty()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEnever evaluated
) {
0-3
2075 if (generate
generateDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
)
1-2
2076 d->writeConverterState.flags &= ~QTextCodec::IgnoreHeader;
executed 2 times by 1 test: d->writeConverterState.flags &= ~QTextCodec::IgnoreHeader;
Executed by:
  • tst_QTextStream
2
2077 else-
2078 d->writeConverterState.flags |= QTextCodec::IgnoreHeader;
executed 1 time by 1 test: d->writeConverterState.flags |= QTextCodec::IgnoreHeader;
Executed by:
  • tst_QTextStream
1
2079 }-
2080}
executed 3 times by 1 test: end of block
Executed by:
  • tst_QTextStream
3
2081bool QTextStream::generateByteOrderMark() const-
2082{-
2083 const QTextStreamPrivate * const d = d_func();-
2084 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
2085}-
2086void QTextStream::setLocale(const QLocale &locale)-
2087{-
2088 QTextStreamPrivate * const d = d_func();-
2089 d->locale = locale;-
2090}
executed 384 times by 1 test: end of block
Executed by:
  • tst_QTextStream
384
2091QLocale QTextStream::locale() const-
2092{-
2093 const QTextStreamPrivate * const d = d_func();-
2094 return
executed 318 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 318 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
318
2095}-
2096-
2097-
Switch to Source codePreprocessed file

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