qbytearray.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qbytearray.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11static const uchar latin1_uppercased[256] = {-
12 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,-
13 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,-
14 0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,-
15 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,-
16 0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,-
17 0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x5b,0x5c,0x5d,0x5e,0x5f,-
18 0x60,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,-
19 0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x7b,0x7c,0x7d,0x7e,0x7f,-
20 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,-
21 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,-
22 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,-
23 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,-
24 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,-
25 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xd7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xdf,-
26 0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,-
27 0xd0,0xd1,0xd2,0xd3,0xd4,0xd5,0xd6,0xf7,0xd8,0xd9,0xda,0xdb,0xdc,0xdd,0xde,0xff-
28};-
29static const uchar latin1_lowercased[256] = {-
30 0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,-
31 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f,-
32 0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,-
33 0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,-
34 0x40,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,-
35 0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x5b,0x5c,0x5d,0x5e,0x5f,-
36 0x60,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,-
37 0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x7b,0x7c,0x7d,0x7e,0x7f,-
38 0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,-
39 0x90,0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,-
40 0xa0,0xa1,0xa2,0xa3,0xa4,0xa5,0xa6,0xa7,0xa8,0xa9,0xaa,0xab,0xac,0xad,0xae,0xaf,-
41 0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0xb9,0xba,0xbb,0xbc,0xbd,0xbe,0xbf,-
42 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef,-
43 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xd7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xdf,-
44 0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xec,0xed,0xee,0xef,-
45 0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,0xfc,0xfd,0xfe,0xff-
46};-
47-
48int qFindByteArray(-
49 const char *haystack0, int haystackLen, int from,-
50 const char *needle0, int needleLen);-
51-
52-
53int 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 return
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
  • ...
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}-
64char *qstrdup(const char *src)-
65{-
66 if (!src
!srcDescription
TRUEevaluated 17644 times by 23 tests
Evaluated 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
FALSEevaluated 1132234 times by 535 tests
Evaluated 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 return
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
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 return
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
  • ...
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}-
71char *qstrcpy(char *dst, const char *src)-
72{-
73 if (!src
!srcDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1134973 times by 535 tests
Evaluated 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 return
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QByteArray
0;
executed 2 times by 1 test: return 0;
Executed by:
  • tst_QByteArray
2
75 return
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
  • ...
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}-
78char *qstrncpy(char *dst, const char *src, uint len)-
79{-
80 if (!src
!srcDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 202 times by 4 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
|| !dst
!dstDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 200 times by 4 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
)
2-202
81 return
executed 4 times by 1 test: return 0;
Executed by:
  • tst_QByteArray
0;
executed 4 times by 1 test: return 0;
Executed by:
  • tst_QByteArray
4
82 if (len > 0
len > 0Description
TRUEevaluated 199 times by 4 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
) {
1-199
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 return
executed 200 times by 4 tests: return dst;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
dst;
executed 200 times by 4 tests: return dst;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_selftests - unknown status
200
91}-
92int qstrcmp(const char *str1, const char *str2)-
93{-
94 return
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
  • ...
(str1
str1Description
TRUEevaluated 496323 times by 196 tests
Evaluated 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
  • ...
FALSEevaluated 12 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QVariant
  • tst_qmessagehandler
&& str2
str2Description
TRUEevaluated 496323 times by 196 tests
Evaluated 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
  • ...
FALSEnever 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 : (str1
str1Description
TRUEnever evaluated
FALSEevaluated 12 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QVariant
  • tst_qmessagehandler
? 1 : (str2
str2Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDBusAbstractAdaptor
FALSEevaluated 10 times by 3 tests
Evaluated 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}-
97int 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 (!s1
!s1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 230632 times by 47 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • ...
|| !s2
!s2Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 230631 times by 47 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • ...
)
1-230632
104 return
executed 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0);
Executed by:
  • tst_QByteArray
s1
s1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
? 1 : (s2
s2Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
? -1 : 0);
executed 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0);
Executed by:
  • tst_QByteArray
1-3
105 for (; !(res = (c = latin1_lowercased[*s1]) - latin1_lowercased[*s2])
!(res = (c = l...wercased[*s2])Description
TRUEevaluated 354989 times by 19 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
FALSEevaluated 215220 times by 47 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QLabel
  • tst_QLineEdit
  • tst_QMessageBox
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • ...
; s1++, s2++)
215220-354989
106 if (!c
!cDescription
TRUEevaluated 15411 times by 18 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_Spdy
FALSEevaluated 339578 times by 19 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QXmlInputSource
  • tst_Spdy
  • 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 return
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
  • ...
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}-
110int 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 (!s1
!s1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 799 times by 8 tests
Evaluated by:
  • tst_QByteArray
  • tst_QGlobal
  • tst_QSettings
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_selftests - unknown status
|| !s2
!s2Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 798 times by 8 tests
Evaluated by:
  • tst_QByteArray
  • tst_QGlobal
  • tst_QSettings
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_selftests - unknown status
)
1-799
117 return
executed 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0);
Executed by:
  • tst_QByteArray
s1
s1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
? 1 : (s2
s2Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
? -1 : 0);
executed 3 times by 1 test: return s1 ? 1 : (s2 ? -1 : 0);
Executed by:
  • tst_QByteArray
1-3
118 for (; len--
len--Description
TRUEevaluated 918 times by 8 tests
Evaluated by:
  • tst_QByteArray
  • tst_QGlobal
  • tst_QSettings
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_selftests - unknown status
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QTextCodec
; s1++, s2++) {
10-918
119 if ((
(res = (c = la...wercased[*s2])Description
TRUEevaluated 787 times by 7 tests
Evaluated by:
  • tst_QGlobal
  • tst_QSettings
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_selftests - unknown status
FALSEevaluated 131 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QTextCodec
  • tst_QXmlStream
res = (c = latin1_lowercased[*s1]) - latin1_lowercased[*s2])
(res = (c = la...wercased[*s2])Description
TRUEevaluated 787 times by 7 tests
Evaluated by:
  • tst_QGlobal
  • tst_QSettings
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_selftests - unknown status
FALSEevaluated 131 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QTextCodec
  • tst_QXmlStream
)
131-787
120 return
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
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 (!c
!cDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 130 times by 2 tests
Evaluated by:
  • tst_QTextCodec
  • tst_QXmlStream
)
1-130
122 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QByteArray
1
123 }
executed 130 times by 2 tests: end of block
Executed by:
  • tst_QTextCodec
  • tst_QXmlStream
130
124 return
executed 11 times by 2 tests: return 0;
Executed by:
  • tst_QByteArray
  • tst_QTextCodec
0;
executed 11 times by 2 tests: return 0;
Executed by:
  • tst_QByteArray
  • tst_QTextCodec
11
125}-
126-
127-
128-
129-
130int qstrcmp(const QByteArray &str1, const char *str2)-
131{-
132 if (!str2
!str2Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1384521 times by 545 tests
Evaluated 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 return
executed 32 times by 1 test: return str1.isEmpty() ? 0 : +1;
Executed by:
  • tst_QByteArray
str1.isEmpty()
str1.isEmpty()Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QByteArray
? 0 : +1;
executed 32 times by 1 test: return str1.isEmpty() ? 0 : +1;
Executed by:
  • tst_QByteArray
8-32
134-
135 const char *str1data = str1.constData();-
136 const char *str1end = str1data + str1.length();-
137 for ( ; str1data < str1end
str1data < str1endDescription
TRUEevaluated 5265278 times by 545 tests
Evaluated 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
  • ...
FALSEevaluated 453468 times by 284 tests
Evaluated 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
  • ...
&& *
*str2Description
TRUEevaluated 5264970 times by 545 tests
Evaluated 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
  • ...
FALSEevaluated 308 times by 31 tests
Evaluated 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
  • ...
str2
*str2Description
TRUEevaluated 5264970 times by 545 tests
Evaluated 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
  • ...
FALSEevaluated 308 times by 31 tests
Evaluated 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 (diff
diffDescription
TRUEevaluated 930745 times by 544 tests
Evaluated 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
  • ...
FALSEevaluated 4334225 times by 443 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_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 return
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
  • ...
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 (*
*str2 != '\0'Description
TRUEevaluated 2367 times by 165 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
FALSEevaluated 451409 times by 257 tests
Evaluated 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'
*str2 != '\0'Description
TRUEevaluated 2367 times by 165 tests
Evaluated by:
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
FALSEevaluated 451409 times by 257 tests
Evaluated 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 return
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
  • ...
-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 < str1end
str1data < str1endDescription
TRUEevaluated 308 times by 31 tests
Evaluated 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
  • ...
FALSEevaluated 451101 times by 241 tests
Evaluated 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 return
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
  • ...
+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 return
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
  • ...
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-
157int 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 != 0
ret != 0Description
TRUEevaluated 5395567 times by 82 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 42393 times by 66 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QAction
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMetaObjectBuilder
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • ...
)
42393-5395567
163 return
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
  • ...
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 return
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
  • ...
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}-
169static 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};-
175quint16 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--
len--Description
TRUEevaluated 9971 times by 3 tests
Evaluated by:
  • tst_QDataStream
  • tst_QPicture
  • tst_QPrinter
FALSEevaluated 45 times by 3 tests
Evaluated by:
  • tst_QDataStream
  • tst_QPicture
  • tst_QPrinter
) {
45-9971
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 return
executed 45 times by 3 tests: return ~crc & 0xffff;
Executed by:
  • tst_QDataStream
  • tst_QPicture
  • tst_QPrinter
~crc & 0xffff;
executed 45 times by 3 tests: return ~crc & 0xffff;
Executed by:
  • tst_QDataStream
  • tst_QPicture
  • tst_QPrinter
45
187}-
188QByteArray qCompress(const uchar* data, int nbytes, int compressionLevel)-
189{-
190 if (nbytes == 0
nbytes == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
) {
1-21
191 return
executed 1 time by 1 test: return QByteArray(4, '\0');
Executed by:
  • tst_QByteArray
QByteArray(4, '\0');
executed 1 time by 1 test: return QByteArray(4, '\0');
Executed by:
  • tst_QByteArray
1
192 }-
193 if (!data
!dataDescription
TRUEnever evaluated
FALSEevaluated 21 times by 4 tests
Evaluated 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 < -1
compressionLevel < -1Description
TRUEnever evaluated
FALSEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
|| compressionLevel > 9
compressionLevel > 9Description
TRUEnever evaluated
FALSEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
)
0-21
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 case
executed 21 times by 4 tests: case 0:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
0:
executed 21 times by 4 tests: case 0:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
21
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)
res == (-5)Description
TRUEnever evaluated
FALSEevaluated 21 times by 4 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
);
0-21
224-
225 return
executed 21 times by 4 tests: return bazip;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
bazip;
executed 21 times by 4 tests: return bazip;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QNetworkDiskCache
  • tst_QSettings
21
226}-
227QByteArray qUncompress(const uchar* data, int nbytes)-
228{-
229 if (!data
!dataDescription
TRUEnever evaluated
FALSEevaluated 704 times by 12 tests
Evaluated 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 <= 4
nbytes <= 4Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 691 times by 12 tests
Evaluated 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 < 4
nbytes < 4Description
TRUEnever evaluated
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QByteArray
|| (data[0]!=0
data[0]!=0Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
|| data[1]!=0
data[1]!=0Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
|| data[2]!=0
data[2]!=0Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
|| data[3]!=0
data[3]!=0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
))
0-13
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");
Executed by:
  • tst_QByteArray
11
236 return
executed 13 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
QByteArray();
executed 13 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
13
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)
len >= (1u << ...teArray::Data)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 684 times by 12 tests
Evaluated 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 return
executed 7 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
QByteArray();
executed 7 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
7
249 }-
250 QByteArray::Data *p = static_cast<QByteArray::Data *>(::realloc(d.data(), sizeof(QByteArray::Data) + alloc + 1));-
251 if (!p
!pDescription
TRUEnever evaluated
FALSEevaluated 684 times by 12 tests
Evaluated 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 case
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
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 != alloc
len != allocDescription
TRUEnever evaluated
FALSEevaluated 679 times by 12 tests
Evaluated 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)
len >= (1u << ...teArray::Data)Description
TRUEnever evaluated
FALSEnever 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 (!p
!pDescription
TRUEnever evaluated
FALSEnever 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 return
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
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 case
executed 5 times by 1 test: case (-3):
Executed by:
  • tst_QByteArray
(-3):
executed 5 times by 1 test: case (-3):
Executed by:
  • tst_QByteArray
5
302 QMessageLogger(__FILE__, 646, __PRETTY_FUNCTION__).warning("qUncompress: Z_DATA_ERROR: Input data is corrupted");-
303 return
executed 5 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
QByteArray();
executed 5 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
5
304 }-
305 }
never executed: end of block
0
306}
never executed: end of block
0
307-
308-
309static inline bool qIsUpper(char c)-
310{-
311 return
executed 217 times by 3 tests: return c >= 'A' && c <= 'Z';
Executed by:
  • tst_QByteArray
  • tst_QVariant
  • tst_selftests - unknown status
c >= 'A'
c >= 'A'Description
TRUEevaluated 217 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QVariant
  • tst_selftests - unknown status
FALSEnever evaluated
&& c <= 'Z'
c <= 'Z'Description
TRUEnever evaluated
FALSEevaluated 217 times by 3 tests
Evaluated 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-
314static inline char qToLower(char c)-
315{-
316 if (c >= 'A'
c >= 'A'Description
TRUEevaluated 217 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QVariant
  • tst_selftests - unknown status
FALSEnever evaluated
&& c <= 'Z'
c <= 'Z'Description
TRUEnever evaluated
FALSEevaluated 217 times by 3 tests
Evaluated 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 return
executed 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}-
321QByteArray &QByteArray::operator=(const QByteArray & other) noexcept-
322{-
323 other.d->ref.ref();-
324 if (!d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 118255 times by 76 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDBusXmlParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 1082925 times by 418 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
)
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 return
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
  • ...
*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}-
329QByteArray &QByteArray::operator=(const char *str)-
330{-
331 Data *x;-
332 if (!str
!strDescription
TRUEevaluated 424 times by 2 tests
Evaluated by:
  • tst_QPicture
  • tst_QTimeZone
FALSEevaluated 397458 times by 196 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
) {
424-397458
333 x = Data::sharedNull();-
334 }
executed 424 times by 2 tests: end of block
Executed by:
  • tst_QPicture
  • tst_QTimeZone
else if (!*str
!*strDescription
TRUEevaluated 47294 times by 8 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDBusMarshall
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QRawFont
  • tst_Spdy
FALSEevaluated 350164 times by 195 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
) {
424-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()
d->ref.isShared()Description
TRUEevaluated 269116 times by 188 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 81048 times by 41 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QMetaObjectBuilder
  • tst_QNetworkReply
  • tst_QPrinter
  • ...
|| fullLen > d->alloc
fullLen > d->allocDescription
TRUEevaluated 26593 times by 37 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QMetaObjectBuilder
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QRegion
  • tst_QSaveFile
  • tst_QSettings
  • ...
FALSEevaluated 54455 times by 38 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRegion
  • ...
26593-269116
340 || (len < d->size
len < d->sizeDescription
TRUEevaluated 7626 times by 35 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRegion
  • tst_QSizeGrip
  • tst_QStringBuilder3
  • ...
FALSEevaluated 46829 times by 35 tests
Evaluated 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)
fullLen < uint(d->alloc >> 1)Description
TRUEevaluated 7618 times by 34 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDataStream
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QImage
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QRegion
  • tst_QSizeGrip
  • tst_QStringBuilder3
  • tst_QStringBuilder4
  • ...
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QDebug
  • tst_QImage
))
8-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()
!d->ref.deref()Description
TRUEevaluated 46017 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QPicture
FALSEevaluated 351865 times by 196 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
)
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 return
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
  • ...
*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}-
352void QByteArray::truncate(int pos)-
353{-
354 if (pos < d->size
pos < d->sizeDescription
TRUEevaluated 153886 times by 258 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
FALSEevaluated 3948 times by 27 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
  • tst_Utf8
  • ...
)
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
357void QByteArray::chop(int n)-
358{-
359 if (n > 0
n > 0Description
TRUEevaluated 5229 times by 16 tests
Evaluated 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
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
)
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
362QByteArray::QByteArray(const char *data, int size)-
363{-
364 if (!data
!dataDescription
TRUEevaluated 437565 times by 366 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
FALSEevaluated 7673525 times by 425 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
) {
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 < 0
size < 0Description
TRUEevaluated 5048596 times by 397 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
FALSEevaluated 2624543 times by 346 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
)
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 (!size
!sizeDescription
TRUEevaluated 2642687 times by 58 tests
Evaluated by:
  • tst_Collections
  • tst_QAccessibility
  • tst_QApplication
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QChar
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGetPutEnv
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHashFunctions
  • tst_QImageReader
  • tst_QItemView
  • ...
FALSEevaluated 5031125 times by 422 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
) {
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)
!(d)Description
TRUEnever evaluated
FALSEevaluated 5031125 times by 422 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-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}-
380QByteArray::QByteArray(int size, char ch)-
381{-
382 if (size <= 0
size <= 0Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QUdpSocket
FALSEevaluated 19381 times by 65 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QDataStream
  • tst_QDir
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
) {
5-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)
!(d)Description
TRUEnever evaluated
FALSEevaluated 19381 times by 65 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QDataStream
  • tst_QDir
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileSystemModel
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-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-
399QByteArray::QByteArray(int size, Qt::Initialization)-
400{-
401 d = Data::allocate(uint(size) + 1u);-
402 do { if (!(d)
!(d)Description
TRUEnever evaluated
FALSEevaluated 1053964 times by 569 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-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
406void QByteArray::resize(int size)-
407{-
408 if (size < 0
size < 0Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QLockFile
FALSEevaluated 1917130 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
)
9-1917130
409 size = 0;
executed 9 times by 2 tests: size = 0;
Executed by:
  • tst_QByteArray
  • tst_QLockFile
9
410-
411 if (((
((d)->offset !...yteArrayData))Description
TRUEevaluated 21 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingReply
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
FALSEevaluated 1917118 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
d)->offset != sizeof(QByteArrayData))
((d)->offset !...yteArrayData))Description
TRUEevaluated 21 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingReply
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
FALSEevaluated 1917118 times by 440 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
&& !d->ref.isShared()
!d->ref.isShared()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 20 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingReply
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
&& size < d->size
size < d->sizeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEnever evaluated
) {
0-1917118
412 d->size = size;-
413 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QByteArray
1
414 }-
415-
416 if (size == 0
size == 0Description
TRUEevaluated 52798 times by 185 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 1864340 times by 439 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
&& !d->capacityReserved
!d->capacityReservedDescription
TRUEevaluated 52790 times by 185 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QSslSocket
) {
8-1864340
417 Data *x = Data::allocate(0);-
418 if (!d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 15520 times by 174 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 37270 times by 32 tests
Evaluated 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 == 0
d->size == 0Description
TRUEevaluated 204142 times by 257 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • ...
FALSEevaluated 1660206 times by 439 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
&& d->ref.isStatic()
d->ref.isStatic()Description
TRUEevaluated 203227 times by 257 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • ...
FALSEevaluated 915 times by 15 tests
Evaluated 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)
!(x)Description
TRUEnever evaluated
FALSEevaluated 203227 times by 257 tests
Evaluated by:
  • tst_Lancelot
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBitArray
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-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()
d->ref.isShared()Description
TRUEevaluated 158 times by 16 tests
Evaluated 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
FALSEevaluated 1660963 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
|| uint(size) + 1u > d->alloc
uint(size) + 1u > d->allocDescription
TRUEevaluated 167988 times by 109 tests
Evaluated 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
  • ...
FALSEevaluated 1492975 times by 435 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
158-1660963
429 || (!d->capacityReserved
!d->capacityReservedDescription
TRUEevaluated 1452250 times by 435 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
FALSEevaluated 40725 times by 28 tests
Evaluated 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->size
size < d->sizeDescription
TRUEevaluated 1166984 times by 426 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
FALSEevaluated 285266 times by 168 tests
Evaluated 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)
uint(size) + 1...d->alloc >> 1)Description
TRUEevaluated 805544 times by 418 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
FALSEevaluated 361440 times by 164 tests
Evaluated by:
  • tst_Collections
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_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->alloc
d->allocDescription
TRUEevaluated 1661121 times by 439 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
FALSEnever 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}-
438QByteArray &QByteArray::fill(char ch, int size)-
439{-
440 resize(size < 0 ? d->size : size);-
441 if (d->size
d->sizeDescription
TRUEevaluated 3411 times by 8 tests
Evaluated by:
  • tst_QBuffer
  • tst_QByteArray
  • tst_QDataStream
  • tst_QFtp
  • tst_QMimeDatabase
  • tst_QRawFont
  • tst_QSslSocket
  • tst_QTextCodec
FALSEnever evaluated
)
0-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 return
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
*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-
446void QByteArray::reallocData(uint alloc, Data::AllocationOptions options)-
447{-
448 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 1503034 times by 572 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 1564631 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
|| ((
((d)->offset !...yteArrayData))Description
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QStringBuilder3
  • tst_QStringBuilder4
FALSEevaluated 1564626 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
d)->offset != sizeof(QByteArrayData))
((d)->offset !...yteArrayData))Description
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QStringBuilder3
  • tst_QStringBuilder4
FALSEevaluated 1564626 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
) {
5-1564631
449 Data *x = Data::allocate(alloc, options);-
450 do { if (!(x)
!(x)Description
TRUEnever evaluated
FALSEevaluated 1503039 times by 572 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-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()
!d->ref.deref()Description
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QStringBuilder3
  • tst_QStringBuilder4
FALSEevaluated 1503034 times by 572 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
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::Grow
options & Data::GrowDescription
TRUEevaluated 1526283 times by 437 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
FALSEevaluated 38343 times by 53 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QDataStream
  • tst_QDebug
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
) {
38343-1526283
459 if (alloc > MaxByteArraySize
alloc > MaxByteArraySizeDescription
TRUEnever evaluated
FALSEevaluated 1526283 times by 437 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
)
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)
!(x)Description
TRUEnever evaluated
FALSEevaluated 1564626 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-1564626
465 x->alloc = alloc;-
466 x->capacityReserved = (
(options & Dat...acityReserved)Description
TRUEevaluated 11404 times by 54 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QItemSelectionModel
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
FALSEevaluated 1553222 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
options & Data::CapacityReserved)
(options & Dat...acityReserved)Description
TRUEevaluated 11404 times by 54 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QItemSelectionModel
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
FALSEevaluated 1553222 times by 438 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • ...
? 1 : 0;
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-
471void 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
475QByteArray QByteArray::nulTerminated() const-
476{-
477-
478 if (!((d)->offset != sizeof(QByteArrayData))
!((d)->offset ...yteArrayData))Description
TRUEevaluated 206644 times by 72 tests
Evaluated 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
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
)
6-206644
479 return
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
  • ...
*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 return
executed 6 times by 1 test: return copy;
Executed by:
  • tst_QByteArray
copy;
executed 6 times by 1 test: return copy;
Executed by:
  • tst_QByteArray
6
484}-
485QByteArray &QByteArray::prepend(const QByteArray &ba)-
486{-
487 if (d->size == 0
d->size == 0Description
TRUEevaluated 17348 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QWidget
FALSEevaluated 1252 times by 17 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QFtp
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_Spdy
&& d->ref.isStatic()
d->ref.isStatic()Description
TRUEevaluated 17348 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QWidget
FALSEnever evaluated
&& !((ba.d)->offset != sizeof(QByteArrayData))
!((ba.d)->offs...yteArrayData))Description
TRUEevaluated 15 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QRingBuffer
FALSEevaluated 17333 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
  • tst_QWidget
) {
0-17348
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 != 0
ba.d->size != 0Description
TRUEevaluated 17877 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QWidget
FALSEevaluated 708 times by 9 tests
Evaluated by:
  • tst_QByteArray
  • tst_QFtp
  • tst_QNetworkReply
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Spdy
) {
15-17877
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 return
executed 18600 times by 18 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QFtp
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QWidget
  • tst_Spdy
*this;
executed 18600 times by 18 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QFtp
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QRingBuffer
  • tst_QSizePolicy
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QWidget
  • tst_Spdy
18600
495}-
496-
497-
498-
499-
500-
501-
502-
503QByteArray &QByteArray::prepend(const char *str)-
504{-
505 return
executed 318 times by 7 tests: return prepend(str, qstrlen(str));
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_Selftests
  • tst_Utf8
prepend(str, qstrlen(str));
executed 318 times by 7 tests: return prepend(str, qstrlen(str));
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_Selftests
  • tst_Utf8
318
506}-
507QByteArray &QByteArray::prepend(const char *str, int len)-
508{-
509 if (str
strDescription
TRUEevaluated 318 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_Selftests
  • tst_Utf8
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QByteArray
) {
9-318
510 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 215 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_Selftests
  • tst_Utf8
FALSEevaluated 103 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
|| uint(d->size + len) + 1u > d->alloc
uint(d->size +... 1u > d->allocDescription
TRUEevaluated 34 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
FALSEevaluated 69 times by 3 tests
Evaluated 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 return
executed 327 times by 7 tests: return *this;
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_Selftests
  • tst_Utf8
*this;
executed 327 times by 7 tests: return *this;
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_Selftests
  • tst_Utf8
327
518}-
519-
520-
521-
522-
523-
524-
525-
526QByteArray &QByteArray::prepend(char ch)-
527{-
528 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 32 times by 6 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSettings
  • tst_QSizePolicy
FALSEevaluated 638 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaEnum
  • tst_QNetworkReply
  • tst_QSettings
  • tst_languageChange
|| uint(d->size) + 2u > d->alloc
uint(d->size) + 2u > d->allocDescription
TRUEevaluated 63 times by 3 tests
Evaluated by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSettings
FALSEevaluated 575 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaEnum
  • tst_QNetworkReply
  • tst_QSettings
  • tst_languageChange
)
32-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 return
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
*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}-
536QByteArray &QByteArray::append(const QByteArray &ba)-
537{-
538 if (d->size == 0
d->size == 0Description
TRUEevaluated 257012 times by 545 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 840231 times by 358 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • ...
&& d->ref.isStatic()
d->ref.isStatic()Description
TRUEevaluated 212551 times by 328 tests
Evaluated 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
  • ...
FALSEevaluated 44461 times by 537 tests
Evaluated 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))
!((ba.d)->offs...yteArrayData))Description
TRUEevaluated 212495 times by 328 tests
Evaluated 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
  • ...
FALSEevaluated 56 times by 2 tests
Evaluated 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 != 0
ba.d->size != 0Description
TRUEevaluated 846609 times by 571 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 38139 times by 162 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
) {
38139-846609
541 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 104358 times by 188 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • ...
FALSEevaluated 742251 times by 546 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
|| uint(d->size + ba.d->size) + 1u > d->alloc
uint(d->size +... 1u > d->allocDescription
TRUEevaluated 425156 times by 149 tests
Evaluated 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
  • ...
FALSEevaluated 317095 times by 546 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
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 return
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
  • ...
*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}-
549QByteArray& QByteArray::append(const char *str)-
550{-
551 if (str
strDescription
TRUEevaluated 214177 times by 182 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • ...
FALSEevaluated 17 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrlInternal
) {
17-214177
552 const int len = int(strlen(str));-
553 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 96083 times by 49 tests
Evaluated 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
  • ...
FALSEevaluated 118094 times by 166 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • ...
|| uint(d->size + len) + 1u > d->alloc
uint(d->size +... 1u > d->allocDescription
TRUEevaluated 21565 times by 78 tests
Evaluated 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
  • ...
FALSEevaluated 96529 times by 159 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • ...
)
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 return
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
  • ...
*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}-
560QByteArray &QByteArray::append(const char *str, int len)-
561{-
562 if (len < 0
len < 0Description
TRUEnever evaluated
FALSEevaluated 456365 times by 265 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
)
0-456365
563 len = qstrlen(str);
never executed: len = qstrlen(str);
0
564 if (str
strDescription
TRUEevaluated 456362 times by 265 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArrayList
&& len
lenDescription
TRUEevaluated 456358 times by 265 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArrayList
) {
3-456362
565 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 446063 times by 100 tests
Evaluated 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
  • ...
FALSEevaluated 10295 times by 240 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QCalendarWidget
  • ...
|| uint(d->size + len) + 1u > d->alloc
uint(d->size +... 1u > d->allocDescription
TRUEevaluated 20 times by 3 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QByteArray
  • tst_QRingBuffer
FALSEevaluated 10275 times by 239 tests
Evaluated by:
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QByteArrayList
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
)
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 return
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
  • ...
*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-
580QByteArray& QByteArray::append(char ch)-
581{-
582 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 64485 times by 198 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
FALSEevaluated 18040340 times by 547 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
|| uint(d->size) + 2u > d->alloc
uint(d->size) + 2u > d->allocDescription
TRUEevaluated 105913 times by 111 tests
Evaluated 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
  • ...
FALSEevaluated 17934427 times by 546 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
)
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 return
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
  • ...
*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-
594static 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 < 0
pos < 0Description
TRUEnever evaluated
FALSEevaluated 120032 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
|| len <= 0
len <= 0Description
TRUEnever evaluated
FALSEevaluated 120032 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
|| arr == 0
arr == 0Description
TRUEnever evaluated
FALSEevaluated 120032 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
)
0-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 > oldsize
pos > oldsizeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 120030 times by 9 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
)
2-120030
606 ::
executed 2 times by 1 test: ::memset(dst + oldsize, 0x20, pos - oldsize);
Executed by:
  • tst_QByteArray
memset(dst + oldsize, 0x20, pos - oldsize);
executed 2 times by 1 test: ::memset(dst + oldsize, 0x20, pos - oldsize);
Executed by:
  • tst_QByteArray
2
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 return
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
*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}-
612QByteArray &QByteArray::insert(int i, const QByteArray &ba)-
613{-
614 QByteArray copy(ba);-
615 return
executed 12 times by 2 tests: return qbytearray_insert(this, i, copy.d->data(), copy.d->size);
Executed by:
  • tst_Collections
  • tst_QByteArray
qbytearray_insert(this, i, copy.d->data(), copy.d->size);
executed 12 times by 2 tests: return qbytearray_insert(this, i, copy.d->data(), copy.d->size);
Executed by:
  • tst_Collections
  • tst_QByteArray
12
616}-
617QByteArray &QByteArray::insert(int i, const char *str)-
618{-
619 return
executed 14 times by 2 tests: return qbytearray_insert(this, i, str, qstrlen(str));
Executed by:
  • tst_QByteArray
  • tst_QByteArrayMatcher
qbytearray_insert(this, i, str, qstrlen(str));
executed 14 times by 2 tests: return qbytearray_insert(this, i, str, qstrlen(str));
Executed by:
  • tst_QByteArray
  • tst_QByteArrayMatcher
14
620}-
621QByteArray &QByteArray::insert(int i, const char *str, int len)-
622{-
623 return
executed 1 time by 1 test: return qbytearray_insert(this, i, str, len);
Executed by:
  • tst_QByteArray
qbytearray_insert(this, i, str, len);
executed 1 time by 1 test: return qbytearray_insert(this, i, str, len);
Executed by:
  • tst_QByteArray
1
624}-
625QByteArray &QByteArray::insert(int i, char ch)-
626{-
627 return
executed 1303 times by 6 tests: return qbytearray_insert(this, i, &ch, 1);
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
qbytearray_insert(this, i, &ch, 1);
executed 1303 times by 6 tests: return qbytearray_insert(this, i, &ch, 1);
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QSslKey
1303
628}-
629QByteArray &QByteArray::remove(int pos, int len)-
630{-
631 if (len <= 0
len <= 0Description
TRUEevaluated 194 times by 15 tests
Evaluated 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
FALSEevaluated 269460 times by 21 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QFtp
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMetaObject
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPixmap
  • tst_QRingBuffer
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QState
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Selftests
  • tst_Spdy
  • tst_qmessagehandler
|| uint(pos) >= uint(d->size)
uint(pos) >= uint(d->size)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 269457 times by 21 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QFtp
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMetaObject
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPixmap
  • tst_QRingBuffer
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QState
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Selftests
  • tst_Spdy
  • tst_qmessagehandler
)
3-269460
632 return
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
*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 - pos
len >= d->size - posDescription
TRUEevaluated 4166 times by 14 tests
Evaluated by:
  • tst_QByteArray
  • tst_QFtp
  • tst_QImageReader
  • tst_QMetaObject
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPixmap
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_Spdy
  • tst_qmessagehandler
FALSEevaluated 265291 times by 14 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMetaObject
  • tst_QMovie
  • tst_QObject
  • tst_QPixmap
  • tst_QRingBuffer
  • tst_QSslCertificate
  • tst_QState
  • tst_QStateMachine
  • tst_Selftests
  • tst_qmessagehandler
) {
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 return
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
*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}-
642QByteArray &QByteArray::replace(int pos, int len, const QByteArray &after)-
643{-
644 if (len == after.d->size
len == after.d->sizeDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
&& (
(pos + len <= d->size)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
pos + len <= d->size)
(pos + len <= d->size)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
) {
1-8
645 detach();-
646 memmove(d->data() + pos, after.d->data(), len*sizeof(char));-
647 return
executed 2 times by 1 test: return *this;
Executed by:
  • tst_QByteArray
*this;
executed 2 times by 1 test: return *this;
Executed by:
  • tst_QByteArray
2
648 } else {-
649 QByteArray copy(after);-
650-
651 remove(pos, len);-
652 return
executed 9 times by 2 tests: return insert(pos, copy);
Executed by:
  • tst_Collections
  • tst_QByteArray
insert(pos, copy);
executed 9 times by 2 tests: return insert(pos, copy);
Executed by:
  • tst_Collections
  • tst_QByteArray
9
653 }-
654}-
655QByteArray &QByteArray::replace(int pos, int len, const char *after)-
656{-
657 return
executed 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}-
659QByteArray &QByteArray::replace(int pos, int len, const char *after, int alen)-
660{-
661 if (len == alen
len == alenDescription
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QByteArray
FALSEevaluated 118701 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_Selftests
&& (
(pos + len <= d->size)Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QByteArray
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
pos + len <= d->size)
(pos + len <= d->size)Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QByteArray
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
) {
1-118701
662 detach();-
663 memcpy(d->data() + pos, after, len*sizeof(char));-
664 return
executed 12 times by 2 tests: return *this;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QByteArray
*this;
executed 12 times by 2 tests: return *this;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QByteArray
12
665 } else {-
666 remove(pos, len);-
667 return
executed 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}-
670QByteArray &QByteArray::replace(const QByteArray &before, const QByteArray &after)-
671{-
672 if (isNull()
isNull()Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_Collections
|| before.d == after.d
before.d == after.dDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_Collections
)
0-3
673 return
never executed: return *this;
*this;
never executed: return *this;
0
674-
675 QByteArray aft = after;-
676 if (after.d == d
after.d == dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
)
1-2
677 aft.detach();
executed 2 times by 1 test: aft.detach();
Executed by:
  • tst_Collections
2
678-
679 return
executed 3 times by 1 test: return replace(before.constData(), before.size(), aft.constData(), aft.size());
Executed by:
  • tst_Collections
replace(before.constData(), before.size(), aft.constData(), aft.size());
executed 3 times by 1 test: return replace(before.constData(), before.size(), aft.constData(), aft.size());
Executed by:
  • tst_Collections
3
680}-
681QByteArray &QByteArray::replace(const char *c, const QByteArray &after)-
682{-
683 QByteArray aft = after;-
684 if (after.d == d
after.d == dDescription
TRUEnever evaluated
FALSEnever 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}-
689QByteArray &QByteArray::replace(const char *before, int bsize, const char *after, int asize)-
690{-
691 if (isNull()
isNull()Description
TRUEnever evaluated
FALSEevaluated 2072 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
|| (before == after
before == afterDescription
TRUEnever evaluated
FALSEevaluated 2072 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
&& bsize == asize
bsize == asizeDescription
TRUEnever evaluated
FALSEnever 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()
after >= d->data()Description
TRUEevaluated 162 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 1910 times by 6 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
&& after < d->data() + d->size
after < d->data() + d->sizeDescription
TRUEnever evaluated
FALSEevaluated 162 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
0-1910
698 char *copy = (char *)malloc(asize);-
699 do { if (!(copy)
!(copy)Description
TRUEnever evaluated
FALSEnever 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()
before >= d->data()Description
TRUEevaluated 2072 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEnever evaluated
&& before < d->data() + d->size
before < d->data() + d->sizeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 2070 times by 8 tests
Evaluated 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)
!(copy)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
) 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
Executed by:
  • tst_Collections
2
709-
710 QByteArrayMatcher matcher(before, bsize);-
711 int index = 0;-
712 int len = d->size;-
713 char *d = data();-
714-
715 if (bsize == asize
bsize == asizeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 2071 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
1-2071
716 if (bsize
bsizeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
FALSEnever evaluated
) {
0-1
717 while ((
(index = match... index)) != -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
index = matcher.indexIn(*this, index)) != -1
(index = match... index)) != -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
) {
1
718 memcpy(d + index, after, asize);-
719 index += bsize;-
720 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_Collections
1
721 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_Collections
1
722 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_Collections
else if (asize < bsize
asize < bsizeDescription
TRUEevaluated 2069 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
) {
1-2069
723 uint to = 0;-
724 uint movestart = 0;-
725 uint num = 0;-
726 while ((
(index = match... index)) != -1Description
TRUEevaluated 41 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
FALSEevaluated 2069 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
index = matcher.indexIn(*this, index)) != -1
(index = match... index)) != -1Description
TRUEevaluated 41 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
FALSEevaluated 2069 times by 8 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
41-2069
727 if (num
numDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 27 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
) {
14-27
728 int msize = index - movestart;-
729 if (msize > 0
msize > 0Description
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QByteArray
) {
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
Executed by:
  • tst_QByteArray
else {
14
734 to = index;-
735 }
executed 27 times by 2 tests: end of block
Executed by:
  • tst_Collections
  • tst_QByteArray
27
736 if (asize
asizeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 40 times by 1 test
Evaluated by:
  • tst_QByteArray
) {
1-40
737 memcpy(d + to, after, asize);-
738 to += asize;-
739 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_Collections
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 (num
numDescription
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
FALSEevaluated 2042 times by 7 tests
Evaluated 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 > 0
msize > 0Description
TRUEnever evaluated
FALSEevaluated 27 times by 2 tests
Evaluated 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 != -1
index != -1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
) {
2
754 uint indices[4096];-
755 uint pos = 0;-
756 while(pos < 4095
pos < 4095Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_Collections
FALSEnever evaluated
) {
0-8
757 index = matcher.indexIn(*this, index);-
758 if (index == -1
index == -1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_Collections
)
2-6
759 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_Collections
2
760 indices[pos++] = index;-
761 index += bsize;-
762-
763 if (!bsize
!bsizeDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_Collections
)
0-6
764 index++;
never executed: index++;
0
765 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_Collections
6
766 if (!pos
!posDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
)
0-2
767 break;
never executed: break;
0
768-
769-
770 int adjust = pos*(asize-bsize);-
771-
772 if (index != -1
index != -1Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
)
0-2
773 index += adjust;
never executed: index += adjust;
0
774 int newlen = len + adjust;-
775 int moveend = len;-
776 if (newlen > len
newlen > lenDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
FALSEnever evaluated
) {
0-2
777 resize(newlen);-
778 len = newlen;-
779 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_Collections
2
780 d = this->d->data();-
781-
782 while(pos
posDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
) {
2-6
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 (asize
asizeDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_Collections
FALSEnever evaluated
)
0-6
789 memcpy(d + insertstart, after, asize);
executed 6 times by 1 test: memcpy(d + insertstart, after, asize);
Executed by:
  • tst_Collections
6
790 moveend = movestart - bsize;-
791 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_Collections
6
792 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_Collections
2
793 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_Collections
2
794-
795 if (a != after
a != afterDescription
TRUEnever evaluated
FALSEevaluated 2072 times by 8 tests
Evaluated 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 != before
b != beforeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 2070 times by 8 tests
Evaluated 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));
Executed by:
  • tst_Collections
free(const_cast<char *>(b));
executed 2 times by 1 test: ::free(const_cast<char *>(b));
Executed by:
  • tst_Collections
2
799-
800-
801 return
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
*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}-
803QByteArray &QByteArray::replace(char before, const QByteArray &after)-
804{-
805 char b[2] = { before, '\0' };-
806 QByteArray cb = fromRawData(b, 1);-
807 return
executed 2 times by 1 test: return replace(cb, after);
Executed by:
  • tst_Collections
replace(cb, after);
executed 2 times by 1 test: return replace(cb, after);
Executed by:
  • tst_Collections
2
808}-
809QByteArray &QByteArray::replace(char before, char after)-
810{-
811 if (d->size
d->sizeDescription
TRUEevaluated 158 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QLoggingRegistry
  • tst_QTextStream
FALSEevaluated 871 times by 24 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QLoggingRegistry
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_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 != e
i != eDescription
TRUEevaluated 2698 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QLoggingRegistry
  • tst_QTextStream
FALSEevaluated 158 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QLoggingRegistry
  • tst_QTextStream
; ++i)
158-2698
815 if (*
*i == beforeDescription
TRUEevaluated 162 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QTextStream
FALSEevaluated 2536 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QLoggingRegistry
  • tst_QTextStream
i == before
*i == beforeDescription
TRUEevaluated 162 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QTextStream
FALSEevaluated 2536 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QLoggingRegistry
  • tst_QTextStream
)
162-2536
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 return
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
*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}-
820QList<QByteArray> QByteArray::split(char sep) const-
821{-
822 QList<QByteArray> list;-
823 int start = 0;-
824 int end;-
825 while ((
(end = indexOf... start)) != -1Description
TRUEevaluated 563573 times by 64 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • ...
FALSEevaluated 182339 times by 72 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • ...
end = indexOf(sep, start)) != -1
(end = indexOf... start)) != -1Description
TRUEevaluated 563573 times by 64 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • ...
FALSEevaluated 182339 times by 72 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • ...
) {
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 return
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
  • ...
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}-
832QByteArray QByteArray::repeated(int times) const-
833{-
834 if (d->size == 0
d->size == 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QByteArray
)
5-11
835 return
executed 5 times by 1 test: return *this;
Executed by:
  • tst_QByteArray
*this;
executed 5 times by 1 test: return *this;
Executed by:
  • tst_QByteArray
5
836-
837 if (times <= 1
times <= 1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QByteArray
) {
4-7
838 if (times == 1
times == 1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
)
1-3
839 return
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QByteArray
*this;
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QByteArray
1
840 return
executed 3 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
QByteArray();
executed 3 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
3
841 }-
842-
843 const int resultSize = times * d->size;-
844-
845 QByteArray result;-
846 result.reserve(resultSize);-
847 if (result.d->alloc != uint(resultSize) + 1u
result.d->allo...sultSize) + 1uDescription
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QByteArray
)
0-7
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 <= halfResultSize
sizeSoFar <= halfResultSizeDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QByteArray
) {
7-12
857 memcpy(end, result.d->data(), sizeSoFar);-
858 end += sizeSoFar;-
859 sizeSoFar <<= 1;-
860 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QByteArray
12
861 memcpy(end, result.d->data(), resultSize - sizeSoFar);-
862 result.d->data()[resultSize] = '\0';-
863 result.d->size = resultSize;-
864 return
executed 7 times by 1 test: return result;
Executed by:
  • tst_QByteArray
result;
executed 7 times by 1 test: return result;
Executed by:
  • tst_QByteArray
7
865}-
866int QByteArray::indexOf(const QByteArray &ba, int from) const-
867{-
868 const int ol = ba.d->size;-
869 if (ol == 0
ol == 0Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QString
FALSEevaluated 2152 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qmessagehandler
)
16-2152
870 return
executed 16 times by 2 tests: return from;
Executed by:
  • tst_QByteArray
  • tst_QString
from;
executed 16 times by 2 tests: return from;
Executed by:
  • tst_QByteArray
  • tst_QString
16
871 if (ol == 1
ol == 1Description
TRUEevaluated 72 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QString
FALSEevaluated 2080 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qmessagehandler
)
72-2080
872 return
executed 72 times by 4 tests: return indexOf(*ba.d->data(), from);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QString
indexOf(*ba.d->data(), from);
executed 72 times by 4 tests: return indexOf(*ba.d->data(), from);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QString
72
873-
874 const int l = d->size;-
875 if (from > d->size
from > d->sizeDescription
TRUEnever evaluated
FALSEevaluated 2080 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qmessagehandler
|| ol + from > l
ol + from > lDescription
TRUEevaluated 16 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QOpenGlConfig
  • tst_QString
FALSEevaluated 2064 times by 12 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qmessagehandler
)
0-2080
876 return
executed 16 times by 4 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QOpenGlConfig
  • tst_QString
-1;
executed 16 times by 4 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QOpenGlConfig
  • tst_QString
16
877-
878 return
executed 2064 times by 12 tests: return qFindByteArray(d->data(), d->size, from, ba.d->data(), ol);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qmessagehandler
qFindByteArray(d->data(), d->size, from, ba.d->data(), ol);
executed 2064 times by 12 tests: return qFindByteArray(d->data(), d->size, from, ba.d->data(), ol);
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QXmlStream
  • tst_Selftests
  • tst_qmessagehandler
2064
879}-
880int QByteArray::indexOf(const char *c, int from) const-
881{-
882 const int ol = qstrlen(c);-
883 if (ol == 1
ol == 1Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 730686 times by 32 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • ...
)
24-730686
884 return
executed 24 times by 1 test: return indexOf(*c, from);
Executed by:
  • tst_QByteArray
indexOf(*c, from);
executed 24 times by 1 test: return indexOf(*c, from);
Executed by:
  • tst_QByteArray
24
885-
886 const int l = d->size;-
887 if (from > d->size
from > d->sizeDescription
TRUEnever evaluated
FALSEevaluated 730686 times by 32 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • ...
|| ol + from > l
ol + from > lDescription
TRUEevaluated 18985 times by 17 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Selftests
  • tst_Spdy
  • tst_qnetworkreply - unknown status
FALSEevaluated 711701 times by 30 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • ...
)
0-730686
888 return
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
-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 == 0
ol == 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 711693 times by 30 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • ...
)
8-711693
890 return
executed 8 times by 1 test: return from;
Executed by:
  • tst_QByteArray
from;
executed 8 times by 1 test: return from;
Executed by:
  • tst_QByteArray
8
891-
892 return
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
  • ...
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}-
894int QByteArray::indexOf(char ch, int from) const-
895{-
896 if (from < 0
from < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 899780 times by 124 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_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);
Executed by:
  • tst_Collections
1
898 if (from < d->size
from < d->sizeDescription
TRUEevaluated 897521 times by 122 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
FALSEevaluated 2260 times by 31 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QBuffer
  • tst_QByteArray
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QHttpSocketEngine
  • tst_QMdiArea
  • tst_QMimeData
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QOpenGlConfig
  • tst_QString
  • ...
) {
2260-897521
899 const char *n = d->data() + from - 1;-
900 const char *e = d->data() + d->size;-
901 while (++
++n != eDescription
TRUEevaluated 15661180 times by 122 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
FALSEevaluated 181885 times by 73 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • ...
n != e
++n != eDescription
TRUEevaluated 15661180 times by 122 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
FALSEevaluated 181885 times by 73 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QChar
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • ...
)
181885-15661180
902 if (*
*n == chDescription
TRUEevaluated 715636 times by 122 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
FALSEevaluated 14945544 times by 122 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
n == ch
*n == chDescription
TRUEevaluated 715636 times by 122 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
FALSEevaluated 14945544 times by 122 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBuffer
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QErrorMessage
  • ...
)
715636-14945544
903 return
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
  • ...
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 return
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
  • ...
-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-
909static int lastIndexOfHelper(const char *haystack, int l, const char *needle, int ol, int from)-
910{-
911 int delta = l - ol;-
912 if (from < 0
from < 0Description
TRUEevaluated 40 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
)
15-40
913 from = delta;
executed 40 times by 3 tests: from = delta;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
40
914 if (from < 0
from < 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 50 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
|| from > l
from > lDescription
TRUEnever evaluated
FALSEevaluated 50 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
)
0-50
915 return
executed 5 times by 1 test: return -1;
Executed by:
  • tst_QString
-1;
executed 5 times by 1 test: return -1;
Executed by:
  • tst_QString
5
916 if (from > delta
from > deltaDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 48 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
)
2-48
917 from = delta;
executed 2 times by 1 test: from = delta;
Executed by:
  • tst_QByteArray
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 < ol
idx < olDescription
TRUEevaluated 285 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
FALSEevaluated 50 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
; ++idx) {
50-285
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 >= end
haystack >= endDescription
TRUEevaluated 214 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
) {
14-214
932 hashHaystack += *haystack;-
933 if (hashHaystack == hashNeedle
hashHaystack == hashNeedleDescription
TRUEevaluated 38 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
FALSEevaluated 176 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
&& memcmp(needle, haystack, ol) == 0
memcmp(needle,...tack, ol) == 0Description
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QString
)
2-176
934 return
executed 36 times by 3 tests: return haystack - end;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
haystack - end;
executed 36 times by 3 tests: return haystack - end;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
36
935 --haystack;-
936 if (ol_minus_1 < sizeof(uint) * 8
ol_minus_1 < sizeof(uint) * 8Description
TRUEevaluated 144 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_QString
) hashHaystack -= (*(haystack + ol)) << ol_minus_1;
executed 144 times by 3 tests: hashHaystack -= (*(haystack + ol)) << ol_minus_1;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
hashHaystack <<= 1;
34-144
937 }
executed 178 times by 3 tests: end of block
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
178
938 return
executed 14 times by 3 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
-1;
executed 14 times by 3 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QString
14
939-
940}-
941int QByteArray::lastIndexOf(const QByteArray &ba, int from) const-
942{-
943 const int ol = ba.d->size;-
944 if (ol == 1
ol == 1Description
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QString
FALSEevaluated 36 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QString
)
34-36
945 return
executed 34 times by 2 tests: return lastIndexOf(*ba.d->data(), from);
Executed by:
  • tst_QByteArray
  • tst_QString
lastIndexOf(*ba.d->data(), from);
executed 34 times by 2 tests: return lastIndexOf(*ba.d->data(), from);
Executed by:
  • tst_QByteArray
  • tst_QString
34
946-
947 return
executed 36 times by 2 tests: return lastIndexOfHelper(d->data(), d->size, ba.d->data(), ol, from);
Executed by:
  • tst_QByteArray
  • tst_QString
lastIndexOfHelper(d->data(), d->size, ba.d->data(), ol, from);
executed 36 times by 2 tests: return lastIndexOfHelper(d->data(), d->size, ba.d->data(), ol, from);
Executed by:
  • tst_QByteArray
  • tst_QString
36
948}-
949int QByteArray::lastIndexOf(const char *str, int from) const-
950{-
951 const int ol = qstrlen(str);-
952 if (ol == 1
ol == 1Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 19 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
)
19-24
953 return
executed 24 times by 1 test: return lastIndexOf(*str, from);
Executed by:
  • tst_QByteArray
lastIndexOf(*str, from);
executed 24 times by 1 test: return lastIndexOf(*str, from);
Executed by:
  • tst_QByteArray
24
954-
955 return
executed 19 times by 2 tests: return lastIndexOfHelper(d->data(), d->size, str, ol, from);
Executed by:
  • tst_Collections
  • tst_QByteArray
lastIndexOfHelper(d->data(), d->size, str, ol, from);
executed 19 times by 2 tests: return lastIndexOfHelper(d->data(), d->size, str, ol, from);
Executed by:
  • tst_Collections
  • tst_QByteArray
19
956}-
957int QByteArray::lastIndexOf(char ch, int from) const-
958{-
959 if (from < 0
from < 0Description
TRUEevaluated 543 times by 12 tests
Evaluated 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
FALSEevaluated 50 times by 3 tests
Evaluated 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->size
from > d->sizeDescription
TRUEnever evaluated
FALSEevaluated 50 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QObject
)
0-50
962 from = d->size-1;
never executed: from = d->size-1;
0
963 if (from >= 0
from >= 0Description
TRUEevaluated 579 times by 13 tests
Evaluated 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
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QString
) {
14-579
964 const char *b = d->data();-
965 const char *n = d->data() + from + 1;-
966 while (n-- != b
n-- != bDescription
TRUEevaluated 5582 times by 13 tests
Evaluated 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
FALSEevaluated 191 times by 6 tests
Evaluated by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QString
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
191-5582
967 if (*
*n == chDescription
TRUEevaluated 388 times by 12 tests
Evaluated 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
FALSEevaluated 5194 times by 13 tests
Evaluated 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 == ch
*n == chDescription
TRUEevaluated 388 times by 12 tests
Evaluated 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
FALSEevaluated 5194 times by 13 tests
Evaluated 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 return
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
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 return
executed 205 times by 6 tests: return -1;
Executed by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QString
  • tst_qlogging - unknown status
  • tst_qmessagehandler
-1;
executed 205 times by 6 tests: return -1;
Executed by:
  • tst_QByteArray
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QString
  • tst_qlogging - unknown status
  • tst_qmessagehandler
205
971}-
972int QByteArray::count(const QByteArray &ba) const-
973{-
974 int num = 0;-
975 int i = -1;-
976 if (d->size > 500
d->size > 500Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_Collections
&& ba.d->size > 5
ba.d->size > 5Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-4
977 QByteArrayMatcher matcher(ba);-
978 while ((
(i = matcher.i... i + 1)) != -1Description
TRUEnever evaluated
FALSEnever evaluated
i = matcher.indexIn(*this, i + 1)) != -1
(i = matcher.i... i + 1)) != -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
979 ++
never executed: ++num;
num;
never executed: ++num;
0
980 }
never executed: end of block
else {
0
981 while ((
(i = indexOf(ba, i + 1)) != -1Description
TRUEevaluated 33 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_Collections
i = indexOf(ba, i + 1)) != -1
(i = indexOf(ba, i + 1)) != -1Description
TRUEevaluated 33 times by 1 test
Evaluated by:
  • tst_Collections
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_Collections
)
4-33
982 ++
executed 33 times by 1 test: ++num;
Executed by:
  • tst_Collections
num;
executed 33 times by 1 test: ++num;
Executed by:
  • tst_Collections
33
983 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_Collections
4
984 return
executed 4 times by 1 test: return num;
Executed by:
  • tst_Collections
num;
executed 4 times by 1 test: return num;
Executed by:
  • tst_Collections
4
985}-
986int QByteArray::count(const char *str) const-
987{-
988 return
executed 4 times by 1 test: return count(fromRawData(str, qstrlen(str)));
Executed by:
  • tst_Collections
count(fromRawData(str, qstrlen(str)));
executed 4 times by 1 test: return count(fromRawData(str, qstrlen(str)));
Executed by:
  • tst_Collections
4
989}-
990int 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 != b
i != bDescription
TRUEevaluated 65360 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
FALSEevaluated 514 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
)
514-65360
996 if (*--
*--i == chDescription
TRUEevaluated 65303 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
FALSEevaluated 57 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QXmlStream
i == ch
*--i == chDescription
TRUEevaluated 65303 times by 3 tests
Evaluated by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
FALSEevaluated 57 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_QXmlStream
)
57-65303
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 return
executed 514 times by 3 tests: return num;
Executed by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
num;
executed 514 times by 3 tests: return num;
Executed by:
  • tst_Collections
  • tst_QRingBuffer
  • tst_QXmlStream
514
999}-
1000bool QByteArray::startsWith(const QByteArray &ba) const-
1001{-
1002 if (d == ba.d
d == ba.dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 3179 times by 30 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QFileSelector
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QMdiArea
  • tst_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 == 0
ba.d->size == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 3175 times by 30 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QFileSelector
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QMdiArea
  • tst_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 return
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
true;
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
6
1004 if (d->size < ba.d->size
d->size < ba.d->sizeDescription
TRUEevaluated 1045 times by 9 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusLocalCalls
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 2130 times by 30 tests
Evaluated by:
  • tst_QApplication
  • tst_QByteArray
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusLocalCalls
  • tst_QFileSelector
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QMdiArea
  • tst_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 return
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
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 return
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
  • ...
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-
1014bool QByteArray::startsWith(const char *str) const-
1015{-
1016 if (!str
!strDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1376174 times by 155 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • ...
|| !*str
!*strDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 1376171 times by 155 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • ...
)
3-1376174
1017 return
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
true;
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
6
1018 const int len = int(strlen(str));-
1019 if (d->size < len
d->size < lenDescription
TRUEevaluated 263990 times by 14 tests
Evaluated 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
FALSEevaluated 1112181 times by 154 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QComplexText
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • ...
)
263990-1112181
1020 return
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
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 return
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
  • ...
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-
1029bool QByteArray::startsWith(char ch) const-
1030{-
1031 if (d->size == 0
d->size == 0Description
TRUEevaluated 18 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QNetworkCookieJar
  • tst_Selftests
FALSEevaluated 113712 times by 65 tests
Evaluated 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 return
executed 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 return
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
  • ...
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}-
1035bool QByteArray::endsWith(const QByteArray &ba) const-
1036{-
1037 if (d == ba.d
d == ba.dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QByteArray
|| ba.d->size == 0
ba.d->size == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
)
2-9
1038 return
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
true;
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
6
1039 if (d->size < ba.d->size
d->size < ba.d->sizeDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
)
2-3
1040 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_QByteArray
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_QByteArray
3
1041 return
executed 2 times by 1 test: return memcmp(d->data() + d->size - ba.d->size, ba.d->data(), ba.d->size) == 0;
Executed by:
  • tst_QByteArray
memcmp(d->data() + d->size - ba.d->size, ba.d->data(), ba.d->size) == 0;
executed 2 times by 1 test: return memcmp(d->data() + d->size - ba.d->size, ba.d->data(), ba.d->size) == 0;
Executed by:
  • tst_QByteArray
2
1042}-
1043-
1044-
1045-
1046-
1047-
1048-
1049bool QByteArray::endsWith(const char *str) const-
1050{-
1051 if (!str
!strDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 222940 times by 538 tests
Evaluated 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
  • ...
|| !*str
!*strDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 222937 times by 538 tests
Evaluated 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 return
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
true;
executed 6 times by 1 test: return true;
Executed by:
  • tst_QByteArray
6
1053 const int len = int(strlen(str));-
1054 if (d->size < len
d->size < lenDescription
TRUEevaluated 49833 times by 208 tests
Evaluated 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
  • ...
FALSEevaluated 173104 times by 538 tests
Evaluated 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 return
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
  • ...
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 return
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
  • ...
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-
1064bool QByteArray::endsWith(char ch) const-
1065{-
1066 if (d->size == 0
d->size == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 72387 times by 327 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • ...
)
4-72387
1067 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_QByteArray
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_QByteArray
4
1068 return
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
  • ...
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}-
1070QByteArray QByteArray::left(int len) const-
1071{-
1072 if (len >= d->size
len >= d->sizeDescription
TRUEevaluated 212 times by 10 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeData
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_Spdy
FALSEevaluated 80381 times by 52 tests
Evaluated 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 return
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
*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 < 0
len < 0Description
TRUEnever evaluated
FALSEevaluated 80381 times by 52 tests
Evaluated 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 return
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
  • ...
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}-
1078QByteArray QByteArray::right(int len) const-
1079{-
1080 if (len >= d->size
len >= d->sizeDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_Collections
  • tst_LargeFile
FALSEevaluated 17 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_LargeFile
  • tst_QAuthenticator
  • tst_QIODevice
)
4-17
1081 return
executed 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 < 0
len < 0Description
TRUEnever evaluated
FALSEevaluated 17 times by 4 tests
Evaluated by:
  • tst_Collections
  • tst_LargeFile
  • tst_QAuthenticator
  • tst_QIODevice
)
0-17
1083 len = 0;
never executed: len = 0;
0
1084 return
executed 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}-
1086QByteArray QByteArray::mid(int pos, int len) const-
1087{-
1088 using namespace QtPrivate;-
1089 switch (QContainerImplHelper::mid(size(), &pos, &len)) {-
1090 case
executed 113 times by 3 tests: case QContainerImplHelper::Null:
Executed by:
  • tst_QAuthenticator
  • tst_QHttpSocketEngine
  • tst_Spdy
QContainerImplHelper::Null:
executed 113 times by 3 tests: case QContainerImplHelper::Null:
Executed by:
  • tst_QAuthenticator
  • tst_QHttpSocketEngine
  • tst_Spdy
113
1091 return
executed 113 times by 3 tests: return QByteArray();
Executed by:
  • tst_QAuthenticator
  • tst_QHttpSocketEngine
  • tst_Spdy
QByteArray();
executed 113 times by 3 tests: return QByteArray();
Executed by:
  • tst_QAuthenticator
  • tst_QHttpSocketEngine
  • tst_Spdy
113
1092 case
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
  • ...
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 return
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
  • ...
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 case
executed 65229 times by 32 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QMessageAuthenticationCode
  • tst_QMetaType
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QTimeZone
  • ...
QContainerImplHelper::Full:
executed 65229 times by 32 tests: case QContainerImplHelper::Full:
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QMessageAuthenticationCode
  • tst_QMetaType
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QTimeZone
  • ...
65229
1098 return
executed 65229 times by 32 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QMessageAuthenticationCode
  • tst_QMetaType
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QTimeZone
  • ...
*this;
executed 65229 times by 32 tests: return *this;
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QChar
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingReply
  • tst_QDBusThreading
  • tst_QDateTime
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QMessageAuthenticationCode
  • tst_QMetaType
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSslCertificate
  • tst_QTimeZone
  • ...
65229
1099 case
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
  • ...
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 return
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
  • ...
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}-
1105template <typename T>-
1106__attribute__((noinline))-
1107static 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 != e
firstBad != eDescription
TRUEevaluated 424013 times by 166 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 49777 times by 112 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
; ++firstBad) {
49777-424013
1114 uchar ch = uchar(*firstBad);-
1115 uchar converted = table[ch];-
1116 if (ch != converted
ch != convertedDescription
TRUEevaluated 46227 times by 158 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
FALSEevaluated 377786 times by 65 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileSystemModel
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIcoImageFormat
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLayout
  • tst_QMainWindow
  • ...
)
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 == e
firstBad == eDescription
TRUEevaluated 49777 times by 112 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataUrl
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 46227 times by 158 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
)
46227-49777
1121 return
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
  • ...
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 != e
p != eDescription
TRUEevaluated 457049 times by 158 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
FALSEevaluated 46227 times by 158 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAuthenticator
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCryptographicHash
  • ...
; ++p) {
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 return
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
  • ...
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-
1134QByteArray QByteArray::toLower_helper(const QByteArray &a)-
1135{-
1136 return
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
  • ...
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-
1139QByteArray QByteArray::toLower_helper(QByteArray &a)-
1140{-
1141 return
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
  • ...
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}-
1143QByteArray QByteArray::toUpper_helper(const QByteArray &a)-
1144{-
1145 return
executed 214 times by 3 tests: return toCase_template(a, latin1_uppercased);
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QUrlInternal
toCase_template(a, latin1_uppercased);
executed 214 times by 3 tests: return toCase_template(a, latin1_uppercased);
Executed by:
  • tst_QByteArray
  • tst_QImageReader
  • tst_QUrlInternal
214
1146}-
1147-
1148QByteArray QByteArray::toUpper_helper(QByteArray &a)-
1149{-
1150 return
executed 23 times by 2 tests: return toCase_template(a, latin1_uppercased);
Executed by:
  • tst_QByteArray
  • tst_QCryptographicHash
toCase_template(a, latin1_uppercased);
executed 23 times by 2 tests: return toCase_template(a, latin1_uppercased);
Executed by:
  • tst_QByteArray
  • tst_QCryptographicHash
23
1151}-
1152void QByteArray::clear()-
1153{-
1154 if (!d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 16832 times by 98 tests
Evaluated 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
  • ...
FALSEevaluated 720262 times by 258 tests
Evaluated 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
1158QDataStream &operator<<(QDataStream &out, const QByteArray &ba)-
1159{-
1160 if (ba.isNull()
ba.isNull()Description
TRUEevaluated 19 times by 5 tests
Evaluated by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
FALSEevaluated 799 times by 11 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QMetaObjectBuilder
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
&& out.version() >= 6
out.version() >= 6Description
TRUEevaluated 19 times by 5 tests
Evaluated by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
FALSEnever evaluated
) {
0-799
1161 out << (quint32)0xffffffff;-
1162 return
executed 19 times by 5 tests: return out;
Executed by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
out;
executed 19 times by 5 tests: return out;
Executed by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
19
1163 }-
1164 return
executed 799 times by 11 tests: return out.writeBytes(ba.constData(), ba.size());
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QMetaObjectBuilder
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
out.writeBytes(ba.constData(), ba.size());
executed 799 times by 11 tests: return out.writeBytes(ba.constData(), ba.size());
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QMetaObjectBuilder
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
799
1165}-
1166QDataStream &operator>>(QDataStream &in, QByteArray &ba)-
1167{-
1168 ba.clear();-
1169 quint32 len;-
1170 in >> len;-
1171 if (len == 0xffffffff
len == 0xffffffffDescription
TRUEevaluated 24 times by 5 tests
Evaluated by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
FALSEevaluated 946 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
)
24-946
1172 return
executed 24 times by 5 tests: return in;
Executed by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
in;
executed 24 times by 5 tests: return in;
Executed by:
  • tst_QDataStream
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
24
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) != blockSize
in.readRawData...) != blockSizeDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QDataStream
FALSEevaluated 949 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
) {
11-949
1181 ba.clear();-
1182 in.setStatus(QDataStream::ReadPastEnd);-
1183 return
executed 11 times by 1 test: return in;
Executed by:
  • tst_QDataStream
in;
executed 11 times by 1 test: return in;
Executed by:
  • tst_QDataStream
11
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 < len
allocated < lenDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QDataStream
FALSEevaluated 935 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
);
14-949
1187-
1188 return
executed 935 times by 14 tests: return in;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
in;
executed 935 times by 14 tests: return in;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QFileDialog2
  • tst_QFont
  • tst_QGuiVariant
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSettings
  • tst_QUrl
  • tst_QVariant
935
1189}-
1190QByteArray QByteArray::simplified_helper(const QByteArray &a)-
1191{-
1192 return
executed 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-
1195QByteArray QByteArray::simplified_helper(QByteArray &a)-
1196{-
1197 return
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
  • ...
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}-
1199QByteArray QByteArray::trimmed_helper(const QByteArray &a)-
1200{-
1201 return
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
  • ...
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-
1204QByteArray QByteArray::trimmed_helper(QByteArray &a)-
1205{-
1206 return
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
  • ...
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}-
1208QByteArray 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 > 0
padlen > 0Description
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QByteArray
) {
8-13
1214 result.resize(len+padlen);-
1215 if (len
lenDescription
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
)
1-12
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 (truncate
truncateDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
)
4
1220 result = left(width);
executed 4 times by 1 test: result = left(width);
Executed by:
  • tst_QByteArray
4
1221 else-
1222 result = *this;
executed 4 times by 1 test: result = *this;
Executed by:
  • tst_QByteArray
4
1223 }-
1224 return
executed 21 times by 2 tests: return result;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
result;
executed 21 times by 2 tests: return result;
Executed by:
  • tst_QAuthenticator
  • tst_QByteArray
21
1225}-
1226QByteArray 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 > 0
padlen > 0Description
TRUEevaluated 3107 times by 10 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 4789 times by 10 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
) {
3107-4789
1232 result.resize(len+padlen);-
1233 if (len
lenDescription
TRUEevaluated 3106 times by 10 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
)
1-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 (truncate
truncateDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 4785 times by 10 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAlgorithms
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
)
4-4785
1238 result = left(width);
executed 4 times by 1 test: result = left(width);
Executed by:
  • tst_QByteArray
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 return
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
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-
1245bool QByteArray::isNull() const { return
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
  • ...
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-
1247static qlonglong toIntegral_helper(const char *data, bool *ok, int base, qlonglong)-
1248{-
1249 return
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
  • ...
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-
1252static qulonglong toIntegral_helper(const char *data, bool *ok, int base, qulonglong)-
1253{-
1254 return
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
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-
1257template <typename T> static inline-
1258T 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) != val
T(val) != valDescription
TRUEnever evaluated
FALSEevaluated 206496 times by 70 tests
Evaluated 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 (ok
okDescription
TRUEnever evaluated
FALSEnever 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 return
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
  • ...
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}-
1271qlonglong QByteArray::toLongLong(bool *ok, int base) const-
1272{-
1273 return
executed 669 times by 10 tests: return toIntegral_helper<qlonglong>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QLockFile
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QProcess
  • tst_QVariant
  • tst_Spdy
toIntegral_helper<qlonglong>(nulTerminated().constData(), ok, base);
executed 669 times by 10 tests: return toIntegral_helper<qlonglong>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QLockFile
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QProcess
  • tst_QVariant
  • tst_Spdy
669
1274}-
1275qulonglong QByteArray::toULongLong(bool *ok, int base) const-
1276{-
1277 return
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
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}-
1279int QByteArray::toInt(bool *ok, int base) const-
1280{-
1281 return
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
  • ...
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}-
1283uint QByteArray::toUInt(bool *ok, int base) const-
1284{-
1285 return
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
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}-
1287long QByteArray::toLong(bool *ok, int base) const-
1288{-
1289 return
executed 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}-
1291ulong QByteArray::toULong(bool *ok, int base) const-
1292{-
1293 return
executed 10 times by 1 test: return toIntegral_helper<ulong>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QByteArray
toIntegral_helper<ulong>(nulTerminated().constData(), ok, base);
executed 10 times by 1 test: return toIntegral_helper<ulong>(nulTerminated().constData(), ok, base);
Executed by:
  • tst_QByteArray
10
1294}-
1295short 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}-
1299ushort 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}-
1303double QByteArray::toDouble(bool *ok) const-
1304{-
1305 return
executed 6 times by 1 test: return QLocaleData::bytearrayToDouble(nulTerminated().constData(), ok);
Executed by:
  • tst_QVariant
QLocaleData::bytearrayToDouble(nulTerminated().constData(), ok);
executed 6 times by 1 test: return QLocaleData::bytearrayToDouble(nulTerminated().constData(), ok);
Executed by:
  • tst_QVariant
6
1306}-
1307float QByteArray::toFloat(bool *ok) const-
1308{-
1309 return
executed 3 times by 1 test: return QLocaleData::convertDoubleToFloat(toDouble(ok), ok);
Executed by:
  • tst_QVariant
QLocaleData::convertDoubleToFloat(toDouble(ok), ok);
executed 3 times by 1 test: return QLocaleData::convertDoubleToFloat(toDouble(ok), ok);
Executed by:
  • tst_QVariant
3
1310}-
1311QByteArray QByteArray::toBase64() const-
1312{-
1313 return
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
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}-
1315QByteArray 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 & Base64UrlEncoding
options & Base64UrlEncodingDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 787 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
? alphabet_base64url : alphabet_base64;
36-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->size
i < d->sizeDescription
TRUEevaluated 746920 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 823 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
) {
823-746920
1330-
1331 int chunk = 0;-
1332 chunk |= int(uchar(d->data()[i++])) << 16;-
1333 if (i == d->size
i == d->sizeDescription
TRUEevaluated 420 times by 12 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 746500 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
) {
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->size
i == d->sizeDescription
TRUEevaluated 250 times by 7 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
FALSEevaluated 746250 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
)
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 > 1
padlen > 1Description
TRUEevaluated 420 times by 12 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 746500 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
) {
420-746500
1351 if ((
(options & Omi...ngEquals) == 0Description
TRUEevaluated 406 times by 12 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QByteArray
options & OmitTrailingEquals) == 0
(options & Omi...ngEquals) == 0Description
TRUEevaluated 406 times by 12 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QByteArray
)
14-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 > 0
padlen > 0Description
TRUEevaluated 670 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 746250 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
) {
670-746250
1357 if ((
(options & Omi...ngEquals) == 0Description
TRUEevaluated 644 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 26 times by 1 test
Evaluated by:
  • tst_QByteArray
options & OmitTrailingEquals) == 0
(options & Omi...ngEquals) == 0Description
TRUEevaluated 644 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
FALSEevaluated 26 times by 1 test
Evaluated by:
  • tst_QByteArray
)
26-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 & OmitTrailingEquals
options & OmitTrailingEqualsDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 787 times by 13 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
)
36-787
1365 tmp.truncate(out - tmp.data());
executed 36 times by 1 test: tmp.truncate(out - tmp.data());
Executed by:
  • tst_QByteArray
36
1366 return
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
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}-
1368static 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 < 10
c < 10Description
TRUEevaluated 2324959 times by 97 tests
Evaluated 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
  • ...
FALSEevaluated 34105 times by 28 tests
Evaluated 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 (n
nDescription
TRUEevaluated 1913136 times by 72 tests
Evaluated 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
  • ...
FALSEevaluated 445928 times by 97 tests
Evaluated 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 return
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
  • ...
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-
1391QByteArray &QByteArray::setNum(qlonglong n, int base)-
1392{-
1393 const int buffsize = 66;-
1394 char buff[buffsize];-
1395 char *p;-
1396-
1397 if (n < 0
n < 0Description
TRUEevaluated 186 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QGetPutEnv
  • tst_QNetworkDiskCache
  • tst_QVariant
FALSEevaluated 424982 times by 90 tests
Evaluated 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 == 10
base == 10Description
TRUEevaluated 18 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QGetPutEnv
  • tst_QVariant
FALSEevaluated 168 times by 3 tests
Evaluated 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 return
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
  • ...
*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-
1415QByteArray &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 return
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
  • ...
*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}-
1425QByteArray &QByteArray::setNum(double n, char f, int prec)-
1426{-
1427 QLocaleData::DoubleForm form = QLocaleData::DFDecimal;-
1428 uint flags = 0;-
1429-
1430 if (qIsUpper(f)
qIsUpper(f)Description
TRUEnever evaluated
FALSEevaluated 217 times by 3 tests
Evaluated 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 case
executed 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 return
executed 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}-
1454QByteArray QByteArray::number(int n, int base)-
1455{-
1456 QByteArray s;-
1457 s.setNum(n, base);-
1458 return
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
  • ...
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-
1466QByteArray QByteArray::number(uint n, int base)-
1467{-
1468 QByteArray s;-
1469 s.setNum(n, base);-
1470 return
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
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-
1478QByteArray QByteArray::number(qlonglong n, int base)-
1479{-
1480 QByteArray s;-
1481 s.setNum(n, base);-
1482 return
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
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-
1490QByteArray QByteArray::number(qulonglong n, int base)-
1491{-
1492 QByteArray s;-
1493 s.setNum(n, base);-
1494 return
executed 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}-
1496QByteArray QByteArray::number(double n, char f, int prec)-
1497{-
1498 QByteArray s;-
1499 s.setNum(n, f, prec);-
1500 return
executed 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}-
1502QByteArray QByteArray::fromRawData(const char *data, int size)-
1503{-
1504 Data *x;-
1505 if (!data
!dataDescription
TRUEnever evaluated
FALSEevaluated 1816242 times by 572 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) {
0-1816242
1506 x = Data::sharedNull();-
1507 }
never executed: end of block
else if (!size
!sizeDescription
TRUEevaluated 19 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QImage
  • tst_QNetworkReply
  • tst_Spdy
FALSEevaluated 1816223 times by 572 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) {
0-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)
!(x)Description
TRUEnever evaluated
FALSEevaluated 1816223 times by 572 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
) qBadAlloc();
never executed: qBadAlloc();
} while (0);
0-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 return
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
  • ...
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}-
1516QByteArray &QByteArray::setRawData(const char *data, uint size)-
1517{-
1518 if (d->ref.isShared()
d->ref.isShared()Description
TRUEevaluated 9 times by 4 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QNetworkProxyFactory
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
FALSEevaluated 63 times by 4 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QNetworkProxyFactory
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
|| d->alloc
d->allocDescription
TRUEnever evaluated
FALSEevaluated 63 times by 4 tests
Evaluated 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 (data
dataDescription
TRUEevaluated 63 times by 4 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QNetworkProxyFactory
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
FALSEnever 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 return
executed 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}-
1532QByteArray QByteArray::fromBase64(const QByteArray &base64)-
1533{-
1534 return
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
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}-
1536QByteArray 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()
i < base64.size()Description
TRUEevaluated 32614095 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 20650 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
; ++i) {
20650-32614095
1544 int ch = base64.at(i);-
1545 int d;-
1546-
1547 if (ch >= 'A'
ch >= 'A'Description
TRUEevaluated 27609756 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 5004339 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
&& ch <= 'Z'
ch <= 'Z'Description
TRUEevaluated 16156002 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 11453754 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
)
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'
ch >= 'a'Description
TRUEevaluated 11453744 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 5004349 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
&& ch <= 'z'
ch <= 'z'Description
TRUEevaluated 11453744 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEnever evaluated
)
0-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'
ch >= '0'Description
TRUEevaluated 3933050 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 1071299 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
&& ch <= '9'
ch <= '9'Description
TRUEevaluated 3914334 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 18716 times by 8 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
)
18716-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 == '+'
ch == '+'Description
TRUEevaluated 282753 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 807262 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
&& (
(options & Bas...Encoding) == 0Description
TRUEevaluated 282747 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
options & Base64UrlEncoding) == 0
(options & Bas...Encoding) == 0Description
TRUEevaluated 282747 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
)
6-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 == '-'
ch == '-'Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 807256 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
&& (
(options & Bas...Encoding) != 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
options & Base64UrlEncoding) != 0
(options & Bas...Encoding) != 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QByteArray
)
6-807256
1556 d = 62;
executed 6 times by 1 test: d = 62;
Executed by:
  • tst_QByteArray
6
1557 else if (ch == '/'
ch == '/'Description
TRUEevaluated 322196 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 485066 times by 8 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
&& (
(options & Bas...Encoding) == 0Description
TRUEevaluated 322191 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
options & Base64UrlEncoding) == 0
(options & Bas...Encoding) == 0Description
TRUEevaluated 322191 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
)
5-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 == '_'
ch == '_'Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 485061 times by 8 tests
Evaluated by:
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
&& (
(options & Bas...Encoding) != 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
options & Base64UrlEncoding) != 0
(options & Bas...Encoding) != 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QByteArray
)
5-485061
1560 d = 63;
executed 5 times by 1 test: d = 63;
Executed by:
  • tst_QByteArray
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 != -1
d != -1Description
TRUEevaluated 32129029 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 485066 times by 8 tests
Evaluated 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 >= 8
nbits >= 8Description
TRUEevaluated 24092092 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
FALSEevaluated 8036937 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_Spdy
) {
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 return
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
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}-
1578QByteArray 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 >= 0
i >= 0Description
TRUEevaluated 9924 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
FALSEevaluated 180 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
; --i) {
180-9924
1585 uchar ch = uchar(hexEncoded.at(i));-
1586 int tmp = QtMiscUtils::fromHex(ch);-
1587 if (tmp == -1
tmp == -1Description
TRUEevaluated 1031 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QSslCertificate
FALSEevaluated 8893 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
)
1031-8893
1588 continue;
executed 1031 times by 2 tests: continue;
Executed by:
  • tst_QByteArray
  • tst_QSslCertificate
1031
1589 if (odd_digit
odd_digitDescription
TRUEevaluated 4449 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
FALSEevaluated 4444 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
) {
4444-4449
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 return
executed 180 times by 11 tests: return res;
Executed by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
res;
executed 180 times by 11 tests: return res;
Executed by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QHeaderView
  • tst_QMessageAuthenticationCode
  • tst_QMimeDatabase
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QTextCodec
  • tst_QUuid
  • tst_QVariant
180
1601}-
1602-
1603-
1604-
1605-
1606-
1607-
1608-
1609QByteArray 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->size
i < d->sizeDescription
TRUEevaluated 197241 times by 26 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QDBusInterface
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSharedMemory
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • tst_QSystemSemaphore
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • ...
FALSEevaluated 10235 times by 26 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAuthenticator
  • tst_QByteArray
  • tst_QCryptographicHash
  • tst_QDBusInterface
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSharedMemory
  • tst_QSocks5SocketEngine
  • tst_QSslCertificate
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • tst_QSystemSemaphore
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • ...
; ++i) {
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 return
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
  • ...
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-
1621static void q_fromPercentEncoding(QByteArray *ba, char percent)-
1622{-
1623 if (ba->isEmpty()
ba->isEmpty()Description
TRUEnever evaluated
FALSEevaluated 84 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
)
0-84
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 < len
i < lenDescription
TRUEevaluated 1998 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 84 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
) {
84-1998
1635 c = inputPtr[i];-
1636 if (c == percent
c == percentDescription
TRUEevaluated 196 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 1802 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
&& i + 2 < len
i + 2 < lenDescription
TRUEevaluated 196 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEnever evaluated
) {
0-1802
1637 a = inputPtr[++i];-
1638 b = inputPtr[++i];-
1639-
1640 if (a >= '0'
a >= '0'Description
TRUEevaluated 196 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEnever evaluated
&& a <= '9'
a <= '9'Description
TRUEevaluated 189 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 7 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
) a -= '0';
executed 189 times by 5 tests: a -= '0';
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
0-196
1641 else if (a >= 'a'
a >= 'a'Description
TRUEnever evaluated
FALSEevaluated 7 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
&& a <= 'f'
a <= 'f'Description
TRUEnever evaluated
FALSEnever evaluated
) a = a - 'a' + 10;
never executed: a = a - 'a' + 10;
0-7
1642 else if (a >= 'A'
a >= 'A'Description
TRUEevaluated 7 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
FALSEnever evaluated
&& a <= 'F'
a <= 'F'Description
TRUEevaluated 7 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
FALSEnever evaluated
) a = a - 'A' + 10;
executed 7 times by 4 tests: a = a - 'A' + 10;
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
0-7
1643-
1644 if (b >= '0'
b >= '0'Description
TRUEevaluated 196 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEnever evaluated
&& b <= '9'
b <= '9'Description
TRUEevaluated 126 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 70 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
) b -= '0';
executed 126 times by 5 tests: b -= '0';
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
0-196
1645 else if (b >= 'a'
b >= 'a'Description
TRUEnever evaluated
FALSEevaluated 70 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
&& b <= 'f'
b <= 'f'Description
TRUEnever evaluated
FALSEnever evaluated
) b = b - 'a' + 10;
never executed: b = b - 'a' + 10;
0-70
1646 else if (b >= 'A'
b >= 'A'Description
TRUEevaluated 70 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
FALSEnever evaluated
&& b <= 'F'
b <= 'F'Description
TRUEevaluated 70 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
FALSEnever evaluated
) b = b - 'A' + 10;
executed 70 times by 4 tests: b = b - 'A' + 10;
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
0-70
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 != len
outlen != lenDescription
TRUEevaluated 58 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 26 times by 4 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
)
26-58
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-
1661void q_fromPercentEncoding(QByteArray *ba)-
1662{-
1663 q_fromPercentEncoding(ba, '%');-
1664}
never executed: end of block
0
1665QByteArray QByteArray::fromPercentEncoding(const QByteArray &input, char percent)-
1666{-
1667 if (input.isNull()
input.isNull()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 89 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
)
2-89
1668 return
executed 2 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
QByteArray();
executed 2 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
2
1669 if (input.isEmpty()
input.isEmpty()Description
TRUEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 84 times by 5 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
)
5-84
1670 return
executed 5 times by 3 tests: return QByteArray(input.data(), 0);
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
QByteArray(input.data(), 0);
executed 5 times by 3 tests: return QByteArray(input.data(), 0);
Executed by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
5
1671-
1672 QByteArray tmp = input;-
1673 q_fromPercentEncoding(&tmp, percent);-
1674 return
executed 84 times by 5 tests: return tmp;
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
tmp;
executed 84 times by 5 tests: return tmp;
Executed by:
  • tst_QByteArray
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
84
1675}-
1676static inline bool q_strchr(const char str[], char chr)-
1677{-
1678 if (!str
!strDescription
TRUEnever evaluated
FALSEevaluated 644 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
) return
never executed: return false;
false;
never executed: return false;
0-644
1679-
1680 const char *ptr = str;-
1681 char c;-
1682 while ((
(c = *ptr++)Description
TRUEevaluated 516 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 595 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
c = *ptr++)
(c = *ptr++)Description
TRUEevaluated 516 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 595 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
516-595
1683 if (c == chr
c == chrDescription
TRUEevaluated 49 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 467 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
)
49-467
1684 return
executed 49 times by 2 tests: return true;
Executed by:
  • tst_QByteArray
  • tst_QUrl
true;
executed 49 times by 2 tests: return true;
Executed by:
  • tst_QByteArray
  • tst_QUrl
49
1685 return
executed 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-
1688static void q_toPercentEncoding(QByteArray *ba, const char *dontEncode, const char *alsoEncode, char percent)-
1689{-
1690 if (ba->isEmpty()
ba->isEmpty()Description
TRUEnever evaluated
FALSEevaluated 74 times by 3 tests
Evaluated 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 < len
i < lenDescription
TRUEevaluated 611 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 74 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
; ++i) {
74-611
1700 unsigned char c = *inputData++;-
1701 if (((c >= 0x61
c >= 0x61Description
TRUEevaluated 396 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 215 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
&& c <= 0x7A
c <= 0x7ADescription
TRUEevaluated 203 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 193 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
193-396
1702 || (c >= 0x41
c >= 0x41Description
TRUEevaluated 266 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 142 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
&& c <= 0x5A
c <= 0x5ADescription
TRUEevaluated 61 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 205 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
61-266
1703 || (c >= 0x30
c >= 0x30Description
TRUEevaluated 251 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 96 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
&& c <= 0x39
c <= 0x39Description
TRUEevaluated 22 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 229 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
22-251
1704 || c == 0x2D
c == 0x2DDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 319 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
6-319
1705 || c == 0x2E
c == 0x2EDescription
TRUEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 310 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
9-310
1706 || c == 0x5F
c == 0x5FDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 308 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
2-308
1707 || c == 0x7E
c == 0x7EDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 306 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
2-306
1708 || q_strchr(dontEncode, c)
q_strchr(dontEncode, c)Description
TRUEevaluated 33 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 273 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
33-273
1709 && !q_strchr(alsoEncode, c)
!q_strchr(alsoEncode, c)Description
TRUEevaluated 322 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
) {
16-322
1710 if (output
outputDescription
TRUEevaluated 138 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 184 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
138-184
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 (!output
!outputDescription
TRUEevaluated 70 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 219 times by 3 tests
Evaluated 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 (output
outputDescription
TRUEevaluated 70 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
)
4-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-
1728void 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-
1733void 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
1738QByteArray QByteArray::toPercentEncoding(const QByteArray &exclude, const QByteArray &include,-
1739 char percent) const-
1740{-
1741 if (isNull()
isNull()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 78 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
2-78
1742 return
executed 2 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
QByteArray();
executed 2 times by 1 test: return QByteArray();
Executed by:
  • tst_QByteArray
2
1743 if (isEmpty()
isEmpty()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
FALSEevaluated 74 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
4-74
1744 return
executed 4 times by 2 tests: return QByteArray(data(), 0);
Executed by:
  • tst_QByteArray
  • tst_QUrl
QByteArray(data(), 0);
executed 4 times by 2 tests: return QByteArray(data(), 0);
Executed by:
  • tst_QByteArray
  • tst_QUrl
4
1745-
1746 QByteArray include2 = include;-
1747 if (percent != '%'
percent != '%'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEevaluated 73 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QUrl
  • tst_QUrlInternal
)
1-73
1748 if ((percent >= 0x61
percent >= 0x61Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
&& percent <= 0x7A
percent <= 0x7ADescription
TRUEnever evaluated
FALSEnever evaluated
)
0-1
1749 || (percent >= 0x41
percent >= 0x41Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEnever evaluated
&& percent <= 0x5A
percent <= 0x5ADescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QByteArray
FALSEnever evaluated
)
0-1
1750 || (percent >= 0x30
percent >= 0x30Description
TRUEnever evaluated
FALSEnever evaluated
&& percent <= 0x39
percent <= 0x39Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1751 || percent == 0x2D
percent == 0x2DDescription
TRUEnever evaluated
FALSEnever evaluated
0
1752 || percent == 0x2E
percent == 0x2EDescription
TRUEnever evaluated
FALSEnever evaluated
0
1753 || percent == 0x5F
percent == 0x5FDescription
TRUEnever evaluated
FALSEnever evaluated
0
1754 || percent == 0x7E
percent == 0x7EDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1755 include2 += percent;
executed 1 time by 1 test: include2 += percent;
Executed by:
  • tst_QByteArray
1
1756-
1757 QByteArray result = *this;-
1758 q_toPercentEncoding(&result, exclude.nulTerminated().constData(), include2.nulTerminated().constData(), percent);-
1759-
1760 return
executed 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-
Switch to Source codePreprocessed file

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