qbytearray.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qbytearray.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11static const uchar latin1_uppercased[256] = {-
12 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,-
13 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,-
14 0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,-
15 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,-
16 0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,-
17 0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f,-
18 0x60,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,-
19 0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x7b,0x7c,0x7d,0x7e,0x7f,-
20 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,-
21 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,-
22 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,-
23 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,-
24 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,-
25 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf,-
26 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,-
27 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xf7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xff-
28};-
29static const uchar latin1_lowercased[256] = {-
30 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,-
31 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,-
32 0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,-
33 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,-
34 0x40,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,-
35 0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x5b,0x5c,0x5d,0x5e,0x5f,-
36 0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,-
37 0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f,-
38 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,-
39 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,-
40 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,-
41 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,-
42 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef,-
43 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xd7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xdf,-
44 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef,-
45 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff-
46};-
47-
48int qFindByteArray(-
49 const char *haystack0, int haystackLen, int from,-
50 const char *needle0, int needleLen);-
51size_t qCalculateBlockSize(size_t elementCount, size_t elementSize, size_t headerSize) noexcept-
52{-
53 unsigned count = unsigned(elementCount);-
54 unsigned size = unsigned(elementSize);-
55 unsigned header = unsigned(headerSize);-
56 ((!(elementSize)) ? qt_assert("elementSize",__FILE__,172) : qt_noop());-
57 ((!(size == elementSize)) ? qt_assert("size == elementSize",__FILE__,173) : qt_noop());-
58 ((!(header == headerSize)) ? qt_assert("header == headerSize",__FILE__,174) : qt_noop());-
59-
60 if (__builtin_expect(!!(count != elementCount), false)
__builtin_expe...Count), false)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 114251311 times by 781 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
1-114251311
61 return
executed 1 time by 1 test: return std::numeric_limits<size_t>::max();
Executed by:
  • tst_QByteArray
std::numeric_limits<size_t>::max();
executed 1 time by 1 test: return std::numeric_limits<size_t>::max();
Executed by:
  • tst_QByteArray
1
62-
63 unsigned bytes;-
64 if (__builtin_expect(!!(mul_overflow(size, count, &bytes)), false)
__builtin_expe...ytes)), false)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 114251309 times by 781 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
||
2-114251309
65 __builtin_expect(!!(add_overflow(bytes, header, &bytes)), false)
__builtin_expe...ytes)), false)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 114251308 times by 781 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
1-114251308
66 return
executed 3 times by 1 test: return std::numeric_limits<size_t>::max();
Executed by:
  • tst_QByteArray
std::numeric_limits<size_t>::max();
executed 3 times by 1 test: return std::numeric_limits<size_t>::max();
Executed by:
  • tst_QByteArray
3
67 if (__builtin_expect(!!(int(bytes) < 0), false)
__builtin_expe...) < 0), false)Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 114251295 times by 781 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
13-114251295
68 return
executed 13 times by 1 test: return std::numeric_limits<size_t>::max();
Executed by:
  • tst_QByteArray
std::numeric_limits<size_t>::max();
executed 13 times by 1 test: return std::numeric_limits<size_t>::max();
Executed by:
  • tst_QByteArray
13
69-
70 return
executed 114250814 times by 781 tests: return bytes;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
bytes;
executed 114250814 times by 781 tests: return bytes;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
114250814
71}-
72CalculateGrowingBlockSizeResult-
73qCalculateGrowingBlockSize(size_t elementCount, size_t elementSize, size_t headerSize) noexcept-
74{-
75 CalculateGrowingBlockSizeResult result = {-
76 std::numeric_limits<size_t>::max(),std::numeric_limits<size_t>::max()-
77 };-
78-
79 unsigned bytes = unsigned(qCalculateBlockSize(elementCount, elementSize, headerSize));-
80 if (int(bytes) < 0
int(bytes) < 0Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 30345637 times by 724 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
10-30345637
81 return
executed 10 times by 1 test: return result;
Executed by:
  • tst_QByteArray
result;
executed 10 times by 1 test: return result;
Executed by:
  • tst_QByteArray
10
82-
83 unsigned morebytes = qNextPowerOfTwo(bytes);-
84 if (__builtin_expect(!!(int(morebytes) < 0), false)
__builtin_expe...) < 0), false)Description
TRUEevaluated 444 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 30345193 times by 724 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) {
444-30345193
85-
86-
87 bytes += (morebytes - bytes) / 2;-
88 }
executed 444 times by 1 test: end of block
Executed by:
  • tst_QByteArray
else {
444
89 bytes = morebytes;-
90 }
executed 30345193 times by 724 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
30345193
91-
92 result.elementCount = (bytes - unsigned(headerSize)) / unsigned(elementSize);-
93 result.size = bytes;-
94 return
executed 30345637 times by 724 tests: return result;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
result;
executed 30345637 times by 724 tests: return result;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
30345637
95}-
96char *qstrdup(const char *src)-
97{-
98 if (!src
!srcDescription
TRUEevaluated 17838 times by 24 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemModel
  • tst_QAbstractProxyModel
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QIdentityProxyModel
  • tst_QKeyEvent
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPicture
  • tst_QPlainTextEdit
  • tst_QPluginLoader
  • tst_QSizePolicy
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QToolBar
FALSEevaluated 1122818 times by 382 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
)
17838-1122818
99 return
executed 17838 times by 24 tests: return 0;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemModel
  • tst_QAbstractProxyModel
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QIdentityProxyModel
  • tst_QKeyEvent
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPicture
  • tst_QPlainTextEdit
  • tst_QPluginLoader
  • tst_QSizePolicy
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QToolBar
0;
executed 17838 times by 24 tests: return 0;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemModel
  • tst_QAbstractProxyModel
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QIdentityProxyModel
  • tst_QKeyEvent
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPicture
  • tst_QPlainTextEdit
  • tst_QPluginLoader
  • tst_QSizePolicy
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QString
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QToolBar
17838
100 char *dst = new char[strlen(src) + 1];-
101 return
executed 1122818 times by 382 tests: return qstrcpy(dst, src);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
qstrcpy(dst, src);
executed 1122818 times by 382 tests: return qstrcpy(dst, src);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
1122818
102}-
103char *qstrcpy(char *dst, const char *src)-
104{-
105 if (!src
!srcDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1132743 times by 385 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
)
2-1132743
106 return
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QByteArray
0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QByteArray
2
107 return
executed 1132743 times by 385 tests: return strcpy(dst, src);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
strcpy(dst, src);
executed 1132743 times by 385 tests: return strcpy(dst, src);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
1132743
108-
109}-
110char *qstrncpy(char *dst, const char *src, uint len)-
111{-
112 if (!src
!srcDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 202 times by 4 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
|| !dst
!dstDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 200 times by 4 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
)
2-202
113 return
executed 4 times by 1 test: return 0;
Executed by:
  • tst_QByteArray
0;
executed 4 times by 1 test: return 0;
Executed by:
  • tst_QByteArray
4
114 if (len > 0
len > 0Description
TRUEevaluated 199 times by 4 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
) {
1-199
115-
116-
117-
118 strncpy(dst, src, len);-
119-
120 dst[len-1] = '\0';-
121 }
executed 199 times by 4 tests: end of block
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
199
122 return
executed 200 times by 4 tests: return dst;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
dst;
executed 200 times by 4 tests: return dst;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
200
123}-
124int qstrcmp(const char *str1, const char *str2)-
125{-
126 return
executed 520202 times by 197 tests: return (str1 && str2) ? strcmp(str1, str2) : (str1 ? 1 : (str2 ? -1 : 0));
Executed by:
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAtomicPointer
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
(str1 && str2) ? strcmp(str1, str2)
executed 520202 times by 197 tests: return (str1 && str2) ? strcmp(str1, str2) : (str1 ? 1 : (str2 ? -1 : 0));
Executed by:
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAtomicPointer
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
520202
127 : (str1 ? 1 : (str2 ? -1 : 0));
executed 520202 times by 197 tests: return (str1 && str2) ? strcmp(str1, str2) : (str1 ? 1 : (str2 ? -1 : 0));
Executed by:
  • tst_Compiler
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAtomicPointer
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
520202
128}-
129int qstricmp(const char *str1, const char *str2)-
130{-
131 const uchar *s1 = reinterpret_cast<const uchar *>(str1);-
132 const uchar *s2 = reinterpret_cast<const uchar *>(str2);-
133 int res;-
134 uchar c;-
135 if (!s1
!s1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 230779 times by 47 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • ...
|| !s2
!s2Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 230778 times by 47 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • ...
)
1-230779
136 return
executed 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0);
Executed by:
  • tst_QByteArray
s1 ? 1 : (s2 ? -1 : 0);
executed 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0);
Executed by:
  • tst_QByteArray
3
137 for (; !(res = (c = latin1_lowercased[*s1]) - latin1_lowercased[*s2])
!(res = (c = l...wercased[*s2])Description
TRUEevaluated 351902 times by 18 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_Spdy
FALSEevaluated 215495 times by 47 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • ...
; s1++, s2++)
215495-351902
138 if (!c
!cDescription
TRUEevaluated 15283 times by 18 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_Spdy
FALSEevaluated 336619 times by 18 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_Spdy
)
15283-336619
139 break;
executed 15283 times by 18 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_Spdy
15283
140 return
executed 230778 times by 47 tests: return res;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • ...
res;
executed 230778 times by 47 tests: return res;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • ...
230778
141}-
142int qstrnicmp(const char *str1, const char *str2, uint len)-
143{-
144 const uchar *s1 = reinterpret_cast<const uchar *>(str1);-
145 const uchar *s2 = reinterpret_cast<const uchar *>(str2);-
146 int res;-
147 uchar c;-
148 if (!s1
!s1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 915 times by 8 tests
Evaluated by:
  • tst_QByteArray
  • tst_QGlobal
  • tst_QSettings
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_selftests - unknown status
|| !s2
!s2Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 914 times by 8 tests
Evaluated by:
  • tst_QByteArray
  • tst_QGlobal
  • tst_QSettings
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_selftests - unknown status
)
1-915
149 return
executed 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0);
Executed by:
  • tst_QByteArray
s1 ? 1 : (s2 ? -1 : 0);
executed 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0);
Executed by:
  • tst_QByteArray
