Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | static 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 | }; | - |
29 | static 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 | | - |
48 | int qFindByteArray( | - |
49 | const char *haystack0, int haystackLen, int from, | - |
50 | const char *needle0, int needleLen); | - |
51 | size_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)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 114251311 times by 781 testsEvaluated 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 | returnexecuted 1 time by 1 test: return std::numeric_limits<size_t>::max(); std::numeric_limits<size_t>::max();executed 1 time by 1 test: return std::numeric_limits<size_t>::max(); | 1 |
62 | | - |
63 | unsigned bytes; | - |
64 | if (__builtin_expect(!!(mul_overflow(size, count, &bytes)), false)TRUE | evaluated 2 times by 1 test | FALSE | evaluated 114251309 times by 781 testsEvaluated 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)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 114251308 times by 781 testsEvaluated 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 | returnexecuted 3 times by 1 test: return std::numeric_limits<size_t>::max(); std::numeric_limits<size_t>::max();executed 3 times by 1 test: return std::numeric_limits<size_t>::max(); | 3 |
67 | if (__builtin_expect(!!(int(bytes) < 0), false)TRUE | evaluated 13 times by 1 test | FALSE | evaluated 114251295 times by 781 testsEvaluated 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 | returnexecuted 13 times by 1 test: return std::numeric_limits<size_t>::max(); std::numeric_limits<size_t>::max();executed 13 times by 1 test: return std::numeric_limits<size_t>::max(); | 13 |
69 | | - |
70 | returnexecuted 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 | } | - |
72 | CalculateGrowingBlockSizeResult | - |
73 | qCalculateGrowingBlockSize(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) < 0TRUE | evaluated 10 times by 1 test | FALSE | evaluated 30345637 times by 724 testsEvaluated 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 | returnexecuted 10 times by 1 test: return result; result;executed 10 times by 1 test: return result; | 10 |
82 | | - |
83 | unsigned morebytes = qNextPowerOfTwo(bytes); | - |
84 | if (__builtin_expect(!!(int(morebytes) < 0), false)TRUE | evaluated 444 times by 1 test | FALSE | evaluated 30345193 times by 724 testsEvaluated 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 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 | returnexecuted 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 | } | - |
96 | char *qstrdup(const char *src) | - |
97 | { | - |
98 | if (!srcTRUE | evaluated 17838 times by 24 testsEvaluated 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
| FALSE | evaluated 1122818 times by 382 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | } | - |
103 | char *qstrcpy(char *dst, const char *src) | - |
104 | { | - |
105 | if (!srcTRUE | evaluated 2 times by 1 test | FALSE | evaluated 1132743 times by 385 testsEvaluated 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 | returnexecuted 2 times by 1 test: return 0; 0;executed 2 times by 1 test: return 0; | 2 |
107 | returnexecuted 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 | } | - |
110 | char *qstrncpy(char *dst, const char *src, uint len) | - |
111 | { | - |
112 | if (!srcTRUE | evaluated 2 times by 1 test | FALSE | evaluated 202 times by 4 testsEvaluated by:- tst_QAuthenticator
- tst_QByteArray
- tst_QByteDataBuffer
- tst_selftests - unknown status
|
|| !dstTRUE | evaluated 2 times by 1 test | FALSE | evaluated 200 times by 4 testsEvaluated by:- tst_QAuthenticator
- tst_QByteArray
- tst_QByteDataBuffer
- tst_selftests - unknown status
|
) | 2-202 |
113 | returnexecuted 4 times by 1 test: return 0; 0;executed 4 times by 1 test: return 0; | 4 |
114 | if (len > 0TRUE | evaluated 199 times by 4 testsEvaluated by:- tst_QAuthenticator
- tst_QByteArray
- tst_QByteDataBuffer
- tst_selftests - unknown status
| FALSE | evaluated 1 time by 1 test |
) { | 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 | returnexecuted 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 | } | - |
124 | int qstrcmp(const char *str1, const char *str2) | - |
125 | { | - |
126 | returnexecuted 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 | } | - |
129 | int 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 (!s1TRUE | evaluated 2 times by 1 test | FALSE | evaluated 230779 times by 47 testsEvaluated 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
- ...
|
|| !s2TRUE | evaluated 1 time by 1 test | FALSE | evaluated 230778 times by 47 testsEvaluated 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 | returnexecuted 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0); s1 ? 1 : (s2 ? -1 : 0);executed 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0); | 3 |
137 | for (; !(res = (c = latin1_lowercased[*s1]) - latin1_lowercased[*s2])TRUE | evaluated 351902 times by 18 testsEvaluated 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
| FALSE | evaluated 215495 times by 47 testsEvaluated 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 (!cTRUE | evaluated 15283 times by 18 testsEvaluated 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
| FALSE | evaluated 336619 times by 18 testsEvaluated 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 | returnexecuted 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 | } | - |
142 | int 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 (!s1TRUE | evaluated 2 times by 1 test | FALSE | evaluated 915 times by 8 testsEvaluated by:- tst_QByteArray
- tst_QGlobal
- tst_QSettings
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_selftests - unknown status
|
|| !s2TRUE | evaluated 1 time by 1 test | FALSE | evaluated 914 times by 8 testsEvaluated by:- tst_QByteArray
- tst_QGlobal
- tst_QSettings
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_selftests - unknown status
|
) | 1-915 |
149 | returnexecuted 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0); s1 ? 1 : (s2 ? -1 : 0);executed 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0); | 3 |
150 | for (; len--TRUE | evaluated 1034 times by 8 testsEvaluated by:- tst_QByteArray
- tst_QGlobal
- tst_QSettings
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_selftests - unknown status
| FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QTextCodec
|
; s1++, s2++) { | 10-1034 |
151 | if ((TRUE | evaluated 903 times by 7 testsEvaluated by:- tst_QGlobal
- tst_QSettings
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_selftests - unknown status
| FALSE | evaluated 131 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QTextCodec
- tst_QXmlStream
|
res = (c = latin1_lowercased[*s1]) - latin1_lowercased[*s2])TRUE | evaluated 903 times by 7 testsEvaluated by:- tst_QGlobal
- tst_QSettings
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_selftests - unknown status
| FALSE | evaluated 131 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QTextCodec
- tst_QXmlStream
|
) | 131-903 |
152 | returnexecuted 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 (!cTRUE | evaluated 1 time by 1 test | FALSE | evaluated 130 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QXmlStream
|
) | 1-130 |
154 | break;executed 1 time by 1 test: break; | 1 |
155 | }executed 130 times by 2 tests: end of block Executed by:- tst_QTextCodec
- tst_QXmlStream
| 130 |
156 | returnexecuted 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 | | - |
162 | int qstrcmp(const QByteArray &str1, const char *str2) | - |
163 | { | - |
164 | if (!str2TRUE | evaluated 32 times by 1 test | FALSE | evaluated 1408080 times by 513 testsEvaluated 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 | returnexecuted 32 times by 1 test: return str1.isEmpty() ? 0 : +1; str1.isEmpty() ? 0 : +1;executed 32 times by 1 test: return str1.isEmpty() ? 0 : +1; | 32 |
166 | | - |
167 | const char *str1data = str1.constData(); | - |
168 | const char *str1end = str1data + str1.length(); | - |
169 | for ( ; str1data < str1endTRUE | evaluated 5398195 times by 513 testsEvaluated 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
- ...
| FALSE | evaluated 454478 times by 261 testsEvaluated 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
- ...
|
&& *TRUE | evaluated 5397886 times by 513 testsEvaluated 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
- ...
| FALSE | evaluated 309 times by 32 testsEvaluated 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
- ...
|
str2TRUE | evaluated 5397886 times by 513 testsEvaluated 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
- ...
| FALSE | evaluated 309 times by 32 testsEvaluated 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 (diffTRUE | evaluated 953293 times by 512 testsEvaluated 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
- ...
| FALSE | evaluated 4444593 times by 412 testsEvaluated 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 | returnexecuted 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 (*TRUE | evaluated 2456 times by 171 testsEvaluated 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
- ...
| FALSE | evaluated 452331 times by 246 testsEvaluated 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'TRUE | evaluated 2456 times by 171 testsEvaluated 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
- ...
| FALSE | evaluated 452331 times by 246 testsEvaluated 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 | returnexecuted 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 < str1endTRUE | evaluated 309 times by 32 testsEvaluated 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
- ...
| FALSE | evaluated 452022 times by 231 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
189 | int 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 != 0TRUE | evaluated 5532693 times by 82 testsEvaluated 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
- ...
| FALSE | evaluated 45710 times by 66 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | } | - |
201 | static 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 | }; | - |
207 | quint16 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--TRUE | evaluated 9971 times by 3 testsEvaluated by:- tst_QDataStream
- tst_QPicture
- tst_QPrinter
| FALSE | evaluated 45 times by 3 testsEvaluated 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 | returnexecuted 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 | } | - |
220 | QByteArray qCompress(const uchar* data, int nbytes, int compressionLevel) | - |
221 | { | - |
222 | if (nbytes == 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 21 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QNetworkDiskCache
- tst_QSettings
|
) { | 1-21 |
223 | returnexecuted 1 time by 1 test: return QByteArray(4, '\0'); QByteArray(4, '\0');executed 1 time by 1 test: return QByteArray(4, '\0'); | 1 |
224 | } | - |
225 | if (!dataTRUE | never evaluated | FALSE | evaluated 21 times by 4 testsEvaluated 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 < -1TRUE | never evaluated | FALSE | evaluated 21 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QNetworkDiskCache
- tst_QSettings
|
|| compressionLevel > 9TRUE | never evaluated | FALSE | evaluated 21 times by 4 testsEvaluated 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 | caseexecuted 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)TRUE | never evaluated | FALSE | evaluated 21 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QNetworkDiskCache
- tst_QSettings
|
); | 0-21 |
256 | | - |
257 | returnexecuted 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 | } | - |
259 | QByteArray qUncompress(const uchar* data, int nbytes) | - |
260 | { | - |
261 | if (!dataTRUE | never evaluated | FALSE | evaluated 660 times by 11 testsEvaluated 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 <= 4TRUE | evaluated 13 times by 1 test | FALSE | evaluated 647 times by 11 testsEvaluated 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 < 4TRUE | never evaluated | FALSE | evaluated 13 times by 1 test |
|| (data[0]!=0TRUE | evaluated 10 times by 1 test | FALSE | evaluated 3 times by 1 test |
|| data[1]!=0TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
|| data[2]!=0TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
|| data[3]!=0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 2 times by 1 test |
)) | 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"); | 11 |
268 | returnexecuted 13 times by 1 test: return QByteArray(); QByteArray();executed 13 times by 1 test: return 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)TRUE | evaluated 7 times by 1 test | FALSE | evaluated 640 times by 11 testsEvaluated 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 | returnexecuted 7 times by 1 test: return QByteArray(); QByteArray();executed 7 times by 1 test: return QByteArray(); | 7 |
281 | } | - |
282 | QByteArray::Data *p = static_cast<QByteArray::Data *>(::realloc(d.data(), sizeof(QByteArray::Data) + alloc + 1)); | - |
283 | if (!pTRUE | never evaluated | FALSE | evaluated 640 times by 11 testsEvaluated 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 | caseexecuted 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 != allocTRUE | never evaluated | FALSE | evaluated 635 times by 11 testsEvaluated 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)TRUE | never evaluated | FALSE | never 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 (!pTRUE | never evaluated | FALSE | never 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 | returnexecuted 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 | caseexecuted 5 times by 1 test: case (-3): (-3):executed 5 times by 1 test: case (-3): | 5 |
334 | QMessageLogger(__FILE__, 741, __PRETTY_FUNCTION__).warning("qUncompress: Z_DATA_ERROR: Input data is corrupted"); | - |
335 | returnexecuted 5 times by 1 test: return QByteArray(); QByteArray();executed 5 times by 1 test: return QByteArray(); | 5 |
336 | } | - |
337 | } never executed: end of block | 0 |
338 | } never executed: end of block | 0 |
339 | | - |
340 | | - |
341 | static inline bool qIsUpper(char c) | - |
342 | { | - |
343 | returnexecuted 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 | | - |
346 | static inline char qToLower(char c) | - |
347 | { | - |
348 | if (c >= 'A'TRUE | evaluated 265 times by 4 testsEvaluated by:- tst_QByteArray
- tst_QPainter
- tst_QVariant
- tst_selftests - unknown status
| FALSE | never evaluated |
&& c <= 'Z'TRUE | never evaluated | FALSE | evaluated 265 times by 4 testsEvaluated 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 | returnexecuted 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 | } | - |
353 | QByteArray &QByteArray::operator=(const QByteArray & other) noexcept | - |
354 | { | - |
355 | other.d->ref.ref(); | - |
356 | if (!d->ref.deref()TRUE | evaluated 118697 times by 77 testsEvaluated 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
- ...
| FALSE | evaluated 795264 times by 420 testsEvaluated 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 | returnexecuted 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 | } | - |
361 | QByteArray &QByteArray::operator=(const char *str) | - |
362 | { | - |
363 | Data *x; | - |
364 | if (!strTRUE | evaluated 424 times by 2 testsEvaluated by:- tst_QPicture
- tst_QTimeZone
| FALSE | evaluated 398130 times by 197 testsEvaluated 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 (!*strTRUE | evaluated 47295 times by 8 testsEvaluated by:- tst_QByteArray
- tst_QDBusMarshall
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QNetworkReply
- tst_QRawFont
- tst_Spdy
| FALSE | evaluated 350835 times by 196 testsEvaluated 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()TRUE | evaluated 269151 times by 189 testsEvaluated 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
- ...
| FALSE | evaluated 81684 times by 42 testsEvaluated 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->allocTRUE | evaluated 26735 times by 38 testsEvaluated 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
- ...
| FALSE | evaluated 54949 times by 39 testsEvaluated 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->sizeTRUE | evaluated 7674 times by 36 testsEvaluated 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
- ...
| FALSE | evaluated 47275 times by 35 testsEvaluated 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)TRUE | evaluated 7666 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 8 times by 2 tests |
)) | 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()TRUE | evaluated 46017 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QPicture
| FALSE | evaluated 352537 times by 197 testsEvaluated 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 | returnexecuted 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 | } | - |
384 | void QByteArray::truncate(int pos) | - |
385 | { | - |
386 | if (pos < d->sizeTRUE | evaluated 149597 times by 255 testsEvaluated 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
- ...
| FALSE | evaluated 3958 times by 27 testsEvaluated 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 |
389 | void QByteArray::chop(int n) | - |
390 | { | - |
391 | if (n > 0TRUE | evaluated 20348 times by 37 testsEvaluated 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
- ...
| FALSE | evaluated 1 time by 1 test |
) | 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 |
394 | QByteArray::QByteArray(const char *data, int size) | - |
395 | { | - |
396 | if (!dataTRUE | evaluated 443549 times by 365 testsEvaluated 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
- ...
| FALSE | evaluated 7717543 times by 432 testsEvaluated 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 < 0TRUE | evaluated 4679846 times by 405 testsEvaluated 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
- ...
| FALSE | evaluated 3037697 times by 342 testsEvaluated 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 (!sizeTRUE | evaluated 2642818 times by 58 testsEvaluated 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
- ...
| FALSE | evaluated 5074725 times by 429 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 5074725 times by 429 testsEvaluated 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 | } | - |
412 | QByteArray::QByteArray(int size, char ch) | - |
413 | { | - |
414 | if (size <= 0TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QAuthenticator
- tst_QUdpSocket
| FALSE | evaluated 19774 times by 66 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 19774 times by 66 testsEvaluated 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 | | - |
431 | QByteArray::QByteArray(int size, Qt::Initialization) | - |
432 | { | - |
433 | d = Data::allocate(uint(size) + 1u); | - |
434 | do { if (!(d)TRUE | never evaluated | FALSE | evaluated 981459 times by 569 testsEvaluated 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 |
438 | void QByteArray::resize(int size) | - |
439 | { | - |
440 | if (size < 0TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QLockFile
| FALSE | evaluated 2050608 times by 439 testsEvaluated 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 (((TRUE | evaluated 21 times by 7 testsEvaluated by:- tst_QByteArray
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusLocalCalls
- tst_QDBusPendingReply
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
| FALSE | evaluated 2050592 times by 439 testsEvaluated 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))TRUE | evaluated 21 times by 7 testsEvaluated by:- tst_QByteArray
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusLocalCalls
- tst_QDBusPendingReply
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
| FALSE | evaluated 2050592 times by 439 testsEvaluated 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()TRUE | evaluated 1 time by 1 test | FALSE | evaluated 20 times by 7 testsEvaluated by:- tst_QByteArray
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusLocalCalls
- tst_QDBusPendingReply
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
|
&& size < d->sizeTRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) { | 0-2050592 |
444 | d->size = size; | - |
445 | return;executed 1 time by 1 test: return; | 1 |
446 | } | - |
447 | | - |
448 | if (size == 0TRUE | evaluated 67758 times by 188 testsEvaluated 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
- ...
| FALSE | evaluated 1982854 times by 438 testsEvaluated 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->capacityReservedTRUE | evaluated 67750 times by 188 testsEvaluated 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
- ...
| FALSE | evaluated 8 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QSslSocket
|
) { | 8-1982854 |
449 | Data *x = Data::allocate(0); | - |
450 | if (!d->ref.deref()TRUE | evaluated 15368 times by 174 testsEvaluated 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
- ...
| FALSE | evaluated 52382 times by 51 testsEvaluated 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 == 0TRUE | evaluated 335064 times by 259 testsEvaluated 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
- ...
| FALSE | evaluated 1647798 times by 438 testsEvaluated 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()TRUE | evaluated 330742 times by 258 testsEvaluated 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
- ...
| FALSE | evaluated 4322 times by 18 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 330742 times by 258 testsEvaluated 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()TRUE | evaluated 5282 times by 21 testsEvaluated 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
| FALSE | evaluated 1646838 times by 437 testsEvaluated 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->allocTRUE | evaluated 191239 times by 124 testsEvaluated 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
- ...
| FALSE | evaluated 1455599 times by 435 testsEvaluated 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->capacityReservedTRUE | evaluated 1406280 times by 435 testsEvaluated 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
- ...
| FALSE | evaluated 49319 times by 33 testsEvaluated 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->sizeTRUE | evaluated 1118802 times by 427 testsEvaluated 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
- ...
| FALSE | evaluated 287478 times by 169 testsEvaluated 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)TRUE | evaluated 681854 times by 419 testsEvaluated 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
- ...
| FALSE | evaluated 436948 times by 173 testsEvaluated 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->allocTRUE | evaluated 1652120 times by 438 testsEvaluated 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
- ...
| FALSE | never 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 | } | - |
470 | QByteArray &QByteArray::fill(char ch, int size) | - |
471 | { | - |
472 | resize(size < 0 ? d->size : size); | - |
473 | if (d->sizeTRUE | evaluated 3703 times by 8 testsEvaluated by:- tst_QBuffer
- tst_QByteArray
- tst_QDataStream
- tst_QFtp
- tst_QMimeDatabase
- tst_QRawFont
- tst_QSslSocket
- tst_QTextCodec
| FALSE | never 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 | returnexecuted 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 | | - |
478 | void QByteArray::reallocData(uint alloc, Data::AllocationOptions options) | - |
479 | { | - |
480 | if (d->ref.isShared()TRUE | evaluated 1652549 times by 421 testsEvaluated 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
- ...
| FALSE | evaluated 1527412 times by 438 testsEvaluated 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
- ...
|
|| ((TRUE | evaluated 5 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QStringBuilder3
- tst_QStringBuilder4
| FALSE | evaluated 1527407 times by 438 testsEvaluated 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))TRUE | evaluated 5 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QStringBuilder3
- tst_QStringBuilder4
| FALSE | evaluated 1527407 times by 438 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 1652554 times by 421 testsEvaluated 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()TRUE | evaluated 5 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QStringBuilder3
- tst_QStringBuilder4
| FALSE | evaluated 1652549 times by 421 testsEvaluated 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::GrowTRUE | evaluated 1485537 times by 438 testsEvaluated 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
- ...
| FALSE | evaluated 41870 times by 56 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 1527407 times by 438 testsEvaluated 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 = (TRUE | evaluated 11097 times by 54 testsEvaluated 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
- ...
| FALSE | evaluated 1516310 times by 438 testsEvaluated 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)TRUE | evaluated 11097 times by 54 testsEvaluated 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
- ...
| FALSE | evaluated 1516310 times by 438 testsEvaluated 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 | | - |
507 | void 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 |
511 | QByteArray QByteArray::nulTerminated() const | - |
512 | { | - |
513 | | - |
514 | if (!((d)->offset != sizeof(QByteArrayData))TRUE | evaluated 206684 times by 59 testsEvaluated 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
- ...
| FALSE | evaluated 6 times by 1 test |
) | 6-206684 |
515 | returnexecuted 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 | returnexecuted 6 times by 1 test: return copy; copy;executed 6 times by 1 test: return copy; | 6 |
520 | } | - |
521 | QByteArray &QByteArray::prepend(const QByteArray &ba) | - |
522 | { | - |
523 | if (d->size == 0TRUE | evaluated 17348 times by 7 testsEvaluated by:- tst_QByteArray
- tst_QMetaEnum
- tst_QMetaObject
- tst_QNetworkReply
- tst_QRingBuffer
- tst_QSizePolicy
- tst_QWidget
| FALSE | evaluated 1252 times by 17 testsEvaluated 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()TRUE | evaluated 17348 times by 7 testsEvaluated by:- tst_QByteArray
- tst_QMetaEnum
- tst_QMetaObject
- tst_QNetworkReply
- tst_QRingBuffer
- tst_QSizePolicy
- tst_QWidget
| FALSE | never evaluated |
&& !((ba.d)->offset != sizeof(QByteArrayData))TRUE | evaluated 15 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QNetworkReply
- tst_QRingBuffer
| FALSE | evaluated 17333 times by 5 testsEvaluated 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 != 0TRUE | evaluated 17877 times by 12 testsEvaluated 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
| FALSE | evaluated 708 times by 9 testsEvaluated 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 | returnexecuted 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 | | - |
539 | QByteArray &QByteArray::prepend(const char *str) | - |
540 | { | - |
541 | returnexecuted 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 | } | - |
543 | QByteArray &QByteArray::prepend(const char *str, int len) | - |
544 | { | - |
545 | if (strTRUE | evaluated 318 times by 7 testsEvaluated by:- tst_QByteArray
- tst_QImageReader
- tst_QMetaObject
- tst_QNetworkReply
- tst_QObject
- tst_Selftests
- tst_Utf8
| FALSE | evaluated 9 times by 1 test |
) { | 9-318 |
546 | if (d->ref.isShared()TRUE | evaluated 215 times by 3 testsEvaluated by:- tst_QByteArray
- tst_Selftests
- tst_Utf8
| FALSE | evaluated 103 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QImageReader
- tst_QMetaObject
- tst_QNetworkReply
- tst_QObject
|
|| uint(d->size + len) + 1u > d->allocTRUE | evaluated 23 times by 4 testsEvaluated by:- tst_QByteArray
- tst_QImageReader
- tst_QMetaObject
- tst_QNetworkReply
| FALSE | evaluated 80 times by 3 testsEvaluated 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 | returnexecuted 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 | } | - |
555 | QByteArray &QByteArray::prepend(char ch) | - |
556 | { | - |
557 | if (d->ref.isShared()TRUE | evaluated 32 times by 6 testsEvaluated by:- tst_QAsn1Element
- tst_QByteArray
- tst_QMetaEnum
- tst_QMetaObject
- tst_QSettings
- tst_QSizePolicy
| FALSE | evaluated 639 times by 11 testsEvaluated 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->allocTRUE | evaluated 63 times by 3 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_QSettings
| FALSE | evaluated 576 times by 11 testsEvaluated 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 | returnexecuted 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 | } | - |
565 | QByteArray &QByteArray::append(const QByteArray &ba) | - |
566 | { | - |
567 | if (d->size == 0TRUE | evaluated 243296 times by 339 testsEvaluated 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
- ...
| FALSE | evaluated 924483 times by 362 testsEvaluated 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()TRUE | evaluated 211848 times by 332 testsEvaluated 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
- ...
| FALSE | evaluated 31448 times by 70 testsEvaluated 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))TRUE | evaluated 211792 times by 332 testsEvaluated 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
- ...
| FALSE | evaluated 56 times by 2 testsEvaluated 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 != 0TRUE | evaluated 917830 times by 360 testsEvaluated 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
- ...
| FALSE | evaluated 38157 times by 161 testsEvaluated 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()TRUE | evaluated 142209 times by 197 testsEvaluated 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
- ...
| FALSE | evaluated 775621 times by 310 testsEvaluated 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->allocTRUE | evaluated 467498 times by 218 testsEvaluated 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
- ...
| FALSE | evaluated 308123 times by 288 testsEvaluated 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 | returnexecuted 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 | } | - |
578 | QByteArray& QByteArray::append(const char *str) | - |
579 | { | - |
580 | if (strTRUE | evaluated 239952 times by 189 testsEvaluated 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
- ...
| FALSE | evaluated 9 times by 1 test |
) { | 9-239952 |
581 | const int len = int(strlen(str)); | - |
582 | if (d->ref.isShared()TRUE | evaluated 128608 times by 62 testsEvaluated 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
- ...
| FALSE | evaluated 111344 times by 167 testsEvaluated 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->allocTRUE | evaluated 22304 times by 87 testsEvaluated 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
- ...
| FALSE | evaluated 89040 times by 160 testsEvaluated 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 | returnexecuted 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 | } | - |
589 | QByteArray &QByteArray::append(const char *str, int len) | - |
590 | { | - |
591 | if (len < 0TRUE | never evaluated | FALSE | evaluated 534644 times by 273 testsEvaluated 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 (strTRUE | evaluated 534641 times by 273 testsEvaluated 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
- ...
| FALSE | evaluated 3 times by 1 test |
&& lenTRUE | evaluated 534637 times by 273 testsEvaluated 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
- ...
| FALSE | evaluated 4 times by 1 test |
) { | 3-534641 |
594 | if (d->ref.isShared()TRUE | evaluated 524305 times by 131 testsEvaluated 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
- ...
| FALSE | evaluated 10332 times by 240 testsEvaluated 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->allocTRUE | evaluated 13 times by 2 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QRingBuffer
| FALSE | evaluated 10319 times by 239 testsEvaluated 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 | returnexecuted 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 | } | - |
602 | QByteArray& QByteArray::append(char ch) | - |
603 | { | - |
604 | if (d->ref.isShared()TRUE | evaluated 69106 times by 205 testsEvaluated 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
- ...
| FALSE | evaluated 18056021 times by 356 testsEvaluated 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->allocTRUE | evaluated 122543 times by 120 testsEvaluated 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
- ...
| FALSE | evaluated 17933478 times by 349 testsEvaluated 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 | returnexecuted 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 | | - |
616 | static 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 < 0TRUE | never evaluated | FALSE | evaluated 120320 times by 9 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QByteArrayMatcher
- tst_QImageReader
- tst_QImageWriter
- tst_QSettings
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
|
|| len <= 0TRUE | never evaluated | FALSE | evaluated 120320 times by 9 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QByteArrayMatcher
- tst_QImageReader
- tst_QImageWriter
- tst_QSettings
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
|
|| arr == 0TRUE | never evaluated | FALSE | evaluated 120320 times by 9 testsEvaluated 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 > oldsizeTRUE | evaluated 2 times by 1 test | FALSE | evaluated 120318 times by 9 testsEvaluated 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); memset(dst + oldsize, 0x20, pos - oldsize);executed 2 times by 1 test: ::memset(dst + oldsize, 0x20, pos - oldsize); | 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 | returnexecuted 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 | } | - |
634 | QByteArray &QByteArray::insert(int i, const QByteArray &ba) | - |
635 | { | - |
636 | QByteArray copy(ba); | - |
637 | returnexecuted 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 | } | - |
639 | QByteArray &QByteArray::insert(int i, const char *str) | - |
640 | { | - |
641 | returnexecuted 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 | } | - |
643 | QByteArray &QByteArray::insert(int i, const char *str, int len) | - |
644 | { | - |
645 | returnexecuted 1 time by 1 test: return qbytearray_insert(this, i, str, len); qbytearray_insert(this, i, str, len);executed 1 time by 1 test: return qbytearray_insert(this, i, str, len); | 1 |
646 | } | - |
647 | QByteArray &QByteArray::insert(int i, char ch) | - |
648 | { | - |
649 | returnexecuted 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 | } | - |
651 | QByteArray &QByteArray::insert(int i, int count, char ch) | - |
652 | { | - |
653 | if (i < 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 46 times by 1 test |
|| count <= 0TRUE | evaluated 18 times by 1 test | FALSE | evaluated 28 times by 1 test |
) | 1-46 |
654 | returnexecuted 19 times by 1 test: return *this; *this;executed 19 times by 1 test: return *this; | 19 |
655 | | - |
656 | int oldsize = size(); | - |
657 | resize(qMax(i, oldsize) + count); | - |
658 | char *dst = d->data(); | - |
659 | if (i > oldsizeTRUE | evaluated 1 time by 1 test | FALSE | evaluated 27 times by 1 test |
) | 1-27 |
660 | ::executed 1 time by 1 test: ::memset(dst + oldsize, 0x20, i - oldsize); memset(dst + oldsize, 0x20, i - oldsize);executed 1 time by 1 test: ::memset(dst + oldsize, 0x20, i - oldsize); | 1 |
661 | else if (i < oldsizeTRUE | evaluated 18 times by 1 test | FALSE | evaluated 9 times by 1 test |
) | 9-18 |
662 | ::executed 18 times by 1 test: ::memmove(dst + i + count, dst + i, oldsize - i); memmove(dst + i + count, dst + i, oldsize - i);executed 18 times by 1 test: ::memmove(dst + i + count, dst + i, oldsize - i); | 18 |
663 | ::memset(dst + i, ch, count); | - |
664 | returnexecuted 28 times by 1 test: return *this; *this;executed 28 times by 1 test: return *this; | 28 |
665 | } | - |
666 | QByteArray &QByteArray::remove(int pos, int len) | - |
667 | { | - |
668 | if (len <= 0TRUE | evaluated 33120 times by 20 testsEvaluated 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
| FALSE | evaluated 269741 times by 21 testsEvaluated 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)TRUE | evaluated 3 times by 1 test | FALSE | evaluated 269738 times by 21 testsEvaluated 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 | returnexecuted 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 - posTRUE | evaluated 4159 times by 14 testsEvaluated 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
| FALSE | evaluated 265579 times by 14 testsEvaluated 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 | returnexecuted 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 | } | - |
679 | QByteArray &QByteArray::replace(int pos, int len, const QByteArray &after) | - |
680 | { | - |
681 | if (len == after.d->sizeTRUE | evaluated 3 times by 1 test | FALSE | evaluated 8 times by 2 testsEvaluated by:- tst_Collections
- tst_QByteArray
|
&& (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 1 time by 1 test |
pos + len <= d->size)TRUE | evaluated 2 times by 1 test | FALSE | evaluated 1 time by 1 test |
) { | 1-8 |
682 | detach(); | - |
683 | memmove(d->data() + pos, after.d->data(), len*sizeof(char)); | - |
684 | returnexecuted 2 times by 1 test: return *this; *this;executed 2 times by 1 test: return *this; | 2 |
685 | } else { | - |
686 | QByteArray copy(after); | - |
687 | | - |
688 | remove(pos, len); | - |
689 | returnexecuted 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 | } | - |
692 | QByteArray &QByteArray::replace(int pos, int len, const char *after) | - |
693 | { | - |
694 | returnexecuted 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 | } | - |
696 | QByteArray &QByteArray::replace(int pos, int len, const char *after, int alen) | - |
697 | { | - |
698 | if (len == alenTRUE | evaluated 13 times by 2 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QByteArray
| FALSE | evaluated 118989 times by 3 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_Selftests
|
&& (TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QByteArray
| FALSE | evaluated 1 time by 1 test |
pos + len <= d->size)TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QByteArray
| FALSE | evaluated 1 time by 1 test |
) { | 1-118989 |
699 | detach(); | - |
700 | memcpy(d->data() + pos, after, len*sizeof(char)); | - |
701 | returnexecuted 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 | returnexecuted 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 | } | - |
707 | QByteArray &QByteArray::replace(const QByteArray &before, const QByteArray &after) | - |
708 | { | - |
709 | if (isNull()TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
|| before.d == after.dTRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
) | 0-3 |
710 | return never executed: return *this; *this;never executed: return *this; | 0 |
711 | | - |
712 | QByteArray aft = after; | - |
713 | if (after.d == dTRUE | evaluated 2 times by 1 test | FALSE | evaluated 1 time by 1 test |
) | 1-2 |
714 | aft.detach();executed 2 times by 1 test: aft.detach(); | 2 |
715 | | - |
716 | returnexecuted 3 times by 1 test: return replace(before.constData(), before.size(), aft.constData(), aft.size()); 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()); | 3 |
717 | } | - |
718 | QByteArray &QByteArray::replace(const char *c, const QByteArray &after) | - |
719 | { | - |
720 | QByteArray aft = after; | - |
721 | if (after.d == dTRUE | never evaluated | FALSE | never 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 | } | - |
726 | QByteArray &QByteArray::replace(const char *before, int bsize, const char *after, int asize) | - |
727 | { | - |
728 | if (isNull()TRUE | never evaluated | FALSE | evaluated 2753 times by 9 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_Spdy
- tst_qlogging - unknown status
- tst_qmessagehandler
|
|| (before == afterTRUE | never evaluated | FALSE | evaluated 2753 times by 9 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_Spdy
- tst_qlogging - unknown status
- tst_qmessagehandler
|
&& bsize == asizeTRUE | never evaluated | FALSE | never 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()TRUE | evaluated 612 times by 4 testsEvaluated by:- tst_Collections
- tst_Spdy
- tst_qlogging - unknown status
- tst_qmessagehandler
| FALSE | evaluated 2141 times by 6 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
|
&& after < d->data() + d->sizeTRUE | never evaluated | FALSE | evaluated 612 times by 4 testsEvaluated by:- tst_Collections
- tst_Spdy
- tst_qlogging - unknown status
- tst_qmessagehandler
|
) { | 0-2141 |
735 | char *copy = (char *)malloc(asize); | - |
736 | do { if (!(copy)TRUE | never evaluated | FALSE | never 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()TRUE | evaluated 2421 times by 9 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_Spdy
- tst_qlogging - unknown status
- tst_qmessagehandler
| FALSE | evaluated 332 times by 1 test |
&& before < d->data() + d->sizeTRUE | evaluated 2 times by 1 test | FALSE | evaluated 2419 times by 9 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) 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 | 2 |
746 | | - |
747 | QByteArrayMatcher matcher(before, bsize); | - |
748 | int index = 0; | - |
749 | int len = d->size; | - |
750 | char *d = data(); | - |
751 | | - |
752 | if (bsize == asizeTRUE | evaluated 1 time by 1 test | FALSE | evaluated 2752 times by 9 testsEvaluated 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 (bsizeTRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) { | 0-1 |
754 | while ((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1 time by 1 test |
index = matcher.indexIn(*this, index)) != -1TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1 time by 1 test |
) { | 1 |
755 | memcpy(d + index, after, asize); | - |
756 | index += bsize; | - |
757 | }executed 1 time by 1 test: end of block | 1 |
758 | }executed 1 time by 1 test: end of block | 1 |
759 | }executed 1 time by 1 test: end of block else if (asize < bsizeTRUE | evaluated 2301 times by 8 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
| FALSE | evaluated 451 times by 2 tests |
) { | 1-2301 |
760 | uint to = 0; | - |
761 | uint movestart = 0; | - |
762 | uint num = 0; | - |
763 | while ((TRUE | evaluated 41 times by 2 testsEvaluated by:- tst_Collections
- tst_QByteArray
| FALSE | evaluated 2301 times by 8 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
|
index = matcher.indexIn(*this, index)) != -1TRUE | evaluated 41 times by 2 testsEvaluated by:- tst_Collections
- tst_QByteArray
| FALSE | evaluated 2301 times by 8 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
|
) { | 41-2301 |
764 | if (numTRUE | evaluated 14 times by 1 test | FALSE | evaluated 27 times by 2 testsEvaluated by:- tst_Collections
- tst_QByteArray
|
) { | 14-27 |
765 | int msize = index - movestart; | - |
766 | if (msize > 0TRUE | never evaluated | FALSE | evaluated 14 times by 1 test |
) { | 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 else { | 14 |
771 | to = index; | - |
772 | }executed 27 times by 2 tests: end of block Executed by:- tst_Collections
- tst_QByteArray
| 27 |
773 | if (asizeTRUE | evaluated 1 time by 1 test | FALSE | evaluated 40 times by 1 test |
) { | 1-40 |
774 | memcpy(d + to, after, asize); | - |
775 | to += asize; | - |
776 | }executed 1 time by 1 test: end of block | 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 (numTRUE | evaluated 27 times by 2 testsEvaluated by:- tst_Collections
- tst_QByteArray
| FALSE | evaluated 2274 times by 7 testsEvaluated 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 > 0TRUE | never evaluated | FALSE | evaluated 27 times by 2 testsEvaluated 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 != -1TRUE | evaluated 451 times by 2 tests | FALSE | evaluated 2 times by 1 test |
) { | 2-451 |
791 | uint indices[4096]; | - |
792 | uint pos = 0; | - |
793 | while(pos < 4095TRUE | evaluated 457 times by 2 tests | FALSE | never evaluated |
) { | 0-457 |
794 | index = matcher.indexIn(*this, index); | - |
795 | if (index == -1TRUE | evaluated 451 times by 2 tests | FALSE | evaluated 6 times by 1 test |
) | 6-451 |
796 | break;executed 451 times by 2 tests: break; | 451 |
797 | indices[pos++] = index; | - |
798 | index += bsize; | - |
799 | | - |
800 | if (!bsizeTRUE | never evaluated | FALSE | evaluated 6 times by 1 test |
) | 0-6 |
801 | index++; never executed: index++; | 0 |
802 | }executed 6 times by 1 test: end of block | 6 |
803 | if (!posTRUE | evaluated 449 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-449 |
804 | break;executed 449 times by 1 test: break; | 449 |
805 | | - |
806 | | - |
807 | int adjust = pos*(asize-bsize); | - |
808 | | - |
809 | if (index != -1TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
810 | index += adjust; never executed: index += adjust; | 0 |
811 | int newlen = len + adjust; | - |
812 | int moveend = len; | - |
813 | if (newlen > lenTRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) { | 0-2 |
814 | resize(newlen); | - |
815 | len = newlen; | - |
816 | }executed 2 times by 1 test: end of block | 2 |
817 | d = this->d->data(); | - |
818 | | - |
819 | while(posTRUE | evaluated 6 times by 1 test | FALSE | evaluated 2 times by 1 test |
) { | 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 (asizeTRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
) | 0-6 |
826 | memcpy(d + insertstart, after, asize);executed 6 times by 1 test: memcpy(d + insertstart, after, asize); | 6 |
827 | moveend = movestart - bsize; | - |
828 | }executed 6 times by 1 test: end of block | 6 |
829 | }executed 2 times by 1 test: end of block | 2 |
830 | }executed 451 times by 2 tests: end of block | 451 |
831 | | - |
832 | if (a != afterTRUE | never evaluated | FALSE | evaluated 2753 times by 9 testsEvaluated 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 != beforeTRUE | evaluated 2 times by 1 test | FALSE | evaluated 2751 times by 9 testsEvaluated 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)); free(const_cast<char *>(b));executed 2 times by 1 test: ::free(const_cast<char *>(b)); | 2 |
836 | | - |
837 | | - |
838 | returnexecuted 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 | } | - |
840 | QByteArray &QByteArray::replace(char before, const QByteArray &after) | - |
841 | { | - |
842 | char b[2] = { before, '\0' }; | - |
843 | QByteArray cb = fromRawData(b, 1); | - |
844 | returnexecuted 2 times by 1 test: return replace(cb, after); replace(cb, after);executed 2 times by 1 test: return replace(cb, after); | 2 |
845 | } | - |
846 | QByteArray &QByteArray::replace(char before, char after) | - |
847 | { | - |
848 | if (d->sizeTRUE | evaluated 158 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QLoggingRegistry
- tst_QTextStream
| FALSE | evaluated 1081 times by 25 testsEvaluated 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 != eTRUE | evaluated 2698 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QLoggingRegistry
- tst_QTextStream
| FALSE | evaluated 158 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QLoggingRegistry
- tst_QTextStream
|
; ++i) | 158-2698 |
852 | if (*TRUE | evaluated 162 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QTextStream
| FALSE | evaluated 2536 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QLoggingRegistry
- tst_QTextStream
|
i == beforeTRUE | evaluated 162 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QTextStream
| FALSE | evaluated 2536 times by 3 testsEvaluated 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 | returnexecuted 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 | } | - |
857 | QList<QByteArray> QByteArray::split(char sep) const | - |
858 | { | - |
859 | QList<QByteArray> list; | - |
860 | int start = 0; | - |
861 | int end; | - |
862 | while ((TRUE | evaluated 572185 times by 66 testsEvaluated 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
- ...
| FALSE | evaluated 182845 times by 74 testsEvaluated 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)) != -1TRUE | evaluated 572185 times by 66 testsEvaluated 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
- ...
| FALSE | evaluated 182845 times by 74 testsEvaluated 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 | returnexecuted 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 | } | - |
869 | QByteArray QByteArray::repeated(int times) const | - |
870 | { | - |
871 | if (d->size == 0TRUE | evaluated 5 times by 1 test | FALSE | evaluated 11 times by 1 test |
) | 5-11 |
872 | returnexecuted 5 times by 1 test: return *this; *this;executed 5 times by 1 test: return *this; | 5 |
873 | | - |
874 | if (times <= 1TRUE | evaluated 4 times by 1 test | FALSE | evaluated 7 times by 1 test |
) { | 4-7 |
875 | if (times == 1TRUE | evaluated 1 time by 1 test | FALSE | evaluated 3 times by 1 test |
) | 1-3 |
876 | returnexecuted 1 time by 1 test: return *this; *this;executed 1 time by 1 test: return *this; | 1 |
877 | returnexecuted 3 times by 1 test: return QByteArray(); QByteArray();executed 3 times by 1 test: return 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) + 1uTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
) | 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 <= halfResultSizeTRUE | evaluated 12 times by 1 test | FALSE | evaluated 7 times by 1 test |
) { | 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 | 12 |
898 | memcpy(end, result.d->data(), resultSize - sizeSoFar); | - |
899 | result.d->data()[resultSize] = '\0'; | - |
900 | result.d->size = resultSize; | - |
901 | returnexecuted 7 times by 1 test: return result; result;executed 7 times by 1 test: return result; | 7 |
902 | } | - |
903 | int QByteArray::indexOf(const QByteArray &ba, int from) const | - |
904 | { | - |
905 | const int ol = ba.d->size; | - |
906 | if (ol == 0TRUE | evaluated 16 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QString
| FALSE | evaluated 2152 times by 12 testsEvaluated 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 | returnexecuted 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 == 1TRUE | evaluated 72 times by 4 testsEvaluated by:- tst_Collections
- tst_NetworkSelfTest
- tst_QByteArray
- tst_QString
| FALSE | evaluated 2080 times by 12 testsEvaluated 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 | returnexecuted 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->sizeTRUE | never evaluated | FALSE | evaluated 2080 times by 12 testsEvaluated 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 > lTRUE | evaluated 16 times by 4 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QOpenGlConfig
- tst_QString
| FALSE | evaluated 2064 times by 12 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | } | - |
917 | int QByteArray::indexOf(const char *c, int from) const | - |
918 | { | - |
919 | const int ol = qstrlen(c); | - |
920 | if (ol == 1TRUE | evaluated 24 times by 1 test | FALSE | evaluated 747924 times by 31 testsEvaluated 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 | returnexecuted 24 times by 1 test: return indexOf(*c, from); indexOf(*c, from);executed 24 times by 1 test: return indexOf(*c, from); | 24 |
922 | | - |
923 | const int l = d->size; | - |
924 | if (from > d->sizeTRUE | never evaluated | FALSE | evaluated 747924 times by 31 testsEvaluated 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 > lTRUE | evaluated 19450 times by 16 testsEvaluated 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
| FALSE | evaluated 728474 times by 30 testsEvaluated 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 | returnexecuted 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 == 0TRUE | evaluated 8 times by 1 test | FALSE | evaluated 728466 times by 30 testsEvaluated 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 | returnexecuted 8 times by 1 test: return from; from;executed 8 times by 1 test: return from; | 8 |
928 | | - |
929 | returnexecuted 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 | } | - |
931 | int QByteArray::indexOf(char ch, int from) const | - |
932 | { | - |
933 | if (from < 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 939940 times by 126 testsEvaluated 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); | 1 |
935 | if (from < d->sizeTRUE | evaluated 937443 times by 124 testsEvaluated 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
- ...
| FALSE | evaluated 2498 times by 31 testsEvaluated 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 (++TRUE | evaluated 16977935 times by 124 testsEvaluated 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
- ...
| FALSE | evaluated 183832 times by 81 testsEvaluated 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 != eTRUE | evaluated 16977935 times by 124 testsEvaluated 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
- ...
| FALSE | evaluated 183832 times by 81 testsEvaluated 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 (*TRUE | evaluated 753611 times by 124 testsEvaluated 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
- ...
| FALSE | evaluated 16224324 times by 124 testsEvaluated 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 == chTRUE | evaluated 753611 times by 124 testsEvaluated 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
- ...
| FALSE | evaluated 16224324 times by 124 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
946 | static int lastIndexOfHelper(const char *haystack, int l, const char *needle, int ol, int from) | - |
947 | { | - |
948 | int delta = l - ol; | - |
949 | if (from < 0TRUE | evaluated 40 times by 3 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QString
| FALSE | evaluated 15 times by 2 testsEvaluated 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 < 0TRUE | evaluated 5 times by 1 test | FALSE | evaluated 50 times by 3 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QString
|
|| from > lTRUE | never evaluated | FALSE | evaluated 50 times by 3 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QString
|
) | 0-50 |
952 | returnexecuted 5 times by 1 test: return -1; -1;executed 5 times by 1 test: return -1; | 5 |
953 | if (from > deltaTRUE | evaluated 2 times by 1 test | FALSE | evaluated 48 times by 3 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QString
|
) | 2-48 |
954 | from = delta;executed 2 times by 1 test: from = delta; | 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 < olTRUE | evaluated 285 times by 3 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QString
| FALSE | evaluated 50 times by 3 testsEvaluated 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 >= endTRUE | evaluated 214 times by 3 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QString
| FALSE | evaluated 14 times by 3 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QString
|
) { | 14-214 |
969 | hashHaystack += *haystack; | - |
970 | if (hashHaystack == hashNeedleTRUE | evaluated 38 times by 3 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QString
| FALSE | evaluated 176 times by 3 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QString
|
&& memcmp(needle, haystack, ol) == 0TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QString
| FALSE | evaluated 2 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QString
|
) | 2-176 |
971 | returnexecuted 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) * 8TRUE | evaluated 144 times by 3 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QString
| FALSE | evaluated 34 times by 1 test |
) 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 | returnexecuted 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 | } | - |
978 | int QByteArray::lastIndexOf(const QByteArray &ba, int from) const | - |
979 | { | - |
980 | const int ol = ba.d->size; | - |
981 | if (ol == 1TRUE | evaluated 34 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QString
| FALSE | evaluated 36 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QString
|
) | 34-36 |
982 | returnexecuted 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 | returnexecuted 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 | } | - |
986 | int QByteArray::lastIndexOf(const char *str, int from) const | - |
987 | { | - |
988 | const int ol = qstrlen(str); | - |
989 | if (ol == 1TRUE | evaluated 24 times by 1 test | FALSE | evaluated 19 times by 2 testsEvaluated by:- tst_Collections
- tst_QByteArray
|
) | 19-24 |
990 | returnexecuted 24 times by 1 test: return lastIndexOf(*str, from); lastIndexOf(*str, from);executed 24 times by 1 test: return lastIndexOf(*str, from); | 24 |
991 | | - |
992 | returnexecuted 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 | } | - |
994 | int QByteArray::lastIndexOf(char ch, int from) const | - |
995 | { | - |
996 | if (from < 0TRUE | evaluated 740 times by 7 testsEvaluated by:- tst_QByteArray
- tst_QMetaObject
- tst_QMetaObjectBuilder
- tst_QString
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
| FALSE | evaluated 50 times by 3 testsEvaluated 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->sizeTRUE | never evaluated | FALSE | evaluated 50 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QMetaObject
- tst_QObject
|
) | 0-50 |
999 | from = d->size-1; never executed: from = d->size-1; | 0 |
1000 | if (from >= 0TRUE | evaluated 776 times by 8 testsEvaluated by:- tst_QByteArray
- tst_QMetaObject
- tst_QMetaObjectBuilder
- tst_QObject
- tst_QString
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
| FALSE | evaluated 14 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QString
|
) { | 14-776 |
1001 | const char *b = d->data(); | - |
1002 | const char *n = d->data() + from + 1; | - |
1003 | while (n-- != bTRUE | evaluated 5984 times by 8 testsEvaluated by:- tst_QByteArray
- tst_QMetaObject
- tst_QMetaObjectBuilder
- tst_QObject
- tst_QString
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
| FALSE | evaluated 191 times by 6 testsEvaluated by:- tst_QByteArray
- tst_QMetaObject
- tst_QMetaObjectBuilder
- tst_QString
- tst_qlogging - unknown status
- tst_qmessagehandler
|
) | 191-5984 |
1004 | if (*TRUE | evaluated 585 times by 7 testsEvaluated by:- tst_QByteArray
- tst_QMetaObject
- tst_QObject
- tst_QString
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
| FALSE | evaluated 5399 times by 8 testsEvaluated by:- tst_QByteArray
- tst_QMetaObject
- tst_QMetaObjectBuilder
- tst_QObject
- tst_QString
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
|
n == chTRUE | evaluated 585 times by 7 testsEvaluated by:- tst_QByteArray
- tst_QMetaObject
- tst_QObject
- tst_QString
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
| FALSE | evaluated 5399 times by 8 testsEvaluated by:- tst_QByteArray
- tst_QMetaObject
- tst_QMetaObjectBuilder
- tst_QObject
- tst_QString
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
|
) | 585-5399 |
1005 | returnexecuted 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 | returnexecuted 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 | } | - |
1009 | int QByteArray::count(const QByteArray &ba) const | - |
1010 | { | - |
1011 | int num = 0; | - |
1012 | int i = -1; | - |
1013 | if (d->size > 500TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
&& ba.d->size > 5TRUE | never evaluated | FALSE | never evaluated |
) { | 0-4 |
1014 | QByteArrayMatcher matcher(ba); | - |
1015 | while ((TRUE | never evaluated | FALSE | never evaluated |
i = matcher.indexIn(*this, i + 1)) != -1TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1016 | ++ never executed: ++num; num;never executed: ++num; | 0 |
1017 | } never executed: end of block else { | 0 |
1018 | while ((TRUE | evaluated 33 times by 1 test | FALSE | evaluated 4 times by 1 test |
i = indexOf(ba, i + 1)) != -1TRUE | evaluated 33 times by 1 test | FALSE | evaluated 4 times by 1 test |
) | 4-33 |
1019 | ++executed 33 times by 1 test: ++num; num;executed 33 times by 1 test: ++num; | 33 |
1020 | }executed 4 times by 1 test: end of block | 4 |
1021 | returnexecuted 4 times by 1 test: return num; num;executed 4 times by 1 test: return num; | 4 |
1022 | } | - |
1023 | int QByteArray::count(const char *str) const | - |
1024 | { | - |
1025 | returnexecuted 4 times by 1 test: return count(fromRawData(str, qstrlen(str))); count(fromRawData(str, qstrlen(str)));executed 4 times by 1 test: return count(fromRawData(str, qstrlen(str))); | 4 |
1026 | } | - |
1027 | int 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 != bTRUE | evaluated 65360 times by 3 testsEvaluated by:- tst_Collections
- tst_QRingBuffer
- tst_QXmlStream
| FALSE | evaluated 514 times by 3 testsEvaluated by:- tst_Collections
- tst_QRingBuffer
- tst_QXmlStream
|
) | 514-65360 |
1033 | if (*--TRUE | evaluated 65303 times by 3 testsEvaluated by:- tst_Collections
- tst_QRingBuffer
- tst_QXmlStream
| FALSE | evaluated 57 times by 2 testsEvaluated by:- tst_Collections
- tst_QXmlStream
|
i == chTRUE | evaluated 65303 times by 3 testsEvaluated by:- tst_Collections
- tst_QRingBuffer
- tst_QXmlStream
| FALSE | evaluated 57 times by 2 testsEvaluated 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 | returnexecuted 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 | } | - |
1037 | bool QByteArray::startsWith(const QByteArray &ba) const | - |
1038 | { | - |
1039 | if (d == ba.dTRUE | evaluated 2 times by 1 test | FALSE | evaluated 3311 times by 29 testsEvaluated 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 == 0TRUE | evaluated 4 times by 1 test | FALSE | evaluated 3307 times by 29 testsEvaluated 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 | returnexecuted 6 times by 1 test: return true; true;executed 6 times by 1 test: return true; | 6 |
1041 | if (d->size < ba.d->sizeTRUE | evaluated 1093 times by 9 testsEvaluated 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 | evaluated 2214 times by 29 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
1051 | bool QByteArray::startsWith(const char *str) const | - |
1052 | { | - |
1053 | if (!strTRUE | evaluated 3 times by 1 test | FALSE | evaluated 1556042 times by 153 testsEvaluated 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
- ...
|
|| !*strTRUE | evaluated 3 times by 1 test | FALSE | evaluated 1556039 times by 153 testsEvaluated 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 | returnexecuted 6 times by 1 test: return true; true;executed 6 times by 1 test: return true; | 6 |
1055 | const int len = int(strlen(str)); | - |
1056 | if (d->size < lenTRUE | evaluated 266731 times by 13 testsEvaluated 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 | evaluated 1289308 times by 152 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
1066 | bool QByteArray::startsWith(char ch) const | - |
1067 | { | - |
1068 | if (d->size == 0TRUE | evaluated 68 times by 4 testsEvaluated by:- tst_QByteArray
- tst_QChar
- tst_QNetworkCookieJar
- tst_Selftests
| FALSE | evaluated 132395 times by 66 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | } | - |
1072 | bool QByteArray::endsWith(const QByteArray &ba) const | - |
1073 | { | - |
1074 | if (d == ba.dTRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
|| ba.d->size == 0TRUE | evaluated 4 times by 1 test | FALSE | evaluated 5 times by 1 test |
) | 2-9 |
1075 | returnexecuted 6 times by 1 test: return true; true;executed 6 times by 1 test: return true; | 6 |
1076 | if (d->size < ba.d->sizeTRUE | evaluated 3 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-3 |
1077 | returnexecuted 3 times by 1 test: return false; false;executed 3 times by 1 test: return false; | 3 |
1078 | returnexecuted 2 times by 1 test: return memcmp(d->data() + d->size - ba.d->size, ba.d->data(), ba.d->size) == 0; 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; | 2 |
1079 | } | - |
1080 | | - |
1081 | | - |
1082 | | - |
1083 | | - |
1084 | | - |
1085 | | - |
1086 | bool QByteArray::endsWith(const char *str) const | - |
1087 | { | - |
1088 | if (!strTRUE | evaluated 3 times by 1 test | FALSE | evaluated 227683 times by 506 testsEvaluated 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
- ...
|
|| !*strTRUE | evaluated 3 times by 1 test | FALSE | evaluated 227680 times by 506 testsEvaluated 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 | returnexecuted 6 times by 1 test: return true; true;executed 6 times by 1 test: return true; | 6 |
1090 | const int len = int(strlen(str)); | - |
1091 | if (d->size < lenTRUE | evaluated 50105 times by 196 testsEvaluated 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 | evaluated 177575 times by 506 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
1101 | bool QByteArray::endsWith(char ch) const | - |
1102 | { | - |
1103 | if (d->size == 0TRUE | evaluated 4 times by 1 test | FALSE | evaluated 73575 times by 326 testsEvaluated 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 | returnexecuted 4 times by 1 test: return false; false;executed 4 times by 1 test: return false; | 4 |
1105 | returnexecuted 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 | } | - |
1107 | QByteArray QByteArray::left(int len) const | - |
1108 | { | - |
1109 | if (len >= d->sizeTRUE | evaluated 221 times by 12 testsEvaluated 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
| FALSE | evaluated 80986 times by 48 testsEvaluated 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 | returnexecuted 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 < 0TRUE | never evaluated | FALSE | evaluated 80986 times by 48 testsEvaluated 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 | returnexecuted 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 | } | - |
1115 | QByteArray QByteArray::right(int len) const | - |
1116 | { | - |
1117 | if (len >= d->sizeTRUE | evaluated 13 times by 4 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_QDataStream
- tst_QIODevice
| FALSE | evaluated 616 times by 5 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_QAuthenticator
- tst_QDataStream
- tst_QIODevice
|
) | 13-616 |
1118 | returnexecuted 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 < 0TRUE | never evaluated | FALSE | evaluated 616 times by 5 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_QAuthenticator
- tst_QDataStream
- tst_QIODevice
|
) | 0-616 |
1120 | len = 0; never executed: len = 0; | 0 |
1121 | returnexecuted 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 | } | - |
1123 | QByteArray QByteArray::mid(int pos, int len) const | - |
1124 | { | - |
1125 | using namespace QtPrivate; | - |
1126 | switch (QContainerImplHelper::mid(size(), &pos, &len)) { | - |
1127 | caseexecuted 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 | returnexecuted 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 | caseexecuted 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 | returnexecuted 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 | caseexecuted 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 | returnexecuted 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 | caseexecuted 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 | returnexecuted 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 | } | - |
1142 | template <typename T> | - |
1143 | __attribute__((noinline)) | - |
1144 | static 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 != eTRUE | evaluated 424735 times by 165 testsEvaluated 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
- ...
| FALSE | evaluated 49823 times by 112 testsEvaluated 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 != convertedTRUE | evaluated 46309 times by 157 testsEvaluated 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
- ...
| FALSE | evaluated 378426 times by 65 testsEvaluated 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 == eTRUE | evaluated 49823 times by 112 testsEvaluated 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
- ...
| FALSE | evaluated 46309 times by 157 testsEvaluated 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 | returnexecuted 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 != eTRUE | evaluated 456777 times by 157 testsEvaluated 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
- ...
| FALSE | evaluated 46309 times by 157 testsEvaluated 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 | returnexecuted 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 | | - |
1171 | QByteArray QByteArray::toLower_helper(const QByteArray &a) | - |
1172 | { | - |
1173 | returnexecuted 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 | | - |
1176 | QByteArray QByteArray::toLower_helper(QByteArray &a) | - |
1177 | { | - |
1178 | returnexecuted 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 | } | - |
1180 | QByteArray QByteArray::toUpper_helper(const QByteArray &a) | - |
1181 | { | - |
1182 | returnexecuted 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 | | - |
1185 | QByteArray QByteArray::toUpper_helper(QByteArray &a) | - |
1186 | { | - |
1187 | returnexecuted 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 | } | - |
1189 | void QByteArray::clear() | - |
1190 | { | - |
1191 | if (!d->ref.deref()TRUE | evaluated 87623 times by 139 testsEvaluated 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
- ...
| FALSE | evaluated 779393 times by 212 testsEvaluated 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 |
1195 | QDataStream &operator<<(QDataStream &out, const QByteArray &ba) | - |
1196 | { | - |
1197 | if (ba.isNull()TRUE | evaluated 19 times by 5 testsEvaluated by:- tst_QDataStream
- tst_QMetaObjectBuilder
- tst_QMetaType
- tst_QUrl
- tst_QVariant
| FALSE | evaluated 799 times by 11 testsEvaluated 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() >= 6TRUE | evaluated 19 times by 5 testsEvaluated by:- tst_QDataStream
- tst_QMetaObjectBuilder
- tst_QMetaType
- tst_QUrl
- tst_QVariant
| FALSE | never evaluated |
) { | 0-799 |
1198 | out << (quint32)0xffffffff; | - |
1199 | returnexecuted 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 | returnexecuted 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 | } | - |
1203 | QDataStream &operator>>(QDataStream &in, QByteArray &ba) | - |
1204 | { | - |
1205 | ba.clear(); | - |
1206 | quint32 len; | - |
1207 | in >> len; | - |
1208 | if (len == 0xffffffffTRUE | evaluated 24 times by 5 testsEvaluated by:- tst_QDataStream
- tst_QMetaObjectBuilder
- tst_QMetaType
- tst_QUrl
- tst_QVariant
| FALSE | evaluated 946 times by 14 testsEvaluated 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 | returnexecuted 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) != blockSizeTRUE | evaluated 11 times by 1 test | FALSE | evaluated 949 times by 14 testsEvaluated 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 | returnexecuted 11 times by 1 test: return in; in;executed 11 times by 1 test: return in; | 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 < lenTRUE | evaluated 14 times by 1 test | FALSE | evaluated 935 times by 14 testsEvaluated 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 | returnexecuted 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 | } | - |
1227 | QByteArray QByteArray::simplified_helper(const QByteArray &a) | - |
1228 | { | - |
1229 | returnexecuted 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 | | - |
1232 | QByteArray QByteArray::simplified_helper(QByteArray &a) | - |
1233 | { | - |
1234 | returnexecuted 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 | } | - |
1236 | QByteArray QByteArray::trimmed_helper(const QByteArray &a) | - |
1237 | { | - |
1238 | returnexecuted 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 | | - |
1241 | QByteArray QByteArray::trimmed_helper(QByteArray &a) | - |
1242 | { | - |
1243 | returnexecuted 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 | } | - |
1245 | QByteArray 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 > 0TRUE | evaluated 13 times by 2 testsEvaluated by:- tst_QAuthenticator
- tst_QByteArray
| FALSE | evaluated 8 times by 1 test |
) { | 8-13 |
1251 | result.resize(len+padlen); | - |
1252 | if (lenTRUE | evaluated 12 times by 2 testsEvaluated by:- tst_QAuthenticator
- tst_QByteArray
| FALSE | evaluated 1 time by 1 test |
) | 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 (truncateTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
) | 4 |
1257 | result = left(width);executed 4 times by 1 test: result = left(width); | 4 |
1258 | else | - |
1259 | result = *this;executed 4 times by 1 test: result = *this; | 4 |
1260 | } | - |
1261 | returnexecuted 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 | } | - |
1263 | QByteArray 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 > 0TRUE | evaluated 3111 times by 10 testsEvaluated 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
| FALSE | evaluated 4795 times by 10 testsEvaluated 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 (lenTRUE | evaluated 3110 times by 10 testsEvaluated 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
| FALSE | evaluated 1 time by 1 test |
) | 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 (truncateTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4791 times by 10 testsEvaluated 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); | 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 | returnexecuted 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 | | - |
1282 | bool QByteArray::isNull() const { returnexecuted 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 | | - |
1284 | static qlonglong toIntegral_helper(const char *data, bool *ok, int base, qlonglong) | - |
1285 | { | - |
1286 | returnexecuted 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 | | - |
1289 | static qulonglong toIntegral_helper(const char *data, bool *ok, int base, qulonglong) | - |
1290 | { | - |
1291 | returnexecuted 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 | | - |
1294 | template <typename T> static inline | - |
1295 | T 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) != valTRUE | never evaluated | FALSE | evaluated 206258 times by 56 testsEvaluated 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 (okTRUE | never evaluated | FALSE | never 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 | returnexecuted 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 | } | - |
1308 | qlonglong QByteArray::toLongLong(bool *ok, int base) const | - |
1309 | { | - |
1310 | returnexecuted 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 | } | - |
1312 | qulonglong QByteArray::toULongLong(bool *ok, int base) const | - |
1313 | { | - |
1314 | returnexecuted 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 | } | - |
1316 | int QByteArray::toInt(bool *ok, int base) const | - |
1317 | { | - |
1318 | returnexecuted 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 | } | - |
1320 | uint QByteArray::toUInt(bool *ok, int base) const | - |
1321 | { | - |
1322 | returnexecuted 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 | } | - |
1324 | long QByteArray::toLong(bool *ok, int base) const | - |
1325 | { | - |
1326 | returnexecuted 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 | } | - |
1328 | ulong QByteArray::toULong(bool *ok, int base) const | - |
1329 | { | - |
1330 | returnexecuted 10 times by 1 test: return toIntegral_helper<ulong>(nulTerminated().constData(), ok, base); toIntegral_helper<ulong>(nulTerminated().constData(), ok, base);executed 10 times by 1 test: return toIntegral_helper<ulong>(nulTerminated().constData(), ok, base); | 10 |
1331 | } | - |
1332 | short 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 | } | - |
1336 | ushort 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 | } | - |
1340 | double 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 (okTRUE | evaluated 184 times by 3 testsEvaluated by:- tst_QDoubleValidator
- tst_QPrinter
- tst_QVariant
| FALSE | never 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 | returnexecuted 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 | } | - |
1350 | float QByteArray::toFloat(bool *ok) const | - |
1351 | { | - |
1352 | returnexecuted 3 times by 1 test: return QLocaleData::convertDoubleToFloat(toDouble(ok), ok); QLocaleData::convertDoubleToFloat(toDouble(ok), ok);executed 3 times by 1 test: return QLocaleData::convertDoubleToFloat(toDouble(ok), ok); | 3 |
1353 | } | - |
1354 | QByteArray QByteArray::toBase64() const | - |
1355 | { | - |
1356 | returnexecuted 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 | } | - |
1358 | QByteArray 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 & Base64UrlEncodingTRUE | evaluated 36 times by 1 test | FALSE | evaluated 788 times by 13 testsEvaluated 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->sizeTRUE | evaluated 746931 times by 13 testsEvaluated 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
| FALSE | evaluated 824 times by 13 testsEvaluated 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->sizeTRUE | evaluated 426 times by 12 testsEvaluated 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
| FALSE | evaluated 746505 times by 13 testsEvaluated 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->sizeTRUE | evaluated 246 times by 7 testsEvaluated by:- tst_QAuthenticator
- tst_QByteArray
- tst_QHttpNetworkConnection
- tst_QImageReader
- tst_QNetworkReply
- tst_QSslCertificate
- tst_QSslKey
| FALSE | evaluated 746259 times by 13 testsEvaluated 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 > 1TRUE | evaluated 426 times by 12 testsEvaluated 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
| FALSE | evaluated 746505 times by 13 testsEvaluated 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 ((TRUE | evaluated 412 times by 12 testsEvaluated 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
| FALSE | evaluated 14 times by 1 test |
options & OmitTrailingEquals) == 0TRUE | evaluated 412 times by 12 testsEvaluated 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
| FALSE | evaluated 14 times by 1 test |
) | 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 > 0TRUE | evaluated 672 times by 13 testsEvaluated 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
| FALSE | evaluated 746259 times by 13 testsEvaluated 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 ((TRUE | evaluated 646 times by 13 testsEvaluated 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
| FALSE | evaluated 26 times by 1 test |
options & OmitTrailingEquals) == 0TRUE | evaluated 646 times by 13 testsEvaluated 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
| FALSE | evaluated 26 times by 1 test |
) | 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 & OmitTrailingEqualsTRUE | evaluated 36 times by 1 test | FALSE | evaluated 788 times by 13 testsEvaluated 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()); | 36 |
1409 | returnexecuted 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 | } | - |
1411 | static 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 < 10TRUE | evaluated 2544906 times by 130 testsEvaluated 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
- ...
| FALSE | evaluated 36849 times by 29 testsEvaluated 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 (nTRUE | evaluated 2057604 times by 109 testsEvaluated 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
- ...
| FALSE | evaluated 524151 times by 130 testsEvaluated 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 | returnexecuted 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 | | - |
1434 | QByteArray &QByteArray::setNum(qlonglong n, int base) | - |
1435 | { | - |
1436 | const int buffsize = 66; | - |
1437 | char buff[buffsize]; | - |
1438 | char *p; | - |
1439 | | - |
1440 | if (n < 0TRUE | evaluated 1846 times by 12 testsEvaluated 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
| FALSE | evaluated 499468 times by 124 testsEvaluated 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 == 10TRUE | evaluated 1657 times by 9 testsEvaluated by:- tst_QAccessibility
- tst_QByteArray
- tst_QDataStream
- tst_QGetPutEnv
- tst_QGraphicsGridLayout
- tst_QGraphicsLinearLayout
- tst_QLineEdit
- tst_QPainterPath
- tst_QVariant
| FALSE | evaluated 189 times by 4 testsEvaluated 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 | returnexecuted 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 | | - |
1458 | QByteArray &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 | returnexecuted 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 | } | - |
1468 | QByteArray &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)TRUE | never evaluated | FALSE | evaluated 265 times by 4 testsEvaluated 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 | caseexecuted 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 | returnexecuted 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 | } | - |
1497 | QByteArray QByteArray::number(int n, int base) | - |
1498 | { | - |
1499 | QByteArray s; | - |
1500 | s.setNum(n, base); | - |
1501 | returnexecuted 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 | | - |
1509 | QByteArray QByteArray::number(uint n, int base) | - |
1510 | { | - |
1511 | QByteArray s; | - |
1512 | s.setNum(n, base); | - |
1513 | returnexecuted 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 | | - |
1521 | QByteArray QByteArray::number(qlonglong n, int base) | - |
1522 | { | - |
1523 | QByteArray s; | - |
1524 | s.setNum(n, base); | - |
1525 | returnexecuted 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 | | - |
1533 | QByteArray QByteArray::number(qulonglong n, int base) | - |
1534 | { | - |
1535 | QByteArray s; | - |
1536 | s.setNum(n, base); | - |
1537 | returnexecuted 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 | } | - |
1539 | QByteArray QByteArray::number(double n, char f, int prec) | - |
1540 | { | - |
1541 | QByteArray s; | - |
1542 | s.setNum(n, f, prec); | - |
1543 | returnexecuted 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 | } | - |
1545 | QByteArray QByteArray::fromRawData(const char *data, int size) | - |
1546 | { | - |
1547 | Data *x; | - |
1548 | if (!dataTRUE | never evaluated | FALSE | evaluated 1429444 times by 538 testsEvaluated 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 (!sizeTRUE | evaluated 19 times by 4 testsEvaluated by:- tst_QByteArray
- tst_QImage
- tst_QNetworkReply
- tst_Spdy
| FALSE | evaluated 1429425 times by 538 testsEvaluated 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)TRUE | never evaluated | FALSE | evaluated 1429425 times by 538 testsEvaluated 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 | returnexecuted 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 | } | - |
1559 | QByteArray &QByteArray::setRawData(const char *data, uint size) | - |
1560 | { | - |
1561 | if (d->ref.isShared()TRUE | evaluated 9 times by 3 testsEvaluated by:- tst_QFileSelector
- tst_QOpenGlConfig
- tst_selftests - unknown status
| FALSE | evaluated 63 times by 3 testsEvaluated by:- tst_QFileSelector
- tst_QOpenGlConfig
- tst_selftests - unknown status
|
|| d->allocTRUE | never evaluated | FALSE | evaluated 63 times by 3 testsEvaluated 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 (dataTRUE | evaluated 63 times by 3 testsEvaluated by:- tst_QFileSelector
- tst_QOpenGlConfig
- tst_selftests - unknown status
| FALSE | never 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 | returnexecuted 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 | } | - |
1575 | QByteArray QByteArray::fromBase64(const QByteArray &base64) | - |
1576 | { | - |
1577 | returnexecuted 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 | } | - |
1579 | QByteArray 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()TRUE | evaluated 32617667 times by 12 testsEvaluated 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
| FALSE | evaluated 20656 times by 12 testsEvaluated 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'TRUE | evaluated 27612786 times by 12 testsEvaluated 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
| FALSE | evaluated 5004881 times by 12 testsEvaluated 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'TRUE | evaluated 16157894 times by 12 testsEvaluated 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
| FALSE | evaluated 11454892 times by 12 testsEvaluated 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'TRUE | evaluated 11454882 times by 12 testsEvaluated 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
| FALSE | evaluated 5004891 times by 12 testsEvaluated 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'TRUE | evaluated 11454882 times by 12 testsEvaluated 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
| FALSE | never 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'TRUE | evaluated 3933414 times by 12 testsEvaluated 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
| FALSE | evaluated 1071477 times by 11 testsEvaluated 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'TRUE | evaluated 3914698 times by 12 testsEvaluated 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
| FALSE | evaluated 18716 times by 8 testsEvaluated 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 == '+'TRUE | evaluated 282779 times by 11 testsEvaluated 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
| FALSE | evaluated 807414 times by 12 testsEvaluated 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
|
&& (TRUE | evaluated 282773 times by 11 testsEvaluated 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
| FALSE | evaluated 6 times by 1 test |
options & Base64UrlEncoding) == 0TRUE | evaluated 282773 times by 11 testsEvaluated 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
| FALSE | evaluated 6 times by 1 test |
) | 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 == '-'TRUE | evaluated 12 times by 1 test | FALSE | evaluated 807408 times by 12 testsEvaluated 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
|
&& (TRUE | evaluated 6 times by 1 test | FALSE | evaluated 6 times by 1 test |
options & Base64UrlEncoding) != 0TRUE | evaluated 6 times by 1 test | FALSE | evaluated 6 times by 1 test |
) | 6-807408 |
1599 | d = 62;executed 6 times by 1 test: d = 62; | 6 |
1600 | else if (ch == '/'TRUE | evaluated 322304 times by 11 testsEvaluated 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
| FALSE | evaluated 485110 times by 8 testsEvaluated by:- tst_QAuthenticator
- tst_QByteArray
- tst_QImageReader
- tst_QNetworkReply
- tst_QSslCertificate
- tst_QSslKey
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_static
|
&& (TRUE | evaluated 322299 times by 11 testsEvaluated 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
| FALSE | evaluated 5 times by 1 test |
options & Base64UrlEncoding) == 0TRUE | evaluated 322299 times by 11 testsEvaluated 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
| FALSE | evaluated 5 times by 1 test |
) | 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 == '_'TRUE | evaluated 10 times by 1 test | FALSE | evaluated 485105 times by 8 testsEvaluated by:- tst_QAuthenticator
- tst_QByteArray
- tst_QImageReader
- tst_QNetworkReply
- tst_QSslCertificate
- tst_QSslKey
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_static
|
&& (TRUE | evaluated 5 times by 1 test | FALSE | evaluated 5 times by 1 test |
options & Base64UrlEncoding) != 0TRUE | evaluated 5 times by 1 test | FALSE | evaluated 5 times by 1 test |
) | 5-485105 |
1603 | d = 63;executed 5 times by 1 test: d = 63; | 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 != -1TRUE | evaluated 32132557 times by 12 testsEvaluated 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
| FALSE | evaluated 485110 times by 8 testsEvaluated 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 >= 8TRUE | evaluated 24094738 times by 12 testsEvaluated 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
| FALSE | evaluated 8037819 times by 12 testsEvaluated 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 | returnexecuted 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 | } | - |
1621 | QByteArray 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 >= 0TRUE | evaluated 9924 times by 11 testsEvaluated by:- tst_QAsn1Element
- tst_QByteArray
- tst_QCryptographicHash
- tst_QHeaderView
- tst_QMessageAuthenticationCode
- tst_QMimeDatabase
- tst_QSslCertificate
- tst_QSslKey
- tst_QTextCodec
- tst_QUuid
- tst_QVariant
| FALSE | evaluated 180 times by 11 testsEvaluated 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 == -1TRUE | evaluated 1031 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QSslCertificate
| FALSE | evaluated 8893 times by 11 testsEvaluated 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_digitTRUE | evaluated 4449 times by 11 testsEvaluated by:- tst_QAsn1Element
- tst_QByteArray
- tst_QCryptographicHash
- tst_QHeaderView
- tst_QMessageAuthenticationCode
- tst_QMimeDatabase
- tst_QSslCertificate
- tst_QSslKey
- tst_QTextCodec
- tst_QUuid
- tst_QVariant
| FALSE | evaluated 4444 times by 11 testsEvaluated 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 | returnexecuted 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 | | - |
1652 | QByteArray 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->sizeTRUE | evaluated 197289 times by 26 testsEvaluated 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
- ...
| FALSE | evaluated 10238 times by 26 testsEvaluated 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 | returnexecuted 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 | | - |
1664 | static void q_fromPercentEncoding(QByteArray *ba, char percent) | - |
1665 | { | - |
1666 | if (ba->isEmpty()TRUE | never evaluated | FALSE | evaluated 84 times by 5 testsEvaluated 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 < lenTRUE | evaluated 1998 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 84 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
|
) { | 84-1998 |
1678 | c = inputPtr[i]; | - |
1679 | if (c == percentTRUE | evaluated 196 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 1802 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
|
&& i + 2 < lenTRUE | evaluated 196 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
| FALSE | never evaluated |
) { | 0-1802 |
1680 | a = inputPtr[++i]; | - |
1681 | b = inputPtr[++i]; | - |
1682 | | - |
1683 | if (a >= '0'TRUE | evaluated 196 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
| FALSE | never evaluated |
&& a <= '9'TRUE | evaluated 189 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 7 times by 4 testsEvaluated 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'TRUE | never evaluated | FALSE | evaluated 7 times by 4 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
|
&& a <= 'f'TRUE | never evaluated | FALSE | never evaluated |
) a = a - 'a' + 10;never executed: a = a - 'a' + 10; | 0-7 |
1685 | else if (a >= 'A'TRUE | evaluated 7 times by 4 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
| FALSE | never evaluated |
&& a <= 'F'TRUE | evaluated 7 times by 4 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
| FALSE | never 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'TRUE | evaluated 196 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
| FALSE | never evaluated |
&& b <= '9'TRUE | evaluated 126 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 70 times by 4 testsEvaluated 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'TRUE | never evaluated | FALSE | evaluated 70 times by 4 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
|
&& b <= 'f'TRUE | never evaluated | FALSE | never evaluated |
) b = b - 'a' + 10;never executed: b = b - 'a' + 10; | 0-70 |
1689 | else if (b >= 'A'TRUE | evaluated 70 times by 4 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
| FALSE | never evaluated |
&& b <= 'F'TRUE | evaluated 70 times by 4 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
| FALSE | never 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 != lenTRUE | evaluated 58 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 26 times by 4 testsEvaluated 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 | | - |
1704 | void q_fromPercentEncoding(QByteArray *ba) | - |
1705 | { | - |
1706 | q_fromPercentEncoding(ba, '%'); | - |
1707 | } never executed: end of block | 0 |
1708 | QByteArray QByteArray::fromPercentEncoding(const QByteArray &input, char percent) | - |
1709 | { | - |
1710 | if (input.isNull()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 89 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
|
) | 2-89 |
1711 | returnexecuted 2 times by 1 test: return QByteArray(); QByteArray();executed 2 times by 1 test: return QByteArray(); | 2 |
1712 | if (input.isEmpty()TRUE | evaluated 5 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 84 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
|
) | 5-84 |
1713 | returnexecuted 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 | returnexecuted 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 | } | - |
1719 | static inline bool q_strchr(const char str[], char chr) | - |
1720 | { | - |
1721 | if (!strTRUE | never evaluated | FALSE | evaluated 826 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) returnnever executed: return false; false;never executed: return false; | 0-826 |
1722 | | - |
1723 | const char *ptr = str; | - |
1724 | char c; | - |
1725 | while ((TRUE | evaluated 516 times by 2 tests | FALSE | evaluated 777 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
c = *ptr++)TRUE | evaluated 516 times by 2 tests | FALSE | evaluated 777 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 516-777 |
1726 | if (c == chrTRUE | evaluated 49 times by 2 tests | FALSE | evaluated 467 times by 2 tests |
) | 49-467 |
1727 | returnexecuted 49 times by 2 tests: return true; true;executed 49 times by 2 tests: return true; | 49 |
1728 | returnexecuted 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 | | - |
1731 | static void q_toPercentEncoding(QByteArray *ba, const char *dontEncode, const char *alsoEncode, char percent) | - |
1732 | { | - |
1733 | if (ba->isEmpty()TRUE | never evaluated | FALSE | evaluated 124 times by 3 testsEvaluated 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 < lenTRUE | evaluated 793 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 124 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
; ++i) { | 124-793 |
1743 | unsigned char c = *inputData++; | - |
1744 | if (((c >= 0x61TRUE | evaluated 578 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 215 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
&& c <= 0x7ATRUE | evaluated 203 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 375 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 203-578 |
1745 | || (c >= 0x41TRUE | evaluated 448 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 142 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
&& c <= 0x5ATRUE | evaluated 61 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 387 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 61-448 |
1746 | || (c >= 0x30TRUE | evaluated 433 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 96 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
&& c <= 0x39TRUE | evaluated 22 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 411 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 22-433 |
1747 | || c == 0x2DTRUE | evaluated 6 times by 2 tests | FALSE | evaluated 501 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
| 6-501 |
1748 | || c == 0x2ETRUE | evaluated 9 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 492 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
| 9-492 |
1749 | || c == 0x5FTRUE | evaluated 2 times by 2 tests | FALSE | evaluated 490 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
| 2-490 |
1750 | || c == 0x7ETRUE | evaluated 2 times by 2 tests | FALSE | evaluated 488 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
| 2-488 |
1751 | || q_strchr(dontEncode, c)TRUE | evaluated 33 times by 2 tests | FALSE | evaluated 455 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 33-455 |
1752 | && !q_strchr(alsoEncode, c)TRUE | evaluated 322 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 16 times by 2 tests |
) { | 16-322 |
1753 | if (outputTRUE | evaluated 138 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 184 times by 3 testsEvaluated 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 (!outputTRUE | evaluated 120 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 351 times by 3 testsEvaluated 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 (outputTRUE | evaluated 120 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 4 times by 2 tests |
) | 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 | | - |
1771 | void 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 | | - |
1776 | void 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 |
1781 | QByteArray QByteArray::toPercentEncoding(const QByteArray &exclude, const QByteArray &include, | - |
1782 | char percent) const | - |
1783 | { | - |
1784 | if (isNull()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 128 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 2-128 |
1785 | returnexecuted 2 times by 1 test: return QByteArray(); QByteArray();executed 2 times by 1 test: return QByteArray(); | 2 |
1786 | if (isEmpty()TRUE | evaluated 4 times by 2 tests | FALSE | evaluated 124 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 4-124 |
1787 | returnexecuted 4 times by 2 tests: return QByteArray(data(), 0); QByteArray(data(), 0);executed 4 times by 2 tests: return QByteArray(data(), 0); | 4 |
1788 | | - |
1789 | QByteArray include2 = include; | - |
1790 | if (percent != '%'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 123 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 1-123 |
1791 | if ((percent >= 0x61TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
&& percent <= 0x7ATRUE | never evaluated | FALSE | never evaluated |
) | 0-1 |
1792 | || (percent >= 0x41TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
&& percent <= 0x5ATRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) | 0-1 |
1793 | || (percent >= 0x30TRUE | never evaluated | FALSE | never evaluated |
&& percent <= 0x39TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1794 | || percent == 0x2DTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1795 | || percent == 0x2ETRUE | never evaluated | FALSE | never evaluated |
| 0 |
1796 | || percent == 0x5FTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1797 | || percent == 0x7ETRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1798 | include2 += percent;executed 1 time by 1 test: include2 += percent; | 1 |
1799 | | - |
1800 | QByteArray result = *this; | - |
1801 | q_toPercentEncoding(&result, exclude.nulTerminated().constData(), include2.nulTerminated().constData(), percent); | - |
1802 | | - |
1803 | returnexecuted 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 | | - |
| | |