| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | | - |
| 37 | | - |
| 38 | | - |
| 39 | | - |
| 40 | | - |
| 41 | #include "private/qringbuffer_p.h" | - |
| 42 | #include "private/qbytearray_p.h" | - |
| 43 | #include <string.h> | - |
| 44 | | - |
| 45 | QT_BEGIN_NAMESPACE | - |
| 46 | | - |
| 47 | | - |
| 48 | | - |
| 49 | | - |
| 50 | | - |
| 51 | | - |
| 52 | | - |
| 53 | | - |
| 54 | const char *QRingBuffer::readPointerAtPosition(qint64 pos, qint64 &length) const | - |
| 55 | { | - |
| 56 | if (pos >= 0) { | - |
| 57 | pos += head; | - |
| 58 | for (int i = 0; i < buffers.size(); ++i) { | - |
| 59 | length = (i == tailBuffer ? tail : buffers[i].size()); | - |
| 60 | if (length > pos) { | - |
| 61 | length -= pos; | - |
| 62 | return buffers[i].constData() + pos; | - |
| 63 | } | - |
| 64 | pos -= length; | - |
| 65 | } | - |
| 66 | } | - |
| 67 | | - |
| 68 | length = 0; | - |
| 69 | return 0; | - |
| 70 | } | - |
| 71 | | - |
| 72 | void QRingBuffer::free(qint64 bytes) | - |
| 73 | { | - |
| 74 | Q_ASSERT(bytes <= bufferSize); | - |
| 75 | | - |
| 76 | while (bytes > 0) {| TRUE | evaluated 43978893 times by 157 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QBuffer
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- ...
| | FALSE | evaluated 35028 times by 42 testsEvaluated by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractNetworkCache
- tst_QBitArray
- tst_QBuffer
- tst_QDataStream
- tst_QDate
- tst_QFile
- tst_QFileInfo
- tst_QFtp
- tst_QIODevice
- tst_QIcoImageFormat
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QKeyEvent
- tst_QLocalSocket
- tst_QMetaType
- tst_QMimeDatabase
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPixmap
- tst_QPoint
- tst_QPointF
- ...
|
| 35028-43978893 |
| 77 | const qint64 blockSize = buffers.firstconstFirst().size() - head; | - |
| 78 | | - |
| 79 | if (tailBuffer == 0 || blockSize > bytes) {| TRUE | evaluated 43975027 times by 157 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QBuffer
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- ...
| | FALSE | evaluated 3866 times by 12 testsEvaluated by:- tst_QFtp
- tst_QImageReader
- tst_QLocalSocket
- tst_QNetworkReply
- tst_QProcess
- tst_QRingBuffer
- tst_QSharedPointer
- tst_QTcpSocket
- tst_Selftests
- tst_Spdy
- tst_qdbuscpp2xml
- tst_rcc
|
| TRUE | evaluated 855 times by 3 testsEvaluated by:- tst_QImageReader
- tst_QNetworkReply
- tst_QRingBuffer
| | FALSE | evaluated 3011 times by 12 testsEvaluated by:- tst_QFtp
- tst_QImageReader
- tst_QLocalSocket
- tst_QNetworkReply
- tst_QProcess
- tst_QRingBuffer
- tst_QSharedPointer
- tst_QTcpSocket
- tst_Selftests
- tst_Spdy
- tst_qdbuscpp2xml
- tst_rcc
|
| 855-43975027 |
| 80 | | - |
| 81 | | - |
| 82 | | - |
| 83 | if (bufferSize <= bytes) {| TRUE | evaluated 126580 times by 156 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QBuffer
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- ...
| | FALSE | evaluated 43849302 times by 111 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
|
| 126580-43849302 |
| 84 | if (buffers.firstconstFirst().size() <= basicBlockSize) {| TRUE | evaluated 121102 times by 156 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QBuffer
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- ...
| | FALSE | evaluated 5478 times by 14 testsEvaluated by:- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QLocalSocket
- tst_QNetworkReply
- tst_QProcess
- tst_QSharedPointer
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QTcpSocket
- tst_Selftests
- tst_Spdy
|
| 5478-121102 |
| 85 | bufferSize = 0; | - |
| 86 | head = tail = 0; | - |
| 87 | } else {executed 121102 times by 156 tests: end of blockExecuted by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QBuffer
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- ...
| 121102 |
| 88 | clear(); | - |
| 89 | }executed 5478 times by 14 tests: end of blockExecuted by:- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QLocalSocket
- tst_QNetworkReply
- tst_QProcess
- tst_QSharedPointer
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QTcpSocket
- tst_Selftests
- tst_Spdy
| 5478 |
| 90 | } else { | - |
| 91 | Q_ASSERT(bytes < MaxByteArraySize); | - |
| 92 | head += int(bytes); | - |
| 93 | bufferSize -= bytes; | - |
| 94 | }executed 43849302 times by 111 tests: end of blockExecuted by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- ...
| 43849302 |
| 95 | return;executed 43975882 times by 157 tests: return;Executed by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QBuffer
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- tst_QDialog
- ...
| 43975882 |
| 96 | } | - |
| 97 | | - |
| 98 | bufferSize -= blockSize; | - |
| 99 | bytes -= blockSize; | - |
| 100 | buffers.removeFirst(); | - |
| 101 | --tailBuffer; | - |
| 102 | head = 0; | - |
| 103 | }executed 3011 times by 12 tests: end of blockExecuted by:- tst_QFtp
- tst_QImageReader
- tst_QLocalSocket
- tst_QNetworkReply
- tst_QProcess
- tst_QRingBuffer
- tst_QSharedPointer
- tst_QTcpSocket
- tst_Selftests
- tst_Spdy
- tst_qdbuscpp2xml
- tst_rcc
| 3011 |
| 104 | }executed 35028 times by 42 tests: end of blockExecuted by:- tst_LargeFile
- tst_QAbstractFileEngine
- tst_QAbstractNetworkCache
- tst_QBitArray
- tst_QBuffer
- tst_QDataStream
- tst_QDate
- tst_QFile
- tst_QFileInfo
- tst_QFtp
- tst_QIODevice
- tst_QIcoImageFormat
- tst_QIcon
- tst_QImageReader
- tst_QImageWriter
- tst_QKeyEvent
- tst_QLocalSocket
- tst_QMetaType
- tst_QMimeDatabase
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QPixmap
- tst_QPoint
- tst_QPointF
- ...
| 35028 |
| 105 | | - |
| 106 | char *QRingBuffer::reserve(qint64 bytes) | - |
| 107 | { | - |
| 108 | if (bytes <= 0 || bytes >= MaxByteArraySize)| TRUE | evaluated 27 times by 8 testsEvaluated by:- tst_QFile
- tst_QHttpSocketEngine
- tst_QNetworkReply
- tst_QSharedPointer
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qmakelib
- tst_qnetworkreply - unknown status
| | FALSE | evaluated 397944 times by 165 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- ...
|
| TRUE | never evaluated | | FALSE | evaluated 397944 times by 165 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- ...
|
| 0-397944 |
| 109 | return 0;executed 27 times by 8 tests: return 0;Executed by:- tst_QFile
- tst_QHttpSocketEngine
- tst_QNetworkReply
- tst_QSharedPointer
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qmakelib
- tst_qnetworkreply - unknown status
| 27 |
| 110 | | - |
| 111 | if (buffers.isEmpty()) {| TRUE | evaluated 48462 times by 165 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- ...
| | FALSE | evaluated 349482 times by 133 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- ...
|
| 48462-349482 |
| 112 | buffers.append(QByteArray()); | - |
| 113 | buffers.first().resize(qMax(basicBlockSize, int(bytes))); | - |
| 114 | } else {executed 48462 times by 165 tests: end of blockExecuted by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- ...
| 48462 |
| 115 | const qint64 newSize = bytes + tail; | - |
| 116 | | - |
| 117 | if (newSize > buffers.lastconstLast().size()) {| TRUE | evaluated 58432 times by 96 testsEvaluated by:- tst_LargeFile
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
| | FALSE | evaluated 291050 times by 78 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QChar
- tst_QColorDialog
- tst_QCryptographicHash
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFiledialog
- tst_QFont
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- ...
|
| 58432-291050 |
| 118 | if (newSize > buffers.lastconstLast().capacity() && (tail >= basicBlockSize| TRUE | evaluated 45290 times by 96 testsEvaluated by:- tst_LargeFile
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
| | FALSE | evaluated 13142 times by 10 testsEvaluated by:- tst_QFtp
- tst_QNetworkReply
- tst_QProcess
- tst_QRingBuffer
- tst_QSharedPointer
- tst_QSslSocket
- tst_QTcpServer
- tst_QTcpSocket
- tst_Selftests
- tst_qmake
|
| TRUE | evaluated 1476 times by 13 testsEvaluated by:- tst_QFtp
- tst_QImageReader
- tst_QLocalSocket
- tst_QNetworkReply
- tst_QProcess
- tst_QRingBuffer
- tst_QSharedPointer
- tst_QSslSocket
- tst_QTcpSocket
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qmake
- tst_rcc
| | FALSE | evaluated 43814 times by 94 testsEvaluated by:- tst_LargeFile
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
|
| 1476-45290 |
| 119 | || newSize >= MaxByteArraySize)) {| TRUE | never evaluated | | FALSE | evaluated 43814 times by 94 testsEvaluated by:- tst_LargeFile
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
|
| 0-43814 |
| 120 | | - |
| 121 | buffers.last().resize(tail); | - |
| 122 | | - |
| 123 | | - |
| 124 | buffers.append(QByteArray()); | - |
| 125 | ++tailBuffer; | - |
| 126 | tail = 0; | - |
| 127 | }executed 1476 times by 13 tests: end of blockExecuted by:- tst_QFtp
- tst_QImageReader
- tst_QLocalSocket
- tst_QNetworkReply
- tst_QProcess
- tst_QRingBuffer
- tst_QSharedPointer
- tst_QSslSocket
- tst_QTcpSocket
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qmake
- tst_rcc
| 1476 |
| 128 | buffers.last().resize(qMax(basicBlockSize, tail + int(bytes))); | - |
| 129 | }executed 58432 times by 96 tests: end of blockExecuted by:- tst_LargeFile
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFocusEvent
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFrame
- ...
| 58432 |
| 130 | }executed 349482 times by 133 tests: end of blockExecuted by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- ...
| 349482 |
| 131 | | - |
| 132 | char *writePtr = buffers.last().data() + tail; | - |
| 133 | bufferSize += bytes; | - |
| 134 | Q_ASSERT(bytes < MaxByteArraySize); | - |
| 135 | tail += int(bytes); | - |
| 136 | return writePtr;executed 397944 times by 165 tests: return writePtr;Executed by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- ...
| 397944 |
| 137 | } | - |
| 138 | | - |
| 139 | | - |
| 140 | | - |
| 141 | | - |
| 142 | | - |
| 143 | | - |
| 144 | char *QRingBuffer::reserveFront(qint64 bytes) | - |
| 145 | { | - |
| 146 | if (bytes <= 0 || bytes >= MaxByteArraySize)| TRUE | never evaluated | | FALSE | evaluated 33198 times by 7 testsEvaluated by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QProcess
- tst_QRingBuffer
|
| TRUE | never evaluated | | FALSE | evaluated 33198 times by 7 testsEvaluated by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QProcess
- tst_QRingBuffer
|
| 0-33198 |
| 147 | return 0; never executed: return 0; | 0 |
| 148 | | - |
| 149 | if (head < bytes) {| TRUE | evaluated 32952 times by 7 testsEvaluated by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QProcess
- tst_QRingBuffer
| | FALSE | evaluated 246 times by 1 test |
| 246-32952 |
| 150 | if (buffers.isEmpty()) {| TRUE | evaluated 7 times by 4 testsEvaluated by:- tst_QBuffer
- tst_QIODevice
- tst_QImageReader
- tst_QRingBuffer
| | FALSE | evaluated 32945 times by 7 testsEvaluated by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QProcess
- tst_QRingBuffer
|
| 7-32945 |
| 151 | buffers.append(QByteArray()); | - |
| 152 | } elseexecuted 7 times by 4 tests: end of blockExecuted by:- tst_QBuffer
- tst_QIODevice
- tst_QImageReader
- tst_QRingBuffer
{executed 7 times by 4 tests: end of blockExecuted by:- tst_QBuffer
- tst_QIODevice
- tst_QImageReader
- tst_QRingBuffer
| 7 |
| 153 | buffers.first().remove(0, head); | - |
| 154 | if (tailBuffer == 0)| TRUE | evaluated 32938 times by 7 testsEvaluated by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QProcess
- tst_QRingBuffer
| | FALSE | evaluated 7 times by 1 test |
| 7-32938 |
| 155 | tail -= head;executed 32938 times by 7 tests: tail -= head;Executed by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QProcess
- tst_QRingBuffer
| 32938 |
| 156 | }executed 32945 times by 7 tests: end of blockExecuted by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QProcess
- tst_QRingBuffer
| 32945 |
| 157 | | - |
| 158 | head = qMax(basicBlockSize, int(bytes)); | - |
| 159 | if (bufferSize == 0) {| TRUE | evaluated 32943 times by 7 testsEvaluated by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QProcess
- tst_QRingBuffer
| | FALSE | evaluated 9 times by 1 test |
| 9-32943 |
| 160 | tail = head; | - |
| 161 | } else {executed 32943 times by 7 tests: end of blockExecuted by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QProcess
- tst_QRingBuffer
| 32943 |
| 162 | buffers.prepend(QByteArray()); | - |
| 163 | ++tailBuffer; | - |
| 164 | }executed 9 times by 1 test: end of block | 9 |
| 165 | buffers.first().resize(head); | - |
| 166 | }executed 32952 times by 7 tests: end of blockExecuted by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QProcess
- tst_QRingBuffer
| 32952 |
| 167 | | - |
| 168 | head -= int(bytes); | - |
| 169 | bufferSize += bytes; | - |
| 170 | return buffers.first().data() + head;executed 33198 times by 7 tests: return buffers.first().data() + head;Executed by:- tst_QBuffer
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QProcess
- tst_QRingBuffer
| 33198 |
| 171 | } | - |
| 172 | | - |
| 173 | void QRingBuffer::chop(qint64 bytes) | - |
| 174 | { | - |
| 175 | Q_ASSERT(bytes <= bufferSize); | - |
| 176 | | - |
| 177 | while (bytes > 0) {| TRUE | evaluated 151026 times by 155 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- ...
| | FALSE | evaluated 76732 times by 63 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QChar
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QEventLoop
- tst_QFile
- tst_QFileInfo
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcoImageFormat
- tst_QIcon
- tst_QImage
- tst_QImageReader
- ...
|
| 76732-151026 |
| 178 | if (tailBuffer == 0 || tail > bytes) {| TRUE | evaluated 150895 times by 155 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- ...
| | FALSE | evaluated 131 times by 11 testsEvaluated by:- tst_QFtp
- tst_QImageReader
- tst_QNetworkReply
- tst_QProcess
- tst_QSharedPointer
- tst_QSslSocket
- tst_QTcpSocket
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qmake
- tst_rcc
|
| TRUE | evaluated 96 times by 8 testsEvaluated by:- tst_QFtp
- tst_QNetworkReply
- tst_QProcess
- tst_QSharedPointer
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qmake
- tst_rcc
| | FALSE | evaluated 35 times by 7 testsEvaluated by:- tst_QFtp
- tst_QImageReader
- tst_QNetworkReply
- tst_QProcess
- tst_QSslSocket
- tst_QTcpSocket
- tst_Selftests
|
| 35-150895 |
| 179 | | - |
| 180 | | - |
| 181 | | - |
| 182 | if (bufferSize <= bytes) {| TRUE | evaluated 80811 times by 64 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCryptographicHash
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGraphicsScene
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| | FALSE | evaluated 70180 times by 143 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
|
| 70180-80811 |
| 183 | if (buffers.firstconstFirst().size() <= basicBlockSize) {| TRUE | evaluated 80810 times by 63 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCryptographicHash
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGraphicsScene
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| | FALSE | evaluated 1 time by 1 test |
| 1-80810 |
| 184 | bufferSize = 0; | - |
| 185 | head = tail = 0; | - |
| 186 | } else {executed 80810 times by 63 tests: end of blockExecuted by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCryptographicHash
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGraphicsScene
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLabel
- ...
| 80810 |
| 187 | clear(); | - |
| 188 | }executed 1 time by 1 test: end of block | 1 |
| 189 | } else { | - |
| 190 | Q_ASSERT(bytes < MaxByteArraySize); | - |
| 191 | tail -= int(bytes); | - |
| 192 | bufferSize -= bytes; | - |
| 193 | }executed 70180 times by 143 tests: end of blockExecuted by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QDateTime
- tst_QDateTimeEdit
- tst_QDebug
- ...
| 70180 |
| 194 | return;executed 150991 times by 155 tests: return;Executed by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QChar
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- ...
| 150991 |
| 195 | } | - |
| 196 | | - |
| 197 | bufferSize -= tail; | - |
| 198 | bytes -= tail; | - |
| 199 | buffers.removeLast(); | - |
| 200 | --tailBuffer; | - |
| 201 | tail = buffers.lastconstLast().size(); | - |
| 202 | }executed 35 times by 7 tests: end of blockExecuted by:- tst_QFtp
- tst_QImageReader
- tst_QNetworkReply
- tst_QProcess
- tst_QSslSocket
- tst_QTcpSocket
- tst_Selftests
| 35 |
| 203 | }executed 76732 times by 63 tests: end of blockExecuted by:- tst_Lancelot
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QChar
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDataStream
- tst_QEventLoop
- tst_QFile
- tst_QFileInfo
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcoImageFormat
- tst_QIcon
- tst_QImage
- tst_QImageReader
- ...
| 76732 |
| 204 | | - |
| 205 | void QRingBuffer::clear() | - |
| 206 | { | - |
| 207 | if (buffers.isEmpty())| TRUE | evaluated 229385 times by 71 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAuthenticator
- tst_QBitArray
- tst_QBrush
- tst_QBuffer
- tst_QColorDialog
- tst_QDataStream
- tst_QDate
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGuiVariant
- tst_QHttpNetworkConnection
- tst_QIODevice
- ...
| | FALSE | evaluated 110619 times by 114 testsEvaluated by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QBuffer
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- ...
|
| 110619-229385 |
| 208 | return;executed 229385 times by 71 tests: return;Executed by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAuthenticator
- tst_QBitArray
- tst_QBrush
- tst_QBuffer
- tst_QColorDialog
- tst_QDataStream
- tst_QDate
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFont
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGuiVariant
- tst_QHttpNetworkConnection
- tst_QIODevice
- ...
| 229385 |
| 209 | | - |
| 210 | buffers.erase(buffers.begin() + 1, buffers.end()); | - |
| 211 | buffers.first().clear(); | - |
| 212 | | - |
| 213 | head = tail = 0; | - |
| 214 | tailBuffer = 0; | - |
| 215 | bufferSize = 0; | - |
| 216 | }executed 110619 times by 114 tests: end of blockExecuted by:- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QBuffer
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- tst_QDoubleSpinBox
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- ...
| 110619 |
| 217 | | - |
| 218 | qint64 QRingBuffer::indexOf(char c, qint64 maxLength, qint64 pos) const | - |
| 219 | { | - |
| 220 | qint64 index =if (maxLength <= 0 || pos < 0)| TRUE | evaluated 5159 times by 11 testsEvaluated by:- tst_QBuffer
- tst_QFtp
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QLocalSocket
- tst_QNetworkReply
- tst_QRingBuffer
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QTcpSocket
- tst_QXmlSimpleReader
| | FALSE | evaluated 107226 times by 42 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
|
| TRUE | never evaluated | | FALSE | evaluated 107226 times by 42 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
|
| 0-107226 |
| 221 | return -1executed 5159 times by 11 tests: return -1;Executed by:- tst_QBuffer
- tst_QFtp
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QLocalSocket
- tst_QNetworkReply
- tst_QRingBuffer
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QTcpSocket
- tst_QXmlSimpleReader
;executed 5159 times by 11 tests: return -1;Executed by:- tst_QBuffer
- tst_QFtp
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QLocalSocket
- tst_QNetworkReply
- tst_QRingBuffer
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QTcpSocket
- tst_QXmlSimpleReader
| 5159 |
| 222 | | - |
| 223 | qint64 jindex = -(pos + head;); | - |
| 224 | for (int i = 0; index < maxLength &&i < buffers.size(); ++i) {| TRUE | evaluated 116771 times by 42 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| | FALSE | evaluated 619 times by 9 testsEvaluated by:- tst_QChar
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QRingBuffer
- tst_QTextBoundaryFinder
- tst_QTextStream
- tst_QXmlInputSource
|
| 619-116771 |
| 225 | const char *ptr = buffers[i].constData() + j; | - |
| jqint64 nextBlockIndex = qMin(index + (i == tailBuffer ? tail : buffers[i].size()) - j,()), | |
| 226 | maxLength); | - |
| 227 | | - |
| 228 | whileif (nextBlockIndex > 0) {| TRUE | evaluated 113954 times by 42 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| | FALSE | evaluated 2817 times by 1 test |
| 2817-113954 |
| 229 | const char *ptr = buffers[i].constData(); | - |
| 230 | if| TRUE | evaluated 97225 times by 42 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| | FALSE | evaluated 16729 times by 10 testsEvaluated by:- tst_QFtp
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QNetworkReply
- tst_QProcess
- tst_QRingBuffer
- tst_QSocks5SocketEngine
- tst_QTcpSocket
- tst_QXmlInputSource
|
(index < j0) {| TRUE | evaluated 97225 times by 42 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| | FALSE | evaluated 16729 times by 10 testsEvaluated by:- tst_QFtp
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QImageReader
- tst_QNetworkReply
- tst_QProcess
- tst_QRingBuffer
- tst_QSocks5SocketEngine
- tst_QTcpSocket
- tst_QXmlInputSource
|
| 16729-97225 |
| 231 | if (*ptr ++ ==-= index; | - |
| 232 | index = 0; | - |
| 233 | }executed 97225 times by 42 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| 97225 |
| 234 | | - |
| 235 | const char *findPtr = reinterpret_cast<const char *>(memchr(ptr, c, | - |
| 236 | nextBlockIndex - index)); | - |
| 237 | if (findPtr| TRUE | evaluated 106220 times by 42 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| | FALSE | evaluated 7734 times by 11 testsEvaluated by:- tst_QChar
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QNetworkReply
- tst_QRingBuffer
- tst_QTcpSocket
- tst_QTextBoundaryFinder
- tst_QTextStream
- tst_QXmlInputSource
|
)| TRUE | evaluated 106220 times by 42 testsEvaluated by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| | FALSE | evaluated 7734 times by 11 testsEvaluated by:- tst_QChar
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QNetworkReply
- tst_QRingBuffer
- tst_QTcpSocket
- tst_QTextBoundaryFinder
- tst_QTextStream
- tst_QXmlInputSource
|
| 7734-106220 |
| 238 | return qint64(findPtr - ptr) + index + pos;executed 106220 times by 42 tests: return qint64(findPtr - ptr) + index + pos;Executed by:- tst_QAccessibility
- tst_QCalendarWidget
- tst_QChar
- tst_QComboBox
- tst_QCompleter
- tst_QCssParser
- tst_QDateTimeEdit
- tst_QDebug
- tst_QFile
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsWidget
- tst_QGuiApplication
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- ...
| 106220 |
| 239 | | - |
| 240 | ++indexif (nextBlockIndex == maxLength)| TRUE | evaluated 387 times by 5 testsEvaluated by:- tst_QIODevice
- tst_QImageReader
- tst_QNetworkReply
- tst_QRingBuffer
- tst_QTcpSocket
| | FALSE | evaluated 7347 times by 10 testsEvaluated by:- tst_QChar
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QNetworkReply
- tst_QRingBuffer
- tst_QTextBoundaryFinder
- tst_QTextStream
- tst_QXmlInputSource
|
| 387-7347 |
| 241 | return -1executed 387 times by 5 tests: return -1;Executed by:- tst_QIODevice
- tst_QImageReader
- tst_QNetworkReply
- tst_QRingBuffer
- tst_QTcpSocket
;executed 387 times by 5 tests: return -1;Executed by:- tst_QIODevice
- tst_QImageReader
- tst_QNetworkReply
- tst_QRingBuffer
- tst_QTcpSocket
| 387 |
| 242 | }executed 7347 times by 10 tests: end of blockExecuted by:- tst_QChar
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QNetworkReply
- tst_QRingBuffer
- tst_QTextBoundaryFinder
- tst_QTextStream
- tst_QXmlInputSource
| 7347 |
| 243 | jindex = 0nextBlockIndex; | - |
| 244 | }executed 10164 times by 10 tests: end of blockExecuted by:- tst_QChar
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QNetworkReply
- tst_QRingBuffer
- tst_QTextBoundaryFinder
- tst_QTextStream
- tst_QXmlInputSource
| 10164 |
| 245 | return -1;executed 619 times by 9 tests: return -1;Executed by:- tst_QChar
- tst_QFile
- tst_QIODevice
- tst_QImageReader
- tst_QImageWriter
- tst_QRingBuffer
- tst_QTextBoundaryFinder
- tst_QTextStream
- tst_QXmlInputSource
| 619 |
| 246 | } | - |
| 247 | | - |
| 248 | qint64 QRingBuffer::read(char *data, qint64 maxLength) | - |
| 249 | { | - |
| 250 | const qint64 bytesToRead = qMin(size(), maxLength); | - |
| 251 | qint64 readSoFar = 0; | - |
| 252 | while (readSoFar < bytesToRead) { | - |
| 253 | const qint64 bytesToReadFromThisBlock = qMin(bytesToRead - readSoFar, | - |
| 254 | nextDataBlockSize()); | - |
| 255 | if (data) | - |
| 256 | memcpy(data + readSoFar, readPointer(), bytesToReadFromThisBlock); | - |
| 257 | readSoFar += bytesToReadFromThisBlock; | - |
| 258 | free(bytesToReadFromThisBlock); | - |
| 259 | } | - |
| 260 | return readSoFar; | - |
| 261 | } | - |
| 262 | | - |
| 263 | | - |
| 264 | | - |
| 265 | | - |
| 266 | | - |
| 267 | | - |
| 268 | QByteArray QRingBuffer::read() | - |
| 269 | { | - |
| 270 | if (bufferSize == 0)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 3 times by 1 test |
| 1-3 |
| 271 | return QByteArray();executed 1 time by 1 test: return QByteArray(); | 1 |
| 272 | | - |
| 273 | QByteArray qba(buffers.takeFirst()); | - |
| 274 | | - |
| 275 | qba.reserve(0); | - |
| 276 | if (tailBuffer == 0) {| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2 times by 1 test |
| 1-2 |
| 277 | qba.resize(tail); | - |
| 278 | tail = 0; | - |
| 279 | buffers.append(QByteArray());} else {executed 1 time by 1 test: end of block | 1 |
| 280 | --tailBuffer; | - |
| 281 | }executed 2 times by 1 test: end of block | 2 |
| 282 | qba.remove(0, head); | - |
| 283 | head = 0; | - |
| 284 | bufferSize -= qba.size(); | - |
| 285 | return qba;executed 3 times by 1 test: return qba; | 3 |
| 286 | } | - |
| 287 | | - |
| 288 | | - |
| 289 | | - |
| 290 | | - |
| 291 | | - |
| 292 | | - |
| 293 | qint64 QRingBuffer::peek(char *data, qint64 maxLength, qint64 pos) const | - |
| 294 | { | - |
| 295 | qint64 readSoFar = 0; | - |
| 296 | | - |
| 297 | if (pos >= 0) { | - |
| 298 | pos += head; | - |
| 299 | for (int i = 0; readSoFar < maxLength && i < buffers.size(); ++i) { | - |
| 300 | qint64 blockLength = (i == tailBuffer ? tail : buffers[i].size()); | - |
| 301 | | - |
| 302 | if (pos < blockLength) { | - |
| 303 | blockLength = qMin(blockLength - pos, maxLength - readSoFar); | - |
| 304 | memcpy(data + readSoFar, buffers[i].constData() + pos, blockLength); | - |
| 305 | readSoFar += blockLength; | - |
| 306 | pos = 0; | - |
| 307 | } else { | - |
| 308 | pos -= blockLength; | - |
| 309 | } | - |
| 310 | } | - |
| 311 | } | - |
| 312 | | - |
| 313 | return readSoFar; | - |
| 314 | } | - |
| 315 | | - |
| 316 | | - |
| 317 | | - |
| 318 | | - |
| 319 | | - |
| 320 | | - |
| 321 | void QRingBuffer::append(const char *data, qint64 size) | - |
| 322 | { | - |
| 323 | char *writePointer = reserve(size); | - |
| 324 | if (size == 1)| TRUE | evaluated 69869 times by 17 testsEvaluated by:- tst_QDataStream
- tst_QFile
- tst_QHttpSocketEngine
- tst_QLocalSocket
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSaveFile
- tst_QSettings
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QTcpSocket
- tst_QTextStream
- tst_QXmlStream
- tst_Spdy
| | FALSE | evaluated 96356 times by 62 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGuiEventLoop
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- ...
|
| 69869-96356 |
| 325 | *writePointer = *dataexecuted 69869 times by 17 tests: *writePointer = *data;Executed by:- tst_QDataStream
- tst_QFile
- tst_QHttpSocketEngine
- tst_QLocalSocket
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSaveFile
- tst_QSettings
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QTcpSocket
- tst_QTextStream
- tst_QXmlStream
- tst_Spdy
;executed 69869 times by 17 tests: *writePointer = *data;Executed by:- tst_QDataStream
- tst_QFile
- tst_QHttpSocketEngine
- tst_QLocalSocket
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSaveFile
- tst_QSettings
- tst_QSocketNotifier
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QTcpSocket
- tst_QTextStream
- tst_QXmlStream
- tst_Spdy
| 69869 |
| 326 | else if (size)| TRUE | evaluated 96329 times by 62 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGuiEventLoop
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- ...
| | FALSE | evaluated 27 times by 8 testsEvaluated by:- tst_QFile
- tst_QHttpSocketEngine
- tst_QNetworkReply
- tst_QSharedPointer
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qmakelib
- tst_qnetworkreply - unknown status
|
| 27-96329 |
| 327 | ::memcpy(writePointer, data, size);executed 96329 times by 62 tests: ::memcpy(writePointer, data, size);Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGuiEventLoop
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- ...
| 96329 |
| 328 | }executed 166225 times by 63 tests: end of blockExecuted by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QColorDialog
- tst_QDataStream
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGuiEventLoop
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLocalSocket
- tst_QLoggingRegistry
- tst_QMimeDatabase
- ...
| 166225 |
| 329 | | - |
| 330 | | - |
| 331 | | - |
| 332 | | - |
| 333 | | - |
| 334 | | - |
| 335 | void QRingBuffer::append(const QByteArray &qba) | - |
| 336 | { | - |
| 337 | if (tail == 0) {| TRUE | evaluated 685 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
- tst_QRingBuffer
- tst_Spdy
| | FALSE | evaluated 6470 times by 4 testsEvaluated by:- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
- tst_QRingBuffer
- tst_Spdy
|
| 685-6470 |
| 338 | if (buffers.isEmpty())| TRUE | evaluated 465 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
- tst_QRingBuffer
- tst_Spdy
| | FALSE | evaluated 220 times by 1 test |
| 220-465 |
| 339 | buffers.append(qba);executed 465 times by 5 tests: buffers.append(qba);Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
- tst_QRingBuffer
- tst_Spdy
| 465 |
| 340 | else | - |
| 341 | buffers.last() = qba;executed 220 times by 1 test: buffers.last() = qba; | 220 |
| 342 | } else { | - |
| 343 | buffers.last().resize(tail); | - |
| 344 | buffers.append(qba); | - |
| 345 | ++tailBuffer; | - |
| 346 | }executed 6470 times by 4 tests: end of blockExecuted by:- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
- tst_QRingBuffer
- tst_Spdy
| 6470 |
| 347 | tail = qba.size(); | - |
| 348 | bufferSize += tail; | - |
| 349 | }executed 7155 times by 5 tests: end of blockExecuted by:- tst_QAbstractNetworkCache
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkReply
- tst_QRingBuffer
- tst_Spdy
| 7155 |
| 350 | | - |
| 351 | qint64 QRingBuffer::readLine(char *data, qint64 maxLength) | - |
| 352 | { | - |
| 353 | if (!data || --maxLength <= 0) | - |
| 354 | return -1; | - |
| 355 | | - |
| 356 | qint64 i = indexOf('\n', maxLength); | - |
| 357 | i = read(data, i >= 0 ? (i + 1) : maxLength); | - |
| 358 | | - |
| 359 | | - |
| 360 | data[i] = '\0'; | - |
| 361 | return i; | - |
| 362 | } | - |
| 363 | | - |
| 364 | QT_END_NAMESPACE | - |
| | |