3
150 for (; len--
len--Description
TRUEevaluated 1034 times by 8 tests
Evaluated by:
  • tst_QByteArray
  • tst_QGlobal
  • tst_QSettings
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_selftests - unknown status
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QTextCodec
; s1++, s2++) {
10-1034
151 if ((
(res = (c = la...wercased[*s2])Description
TRUEevaluated 903 times by 7 tests
Evaluated by:
  • tst_QGlobal
  • tst_QSettings
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_selftests - unknown status
FALSEevaluated 131 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QTextCodec
  • tst_QXmlStream
res = (c = latin1_lowercased[*s1]) - latin1_lowercased[*s2])
(res = (c = la...wercased[*s2])Description
TRUEevaluated 903 times by 7 tests
Evaluated by:
  • tst_QGlobal
  • tst_QSettings
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_selftests - unknown status
FALSEevaluated 131 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QTextCodec
  • tst_QXmlStream
)
131-903
152 return
executed 903 times by 7 tests: return res;
Executed by:
  • tst_QGlobal
  • tst_QSettings
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_selftests - unknown status
res;
executed 903 times by 7 tests: return res;
Executed by:
  • tst_QGlobal
  • tst_QSettings
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_selftests - unknown status
903
153 if (!c
!cDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 130 times by 2 tests
Evaluated by:
  • tst_QTextCodec
  • tst_QXmlStream
)
1-130
154 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QByteArray
1
155 }
executed 130 times by 2 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QXmlStream
130
156 return
executed 11 times by 2 tests: return 0;
Executed by:
  • tst_QByteArray
  • tst_QTextCodec
0;
executed 11 times by 2 tests: return 0;
Executed by:
  • tst_QByteArray
  • tst_QTextCodec
11
157}-
158-
159-
160-
161-
162int qstrcmp(const QByteArray &str1, const char *str2)-
163{-
164 if (!str2
!str2Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1408080 times by 513 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
32-1408080
165 return
executed 32 times by 1 test: return str1.isEmpty() ? 0 : +1;
Executed by:
  • tst_QByteArray
str1.isEmpty() ? 0 : +1;
executed 32 times by 1 test: return str1.isEmpty() ? 0 : +1;
Executed by:
  • tst_QByteArray
32
166-
167 const char *str1data = str1.constData();-
168 const char *str1end = str1data + str1.length();-
169 for ( ; str1data < str1end
str1data < str1endDescription
TRUEevaluated 5398195 times by 513 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 454478 times by 261 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QAtomicInteger_quintptr
  • ...
&& *
*str2Description
TRUEevaluated 5397886 times by 513 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 309 times by 32 tests
Evaluated by:
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QFlags
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QHash
  • tst_QHash_StrictIterators
  • tst_QHeaderView
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QLinkedList
  • tst_QList
  • tst_QList_StrictIterators
  • tst_QMap
  • tst_QMap_StrictIterators
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QSet
  • tst_QStateMachine
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • ...
str2
*str2Description
TRUEevaluated 5397886 times by 513 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 309 times by 32 tests
Evaluated by:
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QFlags
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QHash
  • tst_QHash_StrictIterators
  • tst_QHeaderView
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QLinkedList
  • tst_QList
  • tst_QList_StrictIterators
  • tst_QMap
  • tst_QMap_StrictIterators
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QSet
  • tst_QStateMachine
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • ...
; ++str1data, ++str2) {
309-5398195
170 int diff = int(uchar(*str1data)) - uchar(*str2);-
171 if (diff
diffDescription
TRUEevaluated 953293 times by 512 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 4444593 times by 412 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAtomicInt
  • ...
)
953293-4444593
172-
173 return
executed 953293 times by 512 tests: return diff;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
diff;
executed 953293 times by 512 tests: return diff;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
953293
174 }
executed 4444593 times by 412 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAtomicInt
  • ...
4444593
175-
176-
177 if (*
*str2 != '\0'Description
TRUEevaluated 2456 times by 171 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
FALSEevaluated 452331 times by 246 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QAtomicInteger_schar
  • ...
str2 != '\0'
*str2 != '\0'Description
TRUEevaluated 2456 times by 171 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
FALSEevaluated 452331 times by 246 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QAtomicInteger_schar
  • ...
)
2456-452331
178-
179 return
executed 2456 times by 171 tests: return -1;
Executed by:
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
-1;
executed 2456 times by 171 tests: return -1;
Executed by:
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
2456
180 if (str1data < str1end
str1data < str1endDescription
TRUEevaluated 309 times by 32 tests
Evaluated by:
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QFlags
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QHash
  • tst_QHash_StrictIterators
  • tst_QHeaderView
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QLinkedList
  • tst_QList
  • tst_QList_StrictIterators
  • tst_QMap
  • tst_QMap_StrictIterators
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QSet
  • tst_QStateMachine
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • ...
FALSEevaluated 452022 times by 231 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QAtomicInteger_schar
  • ...
)
309-452022
181-
182 return
executed 309 times by 32 tests: return +1;
Executed by:
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QFlags
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QHash
  • tst_QHash_StrictIterators
  • tst_QHeaderView
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QLinkedList
  • tst_QList
  • tst_QList_StrictIterators
  • tst_QMap
  • tst_QMap_StrictIterators
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QSet
  • tst_QStateMachine
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • ...
+1;
executed 309 times by 32 tests: return +1;
Executed by:
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QFlags
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QHash
  • tst_QHash_StrictIterators
  • tst_QHeaderView
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QLinkedList
  • tst_QList
  • tst_QList_StrictIterators
  • tst_QMap
  • tst_QMap_StrictIterators
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QSet
  • tst_QStateMachine
  • tst_QSystemSemaphore
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • ...
309
183 return
executed 452022 times by 231 tests: return 0;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QAtomicInteger_schar
  • ...
0;
executed 452022 times by 231 tests: return 0;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QAtomicInteger_schar
  • ...
452022
184}-
185-
186-
187-
188-
189int qstrcmp(const QByteArray &str1, const QByteArray &str2)-
190{-
191 int l1 = str1.length();-
192 int l2 = str2.length();-
193 int ret = memcmp(str1.constData(), str2.constData(), qMin(l1, l2));-
194 if (ret != 0
ret != 0Description
TRUEevaluated 5532693 times by 82 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 45710 times by 66 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMetaObjectBuilder
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • ...
)
45710-5532693
195 return
executed 5532693 times by 82 tests: return ret;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
ret;
executed 5532693 times by 82 tests: return ret;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
5532693
196-
197-
198-
199 return
executed 45710 times by 66 tests: return l1 - l2;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMetaObjectBuilder
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • ...
l1 - l2;
executed 45710 times by 66 tests: return l1 - l2;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMetaObjectBuilder
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • ...
45710
200}-
201static const quint16 crc_tbl[16] = {-
202 0x0000, 0x1081, 0x2102, 0x3183,-
203 0x4204, 0x5285, 0x6306, 0x7387,-
204 0x8408, 0x9489, 0xa50a, 0xb58b,-
205 0xc60c, 0xd68d, 0xe70e, 0xf78f-
206};-
207quint16 qChecksum(const char *data, uint len)-
208{-
209 quint16 crc = 0xffff;-
210 uchar c;-
211 const uchar *p = reinterpret_cast<const uchar *>(data);-
212 while (len--
len--Description
TRUEevaluated 9971 times by 3 tests
Evaluated by:
  • tst_QDataStream
  • tst_QPicture
  • tst_QPrinter
FALSEevaluated 45 times by 3 tests
Evaluated by:
  • tst_QDataStream
  • tst_QPicture
  • tst_QPrinter
) {
45-9971
213 c = *p++;-
214 crc = ((crc >> 4) & 0x0fff) ^ crc_tbl[((crc ^ c) & 15)];-
215 c >>= 4;-
216 crc = ((crc >> 4) & 0x0fff) ^ crc_tbl[((crc ^ c) & 15)];-
217 }
executed 9971 times by 3 tests: end of block
Executed by:
  • tst_QDataStream
  • tst_QPicture
  • tst_QPrinter
9971
218 return
executed 45 times by 3 tests: return ~crc & 0xffff;
Executed by:
  • tst_QDataStream
  • tst_QPicture
  • tst_QPrinter
~crc & 0xffff;
executed 45 times by 3 tests: return ~crc & 0xffff;
Executed by:
  • tst_QDataStream
  • tst_QPicture
  • tst_QPrinter
45
219}-
220QByteArray qCompress(const uchar* data, int nbytes, int compressionLevel)-
221{-
222 if (nbytes == 0
nbytes == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
) {
1-21
223 return
executed 1 time by 1 test: return QByteArray(4, '\0');
Executed by:
  • tst_QByteArray
QByteArray(4, '\0');
executed 1 time by 1 test: return QByteArray(4, '\0');
Executed by:
  • tst_QByteArray
1
224 }-
225 if (!data
!dataDescription
TRUEnever evaluated
FALSEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
) {
0-21
226 QMessageLogger(__FILE__, 599, __PRETTY_FUNCTION__).warning("qCompress: Data is null");-
227 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
228 }-
229 if (compressionLevel < -1
compressionLevel < -1Description
TRUEnever evaluated
FALSEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
|| compressionLevel > 9
compressionLevel > 9Description
TRUEnever evaluated
FALSEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
)
0-21
230 compressionLevel = -1;
never executed: compressionLevel = -1;
0
231-
232 ulong len = nbytes + nbytes / 100 + 13;-
233 QByteArray bazip;-
234 int res;-
235 do {-
236 bazip.resize(len + 4);-
237 res = ::compress2((uchar*)bazip.data()+4, &len, data, nbytes, compressionLevel);-
238-
239 switch (res) {-
240 case
executed 21 times by 4 tests: case 0:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
0:
executed 21 times by 4 tests: case 0:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
21
241 bazip.resize(len + 4);-
242 bazip[0] = (nbytes & 0xff000000) >> 24;-
243 bazip[1] = (nbytes & 0x00ff0000) >> 16;-
244 bazip[2] = (nbytes & 0x0000ff00) >> 8;-
245 bazip[3] = (nbytes & 0x000000ff);-
246 break;
executed 21 times by 4 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
21
247 case
never executed: case (-4):
(-4):
never executed: case (-4):
0
248 QMessageLogger(__FILE__, 621, __PRETTY_FUNCTION__).warning("qCompress: Z_MEM_ERROR: Not enough memory");-
249 bazip.resize(0);-
250 break;
never executed: break;
0
251 case
never executed: case (-5):
(-5):
never executed: case (-5):
0
252 len *= 2;-
253 break;
never executed: break;
0
254 }-
255 }
executed 21 times by 4 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
while (res == (-5)
res == (-5)Description
TRUEnever evaluated
FALSEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
);
0-21
256-
257 return
executed 21 times by 4 tests: return bazip;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
bazip;
executed 21 times by 4 tests: return bazip;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
21
258}-
259QByteArray qUncompress(const uchar* data, int nbytes)-
260{-
261 if (!data
!dataDescription
TRUEnever evaluated
FALSEevaluated 660 times by 11 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
) {
0-660
262 QMessageLogger(__FILE__, 669, __PRETTY_FUNCTION__).warning("qUncompress: Data is null");-
263 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
264 }-
265 if (nbytes <= 4
nbytes <= 4Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 647 times by 11 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
) {
13-647
266 if (nbytes < 4
nbytes < 4Description
TRUEnever evaluated
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QByteArray
|| (data[0]!=0
data[0]!=0Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
|| data[1]!=0
data[1]!=0Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
|| data[2]!=0
data[2]!=0Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
|| data[3]!=0
data[3]!=0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
))
0-13
267 QMessageLogger(__FILE__, 674, __PRETTY_FUNCTION__).warning("qUncompress: Input data is corrupted");
executed 11 times by 1 test: QMessageLogger(__FILE__, 674, __PRETTY_FUNCTION__).warning("qUncompress: Input data is corrupted");
Executed by:
  • tst_QByteArray
11
268 return
executed 13 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
QByteArray();
executed 13 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
13
269 }-
270 ulong expectedSize = uint((data[0] << 24) | (data[1] << 16) |-
271 (data[2] << 8) | (data[3] ));-
272 ulong len = qMax(expectedSize, 1ul);-
273 QScopedPointer<QByteArray::Data, QScopedPointerPodDeleter> d;-
274-
275 for(;;) {-
276 ulong alloc = len;-
277 if (len >= (1u << 31u) - sizeof(QByteArray::Data)
len >= (1u << ...teArray::Data)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 640 times by 11 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
) {
7-640
278-
279 QMessageLogger(__FILE__, 686, __PRETTY_FUNCTION__).warning("qUncompress: Input data is corrupted");-
280 return
executed 7 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
QByteArray();
executed 7 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
7
281 }-
282 QByteArray::Data *p = static_cast<QByteArray::Data *>(::realloc(d.data(), sizeof(QByteArray::Data) + alloc + 1));-
283 if (!p
!pDescription
TRUEnever evaluated
FALSEevaluated 640 times by 11 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
) {
0-640
284-
285 QMessageLogger(__FILE__, 692, __PRETTY_FUNCTION__).warning("qUncompress: could not allocate enough memory to uncompress data");-
286 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
287 }-
288 d.take();-
289 d.reset(p);-
290 d->offset = sizeof(QByteArrayData);-
291 d->size = 0;-
292-
293 int res = ::uncompress((uchar*)d->data(), &len,-
294 data+4, nbytes-4);-
295-
296 switch (res) {-
297 case
executed 635 times by 11 tests: case 0:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
0:
executed 635 times by 11 tests: case 0:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
635
298 if (len != alloc
len != allocDescription
TRUEnever evaluated
FALSEevaluated 635 times by 11 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
) {
0-635
299 if (len >= (1u << 31u) - sizeof(QByteArray::Data)
len >= (1u << ...teArray::Data)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
300-
301 QMessageLogger(__FILE__, 708, __PRETTY_FUNCTION__).warning("qUncompress: Input data is corrupted");-
302 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
303 }-
304 QByteArray::Data *p = static_cast<QByteArray::Data *>(::realloc(d.data(), sizeof(QByteArray::Data) + len + 1));-
305 if (!p
!pDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
306-
307 QMessageLogger(__FILE__, 714, __PRETTY_FUNCTION__).warning("qUncompress: could not allocate enough memory to uncompress data");-
308 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
309 }-
310 d.take();-
311 d.reset(p);-
312 }
never executed: end of block
0
313 d->ref.initializeOwned();-
314 d->size = len;-
315 d->alloc = uint(len) + 1u;-
316 d->capacityReserved = false;-
317 d->offset = sizeof(QByteArrayData);-
318 d->data()[len] = 0;-
319-
320 {-
321 QByteArrayDataPtr dataPtr = { d.take() };-
322 return
executed 635 times by 11 tests: return QByteArray(dataPtr);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
QByteArray(dataPtr);
executed 635 times by 11 tests: return QByteArray(dataPtr);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
635
323 }-
324-
325 case
never executed: case (-4):
(-4):
never executed: case (-4):
0
326 QMessageLogger(__FILE__, 733, __PRETTY_FUNCTION__).warning("qUncompress: Z_MEM_ERROR: Not enough memory");-
327 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
328-
329 case
never executed: case (-5):
(-5):
never executed: case (-5):
0
330 len *= 2;-
331 continue;
never executed: continue;
0
332-
333 case
executed 5 times by 1 test: case (-3):
Executed by:
  • tst_QByteArray
(-3):
executed 5 times by 1 test: case (-3):
Executed by:
  • tst_QByteArray
5
334 QMessageLogger(__FILE__, 741, __PRETTY_FUNCTION__).warning("qUncompress: Z_DATA_ERROR: Input data is corrupted");-
335 return
executed 5 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
QByteArray();
executed 5 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
5
336 }-
337 }
never executed: end of block
0
338}
never executed: end of block
0
339-
340-
341static inline bool qIsUpper(char c)-
342{-
343 return
executed 265 times by 4 tests: return c >= 'A' && c <= 'Z';
Executed by:
  • tst_QByteArray
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
c >= 'A' && c <= 'Z';
executed 265 times by 4 tests: return c >= 'A' && c <= 'Z';
Executed by:
  • tst_QByteArray
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
265
344}-
345-
346static inline char qToLower(char c)-
347{-
348 if (c >= 'A'
c >= 'A'Description
TRUEevaluated 265 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
FALSEnever evaluated
&& c <= 'Z'
c <= 'Z'Description
TRUEnever evaluated
FALSEevaluated 265 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
)
0-265
349 return
never executed: return c - 'A' + 'a';
c - 'A' + 'a';
never executed: return c - 'A' + 'a';
0
350 else-
351 return
executed 265 times by 4 tests: return c;
Executed by:
  • tst_QByteArray
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
c;
executed 265 times by 4 tests: return c;
Executed by:
  • tst_QByteArray
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
265
352}-
353QByteArray &QByteArray::operator=(const QByteArray & other) noexcept-
354{-
355 other.d->ref.ref();-
356 if (!d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 118697 times by 77 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 795264 times by 420 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
)
118697-795264
357 Data::deallocate(d);
executed 118697 times by 77 tests: Data::deallocate(d);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • ...
118697
358 d = other.d;-
359 return
executed 913961 times by 422 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
*this;
executed 913961 times by 422 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
913961
360}-
361QByteArray &QByteArray::operator=(const char *str)-
362{-
363 Data *x;-
364 if (!str
!strDescription
TRUEevaluated 424 times by 2 tests
Evaluated by:
  • tst_QPicture
  • tst_QTimeZone
FALSEevaluated 398130 times by 197 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
) {
424-398130
365 x = Data::sharedNull();-
366 }
executed 424 times by 2 tests: end of block
Executed by:
  • tst_QPicture
  • tst_QTimeZone
else if (!*str
!*strDescription
TRUEevaluated 47295 times by 8 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QRawFont
  • tst_Spdy
FALSEevaluated 350835 times by 196 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
) {
424-350835
367 x = Data::allocate(0);-
368 }
executed 47295 times by 8 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QRawFont
  • tst_Spdy
else {
47295
369 const int len = int(strlen(str));-
370 const uint fullLen = len + 1;-
371 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 269151 times by 189 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 81684 times by 42 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QMetaObjectBuilder
  • tst_QNetworkReply
  • tst_QPrinter
  • ...
|| fullLen > d->alloc
fullLen > d->allocDescription
TRUEevaluated 26735 times by 38 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QMetaObjectBuilder
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QRegion
  • tst_QSaveFile
  • tst_QSettings
  • ...
FALSEevaluated 54949 times by 39 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRegion
  • ...
26735-269151
372 || (len < d->size
len < d->sizeDescription
TRUEevaluated 7674 times by 36 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRegion
  • tst_QSizeGrip
  • tst_QStringBuilder3
  • ...
FALSEevaluated 47275 times by 35 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRegion
  • tst_QSettings
  • tst_QSizeGrip
  • ...
&& fullLen < uint(d->alloc >> 1)
fullLen < uint(d->alloc >> 1)Description
TRUEevaluated 7666 times by 35 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRegion
  • tst_QSizeGrip
  • tst_QStringBuilder3
  • tst_QStringBuilder4
  • ...
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QDebug
  • tst_QImage
))
8-47275
373 reallocData(fullLen, d->detachFlags());
executed 303552 times by 196 tests: reallocData(fullLen, d->detachFlags());
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
303552
374 x = d;-
375 memcpy(x->data(), str, fullLen);-
376 x->size = len;-
377 }
executed 350835 times by 196 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
350835
378 x->ref.ref();-
379 if (!d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 46017 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QPicture
FALSEevaluated 352537 times by 197 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
)
46017-352537
380 Data::deallocate(d);
executed 46017 times by 5 tests: Data::deallocate(d);
Executed by:
  • tst_QByteArray
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QPicture
46017
381 d = x;-
382 return
executed 398554 times by 197 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
*this;
executed 398554 times by 197 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
398554
383}-
384void QByteArray::truncate(int pos)-
385{-
386 if (pos < d->size
pos < d->sizeDescription
TRUEevaluated 149597 times by 255 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
FALSEevaluated 3958 times by 27 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
  • tst_Utf8
  • ...
)
3958-149597
387 resize(pos);
executed 149597 times by 255 tests: resize(pos);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
149597
388}
executed 153555 times by 256 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
153555
389void QByteArray::chop(int n)-
390{-
391 if (n > 0
n > 0Description
TRUEevaluated 20348 times by 37 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QLockFile
  • tst_QMetaObject
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
)
1-20348
392 resize(d->size - n);
executed 20348 times by 37 tests: resize(d->size - n);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QLockFile
  • tst_QMetaObject
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • ...
20348
393}
executed 20349 times by 37 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QIcon
  • tst_QLockFile
  • tst_QMetaObject
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • ...
20349
394QByteArray::QByteArray(const char *data, int size)-
395{-
396 if (!data
!dataDescription
TRUEevaluated 443549 times by 365 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
FALSEevaluated 7717543 times by 432 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
) {
443549-7717543
397 d = Data::sharedNull();-
398 }
executed 443549 times by 365 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
else {
443549
399 if (size < 0
size < 0Description
TRUEevaluated 4679846 times by 405 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
FALSEevaluated 3037697 times by 342 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
)
3037697-4679846
400 size = int(strlen(data));
executed 4679846 times by 405 tests: size = int(strlen(data));
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
4679846
401 if (!size
!sizeDescription
TRUEevaluated 2642818 times by 58 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QApplication
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QChar
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGetPutEnv
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHashFunctions
  • tst_QIODevice
  • tst_QImageReader
  • ...
FALSEevaluated 5074725 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
) {
2642818-5074725
402 d = Data::allocate(0);-
403 }
executed 2642818 times by 58 tests: end of block
Executed by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QApplication
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QChar
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGetPutEnv
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHashFunctions
  • tst_QIODevice
  • tst_QImageReader
  • ...
else {
2642818
404 d = Data::allocate(uint(size) + 1u);-
405 do { if (!(d)
!(d)Description
TRUEnever evaluated
FALSEevaluated 5074725 times by 429 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-5074725
406 d->size = size;-
407 memcpy(d->data(), data, size);-
408 d->data()[size] = '\0';-
409 }
executed 5074569 times by 429 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
5074569
410 }-
411}-
412QByteArray::QByteArray(int size, char ch)-
413{-
414 if (size <= 0
size <= 0Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QUdpSocket
FALSEevaluated 19774 times by 66 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QDataStream
  • tst_QDir
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
) {
5-19774
415 d = Data::allocate(0);-
416 }
executed 5 times by 2 tests: end of block
Executed by:
  • tst_QAuthenticator
  • tst_QUdpSocket
else {
5
417 d = Data::allocate(uint(size) + 1u);-
418 do { if (!(d)
!(d)Description
TRUEnever evaluated
FALSEevaluated 19774 times by 66 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QDataStream
  • tst_QDir
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-19774
419 d->size = size;-
420 memset(d->data(), ch, size);-
421 d->data()[size] = '\0';-
422 }
executed 19774 times by 66 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QDataStream
  • tst_QDir
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
19774
423}-
424-
425-
426-
427-
428-
429-
430-
431QByteArray::QByteArray(int size, Qt::Initialization)-
432{-
433 d = Data::allocate(uint(size) + 1u);-
434 do { if (!(d)
!(d)Description
TRUEnever evaluated
FALSEevaluated 981459 times by 569 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-981459
435 d->size = size;-
436 d->data()[size] = '\0';-
437}
executed 981459 times by 569 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
981459
438void QByteArray::resize(int size)-
439{-
440 if (size < 0
size < 0Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QLockFile
FALSEevaluated 2050608 times by 439 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
)
5-2050608
441 size = 0;
executed 5 times by 2 tests: size = 0;
Executed by:
  • tst_QByteArray
  • tst_QLockFile
5
442-
443 if (((
((d)->offset !...yteArrayData))Description
TRUEevaluated 21 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingReply
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
FALSEevaluated 2050592 times by 439 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
d)->offset != sizeof(QByteArrayData))
((d)->offset !...yteArrayData))Description
TRUEevaluated 21 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingReply
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
FALSEevaluated 2050592 times by 439 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
&& !d->ref.isShared()
!d->ref.isShared()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 20 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingReply
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
&& size < d->size
size < d->sizeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEnever evaluated
) {
0-2050592
444 d->size = size;-
445 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QByteArray
1
446 }-
447-
448 if (size == 0
size == 0Description
TRUEevaluated 67758 times by 188 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 1982854 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
&& !d->capacityReserved
!d->capacityReservedDescription
TRUEevaluated 67750 times by 188 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QSslSocket
) {
8-1982854
449 Data *x = Data::allocate(0);-
450 if (!d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 15368 times by 174 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 52382 times by 51 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QBitArray
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • 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
  • ...
)
15368-52382
451 Data::deallocate(d);
executed 15368 times by 174 tests: Data::deallocate(d);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
15368
452 d = x;-
453 }
executed 67750 times by 188 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
else if (d->size == 0
d->size == 0Description
TRUEevaluated 335064 times by 259 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • ...
FALSEevaluated 1647798 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
&& d->ref.isStatic()
d->ref.isStatic()Description
TRUEevaluated 330742 times by 258 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • ...
FALSEevaluated 4322 times by 18 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QBitArray
  • tst_QByteArray
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QMetaObject
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_Spdy
) {
4322-1647798
454 Data *x = Data::allocate(uint(size) + 1u);-
455 do { if (!(x)
!(x)Description
TRUEnever evaluated
FALSEevaluated 330742 times by 258 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-330742
456 x->size = size;-
457 x->data()[size] = '\0';-
458 d = x;-
459 }
executed 330742 times by 258 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • ...
else {
330742
460 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 5282 times by 21 tests
Evaluated by:
  • tst_Collections
  • tst_QBitArray
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingReply
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QRingBuffer
  • tst_QString
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Selftests
  • tst_Spdy
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
FALSEevaluated 1646838 times by 437 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
|| uint(size) + 1u > d->alloc
uint(size) + 1u > d->allocDescription
TRUEevaluated 191239 times by 124 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDockWidget
  • ...
FALSEevaluated 1455599 times by 435 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
5282-1646838
461 || (!d->capacityReserved
!d->capacityReservedDescription
TRUEevaluated 1406280 times by 435 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
FALSEevaluated 49319 times by 33 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMetaObject
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSettings
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStringBuilder1
  • tst_QStringBuilder2
  • ...
&& size < d->size
size < d->sizeDescription
TRUEevaluated 1118802 times by 427 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
FALSEevaluated 287478 times by 169 tests
Evaluated by:
  • tst_Collections
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • ...
49319-1406280
462 && uint(size) + 1u < uint(d->alloc >> 1)
uint(size) + 1...d->alloc >> 1)Description
TRUEevaluated 681854 times by 419 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
FALSEevaluated 436948 times by 173 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • ...
))
436948-681854
463 reallocData(uint(size) + 1u, d->detachFlags() | Data::Grow);
executed 878375 times by 429 tests: reallocData(uint(size) + 1u, d->detachFlags() | Data::Grow);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
878375
464 if (d->alloc
d->allocDescription
TRUEevaluated 1652120 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
FALSEnever evaluated
) {
0-1652120
465 d->size = size;-
466 d->data()[size] = '\0';-
467 }
executed 1652120 times by 438 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
1652120
468 }
executed 1652120 times by 438 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
1652120
469}-
470QByteArray &QByteArray::fill(char ch, int size)-
471{-
472 resize(size < 0 ? d->size : size);-
473 if (d->size
d->sizeDescription
TRUEevaluated 3703 times by 8 tests
Evaluated by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QDataStream
  • tst_QFtp
  • tst_QMimeDatabase
  • tst_QRawFont
  • tst_QSslSocket
  • tst_QTextCodec
FALSEnever evaluated
)
0-3703
474 memset(d->data(), ch, d->size);
executed 3703 times by 8 tests: memset(d->data(), ch, d->size);
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QDataStream
  • tst_QFtp
  • tst_QMimeDatabase
  • tst_QRawFont
  • tst_QSslSocket
  • tst_QTextCodec
3703
475 return
executed 3703 times by 8 tests: return *this;
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QDataStream
  • tst_QFtp
  • tst_QMimeDatabase
  • tst_QRawFont
  • tst_QSslSocket
  • tst_QTextCodec
*this;
executed 3703 times by 8 tests: return *this;
Executed by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QDataStream
  • tst_QFtp
  • tst_QMimeDatabase
  • tst_QRawFont
  • tst_QSslSocket
  • tst_QTextCodec
3703
476}-
477-
478void QByteArray::reallocData(uint alloc, Data::AllocationOptions options)-
479{-
480 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 1652549 times by 421 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
FALSEevaluated 1527412 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
|| ((
((d)->offset !...yteArrayData))Description
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QStringBuilder3
  • tst_QStringBuilder4
FALSEevaluated 1527407 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
d)->offset != sizeof(QByteArrayData))
((d)->offset !...yteArrayData))Description
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QStringBuilder3
  • tst_QStringBuilder4
FALSEevaluated 1527407 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
) {
5-1652549
481 Data *x = Data::allocate(alloc, options);-
482 do { if (!(x)
!(x)Description
TRUEnever evaluated
FALSEevaluated 1652554 times by 421 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-1652554
483 x->size = qMin(int(alloc) - 1, d->size);-
484 ::memcpy(x->data(), d->data(), x->size);-
485 x->data()[x->size] = '\0';-
486 if (!d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QStringBuilder3
  • tst_QStringBuilder4
FALSEevaluated 1652549 times by 421 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
)
5-1652549
487 Data::deallocate(d);
executed 5 times by 3 tests: Data::deallocate(d);
Executed by:
  • tst_QByteArray
  • tst_QStringBuilder3
  • tst_QStringBuilder4
5
488 d = x;-
489 }
executed 1652554 times by 421 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
else {
1652554
490 size_t blockSize;-
491 if (options & Data::Grow
options & Data::GrowDescription
TRUEevaluated 1485537 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
FALSEevaluated 41870 times by 56 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
) {
41870-1485537
492 auto r = qCalculateGrowingBlockSize(alloc, sizeof(QChar), sizeof(Data));-
493 blockSize = r.size;-
494 alloc = uint(r.elementCount);-
495 }
executed 1485537 times by 438 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
else {
1485537
496 blockSize = qCalculateBlockSize(alloc, sizeof(QChar), sizeof(Data));-
497 }
executed 41870 times by 56 tests: end of block
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
41870
498-
499 Data *x = static_cast<Data *>(::realloc(d, blockSize));-
500 do { if (!(x)
!(x)Description
TRUEnever evaluated
FALSEevaluated 1527407 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-1527407
501 x->alloc = alloc;-
502 x->capacityReserved = (
(options & Dat...acityReserved)Description
TRUEevaluated 11097 times by 54 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QItemSelectionModel
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
FALSEevaluated 1516310 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
options & Data::CapacityReserved)
(options & Dat...acityReserved)Description
TRUEevaluated 11097 times by 54 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QItemSelectionModel
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
FALSEevaluated 1516310 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
? 1 : 0;
11097-1516310
503 d = x;-
504 }
executed 1527407 times by 438 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
1527407
505}-
506-
507void QByteArray::expand(int i)-
508{-
509 resize(qMax(i + 1, d->size));-
510}
executed 2113 times by 10 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QFtp
  • tst_QNetworkReply
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Spdy
2113
511QByteArray QByteArray::nulTerminated() const-
512{-
513-
514 if (!((d)->offset != sizeof(QByteArrayData))
!((d)->offset ...yteArrayData))Description
TRUEevaluated 206684 times by 59 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QLockFile
  • tst_QMdiArea
  • tst_QMimeDatabase
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
)
6-206684
515 return
executed 206684 times by 59 tests: return *this;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QLockFile
  • tst_QMdiArea
  • tst_QMimeDatabase
  • ...
*this;
executed 206684 times by 59 tests: return *this;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QLockFile
  • tst_QMdiArea
  • tst_QMimeDatabase
  • ...
206684
516-
517 QByteArray copy(*this);-
518 copy.detach();-
519 return
executed 6 times by 1 test: return copy;
Executed by:
  • tst_QByteArray
copy;
executed 6 times by 1 test: return copy;
Executed by:
  • tst_QByteArray
6
520}-
521QByteArray &QByteArray::prepend(const QByteArray &ba)-
522{-
523 if (d->size == 0
d->size == 0Description
TRUEevaluated 17348 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QWidget
FALSEevaluated 1252 times by 17 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QFtp
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_Spdy
&& d->ref.isStatic()
d->ref.isStatic()Description
TRUEevaluated 17348 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QWidget
FALSEnever evaluated
&& !((ba.d)->offset != sizeof(QByteArrayData))
!((ba.d)->offs...yteArrayData))Description
TRUEevaluated 15 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QRingBuffer
FALSEevaluated 17333 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
  • tst_QWidget
) {
0-17348
524 *this = ba;-
525 }
executed 15 times by 3 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QRingBuffer
else if (ba.d->size != 0
ba.d->size != 0Description
TRUEevaluated 17877 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QWidget
FALSEevaluated 708 times by 9 tests
Evaluated by:
  • tst_QByteArray
  • tst_QFtp
  • tst_QNetworkReply
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Spdy
) {
15-17877
526 QByteArray tmp = *this;-
527 *this = ba;-
528 append(tmp);-
529 }
executed 17877 times by 12 tests: end of block
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QWidget
17877
530 return
executed 18600 times by 18 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QFtp
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QWidget
  • tst_Spdy
*this;
executed 18600 times by 18 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QFtp
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QWidget
  • tst_Spdy
18600
531}-
532-
533-
534-
535-
536-
537-
538-
539QByteArray &QByteArray::prepend(const char *str)-
540{-
541 return
executed 318 times by 7 tests: return prepend(str, qstrlen(str));
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_Selftests
  • tst_Utf8
prepend(str, qstrlen(str));
executed 318 times by 7 tests: return prepend(str, qstrlen(str));
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_Selftests
  • tst_Utf8
318
542}-
543QByteArray &QByteArray::prepend(const char *str, int len)-
544{-
545 if (str
strDescription
TRUEevaluated 318 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_Selftests
  • tst_Utf8
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QByteArray
) {
9-318
546 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 215 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_Selftests
  • tst_Utf8
FALSEevaluated 103 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
|| uint(d->size + len) + 1u > d->alloc
uint(d->size +... 1u > d->allocDescription
TRUEevaluated 23 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
FALSEevaluated 80 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QObject
)
23-215
547 reallocData(uint(d->size + len) + 1u, d->detachFlags() | Data::Grow);
executed 238 times by 6 tests: reallocData(uint(d->size + len) + 1u, d->detachFlags() | Data::Grow);
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_Selftests
  • tst_Utf8
238
548 memmove(d->data()+len, d->data(), d->size);-
549 memcpy(d->data(), str, len);-
550 d->size += len;-
551 d->data()[d->size] = '\0';-
552 }
executed 318 times by 7 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_Selftests
  • tst_Utf8
318
553 return
executed 327 times by 7 tests: return *this;
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_Selftests
  • tst_Utf8
*this;
executed 327 times by 7 tests: return *this;
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_Selftests
  • tst_Utf8
327
554}-
555QByteArray &QByteArray::prepend(char ch)-
556{-
557 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 32 times by 6 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSettings
  • tst_QSizePolicy
FALSEevaluated 639 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaEnum
  • tst_QNetworkReply
  • tst_QSettings
  • tst_languageChange
|| uint(d->size) + 2u > d->alloc
uint(d->size) + 2u > d->allocDescription
TRUEevaluated 63 times by 3 tests
Evaluated by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSettings
FALSEevaluated 576 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaEnum
  • tst_QNetworkReply
  • tst_QSettings
  • tst_languageChange
)
32-639
558 reallocData(uint(d->size) + 2u, d->detachFlags() | Data::Grow);
executed 95 times by 8 tests: reallocData(uint(d->size) + 2u, d->detachFlags() | Data::Grow);
Executed by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSizePolicy
95
559 memmove(d->data()+1, d->data(), d->size);-
560 d->data()[0] = ch;-
561 ++d->size;-
562 d->data()[d->size] = '\0';-
563 return
executed 671 times by 13 tests: return *this;
Executed by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSizePolicy
  • tst_languageChange
*this;
executed 671 times by 13 tests: return *this;
Executed by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QSizePolicy
  • tst_languageChange
671
564}-
565QByteArray &QByteArray::append(const QByteArray &ba)-
566{-
567 if (d->size == 0
d->size == 0Description
TRUEevaluated 243296 times by 339 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • ...
FALSEevaluated 924483 times by 362 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
&& d->ref.isStatic()
d->ref.isStatic()Description
TRUEevaluated 211848 times by 332 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
FALSEevaluated 31448 times by 70 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAnimationGroup
  • tst_QAuthenticator
  • tst_QByteArrayList
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusThreading
  • tst_QDialogButtonBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • ...
&& !((ba.d)->offset != sizeof(QByteArrayData))
!((ba.d)->offs...yteArrayData))Description
TRUEevaluated 211792 times by 332 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
FALSEevaluated 56 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QSslCertificate
) {
56-924483
568 *this = ba;-
569 }
executed 211792 times by 332 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
else if (ba.d->size != 0
ba.d->size != 0Description
TRUEevaluated 917830 times by 360 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
FALSEevaluated 38157 times by 161 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
) {
38157-917830
570 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 142209 times by 197 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 775621 times by 310 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
|| uint(d->size + ba.d->size) + 1u > d->alloc
uint(d->size +... 1u > d->allocDescription
TRUEevaluated 467498 times by 218 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 308123 times by 288 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
)
142209-775621
571 reallocData(uint(d->size + ba.d->size) + 1u, d->detachFlags() | Data::Grow);
executed 609707 times by 288 tests: reallocData(uint(d->size + ba.d->size) + 1u, d->detachFlags() | Data::Grow);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • ...
609707
572 memcpy(d->data() + d->size, ba.d->data(), ba.d->size);-
573 d->size += ba.d->size;-
574 d->data()[d->size] = '\0';-
575 }
executed 917830 times by 360 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
917830
576 return
executed 1167779 times by 409 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
*this;
executed 1167779 times by 409 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
1167779
577}-
578QByteArray& QByteArray::append(const char *str)-
579{-
580 if (str
strDescription
TRUEevaluated 239952 times by 189 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • ...
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QByteArray
) {
9-239952
581 const int len = int(strlen(str));-
582 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 128608 times by 62 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QDBusMetaType
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDialog
  • tst_QDir
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • ...
FALSEevaluated 111344 times by 167 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
|| uint(d->size + len) + 1u > d->alloc
uint(d->size +... 1u > d->allocDescription
TRUEevaluated 22304 times by 87 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAction
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • ...
FALSEevaluated 89040 times by 160 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • ...
)
22304-128608
583 reallocData(uint(d->size + len) + 1u, d->detachFlags() | Data::Grow);
executed 150912 times by 117 tests: reallocData(uint(d->size + len) + 1u, d->detachFlags() | Data::Grow);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAction
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingCall
  • ...
150912
584 memcpy(d->data() + d->size, str, len + 1);-
585 d->size += len;-
586 }
executed 239952 times by 189 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • ...
239952
587 return
executed 239961 times by 189 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • ...
*this;
executed 239961 times by 189 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • ...
239961
588}-
589QByteArray &QByteArray::append(const char *str, int len)-
590{-
591 if (len < 0
len < 0Description
TRUEnever evaluated
FALSEevaluated 534644 times by 273 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
)
0-534644
592 len = qstrlen(str);
never executed: len = qstrlen(str);
0
593 if (str
strDescription
TRUEevaluated 534641 times by 273 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArrayList
&& len
lenDescription
TRUEevaluated 534637 times by 273 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArrayList
) {
3-534641
594 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 524305 times by 131 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • ...
FALSEevaluated 10332 times by 240 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QCalendarWidget
  • ...
|| uint(d->size + len) + 1u > d->alloc
uint(d->size +... 1u > d->allocDescription
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QRingBuffer
FALSEevaluated 10319 times by 239 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
)
13-524305
595 reallocData(uint(d->size + len) + 1u, d->detachFlags() | Data::Grow);
executed 524318 times by 131 tests: reallocData(uint(d->size + len) + 1u, d->detachFlags() | Data::Grow);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • ...
524318
596 memcpy(d->data() + d->size, str, len);-
597 d->size += len;-
598 d->data()[d->size] = '\0';-
599 }
executed 534637 times by 273 tests: end of block
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
534637
600 return
executed 534644 times by 273 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
*this;
executed 534644 times by 273 tests: return *this;
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
534644
601}-
602QByteArray& QByteArray::append(char ch)-
603{-
604 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 69106 times by 205 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
FALSEevaluated 18056021 times by 356 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • ...
|| uint(d->size) + 2u > d->alloc
uint(d->size) + 2u > d->allocDescription
TRUEevaluated 122543 times by 120 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAction
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingCall
  • tst_QDataStream
  • tst_QDateTime
  • ...
FALSEevaluated 17933478 times by 349 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • ...
)
69106-18056021
605 reallocData(uint(d->size) + 2u, d->detachFlags() | Data::Grow);
executed 191649 times by 231 tests: reallocData(uint(d->size) + 2u, d->detachFlags() | Data::Grow);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • ...
191649
606 d->data()[d->size++] = ch;-
607 d->data()[d->size] = '\0';-
608 return
executed 18125127 times by 396 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
*this;
executed 18125127 times by 396 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
18125127
609}-
610-
611-
612-
613-
614-
615-
616static inline QByteArray &qbytearray_insert(QByteArray *ba,-
617 int pos, const char *arr, int len)-
618{-
619 ((!(pos >= 0)) ? qt_assert("pos >= 0",__FILE__,1970) : qt_noop());-
620-
621 if (pos < 0
pos < 0Description
TRUEnever evaluated
FALSEevaluated 120320 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
|| len <= 0
len <= 0Description
TRUEnever evaluated
FALSEevaluated 120320 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
|| arr == 0
arr == 0Description
TRUEnever evaluated
FALSEevaluated 120320 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
)
0-120320
622 return
never executed: return *ba;
*ba;
never executed: return *ba;
0
623-
624 int oldsize = ba->size();-
625 ba->resize(qMax(pos, oldsize) + len);-
626 char *dst = ba->data();-
627 if (pos > oldsize
pos > oldsizeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 120318 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
)
2-120318
628 ::
executed 2 times by 1 test: ::memset(dst + oldsize, 0x20, pos - oldsize);
Executed by:
  • tst_QByteArray
memset(dst + oldsize, 0x20, pos - oldsize);
executed 2 times by 1 test: ::memset(dst + oldsize, 0x20, pos - oldsize);
Executed by:
  • tst_QByteArray
2
629 else-
630 ::
executed 120318 times by 9 tests: ::memmove(dst + pos + len, dst + pos, oldsize - pos);
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
memmove(dst + pos + len, dst + pos, oldsize - pos);
executed 120318 times by 9 tests: ::memmove(dst + pos + len, dst + pos, oldsize - pos);
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
120318
631 memcpy(dst + pos, arr, len);-
632 return
executed 120320 times by 9 tests: return *ba;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
*ba;
executed 120320 times by 9 tests: return *ba;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
120320
633}-
634QByteArray &QByteArray::insert(int i, const QByteArray &ba)-
635{-
636 QByteArray copy(ba);-
637 return
executed 12 times by 2 tests: return qbytearray_insert(this, i, copy.d->data(), copy.d->size);
Executed by:
  • tst_Collections
  • tst_QByteArray
qbytearray_insert(this, i, copy.d->data(), copy.d->size);
executed 12 times by 2 tests: return qbytearray_insert(this, i, copy.d->data(), copy.d->size);
Executed by:
  • tst_Collections
  • tst_QByteArray
12
638}-
639QByteArray &QByteArray::insert(int i, const char *str)-
640{-
641 return
executed 14 times by 2 tests: return qbytearray_insert(this, i, str, qstrlen(str));
Executed by:
  • tst_QByteArray
  • tst_QByteArrayMatcher
qbytearray_insert(this, i, str, qstrlen(str));
executed 14 times by 2 tests: return qbytearray_insert(this, i, str, qstrlen(str));
Executed by:
  • tst_QByteArray
  • tst_QByteArrayMatcher
14
642}-
643QByteArray &QByteArray::insert(int i, const char *str, int len)-
644{-
645 return
executed 1 time by 1 test: return qbytearray_insert(this, i, str, len);
Executed by:
  • tst_QByteArray
qbytearray_insert(this, i, str, len);
executed 1 time by 1 test: return qbytearray_insert(this, i, str, len);
Executed by:
  • tst_QByteArray
1
646}-
647QByteArray &QByteArray::insert(int i, char ch)-
648{-
649 return
executed 1303 times by 6 tests: return qbytearray_insert(this, i, &ch, 1);
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
qbytearray_insert(this, i, &ch, 1);
executed 1303 times by 6 tests: return qbytearray_insert(this, i, &ch, 1);
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
1303
650}-
651QByteArray &QByteArray::insert(int i, int count, char ch)-
652{-
653 if (i < 0
i < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 46 times by 1 test
Evaluated by:
  • tst_QByteArray
|| count <= 0
count <= 0Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QByteArray
)
1-46
654 return
executed 19 times by 1 test: return *this;
Executed by:
  • tst_QByteArray
*this;
executed 19 times by 1 test: return *this;
Executed by:
  • tst_QByteArray
19
655-
656 int oldsize = size();-
657 resize(qMax(i, oldsize) + count);-
658 char *dst = d->data();-
659 if (i > oldsize
i > oldsizeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 27 times by 1 test
Evaluated by:
  • tst_QByteArray
)
1-27
660 ::
executed 1 time by 1 test: ::memset(dst + oldsize, 0x20, i - oldsize);
Executed by:
  • tst_QByteArray
memset(dst + oldsize, 0x20, i - oldsize);
executed 1 time by 1 test: ::memset(dst + oldsize, 0x20, i - oldsize);
Executed by:
  • tst_QByteArray
1
661 else if (i < oldsize
i < oldsizeDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QByteArray
)
9-18
662 ::
executed 18 times by 1 test: ::memmove(dst + i + count, dst + i, oldsize - i);
Executed by:
  • tst_QByteArray
memmove(dst + i + count, dst + i, oldsize - i);
executed 18 times by 1 test: ::memmove(dst + i + count, dst + i, oldsize - i);
Executed by:
  • tst_QByteArray
18
663 ::memset(dst + i, ch, count);-
664 return
executed 28 times by 1 test: return *this;
Executed by:
  • tst_QByteArray
*this;
executed 28 times by 1 test: return *this;
Executed by:
  • tst_QByteArray
28
665}-
666QByteArray &QByteArray::remove(int pos, int len)-
667{-
668 if (len <= 0
len <= 0Description
TRUEevaluated 33120 times by 20 tests
Evaluated by:
  • tst_Collections
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QProcess
  • tst_QRingBuffer
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
  • tst_qmessagehandler
FALSEevaluated 269741 times by 21 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QFtp
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMetaObject
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPixmap
  • tst_QRingBuffer
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QState
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Selftests
  • tst_Spdy
  • tst_qmessagehandler
|| uint(pos) >= uint(d->size)
uint(pos) >= uint(d->size)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 269738 times by 21 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QFtp
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMetaObject
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPixmap
  • tst_QRingBuffer
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QState
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Selftests
  • tst_Spdy
  • tst_qmessagehandler
)
3-269741
669 return
executed 33123 times by 20 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QProcess
  • tst_QRingBuffer
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
  • tst_qmessagehandler
*this;
executed 33123 times by 20 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QFile
  • tst_QHeaderView
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QProcess
  • tst_QRingBuffer
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
  • tst_qmessagehandler
33123
670 detach();-
671 if (len >= d->size - pos
len >= d->size - posDescription
TRUEevaluated 4159 times by 14 tests
Evaluated by:
  • tst_QByteArray
  • tst_QFtp
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPixmap
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Spdy
  • tst_qmessagehandler
FALSEevaluated 265579 times by 14 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMetaObject
  • tst_QMovie
  • tst_QObject
  • tst_QPixmap
  • tst_QRingBuffer
  • tst_QSslCertificate
  • tst_QState
  • tst_QStateMachine
  • tst_Selftests
  • tst_qmessagehandler
) {
4159-265579
672 resize(pos);-
673 }
executed 4159 times by 14 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QFtp
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPixmap
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Spdy
  • tst_qmessagehandler
else {
4159
674 memmove(d->data() + pos, d->data() + pos + len, d->size - pos - len);-
675 resize(d->size - len);-
676 }
executed 265579 times by 14 tests: end of block
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMetaObject
  • tst_QMovie
  • tst_QObject
  • tst_QPixmap
  • tst_QRingBuffer
  • tst_QSslCertificate
  • tst_QState
  • tst_QStateMachine
  • tst_Selftests
  • tst_qmessagehandler
265579
677 return
executed 269738 times by 21 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QFtp
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMetaObject
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPixmap
  • tst_QRingBuffer
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QState
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Selftests
  • tst_Spdy
  • tst_qmessagehandler
*this;
executed 269738 times by 21 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QFtp
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMetaObject
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPixmap
  • tst_QRingBuffer
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QState
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Selftests
  • tst_Spdy
  • tst_qmessagehandler
269738
678}-
679QByteArray &QByteArray::replace(int pos, int len, const QByteArray &after)-
680{-
681 if (len == after.d->size
len == after.d->sizeDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
&& (
(pos + len <= d->size)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
pos + len <= d->size)
(pos + len <= d->size)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
) {
1-8
682 detach();-
683 memmove(d->data() + pos, after.d->data(), len*sizeof(char));-
684 return
executed 2 times by 1 test: return *this;
Executed by:
  • tst_QByteArray
*this;
executed 2 times by 1 test: return *this;
Executed by:
  • tst_QByteArray
2
685 } else {-
686 QByteArray copy(after);-
687-
688 remove(pos, len);-
689 return
executed 9 times by 2 tests: return insert(pos, copy);
Executed by:
  • tst_Collections
  • tst_QByteArray
insert(pos, copy);
executed 9 times by 2 tests: return insert(pos, copy);
Executed by:
  • tst_Collections
  • tst_QByteArray
9
690 }-
691}-
692QByteArray &QByteArray::replace(int pos, int len, const char *after)-
693{-
694 return
executed 118991 times by 3 tests: return replace(pos,len,after,qstrlen(after));
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_Selftests
replace(pos,len,after,qstrlen(after));
executed 118991 times by 3 tests: return replace(pos,len,after,qstrlen(after));
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_Selftests
118991
695}-
696QByteArray &QByteArray::replace(int pos, int len, const char *after, int alen)-
697{-
698 if (len == alen
len == alenDescription
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QByteArray
FALSEevaluated 118989 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_Selftests
&& (
(pos + len <= d->size)Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QByteArray
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
pos + len <= d->size)
(pos + len <= d->size)Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QByteArray
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
) {
1-118989
699 detach();-
700 memcpy(d->data() + pos, after, len*sizeof(char));-
701 return
executed 12 times by 2 tests: return *this;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QByteArray
*this;
executed 12 times by 2 tests: return *this;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QByteArray
12
702 } else {-
703 remove(pos, len);-
704 return
executed 118990 times by 3 tests: return qbytearray_insert(this, pos, after, alen);
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_Selftests
qbytearray_insert(this, pos, after, alen);
executed 118990 times by 3 tests: return qbytearray_insert(this, pos, after, alen);
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_Selftests
118990
705 }-
706}-
707QByteArray &QByteArray::replace(const QByteArray &before, const QByteArray &after)-
708{-
709 if (isNull()
isNull()Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_Collections
|| before.d == after.d
before.d == after.dDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_Collections
)
0-3
710 return
never executed: return *this;
*this;
never executed: return *this;
0
711-
712 QByteArray aft = after;-
713 if (after.d == d
after.d == dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
)
1-2
714 aft.detach();
executed 2 times by 1 test: aft.detach();
Executed by:
  • tst_Collections
2
715-
716 return
executed 3 times by 1 test: return replace(before.constData(), before.size(), aft.constData(), aft.size());
Executed by:
  • tst_Collections
replace(before.constData(), before.size(), aft.constData(), aft.size());
executed 3 times by 1 test: return replace(before.constData(), before.size(), aft.constData(), aft.size());
Executed by:
  • tst_Collections
3
717}-
718QByteArray &QByteArray::replace(const char *c, const QByteArray &after)-
719{-
720 QByteArray aft = after;-
721 if (after.d == d
after.d == dDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
722 aft.detach();
never executed: aft.detach();
0
723-
724 return
never executed: return replace(c, qstrlen(c), aft.constData(), aft.size());
replace(c, qstrlen(c), aft.constData(), aft.size());
never executed: return replace(c, qstrlen(c), aft.constData(), aft.size());
0
725}-
726QByteArray &QByteArray::replace(const char *before, int bsize, const char *after, int asize)-
727{-
728 if (isNull()
isNull()Description
TRUEnever evaluated
FALSEevaluated 2753 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
|| (before == after
before == afterDescription
TRUEnever evaluated
FALSEevaluated 2753 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
&& bsize == asize
bsize == asizeDescription
TRUEnever evaluated
FALSEnever evaluated
))
0-2753
729 return
never executed: return *this;
*this;
never executed: return *this;
0
730-
731-
732 const char *a = after;-
733 const char *b = before;-
734 if (after >= d->data()
after >= d->data()Description
TRUEevaluated 612 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 2141 times by 6 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
&& after < d->data() + d->size
after < d->data() + d->sizeDescription
TRUEnever evaluated
FALSEevaluated 612 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
0-2141
735 char *copy = (char *)malloc(asize);-
736 do { if (!(copy)
!(copy)Description
TRUEnever evaluated
FALSEnever evaluated
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0
737 memcpy(copy, after, asize);-
738 a = copy;-
739 }
never executed: end of block
0
740 if (before >= d->data()
before >= d->data()Description
TRUEevaluated 2421 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 332 times by 1 test
Evaluated by:
  • tst_Spdy
&& before < d->data() + d->size
before < d->data() + d->sizeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 2419 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
2-2421
741 char *copy = (char *)malloc(bsize);-
742 do { if (!(copy)
!(copy)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-2
743 memcpy(copy, before, bsize);-
744 b = copy;-
745 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_Collections
2
746-
747 QByteArrayMatcher matcher(before, bsize);-
748 int index = 0;-
749 int len = d->size;-
750 char *d = data();-
751-
752 if (bsize == asize
bsize == asizeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 2752 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
1-2752
753 if (bsize
bsizeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
FALSEnever evaluated
) {
0-1
754 while ((
(index = match... index)) != -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
index = matcher.indexIn(*this, index)) != -1
(index = match... index)) != -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
) {
1
755 memcpy(d + index, after, asize);-
756 index += bsize;-
757 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_Collections
1
758 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_Collections
1
759 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_Collections
else if (asize < bsize
asize < bsizeDescription
TRUEevaluated 2301 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 451 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_Spdy
) {
1-2301
760 uint to = 0;-
761 uint movestart = 0;-
762 uint num = 0;-
763 while ((
(index = match... index)) != -1Description
TRUEevaluated 41 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
FALSEevaluated 2301 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
index = matcher.indexIn(*this, index)) != -1
(index = match... index)) != -1Description
TRUEevaluated 41 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
FALSEevaluated 2301 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
41-2301
764 if (num
numDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 27 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
) {
14-27
765 int msize = index - movestart;-
766 if (msize > 0
msize > 0Description
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QByteArray
) {
0-14
767 memmove(d + to, d + movestart, msize);-
768 to += msize;-
769 }
never executed: end of block
0
770 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_QByteArray
else {
14
771 to = index;-
772 }
executed 27 times by 2 tests: end of block
Executed by:
  • tst_Collections
  • tst_QByteArray
27
773 if (asize
asizeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_QByteArray
) {
1-40
774 memcpy(d + to, after, asize);-
775 to += asize;-
776 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_Collections
1
777 index += bsize;-
778 movestart = index;-
779 num++;-
780 }
executed 41 times by 2 tests: end of block
Executed by:
  • tst_Collections
  • tst_QByteArray
41
781 if (num
numDescription
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
FALSEevaluated 2274 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
27-2274
782 int msize = len - movestart;-
783 if (msize > 0
msize > 0Description
TRUEnever evaluated
FALSEevaluated 27 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
)
0-27
784 memmove(d + to, d + movestart, msize);
never executed: memmove(d + to, d + movestart, msize);
0
785 resize(len - num*(bsize-asize));-
786 }
executed 27 times by 2 tests: end of block
Executed by:
  • tst_Collections
  • tst_QByteArray
27
787 }
executed 2301 times by 8 tests: end of block
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
else {
2301
788-
789-
790 while (index != -1
index != -1Description
TRUEevaluated 451 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_Spdy
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
) {
2-451
791 uint indices[4096];-
792 uint pos = 0;-
793 while(pos < 4095
pos < 4095Description
TRUEevaluated 457 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_Spdy
FALSEnever evaluated
) {
0-457
794 index = matcher.indexIn(*this, index);-
795 if (index == -1
index == -1Description
TRUEevaluated 451 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_Spdy
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_Collections
)
6-451
796 break;
executed 451 times by 2 tests: break;
Executed by:
  • tst_Collections
  • tst_Spdy
451
797 indices[pos++] = index;-
798 index += bsize;-
799-
800 if (!bsize
!bsizeDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_Collections
)
0-6
801 index++;
never executed: index++;
0
802 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_Collections
6
803 if (!pos
!posDescription
TRUEevaluated 449 times by 1 test
Evaluated by:
  • tst_Spdy
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
)
2-449
804 break;
executed 449 times by 1 test: break;
Executed by:
  • tst_Spdy
449
805-
806-
807 int adjust = pos*(asize-bsize);-
808-
809 if (index != -1
index != -1Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
)
0-2
810 index += adjust;
never executed: index += adjust;
0
811 int newlen = len + adjust;-
812 int moveend = len;-
813 if (newlen > len
newlen > lenDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
FALSEnever evaluated
) {
0-2
814 resize(newlen);-
815 len = newlen;-
816 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_Collections
2
817 d = this->d->data();-
818-
819 while(pos
posDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
) {
2-6
820 pos--;-
821 int movestart = indices[pos] + bsize;-
822 int insertstart = indices[pos] + pos*(asize-bsize);-
823 int moveto = insertstart + asize;-
824 memmove(d + moveto, d + movestart, (moveend - movestart));-
825 if (asize
asizeDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_Collections
FALSEnever evaluated
)
0-6
826 memcpy(d + insertstart, after, asize);
executed 6 times by 1 test: memcpy(d + insertstart, after, asize);
Executed by:
  • tst_Collections
6
827 moveend = movestart - bsize;-
828 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_Collections
6
829 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_Collections
2
830 }
executed 451 times by 2 tests: end of block
Executed by:
  • tst_Collections
  • tst_Spdy
451
831-
832 if (a != after
a != afterDescription
TRUEnever evaluated
FALSEevaluated 2753 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
0-2753
833 ::
never executed: ::free(const_cast<char *>(a));
free(const_cast<char *>(a));
never executed: ::free(const_cast<char *>(a));
0
834 if (b != before
b != beforeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 2751 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
2-2751
835 ::
executed 2 times by 1 test: ::free(const_cast<char *>(b));
Executed by:
  • tst_Collections
free(const_cast<char *>(b));
executed 2 times by 1 test: ::free(const_cast<char *>(b));
Executed by:
  • tst_Collections
2
836-
837-
838 return
executed 2753 times by 9 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
*this;
executed 2753 times by 9 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
2753
839}-
840QByteArray &QByteArray::replace(char before, const QByteArray &after)-
841{-
842 char b[2] = { before, '\0' };-
843 QByteArray cb = fromRawData(b, 1);-
844 return
executed 2 times by 1 test: return replace(cb, after);
Executed by:
  • tst_Collections
replace(cb, after);
executed 2 times by 1 test: return replace(cb, after);
Executed by:
  • tst_Collections
2
845}-
846QByteArray &QByteArray::replace(char before, char after)-
847{-
848 if (d->size
d->sizeDescription
TRUEevaluated 158 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QLoggingRegistry
  • tst_QTextStream
FALSEevaluated 1081 times by 25 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QLoggingRegistry
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
) {
158-1081
849 char *i = data();-
850 char *e = i + d->size;-
851 for (; i != e
i != eDescription
TRUEevaluated 2698 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QLoggingRegistry
  • tst_QTextStream
FALSEevaluated 158 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QLoggingRegistry
  • tst_QTextStream
; ++i)
158-2698
852 if (*
*i == beforeDescription
TRUEevaluated 162 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QTextStream
FALSEevaluated 2536 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QLoggingRegistry
  • tst_QTextStream
i == before
*i == beforeDescription
TRUEevaluated 162 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QTextStream
FALSEevaluated 2536 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QLoggingRegistry
  • tst_QTextStream
)
162-2536
853 *
executed 162 times by 2 tests: * i = after;
Executed by:
  • tst_QByteArray
  • tst_QTextStream
i = after;
executed 162 times by 2 tests: * i = after;
Executed by:
  • tst_QByteArray
  • tst_QTextStream
162
854 }
executed 158 times by 3 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QLoggingRegistry
  • tst_QTextStream
158
855 return
executed 1239 times by 26 tests: return *this;
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QLoggingRegistry
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_QTextStream
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • ...
*this;
executed 1239 times by 26 tests: return *this;
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QLoggingRegistry
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_QTextStream
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • ...
1239
856}-
857QList<QByteArray> QByteArray::split(char sep) const-
858{-
859 QList<QByteArray> list;-
860 int start = 0;-
861 int end;-
862 while ((
(end = indexOf... start)) != -1Description
TRUEevaluated 572185 times by 66 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • ...
FALSEevaluated 182845 times by 74 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • ...
end = indexOf(sep, start)) != -1
(end = indexOf... start)) != -1Description
TRUEevaluated 572185 times by 66 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • ...
FALSEevaluated 182845 times by 74 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • ...
) {
182845-572185
863 list.append(mid(start, end - start));-
864 start = end + 1;-
865 }
executed 572185 times by 66 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • ...
572185
866 list.append(mid(start));-
867 return
executed 182845 times by 74 tests: return list;
Executed by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • ...
list;
executed 182845 times by 74 tests: return list;
Executed by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • ...
182845
868}-
869QByteArray QByteArray::repeated(int times) const-
870{-
871 if (d->size == 0
d->size == 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QByteArray
)
5-11
872 return
executed 5 times by 1 test: return *this;
Executed by:
  • tst_QByteArray
*this;
executed 5 times by 1 test: return *this;
Executed by:
  • tst_QByteArray
5
873-
874 if (times <= 1
times <= 1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QByteArray
) {
4-7
875 if (times == 1
times == 1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
)
1-3
876 return
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QByteArray
*this;
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QByteArray
1
877 return
executed 3 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
QByteArray();
executed 3 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
3
878 }-
879-
880 const int resultSize = times * d->size;-
881-
882 QByteArray result;-
883 result.reserve(resultSize);-
884 if (result.d->alloc != uint(resultSize) + 1u
result.d->allo...sultSize) + 1uDescription
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QByteArray
)
0-7
885 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
886-
887 memcpy(result.d->data(), d->data(), d->size);-
888-
889 int sizeSoFar = d->size;-
890 char *end = result.d->data() + sizeSoFar;-
891-
892 const int halfResultSize = resultSize >> 1;-
893 while (sizeSoFar <= halfResultSize
sizeSoFar <= halfResultSizeDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QByteArray
) {
7-12
894 memcpy(end, result.d->data(), sizeSoFar);-
895 end += sizeSoFar;-
896 sizeSoFar <<= 1;-
897 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QByteArray
12
898 memcpy(end, result.d->data(), resultSize - sizeSoFar);-
899 result.d->data()[resultSize] = '\0';-
900 result.d->size = resultSize;-
901 return
executed 7 times by 1 test: return result;
Executed by:
  • tst_QByteArray
result;
executed 7 times by 1 test: return result;
Executed by:
  • tst_QByteArray
7
902}-
903int QByteArray::indexOf(const QByteArray &ba, int from) const-
904{-
905 const int ol = ba.d->size;-
906 if (ol == 0
ol == 0Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QString
FALSEevaluated 2152 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qmessagehandler
)
16-2152
907 return
executed 16 times by 2 tests: return from;
Executed by:
  • tst_QByteArray
  • tst_QString
from;
executed 16 times by 2 tests: return from;
Executed by:
  • tst_QByteArray
  • tst_QString
16
908 if (ol == 1
ol == 1Description
TRUEevaluated 72 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QString
FALSEevaluated 2080 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qmessagehandler
)
72-2080
909 return
executed 72 times by 4 tests: return indexOf(*ba.d->data(), from);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QString
indexOf(*ba.d->data(), from);
executed 72 times by 4 tests: return indexOf(*ba.d->data(), from);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QString
72
910-
911 const int l = d->size;-
912 if (from > d->size
from > d->sizeDescription
TRUEnever evaluated
FALSEevaluated 2080 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qmessagehandler
|| ol + from > l
ol + from > lDescription
TRUEevaluated 16 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QOpenGlConfig
  • tst_QString
FALSEevaluated 2064 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qmessagehandler
)
0-2080
913 return
executed 16 times by 4 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QOpenGlConfig
  • tst_QString
-1;
executed 16 times by 4 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QOpenGlConfig
  • tst_QString
16
914-
915 return
executed 2064 times by 12 tests: return qFindByteArray(d->data(), d->size, from, ba.d->data(), ol);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qmessagehandler
qFindByteArray(d->data(), d->size, from, ba.d->data(), ol);
executed 2064 times by 12 tests: return qFindByteArray(d->data(), d->size, from, ba.d->data(), ol);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qmessagehandler
2064
916}-
917int QByteArray::indexOf(const char *c, int from) const-
918{-
919 const int ol = qstrlen(c);-
920 if (ol == 1
ol == 1Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 747924 times by 31 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • ...
)
24-747924
921 return
executed 24 times by 1 test: return indexOf(*c, from);
Executed by:
  • tst_QByteArray
indexOf(*c, from);
executed 24 times by 1 test: return indexOf(*c, from);
Executed by:
  • tst_QByteArray
24
922-
923 const int l = d->size;-
924 if (from > d->size
from > d->sizeDescription
TRUEnever evaluated
FALSEevaluated 747924 times by 31 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • ...
|| ol + from > l
ol + from > lDescription
TRUEevaluated 19450 times by 16 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Selftests
  • tst_Spdy
FALSEevaluated 728474 times by 30 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • ...
)
0-747924
925 return
executed 19450 times by 16 tests: return -1;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Selftests
  • tst_Spdy
-1;
executed 19450 times by 16 tests: return -1;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Selftests
  • tst_Spdy
19450
926 if (ol == 0
ol == 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 728466 times by 30 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • ...
)
8-728466
927 return
executed 8 times by 1 test: return from;
Executed by:
  • tst_QByteArray
from;
executed 8 times by 1 test: return from;
Executed by:
  • tst_QByteArray
8
928-
929 return
executed 728466 times by 30 tests: return qFindByteArray(d->data(), d->size, from, c, ol);
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • ...
qFindByteArray(d->data(), d->size, from, c, ol);
executed 728466 times by 30 tests: return qFindByteArray(d->data(), d->size, from, c, ol);
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • ...
728466
930}-
931int QByteArray::indexOf(char ch, int from) const-
932{-
933 if (from < 0
from < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 939940 times by 126 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • ...
)
1-939940
934 from = qMax(from + d->size, 0);
executed 1 time by 1 test: from = qMax(from + d->size, 0);
Executed by:
  • tst_Collections
1
935 if (from < d->size
from < d->sizeDescription
TRUEevaluated 937443 times by 124 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
FALSEevaluated 2498 times by 31 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QBuffer
  • tst_QByteArray
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpSocketEngine
  • tst_QMdiArea
  • tst_QMimeData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
  • tst_QString
  • ...
) {
2498-937443
936 const char *n = d->data() + from - 1;-
937 const char *e = d->data() + d->size;-
938 while (++
++n != eDescription
TRUEevaluated 16977935 times by 124 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
FALSEevaluated 183832 times by 81 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • ...
n != e
++n != eDescription
TRUEevaluated 16977935 times by 124 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
FALSEevaluated 183832 times by 81 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • ...
)
183832-16977935
939 if (*
*n == chDescription
TRUEevaluated 753611 times by 124 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
FALSEevaluated 16224324 times by 124 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
n == ch
*n == chDescription
TRUEevaluated 753611 times by 124 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
FALSEevaluated 16224324 times by 124 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
)
753611-16224324
940 return
executed 753611 times by 124 tests: return n - d->data();
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
n - d->data();
executed 753611 times by 124 tests: return n - d->data();
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
753611
941 }
executed 183832 times by 81 tests: end of block
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • ...
183832
942 return
executed 186330 times by 90 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • ...
-1;
executed 186330 times by 90 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • ...
186330
943}-
944-
945-
946static int lastIndexOfHelper(const char *haystack, int l, const char *needle, int ol, int from)-
947{-
948 int delta = l - ol;-
949 if (from < 0
from < 0Description
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
)
15-40
950 from = delta;
executed 40 times by 3 tests: from = delta;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
40
951 if (from < 0
from < 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 50 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
|| from > l
from > lDescription
TRUEnever evaluated
FALSEevaluated 50 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
)
0-50
952 return
executed 5 times by 1 test: return -1;
Executed by:
  • tst_QString
-1;
executed 5 times by 1 test: return -1;
Executed by:
  • tst_QString
5
953 if (from > delta
from > deltaDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 48 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
)
2-48
954 from = delta;
executed 2 times by 1 test: from = delta;
Executed by:
  • tst_QByteArray
2
955-
956 const char *end = haystack;-
957 haystack += from;-
958 const uint ol_minus_1 = ol - 1;-
959 const char *n = needle + ol_minus_1;-
960 const char *h = haystack + ol_minus_1;-
961 uint hashNeedle = 0, hashHaystack = 0;-
962 int idx;-
963 for (idx = 0; idx < ol
idx < olDescription
TRUEevaluated 285 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
FALSEevaluated 50 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
; ++idx) {
50-285
964 hashNeedle = ((hashNeedle<<1) + *(n-idx));-
965 hashHaystack = ((hashHaystack<<1) + *(h-idx));-
966 }
executed 285 times by 3 tests: end of block
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
285
967 hashHaystack -= *haystack;-
968 while (haystack >= end
haystack >= endDescription
TRUEevaluated 214 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
) {
14-214
969 hashHaystack += *haystack;-
970 if (hashHaystack == hashNeedle
hashHaystack == hashNeedleDescription
TRUEevaluated 38 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
FALSEevaluated 176 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
&& memcmp(needle, haystack, ol) == 0
memcmp(needle,...tack, ol) == 0Description
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QString
)
2-176
971 return
executed 36 times by 3 tests: return haystack - end;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
haystack - end;
executed 36 times by 3 tests: return haystack - end;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
36
972 --haystack;-
973 if (ol_minus_1 < sizeof(uint) * 8
ol_minus_1 < sizeof(uint) * 8Description
TRUEevaluated 144 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_QString
) hashHaystack -= (*(haystack + ol)) << ol_minus_1;
executed 144 times by 3 tests: hashHaystack -= (*(haystack + ol)) << ol_minus_1;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
hashHaystack <<= 1;
34-144
974 }
executed 178 times by 3 tests: end of block
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
178
975 return
executed 14 times by 3 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
-1;
executed 14 times by 3 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
14
976-
977}-
978int QByteArray::lastIndexOf(const QByteArray &ba, int from) const-
979{-
980 const int ol = ba.d->size;-
981 if (ol == 1
ol == 1Description
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QString
FALSEevaluated 36 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QString
)
34-36
982 return
executed 34 times by 2 tests: return lastIndexOf(*ba.d->data(), from);
Executed by:
  • tst_QByteArray
  • tst_QString
lastIndexOf(*ba.d->data(), from);
executed 34 times by 2 tests: return lastIndexOf(*ba.d->data(), from);
Executed by:
  • tst_QByteArray
  • tst_QString
34
983-
984 return
executed 36 times by 2 tests: return lastIndexOfHelper(d->data(), d->size, ba.d->data(), ol, from);
Executed by:
  • tst_QByteArray
  • tst_QString
lastIndexOfHelper(d->data(), d->size, ba.d->data(), ol, from);
executed 36 times by 2 tests: return lastIndexOfHelper(d->data(), d->size, ba.d->data(), ol, from);
Executed by:
  • tst_QByteArray
  • tst_QString
36
985}-
986int QByteArray::lastIndexOf(const char *str, int from) const-
987{-
988 const int ol = qstrlen(str);-
989 if (ol == 1
ol == 1Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 19 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
)
19-24
990 return
executed 24 times by 1 test: return lastIndexOf(*str, from);
Executed by:
  • tst_QByteArray
lastIndexOf(*str, from);
executed 24 times by 1 test: return lastIndexOf(*str, from);
Executed by:
  • tst_QByteArray
24
991-
992 return
executed 19 times by 2 tests: return lastIndexOfHelper(d->data(), d->size, str, ol, from);
Executed by:
  • tst_Collections
  • tst_QByteArray
lastIndexOfHelper(d->data(), d->size, str, ol, from);
executed 19 times by 2 tests: return lastIndexOfHelper(d->data(), d->size, str, ol, from);
Executed by:
  • tst_Collections
  • tst_QByteArray
19
993}-
994int QByteArray::lastIndexOf(char ch, int from) const-
995{-
996 if (from < 0
from < 0Description
TRUEevaluated 740 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QString
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 50 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QObject
)
50-740
997 from += d->size;
executed 740 times by 7 tests: from += d->size;
Executed by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QString
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
740
998 else if (from > d->size
from > d->sizeDescription
TRUEnever evaluated
FALSEevaluated 50 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QObject
)
0-50
999 from = d->size-1;
never executed: from = d->size-1;
0
1000 if (from >= 0
from >= 0Description
TRUEevaluated 776 times by 8 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QString
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QString
) {
14-776
1001 const char *b = d->data();-
1002 const char *n = d->data() + from + 1;-
1003 while (n-- != b
n-- != bDescription
TRUEevaluated 5984 times by 8 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QString
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 191 times by 6 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QString
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
191-5984
1004 if (*
*n == chDescription
TRUEevaluated 585 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QObject
  • tst_QString
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 5399 times by 8 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QString
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
n == ch
*n == chDescription
TRUEevaluated 585 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QObject
  • tst_QString
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 5399 times by 8 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QString
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
585-5399
1005 return
executed 585 times by 7 tests: return n - b;
Executed by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QObject
  • tst_QString
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
n - b;
executed 585 times by 7 tests: return n - b;
Executed by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QObject
  • tst_QString
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
585
1006 }
executed 191 times by 6 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QString
  • tst_qlogging - unknown status
  • tst_qmessagehandler
191
1007 return
executed 205 times by 6 tests: return -1;
Executed by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QString
  • tst_qlogging - unknown status
  • tst_qmessagehandler
-1;
executed 205 times by 6 tests: return -1;
Executed by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QString
  • tst_qlogging - unknown status
  • tst_qmessagehandler
205
1008}-
1009int QByteArray::count(const QByteArray &ba) const-
1010{-
1011 int num = 0;-
1012 int i = -1;-
1013 if (d->size > 500
d->size > 500Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_Collections
&& ba.d->size > 5
ba.d->size > 5Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-4
1014 QByteArrayMatcher matcher(ba);-
1015 while ((
(i = matcher.i... i + 1)) != -1Description
TRUEnever evaluated
FALSEnever evaluated
i = matcher.indexIn(*this, i + 1)) != -1
(i = matcher.i... i + 1)) != -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1016 ++
never executed: ++num;
num;
never executed: ++num;
0
1017 }
never executed: end of block
else {
0
1018 while ((
(i = indexOf(ba, i + 1)) != -1Description
TRUEevaluated 33 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_Collections
i = indexOf(ba, i + 1)) != -1
(i = indexOf(ba, i + 1)) != -1Description
TRUEevaluated 33 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_Collections
)
4-33
1019 ++
executed 33 times by 1 test: ++num;
Executed by:
  • tst_Collections
num;
executed 33 times by 1 test: ++num;
Executed by:
  • tst_Collections
33
1020 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_Collections
4
1021 return
executed 4 times by 1 test: return num;
Executed by:
  • tst_Collections
num;
executed 4 times by 1 test: return num;
Executed by:
  • tst_Collections
4
1022}-
1023int QByteArray::count(const char *str) const-
1024{-
1025 return
executed 4 times by 1 test: return count(fromRawData(str, qstrlen(str)));
Executed by:
  • tst_Collections
count(fromRawData(str, qstrlen(str)));
executed 4 times by 1 test: return count(fromRawData(str, qstrlen(str)));
Executed by:
  • tst_Collections
4
1026}-
1027int QByteArray::count(char ch) const-
1028{-
1029 int num = 0;-
1030 const char *i = d->data() + d->size;-
1031 const char *b = d->data();-
1032 while (i != b
i != bDescription
TRUEevaluated 65360 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
FALSEevaluated 514 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
)
514-65360
1033 if (*--
*--i == chDescription
TRUEevaluated 65303 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
FALSEevaluated 57 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QXmlStream
i == ch
*--i == chDescription
TRUEevaluated 65303 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
FALSEevaluated 57 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QXmlStream
)
57-65303
1034 ++
executed 65303 times by 3 tests: ++num;
Executed by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
num;
executed 65303 times by 3 tests: ++num;
Executed by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
65303
1035 return
executed 514 times by 3 tests: return num;
Executed by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
num;
executed 514 times by 3 tests: return num;
Executed by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
514
1036}-
1037bool QByteArray::startsWith(const QByteArray &ba) const-
1038{-
1039 if (d == ba.d
d == ba.dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 3311 times by 29 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QFileSelector
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
  • tst_QRingBuffer
  • tst_QString
  • tst_QXmlStream
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • ...
|| ba.d->size == 0
ba.d->size == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 3307 times by 29 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QFileSelector
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
  • tst_QRingBuffer
  • tst_QString
  • tst_QXmlStream
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • ...
)
2-3311
1040 return
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
true;
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
6
1041 if (d->size < ba.d->size
d->size < ba.d->sizeDescription
TRUEevaluated 1093 times by 9 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusLocalCalls
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 2214 times by 29 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QFileSelector
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
  • tst_QRingBuffer
  • tst_QString
  • tst_QXmlStream
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • ...
)
1093-2214
1042 return
executed 1093 times by 9 tests: return false;
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusLocalCalls
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
false;
executed 1093 times by 9 tests: return false;
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusLocalCalls
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
1093
1043 return
executed 2214 times by 29 tests: return memcmp(d->data(), ba.d->data(), ba.d->size) == 0;
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QFileSelector
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
  • tst_QRingBuffer
  • tst_QString
  • tst_QXmlStream
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • ...
memcmp(d->data(), ba.d->data(), ba.d->size) == 0;
executed 2214 times by 29 tests: return memcmp(d->data(), ba.d->data(), ba.d->size) == 0;
Executed by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QFileSelector
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QMdiArea
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
  • tst_QRingBuffer
  • tst_QString
  • tst_QXmlStream
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • ...
2214
1044}-
1045-
1046-
1047-
1048-
1049-
1050-
1051bool QByteArray::startsWith(const char *str) const-
1052{-
1053 if (!str
!strDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1556042 times by 153 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • ...
|| !*str
!*strDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1556039 times by 153 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • ...
)
3-1556042
1054 return
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
true;
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
6
1055 const int len = int(strlen(str));-
1056 if (d->size < len
d->size < lenDescription
TRUEevaluated 266731 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QDataStream
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPrinter
  • tst_QTcpSocket
  • tst_Selftests
  • tst_Utf8
  • tst_qmake
FALSEevaluated 1289308 times by 152 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • ...
)
266731-1289308
1057 return
executed 266731 times by 13 tests: return false;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QDataStream
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPrinter
  • tst_QTcpSocket
  • tst_Selftests
  • tst_Utf8
  • tst_qmake
false;
executed 266731 times by 13 tests: return false;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QDataStream
  • tst_QFontDialog
  • tst_QGlyphRun
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPrinter
  • tst_QTcpSocket
  • tst_Selftests
  • tst_Utf8
  • tst_qmake
266731
1058 return
executed 1289308 times by 152 tests: return qstrncmp(d->data(), str, len) == 0;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • ...
qstrncmp(d->data(), str, len) == 0;
executed 1289308 times by 152 tests: return qstrncmp(d->data(), str, len) == 0;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • ...
1289308
1059}-
1060-
1061-
1062-
1063-
1064-
1065-
1066bool QByteArray::startsWith(char ch) const-
1067{-
1068 if (d->size == 0
d->size == 0Description
TRUEevaluated 68 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QChar
  • tst_QNetworkCookieJar
  • tst_Selftests
FALSEevaluated 132395 times by 66 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleValidator
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • ...
)
68-132395
1069 return
executed 68 times by 4 tests: return false;
Executed by:
  • tst_QByteArray
  • tst_QChar
  • tst_QNetworkCookieJar
  • tst_Selftests
false;
executed 68 times by 4 tests: return false;
Executed by:
  • tst_QByteArray
  • tst_QChar
  • tst_QNetworkCookieJar
  • tst_Selftests
68
1070 return
executed 132395 times by 66 tests: return d->data()[0] == ch;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleValidator
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • ...
d->data()[0] == ch;
executed 132395 times by 66 tests: return d->data()[0] == ch;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDirIterator
  • tst_QDirModel
  • tst_QDoubleValidator
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • ...
132395
1071}-
1072bool QByteArray::endsWith(const QByteArray &ba) const-
1073{-
1074 if (d == ba.d
d == ba.dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QByteArray
|| ba.d->size == 0
ba.d->size == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
)
2-9
1075 return
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
true;
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
6
1076 if (d->size < ba.d->size
d->size < ba.d->sizeDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
)
2-3
1077 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_QByteArray
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_QByteArray
3
1078 return
executed 2 times by 1 test: return memcmp(d->data() + d->size - ba.d->size, ba.d->data(), ba.d->size) == 0;
Executed by:
  • tst_QByteArray
memcmp(d->data() + d->size - ba.d->size, ba.d->data(), ba.d->size) == 0;
executed 2 times by 1 test: return memcmp(d->data() + d->size - ba.d->size, ba.d->data(), ba.d->size) == 0;
Executed by:
  • tst_QByteArray
2
1079}-
1080-
1081-
1082-
1083-
1084-
1085-
1086bool QByteArray::endsWith(const char *str) const-
1087{-
1088 if (!str
!strDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 227683 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
|| !*str
!*strDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 227680 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
3-227683
1089 return
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
true;
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
6
1090 const int len = int(strlen(str));-
1091 if (d->size < len
d->size < lenDescription
TRUEevaluated 50105 times by 196 tests
Evaluated by:
  • tst_Collections
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QAtomicInteger_schar
  • tst_QAtomicInteger_short
  • tst_QAtomicInteger_uchar
  • tst_QAtomicInteger_uint
  • ...
FALSEevaluated 177575 times by 506 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
50105-177575
1092 return
executed 50105 times by 196 tests: return false;
Executed by:
  • tst_Collections
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QAtomicInteger_schar
  • tst_QAtomicInteger_short
  • tst_QAtomicInteger_uchar
  • tst_QAtomicInteger_uint
  • ...
false;
executed 50105 times by 196 tests: return false;
Executed by:
  • tst_Collections
  • tst_LargeFile
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • tst_QAtomicInteger_char32_t
  • tst_QAtomicInteger_int
  • tst_QAtomicInteger_long
  • tst_QAtomicInteger_qlonglong
  • tst_QAtomicInteger_qptrdiff
  • tst_QAtomicInteger_quintptr
  • tst_QAtomicInteger_qulonglong
  • tst_QAtomicInteger_schar
  • tst_QAtomicInteger_short
  • tst_QAtomicInteger_uchar
  • tst_QAtomicInteger_uint
  • ...
50105
1093 return
executed 177575 times by 506 tests: return qstrncmp(d->data() + d->size - len, str, len) == 0;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
qstrncmp(d->data() + d->size - len, str, len) == 0;
executed 177575 times by 506 tests: return qstrncmp(d->data() + d->size - len, str, len) == 0;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
177575
1094}-
1095-
1096-
1097-
1098-
1099-
1100-
1101bool QByteArray::endsWith(char ch) const-
1102{-
1103 if (d->size == 0
d->size == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 73575 times by 326 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • ...
)
4-73575
1104 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_QByteArray
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_QByteArray
4
1105 return
executed 73575 times by 326 tests: return d->data()[d->size - 1] == ch;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • ...
d->data()[d->size - 1] == ch;
executed 73575 times by 326 tests: return d->data()[d->size - 1] == ch;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • ...
73575
1106}-
1107QByteArray QByteArray::left(int len) const-
1108{-
1109 if (len >= d->size
len >= d->sizeDescription
TRUEevaluated 221 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QDataStream
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeData
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_Spdy
FALSEevaluated 80986 times by 48 tests
Evaluated by:
  • tst_Collections
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QChar
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
)
221-80986
1110 return
executed 221 times by 12 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QDataStream
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeData
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_Spdy
*this;
executed 221 times by 12 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QDataStream
  • tst_QIODevice
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeData
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_Spdy
221
1111 if (len < 0
len < 0Description
TRUEnever evaluated
FALSEevaluated 80986 times by 48 tests
Evaluated by:
  • tst_Collections
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QChar
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
)
0-80986
1112 len = 0;
never executed: len = 0;
0
1113 return
executed 80986 times by 48 tests: return QByteArray(d->data(), len);
Executed by:
  • tst_Collections
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QChar
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
QByteArray(d->data(), len);
executed 80986 times by 48 tests: return QByteArray(d->data(), len);
Executed by:
  • tst_Collections
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QChar
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
80986
1114}-
1115QByteArray QByteArray::right(int len) const-
1116{-
1117 if (len >= d->size
len >= d->sizeDescription
TRUEevaluated 13 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_LargeFile
  • tst_QDataStream
  • tst_QIODevice
FALSEevaluated 616 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_LargeFile
  • tst_QAuthenticator
  • tst_QDataStream
  • tst_QIODevice
)
13-616
1118 return
executed 13 times by 4 tests: return *this;
Executed by:
  • tst_Collections
  • tst_LargeFile
  • tst_QDataStream
  • tst_QIODevice
*this;
executed 13 times by 4 tests: return *this;
Executed by:
  • tst_Collections
  • tst_LargeFile
  • tst_QDataStream
  • tst_QIODevice
13
1119 if (len < 0
len < 0Description
TRUEnever evaluated
FALSEevaluated 616 times by 5 tests
Evaluated by:
  • tst_Collections
  • tst_LargeFile
  • tst_QAuthenticator
  • tst_QDataStream
  • tst_QIODevice
)
0-616
1120 len = 0;
never executed: len = 0;
0
1121 return
executed 616 times by 5 tests: return QByteArray(d->data() + d->size - len, len);
Executed by:
  • tst_Collections
  • tst_LargeFile
  • tst_QAuthenticator
  • tst_QDataStream
  • tst_QIODevice
QByteArray(d->data() + d->size - len, len);
executed 616 times by 5 tests: return QByteArray(d->data() + d->size - len, len);
Executed by:
  • tst_Collections
  • tst_LargeFile
  • tst_QAuthenticator
  • tst_QDataStream
  • tst_QIODevice
616
1122}-
1123QByteArray QByteArray::mid(int pos, int len) const-
1124{-
1125 using namespace QtPrivate;-
1126 switch (QContainerImplHelper::mid(size(), &pos, &len)) {-
1127 case
executed 113 times by 3 tests: case QContainerImplHelper::Null:
Executed by:
  • tst_QAuthenticator
  • tst_QHttpSocketEngine
  • tst_Spdy
QContainerImplHelper::Null:
executed 113 times by 3 tests: case QContainerImplHelper::Null:
Executed by:
  • tst_QAuthenticator
  • tst_QHttpSocketEngine
  • tst_Spdy
113
1128 return
executed 113 times by 3 tests: return QByteArray();
Executed by:
  • tst_QAuthenticator
  • tst_QHttpSocketEngine
  • tst_Spdy
QByteArray();
executed 113 times by 3 tests: return QByteArray();
Executed by:
  • tst_QAuthenticator
  • tst_QHttpSocketEngine
  • tst_Spdy
113
1129 case
executed 2791 times by 52 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkReply
  • tst_QIcon
  • tst_QLabel
  • ...
QContainerImplHelper::Empty:
executed 2791 times by 52 tests: case QContainerImplHelper::Empty:
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkReply
  • tst_QIcon
  • tst_QLabel
  • ...
2791
1130 {-
1131 QByteArrayDataPtr empty = { Data::allocate(0) };-
1132 return
executed 2791 times by 52 tests: return QByteArray(empty);
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkReply
  • tst_QIcon
  • tst_QLabel
  • ...
QByteArray(empty);
executed 2791 times by 52 tests: return QByteArray(empty);
Executed by:
  • tst_Collections
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkReply
  • tst_QIcon
  • tst_QLabel
  • ...
2791
1133 }-
1134 case
executed 65229 times by 32 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QMessageAuthenticationCode
  • tst_QMetaType
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QTimeZone
  • ...
QContainerImplHelper::Full:
executed 65229 times by 32 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QMessageAuthenticationCode
  • tst_QMetaType
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QTimeZone
  • ...
65229
1135 return
executed 65229 times by 32 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QMessageAuthenticationCode
  • tst_QMetaType
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QTimeZone
  • ...
*this;
executed 65229 times by 32 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QMessageAuthenticationCode
  • tst_QMetaType
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QTimeZone
  • ...
65229
1136 case
executed 843730 times by 116 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
QContainerImplHelper::Subset:
executed 843730 times by 116 tests: case QContainerImplHelper::Subset:
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
843730
1137 return
executed 843730 times by 116 tests: return QByteArray(d->data() + pos, len);
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
QByteArray(d->data() + pos, len);
executed 843730 times by 116 tests: return QByteArray(d->data() + pos, len);
Executed by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
843730
1138 }-
1139 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,2950) : qt_noop()); __builtin_unreachable(); } while (0);-
1140 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
1141}-
1142template <typename T>-
1143__attribute__((noinline))-
1144static QByteArray toCase_template(T &input, const uchar * table)-
1145{-
1146-
1147 const char *orig_begin = input.constBegin();-
1148 const char *firstBad = orig_begin;-
1149 const char *e = input.constEnd();-
1150 for ( ; firstBad != e
firstBad != eDescription
TRUEevaluated 424735 times by 165 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 49823 times by 112 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
; ++firstBad) {
49823-424735
1151 uchar ch = uchar(*firstBad);-
1152 uchar converted = table[ch];-
1153 if (ch != converted
ch != convertedDescription
TRUEevaluated 46309 times by 157 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
FALSEevaluated 378426 times by 65 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • ...
)
46309-378426
1154 break;
executed 46309 times by 157 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
46309
1155 }
executed 378426 times by 65 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • ...
378426
1156-
1157 if (firstBad == e
firstBad == eDescription
TRUEevaluated 49823 times by 112 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 46309 times by 157 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
)
46309-49823
1158 return
executed 49823 times by 112 tests: return std::move(input);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
std::move(input);
executed 49823 times by 112 tests: return std::move(input);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
49823
1159-
1160-
1161 QByteArray s = std::move(input);-
1162 char *b = s.begin();-
1163 char *p = b + (firstBad - orig_begin);-
1164 e = b + s.size();-
1165 for ( ; p != e
p != eDescription
TRUEevaluated 456777 times by 157 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
FALSEevaluated 46309 times by 157 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
; ++p) {
46309-456777
1166 *p = char(uchar(table[uchar(*p)]));-
1167 }
executed 456777 times by 157 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
456777
1168 return
executed 46309 times by 157 tests: return s;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
s;
executed 46309 times by 157 tests: return s;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
46309
1169}-
1170-
1171QByteArray QByteArray::toLower_helper(const QByteArray &a)-
1172{-
1173 return
executed 33740 times by 164 tests: return toCase_template(a, latin1_lowercased);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
toCase_template(a, latin1_lowercased);
executed 33740 times by 164 tests: return toCase_template(a, latin1_lowercased);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
33740
1174}-
1175-
1176QByteArray QByteArray::toLower_helper(QByteArray &a)-
1177{-
1178 return
executed 62155 times by 55 tests: return toCase_template(a, latin1_lowercased);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QByteArray
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
toCase_template(a, latin1_lowercased);
executed 62155 times by 55 tests: return toCase_template(a, latin1_lowercased);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QByteArray
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
62155
1179}-
1180QByteArray QByteArray::toUpper_helper(const QByteArray &a)-
1181{-
1182 return
executed 214 times by 3 tests: return toCase_template(a, latin1_uppercased);
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QUrlInternal
toCase_template(a, latin1_uppercased);
executed 214 times by 3 tests: return toCase_template(a, latin1_uppercased);
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QUrlInternal
214
1183}-
1184-
1185QByteArray QByteArray::toUpper_helper(QByteArray &a)-
1186{-
1187 return
executed 23 times by 2 tests: return toCase_template(a, latin1_uppercased);
Executed by:
  • tst_QByteArray
  • tst_QCryptographicHash
toCase_template(a, latin1_uppercased);
executed 23 times by 2 tests: return toCase_template(a, latin1_uppercased);
Executed by:
  • tst_QByteArray
  • tst_QCryptographicHash
23
1188}-
1189void QByteArray::clear()-
1190{-
1191 if (!d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 87623 times by 139 tests
Evaluated by:
  • tst_Collections
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFile
  • ...
FALSEevaluated 779393 times by 212 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
)
87623-779393
1192 Data::deallocate(d);
executed 87623 times by 139 tests: Data::deallocate(d);
Executed by:
  • tst_Collections
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFile
  • ...
87623
1193 d = Data::sharedNull();-
1194}
executed 867016 times by 231 tests: end of block
Executed by:
  • tst_Collections
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
867016
1195QDataStream &operator<<(QDataStream &out, const QByteArray &ba)-
1196{-
1197 if (ba.isNull()
ba.isNull()Description
TRUEevaluated 19 times by 5 tests
Evaluated by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
FALSEevaluated 799 times by 11 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QMetaObjectBuilder
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
&& out.version() >= 6
out.version() >= 6Description
TRUEevaluated 19 times by 5 tests
Evaluated by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
FALSEnever evaluated
) {
0-799
1198 out << (quint32)0xffffffff;-
1199 return
executed 19 times by 5 tests: return out;
Executed by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
out;
executed 19 times by 5 tests: return out;
Executed by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
19
1200 }-
1201 return
executed 799 times by 11 tests: return out.writeBytes(ba.constData(), ba.size());
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QMetaObjectBuilder
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
out.writeBytes(ba.constData(), ba.size());
executed 799 times by 11 tests: return out.writeBytes(ba.constData(), ba.size());
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QMetaObjectBuilder
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
799
1202}-
1203QDataStream &operator>>(QDataStream &in, QByteArray &ba)-
1204{-
1205 ba.clear();-
1206 quint32 len;-
1207 in >> len;-
1208 if (len == 0xffffffff
len == 0xffffffffDescription
TRUEevaluated 24 times by 5 tests
Evaluated by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
FALSEevaluated 946 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
)
24-946
1209 return
executed 24 times by 5 tests: return in;
Executed by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
in;
executed 24 times by 5 tests: return in;
Executed by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
24
1210-
1211 const quint32 Step = 1024 * 1024;-
1212 quint32 allocated = 0;-
1213-
1214 do {-
1215 int blockSize = qMin(Step, len - allocated);-
1216 ba.resize(allocated + blockSize);-
1217 if (in.readRawData(ba.data() + allocated, blockSize) != blockSize
in.readRawData...) != blockSizeDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QDataStream
FALSEevaluated 949 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
) {
11-949
1218 ba.clear();-
1219 in.setStatus(QDataStream::ReadPastEnd);-
1220 return
executed 11 times by 1 test: return in;
Executed by:
  • tst_QDataStream
in;
executed 11 times by 1 test: return in;
Executed by:
  • tst_QDataStream
11
1221 }-
1222 allocated += blockSize;-
1223 }
executed 949 times by 14 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
while (allocated < len
allocated < lenDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QDataStream
FALSEevaluated 935 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
);
14-949
1224-
1225 return
executed 935 times by 14 tests: return in;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
in;
executed 935 times by 14 tests: return in;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
935
1226}-
1227QByteArray QByteArray::simplified_helper(const QByteArray &a)-
1228{-
1229 return
executed 12089 times by 2 tests: return QStringAlgorithms<const QByteArray>::simplified_helper(a);
Executed by:
  • tst_QLogging
  • tst_QTcpSocket
QStringAlgorithms<const QByteArray>::simplified_helper(a);
executed 12089 times by 2 tests: return QStringAlgorithms<const QByteArray>::simplified_helper(a);
Executed by:
  • tst_QLogging
  • tst_QTcpSocket
12089
1230}-
1231-
1232QByteArray QByteArray::simplified_helper(QByteArray &a)-
1233{-
1234 return
executed 56120 times by 33 tests: return QStringAlgorithms<QByteArray>::simplified_helper(a);
Executed by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPrinter
  • tst_QRegion
  • tst_QSizeGrip
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolBar
  • ...
QStringAlgorithms<QByteArray>::simplified_helper(a);
executed 56120 times by 33 tests: return QStringAlgorithms<QByteArray>::simplified_helper(a);
Executed by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QPrinter
  • tst_QRegion
  • tst_QSizeGrip
  • tst_QStyle
  • tst_QSystemTrayIcon
  • tst_QToolBar
  • ...
56120
1235}-
1236QByteArray QByteArray::trimmed_helper(const QByteArray &a)-
1237{-
1238 return
executed 29586 times by 47 tests: return QStringAlgorithms<const QByteArray>::trimmed_helper(a);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataUrl
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QMimeData
  • ...
QStringAlgorithms<const QByteArray>::trimmed_helper(a);
executed 29586 times by 47 tests: return QStringAlgorithms<const QByteArray>::trimmed_helper(a);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataUrl
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QMetaType
  • tst_QMimeData
  • ...
29586
1239}-
1240-
1241QByteArray QByteArray::trimmed_helper(QByteArray &a)-
1242{-
1243 return
executed 88655 times by 52 tests: return QStringAlgorithms<QByteArray>::trimmed_helper(a);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • ...
QStringAlgorithms<QByteArray>::trimmed_helper(a);
executed 88655 times by 52 tests: return QStringAlgorithms<QByteArray>::trimmed_helper(a);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • ...
88655
1244}-
1245QByteArray QByteArray::leftJustified(int width, char fill, bool truncate) const-
1246{-
1247 QByteArray result;-
1248 int len = d->size;-
1249 int padlen = width - len;-
1250 if (padlen > 0
padlen > 0Description
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QByteArray
) {
8-13
1251 result.resize(len+padlen);-
1252 if (len
lenDescription
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
)
1-12
1253 memcpy(result.d->data(), d->data(), len);
executed 12 times by 2 tests: memcpy(result.d->data(), d->data(), len);
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
12
1254 memset(result.d->data()+len, fill, padlen);-
1255 }
executed 13 times by 2 tests: end of block
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
else {
13
1256 if (truncate
truncateDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
)
4
1257 result = left(width);
executed 4 times by 1 test: result = left(width);
Executed by:
  • tst_QByteArray
4
1258 else-
1259 result = *this;
executed 4 times by 1 test: result = *this;
Executed by:
  • tst_QByteArray
4
1260 }-
1261 return
executed 21 times by 2 tests: return result;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
result;
executed 21 times by 2 tests: return result;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
21
1262}-
1263QByteArray QByteArray::rightJustified(int width, char fill, bool truncate) const-
1264{-
1265 QByteArray result;-
1266 int len = d->size;-
1267 int padlen = width - len;-
1268 if (padlen > 0
padlen > 0Description
TRUEevaluated 3111 times by 10 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 4795 times by 10 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
) {
3111-4795
1269 result.resize(len+padlen);-
1270 if (len
lenDescription
TRUEevaluated 3110 times by 10 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
)
1-3110
1271 memcpy(result.d->data()+padlen, data(), len);
executed 3110 times by 10 tests: memcpy(result.d->data()+padlen, data(), len);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
3110
1272 memset(result.d->data(), fill, padlen);-
1273 }
executed 3111 times by 10 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
else {
3111
1274 if (truncate
truncateDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 4791 times by 10 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
)
4-4791
1275 result = left(width);
executed 4 times by 1 test: result = left(width);
Executed by:
  • tst_QByteArray
4
1276 else-
1277 result = *this;
executed 4791 times by 10 tests: result = *this;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
4791
1278 }-
1279 return
executed 7906 times by 10 tests: return result;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
result;
executed 7906 times by 10 tests: return result;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
7906
1280}-
1281-
1282bool QByteArray::isNull() const { return
executed 710742 times by 428 tests: return d == QArrayData::sharedNull();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
d == QArrayData::sharedNull();
executed 710742 times by 428 tests: return d == QArrayData::sharedNull();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • ...
}
710742
1283-
1284static qlonglong toIntegral_helper(const char *data, bool *ok, int base, qlonglong)-
1285{-
1286 return
executed 197674 times by 50 tests: return QLocaleData::bytearrayToLongLong(data, base, ok);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QLockFile
  • tst_QMdiArea
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • ...
QLocaleData::bytearrayToLongLong(data, base, ok);
executed 197674 times by 50 tests: return QLocaleData::bytearrayToLongLong(data, base, ok);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QLockFile
  • tst_QMdiArea
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • ...
197674
1287}-
1288-
1289static qulonglong toIntegral_helper(const char *data, bool *ok, int base, qulonglong)-
1290{-
1291 return
executed 8584 times by 22 tests: return QLocaleData::bytearrayToUnsLongLong(data, base, ok);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
QLocaleData::bytearrayToUnsLongLong(data, base, ok);
executed 8584 times by 22 tests: return QLocaleData::bytearrayToUnsLongLong(data, base, ok);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
8584
1292}-
1293-
1294template <typename T> static inline-
1295T toIntegral_helper(const char *data, bool *ok, int base)-
1296{-
1297-
1298 const bool isUnsigned = T(0) < T(-1);-
1299 typedef typename QtPrivate::QConditional<isUnsigned, qulonglong, qlonglong>::Type Int64;-
1300 Int64 val = toIntegral_helper(data, ok, base, Int64());-
1301 if (T(val) != val
T(val) != valDescription
TRUEnever evaluated
FALSEevaluated 206258 times by 56 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QLockFile
  • tst_QMdiArea
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
) {
0-206258
1302 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1303 *
never executed: *ok = false;
ok = false;
never executed: *ok = false;
0
1304 val = 0;-
1305 }
never executed: end of block
0
1306 return
executed 206258 times by 56 tests: return T(val);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QLockFile
  • tst_QMdiArea
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
T(val);
executed 206258 times by 56 tests: return T(val);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QLockFile
  • tst_QMdiArea
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
206258
1307}-
1308qlonglong QByteArray::toLongLong(bool *ok, int base) const-
1309{-
1310 return
executed 669 times by 10 tests: return toIntegral_helper<qlonglong>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QLockFile
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QProcess
  • tst_QVariant
  • tst_Spdy
toIntegral_helper<qlonglong>(nulTerminated().constData(), ok, base);
executed 669 times by 10 tests: return toIntegral_helper<qlonglong>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QLockFile
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QProcess
  • tst_QVariant
  • tst_Spdy
669
1311}-
1312qulonglong QByteArray::toULongLong(bool *ok, int base) const-
1313{-
1314 return
executed 7862 times by 16 tests: return toIntegral_helper<qulonglong>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
toIntegral_helper<qulonglong>(nulTerminated().constData(), ok, base);
executed 7862 times by 16 tests: return toIntegral_helper<qulonglong>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
7862
1315}-
1316int QByteArray::toInt(bool *ok, int base) const-
1317{-
1318 return
executed 196742 times by 46 tests: return toIntegral_helper<int>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMdiArea
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • ...
toIntegral_helper<int>(nulTerminated().constData(), ok, base);
executed 196742 times by 46 tests: return toIntegral_helper<int>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMdiArea
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • ...
196742
1319}-
1320uint QByteArray::toUInt(bool *ok, int base) const-
1321{-
1322 return
executed 712 times by 6 tests: return toIntegral_helper<uint>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QAsn1Element
  • tst_QMimeDatabase
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
toIntegral_helper<uint>(nulTerminated().constData(), ok, base);
executed 712 times by 6 tests: return toIntegral_helper<uint>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QAsn1Element
  • tst_QMimeDatabase
  • tst_qdbusabstractadaptor - unknown status
  • tst_qlogging - unknown status
  • tst_qprocess - unknown status
  • tst_qsystemsemaphore - unknown status
712
1323}-
1324long QByteArray::toLong(bool *ok, int base) const-
1325{-
1326 return
executed 263 times by 4 tests: return toIntegral_helper<long>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_Spdy
toIntegral_helper<long>(nulTerminated().constData(), ok, base);
executed 263 times by 4 tests: return toIntegral_helper<long>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_Spdy
263
1327}-
1328ulong QByteArray::toULong(bool *ok, int base) const-
1329{-
1330 return
executed 10 times by 1 test: return toIntegral_helper<ulong>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QByteArray
toIntegral_helper<ulong>(nulTerminated().constData(), ok, base);
executed 10 times by 1 test: return toIntegral_helper<ulong>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QByteArray
10
1331}-
1332short QByteArray::toShort(bool *ok, int base) const-
1333{-
1334 return
never executed: return toIntegral_helper<short>(nulTerminated().constData(), ok, base);
toIntegral_helper<short>(nulTerminated().constData(), ok, base);
never executed: return toIntegral_helper<short>(nulTerminated().constData(), ok, base);
0
1335}-
1336ushort QByteArray::toUShort(bool *ok, int base) const-
1337{-
1338 return
never executed: return toIntegral_helper<ushort>(nulTerminated().constData(), ok, base);
toIntegral_helper<ushort>(nulTerminated().constData(), ok, base);
never executed: return toIntegral_helper<ushort>(nulTerminated().constData(), ok, base);
0
1339}-
1340double QByteArray::toDouble(bool *ok) const-
1341{-
1342 QByteArray nulled = nulTerminated();-
1343 bool nonNullOk = false;-
1344 int processed = 0;-
1345 double d = asciiToDouble(nulled.constData(), nulled.length(), nonNullOk, processed);-
1346 if (ok
okDescription
TRUEevaluated 184 times by 3 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QPrinter
  • tst_QVariant
FALSEnever evaluated
)
0-184
1347 *
executed 184 times by 3 tests: *ok = nonNullOk;
Executed by:
  • tst_QDoubleValidator
  • tst_QPrinter
  • tst_QVariant
ok = nonNullOk;
executed 184 times by 3 tests: *ok = nonNullOk;
Executed by:
  • tst_QDoubleValidator
  • tst_QPrinter
  • tst_QVariant
184
1348 return
executed 184 times by 3 tests: return d;
Executed by:
  • tst_QDoubleValidator
  • tst_QPrinter
  • tst_QVariant
d;
executed 184 times by 3 tests: return d;
Executed by:
  • tst_QDoubleValidator
  • tst_QPrinter
  • tst_QVariant
184
1349}-
1350float QByteArray::toFloat(bool *ok) const-
1351{-
1352 return
executed 3 times by 1 test: return QLocaleData::convertDoubleToFloat(toDouble(ok), ok);
Executed by:
  • tst_QVariant
QLocaleData::convertDoubleToFloat(toDouble(ok), ok);
executed 3 times by 1 test: return QLocaleData::convertDoubleToFloat(toDouble(ok), ok);
Executed by:
  • tst_QVariant
3
1353}-
1354QByteArray QByteArray::toBase64() const-
1355{-
1356 return
executed 752 times by 13 tests: return toBase64(Base64Encoding);
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
toBase64(Base64Encoding);
executed 752 times by 13 tests: return toBase64(Base64Encoding);
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
752
1357}-
1358QByteArray QByteArray::toBase64(Base64Options options) const-
1359{-
1360 const char alphabet_base64[] = "ABCDEFGH" "IJKLMNOP" "QRSTUVWX" "YZabcdef"-
1361 "ghijklmn" "opqrstuv" "wxyz0123" "456789+/";-
1362 const char alphabet_base64url[] = "ABCDEFGH" "IJKLMNOP" "QRSTUVWX" "YZabcdef"-
1363 "ghijklmn" "opqrstuv" "wxyz0123" "456789-_";-
1364 const char *const alphabet = options & Base64UrlEncoding
options & Base64UrlEncodingDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 788 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
? alphabet_base64url : alphabet_base64;
36-788
1365 const char padchar = '=';-
1366 int padlen = 0;-
1367-
1368 QByteArray tmp((d->size + 2) / 3 * 4, Qt::Uninitialized);-
1369-
1370 int i = 0;-
1371 char *out = tmp.data();-
1372 while (i < d->size
i < d->sizeDescription
TRUEevaluated 746931 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 824 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
) {
824-746931
1373-
1374 int chunk = 0;-
1375 chunk |= int(uchar(d->data()[i++])) << 16;-
1376 if (i == d->size
i == d->sizeDescription
TRUEevaluated 426 times by 12 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 746505 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
) {
426-746505
1377 padlen = 2;-
1378 }
executed 426 times by 12 tests: end of block
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
else {
426
1379 chunk |= int(uchar(d->data()[i++])) << 8;-
1380 if (i == d->size
i == d->sizeDescription
TRUEevaluated 246 times by 7 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
FALSEevaluated 746259 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
)
246-746259
1381 padlen = 1;
executed 246 times by 7 tests: padlen = 1;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
246
1382 else-
1383 chunk |= int(uchar(data()[i++]));
executed 746259 times by 13 tests: chunk |= int(uchar(data()[i++]));
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
746259
1384 }-
1385-
1386 int j = (chunk & 0x00fc0000) >> 18;-
1387 int k = (chunk & 0x0003f000) >> 12;-
1388 int l = (chunk & 0x00000fc0) >> 6;-
1389 int m = (chunk & 0x0000003f);-
1390 *out++ = alphabet[j];-
1391 *out++ = alphabet[k];-
1392-
1393 if (padlen > 1
padlen > 1Description
TRUEevaluated 426 times by 12 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 746505 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
) {
426-746505
1394 if ((
(options & Omi...ngEquals) == 0Description
TRUEevaluated 412 times by 12 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QByteArray
options & OmitTrailingEquals) == 0
(options & Omi...ngEquals) == 0Description
TRUEevaluated 412 times by 12 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QByteArray
)
14-412
1395 *
executed 412 times by 12 tests: *out++ = padchar;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
out++ = padchar;
executed 412 times by 12 tests: *out++ = padchar;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
412
1396 }
executed 426 times by 12 tests: end of block
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
else {
426
1397 *out++ = alphabet[l];-
1398 }
executed 746505 times by 13 tests: end of block
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
746505
1399 if (padlen > 0
padlen > 0Description
TRUEevaluated 672 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 746259 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
) {
672-746259
1400 if ((
(options & Omi...ngEquals) == 0Description
TRUEevaluated 646 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 26 times by 1 test
Evaluated by:
  • tst_QByteArray
options & OmitTrailingEquals) == 0
(options & Omi...ngEquals) == 0Description
TRUEevaluated 646 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 26 times by 1 test
Evaluated by:
  • tst_QByteArray
)
26-646
1401 *
executed 646 times by 13 tests: *out++ = padchar;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
out++ = padchar;
executed 646 times by 13 tests: *out++ = padchar;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
646
1402 }
executed 672 times by 13 tests: end of block
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
else {
672
1403 *out++ = alphabet[m];-
1404 }
executed 746259 times by 13 tests: end of block
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
746259
1405 }-
1406 ((!((options & OmitTrailingEquals) || (out == tmp.size() + tmp.data()))) ? qt_assert("(options & OmitTrailingEquals) || (out == tmp.size() + tmp.data())",__FILE__,3899) : qt_noop());-
1407 if (options & OmitTrailingEquals
options & OmitTrailingEqualsDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 788 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
)
36-788
1408 tmp.truncate(out - tmp.data());
executed 36 times by 1 test: tmp.truncate(out - tmp.data());
Executed by:
  • tst_QByteArray
36
1409 return
executed 824 times by 13 tests: return tmp;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
tmp;
executed 824 times by 13 tests: return tmp;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
824
1410}-
1411static char *qulltoa2(char *p, qulonglong n, int base)-
1412{-
1413-
1414-
1415-
1416-
1417-
1418-
1419 const char b = 'a' - 10;-
1420 do {-
1421 const int c = n % base;-
1422 n /= base;-
1423 *--p = c + (c < 10
c < 10Description
TRUEevaluated 2544906 times by 130 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • ...
FALSEevaluated 36849 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAlgorithms
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QChar
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSettings
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextEdit
  • ...
? '0' : b);
36849-2544906
1424 }
executed 2581755 times by 130 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • ...
while (n
nDescription
TRUEevaluated 2057604 times by 109 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • ...
FALSEevaluated 524151 times by 130 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • ...
);
524151-2581755
1425-
1426 return
executed 524151 times by 130 tests: return p;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • ...
p;
executed 524151 times by 130 tests: return p;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • ...
524151
1427}-
1428-
1429-
1430-
1431-
1432-
1433-
1434QByteArray &QByteArray::setNum(qlonglong n, int base)-
1435{-
1436 const int buffsize = 66;-
1437 char buff[buffsize];-
1438 char *p;-
1439-
1440 if (n < 0
n < 0Description
TRUEevaluated 1846 times by 12 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDataStream
  • tst_QGetPutEnv
  • tst_QGraphicsGridLayout
  • tst_QGraphicsLinearLayout
  • tst_QLineEdit
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPainterPath
  • tst_QVariant
FALSEevaluated 499468 times by 124 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
&& base == 10
base == 10Description
TRUEevaluated 1657 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDataStream
  • tst_QGetPutEnv
  • tst_QGraphicsGridLayout
  • tst_QGraphicsLinearLayout
  • tst_QLineEdit
  • tst_QPainterPath
  • tst_QVariant
FALSEevaluated 189 times by 4 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
) {
189-499468
1441 p = qulltoa2(buff + buffsize, qulonglong(-(1 + n)) + 1, base);-
1442 *--p = '-';-
1443 }
executed 1657 times by 9 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDataStream
  • tst_QGetPutEnv
  • tst_QGraphicsGridLayout
  • tst_QGraphicsLinearLayout
  • tst_QLineEdit
  • tst_QPainterPath
  • tst_QVariant
else {
1657
1444 p = qulltoa2(buff + buffsize, qulonglong(n), base);-
1445 }
executed 499657 times by 124 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
499657
1446-
1447 clear();-
1448 append(p, buffsize - (p - buff));-
1449 return
executed 501314 times by 124 tests: return *this;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
*this;
executed 501314 times by 124 tests: return *this;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
501314
1450}-
1451-
1452-
1453-
1454-
1455-
1456-
1457-
1458QByteArray &QByteArray::setNum(qulonglong n, int base)-
1459{-
1460 const int buffsize = 66;-
1461 char buff[buffsize];-
1462 char *p = qulltoa2(buff + buffsize, n, base);-
1463-
1464 clear();-
1465 append(p, buffsize - (p - buff));-
1466 return
executed 22837 times by 35 tests: return *this;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAlgorithms
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QChar
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMetaType
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSettings
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • ...
*this;
executed 22837 times by 35 tests: return *this;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAlgorithms
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QChar
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMetaType
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSettings
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • ...
22837
1467}-
1468QByteArray &QByteArray::setNum(double n, char f, int prec)-
1469{-
1470 QLocaleData::DoubleForm form = QLocaleData::DFDecimal;-
1471 uint flags = QLocaleData::ZeroPadExponent;-
1472-
1473 if (qIsUpper(f)
qIsUpper(f)Description
TRUEnever evaluated
FALSEevaluated 265 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
)
0-265
1474 flags |= QLocaleData::CapitalEorX;
never executed: flags |= QLocaleData::CapitalEorX;
0
1475 f = qToLower(f);-
1476-
1477 switch (f) {-
1478 case
never executed: case 'f':
'f':
never executed: case 'f':
0
1479 form = QLocaleData::DFDecimal;-
1480 break;
never executed: break;
0
1481 case
never executed: case 'e':
'e':
never executed: case 'e':
0
1482 form = QLocaleData::DFExponent;-
1483 break;
never executed: break;
0
1484 case
executed 265 times by 4 tests: case 'g':
Executed by:
  • tst_QByteArray
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
'g':
executed 265 times by 4 tests: case 'g':
Executed by:
  • tst_QByteArray
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
265
1485 form = QLocaleData::DFSignificantDigits;-
1486 break;
executed 265 times by 4 tests: break;
Executed by:
  • tst_QByteArray
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
265
1487 default
never executed: default:
:
never executed: default:
0
1488-
1489-
1490-
1491 break;
never executed: break;
0
1492 }-
1493-
1494 *this = QLocaleData::c()->doubleToString(n, prec, form, -1, flags).toLatin1();-
1495 return
executed 265 times by 4 tests: return *this;
Executed by:
  • tst_QByteArray
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
*this;
executed 265 times by 4 tests: return *this;
Executed by:
  • tst_QByteArray
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
265
1496}-
1497QByteArray QByteArray::number(int n, int base)-
1498{-
1499 QByteArray s;-
1500 s.setNum(n, base);-
1501 return
executed 509754 times by 121 tests: return s;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
s;
executed 509754 times by 121 tests: return s;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • ...
509754
1502}-
1503-
1504-
1505-
1506-
1507-
1508-
1509QByteArray QByteArray::number(uint n, int base)-
1510{-
1511 QByteArray s;-
1512 s.setNum(n, base);-
1513 return
executed 8621 times by 9 tests: return s;
Executed by:
  • tst_QAsn1Element
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_languageChange
s;
executed 8621 times by 9 tests: return s;
Executed by:
  • tst_QAsn1Element
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_languageChange
8621
1514}-
1515-
1516-
1517-
1518-
1519-
1520-
1521QByteArray QByteArray::number(qlonglong n, int base)-
1522{-
1523 QByteArray s;-
1524 s.setNum(n, base);-
1525 return
executed 1421 times by 21 tests: return s;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGetPutEnv
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QLockFile
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qlockfile - unknown status
  • tst_qmessagehandler
s;
executed 1421 times by 21 tests: return s;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGetPutEnv
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QLockFile
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qlockfile - unknown status
  • tst_qmessagehandler
1421
1526}-
1527-
1528-
1529-
1530-
1531-
1532-
1533QByteArray QByteArray::number(qulonglong n, int base)-
1534{-
1535 QByteArray s;-
1536 s.setNum(n, base);-
1537 return
executed 4332 times by 5 tests: return s;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QMetaType
  • tst_QVariant
s;
executed 4332 times by 5 tests: return s;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QMetaType
  • tst_QVariant
4332
1538}-
1539QByteArray QByteArray::number(double n, char f, int prec)-
1540{-
1541 QByteArray s;-
1542 s.setNum(n, f, prec);-
1543 return
executed 262 times by 3 tests: return s;
Executed by:
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
s;
executed 262 times by 3 tests: return s;
Executed by:
  • tst_QPainter
  • tst_QVariant
  • tst_selftests - unknown status
262
1544}-
1545QByteArray QByteArray::fromRawData(const char *data, int size)-
1546{-
1547 Data *x;-
1548 if (!data
!dataDescription
TRUEnever evaluated
FALSEevaluated 1429444 times by 538 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) {
0-1429444
1549 x = Data::sharedNull();-
1550 }
never executed: end of block
else if (!size
!sizeDescription
TRUEevaluated 19 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QImage
  • tst_QNetworkReply
  • tst_Spdy
FALSEevaluated 1429425 times by 538 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) {
0-1429425
1551 x = Data::allocate(0);-
1552 }
executed 19 times by 4 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QImage
  • tst_QNetworkReply
  • tst_Spdy
else {
19
1553 x = Data::fromRawData(data, size);-
1554 do { if (!(x)
!(x)Description
TRUEnever evaluated
FALSEevaluated 1429425 times by 538 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-1429425
1555 }
executed 1429262 times by 538 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1429262
1556 QByteArrayDataPtr dataPtr = { x };-
1557 return
executed 1429444 times by 538 tests: return QByteArray(dataPtr);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
QByteArray(dataPtr);
executed 1429444 times by 538 tests: return QByteArray(dataPtr);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1429444
1558}-
1559QByteArray &QByteArray::setRawData(const char *data, uint size)-
1560{-
1561 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
FALSEevaluated 63 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
|| d->alloc
d->allocDescription
TRUEnever evaluated
FALSEevaluated 63 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
) {
0-63
1562 *this = fromRawData(data, size);-
1563 }
executed 9 times by 3 tests: end of block
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
else {
9
1564 if (data
dataDescription
TRUEevaluated 63 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
FALSEnever evaluated
) {
0-63
1565 d->size = size;-
1566 d->offset = data - reinterpret_cast<char *>(d);-
1567 }
executed 63 times by 3 tests: end of block
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
else {
63
1568 d->offset = sizeof(QByteArrayData);-
1569 d->size = 0;-
1570 *d->data() = 0;-
1571 }
never executed: end of block
0
1572 }-
1573 return
executed 72 times by 3 tests: return *this;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
*this;
executed 72 times by 3 tests: return *this;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
72
1574}-
1575QByteArray QByteArray::fromBase64(const QByteArray &base64)-
1576{-
1577 return
executed 20618 times by 12 tests: return fromBase64(base64, Base64Encoding);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
fromBase64(base64, Base64Encoding);
executed 20618 times by 12 tests: return fromBase64(base64, Base64Encoding);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
20618
1578}-
1579QByteArray QByteArray::fromBase64(const QByteArray &base64, Base64Options options)-
1580{-
1581 unsigned int buf = 0;-
1582 int nbits = 0;-
1583 QByteArray tmp((base64.size() * 3) / 4, Qt::Uninitialized);-
1584-
1585 int offset = 0;-
1586 for (int i = 0; i < base64.size()
i < base64.size()Description
TRUEevaluated 32617667 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 20656 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
; ++i) {
20656-32617667
1587 int ch = base64.at(i);-
1588 int d;-
1589-
1590 if (ch >= 'A'
ch >= 'A'Description
TRUEevaluated 27612786 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 5004881 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
&& ch <= 'Z'
ch <= 'Z'Description
TRUEevaluated 16157894 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 11454892 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
)
5004881-27612786
1591 d = ch - 'A';
executed 16157894 times by 12 tests: d = ch - 'A';
Executed by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
16157894
1592 else if (ch >= 'a'
ch >= 'a'Description
TRUEevaluated 11454882 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 5004891 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
&& ch <= 'z'
ch <= 'z'Description
TRUEevaluated 11454882 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEnever evaluated
)
0-11454882
1593 d = ch - 'a' + 26;
executed 11454882 times by 12 tests: d = ch - 'a' + 26;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
11454882
1594 else if (ch >= '0'
ch >= '0'Description
TRUEevaluated 3933414 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 1071477 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
&& ch <= '9'
ch <= '9'Description
TRUEevaluated 3914698 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 18716 times by 8 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
)
18716-3933414
1595 d = ch - '0' + 52;
executed 3914698 times by 12 tests: d = ch - '0' + 52;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
3914698
1596 else if (ch == '+'
ch == '+'Description
TRUEevaluated 282779 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 807414 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
&& (
(options & Bas...Encoding) == 0Description
TRUEevaluated 282773 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
options & Base64UrlEncoding) == 0
(options & Bas...Encoding) == 0Description
TRUEevaluated 282773 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
)
6-807414
1597 d = 62;
executed 282773 times by 11 tests: d = 62;
Executed by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
282773
1598 else if (ch == '-'
ch == '-'Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 807408 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
&& (
(options & Bas...Encoding) != 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
options & Base64UrlEncoding) != 0
(options & Bas...Encoding) != 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
)
6-807408
1599 d = 62;
executed 6 times by 1 test: d = 62;
Executed by:
  • tst_QByteArray
6
1600 else if (ch == '/'
ch == '/'Description
TRUEevaluated 322304 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 485110 times by 8 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
&& (
(options & Bas...Encoding) == 0Description
TRUEevaluated 322299 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
options & Base64UrlEncoding) == 0
(options & Bas...Encoding) == 0Description
TRUEevaluated 322299 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
)
5-485110
1601 d = 63;
executed 322299 times by 11 tests: d = 63;
Executed by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
322299
1602 else if (ch == '_'
ch == '_'Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 485105 times by 8 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
&& (
(options & Bas...Encoding) != 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
options & Base64UrlEncoding) != 0
(options & Bas...Encoding) != 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
)
5-485105
1603 d = 63;
executed 5 times by 1 test: d = 63;
Executed by:
  • tst_QByteArray
5
1604 else-
1605 d = -1;
executed 485110 times by 8 tests: d = -1;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
485110
1606-
1607 if (d != -1
d != -1Description
TRUEevaluated 32132557 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 485110 times by 8 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
) {
485110-32132557
1608 buf = (buf << 6) | d;-
1609 nbits += 6;-
1610 if (nbits >= 8
nbits >= 8Description
TRUEevaluated 24094738 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 8037819 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
) {
8037819-24094738
1611 nbits -= 8;-
1612 tmp[offset++] = buf >> nbits;-
1613 buf &= (1 << nbits) - 1;-
1614 }
executed 24094738 times by 12 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
24094738
1615 }
executed 32132557 times by 12 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
32132557
1616 }
executed 32617667 times by 12 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
32617667
1617-
1618 tmp.truncate(offset);-
1619 return
executed 20656 times by 12 tests: return tmp;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
tmp;
executed 20656 times by 12 tests: return tmp;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
20656
1620}-
1621QByteArray QByteArray::fromHex(const QByteArray &hexEncoded)-
1622{-
1623 QByteArray res((hexEncoded.size() + 1)/ 2, Qt::Uninitialized);-
1624 uchar *result = (uchar *)res.data() + res.size();-
1625-
1626 bool odd_digit = true;-
1627 for (int i = hexEncoded.size() - 1; i >= 0
i >= 0Description
TRUEevaluated 9924 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
FALSEevaluated 180 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
; --i) {
180-9924
1628 uchar ch = uchar(hexEncoded.at(i));-
1629 int tmp = QtMiscUtils::fromHex(ch);-
1630 if (tmp == -1
tmp == -1Description
TRUEevaluated 1031 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QSslCertificate
FALSEevaluated 8893 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
)
1031-8893
1631 continue;
executed 1031 times by 2 tests: continue;
Executed by:
  • tst_QByteArray
  • tst_QSslCertificate
1031
1632 if (odd_digit
odd_digitDescription
TRUEevaluated 4449 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
FALSEevaluated 4444 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
) {
4444-4449
1633 --result;-
1634 *result = tmp;-
1635 odd_digit = false;-
1636 }
executed 4449 times by 11 tests: end of block
Executed by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
else {
4449
1637 *result |= tmp << 4;-
1638 odd_digit = true;-
1639 }
executed 4444 times by 11 tests: end of block
Executed by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
4444
1640 }-
1641-
1642 res.remove(0, result - (const uchar *)res.constData());-
1643 return
executed 180 times by 11 tests: return res;
Executed by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
res;
executed 180 times by 11 tests: return res;
Executed by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
180
1644}-
1645-
1646-
1647-
1648-
1649-
1650-
1651-
1652QByteArray QByteArray::toHex() const-
1653{-
1654 QByteArray hex(d->size * 2, Qt::Uninitialized);-
1655 char *hexData = hex.data();-
1656 const uchar *data = (const uchar *)d->data();-
1657 for (int i = 0; i < d->size
i < d->sizeDescription
TRUEevaluated 197289 times by 26 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QDBusInterface
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSharedMemory
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • tst_QSystemSemaphore
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • ...
FALSEevaluated 10238 times by 26 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QDBusInterface
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSharedMemory
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • tst_QSystemSemaphore
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • ...
; ++i) {
10238-197289
1658 hexData[i*2] = QtMiscUtils::toHexLower(data[i] >> 4);-
1659 hexData[i*2+1] = QtMiscUtils::toHexLower(data[i] & 0xf);-
1660 }
executed 197289 times by 26 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QDBusInterface
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSharedMemory
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • tst_QSystemSemaphore
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • ...
197289
1661 return
executed 10238 times by 26 tests: return hex;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QDBusInterface
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSharedMemory
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • tst_QSystemSemaphore
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • ...
hex;
executed 10238 times by 26 tests: return hex;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QDBusInterface
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSharedMemory
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • tst_QSystemSemaphore
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • ...
10238
1662}-
1663-
1664static void q_fromPercentEncoding(QByteArray *ba, char percent)-
1665{-
1666 if (ba->isEmpty()
ba->isEmpty()Description
TRUEnever evaluated
FALSEevaluated 84 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
)
0-84
1667 return;
never executed: return;
0
1668-
1669 char *data = ba->data();-
1670 const char *inputPtr = data;-
1671-
1672 int i = 0;-
1673 int len = ba->count();-
1674 int outlen = 0;-
1675 int a, b;-
1676 char c;-
1677 while (i < len
i < lenDescription
TRUEevaluated 1998 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 84 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
) {
84-1998
1678 c = inputPtr[i];-
1679 if (c == percent
c == percentDescription
TRUEevaluated 196 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 1802 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
&& i + 2 < len
i + 2 < lenDescription
TRUEevaluated 196 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEnever evaluated
) {
0-1802
1680 a = inputPtr[++i];-
1681 b = inputPtr[++i];-
1682-
1683 if (a >= '0'
a >= '0'Description
TRUEevaluated 196 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEnever evaluated
&& a <= '9'
a <= '9'Description
TRUEevaluated 189 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 7 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
) a -= '0';
executed 189 times by 5 tests: a -= '0';
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
0-196
1684 else if (a >= 'a'
a >= 'a'Description
TRUEnever evaluated
FALSEevaluated 7 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
&& a <= 'f'
a <= 'f'Description
TRUEnever evaluated
FALSEnever evaluated
) a = a - 'a' + 10;
never executed: a = a - 'a' + 10;
0-7
1685 else if (a >= 'A'
a >= 'A'Description
TRUEevaluated 7 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
FALSEnever evaluated
&& a <= 'F'
a <= 'F'Description
TRUEevaluated 7 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
FALSEnever evaluated
) a = a - 'A' + 10;
executed 7 times by 4 tests: a = a - 'A' + 10;
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
0-7
1686-
1687 if (b >= '0'
b >= '0'Description
TRUEevaluated 196 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEnever evaluated
&& b <= '9'
b <= '9'Description
TRUEevaluated 126 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 70 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
) b -= '0';
executed 126 times by 5 tests: b -= '0';
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
0-196
1688 else if (b >= 'a'
b >= 'a'Description
TRUEnever evaluated
FALSEevaluated 70 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
&& b <= 'f'
b <= 'f'Description
TRUEnever evaluated
FALSEnever evaluated
) b = b - 'a' + 10;
never executed: b = b - 'a' + 10;
0-70
1689 else if (b >= 'A'
b >= 'A'Description
TRUEevaluated 70 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
FALSEnever evaluated
&& b <= 'F'
b <= 'F'Description
TRUEevaluated 70 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
FALSEnever evaluated
) b = b - 'A' + 10;
executed 70 times by 4 tests: b = b - 'A' + 10;
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
0-70
1690-
1691 *data++ = (char)((a << 4) | b);-
1692 }
executed 196 times by 5 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
else {
196
1693 *data++ = c;-
1694 }
executed 1802 times by 5 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
1802
1695-
1696 ++i;-
1697 ++outlen;-
1698 }
executed 1998 times by 5 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
1998
1699-
1700 if (outlen != len
outlen != lenDescription
TRUEevaluated 58 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 26 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
)
26-58
1701 ba->truncate(outlen);
executed 58 times by 5 tests: ba->truncate(outlen);
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
58
1702}
executed 84 times by 5 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
84
1703-
1704void q_fromPercentEncoding(QByteArray *ba)-
1705{-
1706 q_fromPercentEncoding(ba, '%');-
1707}
never executed: end of block
0
1708QByteArray QByteArray::fromPercentEncoding(const QByteArray &input, char percent)-
1709{-
1710 if (input.isNull()
input.isNull()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 89 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
)
2-89
1711 return
executed 2 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
QByteArray();
executed 2 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
2
1712 if (input.isEmpty()
input.isEmpty()Description
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 84 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
)
5-84
1713 return
executed 5 times by 3 tests: return QByteArray(input.data(), 0);
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
QByteArray(input.data(), 0);
executed 5 times by 3 tests: return QByteArray(input.data(), 0);
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
5
1714-
1715 QByteArray tmp = input;-
1716 q_fromPercentEncoding(&tmp, percent);-
1717 return
executed 84 times by 5 tests: return tmp;
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
tmp;
executed 84 times by 5 tests: return tmp;
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
84
1718}-
1719static inline bool q_strchr(const char str[], char chr)-
1720{-
1721 if (!str
!strDescription
TRUEnever evaluated
FALSEevaluated 826 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
) return
never executed: return false;
false;
never executed: return false;
0-826
1722-
1723 const char *ptr = str;-
1724 char c;-
1725 while ((
(c = *ptr++)Description
TRUEevaluated 516 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 777 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
c = *ptr++)
(c = *ptr++)Description
TRUEevaluated 516 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 777 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
516-777
1726 if (c == chr
c == chrDescription
TRUEevaluated 49 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 467 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
)
49-467
1727 return
executed 49 times by 2 tests: return true;
Executed by:
  • tst_QByteArray
  • tst_QUrl
true;
executed 49 times by 2 tests: return true;
Executed by:
  • tst_QByteArray
  • tst_QUrl
49
1728 return
executed 777 times by 3 tests: return false;
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
false;
executed 777 times by 3 tests: return false;
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
777
1729}-
1730-
1731static void q_toPercentEncoding(QByteArray *ba, const char *dontEncode, const char *alsoEncode, char percent)-
1732{-
1733 if (ba->isEmpty()
ba->isEmpty()Description
TRUEnever evaluated
FALSEevaluated 124 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
0-124
1734 return;
never executed: return;
0
1735-
1736 QByteArray input = *ba;-
1737 int len = input.count();-
1738 const char *inputData = input.constData();-
1739 char *output = 0;-
1740 int length = 0;-
1741-
1742 for (int i = 0; i < len
i < lenDescription
TRUEevaluated 793 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 124 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
; ++i) {
124-793
1743 unsigned char c = *inputData++;-
1744 if (((c >= 0x61
c >= 0x61Description
TRUEevaluated 578 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 215 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
&& c <= 0x7A
c <= 0x7ADescription
TRUEevaluated 203 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 375 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
203-578
1745 || (c >= 0x41
c >= 0x41Description
TRUEevaluated 448 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 142 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
&& c <= 0x5A
c <= 0x5ADescription
TRUEevaluated 61 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 387 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
61-448
1746 || (c >= 0x30
c >= 0x30Description
TRUEevaluated 433 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 96 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
&& c <= 0x39
c <= 0x39Description
TRUEevaluated 22 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 411 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
22-433
1747 || c == 0x2D
c == 0x2DDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 501 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
6-501
1748 || c == 0x2E
c == 0x2EDescription
TRUEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 492 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
9-492
1749 || c == 0x5F
c == 0x5FDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 490 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
2-490
1750 || c == 0x7E
c == 0x7EDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 488 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
2-488
1751 || q_strchr(dontEncode, c)
q_strchr(dontEncode, c)Description
TRUEevaluated 33 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 455 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
33-455
1752 && !q_strchr(alsoEncode, c)
!q_strchr(alsoEncode, c)Description
TRUEevaluated 322 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
) {
16-322
1753 if (output
outputDescription
TRUEevaluated 138 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 184 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
138-184
1754 output[length] = c;
executed 138 times by 3 tests: output[length] = c;
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
138
1755 ++length;-
1756 }
executed 322 times by 3 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
else {
322
1757 if (!output
!outputDescription
TRUEevaluated 120 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 351 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
) {
120-351
1758-
1759 ba->resize(len*3);-
1760 output = ba->data();-
1761 }
executed 120 times by 3 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
120
1762 output[length++] = percent;-
1763 output[length++] = QtMiscUtils::toHexUpper((c & 0xf0) >> 4);-
1764 output[length++] = QtMiscUtils::toHexUpper(c & 0xf);-
1765 }
executed 471 times by 3 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
471
1766 }-
1767 if (output
outputDescription
TRUEevaluated 120 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
)
4-120
1768 ba->truncate(length);
executed 120 times by 3 tests: ba->truncate(length);
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
120
1769}
executed 124 times by 3 tests: end of block
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
124
1770-
1771void q_toPercentEncoding(QByteArray *ba, const char *exclude, const char *include)-
1772{-
1773 q_toPercentEncoding(ba, exclude, include, '%');-
1774}
never executed: end of block
0
1775-
1776void q_normalizePercentEncoding(QByteArray *ba, const char *exclude)-
1777{-
1778 q_fromPercentEncoding(ba, '%');-
1779 q_toPercentEncoding(ba, exclude, 0, '%');-
1780}
never executed: end of block
0
1781QByteArray QByteArray::toPercentEncoding(const QByteArray &exclude, const QByteArray &include,-
1782 char percent) const-
1783{-
1784 if (isNull()
isNull()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 128 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
2-128
1785 return
executed 2 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
QByteArray();
executed 2 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
2
1786 if (isEmpty()
isEmpty()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 124 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
4-124
1787 return
executed 4 times by 2 tests: return QByteArray(data(), 0);
Executed by:
  • tst_QByteArray
  • tst_QUrl
QByteArray(data(), 0);
executed 4 times by 2 tests: return QByteArray(data(), 0);
Executed by:
  • tst_QByteArray
  • tst_QUrl
4
1788-
1789 QByteArray include2 = include;-
1790 if (percent != '%'
percent != '%'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 123 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
1-123
1791 if ((percent >= 0x61
percent >= 0x61Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
&& percent <= 0x7A
percent <= 0x7ADescription
TRUEnever evaluated
FALSEnever evaluated
)
0-1
1792 || (percent >= 0x41
percent >= 0x41Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEnever evaluated
&& percent <= 0x5A
percent <= 0x5ADescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEnever evaluated
)
0-1
1793 || (percent >= 0x30
percent >= 0x30Description
TRUEnever evaluated
FALSEnever evaluated
&& percent <= 0x39
percent <= 0x39Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1794 || percent == 0x2D
percent == 0x2DDescription
TRUEnever evaluated
FALSEnever evaluated
0
1795 || percent == 0x2E
percent == 0x2EDescription
TRUEnever evaluated
FALSEnever evaluated
0
1796 || percent == 0x5F
percent == 0x5FDescription
TRUEnever evaluated
FALSEnever evaluated
0
1797 || percent == 0x7E
percent == 0x7EDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1798 include2 += percent;
executed 1 time by 1 test: include2 += percent;
Executed by:
  • tst_QByteArray
1
1799-
1800 QByteArray result = *this;-
1801 q_toPercentEncoding(&result, exclude.nulTerminated().constData(), include2.nulTerminated().constData(), percent);-
1802-
1803 return
executed 124 times by 3 tests: return result;
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
result;
executed 124 times by 3 tests: return result;
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
124
1804}-
1805-
Switch to Source codePreprocessed file

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