| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | #include "qunicodetools_p.h" | - |
| 35 | | - |
| 36 | #include "qunicodetables_p.h" | - |
| 37 | #include "qvarlengtharray.h" | - |
| 38 | | - |
| 39 | #include "qharfbuzz_p.h" | - |
| 40 | | - |
| 41 | #define FLAG(x) (1 << (x)) | - |
| 42 | | - |
| 43 | QT_BEGIN_NAMESPACE | - |
| 44 | | - |
| 45 | Q_AUTOTEST_EXPORT int qt_initcharattributes_default_algorithm_only = 0; | - |
| 46 | | - |
| 47 | namespace QUnicodeTools { | - |
| 48 | | - |
| 49 | | - |
| 50 | | - |
| 51 | | - |
| 52 | | - |
| 53 | | - |
| 54 | | - |
| 55 | | - |
| 56 | namespace GB { | - |
| 57 | | - |
| 58 | static const uchar breakTable[QUnicodeTables::GraphemeBreak_LVT + 1][QUnicodeTables::GraphemeBreak_LVT + 1] = { | - |
| 59 | | - |
| 60 | { true , true , true , true , false, true , true , false, true , true , true , true , true }, | - |
| 61 | { true , true , false, true , true , true , true , true , true , true , true , true , true }, | - |
| 62 | { true , true , true , true , true , true , true , true , true , true , true , true , true }, | - |
| 63 | { true , true , true , true , true , true , true , true , true , true , true , true , true }, | - |
| 64 | { true , true , true , true , false, true , true , false, true , true , true , true , true }, | - |
| 65 | { true , true , true , true , false, false, true , false, true , true , true , true , true }, | - |
| 66 | { false, true , true , true , false, false, false, false, false, false, false, false, false }, | - |
| 67 | { true , true , true , true , false, true , true , false, true , true , true , true , true }, | - |
| 68 | { true , true , true , true , false, true , true , false, false, false, true , false, false }, | - |
| 69 | { true , true , true , true , false, true , true , false, true , false, false, true , true }, | - |
| 70 | { true , true , true , true , false, true , true , false, true , true , false, true , true }, | - |
| 71 | { true , true , true , true , false, true , true , false, true , false, false, true , true }, | - |
| 72 | { true , true , true , true , false, true , true , false, true , true , false, true , true }, | - |
| 73 | }; | - |
| 74 | | - |
| 75 | } | - |
| 76 | | - |
| 77 | static void getGraphemeBreaks(const ushort *string, quint32 len, QCharAttributes *attributes) | - |
| 78 | { | - |
| 79 | QUnicodeTables::GraphemeBreakClass lcls = QUnicodeTables::GraphemeBreak_LF; | - |
| 80 | for (quint32 i = 0; i != len; ++i) {| TRUE | evaluated 5305882 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 205495 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 205495-5305882 |
| 81 | quint32 pos = i; | - |
| 82 | uint ucs4 = string[i]; | - |
| 83 | if (QChar::isHighSurrogate(ucs4) && i + 1 != len) {| TRUE | evaluated 138 times by 2 testsEvaluated by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 5305744 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| TRUE | evaluated 110 times by 2 testsEvaluated by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 28 times by 1 test |
| 28-5305744 |
| 84 | ushort low = string[i + 1]; | - |
| 85 | if (QChar::isLowSurrogate(low)) {| TRUE | evaluated 82 times by 2 testsEvaluated by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 28 times by 1 test |
| 28-82 |
| 86 | ucs4 = QChar::surrogateToUcs4(ucs4, low); | - |
| 87 | ++i; | - |
| 88 | }executed 82 times by 2 tests: end of blockExecuted by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| 82 |
| 89 | }executed 110 times by 2 tests: end of blockExecuted by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| 110 |
| 90 | | - |
| 91 | const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4); | - |
| 92 | QUnicodeTables::GraphemeBreakClass cls = (QUnicodeTables::GraphemeBreakClass) prop->graphemeBreakClass; | - |
| 93 | | - |
| 94 | if (Q_LIKELY(GB::breakTable[lcls][cls]))| TRUE | evaluated 5305473 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 409 times by 3 testsEvaluated by:- tst_QLabel
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| 409-5305473 |
| 95 | attributes[pos].graphemeBoundary = true;executed 5305473 times by 114 tests: attributes[pos].graphemeBoundary = true;Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 5305473 |
| 96 | | - |
| 97 | lcls = cls; | - |
| 98 | }executed 5305882 times by 114 tests: end of blockExecuted by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 5305882 |
| 99 | | - |
| 100 | attributes[len].graphemeBoundary = true; | - |
| 101 | }executed 205495 times by 114 tests: end of blockExecuted by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 205495 |
| 102 | | - |
| 103 | | - |
| 104 | namespace WB { | - |
| 105 | | - |
| 106 | enum Action { | - |
| 107 | NoBreak, | - |
| 108 | Break, | - |
| 109 | Lookup, | - |
| 110 | LookupW | - |
| 111 | }; | - |
| 112 | | - |
| 113 | static const uchar breakTable[QUnicodeTables::WordBreak_ExtendNumLet + 1][QUnicodeTables::WordBreak_ExtendNumLet + 1] = { | - |
| 114 | | - |
| 115 | { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, | - |
| 116 | { Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, | - |
| 117 | { Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, | - |
| 118 | { Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, | - |
| 119 | { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, | - |
| 120 | { Break , Break , Break , Break , NoBreak, NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, | - |
| 121 | { Break , Break , Break , Break , NoBreak, Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , NoBreak }, | - |
| 122 | { Break , Break , Break , Break , NoBreak, Break , Break , NoBreak, NoBreak, LookupW, Lookup , LookupW, LookupW, Break , NoBreak, NoBreak }, | - |
| 123 | { Break , Break , Break , Break , NoBreak, Break , Break , NoBreak, NoBreak, LookupW, Break , LookupW, LookupW, Break , NoBreak, NoBreak }, | - |
| 124 | { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, | - |
| 125 | { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, | - |
| 126 | { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, | - |
| 127 | { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, | - |
| 128 | { Break , Break , Break , Break , NoBreak, Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, | - |
| 129 | { Break , Break , Break , Break , NoBreak, Break , Break , NoBreak, NoBreak, Lookup , Break , Lookup , Break , Lookup , NoBreak, NoBreak }, | - |
| 130 | { Break , Break , Break , Break , NoBreak, Break , NoBreak, NoBreak, NoBreak, Break , Break , Break , Break , Break , NoBreak, NoBreak }, | - |
| 131 | }; | - |
| 132 | | - |
| 133 | } | - |
| 134 | | - |
| 135 | static void getWordBreaks(const ushort *string, quint32 len, QCharAttributes *attributes) | - |
| 136 | { | - |
| 137 | enum WordType { | - |
| 138 | WordTypeNone, WordTypeAlphaNumeric, WordTypeHiraganaKatakana | - |
| 139 | } currentWordType = WordTypeNone; | - |
| 140 | | - |
| 141 | QUnicodeTables::WordBreakClass cls = QUnicodeTables::WordBreak_LF; | - |
| 142 | for (quint32 i = 0; i != len; ++i) {| TRUE | evaluated 134912 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 1553 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| 1553-134912 |
| 143 | quint32 pos = i; | - |
| 144 | uint ucs4 = string[i]; | - |
| 145 | if (QChar::isHighSurrogate(ucs4) && i + 1 != len) {| TRUE | evaluated 127 times by 1 test | | FALSE | evaluated 134785 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| TRUE | evaluated 127 times by 1 test | | FALSE | never evaluated |
| 0-134785 |
| 146 | ushort low = string[i + 1]; | - |
| 147 | if (QChar::isLowSurrogate(low)) {| TRUE | evaluated 127 times by 1 test | | FALSE | never evaluated |
| 0-127 |
| 148 | ucs4 = QChar::surrogateToUcs4(ucs4, low); | - |
| 149 | ++i; | - |
| 150 | }executed 127 times by 1 test: end of block | 127 |
| 151 | }executed 127 times by 1 test: end of block | 127 |
| 152 | | - |
| 153 | const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4); | - |
| 154 | QUnicodeTables::WordBreakClass ncls = (QUnicodeTables::WordBreakClass) prop->wordBreakClass; | - |
| 155 | #ifdef QT_BUILD_INTERNAL | - |
| 156 | if (qt_initcharattributes_default_algorithm_only) {| TRUE | evaluated 5127 times by 1 test | | FALSE | evaluated 129785 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| 5127-129785 |
| 157 | | - |
| 158 | | - |
| 159 | | - |
| 160 | | - |
| 161 | if (ucs4 == 0x002E) | TRUE | evaluated 290 times by 1 test | | FALSE | evaluated 4837 times by 1 test |
| 290-4837 |
| 162 | ncls = QUnicodeTables::WordBreak_MidNumLet;executed 290 times by 1 test: ncls = QUnicodeTables::WordBreak_MidNumLet; | 290 |
| 163 | else if (ucs4 == 0x003A) | TRUE | evaluated 384 times by 1 test | | FALSE | evaluated 4453 times by 1 test |
| 384-4453 |
| 164 | ncls = QUnicodeTables::WordBreak_MidLetter;executed 384 times by 1 test: ncls = QUnicodeTables::WordBreak_MidLetter; | 384 |
| 165 | }executed 5127 times by 1 test: end of block | 5127 |
| 166 | #endif | - |
| 167 | | - |
| 168 | uchar action = WB::breakTable[cls][ncls]; | - |
| 169 | switch (action) { | - |
| 170 | case WB::Break:executed 3856 times by 3 tests: case WB::Break:Executed by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 3856 |
| 171 | break;executed 3856 times by 3 tests: break;Executed by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 3856 |
| 172 | case WB::NoBreak:executed 130284 times by 3 tests: case WB::NoBreak:Executed by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 130284 |
| 173 | if (Q_UNLIKELY(ncls == QUnicodeTables::WordBreak_Extend)) {| TRUE | evaluated 1100 times by 1 test | | FALSE | evaluated 129184 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| 1100-129184 |
| 174 | | - |
| 175 | continue;executed 1100 times by 1 test: continue; | 1100 |
| 176 | } | - |
| 177 | break;executed 129184 times by 3 tests: break;Executed by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 129184 |
| 178 | case WB::Lookup:executed 373 times by 1 test: case WB::Lookup: | 373 |
| 179 | case WB::LookupW:executed 399 times by 1 test: case WB::LookupW: | 399 |
| 180 | for (quint32 lookahead = i + 1; lookahead < len; ++lookahead) {| TRUE | evaluated 818 times by 1 test | | FALSE | evaluated 362 times by 1 test |
| 362-818 |
| 181 | ucs4 = string[lookahead]; | - |
| 182 | if (QChar::isHighSurrogate(ucs4) && lookahead + 1 != len) {| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 806 times by 1 test |
| TRUE | evaluated 12 times by 1 test | | FALSE | never evaluated |
| 0-806 |
| 183 | ushort low = string[lookahead + 1]; | - |
| 184 | if (QChar::isLowSurrogate(low)) {| TRUE | evaluated 12 times by 1 test | | FALSE | never evaluated |
| 0-12 |
| 185 | ucs4 = QChar::surrogateToUcs4(ucs4, low); | - |
| 186 | ++lookahead; | - |
| 187 | }executed 12 times by 1 test: end of block | 12 |
| 188 | }executed 12 times by 1 test: end of block | 12 |
| 189 | | - |
| 190 | prop = QUnicodeTables::properties(ucs4); | - |
| 191 | QUnicodeTables::WordBreakClass tcls = (QUnicodeTables::WordBreakClass) prop->wordBreakClass; | - |
| 192 | | - |
| 193 | if (Q_UNLIKELY(tcls == QUnicodeTables::WordBreak_Extend)) {| TRUE | evaluated 408 times by 1 test | | FALSE | evaluated 410 times by 1 test |
| 408-410 |
| 194 | | - |
| 195 | continue;executed 408 times by 1 test: continue; | 408 |
| 196 | } | - |
| 197 | | - |
| 198 | if (Q_LIKELY(tcls == cls || (action == WB::LookupW && (tcls == QUnicodeTables::WordBreak_HebrewLetter| TRUE | evaluated 122 times by 1 test | | FALSE | evaluated 288 times by 1 test |
| 122-288 |
| 199 | || tcls == QUnicodeTables::WordBreak_ALetter)))) { | - |
| 200 | i = lookahead; | - |
| 201 | ncls = tcls; | - |
| 202 | action = WB::NoBreak; | - |
| 203 | }executed 122 times by 1 test: end of block | 122 |
| 204 | break;executed 410 times by 1 test: break; | 410 |
| 205 | } | - |
| 206 | if (action != WB::NoBreak) {| TRUE | evaluated 650 times by 1 test | | FALSE | evaluated 122 times by 1 test |
| 122-650 |
| 207 | action = WB::Break; | - |
| 208 | if (Q_UNLIKELY(ncls == QUnicodeTables::WordBreak_SingleQuote && cls == QUnicodeTables::WordBreak_HebrewLetter))| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 648 times by 1 test |
| 2-648 |
| 209 | action = WB::NoBreak; executed 2 times by 1 test: action = WB::NoBreak; | 2 |
| 210 | }executed 650 times by 1 test: end of block | 650 |
| 211 | break;executed 772 times by 1 test: break; | 772 |
| 212 | } | - |
| 213 | | - |
| 214 | cls = ncls; | - |
| 215 | if (action == WB::Break) {| TRUE | evaluated 4504 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 129308 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| 4504-129308 |
| 216 | attributes[pos].wordBreak = true; | - |
| 217 | if (currentWordType != WordTypeNone)| TRUE | evaluated 1294 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 3210 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| 1294-3210 |
| 218 | attributes[pos].wordEnd = true;executed 1294 times by 3 tests: attributes[pos].wordEnd = true;Executed by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 1294 |
| 219 | switch (cls) { | - |
| 220 | case QUnicodeTables::WordBreak_Katakana:executed 100 times by 1 test: case QUnicodeTables::WordBreak_Katakana: | 100 |
| 221 | currentWordType = WordTypeHiraganaKatakana; | - |
| 222 | attributes[pos].wordStart = true; | - |
| 223 | break;executed 100 times by 1 test: break; | 100 |
| 224 | case QUnicodeTables::WordBreak_HebrewLetter:executed 89 times by 1 test: case QUnicodeTables::WordBreak_HebrewLetter: | 89 |
| 225 | case QUnicodeTables::WordBreak_ALetter:executed 998 times by 3 tests: case QUnicodeTables::WordBreak_ALetter:Executed by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 998 |
| 226 | case QUnicodeTables::WordBreak_Numeric:executed 564 times by 1 test: case QUnicodeTables::WordBreak_Numeric: | 564 |
| 227 | currentWordType = WordTypeAlphaNumeric; | - |
| 228 | attributes[pos].wordStart = true; | - |
| 229 | break;executed 1651 times by 3 tests: break;Executed by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 1651 |
| 230 | default:executed 2753 times by 3 tests: default:Executed by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 2753 |
| 231 | currentWordType = WordTypeNone; | - |
| 232 | break;executed 2753 times by 3 tests: break;Executed by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 2753 |
| 233 | } | - |
| 234 | } | - |
| 235 | }executed 133812 times by 3 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 133812 |
| 236 | | - |
| 237 | if (currentWordType != WordTypeNone)| TRUE | evaluated 457 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 1096 times by 1 test |
| 457-1096 |
| 238 | attributes[len].wordEnd = true;executed 457 times by 3 tests: attributes[len].wordEnd = true;Executed by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 457 |
| 239 | attributes[len].wordBreak = true; | - |
| 240 | }executed 1553 times by 3 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 1553 |
| 241 | | - |
| 242 | | - |
| 243 | namespace SB { | - |
| 244 | | - |
| 245 | enum State { | - |
| 246 | Initial, | - |
| 247 | Lower, | - |
| 248 | Upper, | - |
| 249 | LUATerm, | - |
| 250 | ATerm, | - |
| 251 | ATermC, | - |
| 252 | ACS, | - |
| 253 | STerm, | - |
| 254 | STermC, | - |
| 255 | SCS, | - |
| 256 | BAfterC, | - |
| 257 | BAfter, | - |
| 258 | Break, | - |
| 259 | Lookup | - |
| 260 | }; | - |
| 261 | | - |
| 262 | static const uchar breakTable[BAfter + 1][QUnicodeTables::SentenceBreak_Close + 1] = { | - |
| 263 | | - |
| 264 | { Initial, BAfterC, BAfter , BAfter , Initial, Initial, Lower , Upper , Initial, Initial, ATerm , Initial, STerm , Initial }, | - |
| 265 | { Initial, BAfterC, BAfter , BAfter , Lower , Initial, Initial, Initial, Initial, Initial, LUATerm, Initial, STerm , Initial }, | - |
| 266 | { Initial, BAfterC, BAfter , BAfter , Upper , Initial, Initial, Upper , Initial, Initial, LUATerm, STerm , STerm , Initial }, | - |
| 267 | | - |
| 268 | { Lookup , BAfterC, BAfter , BAfter , LUATerm, ACS , Initial, Upper , Break , Initial, ATerm , STerm , STerm , ATermC }, | - |
| 269 | { Lookup , BAfterC, BAfter , BAfter , ATerm , ACS , Initial, Break , Break , Initial, ATerm , STerm , STerm , ATermC }, | - |
| 270 | { Lookup , BAfterC, BAfter , BAfter , ATermC , ACS , Initial, Break , Break , Lookup , ATerm , STerm , STerm , ATermC }, | - |
| 271 | { Lookup , BAfterC, BAfter , BAfter , ACS , ACS , Initial, Break , Break , Lookup , ATerm , STerm , STerm , Lookup }, | - |
| 272 | | - |
| 273 | { Break , BAfterC, BAfter , BAfter , STerm , SCS , Break , Break , Break , Break , ATerm , STerm , STerm , STermC }, | - |
| 274 | { Break , BAfterC, BAfter , BAfter , STermC , SCS , Break , Break , Break , Break , ATerm , STerm , STerm , STermC }, | - |
| 275 | { Break , BAfterC, BAfter , BAfter , SCS , SCS , Break , Break , Break , Break , ATerm , STerm , STerm , Break }, | - |
| 276 | { Break , Break , BAfter , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, | - |
| 277 | { Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break , Break }, | - |
| 278 | }; | - |
| 279 | | - |
| 280 | } | - |
| 281 | | - |
| 282 | static void getSentenceBreaks(const ushort *string, quint32 len, QCharAttributes *attributes) | - |
| 283 | { | - |
| 284 | uchar state = SB::BAfter; | - |
| 285 | for (quint32 i = 0; i != len; ++i) {| TRUE | evaluated 2339 times by 2 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
| | FALSE | evaluated 521 times by 2 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
|
| 521-2339 |
| 286 | quint32 pos = i; | - |
| 287 | uint ucs4 = string[i]; | - |
| 288 | if (QChar::isHighSurrogate(ucs4) && i + 1 != len) {| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 2330 times by 2 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
|
| TRUE | evaluated 9 times by 1 test | | FALSE | never evaluated |
| 0-2330 |
| 289 | ushort low = string[i + 1]; | - |
| 290 | if (QChar::isLowSurrogate(low)) {| TRUE | evaluated 9 times by 1 test | | FALSE | never evaluated |
| 0-9 |
| 291 | ucs4 = QChar::surrogateToUcs4(ucs4, low); | - |
| 292 | ++i; | - |
| 293 | }executed 9 times by 1 test: end of block | 9 |
| 294 | }executed 9 times by 1 test: end of block | 9 |
| 295 | | - |
| 296 | const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4); | - |
| 297 | QUnicodeTables::SentenceBreakClass ncls = (QUnicodeTables::SentenceBreakClass) prop->sentenceBreakClass; | - |
| 298 | | - |
| 299 | Q_ASSERT(state <= SB::BAfter); | - |
| 300 | state = SB::breakTable[state][ncls]; | - |
| 301 | if (Q_UNLIKELY(state == SB::Lookup)) { | TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 2331 times by 2 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
|
| 8-2331 |
| 302 | state = SB::Break; | - |
| 303 | for (quint32 lookahead = i + 1; lookahead < len; ++lookahead) {| TRUE | evaluated 15 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-15 |
| 304 | ucs4 = string[lookahead]; | - |
| 305 | if (QChar::isHighSurrogate(ucs4) && lookahead + 1 != len) {| TRUE | never evaluated | | FALSE | evaluated 15 times by 1 test |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0-15 |
| 306 | ushort low = string[lookahead + 1]; | - |
| 307 | if (QChar::isLowSurrogate(low)) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 308 | ucs4 = QChar::surrogateToUcs4(ucs4, low); | - |
| 309 | ++lookahead; | - |
| 310 | } never executed: end of block | 0 |
| 311 | } never executed: end of block | 0 |
| 312 | | - |
| 313 | prop = QUnicodeTables::properties(ucs4); | - |
| 314 | QUnicodeTables::SentenceBreakClass tcls = (QUnicodeTables::SentenceBreakClass) prop->sentenceBreakClass; | - |
| 315 | switch (tcls) { | - |
| 316 | case QUnicodeTables::SentenceBreak_Other: never executed: case QUnicodeTables::SentenceBreak_Other: | 0 |
| 317 | case QUnicodeTables::SentenceBreak_Extend:executed 5 times by 1 test: case QUnicodeTables::SentenceBreak_Extend: | 5 |
| 318 | case QUnicodeTables::SentenceBreak_Sp: never executed: case QUnicodeTables::SentenceBreak_Sp: | 0 |
| 319 | case QUnicodeTables::SentenceBreak_Numeric: never executed: case QUnicodeTables::SentenceBreak_Numeric: | 0 |
| 320 | case QUnicodeTables::SentenceBreak_SContinue: never executed: case QUnicodeTables::SentenceBreak_SContinue: | 0 |
| 321 | case QUnicodeTables::SentenceBreak_Close:executed 4 times by 1 test: case QUnicodeTables::SentenceBreak_Close: | 4 |
| 322 | continue;executed 9 times by 1 test: continue; | 9 |
| 323 | case QUnicodeTables::SentenceBreak_Lower:executed 2 times by 1 test: case QUnicodeTables::SentenceBreak_Lower: | 2 |
| 324 | i = lookahead; | - |
| 325 | state = SB::Initial; | - |
| 326 | break;executed 2 times by 1 test: break; | 2 |
| 327 | default:executed 4 times by 1 test: default: | 4 |
| 328 | break;executed 4 times by 1 test: break; | 4 |
| 329 | } | - |
| 330 | break;executed 6 times by 1 test: break; | 6 |
| 331 | } | - |
| 332 | }executed 8 times by 1 test: end of block | 8 |
| 333 | if (Q_UNLIKELY(state == SB::Break)) {| TRUE | evaluated 672 times by 2 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
| | FALSE | evaluated 1667 times by 2 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
|
| 672-1667 |
| 334 | attributes[pos].sentenceBoundary = true; | - |
| 335 | state = SB::breakTable[SB::Initial][ncls]; | - |
| 336 | }executed 672 times by 2 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QTextBoundaryFinder
| 672 |
| 337 | }executed 2339 times by 2 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QTextBoundaryFinder
| 2339 |
| 338 | | - |
| 339 | attributes[len].sentenceBoundary = true; | - |
| 340 | }executed 521 times by 2 tests: end of blockExecuted by:- tst_QAccessibility
- tst_QTextBoundaryFinder
| 521 |
| 341 | | - |
| 342 | | - |
| 343 | | - |
| 344 | | - |
| 345 | | - |
| 346 | | - |
| 347 | | - |
| 348 | | - |
| 349 | | - |
| 350 | namespace LB { | - |
| 351 | | - |
| 352 | namespace NS { | - |
| 353 | | - |
| 354 | | - |
| 355 | | - |
| 356 | | - |
| 357 | | - |
| 358 | enum Action { | - |
| 359 | None, | - |
| 360 | Start, | - |
| 361 | Continue, | - |
| 362 | Break | - |
| 363 | }; | - |
| 364 | | - |
| 365 | enum Class { | - |
| 366 | XX, | - |
| 367 | PRPO, | - |
| 368 | OPHY, | - |
| 369 | NU, | - |
| 370 | SYIS, | - |
| 371 | CLCP | - |
| 372 | }; | - |
| 373 | | - |
| 374 | static const uchar actionTable[CLCP + 1][CLCP + 1] = { | - |
| 375 | | - |
| 376 | { None , Start , Start , Start , None , None }, | - |
| 377 | { None , Start , Continue, Continue, None , None }, | - |
| 378 | { None , Start , Start , Continue, None , None }, | - |
| 379 | { Break , Break , Break , Continue, Continue, Continue }, | - |
| 380 | { Break , Break , Break , Continue, Continue, Continue }, | - |
| 381 | { Break , Continue, Break , Break , Break , Break }, | - |
| 382 | }; | - |
| 383 | | - |
| 384 | inline Class toClass(QUnicodeTables::LineBreakClass lbc, QChar::Category category) | - |
| 385 | { | - |
| 386 | switch (lbc) { | - |
| 387 | case QUnicodeTables::LineBreak_AL:executed 3462455 times by 109 tests: case QUnicodeTables::LineBreak_AL:Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
| 3462455 |
| 388 | | - |
| 389 | if (category == QChar::Symbol_Math)| TRUE | evaluated 2604 times by 13 testsEvaluated by:- tst_QComplexText
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLineEdit
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QShortcut
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextEdit
- tst_QTextLayout
- tst_QTreeView
- tst_QWizard
| | FALSE | evaluated 3459851 times by 109 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
|
| 2604-3459851 |
| 390 | return SYIS;executed 2604 times by 13 tests: return SYIS;Executed by:- tst_QComplexText
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLineEdit
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QShortcut
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextEdit
- tst_QTextLayout
- tst_QTreeView
- tst_QWizard
| 2604 |
| 391 | break;executed 3459851 times by 109 tests: break;Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
| 3459851 |
| 392 | case QUnicodeTables::LineBreak_PR: case QUnicodeTables::LineBreak_PO:executed 4440 times by 23 tests: case QUnicodeTables::LineBreak_PR:Executed by:- tst_QBoxLayout
- tst_QColumnView
- tst_QComplexText
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QInputDialog
- tst_QKeySequenceEdit
- tst_QLabel
- tst_QLineEdit
- tst_QMdiSubWindow
- tst_QMenuBar
- tst_QMessageBox
- tst_QPushButton
- tst_QShortcut
- tst_QSpinBox
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextEdit
- tst_QTextLayout
executed 477 times by 8 tests: case QUnicodeTables::LineBreak_PO:Executed by:- tst_QComplexText
- tst_QInputDialog
- tst_QLineEdit
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QPrinter
- tst_QProgressBar
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 477-4440 |
| 393 | return PRPO;executed 4917 times by 26 tests: return PRPO;Executed by:- tst_QBoxLayout
- tst_QColumnView
- tst_QComplexText
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QInputDialog
- tst_QKeySequenceEdit
- tst_QLabel
- tst_QLineEdit
- tst_QMdiSubWindow
- tst_QMenuBar
- tst_QMessageBox
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QPrinter
- tst_QProgressBar
- tst_QPushButton
- tst_QShortcut
- tst_QSpinBox
- tst_QStackedLayout
- tst_QStyleSheetStyle
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextEdit
- ...
| 4917 |
| 394 | case QUnicodeTables::LineBreak_OP: case QUnicodeTables::LineBreak_HY:executed 7283 times by 25 tests: case QUnicodeTables::LineBreak_OP:Executed by:- tst_QComplexText
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMdiArea
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QProgressBar
- tst_QTableView
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextEdit
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTreeView
- tst_QTreeWidget
executed 75190 times by 33 tests: case QUnicodeTables::LineBreak_HY:Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QBoxLayout
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QGroupBox
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLineEdit
- tst_QMdiArea
- tst_QMenu
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QSpinBox
- tst_QStackedLayout
- tst_QStandardItemModel
- ...
| 7283-75190 |
| 395 | return OPHY;executed 82473 times by 40 tests: return OPHY;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QBoxLayout
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QGroupBox
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMdiArea
- tst_QMenu
- tst_QMessageBox
- tst_QPlainTextEdit
- ...
| 82473 |
| 396 | case QUnicodeTables::LineBreak_NU:executed 1089305 times by 75 tests: case QUnicodeTables::LineBreak_NU:Executed by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- ...
| 1089305 |
| 397 | return NU;executed 1089305 times by 75 tests: return NU;Executed by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGlyphRun
- ...
| 1089305 |
| 398 | case QUnicodeTables::LineBreak_SY: case QUnicodeTables::LineBreak_IS:executed 91770 times by 24 tests: case QUnicodeTables::LineBreak_SY:Executed by:- tst_QAccessibility
- tst_QColumnView
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLineEdit
- tst_QListView
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSidebar
- tst_QSortFilterProxyModel
- tst_QStandardItemModel
- tst_QStyleSheetStyle
- tst_QTextBoundaryFinder
- tst_QTextLayout
- tst_QTreeView
- tst_languageChange
executed 138331 times by 47 tests: case QUnicodeTables::LineBreak_IS:Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QKeySequenceEdit
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- ...
| 91770-138331 |
| 399 | return SYIS;executed 230101 times by 51 tests: return SYIS;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QKeySequenceEdit
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- ...
| 230101 |
| 400 | case QUnicodeTables::LineBreak_CL: case QUnicodeTables::LineBreak_CP:executed 472 times by 9 tests: case QUnicodeTables::LineBreak_CL:Executed by:- tst_QInputDialog
- tst_QItemDelegate
- tst_QLabel
- tst_QLineEdit
- tst_QPlainTextEdit
- tst_QTextBoundaryFinder
- tst_QTextEdit
- tst_QTextLayout
- tst_QTextScriptEngine
executed 7174 times by 24 tests: case QUnicodeTables::LineBreak_CP:Executed by:- tst_QComplexText
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMdiArea
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QProgressBar
- tst_QTableView
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextEdit
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTreeView
- tst_QTreeWidget
| 472-7174 |
| 401 | return CLCP;executed 7646 times by 26 tests: return CLCP;Executed by:- tst_QComplexText
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMdiArea
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QProgressBar
- tst_QTableView
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextEdit
- tst_QTextLayout
- tst_QTextScriptEngine
- tst_QTreeView
- ...
| 7646 |
| 402 | default:executed 444603 times by 87 tests: default:Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- ...
| 444603 |
| 403 | break;executed 444603 times by 87 tests: break;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- ...
| 444603 |
| 404 | } | - |
| 405 | return XX;executed 3904454 times by 110 tests: return XX;Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
| 3904454 |
| 406 | } | - |
| 407 | | - |
| 408 | } | - |
| 409 | | - |
| 410 | | - |
| 411 | | - |
| 412 | | - |
| 413 | | - |
| 414 | | - |
| 415 | | - |
| 416 | | - |
| 417 | | - |
| 418 | | - |
| 419 | | - |
| 420 | | - |
| 421 | | - |
| 422 | | - |
| 423 | | - |
| 424 | | - |
| 425 | | - |
| 426 | | - |
| 427 | | - |
| 428 | | - |
| 429 | enum Action { | - |
| 430 | ProhibitedBreak, PB = ProhibitedBreak, | - |
| 431 | DirectBreak, DB = DirectBreak, | - |
| 432 | IndirectBreak, IB = IndirectBreak, | - |
| 433 | CombiningIndirectBreak, CI = CombiningIndirectBreak, | - |
| 434 | CombiningProhibitedBreak, CP = CombiningProhibitedBreak, | - |
| 435 | ProhibitedBreakAfterHebrewPlusHyphen, HH = ProhibitedBreakAfterHebrewPlusHyphen | - |
| 436 | }; | - |
| 437 | | - |
| 438 | static const uchar breakTable[QUnicodeTables::LineBreak_CB + 1][QUnicodeTables::LineBreak_CB + 1] = { | - |
| 439 | | - |
| 440 | { PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, PB, CP, PB, PB, PB, PB, PB, PB, PB, PB }, | - |
| 441 | { DB, PB, PB, IB, IB, PB, PB, PB, PB, DB, DB, DB, DB, DB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 442 | { DB, PB, PB, IB, IB, PB, PB, PB, PB, DB, DB, IB, IB, IB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 443 | { PB, PB, PB, IB, IB, IB, PB, PB, PB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, PB, CI, PB, IB, IB, IB, IB, IB, IB, IB }, | - |
| 444 | { IB, PB, PB, IB, IB, IB, PB, PB, PB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, PB, CI, PB, IB, IB, IB, IB, IB, IB, IB }, | - |
| 445 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, DB, DB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 446 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 447 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, DB, IB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 448 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, IB, IB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 449 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, IB, IB, IB, IB, DB, IB, IB, DB, DB, PB, CI, PB, IB, IB, IB, IB, IB, DB, DB }, | - |
| 450 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, IB, IB, IB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 451 | { IB, PB, PB, IB, IB, IB, PB, PB, PB, IB, IB, IB, IB, IB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 452 | { IB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, IB, IB, IB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 453 | { IB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, IB, IB, IB, DB, IB, CI, CI, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 454 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, IB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 455 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 456 | { HH, PB, PB, IB, HH, IB, PB, PB, PB, HH, HH, IB, HH, HH, HH, HH, IB, IB, HH, HH, PB, CI, PB, HH, HH, HH, HH, HH, HH, DB }, | - |
| 457 | { HH, PB, PB, IB, HH, IB, PB, PB, PB, HH, HH, HH, HH, HH, HH, HH, IB, IB, HH, HH, PB, CI, PB, HH, HH, HH, HH, HH, HH, DB }, | - |
| 458 | { IB, PB, PB, IB, IB, IB, PB, PB, PB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, PB, CI, PB, IB, IB, IB, IB, IB, IB, DB }, | - |
| 459 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, DB, DB, DB, DB, IB, IB, DB, PB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 460 | { DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, PB, DB, DB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 461 | { IB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, IB, IB, IB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB }, | - |
| 462 | { IB, PB, PB, IB, IB, IB, PB, PB, PB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, IB, PB, CI, PB, IB, IB, IB, IB, IB, IB, IB }, | - |
| 463 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, IB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, IB, IB, DB, DB }, | - |
| 464 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, IB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, IB, DB, DB }, | - |
| 465 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, IB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, IB, IB, IB, IB, DB, DB, DB }, | - |
| 466 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, IB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, IB, IB, DB, DB }, | - |
| 467 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, IB, DB, DB, DB, DB, IB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, IB, DB, DB }, | - |
| 468 | { DB, PB, PB, IB, IB, IB, PB, PB, PB, DB, DB, DB, DB, DB, DB, DB, IB, IB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, IB, DB }, | - |
| 469 | { DB, PB, PB, IB, IB, DB, PB, PB, PB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, DB, PB, CI, PB, DB, DB, DB, DB, DB, DB, DB } | - |
| 470 | }; | - |
| 471 | | - |
| 472 | | - |
| 473 | | - |
| 474 | | - |
| 475 | | - |
| 476 | } | - |
| 477 | | - |
| 478 | static void getLineBreaks(const ushort *string, quint32 len, QCharAttributes *attributes) | - |
| 479 | { | - |
| 480 | quint32 nestart = 0; | - |
| 481 | LB::NS::Class nelast = LB::NS::XX; | - |
| 482 | | - |
| 483 | QUnicodeTables::LineBreakClass lcls = QUnicodeTables::LineBreak_LF; | - |
| 484 | QUnicodeTables::LineBreakClass cls = lcls; | - |
| 485 | for (quint32 i = 0; i != len; ++i) {| TRUE | evaluated 5324462 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 211399 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 211399-5324462 |
| 486 | quint32 pos = i; | - |
| 487 | uint ucs4 = string[i]; | - |
| 488 | if (QChar::isHighSurrogate(ucs4) && i + 1 != len) {| TRUE | evaluated 650 times by 2 testsEvaluated by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 5323812 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| TRUE | evaluated 650 times by 2 testsEvaluated by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | never evaluated |
| 0-5323812 |
| 489 | ushort low = string[i + 1]; | - |
| 490 | if (QChar::isLowSurrogate(low)) {| TRUE | evaluated 650 times by 2 testsEvaluated by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | never evaluated |
| 0-650 |
| 491 | ucs4 = QChar::surrogateToUcs4(ucs4, low); | - |
| 492 | ++i; | - |
| 493 | }executed 650 times by 2 tests: end of blockExecuted by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| 650 |
| 494 | }executed 650 times by 2 tests: end of blockExecuted by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| 650 |
| 495 | | - |
| 496 | const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4); | - |
| 497 | QUnicodeTables::LineBreakClass ncls = (QUnicodeTables::LineBreakClass) prop->lineBreakClass; | - |
| 498 | | - |
| 499 | if (Q_UNLIKELY(ncls == QUnicodeTables::LineBreak_SA)) {| TRUE | evaluated 1374 times by 3 testsEvaluated by:- tst_QLabel
- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 5323088 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 1374-5323088 |
| 500 | | - |
| 501 | static const int test = FLAG(QChar::Mark_NonSpacing) | FLAG(QChar::Mark_SpacingCombining); | - |
| 502 | if (FLAG(prop->category) & test)| TRUE | evaluated 190 times by 2 testsEvaluated by:- tst_QLabel
- tst_QTextLayout
| | FALSE | evaluated 1184 times by 3 testsEvaluated by:- tst_QLabel
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| 190-1184 |
| 503 | ncls = QUnicodeTables::LineBreak_CM;executed 190 times by 2 tests: ncls = QUnicodeTables::LineBreak_CM;Executed by:- tst_QLabel
- tst_QTextLayout
| 190 |
| 504 | }executed 1374 times by 3 tests: end of blockExecuted by:- tst_QLabel
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 1374 |
| 505 | if (Q_UNLIKELY(ncls == QUnicodeTables::LineBreak_CM)) {| TRUE | evaluated 3747 times by 4 testsEvaluated by:- tst_QComplexText
- tst_QLabel
- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 5320715 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 3747-5320715 |
| 506 | | - |
| 507 | if (lcls == QUnicodeTables::LineBreak_ZW || lcls >= QUnicodeTables::LineBreak_SP)| TRUE | evaluated 79 times by 1 test | | FALSE | evaluated 3668 times by 4 testsEvaluated by:- tst_QComplexText
- tst_QLabel
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| TRUE | evaluated 706 times by 2 testsEvaluated by:- tst_QComplexText
- tst_QTextBoundaryFinder
| | FALSE | evaluated 2962 times by 4 testsEvaluated by:- tst_QComplexText
- tst_QLabel
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| 79-3668 |
| 508 | ncls = QUnicodeTables::LineBreak_AL;executed 785 times by 2 tests: ncls = QUnicodeTables::LineBreak_AL;Executed by:- tst_QComplexText
- tst_QTextBoundaryFinder
| 785 |
| 509 | }executed 3747 times by 4 tests: end of blockExecuted by:- tst_QComplexText
- tst_QLabel
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 3747 |
| 510 | | - |
| 511 | if (Q_LIKELY(ncls != QUnicodeTables::LineBreak_CM)) {| TRUE | evaluated 5321500 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 2962 times by 4 testsEvaluated by:- tst_QComplexText
- tst_QLabel
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| 2962-5321500 |
| 512 | | - |
| 513 | LB::NS::Class necur = LB::NS::toClass(ncls, (QChar::Category)prop->category); | - |
| 514 | switch (LB::NS::actionTable[nelast][necur]) { | - |
| 515 | case LB::NS::Break:executed 149725 times by 47 tests: case LB::NS::Break:Executed by:- tst_QAccessibility
- tst_QButtonGroup
- tst_QColumnView
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QGroupBox
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemView
- ...
| 149725 |
| 516 | | - |
| 517 | for (quint32 j = nestart + 1; j < pos; ++j)| TRUE | evaluated 136260 times by 36 testsEvaluated by:- tst_QAccessibility
- tst_QColumnView
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QGroupBox
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemView
- tst_QLineEdit
- tst_QMessageBox
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QPlainTextEdit
- tst_QPrinter
- ...
| | FALSE | evaluated 149725 times by 47 testsEvaluated by:- tst_QAccessibility
- tst_QButtonGroup
- tst_QColumnView
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QGroupBox
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemView
- ...
|
| 136260-149725 |
| 518 | attributes[j].lineBreak = false;executed 136260 times by 36 tests: attributes[j].lineBreak = false;Executed by:- tst_QAccessibility
- tst_QColumnView
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QGroupBox
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemView
- tst_QLineEdit
- tst_QMessageBox
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QPlainTextEdit
- tst_QPrinter
- ...
| 136260 |
| 519 | | - |
| 520 | case LB::NS::None:code before this statement executed 149725 times by 47 tests: case LB::NS::None:Executed by:- tst_QAccessibility
- tst_QButtonGroup
- tst_QColumnView
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QGroupBox
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemView
- ...
executed 3947996 times by 109 tests: case LB::NS::None:Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
| 149725-3947996 |
| 521 | nelast = LB::NS::XX; | - |
| 522 | break;executed 4097721 times by 111 tests: break;Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
| 4097721 |
| 523 | case LB::NS::Start:executed 371096 times by 80 tests: case LB::NS::Start:Executed by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- ...
| 371096 |
| 524 | nestart = i; | - |
| 525 | | - |
| 526 | default:code before this statement executed 371096 times by 80 tests: default:Executed by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- ...
executed 852683 times by 53 tests: default:Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QGroupBox
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- ...
| 371096-852683 |
| 527 | nelast = necur; | - |
| 528 | break;executed 1223779 times by 80 tests: break;Executed by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- ...
| 1223779 |
| 529 | } | - |
| 530 | } | - |
| 531 | | - |
| 532 | if (Q_UNLIKELY(lcls >= QUnicodeTables::LineBreak_CR)) {| TRUE | evaluated 221114 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 5103348 times by 113 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
|
| 221114-5103348 |
| 533 | | - |
| 534 | if (lcls > QUnicodeTables::LineBreak_CR || ncls != QUnicodeTables::LineBreak_LF)| TRUE | evaluated 220950 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 164 times by 1 test |
| TRUE | evaluated 159 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-220950 |
| 535 | attributes[pos].lineBreak = attributes[pos].mandatoryBreak = true;executed 221109 times by 114 tests: attributes[pos].lineBreak = attributes[pos].mandatoryBreak = true;Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 221109 |
| 536 | goto next;executed 221114 times by 114 tests: goto next;Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 221114 |
| 537 | } | - |
| 538 | | - |
| 539 | if (Q_UNLIKELY(ncls >= QUnicodeTables::LineBreak_SP)) {| TRUE | evaluated 430461 times by 84 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- ...
| | FALSE | evaluated 4672887 times by 113 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
|
| 430461-4672887 |
| 540 | if (ncls > QUnicodeTables::LineBreak_SP)| TRUE | evaluated 9788 times by 14 testsEvaluated by:- tst_QAccessibility
- tst_QComplexText
- tst_QErrorMessage
- tst_QItemDelegate
- tst_QListView
- tst_QPlainTextEdit
- tst_QStackedLayout
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextDocument
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextLayout
- tst_QWizard
| | FALSE | evaluated 420673 times by 84 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- ...
|
| 9788-420673 |
| 541 | goto next; executed 9788 times by 14 tests: goto next;Executed by:- tst_QAccessibility
- tst_QComplexText
- tst_QErrorMessage
- tst_QItemDelegate
- tst_QListView
- tst_QPlainTextEdit
- tst_QStackedLayout
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextDocument
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextLayout
- tst_QWizard
| 9788 |
| 542 | goto next_no_cls_update; executed 420673 times by 84 tests: goto next_no_cls_update;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- ...
| 420673 |
| 543 | } | - |
| 544 | | - |
| 545 | | - |
| 546 | | - |
| 547 | if (Q_UNLIKELY(cls >= QUnicodeTables::LineBreak_SA))| TRUE | evaluated 1350 times by 11 testsEvaluated by:- tst_QDateTimeEdit
- tst_QGraphicsItem
- tst_QInputDialog
- tst_QLabel
- tst_QLineEdit
- tst_QPlainTextEdit
- tst_QSyntaxHighlighter
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextLayout
- tst_QWizard
| | FALSE | evaluated 4671537 times by 113 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
|
| 1350-4671537 |
| 548 | cls = QUnicodeTables::LineBreak_AL;executed 1350 times by 11 tests: cls = QUnicodeTables::LineBreak_AL;Executed by:- tst_QDateTimeEdit
- tst_QGraphicsItem
- tst_QInputDialog
- tst_QLabel
- tst_QLineEdit
- tst_QPlainTextEdit
- tst_QSyntaxHighlighter
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextLayout
- tst_QWizard
| 1350 |
| 549 | | - |
| 550 | switch (LB::breakTable[cls][ncls < QUnicodeTables::LineBreak_SA ? ncls : QUnicodeTables::LineBreak_AL]) { | - |
| 551 | case LB::DirectBreak:executed 84015 times by 43 tests: case LB::DirectBreak:Executed by:- tst_QAccessibility
- tst_QBoxLayout
- tst_QColumnView
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGlyphRun
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QKeySequenceEdit
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- tst_QMdiSubWindow
- tst_QMenuBar
- tst_QMessageBox
- tst_QPlainTextEdit
- ...
| 84015 |
| 552 | attributes[pos].lineBreak = true; | - |
| 553 | break;executed 84015 times by 43 tests: break;Executed by:- tst_QAccessibility
- tst_QBoxLayout
- tst_QColumnView
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGlyphRun
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QKeySequenceEdit
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- tst_QMdiSubWindow
- tst_QMenuBar
- tst_QMessageBox
- tst_QPlainTextEdit
- ...
| 84015 |
| 554 | case LB::IndirectBreak:executed 4276496 times by 112 tests: case LB::IndirectBreak:Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
| 4276496 |
| 555 | if (lcls == QUnicodeTables::LineBreak_SP)| TRUE | evaluated 412659 times by 82 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- ...
| | FALSE | evaluated 3863837 times by 112 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
|
| 412659-3863837 |
| 556 | attributes[pos].lineBreak = true;executed 412659 times by 82 tests: attributes[pos].lineBreak = true;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- ...
| 412659 |
| 557 | break;executed 4276496 times by 112 tests: break;Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
| 4276496 |
| 558 | case LB::CombiningIndirectBreak:executed 2898 times by 4 tests: case LB::CombiningIndirectBreak:Executed by:- tst_QComplexText
- tst_QLabel
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 2898 |
| 559 | if (lcls != QUnicodeTables::LineBreak_SP)| TRUE | evaluated 2894 times by 4 testsEvaluated by:- tst_QComplexText
- tst_QLabel
- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 4 times by 1 test |
| 4-2894 |
| 560 | goto next_no_cls_update;executed 2894 times by 4 tests: goto next_no_cls_update;Executed by:- tst_QComplexText
- tst_QLabel
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 2894 |
| 561 | attributes[pos].lineBreak = true; | - |
| 562 | break;executed 4 times by 1 test: break; | 4 |
| 563 | case LB::CombiningProhibitedBreak:executed 82 times by 1 test: case LB::CombiningProhibitedBreak: | 82 |
| 564 | if (lcls != QUnicodeTables::LineBreak_SP)| TRUE | evaluated 82 times by 1 test | | FALSE | never evaluated |
| 0-82 |
| 565 | goto next_no_cls_update;executed 82 times by 1 test: goto next_no_cls_update; | 82 |
| 566 | break; never executed: break; | 0 |
| 567 | case LB::ProhibitedBreakAfterHebrewPlusHyphen:executed 65315 times by 26 tests: case LB::ProhibitedBreakAfterHebrewPlusHyphen:Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QBoxLayout
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLineEdit
- tst_QMdiArea
- tst_QMenu
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QStackedLayout
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextFormat
- tst_QTextLayout
- tst_QTreeView
- ...
| 65315 |
| 568 | if (lcls != QUnicodeTables::LineBreak_HL)| TRUE | evaluated 65315 times by 26 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QBoxLayout
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLineEdit
- tst_QMdiArea
- tst_QMenu
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QStackedLayout
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextFormat
- tst_QTextLayout
- tst_QTreeView
- ...
| | FALSE | never evaluated |
| 0-65315 |
| 569 | attributes[pos].lineBreak = true;executed 65315 times by 26 tests: attributes[pos].lineBreak = true;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QBoxLayout
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLineEdit
- tst_QMdiArea
- tst_QMenu
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QStackedLayout
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextFormat
- tst_QTextLayout
- tst_QTreeView
- ...
| 65315 |
| 570 | break;executed 65315 times by 26 tests: break;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QBoxLayout
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QInputDialog
- tst_QItemDelegate
- tst_QLineEdit
- tst_QMdiArea
- tst_QMenu
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QStackedLayout
- tst_QTextBoundaryFinder
- tst_QTextCursor
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QTextFormat
- tst_QTextLayout
- tst_QTreeView
- ...
| 65315 |
| 571 | case LB::ProhibitedBreak:executed 244081 times by 56 tests: case LB::ProhibitedBreak:Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QKeySequenceEdit
- tst_QLabel
- ...
| 244081 |
| 572 | | - |
| 573 | default: never executed: default: | 0 |
| 574 | break;executed 244081 times by 56 tests: break;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QColorDialog
- tst_QColumnView
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFormLayout
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsScene
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QKeySequenceEdit
- tst_QLabel
- ...
| 244081 |
| 575 | } | - |
| 576 | | - |
| 577 | next:code before this statement executed 4669911 times by 113 tests: next:Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
| 4669911 |
| 578 | cls = ncls; | - |
| 579 | next_no_cls_update:code before this statement executed 4900813 times by 114 tests: next_no_cls_update:Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 4900813 |
| 580 | lcls = ncls; | - |
| 581 | }executed 5324462 times by 114 tests: end of blockExecuted by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 5324462 |
| 582 | | - |
| 583 | if (Q_UNLIKELY(LB::NS::actionTable[nelast][LB::NS::XX] == LB::NS::Break)) {| TRUE | evaluated 149532 times by 68 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- ...
| | FALSE | evaluated 61867 times by 108 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
|
| 61867-149532 |
| 584 | | - |
| 585 | for (quint32 j = nestart + 1; j < len; ++j)| TRUE | evaluated 716462 times by 44 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- ...
| | FALSE | evaluated 149532 times by 68 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- ...
|
| 149532-716462 |
| 586 | attributes[j].lineBreak = false;executed 716462 times by 44 tests: attributes[j].lineBreak = false;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QComboBox
- tst_QComplexText
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGridLayout
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- tst_QItemModel
- tst_QItemView
- tst_QLineEdit
- tst_QListView
- tst_QListWidget
- tst_QMenu
- ...
| 716462 |
| 587 | }executed 149532 times by 68 tests: end of blockExecuted by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QApplication
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDialog
- tst_QFontMetrics
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- ...
| 149532 |
| 588 | | - |
| 589 | attributes[0].lineBreak = attributes[0].mandatoryBreak = false; | - |
| 590 | attributes[len].lineBreak = attributes[len].mandatoryBreak = true; | - |
| 591 | }executed 211399 times by 114 tests: end of blockExecuted by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 211399 |
| 592 | | - |
| 593 | | - |
| 594 | static void getWhiteSpaces(const ushort *string, quint32 len, QCharAttributes *attributes) | - |
| 595 | { | - |
| 596 | for (quint32 i = 0; i != len; ++i) {| TRUE | evaluated 5304159 times by 113 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 205061 times by 113 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 205061-5304159 |
| 597 | uint ucs4 = string[i]; | - |
| 598 | if (QChar::isHighSurrogate(ucs4) && i + 1 != len) {| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 5304156 times by 113 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| TRUE | evaluated 3 times by 1 test | | FALSE | never evaluated |
| 0-5304156 |
| 599 | ushort low = string[i + 1]; | - |
| 600 | if (QChar::isLowSurrogate(low)) {| TRUE | evaluated 3 times by 1 test | | FALSE | never evaluated |
| 0-3 |
| 601 | ucs4 = QChar::surrogateToUcs4(ucs4, low); | - |
| 602 | ++i; | - |
| 603 | }executed 3 times by 1 test: end of block | 3 |
| 604 | }executed 3 times by 1 test: end of block | 3 |
| 605 | | - |
| 606 | if (Q_UNLIKELY(QChar::isSpace(ucs4)))| TRUE | evaluated 427427 times by 85 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- ...
| | FALSE | evaluated 4876732 times by 113 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 427427-4876732 |
| 607 | attributes[i].whiteSpace = true;executed 427427 times by 85 tests: attributes[i].whiteSpace = true;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDialog
- tst_QFontMetrics
- tst_QFormLayout
- ...
| 427427 |
| 608 | }executed 5304159 times by 113 tests: end of blockExecuted by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 5304159 |
| 609 | }executed 205061 times by 113 tests: end of blockExecuted by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 205061 |
| 610 | | - |
| 611 | | - |
| 612 | Q_CORE_EXPORT void initCharAttributes(const ushort *string, int length, | - |
| 613 | const ScriptItem *items, int numItems, | - |
| 614 | QCharAttributes *attributes, CharAttributeOptions options) | - |
| 615 | { | - |
| 616 | if (length <= 0)| TRUE | evaluated 23 times by 5 testsEvaluated by:- tst_QComboBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QTextCursor
- tst_QTextLayout
| | FALSE | evaluated 213907 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 23-213907 |
| 617 | return;executed 23 times by 5 tests: return;Executed by:- tst_QComboBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QTextCursor
- tst_QTextLayout
| 23 |
| 618 | | - |
| 619 | if (!(options & DontClearAttributes))| TRUE | evaluated 213907 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | never evaluated |
| 0-213907 |
| 620 | ::memset(attributes, 0, (length + 1) * sizeof(QCharAttributes));executed 213907 times by 114 tests: ::memset(attributes, 0, (length + 1) * sizeof(QCharAttributes));Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 213907 |
| 621 | | - |
| 622 | if (options & GraphemeBreaks)| TRUE | evaluated 205495 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 8412 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| 8412-205495 |
| 623 | getGraphemeBreaks(string, length, attributes);executed 205495 times by 114 tests: getGraphemeBreaks(string, length, attributes);Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 205495 |
| 624 | if (options & WordBreaks)| TRUE | evaluated 1553 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 212354 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 1553-212354 |
| 625 | getWordBreaks(string, length, attributes);executed 1553 times by 3 tests: getWordBreaks(string, length, attributes);Executed by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
| 1553 |
| 626 | if (options & SentenceBreaks)| TRUE | evaluated 521 times by 2 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
| | FALSE | evaluated 213386 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 521-213386 |
| 627 | getSentenceBreaks(string, length, attributes);executed 521 times by 2 tests: getSentenceBreaks(string, length, attributes);Executed by:- tst_QAccessibility
- tst_QTextBoundaryFinder
| 521 |
| 628 | if (options & LineBreaks)| TRUE | evaluated 211399 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 2508 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| 2508-211399 |
| 629 | getLineBreaks(string, length, attributes);executed 211399 times by 114 tests: getLineBreaks(string, length, attributes);Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 211399 |
| 630 | if (options & WhiteSpaces)| TRUE | evaluated 205061 times by 113 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 8846 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBoundaryFinder
- tst_QTextLayout
|
| 8846-205061 |
| 631 | getWhiteSpaces(string, length, attributes);executed 205061 times by 113 tests: getWhiteSpaces(string, length, attributes);Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 205061 |
| 632 | | - |
| 633 | if (!qt_initcharattributes_default_algorithm_only) {| TRUE | evaluated 205202 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 8705 times by 1 test |
| 8705-205202 |
| 634 | if (!items || numItems <= 0)| TRUE | never evaluated | | FALSE | evaluated 205202 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| TRUE | never evaluated | | FALSE | evaluated 205202 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 0-205202 |
| 635 | return; never executed: return; | 0 |
| 636 | | - |
| 637 | QVarLengthArray<HB_ScriptItem, 64> scriptItems; | - |
| 638 | scriptItems.reserve(numItems); | - |
| 639 | int start = 0; | - |
| 640 | HB_Script startScript = script_to_hbscript(items[start].script); | - |
| 641 | if (Q_UNLIKELY(startScript == HB_Script_Inherited))| TRUE | never evaluated | | FALSE | evaluated 205202 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 0-205202 |
| 642 | startScript = HB_Script_Common; never executed: startScript = HB_Script_Common; | 0 |
| 643 | for (int i = start + 1; i < numItems; ++i) {| TRUE | evaluated 322387 times by 41 testsEvaluated by:- tst_QAccessibility
- tst_QApplication
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QComplexText
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDatabase
- tst_QFontDialog
- tst_QGlyphRun
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QMenuBar
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QPushButton
- ...
| | FALSE | evaluated 205202 times by 114 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 205202-322387 |
| 644 | HB_Script script = script_to_hbscript(items[i].script); | - |
| 645 | if (Q_LIKELY(script == startScript || script == HB_Script_Inherited))| TRUE | evaluated 321552 times by 39 testsEvaluated by:- tst_QAccessibility
- tst_QApplication
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QComplexText
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QMenuBar
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QPushButton
- tst_QStackedLayout
- tst_QStaticText
- ...
| | FALSE | evaluated 835 times by 8 testsEvaluated by:- tst_QComplexText
- tst_QFontDatabase
- tst_QGlyphRun
- tst_QLabel
- tst_QLineEdit
- tst_QStaticText
- tst_QTextEdit
- tst_QTextLayout
|
| 835-321552 |
| 646 | continue;executed 321552 times by 39 tests: continue;Executed by:- tst_QAccessibility
- tst_QApplication
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QComplexText
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFiledialog
- tst_QFontDialog
- tst_QGraphicsItem
- tst_QGraphicsProxyWidget
- tst_QItemDelegate
- tst_QLabel
- tst_QLineEdit
- tst_QListView
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QMenuBar
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QPushButton
- tst_QStackedLayout
- tst_QStaticText
- ...
| 321552 |
| 647 | Q_ASSERT(items[i].position > items[start].position); | - |
| 648 | HB_ScriptItem item; | - |
| 649 | item.pos = items[start].position; | - |
| 650 | item.length = items[i].position - items[start].position; | - |
| 651 | item.script = startScript; | - |
| 652 | item.bidiLevel = 0; | - |
| 653 | scriptItems.append(item); | - |
| 654 | start = i; | - |
| 655 | startScript = script; | - |
| 656 | }executed 835 times by 8 tests: end of blockExecuted by:- tst_QComplexText
- tst_QFontDatabase
- tst_QGlyphRun
- tst_QLabel
- tst_QLineEdit
- tst_QStaticText
- tst_QTextEdit
- tst_QTextLayout
| 835 |
| 657 | if (items[start].position + 1 < length) {| TRUE | evaluated 179505 times by 112 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
| | FALSE | evaluated 25697 times by 62 testsEvaluated by:- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDoubleSpinBox
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontDatabase
- tst_QFontDialog
- tst_QGlyphRun
- tst_QGraphicsProxyWidget
- tst_QGraphicsView
- tst_QGroupBox
- tst_QHeaderView
- tst_QInputDialog
- tst_QItemDelegate
- ...
|
| 25697-179505 |
| 658 | HB_ScriptItem item; | - |
| 659 | item.pos = items[start].position; | - |
| 660 | item.length = length - items[start].position; | - |
| 661 | item.script = startScript; | - |
| 662 | item.bidiLevel = 0; | - |
| 663 | scriptItems.append(item); | - |
| 664 | }executed 179505 times by 112 tests: end of blockExecuted by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
| 179505 |
| 665 | Q_STATIC_ASSERT(sizeof(QCharAttributes) == sizeof(HB_CharAttributes)); | - |
| 666 | HB_GetTailoredCharAttributes(string, length, | - |
| 667 | scriptItems.constData(), scriptItems.size(), | - |
| 668 | reinterpret_cast<HB_CharAttributes *>(attributes)); | - |
| 669 | }executed 205202 times by 114 tests: end of blockExecuted by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 205202 |
| 670 | }executed 213907 times by 114 tests: end of blockExecuted by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 213907 |
| 671 | | - |
| 672 | | - |
| 673 | | - |
| 674 | | - |
| 675 | | - |
| 676 | | - |
| 677 | | - |
| 678 | | - |
| 679 | Q_CORE_EXPORT void initScripts(const ushort *string, int length, uchar *scripts) | - |
| 680 | { | - |
| 681 | int sor = 0; | - |
| 682 | int eor = -1; | - |
| 683 | uchar script = QChar::Script_Common; | - |
| 684 | for (int i = 0; i < length; ++i) {| TRUE | evaluated 6162126 times by 116 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 254170 times by 116 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 254170-6162126 |
| 685 | eor = i; | - |
| 686 | uint ucs4 = string[i]; | - |
| 687 | if (QChar::isHighSurrogate(ucs4) && i + 1 < length) {| TRUE | evaluated 921 times by 2 testsEvaluated by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 6161205 times by 116 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| TRUE | evaluated 893 times by 2 testsEvaluated by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 28 times by 1 test |
| 28-6161205 |
| 688 | ushort low = string[i + 1]; | - |
| 689 | if (QChar::isLowSurrogate(low)) {| TRUE | evaluated 865 times by 2 testsEvaluated by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| | FALSE | evaluated 28 times by 1 test |
| 28-865 |
| 690 | ucs4 = QChar::surrogateToUcs4(ucs4, low); | - |
| 691 | ++i; | - |
| 692 | }executed 865 times by 2 tests: end of blockExecuted by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| 865 |
| 693 | }executed 893 times by 2 tests: end of blockExecuted by:- tst_QTextBoundaryFinder
- tst_QTextLayout
| 893 |
| 694 | | - |
| 695 | const QUnicodeTables::Properties *prop = QUnicodeTables::properties(ucs4); | - |
| 696 | | - |
| 697 | if (Q_LIKELY(prop->script == script || prop->script <= QChar::Script_Inherited))| TRUE | evaluated 4996457 times by 116 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 1165669 times by 112 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
|
| 1165669-4996457 |
| 698 | continue;executed 4996457 times by 116 tests: continue;Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 4996457 |
| 699 | | - |
| 700 | | - |
| 701 | | - |
| 702 | | - |
| 703 | static const int test = (FLAG(QChar::Mark_NonSpacing) | FLAG(QChar::Mark_SpacingCombining) | FLAG(QChar::Mark_Enclosing)); | - |
| 704 | if (Q_UNLIKELY(FLAG(prop->category) & test)) {| TRUE | evaluated 54 times by 1 test | | FALSE | evaluated 1165615 times by 112 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
|
| 54-1165615 |
| 705 | | - |
| 706 | | - |
| 707 | | - |
| 708 | | - |
| 709 | | - |
| 710 | | - |
| 711 | | - |
| 712 | if (Q_LIKELY(script > QChar::Script_Common || prop->script <= QChar::Script_Common))| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 44 times by 1 test |
| 10-44 |
| 713 | continue;executed 10 times by 1 test: continue; | 10 |
| 714 | | - |
| 715 | script = QChar::Script(prop->script); | - |
| 716 | }executed 44 times by 1 test: end of block | 44 |
| 717 | | - |
| 718 | #if 0 // ### Disabled due to regressions. The font selection algorithm is not prepared for this change. | - |
| 719 | if (Q_LIKELY(script != QChar::Script_Common)) { | - |
| 720 | | - |
| 721 | while (sor > 0 && scripts[sor - 1] == QChar::Script_Common) | - |
| 722 | --sor; | - |
| 723 | } else { | - |
| 724 | | - |
| 725 | if (sor > 0) | - |
| 726 | script = scripts[sor - 1]; | - |
| 727 | } | - |
| 728 | #endif | - |
| 729 | | - |
| 730 | while (sor < eor)| TRUE | evaluated 3081734 times by 92 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- ...
| | FALSE | evaluated 1165659 times by 112 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
|
| 1165659-3081734 |
| 731 | scripts[sor++] = script;executed 3081734 times by 92 tests: scripts[sor++] = script;Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QFontComboBox
- tst_QFontDatabase
- tst_QFontDialog
- tst_QFontMetrics
- ...
| 3081734 |
| 732 | | - |
| 733 | script = prop->script; | - |
| 734 | }executed 1165659 times by 112 tests: end of blockExecuted by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- tst_QFiledialog
- ...
| 1165659 |
| 735 | eor = length; | - |
| 736 | | - |
| 737 | #if 0 // ### Disabled due to regressions. The font selection algorithm is not prepared for this change. | - |
| 738 | if (Q_LIKELY(script != QChar::Script_Common)) { | - |
| 739 | | - |
| 740 | while (sor > 0 && scripts[sor - 1] == QChar::Script_Common) | - |
| 741 | --sor; | - |
| 742 | } else { | - |
| 743 | | - |
| 744 | if (sor > 0) | - |
| 745 | script = scripts[sor - 1]; | - |
| 746 | } | - |
| 747 | #endif | - |
| 748 | | - |
| 749 | while (sor < eor)| TRUE | evaluated 3081257 times by 116 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| | FALSE | evaluated 254170 times by 116 testsEvaluated by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
|
| 254170-3081257 |
| 750 | scripts[sor++] = script;executed 3081257 times by 116 tests: scripts[sor++] = script;Executed by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 3081257 |
| 751 | }executed 254170 times by 116 tests: end of blockExecuted by:- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QApplication
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QComplexText
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDialog
- tst_QDialogButtonBox
- tst_QDockWidget
- tst_QDoubleSpinBox
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileSystemModel
- ...
| 254170 |
| 752 | | - |
| 753 | } | - |
| 754 | | - |
| 755 | QT_END_NAMESPACE | - |
| | |