| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | namespace { namespace Q_QGS_qtLoggingRegistry { typedef QLoggingRegistry Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized| TRUE | evaluated 992 times by 430 testsEvaluated by:- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_largefile - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- tst_qactiongroup - unknown status
- tst_qanimationgroup - unknown status
- ...
| | FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 992 times by 430 tests: guard.store(QtGlobalStatic::Destroyed);Executed by:- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_largefile - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- tst_qactiongroup - unknown status
- tst_qanimationgroup - unknown status
- ...
}executed 992 times by 430 tests: end of blockExecuted by:- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_largefile - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- tst_qactiongroup - unknown status
- tst_qanimationgroup - unknown status
- ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 244159 times by 547 tests: return &holder.value;Executed by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
&holder.value;executed 244159 times by 547 tests: return &holder.value;Executed by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
} } } static QGlobalStatic<QLoggingRegistry, Q_QGS_qtLoggingRegistry::innerFunction, Q_QGS_qtLoggingRegistry::guard> qtLoggingRegistry; | 0-244159 |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | QLoggingRule::QLoggingRule() : | - |
| 18 | enabled(false) | - |
| 19 | { | - |
| 20 | } never executed: end of block | 0 |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | QLoggingRule::QLoggingRule(const QStringRef &pattern, bool enabled) : | - |
| 27 | messageType(-1), | - |
| 28 | enabled(enabled) | - |
| 29 | { | - |
| 30 | parse(pattern); | - |
| 31 | }executed 24116 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
| 24116 |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | | - |
| 37 | | - |
| 38 | int QLoggingRule::pass(const QString &cat, QtMsgType msgType) const | - |
| 39 | { | - |
| 40 | | - |
| 41 | if (messageType > -1| TRUE | evaluated 516 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 865359 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
&& messageType != msgType| TRUE | evaluated 384 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 132 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) | 132-865359 |
| 42 | returnexecuted 384 times by 2 tests: return 0;Executed by:- tst_QLogging
- tst_QLoggingRegistry
0;executed 384 times by 2 tests: return 0;Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 384 |
| 43 | | - |
| 44 | if (flags == FullText| TRUE | evaluated 1050 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 864441 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) { | 1050-864441 |
| 45 | | - |
| 46 | if (category == cat| TRUE | evaluated 127 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 923 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) | 127-923 |
| 47 | returnexecuted 127 times by 2 tests: return (enabled ? 1 : -1);Executed by:- tst_QLogging
- tst_QLoggingRegistry
(enabled| TRUE | evaluated 44 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 83 times by 1 test |
? 1 : -1);executed 127 times by 2 tests: return (enabled ? 1 : -1);Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 44-127 |
| 48 | else | - |
| 49 | returnexecuted 923 times by 2 tests: return 0;Executed by:- tst_QLogging
- tst_QLoggingRegistry
0;executed 923 times by 2 tests: return 0;Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 923 |
| 50 | } | - |
| 51 | | - |
| 52 | const int idx = cat.indexOf(category); | - |
| 53 | if (idx >= 0| TRUE | evaluated 288174 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 576267 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) { | 288174-576267 |
| 54 | if (flags == MidFilter| TRUE | evaluated 75 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 288099 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) { | 75-288099 |
| 55 | | - |
| 56 | if (idx >= 0| TRUE | evaluated 75 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | never evaluated |
) | 0-75 |
| 57 | returnexecuted 75 times by 2 tests: return (enabled ? 1 : -1);Executed by:- tst_QLogging
- tst_QLoggingRegistry
(enabled| TRUE | evaluated 27 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 48 times by 1 test |
? 1 : -1);executed 75 times by 2 tests: return (enabled ? 1 : -1);Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 27-75 |
| 58 | } never executed: end of block else if (flags == LeftFilter| TRUE | evaluated 288081 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 18 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) { | 0-288081 |
| 59 | | - |
| 60 | if (idx == 0| TRUE | evaluated 288081 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | never evaluated |
) | 0-288081 |
| 61 | returnexecuted 288081 times by 2 tests: return (enabled ? 1 : -1);Executed by:- tst_QLogging
- tst_QLoggingRegistry
(enabled| TRUE | evaluated 144041 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 144040 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
? 1 : -1);executed 288081 times by 2 tests: return (enabled ? 1 : -1);Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 144040-288081 |
| 62 | } never executed: end of block else if (flags == RightFilter| TRUE | evaluated 18 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | never evaluated |
) { | 0-18 |
| 63 | | - |
| 64 | if (idx == (cat.count() - category.count())| TRUE | evaluated 16 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 2 times by 1 test |
) | 2-16 |
| 65 | returnexecuted 16 times by 2 tests: return (enabled ? 1 : -1);Executed by:- tst_QLogging
- tst_QLoggingRegistry
(enabled| TRUE | evaluated 7 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 9 times by 1 test |
? 1 : -1);executed 16 times by 2 tests: return (enabled ? 1 : -1);Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 7-16 |
| 66 | }executed 2 times by 1 test: end of block | 2 |
| 67 | }executed 2 times by 1 test: end of block | 2 |
| 68 | returnexecuted 576269 times by 2 tests: return 0;Executed by:- tst_QLogging
- tst_QLoggingRegistry
0;executed 576269 times by 2 tests: return 0;Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 576269 |
| 69 | } | - |
| 70 | void QLoggingRule::parse(const QStringRef &pattern) | - |
| 71 | { | - |
| 72 | QStringRef p; | - |
| 73 | | - |
| 74 | | - |
| 75 | if (pattern.endsWith(QLatin1String(".debug"))| TRUE | evaluated 14 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 24102 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) { | 14-24102 |
| 76 | p = QStringRef(pattern.string(), pattern.position(), | - |
| 77 | pattern.length() - 6); | - |
| 78 | messageType = QtDebugMsg; | - |
| 79 | }executed 14 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
else if (pattern.endsWith(QLatin1String(".info"))| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 24098 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) { | 4-24098 |
| 80 | p = QStringRef(pattern.string(), pattern.position(), | - |
| 81 | pattern.length() - 5); | - |
| 82 | messageType = QtInfoMsg; | - |
| 83 | }executed 4 times by 1 test: end of block else if (pattern.endsWith(QLatin1String(".warning"))| TRUE | evaluated 9 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 24089 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) { | 4-24089 |
| 84 | p = QStringRef(pattern.string(), pattern.position(), | - |
| 85 | pattern.length() - 8); | - |
| 86 | messageType = QtWarningMsg; | - |
| 87 | }executed 9 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
else if (pattern.endsWith(QLatin1String(".critical"))| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 24085 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) { | 4-24085 |
| 88 | p = QStringRef(pattern.string(), pattern.position(), | - |
| 89 | pattern.length() - 9); | - |
| 90 | messageType = QtCriticalMsg; | - |
| 91 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
else { | 4 |
| 92 | p = pattern; | - |
| 93 | }executed 24085 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
| 24085 |
| 94 | | - |
| 95 | if (!p.contains(QLatin1Char('*'))| TRUE | evaluated 63 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 24053 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) { | 63-24053 |
| 96 | flags = FullText; | - |
| 97 | }executed 63 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
else { | 63 |
| 98 | if (p.endsWith(QLatin1Char('*'))| TRUE | evaluated 24040 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 13 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) { | 13-24040 |
| 99 | flags |= LeftFilter; | - |
| 100 | p = QStringRef(p.string(), p.position(), p.length() - 1); | - |
| 101 | }executed 24040 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
| 24040 |
| 102 | if (p.startsWith(QLatin1Char('*'))| TRUE | evaluated 25 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 24028 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) { | 25-24028 |
| 103 | flags |= RightFilter; | - |
| 104 | p = QStringRef(p.string(), p.position() + 1, p.length() - 1); | - |
| 105 | }executed 25 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
| 25 |
| 106 | if (p.contains(QLatin1Char('*'))| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 24050 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) | 3-24050 |
| 107 | flags = 0;executed 3 times by 1 test: flags = 0; | 3 |
| 108 | }executed 24053 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
| 24053 |
| 109 | | - |
| 110 | category = p.toString(); | - |
| 111 | }executed 24116 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
| 24116 |
| 112 | void QLoggingSettingsParser::setContent(const QString &content) | - |
| 113 | { | - |
| 114 | QString content_ = content; | - |
| 115 | QTextStream stream(&content_, QIODevice::ReadOnly); | - |
| 116 | setContent(stream); | - |
| 117 | }executed 24025 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
| 24025 |
| 118 | | - |
| 119 | | - |
| 120 | | - |
| 121 | | - |
| 122 | | - |
| 123 | void QLoggingSettingsParser::setContent(QTextStream &stream) | - |
| 124 | { | - |
| 125 | _rules.clear(); | - |
| 126 | while (!stream.atEnd()| TRUE | evaluated 24089 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 24031 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) { | 24031-24089 |
| 127 | QString line = stream.readLine(); | - |
| 128 | | - |
| 129 | | - |
| 130 | line = line.simplified(); | - |
| 131 | line.remove(QLatin1Char(' ')); | - |
| 132 | | - |
| 133 | | - |
| 134 | if (line.startsWith(QLatin1Char(';'))| TRUE | never evaluated | | FALSE | evaluated 24089 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) | 0-24089 |
| 135 | continue; never executed: continue; | 0 |
| 136 | | - |
| 137 | if (line.startsWith(QLatin1Char('['))| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 24080 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
&& line.endsWith(QLatin1Char(']'))| TRUE | evaluated 9 times by 1 test | | FALSE | never evaluated |
) { | 0-24080 |
| 138 | | - |
| 139 | _section = line.mid(1, line.size() - 2); | - |
| 140 | continue;executed 9 times by 1 test: continue; | 9 |
| 141 | } | - |
| 142 | | - |
| 143 | if (_section.toLower() == QLatin1String("rules")| TRUE | evaluated 24079 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 1 time by 1 test |
) { | 1-24079 |
| 144 | int equalPos = line.indexOf(QLatin1Char('=')); | - |
| 145 | if (equalPos != -1| TRUE | evaluated 24079 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | never evaluated |
) { | 0-24079 |
| 146 | if (line.lastIndexOf(QLatin1Char('=')) == equalPos| TRUE | evaluated 24079 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | never evaluated |
) { | 0-24079 |
| 147 | const QStringRef pattern = line.leftRef(equalPos); | - |
| 148 | const QStringRef valueStr = line.midRef(equalPos + 1); | - |
| 149 | int value = -1; | - |
| 150 | if (valueStr == QLatin1String("true")| TRUE | evaluated 12029 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 12050 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) | 12029-12050 |
| 151 | value = 1;executed 12029 times by 2 tests: value = 1;Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 12029 |
| 152 | else if (valueStr == QLatin1String("false")| TRUE | evaluated 12041 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 9 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) | 9-12041 |
| 153 | value = 0;executed 12041 times by 2 tests: value = 0;Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 12041 |
| 154 | QLoggingRule rule(pattern, (value == 1)); | - |
| 155 | if (rule.flags != 0| TRUE | evaluated 24078 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 1 time by 1 test |
&& (| TRUE | evaluated 24069 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 9 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
value != -1)| TRUE | evaluated 24069 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 9 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) | 1-24078 |
| 156 | _rules.append(rule);executed 24069 times by 2 tests: _rules.append(rule);Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 24069 |
| 157 | else | - |
| 158 | QMessageLogger(__FILE__, 227, __FUNCTION__, "qt.core.logging").warning("Ignoring malformed logging rule: '%s'", line.toUtf8().constData());executed 10 times by 2 tests: QMessageLogger(__FILE__, 227, __FUNCTION__, "qt.core.logging").warning("Ignoring malformed logging rule: '%s'", line.toUtf8().constData());Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 10 |
| 159 | } else { | - |
| 160 | QMessageLogger(__FILE__, 229, __FUNCTION__, "qt.core.logging").warning("Ignoring malformed logging rule: '%s'", line.toUtf8().constData()); | - |
| 161 | } never executed: end of block | 0 |
| 162 | } | - |
| 163 | }executed 24079 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
| 24079 |
| 164 | }executed 24080 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
| 24080 |
| 165 | }executed 24031 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
| 24031 |
| 166 | | - |
| 167 | | - |
| 168 | | - |
| 169 | | - |
| 170 | | - |
| 171 | QLoggingRegistry::QLoggingRegistry() | - |
| 172 | : categoryFilter(defaultCategoryFilter) | - |
| 173 | { | - |
| 174 | }executed 672 times by 33 tests: end of blockExecuted by:- tst_LargeFile
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDate
- tst_QDateTime
- tst_QDnsLookup_Appless
- tst_QGlobal
- tst_QGuiApplication
- tst_QLoggingRegistry
- tst_QNetworkConfigurationManager
- tst_QPainterPath
- tst_QRegularExpression_AlwaysOptimize
- tst_QRegularExpression_DefaultOptimize
- tst_QRegularExpression_ForceOptimize
- tst_QSql
- tst_QString
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- ...
| 672 |
| 175 | | - |
| 176 | static bool qtLoggingDebug() | - |
| 177 | { | - |
| 178 | static const bool debugEnv = qEnvironmentVariableIsSet("QT_LOGGING_DEBUG"); | - |
| 179 | returnexecuted 24023 times by 2 tests: return debugEnv;Executed by:- tst_QLogging
- tst_QLoggingRegistry
debugEnv;executed 24023 times by 2 tests: return debugEnv;Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 24023 |
| 180 | } | - |
| 181 | | - |
| 182 | static QVector<QLoggingRule> loadRulesFromFile(const QString &filePath) | - |
| 183 | { | - |
| 184 | QFile file(filePath); | - |
| 185 | if (file.open(QIODevice::ReadOnly | QIODevice::Text)| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 870 times by 23 testsEvaluated by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QGlobal
- tst_QGuiApplication
- tst_QLoggingRegistry
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmarshall - unknown status
- tst_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
|
) { | 4-870 |
| 186 | if (qtLoggingDebug()| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
) | 0-4 |
| 187 | QMessageLogger(__FILE__, 256, __FUNCTION__, "qt.core.logging").debug("Loading \"%s\" ...", never executed: QMessageLogger(__FILE__, 256, __FUNCTION__, "qt.core.logging").debug("Loading \"%s\" ...", QDir::toNativeSeparators(file.fileName()).toUtf8().constData()); | 0 |
| 188 | QDir::toNativeSeparators(file.fileName()).toUtf8().constData()); never executed: QMessageLogger(__FILE__, 256, __FUNCTION__, "qt.core.logging").debug("Loading \"%s\" ...", QDir::toNativeSeparators(file.fileName()).toUtf8().constData()); | 0 |
| 189 | QTextStream stream(&file); | - |
| 190 | QLoggingSettingsParser parser; | - |
| 191 | parser.setContent(stream); | - |
| 192 | returnexecuted 4 times by 1 test: return parser.rules(); parser.rules();executed 4 times by 1 test: return parser.rules(); | 4 |
| 193 | } | - |
| 194 | returnexecuted 870 times by 23 tests: return QVector<QLoggingRule>();Executed by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QGlobal
- tst_QGuiApplication
- tst_QLoggingRegistry
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmarshall - unknown status
- tst_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
QVector<QLoggingRule>();executed 870 times by 23 tests: return QVector<QLoggingRule>();Executed by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QGlobal
- tst_QGuiApplication
- tst_QLoggingRegistry
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmarshall - unknown status
- tst_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
| 870 |
| 195 | } | - |
| 196 | | - |
| 197 | | - |
| 198 | | - |
| 199 | | - |
| 200 | | - |
| 201 | | - |
| 202 | void QLoggingRegistry::init() | - |
| 203 | { | - |
| 204 | QVector<QLoggingRule> er, qr, cr; | - |
| 205 | | - |
| 206 | const QByteArray rulesFilePath = qgetenv("QT_LOGGING_CONF"); | - |
| 207 | if (!rulesFilePath.isEmpty()| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 868 times by 22 testsEvaluated by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QGlobal
- tst_QGuiApplication
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmarshall - unknown status
- tst_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
|
) | 3-868 |
| 208 | er = loadRulesFromFile(QFile::decodeName(rulesFilePath));executed 3 times by 1 test: er = loadRulesFromFile(QFile::decodeName(rulesFilePath)); | 3 |
| 209 | | - |
| 210 | const QByteArray rulesSrc = qgetenv("QT_LOGGING_RULES").replace(';', '\n'); | - |
| 211 | if (!rulesSrc.isEmpty()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 869 times by 23 testsEvaluated by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QGlobal
- tst_QGuiApplication
- tst_QLoggingRegistry
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmarshall - unknown status
- tst_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
|
) { | 2-869 |
| 212 | QTextStream stream(rulesSrc); | - |
| 213 | QLoggingSettingsParser parser; | - |
| 214 | parser.setSection(([]() -> QString { enum { Size = sizeof(u"" "Rules")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Rules" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 2 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 2 times by 1 test: return qstring_literal_temp; }())); | 2 |
| 215 | parser.setContent(stream); | - |
| 216 | er += parser.rules(); | - |
| 217 | }executed 2 times by 1 test: end of block | 2 |
| 218 | | - |
| 219 | const QString configFileName = ([]() -> QString { enum { Size = sizeof(u"" "qtlogging.ini")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "qtlogging.ini" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 871 times by 23 tests: return qstring_literal_temp;Executed by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QGlobal
- tst_QGuiApplication
- tst_QLoggingRegistry
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmarshall - unknown status
- tst_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
qstring_literal_temp;executed 871 times by 23 tests: return qstring_literal_temp;Executed by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QGlobal
- tst_QGuiApplication
- tst_QLoggingRegistry
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmarshall - unknown status
- tst_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
}()); | 871 |
| 220 | | - |
| 221 | | - |
| 222 | | - |
| 223 | const QString qtConfigPath | - |
| 224 | = QDir(QLibraryInfo::location(QLibraryInfo::DataPath)).absoluteFilePath(configFileName); | - |
| 225 | qr = loadRulesFromFile(qtConfigPath); | - |
| 226 | | - |
| 227 | | - |
| 228 | | - |
| 229 | const QString envPath = QStandardPaths::locate(QStandardPaths::GenericConfigLocation, | - |
| 230 | QString::fromLatin1("QtProject/") + configFileName); | - |
| 231 | if (!envPath.isEmpty()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 869 times by 23 testsEvaluated by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QGlobal
- tst_QGuiApplication
- tst_QLoggingRegistry
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmarshall - unknown status
- tst_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
|
) | 1-869 |
| 232 | cr = loadRulesFromFile(envPath);executed 1 time by 1 test: cr = loadRulesFromFile(envPath); | 1 |
| 233 | | - |
| 234 | const QMutexLocker locker(®istryMutex); | - |
| 235 | | - |
| 236 | envRules = std::move(er); | - |
| 237 | qtConfigRules = std::move(qr); | - |
| 238 | configRules = std::move(cr); | - |
| 239 | | - |
| 240 | if (!envRules.isEmpty()| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 867 times by 22 testsEvaluated by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QGlobal
- tst_QGuiApplication
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmarshall - unknown status
- tst_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
|
|| !qtConfigRules.isEmpty()| TRUE | never evaluated | | FALSE | evaluated 867 times by 22 testsEvaluated by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QGlobal
- tst_QGuiApplication
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmarshall - unknown status
- tst_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
|
|| !configRules.isEmpty()| TRUE | never evaluated | | FALSE | evaluated 867 times by 22 testsEvaluated by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QGlobal
- tst_QGuiApplication
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmarshall - unknown status
- tst_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
|
) { | 0-867 |
| 241 | updateRules(); | - |
| 242 | }executed 3 times by 1 test: end of block | 3 |
| 243 | }executed 870 times by 23 tests: end of blockExecuted by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QGlobal
- tst_QGuiApplication
- tst_QLoggingRegistry
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_qapplication - unknown status
- tst_qdbusabstractadaptor - unknown status
- tst_qdbusabstractinterface - unknown status
- tst_qdbusinterface - unknown status
- tst_qdbusmarshall - unknown status
- tst_qlogging - unknown status
- tst_qobject - unknown status
- tst_qprocess - unknown status
- tst_qsharedmemory - unknown status
- tst_qsystemsemaphore - unknown status
- tst_selftests - unknown status
| 870 |
| 244 | | - |
| 245 | | - |
| 246 | | - |
| 247 | | - |
| 248 | | - |
| 249 | | - |
| 250 | | - |
| 251 | void QLoggingRegistry::registerCategory(QLoggingCategory *cat, QtMsgType enableForLevel) | - |
| 252 | { | - |
| 253 | QMutexLocker locker(®istryMutex); | - |
| 254 | | - |
| 255 | if (!categories.contains(cat)| TRUE | evaluated 846 times by 243 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
| | FALSE | never evaluated |
) { | 0-846 |
| 256 | categories.insert(cat, enableForLevel); | - |
| 257 | (*categoryFilter)(cat); | - |
| 258 | }executed 846 times by 243 tests: end of blockExecuted by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
| 846 |
| 259 | }executed 846 times by 243 tests: end of blockExecuted by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
| 846 |
| 260 | | - |
| 261 | | - |
| 262 | | - |
| 263 | | - |
| 264 | | - |
| 265 | void QLoggingRegistry::unregisterCategory(QLoggingCategory *cat) | - |
| 266 | { | - |
| 267 | QMutexLocker locker(®istryMutex); | - |
| 268 | categories.remove(cat); | - |
| 269 | }executed 1425 times by 307 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
- tst_QNoDebug
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_largefile - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- tst_qactiongroup - unknown status
- tst_qanimationgroup - unknown status
- tst_qapplication - unknown status
- ...
| 1425 |
| 270 | | - |
| 271 | | - |
| 272 | | - |
| 273 | | - |
| 274 | | - |
| 275 | void QLoggingRegistry::setApiRules(const QString &content) | - |
| 276 | { | - |
| 277 | QLoggingSettingsParser parser; | - |
| 278 | parser.setSection(([]() -> QString { enum { Size = sizeof(u"" "Rules")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Rules" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 24019 times by 2 tests: return qstring_literal_temp;Executed by:- tst_QLogging
- tst_QLoggingRegistry
qstring_literal_temp;executed 24019 times by 2 tests: return qstring_literal_temp;Executed by:- tst_QLogging
- tst_QLoggingRegistry
}())); | 24019 |
| 279 | parser.setContent(content); | - |
| 280 | | - |
| 281 | if (qtLoggingDebug()| TRUE | never evaluated | | FALSE | evaluated 24019 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
|
) | 0-24019 |
| 282 | QMessageLogger(__FILE__, 351, __FUNCTION__, "qt.core.logging").debug("Loading logging rules set by QLoggingCategory::setFilterRules ..."); never executed: QMessageLogger(__FILE__, 351, __FUNCTION__, "qt.core.logging").debug("Loading logging rules set by QLoggingCategory::setFilterRules ..."); | 0 |
| 283 | | - |
| 284 | const QMutexLocker locker(®istryMutex); | - |
| 285 | | - |
| 286 | apiRules = parser.rules(); | - |
| 287 | | - |
| 288 | updateRules(); | - |
| 289 | }executed 24019 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
| 24019 |
| 290 | | - |
| 291 | | - |
| 292 | | - |
| 293 | | - |
| 294 | | - |
| 295 | | - |
| 296 | | - |
| 297 | void QLoggingRegistry::updateRules() | - |
| 298 | { | - |
| 299 | rules = qtConfigRules + configRules + apiRules + envRules; | - |
| 300 | | - |
| 301 | for (QForeachContainer<typename QtPrivate::remove_reference<decltype(categories.keys())>::type> _container_((categories.keys())); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (QLoggingCategory *cat = *_container_.i; _container_.control; _container_.control = 0) | - |
| 302 | (*executed 216136 times by 2 tests: (*categoryFilter)(cat);Executed by:- tst_QLogging
- tst_QLoggingRegistry
categoryFilter)(cat);executed 216136 times by 2 tests: (*categoryFilter)(cat);Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 216136 |
| 303 | }executed 24025 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
| 24025 |
| 304 | | - |
| 305 | | - |
| 306 | | - |
| 307 | | - |
| 308 | | - |
| 309 | QLoggingCategory::CategoryFilter | - |
| 310 | QLoggingRegistry::installFilter(QLoggingCategory::CategoryFilter filter) | - |
| 311 | { | - |
| 312 | QMutexLocker locker(®istryMutex); | - |
| 313 | | - |
| 314 | if (filter == 0| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 4 times by 1 test |
) | 3-4 |
| 315 | filter = defaultCategoryFilter;executed 3 times by 1 test: filter = defaultCategoryFilter; | 3 |
| 316 | | - |
| 317 | QLoggingCategory::CategoryFilter old = categoryFilter; | - |
| 318 | categoryFilter = filter; | - |
| 319 | | - |
| 320 | for (QForeachContainer<typename QtPrivate::remove_reference<decltype(categories.keys())>::type> _container_((categories.keys())); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (QLoggingCategory *cat = *_container_.i; _container_.control; _container_.control = 0) | - |
| 321 | (*executed 22 times by 1 test: (*categoryFilter)(cat); categoryFilter)(cat);executed 22 times by 1 test: (*categoryFilter)(cat); | 22 |
| 322 | | - |
| 323 | returnexecuted 7 times by 1 test: return old; old;executed 7 times by 1 test: return old; | 7 |
| 324 | } | - |
| 325 | | - |
| 326 | QLoggingRegistry *QLoggingRegistry::instance() | - |
| 327 | { | - |
| 328 | returnexecuted 244159 times by 547 tests: return qtLoggingRegistry();Executed by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
qtLoggingRegistry();executed 244159 times by 547 tests: return qtLoggingRegistry();Executed by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
| 244159 |
| 329 | } | - |
| 330 | | - |
| 331 | | - |
| 332 | | - |
| 333 | | - |
| 334 | | - |
| 335 | | - |
| 336 | | - |
| 337 | void QLoggingRegistry::defaultCategoryFilter(QLoggingCategory *cat) | - |
| 338 | { | - |
| 339 | QLoggingRegistry *reg = QLoggingRegistry::instance(); | - |
| 340 | ((!(reg->categories.contains(cat))) ? qt_assert("reg->categories.contains(cat)",__FILE__,409) : qt_noop()); | - |
| 341 | QtMsgType enableForLevel = reg->categories.value(cat); | - |
| 342 | | - |
| 343 | | - |
| 344 | | - |
| 345 | bool debug = (enableForLevel == QtDebugMsg); | - |
| 346 | bool info = debug| TRUE | evaluated 168952 times by 243 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
| | FALSE | evaluated 48041 times by 1 test |
|| (| TRUE | evaluated 24020 times by 1 test | | FALSE | evaluated 24021 times by 1 test |
enableForLevel == QtInfoMsg)| TRUE | evaluated 24020 times by 1 test | | FALSE | evaluated 24021 times by 1 test |
; | 24020-168952 |
| 347 | bool warning = info| TRUE | evaluated 192972 times by 243 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
| | FALSE | evaluated 24021 times by 1 test |
|| (| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 24020 times by 1 test |
enableForLevel == QtWarningMsg)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 24020 times by 1 test |
; | 1-192972 |
| 348 | bool critical = warning| TRUE | evaluated 192973 times by 243 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
| | FALSE | evaluated 24020 times by 1 test |
|| (| TRUE | never evaluated | | FALSE | evaluated 24020 times by 1 test |
enableForLevel == QtCriticalMsg)| TRUE | never evaluated | | FALSE | evaluated 24020 times by 1 test |
; | 0-192973 |
| 349 | | - |
| 350 | | - |
| 351 | | - |
| 352 | | - |
| 353 | if (const| TRUE | evaluated 216993 times by 243 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
| | FALSE | never evaluated |
char *categoryName = cat->categoryName()| TRUE | evaluated 216993 times by 243 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
| | FALSE | never evaluated |
) { | 0-216993 |
| 354 | | - |
| 355 | if (strcmp(categoryName, "qt") == 0| TRUE | never evaluated | | FALSE | evaluated 216993 times by 243 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
|
|| strncmp(categoryName, "qt.", 3) == 0| TRUE | evaluated 360 times by 137 testsEvaluated by:- tst_Gestures
- tst_ModelTest
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- ...
| | FALSE | evaluated 216633 times by 160 testsEvaluated by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractItemView
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QByteArray
- tst_QColor
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLineParser
- tst_QCompleter
- tst_QDBusInterface
- tst_QDBusLocalCalls
- tst_QDBusMarshall
- tst_QDBusMetaType
- ...
|
) | 0-216993 |
| 356 | debug = false;executed 360 times by 137 tests: debug = false;Executed by:- tst_Gestures
- tst_ModelTest
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QApplication
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDataWidgetMapper
- tst_QDateTimeEdit
- tst_QDesktopWidget
- tst_QDial
- ...
| 360 |
| 357 | }executed 216993 times by 243 tests: end of blockExecuted by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
| 216993 |
| 358 | | - |
| 359 | QString categoryName = QLatin1String(cat->categoryName()); | - |
| 360 | for (QForeachContainer<typename QtPrivate::remove_reference<decltype(reg->rules)>::type> _container_((reg->rules)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QLoggingRule &item = *_container_.i; _container_.control; _container_.control = 0) { | - |
| 361 | int filterpass = item.pass(categoryName, QtDebugMsg); | - |
| 362 | if (filterpass != 0| TRUE | evaluated 72079 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 144381 times by 1 test |
) | 72079-144381 |
| 363 | debug = (filterpass > 0);executed 72079 times by 2 tests: debug = (filterpass > 0);Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 72079 |
| 364 | filterpass = item.pass(categoryName, QtInfoMsg); | - |
| 365 | if (filterpass != 0| TRUE | evaluated 72067 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 144393 times by 1 test |
) | 72067-144393 |
| 366 | info = (filterpass > 0);executed 72067 times by 2 tests: info = (filterpass > 0);Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 72067 |
| 367 | filterpass = item.pass(categoryName, QtWarningMsg); | - |
| 368 | if (filterpass != 0| TRUE | evaluated 72067 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 144393 times by 1 test |
) | 72067-144393 |
| 369 | warning = (filterpass > 0);executed 72067 times by 2 tests: warning = (filterpass > 0);Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 72067 |
| 370 | filterpass = item.pass(categoryName, QtCriticalMsg); | - |
| 371 | if (filterpass != 0| TRUE | evaluated 72066 times by 2 testsEvaluated by:- tst_QLogging
- tst_QLoggingRegistry
| | FALSE | evaluated 144394 times by 1 test |
) | 72066-144394 |
| 372 | critical = (filterpass > 0);executed 72066 times by 2 tests: critical = (filterpass > 0);Executed by:- tst_QLogging
- tst_QLoggingRegistry
| 72066 |
| 373 | }executed 216460 times by 2 tests: end of blockExecuted by:- tst_QLogging
- tst_QLoggingRegistry
| 216460 |
| 374 | | - |
| 375 | cat->setEnabled(QtDebugMsg, debug); | - |
| 376 | cat->setEnabled(QtInfoMsg, info); | - |
| 377 | cat->setEnabled(QtWarningMsg, warning); | - |
| 378 | cat->setEnabled(QtCriticalMsg, critical); | - |
| 379 | }executed 216993 times by 243 tests: end of blockExecuted by:- tst_Compiler
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractButton
- tst_QAbstractItemView
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAnimationGroup
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QBackingStore
- tst_QBoxLayout
- tst_QBrush
- tst_QBuffer
- tst_QButtonGroup
- tst_QByteArray
- tst_QCalendarWidget
- ...
| 216993 |
| 380 | | - |
| 381 | | - |
| 382 | | - |
| | |