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 | | - |
52 | | - |
53 | int qAllocMore(int alloc, int extra) noexcept | - |
54 | { | - |
55 | ((!(alloc >= 0 && extra >= 0 && extra <= MaxAllocSize)) ? qt_assert("alloc >= 0 && extra >= 0 && extra <= MaxAllocSize",__FILE__,127) : qt_noop()); | - |
56 | ((!(alloc <= MaxAllocSize - extra)) ? qt_assert_x("qAllocMore", "Requested size is too large!",__FILE__,128) : qt_noop()); | - |
57 | | - |
58 | unsigned nalloc = qNextPowerOfTwo(alloc + extra); | - |
59 | | - |
60 | ((!(nalloc > unsigned(alloc + extra))) ? qt_assert("nalloc > unsigned(alloc + extra)",__FILE__,132) : qt_noop()); | - |
61 | | - |
62 | returnexecuted 16905179 times by 741 tests: return nalloc - extra; 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
- ...
nalloc - extra;executed 16905179 times by 741 tests: return nalloc - extra; 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
- ...
| 16905179 |
63 | } | - |
64 | char *qstrdup(const char *src) | - |
65 | { | - |
66 | if (!srcTRUE | evaluated 17644 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAbstractItemModel
- tst_QAbstractProxyModel
- tst_QDockWidget
- tst_QGraphicsItem
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QHeaderView
- 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 1132234 times by 535 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
|
) | 17644-1132234 |
67 | returnexecuted 17644 times by 23 tests: return 0; Executed by:- tst_Gestures
- tst_QAbstractItemModel
- tst_QAbstractProxyModel
- tst_QDockWidget
- tst_QGraphicsItem
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QHeaderView
- 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 17644 times by 23 tests: return 0; Executed by:- tst_Gestures
- tst_QAbstractItemModel
- tst_QAbstractProxyModel
- tst_QDockWidget
- tst_QGraphicsItem
- tst_QGraphicsView
- tst_QGraphicsWidget
- tst_QHeaderView
- 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
| 17644 |
68 | char *dst = new char[strlen(src) + 1]; | - |
69 | returnexecuted 1132234 times by 535 tests: return qstrcpy(dst, src); Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
qstrcpy(dst, src);executed 1132234 times by 535 tests: return qstrcpy(dst, src); Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
| 1132234 |
70 | } | - |
71 | char *qstrcpy(char *dst, const char *src) | - |
72 | { | - |
73 | if (!srcTRUE | evaluated 2 times by 1 test | FALSE | evaluated 1134973 times by 535 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
|
) | 2-1134973 |
74 | returnexecuted 2 times by 1 test: return 0; 0;executed 2 times by 1 test: return 0; | 2 |
75 | returnexecuted 1134973 times by 535 tests: return strcpy(dst, src); Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
strcpy(dst, src);executed 1134973 times by 535 tests: return strcpy(dst, src); Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
| 1134973 |
76 | | - |
77 | } | - |
78 | char *qstrncpy(char *dst, const char *src, uint len) | - |
79 | { | - |
80 | 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 |
81 | returnexecuted 4 times by 1 test: return 0; 0;executed 4 times by 1 test: return 0; | 4 |
82 | 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 |
83 | | - |
84 | | - |
85 | | - |
86 | strncpy(dst, src, len); | - |
87 | | - |
88 | dst[len-1] = '\0'; | - |
89 | }executed 199 times by 4 tests: end of block Executed by:- tst_QAuthenticator
- tst_QByteArray
- tst_QByteDataBuffer
- tst_selftests - unknown status
| 199 |
90 | 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 |
91 | } | - |
92 | int qstrcmp(const char *str1, const char *str2) | - |
93 | { | - |
94 | returnexecuted 496335 times by 196 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
- ...
(str1TRUE | evaluated 496323 times by 196 testsEvaluated 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
- ...
| FALSE | evaluated 12 times by 4 testsEvaluated by:- tst_QByteArray
- tst_QDBusAbstractAdaptor
- tst_QVariant
- tst_qmessagehandler
|
&& str2TRUE | evaluated 496323 times by 196 testsEvaluated 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
- ...
| FALSE | never evaluated |
) ? strcmp(str1, str2)executed 496335 times by 196 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
- ...
| 0-496335 |
95 | : (str1TRUE | never evaluated | FALSE | evaluated 12 times by 4 testsEvaluated by:- tst_QByteArray
- tst_QDBusAbstractAdaptor
- tst_QVariant
- tst_qmessagehandler
|
? 1 : (str2TRUE | evaluated 2 times by 1 test | FALSE | evaluated 10 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QVariant
- tst_qmessagehandler
|
? -1 : 0));executed 496335 times by 196 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
- ...
| 0-496335 |
96 | } | - |
97 | int qstricmp(const char *str1, const char *str2) | - |
98 | { | - |
99 | const uchar *s1 = reinterpret_cast<const uchar *>(str1); | - |
100 | const uchar *s2 = reinterpret_cast<const uchar *>(str2); | - |
101 | int res; | - |
102 | uchar c; | - |
103 | if (!s1TRUE | evaluated 2 times by 1 test | FALSE | evaluated 230632 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 230631 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-230632 |
104 | returnexecuted 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0); s1TRUE | evaluated 1 time by 1 test | FALSE | evaluated 2 times by 1 test |
? 1 : (s2TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1 time by 1 test |
? -1 : 0);executed 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0); | 1-3 |
105 | for (; !(res = (c = latin1_lowercased[*s1]) - latin1_lowercased[*s2])TRUE | evaluated 354989 times by 19 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
- tst_qnetworkreply - unknown status
| FALSE | evaluated 215220 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++) | 215220-354989 |
106 | if (!cTRUE | evaluated 15411 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 339578 times by 19 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
- tst_qnetworkreply - unknown status
|
) | 15411-339578 |
107 | break;executed 15411 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
| 15411 |
108 | returnexecuted 230631 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 230631 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
- ...
| 230631 |
109 | } | - |
110 | int qstrnicmp(const char *str1, const char *str2, uint len) | - |
111 | { | - |
112 | const uchar *s1 = reinterpret_cast<const uchar *>(str1); | - |
113 | const uchar *s2 = reinterpret_cast<const uchar *>(str2); | - |
114 | int res; | - |
115 | uchar c; | - |
116 | if (!s1TRUE | evaluated 2 times by 1 test | FALSE | evaluated 799 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 798 times by 8 testsEvaluated by:- tst_QByteArray
- tst_QGlobal
- tst_QSettings
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_selftests - unknown status
|
) | 1-799 |
117 | returnexecuted 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0); s1TRUE | evaluated 1 time by 1 test | FALSE | evaluated 2 times by 1 test |
? 1 : (s2TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1 time by 1 test |
? -1 : 0);executed 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0); | 1-3 |
118 | for (; len--TRUE | evaluated 918 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-918 |
119 | if ((TRUE | evaluated 787 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 787 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-787 |
120 | returnexecuted 787 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 787 times by 7 tests: return res; Executed by:- tst_QGlobal
- tst_QSettings
- tst_QTextCodec
- tst_QTextStream
- tst_QXmlSimpleReader
- tst_QXmlStream
- tst_selftests - unknown status
| 787 |
121 | if (!cTRUE | evaluated 1 time by 1 test | FALSE | evaluated 130 times by 2 testsEvaluated by:- tst_QTextCodec
- tst_QXmlStream
|
) | 1-130 |
122 | break;executed 1 time by 1 test: break; | 1 |
123 | }executed 130 times by 2 tests: end of block Executed by:- tst_QTextCodec
- tst_QXmlStream
| 130 |
124 | 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 |
125 | } | - |
126 | | - |
127 | | - |
128 | | - |
129 | | - |
130 | int qstrcmp(const QByteArray &str1, const char *str2) | - |
131 | { | - |
132 | if (!str2TRUE | evaluated 32 times by 1 test | FALSE | evaluated 1384521 times by 545 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
|
) | 32-1384521 |
133 | returnexecuted 32 times by 1 test: return str1.isEmpty() ? 0 : +1; str1.isEmpty()TRUE | evaluated 24 times by 1 test | FALSE | evaluated 8 times by 1 test |
? 0 : +1;executed 32 times by 1 test: return str1.isEmpty() ? 0 : +1; | 8-32 |
134 | | - |
135 | const char *str1data = str1.constData(); | - |
136 | const char *str1end = str1data + str1.length(); | - |
137 | for ( ; str1data < str1endTRUE | evaluated 5265278 times by 545 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
| FALSE | evaluated 453468 times by 284 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QActionGroup
- tst_QApplication
- tst_QAtomicInteger_Gcc_char
- tst_QAtomicInteger_Gcc_char16_t
- tst_QAtomicInteger_Gcc_char32_t
- tst_QAtomicInteger_Gcc_int
- tst_QAtomicInteger_Gcc_long
- tst_QAtomicInteger_Gcc_qlonglong
- tst_QAtomicInteger_Gcc_qptrdiff
- tst_QAtomicInteger_Gcc_quintptr
- tst_QAtomicInteger_Gcc_qulonglong
- tst_QAtomicInteger_Gcc_schar
- tst_QAtomicInteger_Gcc_short
- ...
|
&& *TRUE | evaluated 5264970 times by 545 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
| FALSE | evaluated 308 times by 31 testsEvaluated by:- tst_QByteArray
- tst_QByteArrayList
- tst_QFlags
- tst_QGraphicsScene
- tst_QGraphicsWidget
- tst_QHash
- tst_QHash_StrictIterators
- tst_QHeaderView
- 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
- tst_QTreeWidgetItemIterator
- ...
|
str2TRUE | evaluated 5264970 times by 545 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
| FALSE | evaluated 308 times by 31 testsEvaluated by:- tst_QByteArray
- tst_QByteArrayList
- tst_QFlags
- tst_QGraphicsScene
- tst_QGraphicsWidget
- tst_QHash
- tst_QHash_StrictIterators
- tst_QHeaderView
- 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
- tst_QTreeWidgetItemIterator
- ...
|
; ++str1data, ++str2) { | 308-5265278 |
138 | int diff = int(uchar(*str1data)) - uchar(*str2); | - |
139 | if (diffTRUE | evaluated 930745 times by 544 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
| FALSE | evaluated 4334225 times by 443 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_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_Gcc_char
- ...
|
) | 930745-4334225 |
140 | | - |
141 | returnexecuted 930745 times by 544 tests: return diff; Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
diff;executed 930745 times by 544 tests: return diff; Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
| 930745 |
142 | }executed 4334225 times by 443 tests: end of block 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_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QActionGroup
- tst_QAlgorithms
- tst_QAnimationGroup
- tst_QApplication
- tst_QAsn1Element
- tst_QAtomicInt
- tst_QAtomicInteger_Gcc_char
- ...
| 4334225 |
143 | | - |
144 | | - |
145 | if (*TRUE | evaluated 2367 times by 165 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 451409 times by 257 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QActionGroup
- tst_QApplication
- tst_QAtomicInteger_Gcc_char
- tst_QAtomicInteger_Gcc_char16_t
- tst_QAtomicInteger_Gcc_char32_t
- tst_QAtomicInteger_Gcc_int
- tst_QAtomicInteger_Gcc_long
- tst_QAtomicInteger_Gcc_qlonglong
- tst_QAtomicInteger_Gcc_qptrdiff
- tst_QAtomicInteger_Gcc_quintptr
- tst_QAtomicInteger_Gcc_qulonglong
- tst_QAtomicInteger_Gcc_schar
- tst_QAtomicInteger_Gcc_short
- tst_QAtomicInteger_Gcc_uchar
- tst_QAtomicInteger_Gcc_uint
- ...
|
str2 != '\0'TRUE | evaluated 2367 times by 165 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 451409 times by 257 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QActionGroup
- tst_QApplication
- tst_QAtomicInteger_Gcc_char
- tst_QAtomicInteger_Gcc_char16_t
- tst_QAtomicInteger_Gcc_char32_t
- tst_QAtomicInteger_Gcc_int
- tst_QAtomicInteger_Gcc_long
- tst_QAtomicInteger_Gcc_qlonglong
- tst_QAtomicInteger_Gcc_qptrdiff
- tst_QAtomicInteger_Gcc_quintptr
- tst_QAtomicInteger_Gcc_qulonglong
- tst_QAtomicInteger_Gcc_schar
- tst_QAtomicInteger_Gcc_short
- tst_QAtomicInteger_Gcc_uchar
- tst_QAtomicInteger_Gcc_uint
- ...
|
) | 2367-451409 |
146 | | - |
147 | returnexecuted 2367 times by 165 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 2367 times by 165 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
- ...
| 2367 |
148 | if (str1data < str1endTRUE | evaluated 308 times by 31 testsEvaluated by:- tst_QByteArray
- tst_QByteArrayList
- tst_QFlags
- tst_QGraphicsScene
- tst_QGraphicsWidget
- tst_QHash
- tst_QHash_StrictIterators
- tst_QHeaderView
- 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
- tst_QTreeWidgetItemIterator
- ...
| FALSE | evaluated 451101 times by 241 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QActionGroup
- tst_QApplication
- tst_QAtomicInteger_Gcc_char
- tst_QAtomicInteger_Gcc_char16_t
- tst_QAtomicInteger_Gcc_char32_t
- tst_QAtomicInteger_Gcc_int
- tst_QAtomicInteger_Gcc_long
- tst_QAtomicInteger_Gcc_qlonglong
- tst_QAtomicInteger_Gcc_qptrdiff
- tst_QAtomicInteger_Gcc_quintptr
- tst_QAtomicInteger_Gcc_qulonglong
- tst_QAtomicInteger_Gcc_schar
- tst_QAtomicInteger_Gcc_short
- tst_QAtomicInteger_Gcc_uchar
- tst_QAtomicInteger_Gcc_uint
- ...
|
) | 308-451101 |
149 | | - |
150 | returnexecuted 308 times by 31 tests: return +1; Executed by:- tst_QByteArray
- tst_QByteArrayList
- tst_QFlags
- tst_QGraphicsScene
- tst_QGraphicsWidget
- tst_QHash
- tst_QHash_StrictIterators
- tst_QHeaderView
- 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
- tst_QTreeWidgetItemIterator
- ...
+1;executed 308 times by 31 tests: return +1; Executed by:- tst_QByteArray
- tst_QByteArrayList
- tst_QFlags
- tst_QGraphicsScene
- tst_QGraphicsWidget
- tst_QHash
- tst_QHash_StrictIterators
- tst_QHeaderView
- 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
- tst_QTreeWidgetItemIterator
- ...
| 308 |
151 | returnexecuted 451101 times by 241 tests: return 0; Executed by:- tst_Collections
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QActionGroup
- tst_QApplication
- tst_QAtomicInteger_Gcc_char
- tst_QAtomicInteger_Gcc_char16_t
- tst_QAtomicInteger_Gcc_char32_t
- tst_QAtomicInteger_Gcc_int
- tst_QAtomicInteger_Gcc_long
- tst_QAtomicInteger_Gcc_qlonglong
- tst_QAtomicInteger_Gcc_qptrdiff
- tst_QAtomicInteger_Gcc_quintptr
- tst_QAtomicInteger_Gcc_qulonglong
- tst_QAtomicInteger_Gcc_schar
- tst_QAtomicInteger_Gcc_short
- tst_QAtomicInteger_Gcc_uchar
- tst_QAtomicInteger_Gcc_uint
- ...
0;executed 451101 times by 241 tests: return 0; Executed by:- tst_Collections
- tst_LargeFile
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QActionGroup
- tst_QApplication
- tst_QAtomicInteger_Gcc_char
- tst_QAtomicInteger_Gcc_char16_t
- tst_QAtomicInteger_Gcc_char32_t
- tst_QAtomicInteger_Gcc_int
- tst_QAtomicInteger_Gcc_long
- tst_QAtomicInteger_Gcc_qlonglong
- tst_QAtomicInteger_Gcc_qptrdiff
- tst_QAtomicInteger_Gcc_quintptr
- tst_QAtomicInteger_Gcc_qulonglong
- tst_QAtomicInteger_Gcc_schar
- tst_QAtomicInteger_Gcc_short
- tst_QAtomicInteger_Gcc_uchar
- tst_QAtomicInteger_Gcc_uint
- ...
| 451101 |
152 | } | - |
153 | | - |
154 | | - |
155 | | - |
156 | | - |
157 | int qstrcmp(const QByteArray &str1, const QByteArray &str2) | - |
158 | { | - |
159 | int l1 = str1.length(); | - |
160 | int l2 = str2.length(); | - |
161 | int ret = memcmp(str1.constData(), str2.constData(), qMin(l1, l2)); | - |
162 | if (ret != 0TRUE | evaluated 5395567 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 42393 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
- ...
|
) | 42393-5395567 |
163 | returnexecuted 5395567 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 5395567 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
- ...
| 5395567 |
164 | | - |
165 | | - |
166 | | - |
167 | returnexecuted 42393 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 42393 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
- ...
| 42393 |
168 | } | - |
169 | static const quint16 crc_tbl[16] = { | - |
170 | 0x0000, 0x1081, 0x2102, 0x3183, | - |
171 | 0x4204, 0x5285, 0x6306, 0x7387, | - |
172 | 0x8408, 0x9489, 0xa50a, 0xb58b, | - |
173 | 0xc60c, 0xd68d, 0xe70e, 0xf78f | - |
174 | }; | - |
175 | quint16 qChecksum(const char *data, uint len) | - |
176 | { | - |
177 | quint16 crc = 0xffff; | - |
178 | uchar c; | - |
179 | const uchar *p = reinterpret_cast<const uchar *>(data); | - |
180 | 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 |
181 | c = *p++; | - |
182 | crc = ((crc >> 4) & 0x0fff) ^ crc_tbl[((crc ^ c) & 15)]; | - |
183 | c >>= 4; | - |
184 | crc = ((crc >> 4) & 0x0fff) ^ crc_tbl[((crc ^ c) & 15)]; | - |
185 | }executed 9971 times by 3 tests: end of block Executed by:- tst_QDataStream
- tst_QPicture
- tst_QPrinter
| 9971 |
186 | 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 |
187 | } | - |
188 | QByteArray qCompress(const uchar* data, int nbytes, int compressionLevel) | - |
189 | { | - |
190 | 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 |
191 | returnexecuted 1 time by 1 test: return QByteArray(4, '\0'); QByteArray(4, '\0');executed 1 time by 1 test: return QByteArray(4, '\0'); | 1 |
192 | } | - |
193 | if (!dataTRUE | never evaluated | FALSE | evaluated 21 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QNetworkDiskCache
- tst_QSettings
|
) { | 0-21 |
194 | QMessageLogger(__FILE__, 504, __PRETTY_FUNCTION__).warning("qCompress: Data is null"); | - |
195 | return never executed: return QByteArray(); QByteArray();never executed: return QByteArray(); | 0 |
196 | } | - |
197 | 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 |
198 | compressionLevel = -1; never executed: compressionLevel = -1; | 0 |
199 | | - |
200 | ulong len = nbytes + nbytes / 100 + 13; | - |
201 | QByteArray bazip; | - |
202 | int res; | - |
203 | do { | - |
204 | bazip.resize(len + 4); | - |
205 | res = ::compress2((uchar*)bazip.data()+4, &len, data, nbytes, compressionLevel); | - |
206 | | - |
207 | switch (res) { | - |
208 | 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 |
209 | bazip.resize(len + 4); | - |
210 | bazip[0] = (nbytes & 0xff000000) >> 24; | - |
211 | bazip[1] = (nbytes & 0x00ff0000) >> 16; | - |
212 | bazip[2] = (nbytes & 0x0000ff00) >> 8; | - |
213 | bazip[3] = (nbytes & 0x000000ff); | - |
214 | break;executed 21 times by 4 tests: break; Executed by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QNetworkDiskCache
- tst_QSettings
| 21 |
215 | case never executed: case (-4): (-4):never executed: case (-4): | 0 |
216 | QMessageLogger(__FILE__, 526, __PRETTY_FUNCTION__).warning("qCompress: Z_MEM_ERROR: Not enough memory"); | - |
217 | bazip.resize(0); | - |
218 | break; never executed: break; | 0 |
219 | case never executed: case (-5): (-5):never executed: case (-5): | 0 |
220 | len *= 2; | - |
221 | break; never executed: break; | 0 |
222 | } | - |
223 | }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 |
224 | | - |
225 | 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 |
226 | } | - |
227 | QByteArray qUncompress(const uchar* data, int nbytes) | - |
228 | { | - |
229 | if (!dataTRUE | never evaluated | FALSE | evaluated 704 times by 12 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QDirIterator
- tst_QFileInfo
- tst_QIcon
- tst_QImageReader
- tst_QKeySequence
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QResourceEngine
- tst_Selftests
- tst_rcc
|
) { | 0-704 |
230 | QMessageLogger(__FILE__, 574, __PRETTY_FUNCTION__).warning("qUncompress: Data is null"); | - |
231 | return never executed: return QByteArray(); QByteArray();never executed: return QByteArray(); | 0 |
232 | } | - |
233 | if (nbytes <= 4TRUE | evaluated 13 times by 1 test | FALSE | evaluated 691 times by 12 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QDirIterator
- tst_QFileInfo
- tst_QIcon
- tst_QImageReader
- tst_QKeySequence
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QResourceEngine
- tst_Selftests
- tst_rcc
|
) { | 13-691 |
234 | 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 |
235 | QMessageLogger(__FILE__, 579, __PRETTY_FUNCTION__).warning("qUncompress: Input data is corrupted");executed 11 times by 1 test: QMessageLogger(__FILE__, 579, __PRETTY_FUNCTION__).warning("qUncompress: Input data is corrupted"); | 11 |
236 | returnexecuted 13 times by 1 test: return QByteArray(); QByteArray();executed 13 times by 1 test: return QByteArray(); | 13 |
237 | } | - |
238 | ulong expectedSize = uint((data[0] << 24) | (data[1] << 16) | | - |
239 | (data[2] << 8) | (data[3] )); | - |
240 | ulong len = qMax(expectedSize, 1ul); | - |
241 | QScopedPointer<QByteArray::Data, QScopedPointerPodDeleter> d; | - |
242 | | - |
243 | for(;;) { | - |
244 | ulong alloc = len; | - |
245 | if (len >= (1u << 31u) - sizeof(QByteArray::Data)TRUE | evaluated 7 times by 1 test | FALSE | evaluated 684 times by 12 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QDirIterator
- tst_QFileInfo
- tst_QIcon
- tst_QImageReader
- tst_QKeySequence
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QResourceEngine
- tst_Selftests
- tst_rcc
|
) { | 7-684 |
246 | | - |
247 | QMessageLogger(__FILE__, 591, __PRETTY_FUNCTION__).warning("qUncompress: Input data is corrupted"); | - |
248 | returnexecuted 7 times by 1 test: return QByteArray(); QByteArray();executed 7 times by 1 test: return QByteArray(); | 7 |
249 | } | - |
250 | QByteArray::Data *p = static_cast<QByteArray::Data *>(::realloc(d.data(), sizeof(QByteArray::Data) + alloc + 1)); | - |
251 | if (!pTRUE | never evaluated | FALSE | evaluated 684 times by 12 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QDirIterator
- tst_QFileInfo
- tst_QIcon
- tst_QImageReader
- tst_QKeySequence
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QResourceEngine
- tst_Selftests
- tst_rcc
|
) { | 0-684 |
252 | | - |
253 | QMessageLogger(__FILE__, 597, __PRETTY_FUNCTION__).warning("qUncompress: could not allocate enough memory to uncompress data"); | - |
254 | return never executed: return QByteArray(); QByteArray();never executed: return QByteArray(); | 0 |
255 | } | - |
256 | d.take(); | - |
257 | d.reset(p); | - |
258 | d->offset = sizeof(QByteArrayData); | - |
259 | d->size = 0; | - |
260 | | - |
261 | int res = ::uncompress((uchar*)d->data(), &len, | - |
262 | data+4, nbytes-4); | - |
263 | | - |
264 | switch (res) { | - |
265 | caseexecuted 679 times by 12 tests: case 0: Executed by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QDirIterator
- tst_QFileInfo
- tst_QIcon
- tst_QImageReader
- tst_QKeySequence
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QResourceEngine
- tst_Selftests
- tst_rcc
0:executed 679 times by 12 tests: case 0: Executed by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QDirIterator
- tst_QFileInfo
- tst_QIcon
- tst_QImageReader
- tst_QKeySequence
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QResourceEngine
- tst_Selftests
- tst_rcc
| 679 |
266 | if (len != allocTRUE | never evaluated | FALSE | evaluated 679 times by 12 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QDirIterator
- tst_QFileInfo
- tst_QIcon
- tst_QImageReader
- tst_QKeySequence
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QResourceEngine
- tst_Selftests
- tst_rcc
|
) { | 0-679 |
267 | if (len >= (1u << 31u) - sizeof(QByteArray::Data)TRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
268 | | - |
269 | QMessageLogger(__FILE__, 613, __PRETTY_FUNCTION__).warning("qUncompress: Input data is corrupted"); | - |
270 | return never executed: return QByteArray(); QByteArray();never executed: return QByteArray(); | 0 |
271 | } | - |
272 | QByteArray::Data *p = static_cast<QByteArray::Data *>(::realloc(d.data(), sizeof(QByteArray::Data) + len + 1)); | - |
273 | if (!pTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
274 | | - |
275 | QMessageLogger(__FILE__, 619, __PRETTY_FUNCTION__).warning("qUncompress: could not allocate enough memory to uncompress data"); | - |
276 | return never executed: return QByteArray(); QByteArray();never executed: return QByteArray(); | 0 |
277 | } | - |
278 | d.take(); | - |
279 | d.reset(p); | - |
280 | } never executed: end of block | 0 |
281 | d->ref.initializeOwned(); | - |
282 | d->size = len; | - |
283 | d->alloc = uint(len) + 1u; | - |
284 | d->capacityReserved = false; | - |
285 | d->offset = sizeof(QByteArrayData); | - |
286 | d->data()[len] = 0; | - |
287 | | - |
288 | { | - |
289 | QByteArrayDataPtr dataPtr = { d.take() }; | - |
290 | returnexecuted 679 times by 12 tests: return QByteArray(dataPtr); Executed by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QDirIterator
- tst_QFileInfo
- tst_QIcon
- tst_QImageReader
- tst_QKeySequence
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QResourceEngine
- tst_Selftests
- tst_rcc
QByteArray(dataPtr);executed 679 times by 12 tests: return QByteArray(dataPtr); Executed by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QDirIterator
- tst_QFileInfo
- tst_QIcon
- tst_QImageReader
- tst_QKeySequence
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QResourceEngine
- tst_Selftests
- tst_rcc
| 679 |
291 | } | - |
292 | | - |
293 | case never executed: case (-4): (-4):never executed: case (-4): | 0 |
294 | QMessageLogger(__FILE__, 638, __PRETTY_FUNCTION__).warning("qUncompress: Z_MEM_ERROR: Not enough memory"); | - |
295 | return never executed: return QByteArray(); QByteArray();never executed: return QByteArray(); | 0 |
296 | | - |
297 | case never executed: case (-5): (-5):never executed: case (-5): | 0 |
298 | len *= 2; | - |
299 | continue; never executed: continue; | 0 |
300 | | - |
301 | caseexecuted 5 times by 1 test: case (-3): (-3):executed 5 times by 1 test: case (-3): | 5 |
302 | QMessageLogger(__FILE__, 646, __PRETTY_FUNCTION__).warning("qUncompress: Z_DATA_ERROR: Input data is corrupted"); | - |
303 | returnexecuted 5 times by 1 test: return QByteArray(); QByteArray();executed 5 times by 1 test: return QByteArray(); | 5 |
304 | } | - |
305 | } never executed: end of block | 0 |
306 | } never executed: end of block | 0 |
307 | | - |
308 | | - |
309 | static inline bool qIsUpper(char c) | - |
310 | { | - |
311 | returnexecuted 217 times by 3 tests: return c >= 'A' && c <= 'Z'; Executed by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
c >= 'A'TRUE | evaluated 217 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
| FALSE | never evaluated |
&& c <= 'Z'TRUE | never evaluated | FALSE | evaluated 217 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
|
;executed 217 times by 3 tests: return c >= 'A' && c <= 'Z'; Executed by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
| 0-217 |
312 | } | - |
313 | | - |
314 | static inline char qToLower(char c) | - |
315 | { | - |
316 | if (c >= 'A'TRUE | evaluated 217 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
| FALSE | never evaluated |
&& c <= 'Z'TRUE | never evaluated | FALSE | evaluated 217 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
|
) | 0-217 |
317 | return never executed: return c - 'A' + 'a'; c - 'A' + 'a';never executed: return c - 'A' + 'a'; | 0 |
318 | else | - |
319 | returnexecuted 217 times by 3 tests: return c; Executed by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
c;executed 217 times by 3 tests: return c; Executed by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
| 217 |
320 | } | - |
321 | QByteArray &QByteArray::operator=(const QByteArray & other) noexcept | - |
322 | { | - |
323 | other.d->ref.ref(); | - |
324 | if (!d->ref.deref()TRUE | evaluated 118255 times by 76 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 1082925 times by 418 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
- ...
|
) | 118255-1082925 |
325 | Data::deallocate(d);executed 118255 times by 76 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
- ...
| 118255 |
326 | d = other.d; | - |
327 | returnexecuted 1201180 times by 420 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 1201180 times by 420 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
- ...
| 1201180 |
328 | } | - |
329 | QByteArray &QByteArray::operator=(const char *str) | - |
330 | { | - |
331 | Data *x; | - |
332 | if (!strTRUE | evaluated 424 times by 2 testsEvaluated by:- tst_QPicture
- tst_QTimeZone
| FALSE | evaluated 397458 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-397458 |
333 | x = Data::sharedNull(); | - |
334 | }executed 424 times by 2 tests: end of block Executed by:- tst_QPicture
- tst_QTimeZone
else if (!*strTRUE | evaluated 47294 times by 8 testsEvaluated by:- tst_QByteArray
- tst_QDBusMarshall
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QNetworkReply
- tst_QRawFont
- tst_Spdy
| FALSE | evaluated 350164 times by 195 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-350164 |
335 | x = Data::allocate(0); | - |
336 | }executed 47294 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 { | 47294 |
337 | const int len = int(strlen(str)); | - |
338 | const uint fullLen = len + 1; | - |
339 | if (d->ref.isShared()TRUE | evaluated 269116 times by 188 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 81048 times by 41 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 26593 times by 37 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 54455 times by 38 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
- ...
|
| 26593-269116 |
340 | || (len < d->sizeTRUE | evaluated 7626 times by 35 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 46829 times by 35 testsEvaluated by:- 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
- tst_QSettings
- ...
|
&& fullLen < uint(d->alloc >> 1)TRUE | evaluated 7618 times by 34 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-46829 |
341 | reallocData(fullLen, d->detachFlags());executed 303327 times by 195 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
- ...
| 303327 |
342 | x = d; | - |
343 | memcpy(x->data(), str, fullLen); | - |
344 | x->size = len; | - |
345 | }executed 350164 times by 195 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
- ...
| 350164 |
346 | x->ref.ref(); | - |
347 | if (!d->ref.deref()TRUE | evaluated 46017 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QPicture
| FALSE | evaluated 351865 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
- ...
|
) | 46017-351865 |
348 | 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 |
349 | d = x; | - |
350 | returnexecuted 397882 times by 196 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 397882 times by 196 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
- ...
| 397882 |
351 | } | - |
352 | void QByteArray::truncate(int pos) | - |
353 | { | - |
354 | if (pos < d->sizeTRUE | evaluated 153886 times by 258 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 3948 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
- ...
|
) | 3948-153886 |
355 | resize(pos);executed 153886 times by 258 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
- ...
| 153886 |
356 | }executed 157834 times by 259 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
- ...
| 157834 |
357 | void QByteArray::chop(int n) | - |
358 | { | - |
359 | if (n > 0TRUE | evaluated 5229 times by 16 testsEvaluated by:- tst_NetworkSelfTest
- tst_QByteArray
- tst_QDebug
- tst_QHttpNetworkConnection
- tst_QLockFile
- tst_QMetaObject
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QProcess
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QVariant
- tst_Spdy
- tst_qmessagehandler
| FALSE | evaluated 1 time by 1 test |
) | 1-5229 |
360 | resize(d->size - n);executed 5229 times by 16 tests: resize(d->size - n); Executed by:- tst_NetworkSelfTest
- tst_QByteArray
- tst_QDebug
- tst_QHttpNetworkConnection
- tst_QLockFile
- tst_QMetaObject
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QProcess
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QVariant
- tst_Spdy
- tst_qmessagehandler
| 5229 |
361 | }executed 5230 times by 16 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QByteArray
- tst_QDebug
- tst_QHttpNetworkConnection
- tst_QLockFile
- tst_QMetaObject
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QProcess
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QVariant
- tst_Spdy
- tst_qmessagehandler
| 5230 |
362 | QByteArray::QByteArray(const char *data, int size) | - |
363 | { | - |
364 | if (!dataTRUE | evaluated 437565 times by 366 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 7673525 times by 425 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
- ...
|
) { | 437565-7673525 |
365 | d = Data::sharedNull(); | - |
366 | }executed 437565 times by 366 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 { | 437565 |
367 | if (size < 0TRUE | evaluated 5048596 times by 397 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 2624543 times by 346 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
- ...
|
) | 2624543-5048596 |
368 | size = int(strlen(data));executed 5048596 times by 397 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
- ...
| 5048596 |
369 | if (!sizeTRUE | evaluated 2642687 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_QImageReader
- tst_QItemView
- ...
| FALSE | evaluated 5031125 times by 422 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
- ...
|
) { | 2642687-5031125 |
370 | d = Data::allocate(0); | - |
371 | }executed 2642687 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_QImageReader
- tst_QItemView
- ...
else { | 2642687 |
372 | d = Data::allocate(uint(size) + 1u); | - |
373 | do { if (!(d)TRUE | never evaluated | FALSE | evaluated 5031125 times by 422 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-5031125 |
374 | d->size = size; | - |
375 | memcpy(d->data(), data, size); | - |
376 | d->data()[size] = '\0'; | - |
377 | }executed 5031125 times by 422 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
- ...
| 5031125 |
378 | } | - |
379 | } | - |
380 | QByteArray::QByteArray(int size, char ch) | - |
381 | { | - |
382 | if (size <= 0TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QAuthenticator
- tst_QUdpSocket
| FALSE | evaluated 19381 times by 65 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-19381 |
383 | d = Data::allocate(0); | - |
384 | }executed 5 times by 2 tests: end of block Executed by:- tst_QAuthenticator
- tst_QUdpSocket
else { | 5 |
385 | d = Data::allocate(uint(size) + 1u); | - |
386 | do { if (!(d)TRUE | never evaluated | FALSE | evaluated 19381 times by 65 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-19381 |
387 | d->size = size; | - |
388 | memset(d->data(), ch, size); | - |
389 | d->data()[size] = '\0'; | - |
390 | }executed 19381 times by 65 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
- ...
| 19381 |
391 | } | - |
392 | | - |
393 | | - |
394 | | - |
395 | | - |
396 | | - |
397 | | - |
398 | | - |
399 | QByteArray::QByteArray(int size, Qt::Initialization) | - |
400 | { | - |
401 | d = Data::allocate(uint(size) + 1u); | - |
402 | do { if (!(d)TRUE | never evaluated | FALSE | evaluated 1053964 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-1053964 |
403 | d->size = size; | - |
404 | d->data()[size] = '\0'; | - |
405 | }executed 1053964 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
- ...
| 1053964 |
406 | void QByteArray::resize(int size) | - |
407 | { | - |
408 | if (size < 0TRUE | evaluated 9 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QLockFile
| FALSE | evaluated 1917130 times by 440 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
- ...
|
) | 9-1917130 |
409 | size = 0;executed 9 times by 2 tests: size = 0; Executed by:- tst_QByteArray
- tst_QLockFile
| 9 |
410 | | - |
411 | 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 1917118 times by 440 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 1917118 times by 440 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-1917118 |
412 | d->size = size; | - |
413 | return;executed 1 time by 1 test: return; | 1 |
414 | } | - |
415 | | - |
416 | if (size == 0TRUE | evaluated 52798 times by 185 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 1864340 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->capacityReservedTRUE | evaluated 52790 times by 185 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-1864340 |
417 | Data *x = Data::allocate(0); | - |
418 | if (!d->ref.deref()TRUE | evaluated 15520 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 37270 times by 32 testsEvaluated by:- tst_QAsn1Element
- tst_QBitArray
- tst_QBuffer
- tst_QByteArray
- tst_QCssParser
- tst_QDataStream
- tst_QDebug
- tst_QFile
- tst_QFtp
- tst_QGuiVariant
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QLCDNumber
- tst_QLockFile
- tst_QMetaObjectBuilder
- tst_QMetaType
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QPicture
- tst_QPrinter
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QString
- tst_QTcpSocket
- tst_QTextBoundaryFinder
- ...
|
) | 15520-37270 |
419 | Data::deallocate(d);executed 15520 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
- ...
| 15520 |
420 | d = x; | - |
421 | }executed 52790 times by 185 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 204142 times by 257 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 1660206 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.isStatic()TRUE | evaluated 203227 times by 257 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 915 times by 15 testsEvaluated by:- tst_QAsn1Element
- tst_QBitArray
- tst_QByteArray
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QStyleSheetStyle
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_Spdy
|
) { | 915-1660206 |
422 | Data *x = Data::allocate(uint(size) + 1u); | - |
423 | do { if (!(x)TRUE | never evaluated | FALSE | evaluated 203227 times by 257 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-203227 |
424 | x->size = size; | - |
425 | x->data()[size] = '\0'; | - |
426 | d = x; | - |
427 | }executed 203227 times by 257 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 { | 203227 |
428 | if (d->ref.isShared()TRUE | evaluated 158 times by 16 testsEvaluated by:- tst_Collections
- tst_QBitArray
- tst_QByteArray
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusLocalCalls
- tst_QDBusPendingReply
- tst_QMessageAuthenticationCode
- tst_QPlainTextEdit
- tst_QRingBuffer
- tst_QString
- tst_QTextEdit
- tst_QUrl
- tst_QUrlInternal
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
| FALSE | evaluated 1660963 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
- ...
|
|| uint(size) + 1u > d->allocTRUE | evaluated 167988 times by 109 testsEvaluated by:- tst_Collections
- tst_Lancelot
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractNetworkCache
- tst_QAsn1Element
- tst_QAuthenticator
- tst_QBitArray
- tst_QBrush
- tst_QBuffer
- tst_QByteArray
- tst_QByteArrayMatcher
- tst_QCssParser
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDataStream
- tst_QDateTime
- tst_QDebug
- tst_QDockWidget
- tst_QFile
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFont
- tst_QFtp
- ...
| FALSE | evaluated 1492975 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
- ...
|
| 158-1660963 |
429 | || (!d->capacityReservedTRUE | evaluated 1452250 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 40725 times by 28 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAsn1Element
- tst_QByteArray
- tst_QFtp
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- 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
- tst_QStringBuilder3
- tst_QStringBuilder4
- tst_QStyleSheetStyle
- tst_QTcpServer
- tst_QTcpSocket
- ...
|
&& size < d->sizeTRUE | evaluated 1166984 times by 426 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 285266 times by 168 testsEvaluated by:- 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
- tst_QDataStream
- ...
|
| 40725-1452250 |
430 | && uint(size) + 1u < uint(d->alloc >> 1)TRUE | evaluated 805544 times by 418 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 361440 times by 164 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_QChar
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCompleter
- tst_QCoreApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_Delayed
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusLocalCalls
- tst_QDBusMarshall
- tst_QDBusPendingCall
- ...
|
)) | 361440-805544 |
431 | reallocData(uint(size) + 1u, d->detachFlags() | Data::Grow);executed 973690 times by 430 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
- ...
| 973690 |
432 | if (d->allocTRUE | evaluated 1661121 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
- ...
| FALSE | never evaluated |
) { | 0-1661121 |
433 | d->size = size; | - |
434 | d->data()[size] = '\0'; | - |
435 | }executed 1661121 times by 439 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
- ...
| 1661121 |
436 | }executed 1661121 times by 439 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
- ...
| 1661121 |
437 | } | - |
438 | QByteArray &QByteArray::fill(char ch, int size) | - |
439 | { | - |
440 | resize(size < 0 ? d->size : size); | - |
441 | if (d->sizeTRUE | evaluated 3411 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-3411 |
442 | memset(d->data(), ch, d->size);executed 3411 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
| 3411 |
443 | returnexecuted 3411 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 3411 times by 8 tests: return *this; Executed by:- tst_QBuffer
- tst_QByteArray
- tst_QDataStream
- tst_QFtp
- tst_QMimeDatabase
- tst_QRawFont
- tst_QSslSocket
- tst_QTextCodec
| 3411 |
444 | } | - |
445 | | - |
446 | void QByteArray::reallocData(uint alloc, Data::AllocationOptions options) | - |
447 | { | - |
448 | if (d->ref.isShared()TRUE | evaluated 1503034 times by 572 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 1564631 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 1564626 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 1564626 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-1564631 |
449 | Data *x = Data::allocate(alloc, options); | - |
450 | do { if (!(x)TRUE | never evaluated | FALSE | evaluated 1503039 times by 572 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-1503039 |
451 | x->size = qMin(int(alloc) - 1, d->size); | - |
452 | ::memcpy(x->data(), d->data(), x->size); | - |
453 | x->data()[x->size] = '\0'; | - |
454 | if (!d->ref.deref()TRUE | evaluated 5 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QStringBuilder3
- tst_QStringBuilder4
| FALSE | evaluated 1503034 times by 572 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
- ...
|
) | 5-1503034 |
455 | Data::deallocate(d);executed 5 times by 3 tests: Data::deallocate(d); Executed by:- tst_QByteArray
- tst_QStringBuilder3
- tst_QStringBuilder4
| 5 |
456 | d = x; | - |
457 | }executed 1503039 times by 572 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
- ...
else { | 1503039 |
458 | if (options & Data::GrowTRUE | evaluated 1526283 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
- ...
| FALSE | evaluated 38343 times by 53 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
- ...
|
) { | 38343-1526283 |
459 | if (alloc > MaxByteArraySizeTRUE | never evaluated | FALSE | evaluated 1526283 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
- ...
|
) | 0-1526283 |
460 | qBadAlloc(); never executed: qBadAlloc(); | 0 |
461 | alloc = qAllocMore(alloc, sizeof(Data)); | - |
462 | }executed 1526283 times by 437 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
- ...
| 1526283 |
463 | Data *x = static_cast<Data *>(::realloc(d, sizeof(Data) + alloc)); | - |
464 | do { if (!(x)TRUE | never evaluated | FALSE | evaluated 1564626 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-1564626 |
465 | x->alloc = alloc; | - |
466 | x->capacityReserved = (TRUE | evaluated 11404 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 1553222 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 11404 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 1553222 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; | 11404-1553222 |
467 | d = x; | - |
468 | }executed 1564626 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
- ...
| 1564626 |
469 | } | - |
470 | | - |
471 | void QByteArray::expand(int i) | - |
472 | { | - |
473 | resize(qMax(i + 1, d->size)); | - |
474 | }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 |
475 | QByteArray QByteArray::nulTerminated() const | - |
476 | { | - |
477 | | - |
478 | if (!((d)->offset != sizeof(QByteArrayData))TRUE | evaluated 206644 times by 72 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QChar
- tst_QDateTime
- tst_QDockWidget
- tst_QFtp
- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGLThreads
- tst_QGraphicsView
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- tst_QHttpSocketEngine
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QLockFile
- ...
| FALSE | evaluated 6 times by 1 test |
) | 6-206644 |
479 | returnexecuted 206644 times by 72 tests: return *this; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QChar
- tst_QDateTime
- tst_QDockWidget
- tst_QFtp
- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGLThreads
- tst_QGraphicsView
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- tst_QHttpSocketEngine
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QLockFile
- ...
*this;executed 206644 times by 72 tests: return *this; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QChar
- tst_QDateTime
- tst_QDockWidget
- tst_QFtp
- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGLThreads
- tst_QGraphicsView
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- tst_QHttpSocketEngine
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QLockFile
- ...
| 206644 |
480 | | - |
481 | QByteArray copy(*this); | - |
482 | copy.detach(); | - |
483 | returnexecuted 6 times by 1 test: return copy; copy;executed 6 times by 1 test: return copy; | 6 |
484 | } | - |
485 | QByteArray &QByteArray::prepend(const QByteArray &ba) | - |
486 | { | - |
487 | 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 |
488 | *this = ba; | - |
489 | }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 |
490 | QByteArray tmp = *this; | - |
491 | *this = ba; | - |
492 | append(tmp); | - |
493 | }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 |
494 | 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 |
495 | } | - |
496 | | - |
497 | | - |
498 | | - |
499 | | - |
500 | | - |
501 | | - |
502 | | - |
503 | QByteArray &QByteArray::prepend(const char *str) | - |
504 | { | - |
505 | 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 |
506 | } | - |
507 | QByteArray &QByteArray::prepend(const char *str, int len) | - |
508 | { | - |
509 | 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 |
510 | 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 34 times by 5 testsEvaluated by:- tst_QByteArray
- tst_QImageReader
- tst_QMetaObject
- tst_QNetworkReply
- tst_QObject
| FALSE | evaluated 69 times by 3 testsEvaluated by:- tst_QMetaObject
- tst_QNetworkReply
- tst_QObject
|
) | 34-215 |
511 | reallocData(uint(d->size + len) + 1u, d->detachFlags() | Data::Grow);executed 249 times by 7 tests: reallocData(uint(d->size + len) + 1u, d->detachFlags() | Data::Grow); Executed by:- tst_QByteArray
- tst_QImageReader
- tst_QMetaObject
- tst_QNetworkReply
- tst_QObject
- tst_Selftests
- tst_Utf8
| 249 |
512 | memmove(d->data()+len, d->data(), d->size); | - |
513 | memcpy(d->data(), str, len); | - |
514 | d->size += len; | - |
515 | d->data()[d->size] = '\0'; | - |
516 | }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 |
517 | 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 |
518 | } | - |
519 | | - |
520 | | - |
521 | | - |
522 | | - |
523 | | - |
524 | | - |
525 | | - |
526 | QByteArray &QByteArray::prepend(char ch) | - |
527 | { | - |
528 | 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 638 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 575 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-638 |
529 | 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 |
530 | memmove(d->data()+1, d->data(), d->size); | - |
531 | d->data()[0] = ch; | - |
532 | ++d->size; | - |
533 | d->data()[d->size] = '\0'; | - |
534 | returnexecuted 670 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 670 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
| 670 |
535 | } | - |
536 | QByteArray &QByteArray::append(const QByteArray &ba) | - |
537 | { | - |
538 | if (d->size == 0TRUE | evaluated 257012 times by 545 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 840231 times by 358 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 212551 times by 328 testsEvaluated by:- tst_Gestures
- tst_Lancelot
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- 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
- tst_QBuffer
- ...
| FALSE | evaluated 44461 times by 537 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
|
&& !((ba.d)->offset != sizeof(QByteArrayData))TRUE | evaluated 212495 times by 328 testsEvaluated by:- tst_Gestures
- tst_Lancelot
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- 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
- tst_QBuffer
- ...
| FALSE | evaluated 56 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QSslCertificate
|
) { | 56-840231 |
539 | *this = ba; | - |
540 | }executed 212495 times by 328 tests: end of block Executed by:- tst_Gestures
- tst_Lancelot
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- 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
- tst_QBuffer
- ...
else if (ba.d->size != 0TRUE | evaluated 846609 times by 571 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 38139 times by 162 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
- ...
|
) { | 38139-846609 |
541 | if (d->ref.isShared()TRUE | evaluated 104358 times by 188 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_QCssParser
- tst_QDataStream
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDir
- ...
| FALSE | evaluated 742251 times by 546 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
- ...
|
|| uint(d->size + ba.d->size) + 1u > d->allocTRUE | evaluated 425156 times by 149 testsEvaluated by:- tst_Collections
- tst_Lancelot
- tst_NetworkSelfTest
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAlgorithms
- tst_QApplication
- tst_QAuthenticator
- tst_QBuffer
- tst_QByteArray
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_Delayed
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- ...
| FALSE | evaluated 317095 times by 546 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
- ...
|
) | 104358-742251 |
542 | reallocData(uint(d->size + ba.d->size) + 1u, d->detachFlags() | Data::Grow);executed 529514 times by 248 tests: reallocData(uint(d->size + ba.d->size) + 1u, d->detachFlags() | Data::Grow); Executed by:- tst_Collections
- tst_Lancelot
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAlgorithms
- tst_QApplication
- tst_QAsn1Element
- tst_QAuthenticator
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- ...
| 529514 |
543 | memcpy(d->data() + d->size, ba.d->data(), ba.d->size); | - |
544 | d->size += ba.d->size; | - |
545 | d->data()[d->size] = '\0'; | - |
546 | }executed 846609 times by 571 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
- ...
| 846609 |
547 | returnexecuted 1097243 times by 572 tests: return *this; 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
- ...
*this;executed 1097243 times by 572 tests: return *this; 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
- ...
| 1097243 |
548 | } | - |
549 | QByteArray& QByteArray::append(const char *str) | - |
550 | { | - |
551 | if (strTRUE | evaluated 214177 times by 182 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_QColorDialog
- tst_QComboBox
- tst_QCompleter
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- ...
| FALSE | evaluated 17 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QUrlInternal
|
) { | 17-214177 |
552 | const int len = int(strlen(str)); | - |
553 | if (d->ref.isShared()TRUE | evaluated 96083 times by 49 testsEvaluated by:- tst_Collections
- tst_NetworkSelfTest
- tst_QApplication
- tst_QByteArray
- tst_QComboBox
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusLocalCalls
- tst_QDBusMetaType
- tst_QDataStream
- tst_QDate
- tst_QDialog
- tst_QDir
- tst_QGraphicsView
- tst_QIODevice
- tst_QImage
- tst_QImageReader
- tst_QLocalSocket
- tst_QLogging
- tst_QMdiArea
- tst_QMetaObject
- tst_QMimeDatabase
- ...
| FALSE | evaluated 118094 times by 166 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
- ...
|
|| uint(d->size + len) + 1u > d->allocTRUE | evaluated 21565 times by 78 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAsn1Element
- tst_QByteArray
- tst_QColorDialog
- 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_QFileDialog2
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- ...
| FALSE | evaluated 96529 times by 159 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
- ...
|
) | 21565-118094 |
554 | reallocData(uint(d->size + len) + 1u, d->detachFlags() | Data::Grow);executed 117648 times by 100 tests: reallocData(uint(d->size + len) + 1u, d->detachFlags() | Data::Grow); Executed by:- tst_Collections
- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QColorDialog
- 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
- tst_QDBusPendingReply
- tst_QDBusReply
- tst_QDataStream
- ...
| 117648 |
555 | memcpy(d->data() + d->size, str, len + 1); | - |
556 | d->size += len; | - |
557 | }executed 214177 times by 182 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_QColorDialog
- tst_QComboBox
- tst_QCompleter
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- ...
| 214177 |
558 | returnexecuted 214194 times by 182 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_QColorDialog
- tst_QComboBox
- tst_QCompleter
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- ...
*this;executed 214194 times by 182 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_QColorDialog
- tst_QComboBox
- tst_QCompleter
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_NoApplication
- tst_QDBusConnection_SpyHook
- tst_QDBusContext
- ...
| 214194 |
559 | } | - |
560 | QByteArray &QByteArray::append(const char *str, int len) | - |
561 | { | - |
562 | if (len < 0TRUE | never evaluated | FALSE | evaluated 456365 times by 265 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-456365 |
563 | len = qstrlen(str); never executed: len = qstrlen(str); | 0 |
564 | if (strTRUE | evaluated 456362 times by 265 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 456358 times by 265 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-456362 |
565 | if (d->ref.isShared()TRUE | evaluated 446063 times by 100 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QApplication
- tst_QAsn1Element
- tst_QAuthenticator
- tst_QByteArray
- 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_QDate
- tst_QDialog
- ...
| FALSE | evaluated 10295 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 20 times by 3 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QByteArray
- tst_QRingBuffer
| FALSE | evaluated 10275 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
- ...
|
) | 20-446063 |
566 | reallocData(uint(d->size + len) + 1u, d->detachFlags() | Data::Grow);executed 446083 times by 100 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_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_QDate
- tst_QDialog
- ...
| 446083 |
567 | memcpy(d->data() + d->size, str, len); | - |
568 | d->size += len; | - |
569 | d->data()[d->size] = '\0'; | - |
570 | }executed 456358 times by 265 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
- ...
| 456358 |
571 | returnexecuted 456365 times by 265 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 456365 times by 265 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
- ...
| 456365 |
572 | } | - |
573 | | - |
574 | | - |
575 | | - |
576 | | - |
577 | | - |
578 | | - |
579 | | - |
580 | QByteArray& QByteArray::append(char ch) | - |
581 | { | - |
582 | if (d->ref.isShared()TRUE | evaluated 64485 times by 198 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 18040340 times by 547 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
- ...
|
|| uint(d->size) + 2u > d->allocTRUE | evaluated 105913 times by 111 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractItemModel
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAbstractSlider
- tst_QAction
- tst_QAuthenticator
- tst_QByteArray
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QCompleter
- tst_QCryptographicHash
- tst_QCssParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDBusMetaObject
- tst_QDBusMetaType
- tst_QDateTime
- tst_QDir
- tst_QDirIterator
- tst_QDirModel
- ...
| FALSE | evaluated 17934427 times by 546 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
- ...
|
) | 64485-18040340 |
583 | reallocData(uint(d->size) + 2u, d->detachFlags() | Data::Grow);executed 170398 times by 226 tests: reallocData(uint(d->size) + 2u, d->detachFlags() | Data::Grow); Executed by:- tst_Collections
- tst_NetworkSelfTest
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractProxyModel
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- 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
- ...
| 170398 |
584 | d->data()[d->size++] = ch; | - |
585 | d->data()[d->size] = '\0'; | - |
586 | returnexecuted 18104825 times by 572 tests: return *this; 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
- ...
*this;executed 18104825 times by 572 tests: return *this; 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
- ...
| 18104825 |
587 | } | - |
588 | | - |
589 | | - |
590 | | - |
591 | | - |
592 | | - |
593 | | - |
594 | static inline QByteArray &qbytearray_insert(QByteArray *ba, | - |
595 | int pos, const char *arr, int len) | - |
596 | { | - |
597 | ((!(pos >= 0)) ? qt_assert("pos >= 0",__FILE__,1852) : qt_noop()); | - |
598 | | - |
599 | if (pos < 0TRUE | never evaluated | FALSE | evaluated 120032 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 120032 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 120032 times by 9 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QByteArrayMatcher
- tst_QImageReader
- tst_QImageWriter
- tst_QSettings
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
|
) | 0-120032 |
600 | return never executed: return *ba; *ba;never executed: return *ba; | 0 |
601 | | - |
602 | int oldsize = ba->size(); | - |
603 | ba->resize(qMax(pos, oldsize) + len); | - |
604 | char *dst = ba->data(); | - |
605 | if (pos > oldsizeTRUE | evaluated 2 times by 1 test | FALSE | evaluated 120030 times by 9 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QByteArrayMatcher
- tst_QImageReader
- tst_QImageWriter
- tst_QSettings
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
|
) | 2-120030 |
606 | ::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 |
607 | else | - |
608 | ::executed 120030 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 120030 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
| 120030 |
609 | memcpy(dst + pos, arr, len); | - |
610 | returnexecuted 120032 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 120032 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
| 120032 |
611 | } | - |
612 | QByteArray &QByteArray::insert(int i, const QByteArray &ba) | - |
613 | { | - |
614 | QByteArray copy(ba); | - |
615 | 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 |
616 | } | - |
617 | QByteArray &QByteArray::insert(int i, const char *str) | - |
618 | { | - |
619 | 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 |
620 | } | - |
621 | QByteArray &QByteArray::insert(int i, const char *str, int len) | - |
622 | { | - |
623 | 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 |
624 | } | - |
625 | QByteArray &QByteArray::insert(int i, char ch) | - |
626 | { | - |
627 | 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 |
628 | } | - |
629 | QByteArray &QByteArray::remove(int pos, int len) | - |
630 | { | - |
631 | if (len <= 0TRUE | evaluated 194 times by 15 testsEvaluated by:- tst_Collections
- tst_QAsn1Element
- tst_QByteArray
- tst_QCryptographicHash
- tst_QHeaderView
- tst_QMessageAuthenticationCode
- tst_QMimeDatabase
- tst_QProcess
- tst_QRingBuffer
- tst_QSslCertificate
- tst_QSslKey
- tst_QTextCodec
- tst_QUuid
- tst_QVariant
- tst_qmessagehandler
| FALSE | evaluated 269460 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 269457 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-269460 |
632 | returnexecuted 197 times by 15 tests: return *this; Executed by:- tst_Collections
- tst_QAsn1Element
- tst_QByteArray
- tst_QCryptographicHash
- tst_QHeaderView
- tst_QMessageAuthenticationCode
- tst_QMimeDatabase
- tst_QProcess
- tst_QRingBuffer
- tst_QSslCertificate
- tst_QSslKey
- tst_QTextCodec
- tst_QUuid
- tst_QVariant
- tst_qmessagehandler
*this;executed 197 times by 15 tests: return *this; Executed by:- tst_Collections
- tst_QAsn1Element
- tst_QByteArray
- tst_QCryptographicHash
- tst_QHeaderView
- tst_QMessageAuthenticationCode
- tst_QMimeDatabase
- tst_QProcess
- tst_QRingBuffer
- tst_QSslCertificate
- tst_QSslKey
- tst_QTextCodec
- tst_QUuid
- tst_QVariant
- tst_qmessagehandler
| 197 |
633 | detach(); | - |
634 | if (len >= d->size - posTRUE | evaluated 4166 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 265291 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
|
) { | 4166-265291 |
635 | resize(pos); | - |
636 | }executed 4166 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 { | 4166 |
637 | memmove(d->data() + pos, d->data() + pos + len, d->size - pos - len); | - |
638 | resize(d->size - len); | - |
639 | }executed 265291 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
| 265291 |
640 | returnexecuted 269457 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 269457 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
| 269457 |
641 | } | - |
642 | QByteArray &QByteArray::replace(int pos, int len, const QByteArray &after) | - |
643 | { | - |
644 | 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 |
645 | detach(); | - |
646 | memmove(d->data() + pos, after.d->data(), len*sizeof(char)); | - |
647 | returnexecuted 2 times by 1 test: return *this; *this;executed 2 times by 1 test: return *this; | 2 |
648 | } else { | - |
649 | QByteArray copy(after); | - |
650 | | - |
651 | remove(pos, len); | - |
652 | 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 |
653 | } | - |
654 | } | - |
655 | QByteArray &QByteArray::replace(int pos, int len, const char *after) | - |
656 | { | - |
657 | returnexecuted 118703 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 118703 times by 3 tests: return replace(pos,len,after,qstrlen(after)); Executed by:- tst_Collections
- tst_QByteArray
- tst_Selftests
| 118703 |
658 | } | - |
659 | QByteArray &QByteArray::replace(int pos, int len, const char *after, int alen) | - |
660 | { | - |
661 | if (len == alenTRUE | evaluated 13 times by 2 testsEvaluated by:- tst_QAbstractFileEngine
- tst_QByteArray
| FALSE | evaluated 118701 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-118701 |
662 | detach(); | - |
663 | memcpy(d->data() + pos, after, len*sizeof(char)); | - |
664 | 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 |
665 | } else { | - |
666 | remove(pos, len); | - |
667 | returnexecuted 118702 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 118702 times by 3 tests: return qbytearray_insert(this, pos, after, alen); Executed by:- tst_Collections
- tst_QByteArray
- tst_Selftests
| 118702 |
668 | } | - |
669 | } | - |
670 | QByteArray &QByteArray::replace(const QByteArray &before, const QByteArray &after) | - |
671 | { | - |
672 | 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 |
673 | return never executed: return *this; *this;never executed: return *this; | 0 |
674 | | - |
675 | QByteArray aft = after; | - |
676 | if (after.d == dTRUE | evaluated 2 times by 1 test | FALSE | evaluated 1 time by 1 test |
) | 1-2 |
677 | aft.detach();executed 2 times by 1 test: aft.detach(); | 2 |
678 | | - |
679 | 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 |
680 | } | - |
681 | QByteArray &QByteArray::replace(const char *c, const QByteArray &after) | - |
682 | { | - |
683 | QByteArray aft = after; | - |
684 | if (after.d == dTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
685 | aft.detach(); never executed: aft.detach(); | 0 |
686 | | - |
687 | 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 |
688 | } | - |
689 | QByteArray &QByteArray::replace(const char *before, int bsize, const char *after, int asize) | - |
690 | { | - |
691 | if (isNull()TRUE | never evaluated | FALSE | evaluated 2072 times by 8 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
|
|| (before == afterTRUE | never evaluated | FALSE | evaluated 2072 times by 8 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
|
&& bsize == asizeTRUE | never evaluated | FALSE | never evaluated |
)) | 0-2072 |
692 | return never executed: return *this; *this;never executed: return *this; | 0 |
693 | | - |
694 | | - |
695 | const char *a = after; | - |
696 | const char *b = before; | - |
697 | if (after >= d->data()TRUE | evaluated 162 times by 3 testsEvaluated by:- tst_Collections
- tst_qlogging - unknown status
- tst_qmessagehandler
| FALSE | evaluated 1910 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 162 times by 3 testsEvaluated by:- tst_Collections
- tst_qlogging - unknown status
- tst_qmessagehandler
|
) { | 0-1910 |
698 | char *copy = (char *)malloc(asize); | - |
699 | do { if (!(copy)TRUE | never evaluated | FALSE | never evaluated |
) qBadAlloc();never executed: qBadAlloc(); } while (0); | 0 |
700 | memcpy(copy, after, asize); | - |
701 | a = copy; | - |
702 | } never executed: end of block | 0 |
703 | if (before >= d->data()TRUE | evaluated 2072 times by 8 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
| FALSE | never evaluated |
&& before < d->data() + d->sizeTRUE | evaluated 2 times by 1 test | FALSE | evaluated 2070 times by 8 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
|
) { | 0-2072 |
704 | char *copy = (char *)malloc(bsize); | - |
705 | do { if (!(copy)TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) qBadAlloc();never executed: qBadAlloc(); } while (0); | 0-2 |
706 | memcpy(copy, before, bsize); | - |
707 | b = copy; | - |
708 | }executed 2 times by 1 test: end of block | 2 |
709 | | - |
710 | QByteArrayMatcher matcher(before, bsize); | - |
711 | int index = 0; | - |
712 | int len = d->size; | - |
713 | char *d = data(); | - |
714 | | - |
715 | if (bsize == asizeTRUE | evaluated 1 time by 1 test | FALSE | evaluated 2071 times by 8 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
|
) { | 1-2071 |
716 | if (bsizeTRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) { | 0-1 |
717 | 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 |
718 | memcpy(d + index, after, asize); | - |
719 | index += bsize; | - |
720 | }executed 1 time by 1 test: end of block | 1 |
721 | }executed 1 time by 1 test: end of block | 1 |
722 | }executed 1 time by 1 test: end of block else if (asize < bsizeTRUE | evaluated 2069 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 2 times by 1 test |
) { | 1-2069 |
723 | uint to = 0; | - |
724 | uint movestart = 0; | - |
725 | uint num = 0; | - |
726 | while ((TRUE | evaluated 41 times by 2 testsEvaluated by:- tst_Collections
- tst_QByteArray
| FALSE | evaluated 2069 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 2069 times by 8 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
|
) { | 41-2069 |
727 | if (numTRUE | evaluated 14 times by 1 test | FALSE | evaluated 27 times by 2 testsEvaluated by:- tst_Collections
- tst_QByteArray
|
) { | 14-27 |
728 | int msize = index - movestart; | - |
729 | if (msize > 0TRUE | never evaluated | FALSE | evaluated 14 times by 1 test |
) { | 0-14 |
730 | memmove(d + to, d + movestart, msize); | - |
731 | to += msize; | - |
732 | } never executed: end of block | 0 |
733 | }executed 14 times by 1 test: end of block else { | 14 |
734 | to = index; | - |
735 | }executed 27 times by 2 tests: end of block Executed by:- tst_Collections
- tst_QByteArray
| 27 |
736 | if (asizeTRUE | evaluated 1 time by 1 test | FALSE | evaluated 40 times by 1 test |
) { | 1-40 |
737 | memcpy(d + to, after, asize); | - |
738 | to += asize; | - |
739 | }executed 1 time by 1 test: end of block | 1 |
740 | index += bsize; | - |
741 | movestart = index; | - |
742 | num++; | - |
743 | }executed 41 times by 2 tests: end of block Executed by:- tst_Collections
- tst_QByteArray
| 41 |
744 | if (numTRUE | evaluated 27 times by 2 testsEvaluated by:- tst_Collections
- tst_QByteArray
| FALSE | evaluated 2042 times by 7 testsEvaluated by:- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
|
) { | 27-2042 |
745 | int msize = len - movestart; | - |
746 | if (msize > 0TRUE | never evaluated | FALSE | evaluated 27 times by 2 testsEvaluated by:- tst_Collections
- tst_QByteArray
|
) | 0-27 |
747 | memmove(d + to, d + movestart, msize); never executed: memmove(d + to, d + movestart, msize); | 0 |
748 | resize(len - num*(bsize-asize)); | - |
749 | }executed 27 times by 2 tests: end of block Executed by:- tst_Collections
- tst_QByteArray
| 27 |
750 | }executed 2069 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 { | 2069 |
751 | | - |
752 | | - |
753 | while (index != -1TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
) { | 2 |
754 | uint indices[4096]; | - |
755 | uint pos = 0; | - |
756 | while(pos < 4095TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
) { | 0-8 |
757 | index = matcher.indexIn(*this, index); | - |
758 | if (index == -1TRUE | evaluated 2 times by 1 test | FALSE | evaluated 6 times by 1 test |
) | 2-6 |
759 | break;executed 2 times by 1 test: break; | 2 |
760 | indices[pos++] = index; | - |
761 | index += bsize; | - |
762 | | - |
763 | if (!bsizeTRUE | never evaluated | FALSE | evaluated 6 times by 1 test |
) | 0-6 |
764 | index++; never executed: index++; | 0 |
765 | }executed 6 times by 1 test: end of block | 6 |
766 | if (!posTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
767 | break; never executed: break; | 0 |
768 | | - |
769 | | - |
770 | int adjust = pos*(asize-bsize); | - |
771 | | - |
772 | if (index != -1TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
773 | index += adjust; never executed: index += adjust; | 0 |
774 | int newlen = len + adjust; | - |
775 | int moveend = len; | - |
776 | if (newlen > lenTRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) { | 0-2 |
777 | resize(newlen); | - |
778 | len = newlen; | - |
779 | }executed 2 times by 1 test: end of block | 2 |
780 | d = this->d->data(); | - |
781 | | - |
782 | while(posTRUE | evaluated 6 times by 1 test | FALSE | evaluated 2 times by 1 test |
) { | 2-6 |
783 | pos--; | - |
784 | int movestart = indices[pos] + bsize; | - |
785 | int insertstart = indices[pos] + pos*(asize-bsize); | - |
786 | int moveto = insertstart + asize; | - |
787 | memmove(d + moveto, d + movestart, (moveend - movestart)); | - |
788 | if (asizeTRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
) | 0-6 |
789 | memcpy(d + insertstart, after, asize);executed 6 times by 1 test: memcpy(d + insertstart, after, asize); | 6 |
790 | moveend = movestart - bsize; | - |
791 | }executed 6 times by 1 test: end of block | 6 |
792 | }executed 2 times by 1 test: end of block | 2 |
793 | }executed 2 times by 1 test: end of block | 2 |
794 | | - |
795 | if (a != afterTRUE | never evaluated | FALSE | evaluated 2072 times by 8 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
|
) | 0-2072 |
796 | :: never executed: ::free(const_cast<char *>(a)); free(const_cast<char *>(a));never executed: ::free(const_cast<char *>(a)); | 0 |
797 | if (b != beforeTRUE | evaluated 2 times by 1 test | FALSE | evaluated 2070 times by 8 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
|
) | 2-2070 |
798 | ::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 |
799 | | - |
800 | | - |
801 | returnexecuted 2072 times by 8 tests: return *this; Executed by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
*this;executed 2072 times by 8 tests: return *this; Executed by:- tst_Collections
- tst_QByteArray
- tst_QResourceEngine
- tst_QSslCertificate
- tst_QSslKey
- tst_Selftests
- tst_qlogging - unknown status
- tst_qmessagehandler
| 2072 |
802 | } | - |
803 | QByteArray &QByteArray::replace(char before, const QByteArray &after) | - |
804 | { | - |
805 | char b[2] = { before, '\0' }; | - |
806 | QByteArray cb = fromRawData(b, 1); | - |
807 | returnexecuted 2 times by 1 test: return replace(cb, after); replace(cb, after);executed 2 times by 1 test: return replace(cb, after); | 2 |
808 | } | - |
809 | QByteArray &QByteArray::replace(char before, char after) | - |
810 | { | - |
811 | if (d->sizeTRUE | evaluated 158 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QLoggingRegistry
- tst_QTextStream
| FALSE | evaluated 871 times by 24 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_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
|
) { | 158-871 |
812 | char *i = data(); | - |
813 | char *e = i + d->size; | - |
814 | 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 |
815 | 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 |
816 | *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 |
817 | }executed 158 times by 3 tests: end of block Executed by:- tst_QByteArray
- tst_QLoggingRegistry
- tst_QTextStream
| 158 |
818 | returnexecuted 1029 times by 25 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_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
*this;executed 1029 times by 25 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_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
| 1029 |
819 | } | - |
820 | QList<QByteArray> QByteArray::split(char sep) const | - |
821 | { | - |
822 | QList<QByteArray> list; | - |
823 | int start = 0; | - |
824 | int end; | - |
825 | while ((TRUE | evaluated 563573 times by 64 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 182339 times by 72 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 563573 times by 64 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 182339 times by 72 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
- ...
|
) { | 182339-563573 |
826 | list.append(mid(start, end - start)); | - |
827 | start = end + 1; | - |
828 | }executed 563573 times by 64 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
- ...
| 563573 |
829 | list.append(mid(start)); | - |
830 | returnexecuted 182339 times by 72 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 182339 times by 72 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
- ...
| 182339 |
831 | } | - |
832 | QByteArray QByteArray::repeated(int times) const | - |
833 | { | - |
834 | if (d->size == 0TRUE | evaluated 5 times by 1 test | FALSE | evaluated 11 times by 1 test |
) | 5-11 |
835 | returnexecuted 5 times by 1 test: return *this; *this;executed 5 times by 1 test: return *this; | 5 |
836 | | - |
837 | if (times <= 1TRUE | evaluated 4 times by 1 test | FALSE | evaluated 7 times by 1 test |
) { | 4-7 |
838 | if (times == 1TRUE | evaluated 1 time by 1 test | FALSE | evaluated 3 times by 1 test |
) | 1-3 |
839 | returnexecuted 1 time by 1 test: return *this; *this;executed 1 time by 1 test: return *this; | 1 |
840 | returnexecuted 3 times by 1 test: return QByteArray(); QByteArray();executed 3 times by 1 test: return QByteArray(); | 3 |
841 | } | - |
842 | | - |
843 | const int resultSize = times * d->size; | - |
844 | | - |
845 | QByteArray result; | - |
846 | result.reserve(resultSize); | - |
847 | if (result.d->alloc != uint(resultSize) + 1uTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
) | 0-7 |
848 | return never executed: return QByteArray(); QByteArray();never executed: return QByteArray(); | 0 |
849 | | - |
850 | memcpy(result.d->data(), d->data(), d->size); | - |
851 | | - |
852 | int sizeSoFar = d->size; | - |
853 | char *end = result.d->data() + sizeSoFar; | - |
854 | | - |
855 | const int halfResultSize = resultSize >> 1; | - |
856 | while (sizeSoFar <= halfResultSizeTRUE | evaluated 12 times by 1 test | FALSE | evaluated 7 times by 1 test |
) { | 7-12 |
857 | memcpy(end, result.d->data(), sizeSoFar); | - |
858 | end += sizeSoFar; | - |
859 | sizeSoFar <<= 1; | - |
860 | }executed 12 times by 1 test: end of block | 12 |
861 | memcpy(end, result.d->data(), resultSize - sizeSoFar); | - |
862 | result.d->data()[resultSize] = '\0'; | - |
863 | result.d->size = resultSize; | - |
864 | returnexecuted 7 times by 1 test: return result; result;executed 7 times by 1 test: return result; | 7 |
865 | } | - |
866 | int QByteArray::indexOf(const QByteArray &ba, int from) const | - |
867 | { | - |
868 | const int ol = ba.d->size; | - |
869 | 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 |
870 | 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 |
871 | 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 |
872 | 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 |
873 | | - |
874 | const int l = d->size; | - |
875 | 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 |
876 | 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 |
877 | | - |
878 | 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 |
879 | } | - |
880 | int QByteArray::indexOf(const char *c, int from) const | - |
881 | { | - |
882 | const int ol = qstrlen(c); | - |
883 | if (ol == 1TRUE | evaluated 24 times by 1 test | FALSE | evaluated 730686 times by 32 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-730686 |
884 | returnexecuted 24 times by 1 test: return indexOf(*c, from); indexOf(*c, from);executed 24 times by 1 test: return indexOf(*c, from); | 24 |
885 | | - |
886 | const int l = d->size; | - |
887 | if (from > d->sizeTRUE | never evaluated | FALSE | evaluated 730686 times by 32 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 18985 times by 17 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
- tst_qnetworkreply - unknown status
| FALSE | evaluated 711701 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-730686 |
888 | returnexecuted 18985 times by 17 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
- tst_qnetworkreply - unknown status
-1;executed 18985 times by 17 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
- tst_qnetworkreply - unknown status
| 18985 |
889 | if (ol == 0TRUE | evaluated 8 times by 1 test | FALSE | evaluated 711693 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-711693 |
890 | returnexecuted 8 times by 1 test: return from; from;executed 8 times by 1 test: return from; | 8 |
891 | | - |
892 | returnexecuted 711693 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 711693 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
- ...
| 711693 |
893 | } | - |
894 | int QByteArray::indexOf(char ch, int from) const | - |
895 | { | - |
896 | if (from < 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 899780 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_QDBusContext
- tst_QDBusInterface
- tst_QDBusPendingReply
- tst_QDBusThreading
- tst_QDataStream
- tst_QDataUrl
- tst_QDateTime
- tst_QDateTimeEdit
- ...
|
) | 1-899780 |
897 | from = qMax(from + d->size, 0);executed 1 time by 1 test: from = qMax(from + d->size, 0); | 1 |
898 | if (from < d->sizeTRUE | evaluated 897521 times by 122 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 2260 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
- ...
|
) { | 2260-897521 |
899 | const char *n = d->data() + from - 1; | - |
900 | const char *e = d->data() + d->size; | - |
901 | while (++TRUE | evaluated 15661180 times by 122 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 181885 times by 73 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 15661180 times by 122 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 181885 times by 73 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
- ...
|
) | 181885-15661180 |
902 | if (*TRUE | evaluated 715636 times by 122 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 14945544 times by 122 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 715636 times by 122 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 14945544 times by 122 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
- ...
|
) | 715636-14945544 |
903 | returnexecuted 715636 times by 122 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 715636 times by 122 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
- ...
| 715636 |
904 | }executed 181885 times by 73 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
- ...
| 181885 |
905 | returnexecuted 184145 times by 82 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 184145 times by 82 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
- ...
| 184145 |
906 | } | - |
907 | | - |
908 | | - |
909 | static int lastIndexOfHelper(const char *haystack, int l, const char *needle, int ol, int from) | - |
910 | { | - |
911 | int delta = l - ol; | - |
912 | 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 |
913 | from = delta;executed 40 times by 3 tests: from = delta; Executed by:- tst_Collections
- tst_QByteArray
- tst_QString
| 40 |
914 | 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 |
915 | returnexecuted 5 times by 1 test: return -1; -1;executed 5 times by 1 test: return -1; | 5 |
916 | 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 |
917 | from = delta;executed 2 times by 1 test: from = delta; | 2 |
918 | | - |
919 | const char *end = haystack; | - |
920 | haystack += from; | - |
921 | const uint ol_minus_1 = ol - 1; | - |
922 | const char *n = needle + ol_minus_1; | - |
923 | const char *h = haystack + ol_minus_1; | - |
924 | uint hashNeedle = 0, hashHaystack = 0; | - |
925 | int idx; | - |
926 | 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 |
927 | hashNeedle = ((hashNeedle<<1) + *(n-idx)); | - |
928 | hashHaystack = ((hashHaystack<<1) + *(h-idx)); | - |
929 | }executed 285 times by 3 tests: end of block Executed by:- tst_Collections
- tst_QByteArray
- tst_QString
| 285 |
930 | hashHaystack -= *haystack; | - |
931 | 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 |
932 | hashHaystack += *haystack; | - |
933 | 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 |
934 | 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 |
935 | --haystack; | - |
936 | 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 |
937 | }executed 178 times by 3 tests: end of block Executed by:- tst_Collections
- tst_QByteArray
- tst_QString
| 178 |
938 | 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 |
939 | | - |
940 | } | - |
941 | int QByteArray::lastIndexOf(const QByteArray &ba, int from) const | - |
942 | { | - |
943 | const int ol = ba.d->size; | - |
944 | 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 |
945 | 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 |
946 | | - |
947 | 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 |
948 | } | - |
949 | int QByteArray::lastIndexOf(const char *str, int from) const | - |
950 | { | - |
951 | const int ol = qstrlen(str); | - |
952 | if (ol == 1TRUE | evaluated 24 times by 1 test | FALSE | evaluated 19 times by 2 testsEvaluated by:- tst_Collections
- tst_QByteArray
|
) | 19-24 |
953 | returnexecuted 24 times by 1 test: return lastIndexOf(*str, from); lastIndexOf(*str, from);executed 24 times by 1 test: return lastIndexOf(*str, from); | 24 |
954 | | - |
955 | 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 |
956 | } | - |
957 | int QByteArray::lastIndexOf(char ch, int from) const | - |
958 | { | - |
959 | if (from < 0TRUE | evaluated 543 times by 12 testsEvaluated by:- tst_QByteArray
- tst_QDir
- tst_QFileDialog2
- tst_QMetaObject
- tst_QMetaObjectBuilder
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QSettings
- tst_QString
- tst_qlogging - unknown status
- tst_qmakelib
- tst_qmessagehandler
| FALSE | evaluated 50 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QMetaObject
- tst_QObject
|
) | 50-543 |
960 | from += d->size;executed 543 times by 12 tests: from += d->size; Executed by:- tst_QByteArray
- tst_QDir
- tst_QFileDialog2
- tst_QMetaObject
- tst_QMetaObjectBuilder
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QSettings
- tst_QString
- tst_qlogging - unknown status
- tst_qmakelib
- tst_qmessagehandler
| 543 |
961 | else if (from > d->sizeTRUE | never evaluated | FALSE | evaluated 50 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QMetaObject
- tst_QObject
|
) | 0-50 |
962 | from = d->size-1; never executed: from = d->size-1; | 0 |
963 | if (from >= 0TRUE | evaluated 579 times by 13 testsEvaluated by:- tst_QByteArray
- tst_QDir
- tst_QFileDialog2
- tst_QMetaObject
- tst_QMetaObjectBuilder
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QObject
- tst_QSettings
- tst_QString
- tst_qlogging - unknown status
- tst_qmakelib
- tst_qmessagehandler
| FALSE | evaluated 14 times by 2 testsEvaluated by:- tst_QByteArray
- tst_QString
|
) { | 14-579 |
964 | const char *b = d->data(); | - |
965 | const char *n = d->data() + from + 1; | - |
966 | while (n-- != bTRUE | evaluated 5582 times by 13 testsEvaluated by:- tst_QByteArray
- tst_QDir
- tst_QFileDialog2
- tst_QMetaObject
- tst_QMetaObjectBuilder
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QObject
- tst_QSettings
- tst_QString
- tst_qlogging - unknown status
- tst_qmakelib
- 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-5582 |
967 | if (*TRUE | evaluated 388 times by 12 testsEvaluated by:- tst_QByteArray
- tst_QDir
- tst_QFileDialog2
- tst_QMetaObject
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QObject
- tst_QSettings
- tst_QString
- tst_qlogging - unknown status
- tst_qmakelib
- tst_qmessagehandler
| FALSE | evaluated 5194 times by 13 testsEvaluated by:- tst_QByteArray
- tst_QDir
- tst_QFileDialog2
- tst_QMetaObject
- tst_QMetaObjectBuilder
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QObject
- tst_QSettings
- tst_QString
- tst_qlogging - unknown status
- tst_qmakelib
- tst_qmessagehandler
|
n == chTRUE | evaluated 388 times by 12 testsEvaluated by:- tst_QByteArray
- tst_QDir
- tst_QFileDialog2
- tst_QMetaObject
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QObject
- tst_QSettings
- tst_QString
- tst_qlogging - unknown status
- tst_qmakelib
- tst_qmessagehandler
| FALSE | evaluated 5194 times by 13 testsEvaluated by:- tst_QByteArray
- tst_QDir
- tst_QFileDialog2
- tst_QMetaObject
- tst_QMetaObjectBuilder
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QObject
- tst_QSettings
- tst_QString
- tst_qlogging - unknown status
- tst_qmakelib
- tst_qmessagehandler
|
) | 388-5194 |
968 | returnexecuted 388 times by 12 tests: return n - b; Executed by:- tst_QByteArray
- tst_QDir
- tst_QFileDialog2
- tst_QMetaObject
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QObject
- tst_QSettings
- tst_QString
- tst_qlogging - unknown status
- tst_qmakelib
- tst_qmessagehandler
n - b;executed 388 times by 12 tests: return n - b; Executed by:- tst_QByteArray
- tst_QDir
- tst_QFileDialog2
- tst_QMetaObject
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QObject
- tst_QSettings
- tst_QString
- tst_qlogging - unknown status
- tst_qmakelib
- tst_qmessagehandler
| 388 |
969 | }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 |
970 | 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 |
971 | } | - |
972 | int QByteArray::count(const QByteArray &ba) const | - |
973 | { | - |
974 | int num = 0; | - |
975 | int i = -1; | - |
976 | if (d->size > 500TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
&& ba.d->size > 5TRUE | never evaluated | FALSE | never evaluated |
) { | 0-4 |
977 | QByteArrayMatcher matcher(ba); | - |
978 | while ((TRUE | never evaluated | FALSE | never evaluated |
i = matcher.indexIn(*this, i + 1)) != -1TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
979 | ++ never executed: ++num; num;never executed: ++num; | 0 |
980 | } never executed: end of block else { | 0 |
981 | 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 |
982 | ++executed 33 times by 1 test: ++num; num;executed 33 times by 1 test: ++num; | 33 |
983 | }executed 4 times by 1 test: end of block | 4 |
984 | returnexecuted 4 times by 1 test: return num; num;executed 4 times by 1 test: return num; | 4 |
985 | } | - |
986 | int QByteArray::count(const char *str) const | - |
987 | { | - |
988 | 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 |
989 | } | - |
990 | int QByteArray::count(char ch) const | - |
991 | { | - |
992 | int num = 0; | - |
993 | const char *i = d->data() + d->size; | - |
994 | const char *b = d->data(); | - |
995 | 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 |
996 | 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 |
997 | ++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 |
998 | 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 |
999 | } | - |
1000 | bool QByteArray::startsWith(const QByteArray &ba) const | - |
1001 | { | - |
1002 | if (d == ba.dTRUE | evaluated 2 times by 1 test | FALSE | evaluated 3179 times by 30 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_QNetworkProxyFactory
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
- tst_QRingBuffer
- tst_QString
- tst_QXmlStream
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- ...
|
|| ba.d->size == 0TRUE | evaluated 4 times by 1 test | FALSE | evaluated 3175 times by 30 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_QNetworkProxyFactory
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
- tst_QRingBuffer
- tst_QString
- tst_QXmlStream
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- ...
|
) | 2-3179 |
1003 | returnexecuted 6 times by 1 test: return true; true;executed 6 times by 1 test: return true; | 6 |
1004 | if (d->size < ba.d->sizeTRUE | evaluated 1045 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 2130 times by 30 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_QNetworkProxyFactory
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
- tst_QRingBuffer
- tst_QString
- tst_QXmlStream
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- ...
|
) | 1045-2130 |
1005 | returnexecuted 1045 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 1045 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
| 1045 |
1006 | returnexecuted 2130 times by 30 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_QNetworkProxyFactory
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
- tst_QRingBuffer
- tst_QString
- tst_QXmlStream
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- ...
memcmp(d->data(), ba.d->data(), ba.d->size) == 0;executed 2130 times by 30 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_QNetworkProxyFactory
- tst_QOpenGLWidget
- tst_QOpenGLWindow
- tst_QOpenGlConfig
- tst_QRingBuffer
- tst_QString
- tst_QXmlStream
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- ...
| 2130 |
1007 | } | - |
1008 | | - |
1009 | | - |
1010 | | - |
1011 | | - |
1012 | | - |
1013 | | - |
1014 | bool QByteArray::startsWith(const char *str) const | - |
1015 | { | - |
1016 | if (!strTRUE | evaluated 3 times by 1 test | FALSE | evaluated 1376174 times by 155 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 1376171 times by 155 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-1376174 |
1017 | returnexecuted 6 times by 1 test: return true; true;executed 6 times by 1 test: return true; | 6 |
1018 | const int len = int(strlen(str)); | - |
1019 | if (d->size < lenTRUE | evaluated 263990 times by 14 testsEvaluated by:- tst_QAuthenticator
- tst_QByteArray
- tst_QChar
- tst_QDataStream
- tst_QFontDialog
- tst_QGlyphRun
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QPrinter
- tst_QTcpSocket
- tst_Selftests
- tst_Utf8
- tst_qmake
| FALSE | evaluated 1112181 times by 154 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
- ...
|
) | 263990-1112181 |
1020 | returnexecuted 263990 times by 14 tests: return false; Executed by:- tst_QAuthenticator
- tst_QByteArray
- tst_QChar
- tst_QDataStream
- tst_QFontDialog
- tst_QGlyphRun
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QPrinter
- tst_QTcpSocket
- tst_Selftests
- tst_Utf8
- tst_qmake
false;executed 263990 times by 14 tests: return false; Executed by:- tst_QAuthenticator
- tst_QByteArray
- tst_QChar
- tst_QDataStream
- tst_QFontDialog
- tst_QGlyphRun
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QPrinter
- tst_QTcpSocket
- tst_Selftests
- tst_Utf8
- tst_qmake
| 263990 |
1021 | returnexecuted 1112181 times by 154 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 1112181 times by 154 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
- ...
| 1112181 |
1022 | } | - |
1023 | | - |
1024 | | - |
1025 | | - |
1026 | | - |
1027 | | - |
1028 | | - |
1029 | bool QByteArray::startsWith(char ch) const | - |
1030 | { | - |
1031 | if (d->size == 0TRUE | evaluated 18 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QNetworkCookieJar
- tst_Selftests
| FALSE | evaluated 113712 times by 65 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QByteArray
- tst_QCalendarWidget
- 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
- tst_QImageReader
- ...
|
) | 18-113712 |
1032 | returnexecuted 18 times by 3 tests: return false; Executed by:- tst_QByteArray
- tst_QNetworkCookieJar
- tst_Selftests
false;executed 18 times by 3 tests: return false; Executed by:- tst_QByteArray
- tst_QNetworkCookieJar
- tst_Selftests
| 18 |
1033 | returnexecuted 113712 times by 65 tests: return d->data()[0] == ch; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QByteArray
- tst_QCalendarWidget
- 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
- tst_QImageReader
- ...
d->data()[0] == ch;executed 113712 times by 65 tests: return d->data()[0] == ch; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QByteArray
- tst_QCalendarWidget
- 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
- tst_QImageReader
- ...
| 113712 |
1034 | } | - |
1035 | bool QByteArray::endsWith(const QByteArray &ba) const | - |
1036 | { | - |
1037 | 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 |
1038 | returnexecuted 6 times by 1 test: return true; true;executed 6 times by 1 test: return true; | 6 |
1039 | if (d->size < ba.d->sizeTRUE | evaluated 3 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-3 |
1040 | returnexecuted 3 times by 1 test: return false; false;executed 3 times by 1 test: return false; | 3 |
1041 | 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 |
1042 | } | - |
1043 | | - |
1044 | | - |
1045 | | - |
1046 | | - |
1047 | | - |
1048 | | - |
1049 | bool QByteArray::endsWith(const char *str) const | - |
1050 | { | - |
1051 | if (!strTRUE | evaluated 3 times by 1 test | FALSE | evaluated 222940 times by 538 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
|
|| !*strTRUE | evaluated 3 times by 1 test | FALSE | evaluated 222937 times by 538 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
|
) | 3-222940 |
1052 | returnexecuted 6 times by 1 test: return true; true;executed 6 times by 1 test: return true; | 6 |
1053 | const int len = int(strlen(str)); | - |
1054 | if (d->size < lenTRUE | evaluated 49833 times by 208 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_PlatformSocketEngine
- tst_QAbstractItemModel
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInt
- tst_QAtomicInteger_Gcc_char
- tst_QAtomicInteger_Gcc_char16_t
- tst_QAtomicInteger_Gcc_char32_t
- tst_QAtomicInteger_Gcc_int
- tst_QAtomicInteger_Gcc_long
- tst_QAtomicInteger_Gcc_qlonglong
- tst_QAtomicInteger_Gcc_qptrdiff
- tst_QAtomicInteger_Gcc_quintptr
- tst_QAtomicInteger_Gcc_qulonglong
- tst_QAtomicInteger_Gcc_schar
- tst_QAtomicInteger_Gcc_short
- tst_QAtomicInteger_Gcc_uchar
- tst_QAtomicInteger_Gcc_uint
- tst_QAtomicInteger_Gcc_ulong
- ...
| FALSE | evaluated 173104 times by 538 testsEvaluated by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
|
) | 49833-173104 |
1055 | returnexecuted 49833 times by 208 tests: return false; Executed by:- tst_Collections
- tst_LargeFile
- tst_PlatformSocketEngine
- tst_QAbstractItemModel
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInt
- tst_QAtomicInteger_Gcc_char
- tst_QAtomicInteger_Gcc_char16_t
- tst_QAtomicInteger_Gcc_char32_t
- tst_QAtomicInteger_Gcc_int
- tst_QAtomicInteger_Gcc_long
- tst_QAtomicInteger_Gcc_qlonglong
- tst_QAtomicInteger_Gcc_qptrdiff
- tst_QAtomicInteger_Gcc_quintptr
- tst_QAtomicInteger_Gcc_qulonglong
- tst_QAtomicInteger_Gcc_schar
- tst_QAtomicInteger_Gcc_short
- tst_QAtomicInteger_Gcc_uchar
- tst_QAtomicInteger_Gcc_uint
- tst_QAtomicInteger_Gcc_ulong
- ...
false;executed 49833 times by 208 tests: return false; Executed by:- tst_Collections
- tst_LargeFile
- tst_PlatformSocketEngine
- tst_QAbstractItemModel
- tst_QAbstractNetworkCache
- tst_QAbstractProxyModel
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInt
- tst_QAtomicInteger_Gcc_char
- tst_QAtomicInteger_Gcc_char16_t
- tst_QAtomicInteger_Gcc_char32_t
- tst_QAtomicInteger_Gcc_int
- tst_QAtomicInteger_Gcc_long
- tst_QAtomicInteger_Gcc_qlonglong
- tst_QAtomicInteger_Gcc_qptrdiff
- tst_QAtomicInteger_Gcc_quintptr
- tst_QAtomicInteger_Gcc_qulonglong
- tst_QAtomicInteger_Gcc_schar
- tst_QAtomicInteger_Gcc_short
- tst_QAtomicInteger_Gcc_uchar
- tst_QAtomicInteger_Gcc_uint
- tst_QAtomicInteger_Gcc_ulong
- ...
| 49833 |
1056 | returnexecuted 173104 times by 538 tests: return qstrncmp(d->data() + d->size - len, str, len) == 0; Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
qstrncmp(d->data() + d->size - len, str, len) == 0;executed 173104 times by 538 tests: return qstrncmp(d->data() + d->size - len, str, len) == 0; Executed by:- tst_Collections
- tst_Compiler
- tst_Gestures
- 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
- tst_QAnimationGroup
- ...
| 173104 |
1057 | } | - |
1058 | | - |
1059 | | - |
1060 | | - |
1061 | | - |
1062 | | - |
1063 | | - |
1064 | bool QByteArray::endsWith(char ch) const | - |
1065 | { | - |
1066 | if (d->size == 0TRUE | evaluated 4 times by 1 test | FALSE | evaluated 72387 times by 327 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-72387 |
1067 | returnexecuted 4 times by 1 test: return false; false;executed 4 times by 1 test: return false; | 4 |
1068 | returnexecuted 72387 times by 327 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 72387 times by 327 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
- ...
| 72387 |
1069 | } | - |
1070 | QByteArray QByteArray::left(int len) const | - |
1071 | { | - |
1072 | if (len >= d->sizeTRUE | evaluated 212 times by 10 testsEvaluated by:- tst_Collections
- tst_QByteArray
- tst_QImageReader
- tst_QImageWriter
- tst_QMimeData
- tst_QTextBrowser
- tst_QTextCodec
- tst_QTextDocument
- tst_QTextEdit
- tst_Spdy
| FALSE | evaluated 80381 times by 52 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_QAbstractButton
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QByteArray
- tst_QChar
- tst_QDataStream
- tst_QDir
- tst_QDockWidget
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QGraphicsItem
- tst_QGraphicsLinearLayout
- tst_QGraphicsWidget
- tst_QIODevice
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- ...
|
) | 212-80381 |
1073 | returnexecuted 212 times by 10 tests: return *this; Executed by:- tst_Collections
- tst_QByteArray
- tst_QImageReader
- tst_QImageWriter
- tst_QMimeData
- tst_QTextBrowser
- tst_QTextCodec
- tst_QTextDocument
- tst_QTextEdit
- tst_Spdy
*this;executed 212 times by 10 tests: return *this; Executed by:- tst_Collections
- tst_QByteArray
- tst_QImageReader
- tst_QImageWriter
- tst_QMimeData
- tst_QTextBrowser
- tst_QTextCodec
- tst_QTextDocument
- tst_QTextEdit
- tst_Spdy
| 212 |
1074 | if (len < 0TRUE | never evaluated | FALSE | evaluated 80381 times by 52 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_QAbstractButton
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QByteArray
- tst_QChar
- tst_QDataStream
- tst_QDir
- tst_QDockWidget
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QGraphicsItem
- tst_QGraphicsLinearLayout
- tst_QGraphicsWidget
- tst_QIODevice
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- ...
|
) | 0-80381 |
1075 | len = 0; never executed: len = 0; | 0 |
1076 | returnexecuted 80381 times by 52 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_QDir
- tst_QDockWidget
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QGraphicsItem
- tst_QGraphicsLinearLayout
- tst_QGraphicsWidget
- tst_QIODevice
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- ...
QByteArray(d->data(), len);executed 80381 times by 52 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_QDir
- tst_QDockWidget
- tst_QErrorMessage
- tst_QFile
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QGraphicsItem
- tst_QGraphicsLinearLayout
- tst_QGraphicsWidget
- tst_QIODevice
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- ...
| 80381 |
1077 | } | - |
1078 | QByteArray QByteArray::right(int len) const | - |
1079 | { | - |
1080 | if (len >= d->sizeTRUE | evaluated 4 times by 2 testsEvaluated by:- tst_Collections
- tst_LargeFile
| FALSE | evaluated 17 times by 4 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_QAuthenticator
- tst_QIODevice
|
) | 4-17 |
1081 | returnexecuted 4 times by 2 tests: return *this; Executed by:- tst_Collections
- tst_LargeFile
*this;executed 4 times by 2 tests: return *this; Executed by:- tst_Collections
- tst_LargeFile
| 4 |
1082 | if (len < 0TRUE | never evaluated | FALSE | evaluated 17 times by 4 testsEvaluated by:- tst_Collections
- tst_LargeFile
- tst_QAuthenticator
- tst_QIODevice
|
) | 0-17 |
1083 | len = 0; never executed: len = 0; | 0 |
1084 | returnexecuted 17 times by 4 tests: return QByteArray(d->data() + d->size - len, len); Executed by:- tst_Collections
- tst_LargeFile
- tst_QAuthenticator
- tst_QIODevice
QByteArray(d->data() + d->size - len, len);executed 17 times by 4 tests: return QByteArray(d->data() + d->size - len, len); Executed by:- tst_Collections
- tst_LargeFile
- tst_QAuthenticator
- tst_QIODevice
| 17 |
1085 | } | - |
1086 | QByteArray QByteArray::mid(int pos, int len) const | - |
1087 | { | - |
1088 | using namespace QtPrivate; | - |
1089 | switch (QContainerImplHelper::mid(size(), &pos, &len)) { | - |
1090 | 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 |
1091 | 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 |
1092 | caseexecuted 2432 times by 51 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 2432 times by 51 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
- ...
| 2432 |
1093 | { | - |
1094 | QByteArrayDataPtr empty = { Data::allocate(0) }; | - |
1095 | returnexecuted 2432 times by 51 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 2432 times by 51 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
- ...
| 2432 |
1096 | } | - |
1097 | 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 |
1098 | 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 |
1099 | caseexecuted 834417 times by 115 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 834417 times by 115 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
- ...
| 834417 |
1100 | returnexecuted 834417 times by 115 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 834417 times by 115 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
- ...
| 834417 |
1101 | } | - |
1102 | do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,2805) : qt_noop()); __builtin_unreachable(); } while (0); | - |
1103 | return never executed: return QByteArray(); QByteArray();never executed: return QByteArray(); | 0 |
1104 | } | - |
1105 | template <typename T> | - |
1106 | __attribute__((noinline)) | - |
1107 | static QByteArray toCase_template(T &input, const uchar * table) | - |
1108 | { | - |
1109 | | - |
1110 | const char *orig_begin = input.constBegin(); | - |
1111 | const char *firstBad = orig_begin; | - |
1112 | const char *e = input.constEnd(); | - |
1113 | for ( ; firstBad != eTRUE | evaluated 424013 times by 166 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 49777 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) { | 49777-424013 |
1114 | uchar ch = uchar(*firstBad); | - |
1115 | uchar converted = table[ch]; | - |
1116 | if (ch != convertedTRUE | evaluated 46227 times by 158 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 377786 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
- ...
|
) | 46227-377786 |
1117 | break;executed 46227 times by 158 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
- ...
| 46227 |
1118 | }executed 377786 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
- ...
| 377786 |
1119 | | - |
1120 | if (firstBad == eTRUE | evaluated 49777 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 46227 times by 158 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
- ...
|
) | 46227-49777 |
1121 | returnexecuted 49777 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 49777 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
- ...
| 49777 |
1122 | | - |
1123 | | - |
1124 | QByteArray s = std::move(input); | - |
1125 | char *b = s.begin(); | - |
1126 | char *p = b + (firstBad - orig_begin); | - |
1127 | e = b + s.size(); | - |
1128 | for ( ; p != eTRUE | evaluated 457049 times by 158 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 46227 times by 158 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) { | 46227-457049 |
1129 | *p = char(uchar(table[uchar(*p)])); | - |
1130 | }executed 457049 times by 158 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
- ...
| 457049 |
1131 | returnexecuted 46227 times by 158 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 46227 times by 158 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
- ...
| 46227 |
1132 | } | - |
1133 | | - |
1134 | QByteArray QByteArray::toLower_helper(const QByteArray &a) | - |
1135 | { | - |
1136 | returnexecuted 33778 times by 165 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 33778 times by 165 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
- ...
| 33778 |
1137 | } | - |
1138 | | - |
1139 | QByteArray QByteArray::toLower_helper(QByteArray &a) | - |
1140 | { | - |
1141 | returnexecuted 61989 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 61989 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
- ...
| 61989 |
1142 | } | - |
1143 | QByteArray QByteArray::toUpper_helper(const QByteArray &a) | - |
1144 | { | - |
1145 | 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 |
1146 | } | - |
1147 | | - |
1148 | QByteArray QByteArray::toUpper_helper(QByteArray &a) | - |
1149 | { | - |
1150 | 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 |
1151 | } | - |
1152 | void QByteArray::clear() | - |
1153 | { | - |
1154 | if (!d->ref.deref()TRUE | evaluated 16832 times by 98 testsEvaluated by:- tst_Collections
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QBuffer
- tst_QByteArray
- tst_QColorDialog
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDataStream
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGuiEventLoop
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- ...
| FALSE | evaluated 720262 times by 258 testsEvaluated by:- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- 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
- ...
|
) | 16832-720262 |
1155 | Data::deallocate(d);executed 16832 times by 98 tests: Data::deallocate(d); Executed by:- tst_Collections
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QBuffer
- tst_QByteArray
- tst_QColorDialog
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDataStream
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFileDialog2
- tst_QFileInfo
- tst_QFileSystemModel
- tst_QFileSystemWatcher
- tst_QFiledialog
- tst_QFtp
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGuiEventLoop
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- ...
| 16832 |
1156 | d = Data::sharedNull(); | - |
1157 | }executed 737094 times by 263 tests: end of block Executed by:- tst_Collections
- tst_Lancelot
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- 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
- ...
| 737094 |
1158 | QDataStream &operator<<(QDataStream &out, const QByteArray &ba) | - |
1159 | { | - |
1160 | 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 |
1161 | out << (quint32)0xffffffff; | - |
1162 | 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 |
1163 | } | - |
1164 | 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 |
1165 | } | - |
1166 | QDataStream &operator>>(QDataStream &in, QByteArray &ba) | - |
1167 | { | - |
1168 | ba.clear(); | - |
1169 | quint32 len; | - |
1170 | in >> len; | - |
1171 | 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 |
1172 | 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 |
1173 | | - |
1174 | const quint32 Step = 1024 * 1024; | - |
1175 | quint32 allocated = 0; | - |
1176 | | - |
1177 | do { | - |
1178 | int blockSize = qMin(Step, len - allocated); | - |
1179 | ba.resize(allocated + blockSize); | - |
1180 | 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 |
1181 | ba.clear(); | - |
1182 | in.setStatus(QDataStream::ReadPastEnd); | - |
1183 | returnexecuted 11 times by 1 test: return in; in;executed 11 times by 1 test: return in; | 11 |
1184 | } | - |
1185 | allocated += blockSize; | - |
1186 | }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 |
1187 | | - |
1188 | 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 |
1189 | } | - |
1190 | QByteArray QByteArray::simplified_helper(const QByteArray &a) | - |
1191 | { | - |
1192 | returnexecuted 12102 times by 2 tests: return QStringAlgorithms<const QByteArray>::simplified_helper(a); Executed by:- tst_QLogging
- tst_QTcpSocket
QStringAlgorithms<const QByteArray>::simplified_helper(a);executed 12102 times by 2 tests: return QStringAlgorithms<const QByteArray>::simplified_helper(a); Executed by:- tst_QLogging
- tst_QTcpSocket
| 12102 |
1193 | } | - |
1194 | | - |
1195 | QByteArray QByteArray::simplified_helper(QByteArray &a) | - |
1196 | { | - |
1197 | returnexecuted 55978 times by 32 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 55978 times by 32 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
- ...
| 55978 |
1198 | } | - |
1199 | QByteArray QByteArray::trimmed_helper(const QByteArray &a) | - |
1200 | { | - |
1201 | returnexecuted 29463 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 29463 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
- ...
| 29463 |
1202 | } | - |
1203 | | - |
1204 | QByteArray QByteArray::trimmed_helper(QByteArray &a) | - |
1205 | { | - |
1206 | returnexecuted 88495 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 88495 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
- ...
| 88495 |
1207 | } | - |
1208 | QByteArray QByteArray::leftJustified(int width, char fill, bool truncate) const | - |
1209 | { | - |
1210 | QByteArray result; | - |
1211 | int len = d->size; | - |
1212 | int padlen = width - len; | - |
1213 | if (padlen > 0TRUE | evaluated 13 times by 2 testsEvaluated by:- tst_QAuthenticator
- tst_QByteArray
| FALSE | evaluated 8 times by 1 test |
) { | 8-13 |
1214 | result.resize(len+padlen); | - |
1215 | if (lenTRUE | evaluated 12 times by 2 testsEvaluated by:- tst_QAuthenticator
- tst_QByteArray
| FALSE | evaluated 1 time by 1 test |
) | 1-12 |
1216 | 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 |
1217 | memset(result.d->data()+len, fill, padlen); | - |
1218 | }executed 13 times by 2 tests: end of block Executed by:- tst_QAuthenticator
- tst_QByteArray
else { | 13 |
1219 | if (truncateTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
) | 4 |
1220 | result = left(width);executed 4 times by 1 test: result = left(width); | 4 |
1221 | else | - |
1222 | result = *this;executed 4 times by 1 test: result = *this; | 4 |
1223 | } | - |
1224 | 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 |
1225 | } | - |
1226 | QByteArray QByteArray::rightJustified(int width, char fill, bool truncate) const | - |
1227 | { | - |
1228 | QByteArray result; | - |
1229 | int len = d->size; | - |
1230 | int padlen = width - len; | - |
1231 | if (padlen > 0TRUE | evaluated 3107 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 4789 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
|
) { | 3107-4789 |
1232 | result.resize(len+padlen); | - |
1233 | if (lenTRUE | evaluated 3106 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-3106 |
1234 | memcpy(result.d->data()+padlen, data(), len);executed 3106 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
| 3106 |
1235 | memset(result.d->data(), fill, padlen); | - |
1236 | }executed 3107 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 { | 3107 |
1237 | if (truncateTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4785 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-4785 |
1238 | result = left(width);executed 4 times by 1 test: result = left(width); | 4 |
1239 | else | - |
1240 | result = *this;executed 4785 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
| 4785 |
1241 | } | - |
1242 | returnexecuted 7896 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 7896 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
| 7896 |
1243 | } | - |
1244 | | - |
1245 | bool QByteArray::isNull() const { returnexecuted 687081 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 687081 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
- ...
} | 687081 |
1246 | | - |
1247 | static qlonglong toIntegral_helper(const char *data, bool *ok, int base, qlonglong) | - |
1248 | { | - |
1249 | returnexecuted 197709 times by 65 tests: return QLocaleData::bytearrayToLongLong(data, base, ok); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QChar
- tst_QDateTime
- tst_QDockWidget
- tst_QFtp
- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGLThreads
- tst_QGraphicsView
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QLockFile
- tst_QMdiArea
- ...
QLocaleData::bytearrayToLongLong(data, base, ok);executed 197709 times by 65 tests: return QLocaleData::bytearrayToLongLong(data, base, ok); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QChar
- tst_QDateTime
- tst_QDockWidget
- tst_QFtp
- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGLThreads
- tst_QGraphicsView
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QLockFile
- tst_QMdiArea
- ...
| 197709 |
1250 | } | - |
1251 | | - |
1252 | static qulonglong toIntegral_helper(const char *data, bool *ok, int base, qulonglong) | - |
1253 | { | - |
1254 | returnexecuted 8787 times by 23 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_qnetworkreply - unknown status
- tst_qprocess - unknown status
- tst_qsystemsemaphore - unknown status
QLocaleData::bytearrayToUnsLongLong(data, base, ok);executed 8787 times by 23 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_qnetworkreply - unknown status
- tst_qprocess - unknown status
- tst_qsystemsemaphore - unknown status
| 8787 |
1255 | } | - |
1256 | | - |
1257 | template <typename T> static inline | - |
1258 | T toIntegral_helper(const char *data, bool *ok, int base) | - |
1259 | { | - |
1260 | | - |
1261 | const bool isUnsigned = T(0) < T(-1); | - |
1262 | typedef typename QtPrivate::QConditional<isUnsigned, qulonglong, qlonglong>::Type Int64; | - |
1263 | Int64 val = toIntegral_helper(data, ok, base, Int64()); | - |
1264 | if (T(val) != valTRUE | never evaluated | FALSE | evaluated 206496 times by 70 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QChar
- tst_QDateTime
- tst_QDockWidget
- tst_QFtp
- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGLThreads
- tst_QGraphicsView
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- tst_QHttpSocketEngine
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QLockFile
- ...
|
) { | 0-206496 |
1265 | if (okTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1266 | * never executed: *ok = false; ok = false;never executed: *ok = false; | 0 |
1267 | val = 0; | - |
1268 | } never executed: end of block | 0 |
1269 | returnexecuted 206496 times by 70 tests: return T(val); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QChar
- tst_QDateTime
- tst_QDockWidget
- tst_QFtp
- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGLThreads
- tst_QGraphicsView
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- tst_QHttpSocketEngine
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QLockFile
- ...
T(val);executed 206496 times by 70 tests: return T(val); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QChar
- tst_QDateTime
- tst_QDockWidget
- tst_QFtp
- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGLThreads
- tst_QGraphicsView
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpNetworkReply
- tst_QHttpSocketEngine
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QLockFile
- ...
| 206496 |
1270 | } | - |
1271 | qlonglong QByteArray::toLongLong(bool *ok, int base) const | - |
1272 | { | - |
1273 | 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 |
1274 | } | - |
1275 | qulonglong QByteArray::toULongLong(bool *ok, int base) const | - |
1276 | { | - |
1277 | returnexecuted 8066 times by 17 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
- tst_qnetworkreply - unknown status
toIntegral_helper<qulonglong>(nulTerminated().constData(), ok, base);executed 8066 times by 17 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
- tst_qnetworkreply - unknown status
| 8066 |
1278 | } | - |
1279 | int QByteArray::toInt(bool *ok, int base) const | - |
1280 | { | - |
1281 | returnexecuted 196767 times by 61 tests: return toIntegral_helper<int>(nulTerminated().constData(), ok, base); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QChar
- tst_QDateTime
- tst_QDockWidget
- tst_QFtp
- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGLThreads
- tst_QGraphicsView
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QMdiArea
- tst_QNetworkAccessManager
- ...
toIntegral_helper<int>(nulTerminated().constData(), ok, base);executed 196767 times by 61 tests: return toIntegral_helper<int>(nulTerminated().constData(), ok, base); Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAbstractScrollArea
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- tst_QChar
- tst_QDateTime
- tst_QDockWidget
- tst_QFtp
- tst_QGLBuffer
- tst_QGLFunctions
- tst_QGLThreads
- tst_QGraphicsView
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImage
- tst_QImageReader
- tst_QImageWriter
- tst_QLayout
- tst_QMdiArea
- tst_QNetworkAccessManager
- ...
| 196767 |
1282 | } | - |
1283 | uint QByteArray::toUInt(bool *ok, int base) const | - |
1284 | { | - |
1285 | returnexecuted 711 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 711 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
| 711 |
1286 | } | - |
1287 | long QByteArray::toLong(bool *ok, int base) const | - |
1288 | { | - |
1289 | returnexecuted 273 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 273 times by 4 tests: return toIntegral_helper<long>(nulTerminated().constData(), ok, base); Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkReply
- tst_Spdy
| 273 |
1290 | } | - |
1291 | ulong QByteArray::toULong(bool *ok, int base) const | - |
1292 | { | - |
1293 | 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 |
1294 | } | - |
1295 | short QByteArray::toShort(bool *ok, int base) const | - |
1296 | { | - |
1297 | 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 |
1298 | } | - |
1299 | ushort QByteArray::toUShort(bool *ok, int base) const | - |
1300 | { | - |
1301 | 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 |
1302 | } | - |
1303 | double QByteArray::toDouble(bool *ok) const | - |
1304 | { | - |
1305 | returnexecuted 6 times by 1 test: return QLocaleData::bytearrayToDouble(nulTerminated().constData(), ok); QLocaleData::bytearrayToDouble(nulTerminated().constData(), ok);executed 6 times by 1 test: return QLocaleData::bytearrayToDouble(nulTerminated().constData(), ok); | 6 |
1306 | } | - |
1307 | float QByteArray::toFloat(bool *ok) const | - |
1308 | { | - |
1309 | 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 |
1310 | } | - |
1311 | QByteArray QByteArray::toBase64() const | - |
1312 | { | - |
1313 | returnexecuted 751 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 751 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
| 751 |
1314 | } | - |
1315 | QByteArray QByteArray::toBase64(Base64Options options) const | - |
1316 | { | - |
1317 | const char alphabet_base64[] = "ABCDEFGH" "IJKLMNOP" "QRSTUVWX" "YZabcdef" | - |
1318 | "ghijklmn" "opqrstuv" "wxyz0123" "456789+/"; | - |
1319 | const char alphabet_base64url[] = "ABCDEFGH" "IJKLMNOP" "QRSTUVWX" "YZabcdef" | - |
1320 | "ghijklmn" "opqrstuv" "wxyz0123" "456789-_"; | - |
1321 | const char *const alphabet = options & Base64UrlEncodingTRUE | evaluated 36 times by 1 test | FALSE | evaluated 787 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-787 |
1322 | const char padchar = '='; | - |
1323 | int padlen = 0; | - |
1324 | | - |
1325 | QByteArray tmp((d->size + 2) / 3 * 4, Qt::Uninitialized); | - |
1326 | | - |
1327 | int i = 0; | - |
1328 | char *out = tmp.data(); | - |
1329 | while (i < d->sizeTRUE | evaluated 746920 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 823 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
|
) { | 823-746920 |
1330 | | - |
1331 | int chunk = 0; | - |
1332 | chunk |= int(uchar(d->data()[i++])) << 16; | - |
1333 | if (i == d->sizeTRUE | evaluated 420 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 746500 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
|
) { | 420-746500 |
1334 | padlen = 2; | - |
1335 | }executed 420 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 { | 420 |
1336 | chunk |= int(uchar(d->data()[i++])) << 8; | - |
1337 | if (i == d->sizeTRUE | evaluated 250 times by 7 testsEvaluated by:- tst_QAuthenticator
- tst_QByteArray
- tst_QHttpNetworkConnection
- tst_QImageReader
- tst_QNetworkReply
- tst_QSslCertificate
- tst_QSslKey
| FALSE | evaluated 746250 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
|
) | 250-746250 |
1338 | padlen = 1;executed 250 times by 7 tests: padlen = 1; Executed by:- tst_QAuthenticator
- tst_QByteArray
- tst_QHttpNetworkConnection
- tst_QImageReader
- tst_QNetworkReply
- tst_QSslCertificate
- tst_QSslKey
| 250 |
1339 | else | - |
1340 | chunk |= int(uchar(data()[i++]));executed 746250 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
| 746250 |
1341 | } | - |
1342 | | - |
1343 | int j = (chunk & 0x00fc0000) >> 18; | - |
1344 | int k = (chunk & 0x0003f000) >> 12; | - |
1345 | int l = (chunk & 0x00000fc0) >> 6; | - |
1346 | int m = (chunk & 0x0000003f); | - |
1347 | *out++ = alphabet[j]; | - |
1348 | *out++ = alphabet[k]; | - |
1349 | | - |
1350 | if (padlen > 1TRUE | evaluated 420 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 746500 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
|
) { | 420-746500 |
1351 | if ((TRUE | evaluated 406 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 406 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-406 |
1352 | *executed 406 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 406 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
| 406 |
1353 | }executed 420 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 { | 420 |
1354 | *out++ = alphabet[l]; | - |
1355 | }executed 746500 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
| 746500 |
1356 | if (padlen > 0TRUE | evaluated 670 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 746250 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
|
) { | 670-746250 |
1357 | if ((TRUE | evaluated 644 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 644 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-644 |
1358 | *executed 644 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 644 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
| 644 |
1359 | }executed 670 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 { | 670 |
1360 | *out++ = alphabet[m]; | - |
1361 | }executed 746250 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
| 746250 |
1362 | } | - |
1363 | ((!((options & OmitTrailingEquals) || (out == tmp.size() + tmp.data()))) ? qt_assert("(options & OmitTrailingEquals) || (out == tmp.size() + tmp.data())",__FILE__,3748) : qt_noop()); | - |
1364 | if (options & OmitTrailingEqualsTRUE | evaluated 36 times by 1 test | FALSE | evaluated 787 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-787 |
1365 | tmp.truncate(out - tmp.data());executed 36 times by 1 test: tmp.truncate(out - tmp.data()); | 36 |
1366 | returnexecuted 823 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 823 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
| 823 |
1367 | } | - |
1368 | static char *qulltoa2(char *p, qulonglong n, int base) | - |
1369 | { | - |
1370 | | - |
1371 | | - |
1372 | | - |
1373 | | - |
1374 | | - |
1375 | | - |
1376 | const char b = 'a' - 10; | - |
1377 | do { | - |
1378 | const int c = n % base; | - |
1379 | n /= base; | - |
1380 | *--p = c + (c < 10TRUE | evaluated 2324959 times by 97 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QApplication
- tst_QAsn1Element
- tst_QAuthenticator
- tst_QByteArray
- 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_QDate
- tst_QDialog
- tst_QDir
- ...
| FALSE | evaluated 34105 times by 28 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAlgorithms
- tst_QAuthenticator
- tst_QByteArray
- 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
- tst_QUrlInternal
- ...
|
? '0' : b); | 34105-2324959 |
1381 | }executed 2359064 times by 97 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QApplication
- tst_QAsn1Element
- tst_QAuthenticator
- tst_QByteArray
- 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_QDate
- tst_QDialog
- tst_QDir
- ...
while (nTRUE | evaluated 1913136 times by 72 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAlgorithms
- tst_QAsn1Element
- tst_QAuthenticator
- tst_QByteArray
- tst_QColorDialog
- tst_QComboBox
- 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_QDate
- tst_QDialog
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFtp
- ...
| FALSE | evaluated 445928 times by 97 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QApplication
- tst_QAsn1Element
- tst_QAuthenticator
- tst_QByteArray
- 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_QDate
- tst_QDialog
- tst_QDir
- ...
|
); | 445928-2359064 |
1382 | | - |
1383 | returnexecuted 445928 times by 97 tests: return p; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QApplication
- tst_QAsn1Element
- tst_QAuthenticator
- tst_QByteArray
- 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_QDate
- tst_QDialog
- tst_QDir
- ...
p;executed 445928 times by 97 tests: return p; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QApplication
- tst_QAsn1Element
- tst_QAuthenticator
- tst_QByteArray
- 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_QDate
- tst_QDialog
- tst_QDir
- ...
| 445928 |
1384 | } | - |
1385 | | - |
1386 | | - |
1387 | | - |
1388 | | - |
1389 | | - |
1390 | | - |
1391 | QByteArray &QByteArray::setNum(qlonglong n, int base) | - |
1392 | { | - |
1393 | const int buffsize = 66; | - |
1394 | char buff[buffsize]; | - |
1395 | char *p; | - |
1396 | | - |
1397 | if (n < 0TRUE | evaluated 186 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QGetPutEnv
- tst_QNetworkDiskCache
- tst_QVariant
| FALSE | evaluated 424982 times by 90 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- 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_QDate
- tst_QDialog
- tst_QDir
- tst_QFileDialog2
- tst_QFileSystemWatcher
- ...
|
&& base == 10TRUE | evaluated 18 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QGetPutEnv
- tst_QVariant
| FALSE | evaluated 168 times by 3 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QByteArray
- tst_QNetworkDiskCache
|
) { | 18-424982 |
1398 | p = qulltoa2(buff + buffsize, qulonglong(-(1 + n)) + 1, base); | - |
1399 | *--p = '-'; | - |
1400 | }executed 18 times by 3 tests: end of block Executed by:- tst_QByteArray
- tst_QGetPutEnv
- tst_QVariant
else { | 18 |
1401 | p = qulltoa2(buff + buffsize, qulonglong(n), base); | - |
1402 | }executed 425150 times by 90 tests: end of block Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- 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_QDate
- tst_QDialog
- tst_QDir
- tst_QFileDialog2
- tst_QFileSystemWatcher
- ...
| 425150 |
1403 | | - |
1404 | clear(); | - |
1405 | append(p, buffsize - (p - buff)); | - |
1406 | returnexecuted 425168 times by 90 tests: return *this; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- 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_QDate
- tst_QDialog
- tst_QDir
- tst_QFileDialog2
- tst_QFileSystemWatcher
- ...
*this;executed 425168 times by 90 tests: return *this; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QApplication
- tst_QAsn1Element
- tst_QByteArray
- 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_QDate
- tst_QDialog
- tst_QDir
- tst_QFileDialog2
- tst_QFileSystemWatcher
- ...
| 425168 |
1407 | } | - |
1408 | | - |
1409 | | - |
1410 | | - |
1411 | | - |
1412 | | - |
1413 | | - |
1414 | | - |
1415 | QByteArray &QByteArray::setNum(qulonglong n, int base) | - |
1416 | { | - |
1417 | const int buffsize = 66; | - |
1418 | char buff[buffsize]; | - |
1419 | char *p = qulltoa2(buff + buffsize, n, base); | - |
1420 | | - |
1421 | clear(); | - |
1422 | append(p, buffsize - (p - buff)); | - |
1423 | returnexecuted 20760 times by 33 tests: return *this; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAlgorithms
- tst_QAsn1Element
- tst_QAuthenticator
- tst_QByteArray
- tst_QColorDialog
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QImageWriter
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QPlainTextEdit
- tst_QSettings
- tst_QSocks5SocketEngine
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- ...
*this;executed 20760 times by 33 tests: return *this; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAlgorithms
- tst_QAsn1Element
- tst_QAuthenticator
- tst_QByteArray
- tst_QColorDialog
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QImageReader
- tst_QImageWriter
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QPlainTextEdit
- tst_QSettings
- tst_QSocks5SocketEngine
- tst_QSslCertificate
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- ...
| 20760 |
1424 | } | - |
1425 | QByteArray &QByteArray::setNum(double n, char f, int prec) | - |
1426 | { | - |
1427 | QLocaleData::DoubleForm form = QLocaleData::DFDecimal; | - |
1428 | uint flags = 0; | - |
1429 | | - |
1430 | if (qIsUpper(f)TRUE | never evaluated | FALSE | evaluated 217 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
|
) | 0-217 |
1431 | flags = QLocaleData::CapitalEorX; never executed: flags = QLocaleData::CapitalEorX; | 0 |
1432 | f = qToLower(f); | - |
1433 | | - |
1434 | switch (f) { | - |
1435 | case never executed: case 'f': 'f':never executed: case 'f': | 0 |
1436 | form = QLocaleData::DFDecimal; | - |
1437 | break; never executed: break; | 0 |
1438 | case never executed: case 'e': 'e':never executed: case 'e': | 0 |
1439 | form = QLocaleData::DFExponent; | - |
1440 | break; never executed: break; | 0 |
1441 | caseexecuted 217 times by 3 tests: case 'g': Executed by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
'g':executed 217 times by 3 tests: case 'g': Executed by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
| 217 |
1442 | form = QLocaleData::DFSignificantDigits; | - |
1443 | break;executed 217 times by 3 tests: break; Executed by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
| 217 |
1444 | default never executed: default: :never executed: default: | 0 |
1445 | | - |
1446 | | - |
1447 | | - |
1448 | break; never executed: break; | 0 |
1449 | } | - |
1450 | | - |
1451 | *this = QLocaleData::c()->doubleToString(n, prec, form, -1, flags).toLatin1(); | - |
1452 | returnexecuted 217 times by 3 tests: return *this; Executed by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
*this;executed 217 times by 3 tests: return *this; Executed by:- tst_QByteArray
- tst_QVariant
- tst_selftests - unknown status
| 217 |
1453 | } | - |
1454 | QByteArray QByteArray::number(int n, int base) | - |
1455 | { | - |
1456 | QByteArray s; | - |
1457 | s.setNum(n, base); | - |
1458 | returnexecuted 432570 times by 87 tests: return s; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QApplication
- tst_QAsn1Element
- tst_QAuthenticator
- 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_QDate
- tst_QDialog
- tst_QDir
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
s;executed 432570 times by 87 tests: return s; Executed by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QAccessibility
- tst_QAlgorithms
- tst_QApplication
- tst_QAsn1Element
- tst_QAuthenticator
- 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_QDate
- tst_QDialog
- tst_QDir
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 432570 |
1459 | } | - |
1460 | | - |
1461 | | - |
1462 | | - |
1463 | | - |
1464 | | - |
1465 | | - |
1466 | QByteArray QByteArray::number(uint n, int base) | - |
1467 | { | - |
1468 | QByteArray s; | - |
1469 | s.setNum(n, base); | - |
1470 | returnexecuted 7587 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 7587 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
| 7587 |
1471 | } | - |
1472 | | - |
1473 | | - |
1474 | | - |
1475 | | - |
1476 | | - |
1477 | | - |
1478 | QByteArray QByteArray::number(qlonglong n, int base) | - |
1479 | { | - |
1480 | QByteArray s; | - |
1481 | s.setNum(n, base); | - |
1482 | returnexecuted 1419 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 1419 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
| 1419 |
1483 | } | - |
1484 | | - |
1485 | | - |
1486 | | - |
1487 | | - |
1488 | | - |
1489 | | - |
1490 | QByteArray QByteArray::number(qulonglong n, int base) | - |
1491 | { | - |
1492 | QByteArray s; | - |
1493 | s.setNum(n, base); | - |
1494 | returnexecuted 4329 times by 4 tests: return s; Executed by:- tst_NetworkSelfTest
- tst_QAlgorithms
- tst_QByteArray
- tst_QVariant
s;executed 4329 times by 4 tests: return s; Executed by:- tst_NetworkSelfTest
- tst_QAlgorithms
- tst_QByteArray
- tst_QVariant
| 4329 |
1495 | } | - |
1496 | QByteArray QByteArray::number(double n, char f, int prec) | - |
1497 | { | - |
1498 | QByteArray s; | - |
1499 | s.setNum(n, f, prec); | - |
1500 | returnexecuted 214 times by 2 tests: return s; Executed by:- tst_QVariant
- tst_selftests - unknown status
s;executed 214 times by 2 tests: return s; Executed by:- tst_QVariant
- tst_selftests - unknown status
| 214 |
1501 | } | - |
1502 | QByteArray QByteArray::fromRawData(const char *data, int size) | - |
1503 | { | - |
1504 | Data *x; | - |
1505 | if (!dataTRUE | never evaluated | FALSE | evaluated 1816242 times by 572 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-1816242 |
1506 | x = Data::sharedNull(); | - |
1507 | } 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 1816223 times by 572 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-1816223 |
1508 | x = Data::allocate(0); | - |
1509 | }executed 19 times by 4 tests: end of block Executed by:- tst_QByteArray
- tst_QImage
- tst_QNetworkReply
- tst_Spdy
else { | 19 |
1510 | x = Data::fromRawData(data, size); | - |
1511 | do { if (!(x)TRUE | never evaluated | FALSE | evaluated 1816223 times by 572 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-1816223 |
1512 | }executed 1816223 times by 572 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
- ...
| 1816223 |
1513 | QByteArrayDataPtr dataPtr = { x }; | - |
1514 | returnexecuted 1816242 times by 572 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 1816242 times by 572 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
- ...
| 1816242 |
1515 | } | - |
1516 | QByteArray &QByteArray::setRawData(const char *data, uint size) | - |
1517 | { | - |
1518 | if (d->ref.isShared()TRUE | evaluated 9 times by 4 testsEvaluated by:- tst_QFileSelector
- tst_QNetworkProxyFactory
- tst_QOpenGlConfig
- tst_selftests - unknown status
| FALSE | evaluated 63 times by 4 testsEvaluated by:- tst_QFileSelector
- tst_QNetworkProxyFactory
- tst_QOpenGlConfig
- tst_selftests - unknown status
|
|| d->allocTRUE | never evaluated | FALSE | evaluated 63 times by 4 testsEvaluated by:- tst_QFileSelector
- tst_QNetworkProxyFactory
- tst_QOpenGlConfig
- tst_selftests - unknown status
|
) { | 0-63 |
1519 | *this = fromRawData(data, size); | - |
1520 | }executed 9 times by 4 tests: end of block Executed by:- tst_QFileSelector
- tst_QNetworkProxyFactory
- tst_QOpenGlConfig
- tst_selftests - unknown status
else { | 9 |
1521 | if (dataTRUE | evaluated 63 times by 4 testsEvaluated by:- tst_QFileSelector
- tst_QNetworkProxyFactory
- tst_QOpenGlConfig
- tst_selftests - unknown status
| FALSE | never evaluated |
) { | 0-63 |
1522 | d->size = size; | - |
1523 | d->offset = data - reinterpret_cast<char *>(d); | - |
1524 | }executed 63 times by 4 tests: end of block Executed by:- tst_QFileSelector
- tst_QNetworkProxyFactory
- tst_QOpenGlConfig
- tst_selftests - unknown status
else { | 63 |
1525 | d->offset = sizeof(QByteArrayData); | - |
1526 | d->size = 0; | - |
1527 | *d->data() = 0; | - |
1528 | } never executed: end of block | 0 |
1529 | } | - |
1530 | returnexecuted 72 times by 4 tests: return *this; Executed by:- tst_QFileSelector
- tst_QNetworkProxyFactory
- tst_QOpenGlConfig
- tst_selftests - unknown status
*this;executed 72 times by 4 tests: return *this; Executed by:- tst_QFileSelector
- tst_QNetworkProxyFactory
- tst_QOpenGlConfig
- tst_selftests - unknown status
| 72 |
1531 | } | - |
1532 | QByteArray QByteArray::fromBase64(const QByteArray &base64) | - |
1533 | { | - |
1534 | returnexecuted 20612 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 20612 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
| 20612 |
1535 | } | - |
1536 | QByteArray QByteArray::fromBase64(const QByteArray &base64, Base64Options options) | - |
1537 | { | - |
1538 | unsigned int buf = 0; | - |
1539 | int nbits = 0; | - |
1540 | QByteArray tmp((base64.size() * 3) / 4, Qt::Uninitialized); | - |
1541 | | - |
1542 | int offset = 0; | - |
1543 | for (int i = 0; i < base64.size()TRUE | evaluated 32614095 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 20650 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) { | 20650-32614095 |
1544 | int ch = base64.at(i); | - |
1545 | int d; | - |
1546 | | - |
1547 | if (ch >= 'A'TRUE | evaluated 27609756 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 5004339 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 16156002 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 11453754 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
|
) | 5004339-27609756 |
1548 | d = ch - 'A';executed 16156002 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
| 16156002 |
1549 | else if (ch >= 'a'TRUE | evaluated 11453744 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 5004349 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 11453744 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-11453744 |
1550 | d = ch - 'a' + 26;executed 11453744 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
| 11453744 |
1551 | else if (ch >= '0'TRUE | evaluated 3933050 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 1071299 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 3914334 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-3933050 |
1552 | d = ch - '0' + 52;executed 3914334 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
| 3914334 |
1553 | else if (ch == '+'TRUE | evaluated 282753 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 807262 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 282747 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 282747 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-807262 |
1554 | d = 62;executed 282747 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
| 282747 |
1555 | else if (ch == '-'TRUE | evaluated 12 times by 1 test | FALSE | evaluated 807256 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-807256 |
1556 | d = 62;executed 6 times by 1 test: d = 62; | 6 |
1557 | else if (ch == '/'TRUE | evaluated 322196 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 485066 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 322191 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 322191 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-485066 |
1558 | d = 63;executed 322191 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
| 322191 |
1559 | else if (ch == '_'TRUE | evaluated 10 times by 1 test | FALSE | evaluated 485061 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-485061 |
1560 | d = 63;executed 5 times by 1 test: d = 63; | 5 |
1561 | else | - |
1562 | d = -1;executed 485066 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
| 485066 |
1563 | | - |
1564 | if (d != -1TRUE | evaluated 32129029 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 485066 times by 8 testsEvaluated by:- tst_QAuthenticator
- tst_QByteArray
- tst_QImageReader
- tst_QNetworkReply
- tst_QSslCertificate
- tst_QSslKey
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_static
|
) { | 485066-32129029 |
1565 | buf = (buf << 6) | d; | - |
1566 | nbits += 6; | - |
1567 | if (nbits >= 8TRUE | evaluated 24092092 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 8036937 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
|
) { | 8036937-24092092 |
1568 | nbits -= 8; | - |
1569 | tmp[offset++] = buf >> nbits; | - |
1570 | buf &= (1 << nbits) - 1; | - |
1571 | }executed 24092092 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
| 24092092 |
1572 | }executed 32129029 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
| 32129029 |
1573 | }executed 32614095 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
| 32614095 |
1574 | | - |
1575 | tmp.truncate(offset); | - |
1576 | returnexecuted 20650 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 20650 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
| 20650 |
1577 | } | - |
1578 | QByteArray QByteArray::fromHex(const QByteArray &hexEncoded) | - |
1579 | { | - |
1580 | QByteArray res((hexEncoded.size() + 1)/ 2, Qt::Uninitialized); | - |
1581 | uchar *result = (uchar *)res.data() + res.size(); | - |
1582 | | - |
1583 | bool odd_digit = true; | - |
1584 | 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 |
1585 | uchar ch = uchar(hexEncoded.at(i)); | - |
1586 | int tmp = QtMiscUtils::fromHex(ch); | - |
1587 | 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 |
1588 | continue;executed 1031 times by 2 tests: continue; Executed by:- tst_QByteArray
- tst_QSslCertificate
| 1031 |
1589 | 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 |
1590 | --result; | - |
1591 | *result = tmp; | - |
1592 | odd_digit = false; | - |
1593 | }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 |
1594 | *result |= tmp << 4; | - |
1595 | odd_digit = true; | - |
1596 | }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 |
1597 | } | - |
1598 | | - |
1599 | res.remove(0, result - (const uchar *)res.constData()); | - |
1600 | 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 |
1601 | } | - |
1602 | | - |
1603 | | - |
1604 | | - |
1605 | | - |
1606 | | - |
1607 | | - |
1608 | | - |
1609 | QByteArray QByteArray::toHex() const | - |
1610 | { | - |
1611 | QByteArray hex(d->size * 2, Qt::Uninitialized); | - |
1612 | char *hexData = hex.data(); | - |
1613 | const uchar *data = (const uchar *)d->data(); | - |
1614 | for (int i = 0; i < d->sizeTRUE | evaluated 197241 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 10235 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) { | 10235-197241 |
1615 | hexData[i*2] = QtMiscUtils::toHexLower(data[i] >> 4); | - |
1616 | hexData[i*2+1] = QtMiscUtils::toHexLower(data[i] & 0xf); | - |
1617 | }executed 197241 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
- ...
| 197241 |
1618 | returnexecuted 10235 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 10235 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
- ...
| 10235 |
1619 | } | - |
1620 | | - |
1621 | static void q_fromPercentEncoding(QByteArray *ba, char percent) | - |
1622 | { | - |
1623 | 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 |
1624 | return; never executed: return; | 0 |
1625 | | - |
1626 | char *data = ba->data(); | - |
1627 | const char *inputPtr = data; | - |
1628 | | - |
1629 | int i = 0; | - |
1630 | int len = ba->count(); | - |
1631 | int outlen = 0; | - |
1632 | int a, b; | - |
1633 | char c; | - |
1634 | 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 |
1635 | c = inputPtr[i]; | - |
1636 | 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 |
1637 | a = inputPtr[++i]; | - |
1638 | b = inputPtr[++i]; | - |
1639 | | - |
1640 | 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 |
1641 | 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 |
1642 | 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 |
1643 | | - |
1644 | 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 |
1645 | 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 |
1646 | 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 |
1647 | | - |
1648 | *data++ = (char)((a << 4) | b); | - |
1649 | }executed 196 times by 5 tests: end of block Executed by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
else { | 196 |
1650 | *data++ = c; | - |
1651 | }executed 1802 times by 5 tests: end of block Executed by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
| 1802 |
1652 | | - |
1653 | ++i; | - |
1654 | ++outlen; | - |
1655 | }executed 1998 times by 5 tests: end of block Executed by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
| 1998 |
1656 | | - |
1657 | 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 |
1658 | 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 |
1659 | }executed 84 times by 5 tests: end of block Executed by:- tst_QByteArray
- tst_QDataUrl
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
| 84 |
1660 | | - |
1661 | void q_fromPercentEncoding(QByteArray *ba) | - |
1662 | { | - |
1663 | q_fromPercentEncoding(ba, '%'); | - |
1664 | } never executed: end of block | 0 |
1665 | QByteArray QByteArray::fromPercentEncoding(const QByteArray &input, char percent) | - |
1666 | { | - |
1667 | 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 |
1668 | returnexecuted 2 times by 1 test: return QByteArray(); QByteArray();executed 2 times by 1 test: return QByteArray(); | 2 |
1669 | 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 |
1670 | 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 |
1671 | | - |
1672 | QByteArray tmp = input; | - |
1673 | q_fromPercentEncoding(&tmp, percent); | - |
1674 | 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 |
1675 | } | - |
1676 | static inline bool q_strchr(const char str[], char chr) | - |
1677 | { | - |
1678 | if (!strTRUE | never evaluated | FALSE | evaluated 644 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) returnnever executed: return false; false;never executed: return false; | 0-644 |
1679 | | - |
1680 | const char *ptr = str; | - |
1681 | char c; | - |
1682 | while ((TRUE | evaluated 516 times by 2 tests | FALSE | evaluated 595 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
c = *ptr++)TRUE | evaluated 516 times by 2 tests | FALSE | evaluated 595 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 516-595 |
1683 | if (c == chrTRUE | evaluated 49 times by 2 tests | FALSE | evaluated 467 times by 2 tests |
) | 49-467 |
1684 | returnexecuted 49 times by 2 tests: return true; true;executed 49 times by 2 tests: return true; | 49 |
1685 | returnexecuted 595 times by 3 tests: return false; Executed by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
false;executed 595 times by 3 tests: return false; Executed by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| 595 |
1686 | } | - |
1687 | | - |
1688 | static void q_toPercentEncoding(QByteArray *ba, const char *dontEncode, const char *alsoEncode, char percent) | - |
1689 | { | - |
1690 | if (ba->isEmpty()TRUE | never evaluated | FALSE | evaluated 74 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 0-74 |
1691 | return; never executed: return; | 0 |
1692 | | - |
1693 | QByteArray input = *ba; | - |
1694 | int len = input.count(); | - |
1695 | const char *inputData = input.constData(); | - |
1696 | char *output = 0; | - |
1697 | int length = 0; | - |
1698 | | - |
1699 | for (int i = 0; i < lenTRUE | evaluated 611 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 74 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
; ++i) { | 74-611 |
1700 | unsigned char c = *inputData++; | - |
1701 | if (((c >= 0x61TRUE | evaluated 396 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 193 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 193-396 |
1702 | || (c >= 0x41TRUE | evaluated 266 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 205 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 61-266 |
1703 | || (c >= 0x30TRUE | evaluated 251 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 229 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 22-251 |
1704 | || c == 0x2DTRUE | evaluated 6 times by 2 tests | FALSE | evaluated 319 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
| 6-319 |
1705 | || c == 0x2ETRUE | evaluated 9 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 310 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
| 9-310 |
1706 | || c == 0x5FTRUE | evaluated 2 times by 2 tests | FALSE | evaluated 308 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
| 2-308 |
1707 | || c == 0x7ETRUE | evaluated 2 times by 2 tests | FALSE | evaluated 306 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
| 2-306 |
1708 | || q_strchr(dontEncode, c)TRUE | evaluated 33 times by 2 tests | FALSE | evaluated 273 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 33-273 |
1709 | && !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 |
1710 | 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 |
1711 | output[length] = c;executed 138 times by 3 tests: output[length] = c; Executed by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| 138 |
1712 | ++length; | - |
1713 | }executed 322 times by 3 tests: end of block Executed by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
else { | 322 |
1714 | if (!outputTRUE | evaluated 70 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 219 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) { | 70-219 |
1715 | | - |
1716 | ba->resize(len*3); | - |
1717 | output = ba->data(); | - |
1718 | }executed 70 times by 3 tests: end of block Executed by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| 70 |
1719 | output[length++] = percent; | - |
1720 | output[length++] = QtMiscUtils::toHexUpper((c & 0xf0) >> 4); | - |
1721 | output[length++] = QtMiscUtils::toHexUpper(c & 0xf); | - |
1722 | }executed 289 times by 3 tests: end of block Executed by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| 289 |
1723 | } | - |
1724 | if (outputTRUE | evaluated 70 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 4 times by 2 tests |
) | 4-70 |
1725 | ba->truncate(length);executed 70 times by 3 tests: ba->truncate(length); Executed by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| 70 |
1726 | }executed 74 times by 3 tests: end of block Executed by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| 74 |
1727 | | - |
1728 | void q_toPercentEncoding(QByteArray *ba, const char *exclude, const char *include) | - |
1729 | { | - |
1730 | q_toPercentEncoding(ba, exclude, include, '%'); | - |
1731 | } never executed: end of block | 0 |
1732 | | - |
1733 | void q_normalizePercentEncoding(QByteArray *ba, const char *exclude) | - |
1734 | { | - |
1735 | q_fromPercentEncoding(ba, '%'); | - |
1736 | q_toPercentEncoding(ba, exclude, 0, '%'); | - |
1737 | } never executed: end of block | 0 |
1738 | QByteArray QByteArray::toPercentEncoding(const QByteArray &exclude, const QByteArray &include, | - |
1739 | char percent) const | - |
1740 | { | - |
1741 | if (isNull()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 78 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 2-78 |
1742 | returnexecuted 2 times by 1 test: return QByteArray(); QByteArray();executed 2 times by 1 test: return QByteArray(); | 2 |
1743 | if (isEmpty()TRUE | evaluated 4 times by 2 tests | FALSE | evaluated 74 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 4-74 |
1744 | returnexecuted 4 times by 2 tests: return QByteArray(data(), 0); QByteArray(data(), 0);executed 4 times by 2 tests: return QByteArray(data(), 0); | 4 |
1745 | | - |
1746 | QByteArray include2 = include; | - |
1747 | if (percent != '%'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 73 times by 3 testsEvaluated by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
|
) | 1-73 |
1748 | if ((percent >= 0x61TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
&& percent <= 0x7ATRUE | never evaluated | FALSE | never evaluated |
) | 0-1 |
1749 | || (percent >= 0x41TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
&& percent <= 0x5ATRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) | 0-1 |
1750 | || (percent >= 0x30TRUE | never evaluated | FALSE | never evaluated |
&& percent <= 0x39TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1751 | || percent == 0x2DTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1752 | || percent == 0x2ETRUE | never evaluated | FALSE | never evaluated |
| 0 |
1753 | || percent == 0x5FTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1754 | || percent == 0x7ETRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1755 | include2 += percent;executed 1 time by 1 test: include2 += percent; | 1 |
1756 | | - |
1757 | QByteArray result = *this; | - |
1758 | q_toPercentEncoding(&result, exclude.nulTerminated().constData(), include2.nulTerminated().constData(), percent); | - |
1759 | | - |
1760 | returnexecuted 74 times by 3 tests: return result; Executed by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
result;executed 74 times by 3 tests: return result; Executed by:- tst_QByteArray
- tst_QUrl
- tst_QUrlInternal
| 74 |
1761 | } | - |
1762 | | - |
| | |