Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | struct QConfFileCustomFormat | - |
18 | { | - |
19 | QString extension; | - |
20 | QSettings::ReadFunc readFunc; | - |
21 | QSettings::WriteFunc writeFunc; | - |
22 | Qt::CaseSensitivity caseSensitivity; | - |
23 | }; | - |
24 | template<> class QTypeInfo<QConfFileCustomFormat > { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QConfFileCustomFormat)>sizeof(void*)), isPointer = false, isIntegral = QtPrivate::is_integral< QConfFileCustomFormat >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QConfFileCustomFormat) }; static inline const char *name() { return "QConfFileCustomFormat"; } }; | - |
25 | | - |
26 | typedef QHash<QString, QConfFile *> ConfFileHash; | - |
27 | typedef QCache<QString, QConfFile> ConfFileCache; | - |
28 | typedef QHash<int, QString> PathHash; | - |
29 | typedef QVector<QConfFileCustomFormat> CustomFormatVector; | - |
30 | | - |
31 | namespace { namespace Q_QGS_usedHashFunc { typedef ConfFileHash Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::InitializedTRUE | evaluated 174 times by 31 testsEvaluated by:- tst_languagechange - unknown status
- tst_qabstractitemview - unknown status
- tst_qaccessibility - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolordialog - unknown status
- tst_qcommandlinkbutton - unknown status
- tst_qcompleter - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qerrormessage - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfileiconprovider - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qicon - unknown status
- tst_qlabel - unknown status
- tst_qlineedit - unknown status
- tst_qmessagebox - unknown status
- tst_qplaintextedit - unknown status
- tst_qprinter - unknown status
- tst_qsettings - unknown status
- tst_qsidebar - unknown status
- tst_qstyle - unknown status
- tst_qstylesheetstyle - unknown status
- ...
| FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 174 times by 31 tests: guard.store(QtGlobalStatic::Destroyed); Executed by:- tst_languagechange - unknown status
- tst_qabstractitemview - unknown status
- tst_qaccessibility - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolordialog - unknown status
- tst_qcommandlinkbutton - unknown status
- tst_qcompleter - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qerrormessage - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfileiconprovider - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qicon - unknown status
- tst_qlabel - unknown status
- tst_qlineedit - unknown status
- tst_qmessagebox - unknown status
- tst_qplaintextedit - unknown status
- tst_qprinter - unknown status
- tst_qsettings - unknown status
- tst_qsidebar - unknown status
- tst_qstyle - unknown status
- tst_qstylesheetstyle - unknown status
- ...
}executed 174 times by 31 tests: end of block Executed by:- tst_languagechange - unknown status
- tst_qabstractitemview - unknown status
- tst_qaccessibility - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolordialog - unknown status
- tst_qcommandlinkbutton - unknown status
- tst_qcompleter - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qerrormessage - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfileiconprovider - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qicon - unknown status
- tst_qlabel - unknown status
- tst_qlineedit - unknown status
- tst_qmessagebox - unknown status
- tst_qplaintextedit - unknown status
- tst_qprinter - unknown status
- tst_qsettings - unknown status
- tst_qsidebar - unknown status
- tst_qstyle - unknown status
- tst_qstylesheetstyle - unknown status
- ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 13201 times by 36 tests: return &holder.value; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
&holder.value;executed 13201 times by 36 tests: return &holder.value; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
} } } static QGlobalStatic<ConfFileHash, Q_QGS_usedHashFunc::innerFunction, Q_QGS_usedHashFunc::guard> usedHashFunc; | 0-13201 |
32 | namespace { namespace Q_QGS_unusedCacheFunc { typedef ConfFileCache Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::InitializedTRUE | evaluated 174 times by 31 testsEvaluated by:- tst_languagechange - unknown status
- tst_qabstractitemview - unknown status
- tst_qaccessibility - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolordialog - unknown status
- tst_qcommandlinkbutton - unknown status
- tst_qcompleter - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qerrormessage - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfileiconprovider - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qicon - unknown status
- tst_qlabel - unknown status
- tst_qlineedit - unknown status
- tst_qmessagebox - unknown status
- tst_qplaintextedit - unknown status
- tst_qprinter - unknown status
- tst_qsettings - unknown status
- tst_qsidebar - unknown status
- tst_qstyle - unknown status
- tst_qstylesheetstyle - unknown status
- ...
| FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 174 times by 31 tests: guard.store(QtGlobalStatic::Destroyed); Executed by:- tst_languagechange - unknown status
- tst_qabstractitemview - unknown status
- tst_qaccessibility - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolordialog - unknown status
- tst_qcommandlinkbutton - unknown status
- tst_qcompleter - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qerrormessage - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfileiconprovider - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qicon - unknown status
- tst_qlabel - unknown status
- tst_qlineedit - unknown status
- tst_qmessagebox - unknown status
- tst_qplaintextedit - unknown status
- tst_qprinter - unknown status
- tst_qsettings - unknown status
- tst_qsidebar - unknown status
- tst_qstyle - unknown status
- tst_qstylesheetstyle - unknown status
- ...
}executed 174 times by 31 tests: end of block Executed by:- tst_languagechange - unknown status
- tst_qabstractitemview - unknown status
- tst_qaccessibility - unknown status
- tst_qcalendarwidget - unknown status
- tst_qcolordialog - unknown status
- tst_qcommandlinkbutton - unknown status
- tst_qcompleter - unknown status
- tst_qdatetimeedit - unknown status
- tst_qdbusxml2cpp - unknown status
- tst_qerrormessage - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qfileiconprovider - unknown status
- tst_qfilesystemmodel - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qicon - unknown status
- tst_qlabel - unknown status
- tst_qlineedit - unknown status
- tst_qmessagebox - unknown status
- tst_qplaintextedit - unknown status
- tst_qprinter - unknown status
- tst_qsettings - unknown status
- tst_qsidebar - unknown status
- tst_qstyle - unknown status
- tst_qstylesheetstyle - unknown status
- ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 5352 times by 31 tests: return &holder.value; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
&holder.value;executed 5352 times by 31 tests: return &holder.value; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
} } } static QGlobalStatic<ConfFileCache, Q_QGS_unusedCacheFunc::innerFunction, Q_QGS_unusedCacheFunc::guard> unusedCacheFunc; | 0-5352 |
33 | namespace { namespace Q_QGS_pathHashFunc { typedef PathHash Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::InitializedTRUE | evaluated 7 times by 7 testsEvaluated by:- tst_languagechange - unknown status
- tst_qcolordialog - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qsettings - unknown status
- tst_qtextformat - unknown status
| FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 7 times by 7 tests: guard.store(QtGlobalStatic::Destroyed); Executed by:- tst_languagechange - unknown status
- tst_qcolordialog - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qsettings - unknown status
- tst_qtextformat - unknown status
}executed 7 times by 7 tests: end of block Executed by:- tst_languagechange - unknown status
- tst_qcolordialog - unknown status
- tst_qfiledialog - unknown status
- tst_qfiledialog2 - unknown status
- tst_qgraphicsproxywidget - unknown status
- tst_qsettings - unknown status
- tst_qtextformat - unknown status
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 3324 times by 7 tests: return &holder.value; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
&holder.value;executed 3324 times by 7 tests: return &holder.value; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
} } } static QGlobalStatic<PathHash, Q_QGS_pathHashFunc::innerFunction, Q_QGS_pathHashFunc::guard> pathHashFunc; | 0-3324 |
34 | namespace { namespace Q_QGS_customFormatVectorFunc { typedef CustomFormatVector Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::InitializedTRUE | evaluated 1 time by 1 testEvaluated by:- tst_qsettings - unknown status
| FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 1 time by 1 test: guard.store(QtGlobalStatic::Destroyed); Executed by:- tst_qsettings - unknown status
}executed 1 time by 1 test: end of block Executed by:- tst_qsettings - unknown status
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 179 times by 1 test: return &holder.value; &holder.value;executed 179 times by 1 test: return &holder.value; } } } static QGlobalStatic<CustomFormatVector, Q_QGS_customFormatVectorFunc::innerFunction, Q_QGS_customFormatVectorFunc::guard> customFormatVectorFunc; | 0-179 |
35 | | - |
36 | static QBasicMutex settingsGlobalMutex; | - |
37 | | - |
38 | static QSettings::Format globalDefaultFormat = QSettings::NativeFormat; | - |
39 | | - |
40 | QConfFile::QConfFile(const QString &fileName, bool _userPerms) | - |
41 | : name(fileName), size(0), ref(1), userPerms(_userPerms) | - |
42 | { | - |
43 | usedHashFunc()->insert(name, this); | - |
44 | }executed 2658 times by 31 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 2658 |
45 | | - |
46 | QConfFile::~QConfFile() | - |
47 | { | - |
48 | if (usedHashFunc()TRUE | evaluated 2658 times by 36 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | never evaluated |
) | 0-2658 |
49 | usedHashFunc()->remove(name);executed 2658 times by 36 tests: usedHashFunc()->remove(name); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 2658 |
50 | }executed 2658 times by 36 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 2658 |
51 | | - |
52 | ParsedSettingsMap QConfFile::mergedKeyMap() const | - |
53 | { | - |
54 | ParsedSettingsMap result = originalKeys; | - |
55 | ParsedSettingsMap::const_iterator i; | - |
56 | | - |
57 | for (i = removedKeys.begin(); i != removedKeys.end()TRUE | evaluated 802 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| FALSE | evaluated 565 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
; ++i) | 565-802 |
58 | result.remove(i.key());executed 802 times by 3 tests: result.remove(i.key()); Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| 802 |
59 | for (i = addedKeys.begin(); i != addedKeys.end()TRUE | evaluated 2367 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 565 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
; ++i) | 565-2367 |
60 | result.insert(i.key(), i.value());executed 2367 times by 6 tests: result.insert(i.key(), i.value()); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 2367 |
61 | returnexecuted 565 times by 6 tests: return result; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
result;executed 565 times by 6 tests: return result; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 565 |
62 | } | - |
63 | | - |
64 | bool QConfFile::isWritable() const | - |
65 | { | - |
66 | QFileInfo fileInfo(name); | - |
67 | | - |
68 | | - |
69 | if (fileInfo.exists()TRUE | evaluated 464 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 123 times by 1 test |
) { | 123-464 |
70 | | - |
71 | QFile file(name); | - |
72 | returnexecuted 464 times by 6 tests: return file.open(QFile::ReadWrite); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
file.open(QFile::ReadWrite);executed 464 times by 6 tests: return file.open(QFile::ReadWrite); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 464 |
73 | | - |
74 | } else { | - |
75 | | - |
76 | QDir dir(fileInfo.absolutePath()); | - |
77 | if (!dir.exists()TRUE | evaluated 101 times by 1 test | FALSE | evaluated 22 times by 1 test |
) { | 22-101 |
78 | if (!dir.mkpath(dir.absolutePath())TRUE | never evaluated | FALSE | evaluated 101 times by 1 test |
) | 0-101 |
79 | return never executed: return false; false;never executed: return false; | 0 |
80 | }executed 101 times by 1 test: end of block | 101 |
81 | | - |
82 | | - |
83 | QTemporaryFile file(name); | - |
84 | returnexecuted 123 times by 1 test: return file.open(); file.open();executed 123 times by 1 test: return file.open(); | 123 |
85 | } | - |
86 | | - |
87 | } | - |
88 | | - |
89 | QConfFile *QConfFile::fromName(const QString &fileName, bool _userPerms) | - |
90 | { | - |
91 | QString absPath = QFileInfo(fileName).absoluteFilePath(); | - |
92 | | - |
93 | ConfFileHash *usedHash = usedHashFunc(); | - |
94 | ConfFileCache *unusedCache = unusedCacheFunc(); | - |
95 | | - |
96 | QConfFile *confFile = 0; | - |
97 | QMutexLocker locker(&settingsGlobalMutex); | - |
98 | | - |
99 | if (!(confFile = usedHash->value(absPath))TRUE | evaluated 3336 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 215 times by 1 test |
) { | 215-3336 |
100 | if ((TRUE | evaluated 678 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 2658 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
confFile = unusedCache->take(absPath))TRUE | evaluated 678 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 2658 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) | 678-2658 |
101 | usedHash->insert(absPath, confFile);executed 678 times by 7 tests: usedHash->insert(absPath, confFile); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
| 678 |
102 | }executed 3336 times by 31 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 3336 |
103 | if (confFileTRUE | evaluated 893 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 2658 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 893-2658 |
104 | confFile->ref.ref(); | - |
105 | returnexecuted 893 times by 7 tests: return confFile; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
confFile;executed 893 times by 7 tests: return confFile; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
| 893 |
106 | } | - |
107 | returnexecuted 2658 times by 31 tests: return new QConfFile(absPath, _userPerms); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
new QConfFile(absPath, _userPerms);executed 2658 times by 31 tests: return new QConfFile(absPath, _userPerms); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 2658 |
108 | } | - |
109 | | - |
110 | void QConfFile::clearCache() | - |
111 | { | - |
112 | QMutexLocker locker(&settingsGlobalMutex); | - |
113 | unusedCacheFunc()->clear(); | - |
114 | }executed 125 times by 1 test: end of block | 125 |
115 | | - |
116 | | - |
117 | | - |
118 | | - |
119 | QSettingsPrivate::QSettingsPrivate(QSettings::Format format) | - |
120 | : format(format), scope(QSettings::UserScope ), iniCodec(0), spec(0), fallbacks(true), | - |
121 | pendingChanges(false), status(QSettings::NoError) | - |
122 | { | - |
123 | }executed 248 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| 248 |
124 | | - |
125 | QSettingsPrivate::QSettingsPrivate(QSettings::Format format, QSettings::Scope scope, | - |
126 | const QString &organization, const QString &application) | - |
127 | : format(format), scope(scope), organizationName(organization), applicationName(application), | - |
128 | iniCodec(0), spec(0), fallbacks(true), pendingChanges(false), status(QSettings::NoError) | - |
129 | { | - |
130 | }executed 1428 times by 7 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| 1428 |
131 | | - |
132 | QSettingsPrivate::~QSettingsPrivate() | - |
133 | { | - |
134 | } | - |
135 | | - |
136 | QString QSettingsPrivate::actualKey(const QString &key) const | - |
137 | { | - |
138 | QString n = normalizedKey(key); | - |
139 | ((!(!n.isEmpty())) ? qt_assert_x("QSettings", "empty key",__FILE__,251) : qt_noop()); | - |
140 | returnexecuted 48963 times by 30 tests: return groupPrefix + n; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
groupPrefix + n;executed 48963 times by 30 tests: return groupPrefix + n; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 48963 |
141 | } | - |
142 | QString QSettingsPrivate::normalizedKey(const QString &key) | - |
143 | { | - |
144 | QString result = key; | - |
145 | | - |
146 | int i = 0; | - |
147 | while (i < result.size()TRUE | evaluated 160322 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 126 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
|
) { | 126-160322 |
148 | while (result.at(i) == QLatin1Char('/')TRUE | evaluated 544 times by 1 test | FALSE | evaluated 160231 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 544-160231 |
149 | result.remove(i, 1); | - |
150 | if (i == result.size()TRUE | evaluated 91 times by 1 test | FALSE | evaluated 453 times by 1 test |
) | 91-453 |
151 | gotoexecuted 91 times by 1 test: goto after_loop; after_loop;executed 91 times by 1 test: goto after_loop; | 91 |
152 | }executed 453 times by 1 test: end of block | 453 |
153 | while (result.at(i) != QLatin1Char('/')TRUE | evaluated 948417 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 109814 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 109814-948417 |
154 | ++i; | - |
155 | if (i == result.size()TRUE | evaluated 50417 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 898000 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) | 50417-898000 |
156 | returnexecuted 50417 times by 30 tests: return result; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
result;executed 50417 times by 30 tests: return result; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 50417 |
157 | }executed 898000 times by 30 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 898000 |
158 | ++i; | - |
159 | }executed 109814 times by 28 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 109814 |
160 | | - |
161 | after_loop:code before this statement executed 126 times by 3 tests: after_loop: Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| 126 |
162 | if (!result.isEmpty()TRUE | evaluated 58 times by 1 test | FALSE | evaluated 159 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
|
) | 58-159 |
163 | result.truncate(i - 1);executed 58 times by 1 test: result.truncate(i - 1); | 58 |
164 | returnexecuted 217 times by 3 tests: return result; Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
result;executed 217 times by 3 tests: return result; Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| 217 |
165 | } | - |
166 | | - |
167 | | - |
168 | | - |
169 | | - |
170 | QSettingsPrivate *QSettingsPrivate::create(QSettings::Format format, QSettings::Scope scope, | - |
171 | const QString &organization, const QString &application) | - |
172 | { | - |
173 | returnexecuted 1428 times by 7 tests: return new QConfFileSettingsPrivate(format, scope, organization, application); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
new QConfFileSettingsPrivate(format, scope, organization, application);executed 1428 times by 7 tests: return new QConfFileSettingsPrivate(format, scope, organization, application); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| 1428 |
174 | } | - |
175 | | - |
176 | | - |
177 | | - |
178 | QSettingsPrivate *QSettingsPrivate::create(const QString &fileName, QSettings::Format format) | - |
179 | { | - |
180 | returnexecuted 248 times by 29 tests: return new QConfFileSettingsPrivate(fileName, format); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
new QConfFileSettingsPrivate(fileName, format);executed 248 times by 29 tests: return new QConfFileSettingsPrivate(fileName, format); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| 248 |
181 | } | - |
182 | | - |
183 | | - |
184 | void QSettingsPrivate::processChild(QStringRef key, ChildSpec spec, QStringList &result) | - |
185 | { | - |
186 | if (spec != AllKeysTRUE | evaluated 2980 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
- tst_qdbusxml2cpp - unknown status
| FALSE | evaluated 30673 times by 27 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
|
) { | 2980-30673 |
187 | int slashPos = key.indexOf(QLatin1Char('/')); | - |
188 | if (slashPos == -1TRUE | evaluated 304 times by 1 test | FALSE | evaluated 2676 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
- tst_qdbusxml2cpp - unknown status
|
) { | 304-2676 |
189 | if (spec != ChildKeysTRUE | evaluated 152 times by 1 test | FALSE | evaluated 152 times by 1 test |
) | 152 |
190 | return;executed 152 times by 1 test: return; | 152 |
191 | }executed 152 times by 1 test: end of block else { | 152 |
192 | if (spec != ChildGroupsTRUE | evaluated 328 times by 1 test | FALSE | evaluated 2348 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
- tst_qdbusxml2cpp - unknown status
|
) | 328-2348 |
193 | return;executed 328 times by 1 test: return; | 328 |
194 | key.truncate(slashPos); | - |
195 | }executed 2348 times by 6 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
- tst_qdbusxml2cpp - unknown status
| 2348 |
196 | } | - |
197 | result.append(key.toString()); | - |
198 | }executed 33173 times by 28 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| 33173 |
199 | | - |
200 | void QSettingsPrivate::beginGroupOrArray(const QSettingsGroup &group) | - |
201 | { | - |
202 | groupStack.push(group); | - |
203 | const QString name = group.name(); | - |
204 | if (!name.isEmpty()TRUE | evaluated 1343 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
- tst_selftests - unknown status
| FALSE | evaluated 43 times by 1 test |
) | 43-1343 |
205 | groupPrefix += name + QLatin1Char('/');executed 1343 times by 6 tests: groupPrefix += name + QLatin1Char('/'); Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
- tst_selftests - unknown status
| 1343 |
206 | }executed 1386 times by 6 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
- tst_selftests - unknown status
| 1386 |
207 | | - |
208 | | - |
209 | | - |
210 | | - |
211 | | - |
212 | | - |
213 | void QSettingsPrivate::setStatus(QSettings::Status status) const | - |
214 | { | - |
215 | if (status == QSettings::NoErrorTRUE | never evaluated | FALSE | evaluated 44 times by 3 testsEvaluated by:- tst_QIcon
- tst_QSettings
- tst_selftests - unknown status
|
|| this->status == QSettings::NoErrorTRUE | evaluated 41 times by 3 testsEvaluated by:- tst_QIcon
- tst_QSettings
- tst_selftests - unknown status
| FALSE | evaluated 3 times by 1 test |
) | 0-44 |
216 | this->status = status;executed 41 times by 3 tests: this->status = status; Executed by:- tst_QIcon
- tst_QSettings
- tst_selftests - unknown status
| 41 |
217 | }executed 44 times by 3 tests: end of block Executed by:- tst_QIcon
- tst_QSettings
- tst_selftests - unknown status
| 44 |
218 | | - |
219 | void QSettingsPrivate::update() | - |
220 | { | - |
221 | flush(); | - |
222 | pendingChanges = false; | - |
223 | }executed 4 times by 1 test: end of block | 4 |
224 | | - |
225 | void QSettingsPrivate::requestUpdate() | - |
226 | { | - |
227 | if (!pendingChangesTRUE | evaluated 567 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 2156 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 567-2156 |
228 | pendingChanges = true; | - |
229 | | - |
230 | QSettings * const q = q_func(); | - |
231 | QCoreApplication::postEvent(q, new QEvent(QEvent::UpdateRequest)); | - |
232 | | - |
233 | | - |
234 | | - |
235 | }executed 567 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 567 |
236 | }executed 2723 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 2723 |
237 | | - |
238 | QStringList QSettingsPrivate::variantListToStringList(const QVariantList &l) | - |
239 | { | - |
240 | QStringList result; | - |
241 | result.reserve(l.count()); | - |
242 | QVariantList::const_iterator it = l.constBegin(); | - |
243 | for (; it != l.constEnd()TRUE | evaluated 1082 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 524 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
; ++it) | 524-1082 |
244 | result.append(variantToString(*it));executed 1082 times by 6 tests: result.append(variantToString(*it)); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 1082 |
245 | returnexecuted 524 times by 6 tests: return result; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
result;executed 524 times by 6 tests: return result; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 524 |
246 | } | - |
247 | | - |
248 | QVariant QSettingsPrivate::stringListToVariantList(const QStringList &l) | - |
249 | { | - |
250 | QStringList outStringList = l; | - |
251 | for (int i = 0; i < outStringList.count()TRUE | evaluated 8740 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 47 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
; ++i) { | 47-8740 |
252 | const QString &str = outStringList.at(i); | - |
253 | | - |
254 | if (str.startsWith(QLatin1Char('@'))TRUE | evaluated 34 times by 1 test | FALSE | evaluated 8706 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 34-8706 |
255 | if (str.length() >= 2TRUE | evaluated 34 times by 1 test | FALSE | never evaluated |
&& str.at(1) == QLatin1Char('@')TRUE | evaluated 4 times by 1 test | FALSE | evaluated 30 times by 1 test |
) { | 0-34 |
256 | outStringList[i].remove(0, 1); | - |
257 | }executed 4 times by 1 test: end of block else { | 4 |
258 | QVariantList variantList; | - |
259 | const int stringCount = l.count(); | - |
260 | variantList.reserve(stringCount); | - |
261 | for (int j = 0; j < stringCountTRUE | evaluated 258 times by 1 test | FALSE | evaluated 30 times by 1 test |
; ++j) | 30-258 |
262 | variantList.append(stringToVariant(l.at(j)));executed 258 times by 1 test: variantList.append(stringToVariant(l.at(j))); | 258 |
263 | returnexecuted 30 times by 1 test: return variantList; variantList;executed 30 times by 1 test: return variantList; | 30 |
264 | } | - |
265 | } | - |
266 | }executed 8710 times by 28 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 8710 |
267 | returnexecuted 47 times by 28 tests: return outStringList; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
outStringList;executed 47 times by 28 tests: return outStringList; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 47 |
268 | } | - |
269 | | - |
270 | QString QSettingsPrivate::variantToString(const QVariant &v) | - |
271 | { | - |
272 | QString result; | - |
273 | | - |
274 | switch (v.type()) { | - |
275 | case never executed: case QVariant::Invalid: QVariant::Invalid:never executed: case QVariant::Invalid: | 0 |
276 | result = QLatin1String("@Invalid()"); | - |
277 | break; never executed: break; | 0 |
278 | | - |
279 | caseexecuted 253 times by 6 tests: case QVariant::ByteArray: Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
QVariant::ByteArray:executed 253 times by 6 tests: case QVariant::ByteArray: Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
{ | 253 |
280 | QByteArray a = v.toByteArray(); | - |
281 | result = QLatin1String("@ByteArray(") | - |
282 | + QLatin1String(a.constData(), a.size()) | - |
283 | + QLatin1Char(')'); | - |
284 | break;executed 253 times by 6 tests: break; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 253 |
285 | } | - |
286 | | - |
287 | caseexecuted 1867 times by 6 tests: case QVariant::String: Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
QVariant::String:executed 1867 times by 6 tests: case QVariant::String: Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 1867 |
288 | case never executed: case QVariant::LongLong: QVariant::LongLong:never executed: case QVariant::LongLong: | 0 |
289 | case never executed: case QVariant::ULongLong: QVariant::ULongLong:never executed: case QVariant::ULongLong: | 0 |
290 | caseexecuted 631 times by 5 tests: case QVariant::Int: Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
QVariant::Int:executed 631 times by 5 tests: case QVariant::Int: Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 631 |
291 | caseexecuted 96 times by 2 tests: case QVariant::UInt: Executed by:- tst_QColorDialog
- tst_languageChange
QVariant::UInt:executed 96 times by 2 tests: case QVariant::UInt: Executed by:- tst_QColorDialog
- tst_languageChange
| 96 |
292 | caseexecuted 4 times by 1 test: case QVariant::Bool: QVariant::Bool:executed 4 times by 1 test: case QVariant::Bool: | 4 |
293 | case never executed: case QVariant::Double: QVariant::Double:never executed: case QVariant::Double: | 0 |
294 | caseexecuted 2 times by 1 test: case QVariant::KeySequence: QVariant::KeySequence:executed 2 times by 1 test: case QVariant::KeySequence: { | 2 |
295 | result = v.toString(); | - |
296 | if (result.contains(QChar::Null)TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2598 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 2-2598 |
297 | result = QLatin1String("@String(") + result + QLatin1Char(')');executed 2 times by 1 test: result = QLatin1String("@String(") + result + QLatin1Char(')'); | 2 |
298 | else if (result.startsWith(QLatin1Char('@'))TRUE | evaluated 7 times by 1 test | FALSE | evaluated 2591 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 7-2591 |
299 | result.prepend(QLatin1Char('@'));executed 7 times by 1 test: result.prepend(QLatin1Char('@')); | 7 |
300 | break;executed 2600 times by 6 tests: break; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 2600 |
301 | } | - |
302 | | - |
303 | caseexecuted 43 times by 1 test: case QVariant::Rect: QVariant::Rect:executed 43 times by 1 test: case QVariant::Rect: { | 43 |
304 | QRect r = qvariant_cast<QRect>(v); | - |
305 | result = QString::asprintf("@Rect(%d %d %d %d)", r.x(), r.y(), r.width(), r.height()); | - |
306 | break;executed 43 times by 1 test: break; | 43 |
307 | } | - |
308 | caseexecuted 41 times by 1 test: case QVariant::Size: QVariant::Size:executed 41 times by 1 test: case QVariant::Size: { | 41 |
309 | QSize s = qvariant_cast<QSize>(v); | - |
310 | result = QString::asprintf("@Size(%d %d)", s.width(), s.height()); | - |
311 | break;executed 41 times by 1 test: break; | 41 |
312 | } | - |
313 | caseexecuted 39 times by 1 test: case QVariant::Point: QVariant::Point:executed 39 times by 1 test: case QVariant::Point: { | 39 |
314 | QPoint p = qvariant_cast<QPoint>(v); | - |
315 | result = QString::asprintf("@Point(%d %d)", p.x(), p.y()); | - |
316 | break;executed 39 times by 1 test: break; | 39 |
317 | } | - |
318 | | - |
319 | | - |
320 | defaultexecuted 176 times by 1 test: default: :executed 176 times by 1 test: default: { | 176 |
321 | | - |
322 | QDataStream::Version version; | - |
323 | const char *typeSpec; | - |
324 | if (v.type() == QVariant::DateTimeTRUE | evaluated 4 times by 1 test | FALSE | evaluated 172 times by 1 test |
) { | 4-172 |
325 | version = QDataStream::Qt_5_6; | - |
326 | typeSpec = "@DateTime("; | - |
327 | }executed 4 times by 1 test: end of block else { | 4 |
328 | version = QDataStream::Qt_4_0; | - |
329 | typeSpec = "@Variant("; | - |
330 | }executed 172 times by 1 test: end of block | 172 |
331 | QByteArray a; | - |
332 | { | - |
333 | QDataStream s(&a, QIODevice::WriteOnly); | - |
334 | s.setVersion(version); | - |
335 | s << v; | - |
336 | } | - |
337 | | - |
338 | result = QLatin1String(typeSpec) | - |
339 | + QLatin1String(a.constData(), a.size()) | - |
340 | + QLatin1Char(')'); | - |
341 | | - |
342 | | - |
343 | | - |
344 | break;executed 176 times by 1 test: break; | 176 |
345 | } | - |
346 | } | - |
347 | | - |
348 | returnexecuted 3152 times by 6 tests: return result; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
result;executed 3152 times by 6 tests: return result; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 3152 |
349 | } | - |
350 | | - |
351 | | - |
352 | QVariant QSettingsPrivate::stringToVariant(const QString &s) | - |
353 | { | - |
354 | if (s.startsWith(QLatin1Char('@'))TRUE | evaluated 314 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 30061 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 314-30061 |
355 | if (s.endsWith(QLatin1Char(')'))TRUE | evaluated 307 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 7 times by 1 test |
) { | 7-307 |
356 | if (s.startsWith(QLatin1String("@ByteArray("))TRUE | evaluated 13 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 294 times by 1 test |
) { | 13-294 |
357 | returnexecuted 13 times by 4 tests: return QVariant(s.midRef(11, s.size() - 12).toLatin1()); Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
QVariant(s.midRef(11, s.size() - 12).toLatin1());executed 13 times by 4 tests: return QVariant(s.midRef(11, s.size() - 12).toLatin1()); Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 13 |
358 | } else if (s.startsWith(QLatin1String("@String("))TRUE | never evaluated | FALSE | evaluated 294 times by 1 test |
) { | 0-294 |
359 | return never executed: return QVariant(s.midRef(8, s.size() - 9).toString()); QVariant(s.midRef(8, s.size() - 9).toString());never executed: return QVariant(s.midRef(8, s.size() - 9).toString()); | 0 |
360 | } else if (s.startsWith(QLatin1String("@Variant("))TRUE | evaluated 163 times by 1 test | FALSE | evaluated 131 times by 1 test |
| 131-163 |
361 | || s.startsWith(QLatin1String("@DateTime("))TRUE | evaluated 4 times by 1 test | FALSE | evaluated 127 times by 1 test |
) { | 4-127 |
362 | | - |
363 | QDataStream::Version version; | - |
364 | int offset; | - |
365 | if (s.at(1) == QLatin1Char('D')TRUE | evaluated 4 times by 1 test | FALSE | evaluated 163 times by 1 test |
) { | 4-163 |
366 | version = QDataStream::Qt_5_6; | - |
367 | offset = 10; | - |
368 | }executed 4 times by 1 test: end of block else { | 4 |
369 | version = QDataStream::Qt_4_0; | - |
370 | offset = 9; | - |
371 | }executed 163 times by 1 test: end of block | 163 |
372 | QByteArray a = s.midRef(offset).toLatin1(); | - |
373 | QDataStream stream(&a, QIODevice::ReadOnly); | - |
374 | stream.setVersion(version); | - |
375 | QVariant result; | - |
376 | stream >> result; | - |
377 | returnexecuted 167 times by 1 test: return result; result;executed 167 times by 1 test: return result; | 167 |
378 | | - |
379 | | - |
380 | | - |
381 | | - |
382 | } else if (s.startsWith(QLatin1String("@Rect("))TRUE | evaluated 45 times by 1 test | FALSE | evaluated 82 times by 1 test |
) { | 45-82 |
383 | QStringList args = QSettingsPrivate::splitArgs(s, 5); | - |
384 | if (args.size() == 4TRUE | evaluated 43 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-43 |
385 | returnexecuted 43 times by 1 test: return QVariant(QRect(args[0].toInt(), args[1].toInt(), args[2].toInt(), args[3].toInt())); QVariant(QRect(args[0].toInt(), args[1].toInt(), args[2].toInt(), args[3].toInt()));executed 43 times by 1 test: return QVariant(QRect(args[0].toInt(), args[1].toInt(), args[2].toInt(), args[3].toInt())); | 43 |
386 | }executed 2 times by 1 test: end of block else if (s.startsWith(QLatin1String("@Size("))TRUE | evaluated 41 times by 1 test | FALSE | evaluated 41 times by 1 test |
) { | 2-41 |
387 | QStringList args = QSettingsPrivate::splitArgs(s, 5); | - |
388 | if (args.size() == 2TRUE | evaluated 41 times by 1 test | FALSE | never evaluated |
) | 0-41 |
389 | returnexecuted 41 times by 1 test: return QVariant(QSize(args[0].toInt(), args[1].toInt())); QVariant(QSize(args[0].toInt(), args[1].toInt()));executed 41 times by 1 test: return QVariant(QSize(args[0].toInt(), args[1].toInt())); | 41 |
390 | } never executed: end of block else if (s.startsWith(QLatin1String("@Point("))TRUE | evaluated 39 times by 1 test | FALSE | evaluated 2 times by 1 test |
) { | 0-39 |
391 | QStringList args = QSettingsPrivate::splitArgs(s, 6); | - |
392 | if (args.size() == 2TRUE | evaluated 39 times by 1 test | FALSE | never evaluated |
) | 0-39 |
393 | returnexecuted 39 times by 1 test: return QVariant(QPoint(args[0].toInt(), args[1].toInt())); QVariant(QPoint(args[0].toInt(), args[1].toInt()));executed 39 times by 1 test: return QVariant(QPoint(args[0].toInt(), args[1].toInt())); | 39 |
394 | | - |
395 | } never executed: end of block else if (s == QLatin1String("@Invalid()")TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) { | 0-2 |
396 | return never executed: return QVariant(); QVariant();never executed: return QVariant(); | 0 |
397 | } | - |
398 | | - |
399 | }executed 4 times by 1 test: end of block | 4 |
400 | if (s.startsWith(QLatin1String("@@"))TRUE | evaluated 5 times by 1 test | FALSE | evaluated 6 times by 1 test |
) | 5-6 |
401 | returnexecuted 5 times by 1 test: return QVariant(s.mid(1)); QVariant(s.mid(1));executed 5 times by 1 test: return QVariant(s.mid(1)); | 5 |
402 | }executed 6 times by 1 test: end of block | 6 |
403 | | - |
404 | returnexecuted 30067 times by 29 tests: return QVariant(s); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
QVariant(s);executed 30067 times by 29 tests: return QVariant(s); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 30067 |
405 | } | - |
406 | | - |
407 | static const char hexDigits[] = "0123456789ABCDEF"; | - |
408 | | - |
409 | void QSettingsPrivate::iniEscapedKey(const QString &key, QByteArray &result) | - |
410 | { | - |
411 | result.reserve(result.length() + key.length() * 3 / 2); | - |
412 | for (int i = 0; i < key.size()TRUE | evaluated 26033 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 3018 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
; ++i) { | 3018-26033 |
413 | uint ch = key.at(i).unicode(); | - |
414 | | - |
415 | if (ch == '/'TRUE | evaluated 448 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 25585 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 448-25585 |
416 | result += '\\'; | - |
417 | }executed 448 times by 4 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
else if ((ch >= 'a'TRUE | evaluated 22389 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 3196 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
&& ch <= 'z'TRUE | evaluated 22376 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 13 times by 1 test |
) || (ch >= 'A'TRUE | evaluated 2152 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 1057 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
&& ch <= 'Z'TRUE | evaluated 2130 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 22 times by 1 test |
) || (ch >= '0'TRUE | evaluated 975 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 104 times by 1 test |
&& ch <= '9'TRUE | evaluated 947 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 28 times by 1 test |
) | 13-22389 |
418 | || ch == '_'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 131 times by 1 test |
|| ch == '-'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 130 times by 1 test |
|| ch == '.'TRUE | evaluated 3 times by 1 test | FALSE | evaluated 127 times by 1 test |
) { | 1-131 |
419 | result += (char)ch; | - |
420 | }executed 25458 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
else if (ch <= 0xFFTRUE | evaluated 122 times by 1 test | FALSE | evaluated 5 times by 1 test |
) { | 5-25458 |
421 | result += '%'; | - |
422 | result += hexDigits[ch / 16]; | - |
423 | result += hexDigits[ch % 16]; | - |
424 | }executed 122 times by 1 test: end of block else { | 122 |
425 | result += "%U"; | - |
426 | QByteArray hexCode; | - |
427 | for (int i = 0; i < 4TRUE | evaluated 20 times by 1 test | FALSE | evaluated 5 times by 1 test |
; ++i) { | 5-20 |
428 | hexCode.prepend(hexDigits[ch % 16]); | - |
429 | ch >>= 4; | - |
430 | }executed 20 times by 1 test: end of block | 20 |
431 | result += hexCode; | - |
432 | }executed 5 times by 1 test: end of block | 5 |
433 | } | - |
434 | }executed 3018 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 3018 |
435 | | - |
436 | bool QSettingsPrivate::iniUnescapedKey(const QByteArray &key, int from, int to, QString &result) | - |
437 | { | - |
438 | bool lowercaseOnly = true; | - |
439 | int i = from; | - |
440 | result.reserve(result.length() + (to - from)); | - |
441 | while (i < toTRUE | evaluated 296440 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 39012 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 39012-296440 |
442 | int ch = (uchar)key.at(i); | - |
443 | | - |
444 | if (ch == '\\'TRUE | evaluated 227 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 296213 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 227-296213 |
445 | result += QLatin1Char('/'); | - |
446 | ++i; | - |
447 | continue;executed 227 times by 4 tests: continue; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 227 |
448 | } | - |
449 | | - |
450 | if (ch != '%'TRUE | evaluated 296144 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 69 times by 1 test |
|| i == to - 1TRUE | evaluated 2 times by 1 test | FALSE | evaluated 67 times by 1 test |
) { | 2-296144 |
451 | if (uint(ch - 'A') <= 'Z' - 'A'TRUE | evaluated 33706 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 262440 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) | 33706-262440 |
452 | lowercaseOnly = false;executed 33706 times by 29 tests: lowercaseOnly = false; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 33706 |
453 | result += QLatin1Char(ch); | - |
454 | ++i; | - |
455 | continue;executed 296146 times by 29 tests: continue; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 296146 |
456 | } | - |
457 | | - |
458 | int numDigits = 2; | - |
459 | int firstDigitPos = i + 1; | - |
460 | | - |
461 | ch = key.at(i + 1); | - |
462 | if (ch == 'U'TRUE | evaluated 9 times by 1 test | FALSE | evaluated 58 times by 1 test |
) { | 9-58 |
463 | ++firstDigitPos; | - |
464 | numDigits = 4; | - |
465 | }executed 9 times by 1 test: end of block | 9 |
466 | | - |
467 | if (firstDigitPos + numDigits > toTRUE | never evaluated | FALSE | evaluated 67 times by 1 test |
) { | 0-67 |
468 | result += QLatin1Char('%'); | - |
469 | | - |
470 | ++i; | - |
471 | continue; never executed: continue; | 0 |
472 | } | - |
473 | | - |
474 | bool ok; | - |
475 | ch = key.mid(firstDigitPos, numDigits).toInt(&ok, 16); | - |
476 | if (!okTRUE | evaluated 10 times by 1 test | FALSE | evaluated 57 times by 1 test |
) { | 10-57 |
477 | result += QLatin1Char('%'); | - |
478 | | - |
479 | ++i; | - |
480 | continue;executed 10 times by 1 test: continue; | 10 |
481 | } | - |
482 | | - |
483 | QChar qch(ch); | - |
484 | if (qch.isUpper()TRUE | evaluated 3 times by 1 test | FALSE | evaluated 54 times by 1 test |
) | 3-54 |
485 | lowercaseOnly = false;executed 3 times by 1 test: lowercaseOnly = false; | 3 |
486 | result += qch; | - |
487 | i = firstDigitPos + numDigits; | - |
488 | }executed 57 times by 1 test: end of block | 57 |
489 | returnexecuted 39012 times by 29 tests: return lowercaseOnly; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
lowercaseOnly;executed 39012 times by 29 tests: return lowercaseOnly; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 39012 |
490 | } | - |
491 | | - |
492 | void QSettingsPrivate::iniEscapedString(const QString &str, QByteArray &result, QTextCodec *codec) | - |
493 | { | - |
494 | bool needsQuotes = false; | - |
495 | bool escapeNextIfDigit = false; | - |
496 | bool useCodec = codecTRUE | evaluated 3 times by 1 test | FALSE | evaluated 3175 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
&& !str.startsWith(QLatin1String("@ByteArray("))TRUE | evaluated 2 times by 1 test | FALSE | evaluated 1 time by 1 test |
| 1-3175 |
497 | && !str.startsWith(QLatin1String("@Variant("))TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
; | 0-2 |
498 | | - |
499 | int i; | - |
500 | int startPos = result.size(); | - |
501 | | - |
502 | result.reserve(startPos + str.size() * 3 / 2); | - |
503 | const QChar *unicode = str.unicode(); | - |
504 | for (i = 0; i < str.size()TRUE | evaluated 89650 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 3178 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
; ++i) { | 3178-89650 |
505 | uint ch = unicode[i].unicode(); | - |
506 | if (ch == ';'TRUE | evaluated 3 times by 1 test | FALSE | evaluated 89647 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
|| ch == ','TRUE | evaluated 5 times by 1 test | FALSE | evaluated 89642 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
|| ch == '='TRUE | evaluated 3 times by 1 test | FALSE | evaluated 89639 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 3-89647 |
507 | needsQuotes = true;executed 11 times by 1 test: needsQuotes = true; | 11 |
508 | | - |
509 | if (escapeNextIfDigitTRUE | evaluated 37254 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 52396 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
| 37254-52396 |
510 | && ((ch >= '0'TRUE | evaluated 5496 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 31758 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
&& ch <= '9'TRUE | evaluated 16 times by 1 test | FALSE | evaluated 5480 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 16-31758 |
511 | || (ch >= 'a'TRUE | evaluated 4895 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 32343 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
&& ch <= 'f'TRUE | evaluated 824 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 4071 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 824-32343 |
512 | || (ch >= 'A'TRUE | evaluated 4655 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 31759 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
&& ch <= 'F'TRUE | evaluated 527 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 4128 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
))) { | 527-31759 |
513 | result += "\\x" + QByteArray::number(ch, 16); | - |
514 | continue;executed 1367 times by 6 tests: continue; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 1367 |
515 | } | - |
516 | | - |
517 | escapeNextIfDigit = false; | - |
518 | | - |
519 | switch (ch) { | - |
520 | caseexecuted 28726 times by 6 tests: case '\0': Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
'\0':executed 28726 times by 6 tests: case '\0': Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 28726 |
521 | result += "\\0"; | - |
522 | escapeNextIfDigit = true; | - |
523 | break;executed 28726 times by 6 tests: break; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 28726 |
524 | caseexecuted 3 times by 1 test: case '\a': '\a':executed 3 times by 1 test: case '\a': | 3 |
525 | result += "\\a"; | - |
526 | break;executed 3 times by 1 test: break; | 3 |
527 | caseexecuted 125 times by 1 test: case '\b': '\b':executed 125 times by 1 test: case '\b': | 125 |
528 | result += "\\b"; | - |
529 | break;executed 125 times by 1 test: break; | 125 |
530 | caseexecuted 4 times by 1 test: case '\f': '\f':executed 4 times by 1 test: case '\f': | 4 |
531 | result += "\\f"; | - |
532 | break;executed 4 times by 1 test: break; | 4 |
533 | caseexecuted 229 times by 1 test: case '\n': '\n':executed 229 times by 1 test: case '\n': | 229 |
534 | result += "\\n"; | - |
535 | break;executed 229 times by 1 test: break; | 229 |
536 | caseexecuted 4 times by 1 test: case '\r': '\r':executed 4 times by 1 test: case '\r': | 4 |
537 | result += "\\r"; | - |
538 | break;executed 4 times by 1 test: break; | 4 |
539 | caseexecuted 28 times by 1 test: case '\t': '\t':executed 28 times by 1 test: case '\t': | 28 |
540 | result += "\\t"; | - |
541 | break;executed 28 times by 1 test: break; | 28 |
542 | caseexecuted 8 times by 1 test: case '\v': '\v':executed 8 times by 1 test: case '\v': | 8 |
543 | result += "\\v"; | - |
544 | break;executed 8 times by 1 test: break; | 8 |
545 | caseexecuted 3 times by 1 test: case '"': '"':executed 3 times by 1 test: case '"': | 3 |
546 | caseexecuted 4 times by 1 test: case '\\': '\\':executed 4 times by 1 test: case '\\': | 4 |
547 | result += '\\'; | - |
548 | result += (char)ch; | - |
549 | break;executed 7 times by 1 test: break; | 7 |
550 | defaultexecuted 59149 times by 6 tests: default: Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
:executed 59149 times by 6 tests: default: Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 59149 |
551 | if (ch <= 0x1FTRUE | evaluated 3671 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 55478 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
|| (ch >= 0x7FTRUE | evaluated 3498 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 51980 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
&& !useCodecTRUE | evaluated 3494 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 4 times by 1 test |
)) { | 4-55478 |
552 | result += "\\x" + QByteArray::number(ch, 16); | - |
553 | escapeNextIfDigit = true; | - |
554 | | - |
555 | }executed 7165 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
else if (useCodecTRUE | evaluated 26 times by 1 test | FALSE | evaluated 51958 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 26-51958 |
556 | | - |
557 | result += codec->fromUnicode(&unicode[i], 1); | - |
558 | | - |
559 | }executed 26 times by 1 test: end of block else { | 26 |
560 | result += (char)ch; | - |
561 | }executed 51958 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 51958 |
562 | } | - |
563 | } | - |
564 | | - |
565 | if (needsQuotesTRUE | evaluated 8 times by 1 test | FALSE | evaluated 3170 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
| 8-3170 |
566 | || (startPos < result.size()TRUE | evaluated 3134 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 36 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QSettings
- tst_languageChange
|
&& (result.at(startPos) == ' 'TRUE | evaluated 3 times by 1 test | FALSE | evaluated 3131 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
| 3-3134 |
567 | || result.at(result.size() - 1) == ' 'TRUE | evaluated 3 times by 1 test | FALSE | evaluated 3128 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
))) { | 3-3128 |
568 | result.insert(startPos, '"'); | - |
569 | result += '"'; | - |
570 | }executed 14 times by 1 test: end of block | 14 |
571 | }executed 3178 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 3178 |
572 | | - |
573 | inline static void iniChopTrailingSpaces(QString &str, int limit) | - |
574 | { | - |
575 | int n = str.size() - 1; | - |
576 | QChar ch; | - |
577 | while (n >= limitTRUE | evaluated 39027 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 28 times by 3 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
|
&& ((TRUE | evaluated 12 times by 1 test | FALSE | evaluated 39015 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
ch = str.at(n)) == QLatin1Char(' ')TRUE | evaluated 12 times by 1 test | FALSE | evaluated 39015 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
|| ch == QLatin1Char('\t')TRUE | never evaluated | FALSE | evaluated 39015 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
)) | 0-39027 |
578 | str.truncate(n--);executed 12 times by 1 test: str.truncate(n--); | 12 |
579 | }executed 39043 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 39043 |
580 | | - |
581 | void QSettingsPrivate::iniEscapedStringList(const QStringList &strs, QByteArray &result, QTextCodec *codec) | - |
582 | { | - |
583 | if (strs.isEmpty()TRUE | evaluated 4 times by 1 test | FALSE | evaluated 541 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 4-541 |
584 | result += "@Invalid()"; | - |
585 | }executed 4 times by 1 test: end of block else { | 4 |
586 | for (int i = 0; i < strs.size()TRUE | evaluated 1119 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 541 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
; ++i) { | 541-1119 |
587 | if (i != 0TRUE | evaluated 578 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 541 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 541-578 |
588 | result += ", ";executed 578 times by 6 tests: result += ", "; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 578 |
589 | iniEscapedString(strs.at(i), result, codec); | - |
590 | }executed 1119 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 1119 |
591 | }executed 541 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 541 |
592 | } | - |
593 | | - |
594 | bool QSettingsPrivate::iniUnescapedStringList(const QByteArray &str, int from, int to, | - |
595 | QString &stringResult, QStringList &stringListResult, | - |
596 | QTextCodec *codec) | - |
597 | { | - |
598 | static const char escapeCodes[][2] = | - |
599 | { | - |
600 | { 'a', '\a' }, | - |
601 | { 'b', '\b' }, | - |
602 | { 'f', '\f' }, | - |
603 | { 'n', '\n' }, | - |
604 | { 'r', '\r' }, | - |
605 | { 't', '\t' }, | - |
606 | { 'v', '\v' }, | - |
607 | { '"', '"' }, | - |
608 | { '?', '?' }, | - |
609 | { '\'', '\'' }, | - |
610 | { '\\', '\\' } | - |
611 | }; | - |
612 | static const int numEscapeCodes = sizeof(escapeCodes) / sizeof(escapeCodes[0]); | - |
613 | | - |
614 | bool isStringList = false; | - |
615 | bool inQuotedString = false; | - |
616 | bool currentValueIsQuoted = false; | - |
617 | int escapeVal = 0; | - |
618 | int i = from; | - |
619 | char ch; | - |
620 | | - |
621 | StSkipSpaces:code before this statement executed 30201 times by 29 tests: StSkipSpaces: Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 30201 |
622 | while (i < toTRUE | evaluated 39358 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 20 times by 3 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
|
&& ((TRUE | evaluated 283 times by 5 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 39075 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
ch = str.at(i)) == ' 'TRUE | evaluated 283 times by 5 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 39075 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
|| ch == '\t'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 39073 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
)) | 2-39358 |
623 | ++executed 285 times by 5 tests: ++i; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
i;executed 285 times by 5 tests: ++i; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
| 285 |
624 | | - |
625 | | - |
626 | StNormal:code before this statement executed 39093 times by 29 tests: StNormal: Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 39093 |
627 | int chopLimit = stringResult.length(); | - |
628 | while (i < toTRUE | evaluated 54203 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 30195 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 30195-54203 |
629 | switch (str.at(i)) { | - |
630 | caseexecuted 5581 times by 4 tests: case '\\': Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
'\\':executed 5581 times by 4 tests: case '\\': Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 5581 |
631 | ++i; | - |
632 | if (i >= toTRUE | evaluated 3 times by 1 test | FALSE | evaluated 5578 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 3-5578 |
633 | gotoexecuted 3 times by 1 test: goto end; end;executed 3 times by 1 test: goto end; | 3 |
634 | | - |
635 | ch = str.at(i++); | - |
636 | for (int j = 0; j < numEscapeCodesTRUE | evaluated 58744 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 5228 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
; ++j) { | 5228-58744 |
637 | if (ch == escapeCodes[j][0]TRUE | evaluated 350 times by 1 test | FALSE | evaluated 58394 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 350-58394 |
638 | stringResult += QLatin1Char(escapeCodes[j][1]); | - |
639 | gotoexecuted 350 times by 1 test: goto StNormal; StNormal;executed 350 times by 1 test: goto StNormal; | 350 |
640 | } | - |
641 | }executed 58394 times by 4 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 58394 |
642 | | - |
643 | if (ch == 'x'TRUE | evaluated 1686 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 3542 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 1686-3542 |
644 | escapeVal = 0; | - |
645 | | - |
646 | if (i >= toTRUE | never evaluated | FALSE | evaluated 1686 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 0-1686 |
647 | goto never executed: goto end; end;never executed: goto end; | 0 |
648 | | - |
649 | ch = str.at(i); | - |
650 | if ((ch >= '0'TRUE | evaluated 1686 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | never evaluated |
&& ch <= '9'TRUE | evaluated 1419 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 267 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) || (ch >= 'A'TRUE | evaluated 267 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | never evaluated |
&& ch <= 'F'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 266 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) || (ch >= 'a'TRUE | evaluated 265 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 1 time by 1 test |
&& ch <= 'f'TRUE | evaluated 265 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | never evaluated |
)) | 0-1686 |
651 | gotoexecuted 1685 times by 4 tests: goto StHexEscape; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
StHexEscape;executed 1685 times by 4 tests: goto StHexEscape; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 1685 |
652 | }executed 1 time by 1 test: end of block else if (ch >= '0'TRUE | evaluated 3527 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 15 times by 1 test |
&& ch <= '7'TRUE | evaluated 3523 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 4 times by 1 test |
) { | 1-3527 |
653 | escapeVal = ch - '0'; | - |
654 | gotoexecuted 3523 times by 4 tests: goto StOctEscape; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
StOctEscape;executed 3523 times by 4 tests: goto StOctEscape; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 3523 |
655 | } else if (ch == '\n'TRUE | evaluated 6 times by 1 test | FALSE | evaluated 13 times by 1 test |
|| ch == '\r'TRUE | evaluated 6 times by 1 test | FALSE | evaluated 7 times by 1 test |
) { | 6-13 |
656 | if (i < toTRUE | evaluated 7 times by 1 test | FALSE | evaluated 5 times by 1 test |
) { | 5-7 |
657 | char ch2 = str.at(i); | - |
658 | | - |
659 | if ((ch2 == '\n'TRUE | evaluated 3 times by 1 test | FALSE | evaluated 4 times by 1 test |
|| ch2 == '\r'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
) && ch2 != chTRUE | evaluated 5 times by 1 test | FALSE | never evaluated |
) | 0-5 |
660 | ++executed 5 times by 1 test: ++i; i;executed 5 times by 1 test: ++i; | 5 |
661 | }executed 7 times by 1 test: end of block | 7 |
662 | }executed 12 times by 1 test: end of block else { | 12 |
663 | | - |
664 | }executed 7 times by 1 test: end of block | 7 |
665 | chopLimit = stringResult.length(); | - |
666 | break;executed 20 times by 1 test: break; | 20 |
667 | caseexecuted 44 times by 1 test: case '"': '"':executed 44 times by 1 test: case '"': | 44 |
668 | ++i; | - |
669 | currentValueIsQuoted = true; | - |
670 | inQuotedString = !inQuotedString; | - |
671 | if (!inQuotedStringTRUE | evaluated 20 times by 1 test | FALSE | evaluated 24 times by 1 test |
) | 20-24 |
672 | gotoexecuted 20 times by 1 test: goto StSkipSpaces; StSkipSpaces;executed 20 times by 1 test: goto StSkipSpaces; | 20 |
673 | break;executed 24 times by 1 test: break; | 24 |
674 | caseexecuted 8876 times by 28 tests: case ',': Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
',':executed 8876 times by 28 tests: case ',': Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 8876 |
675 | if (!inQuotedStringTRUE | evaluated 8872 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 4 times by 1 test |
) { | 4-8872 |
676 | if (!currentValueIsQuotedTRUE | evaluated 8863 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 9 times by 1 test |
) | 9-8863 |
677 | iniChopTrailingSpaces(stringResult, chopLimit);executed 8863 times by 28 tests: iniChopTrailingSpaces(stringResult, chopLimit); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 8863 |
678 | if (!isStringListTRUE | evaluated 82 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 8790 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 82-8790 |
679 | isStringList = true; | - |
680 | stringListResult.clear(); | - |
681 | stringResult.squeeze(); | - |
682 | }executed 82 times by 28 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 82 |
683 | stringListResult.append(stringResult); | - |
684 | stringResult.clear(); | - |
685 | currentValueIsQuoted = false; | - |
686 | ++i; | - |
687 | gotoexecuted 8872 times by 28 tests: goto StSkipSpaces; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
StSkipSpaces;executed 8872 times by 28 tests: goto StSkipSpaces; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 8872 |
688 | } | - |
689 | | - |
690 | defaultexecuted 39706 times by 29 tests: default: Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
:executed 39706 times by 29 tests: default: Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
code before this statement executed 4 times by 1 test: default: { | 4-39706 |
691 | int j = i + 1; | - |
692 | while (j < toTRUE | evaluated 274077 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 30164 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 30164-274077 |
693 | ch = str.at(j); | - |
694 | if (ch == '\\'TRUE | evaluated 668 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 273409 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
|| ch == '"'TRUE | evaluated 17 times by 1 test | FALSE | evaluated 273392 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
|| ch == ','TRUE | evaluated 8857 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 264535 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) | 17-273409 |
695 | break;executed 9542 times by 28 tests: break; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 9542 |
696 | ++j; | - |
697 | }executed 264535 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 264535 |
698 | | - |
699 | | - |
700 | | - |
701 | | - |
702 | if (codecTRUE | evaluated 4 times by 1 test | FALSE | evaluated 39702 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 4-39702 |
703 | stringResult += codec->toUnicode(str.constData() + i, j - i); | - |
704 | }executed 4 times by 1 test: end of block else | 4 |
705 | | - |
706 | { | - |
707 | int n = stringResult.size(); | - |
708 | stringResult.resize(n + (j - i)); | - |
709 | QChar *resultData = stringResult.data() + n; | - |
710 | for (int k = i; k < jTRUE | evaluated 304205 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 39702 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
; ++k) | 39702-304205 |
711 | *executed 304205 times by 29 tests: *resultData++ = QLatin1Char(str.at(k)); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
resultData++ = QLatin1Char(str.at(k));executed 304205 times by 29 tests: *resultData++ = QLatin1Char(str.at(k)); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 304205 |
712 | }executed 39702 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 39702 |
713 | i = j; | - |
714 | } | - |
715 | }executed 39706 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 39706 |
716 | } | - |
717 | if (!currentValueIsQuotedTRUE | evaluated 30180 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 15 times by 1 test |
) | 15-30180 |
718 | iniChopTrailingSpaces(stringResult, chopLimit);executed 30180 times by 29 tests: iniChopTrailingSpaces(stringResult, chopLimit); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 30180 |
719 | gotoexecuted 30195 times by 29 tests: goto end; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
end;executed 30195 times by 29 tests: goto end; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 30195 |
720 | | - |
721 | StHexEscape: | - |
722 | if (i >= toTRUE | evaluated 3 times by 1 test | FALSE | evaluated 4346 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 3-4346 |
723 | stringResult += QChar(escapeVal); | - |
724 | gotoexecuted 3 times by 1 test: goto end; end;executed 3 times by 1 test: goto end; | 3 |
725 | } | - |
726 | | - |
727 | ch = str.at(i); | - |
728 | if (ch >= 'a'TRUE | evaluated 511 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 3835 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 511-3835 |
729 | ch -= 'a' - 'A';executed 511 times by 4 tests: ch -= 'a' - 'A'; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 511 |
730 | if ((ch >= '0'TRUE | evaluated 4241 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 105 times by 3 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
|
&& ch <= '9'TRUE | evaluated 2148 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 2093 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) || (ch >= 'A'TRUE | evaluated 2093 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 105 times by 3 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
|
&& ch <= 'F'TRUE | evaluated 516 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 1577 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
)) { | 105-4241 |
731 | escapeVal <<= 4; | - |
732 | escapeVal += strchr(hexDigits, ch) - hexDigits; | - |
733 | ++i; | - |
734 | gotoexecuted 2664 times by 4 tests: goto StHexEscape; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
StHexEscape;executed 2664 times by 4 tests: goto StHexEscape; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 2664 |
735 | } else { | - |
736 | stringResult += QChar(escapeVal); | - |
737 | gotoexecuted 1682 times by 4 tests: goto StNormal; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
StNormal;executed 1682 times by 4 tests: goto StNormal; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 1682 |
738 | } | - |
739 | | - |
740 | StOctEscape: | - |
741 | if (i >= toTRUE | never evaluated | FALSE | evaluated 3538 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 0-3538 |
742 | stringResult += QChar(escapeVal); | - |
743 | goto never executed: goto end; end;never executed: goto end; | 0 |
744 | } | - |
745 | | - |
746 | ch = str.at(i); | - |
747 | if (ch >= '0'TRUE | evaluated 3447 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 91 times by 2 testsEvaluated by:- tst_QSettings
- tst_languageChange
|
&& ch <= '7'TRUE | evaluated 15 times by 1 test | FALSE | evaluated 3432 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 15-3447 |
748 | escapeVal <<= 3; | - |
749 | escapeVal += ch - '0'; | - |
750 | ++i; | - |
751 | gotoexecuted 15 times by 1 test: goto StOctEscape; StOctEscape;executed 15 times by 1 test: goto StOctEscape; | 15 |
752 | } else { | - |
753 | stringResult += QChar(escapeVal); | - |
754 | gotoexecuted 3523 times by 4 tests: goto StNormal; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
StNormal;executed 3523 times by 4 tests: goto StNormal; Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 3523 |
755 | } | - |
756 | | - |
757 | end: | - |
758 | if (isStringListTRUE | evaluated 82 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 30119 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) | 82-30119 |
759 | stringListResult.append(stringResult);executed 82 times by 28 tests: stringListResult.append(stringResult); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 82 |
760 | returnexecuted 30201 times by 29 tests: return isStringList; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
isStringList;executed 30201 times by 29 tests: return isStringList; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 30201 |
761 | } | - |
762 | | - |
763 | QStringList QSettingsPrivate::splitArgs(const QString &s, int idx) | - |
764 | { | - |
765 | int l = s.length(); | - |
766 | ((!(l > 0)) ? qt_assert("l > 0",__FILE__,898) : qt_noop()); | - |
767 | ((!(s.at(idx) == QLatin1Char('('))) ? qt_assert("s.at(idx) == QLatin1Char('(')",__FILE__,899) : qt_noop()); | - |
768 | ((!(s.at(l - 1) == QLatin1Char(')'))) ? qt_assert("s.at(l - 1) == QLatin1Char(')')",__FILE__,900) : qt_noop()); | - |
769 | | - |
770 | QStringList result; | - |
771 | QString item; | - |
772 | | - |
773 | for (++idx; idx < lTRUE | evaluated 711 times by 1 test | FALSE | evaluated 125 times by 1 test |
; ++idx) { | 125-711 |
774 | QChar c = s.at(idx); | - |
775 | if (c == QLatin1Char(')')TRUE | evaluated 125 times by 1 test | FALSE | evaluated 586 times by 1 test |
) { | 125-586 |
776 | ((!(idx == l - 1)) ? qt_assert("idx == l - 1",__FILE__,908) : qt_noop()); | - |
777 | result.append(item); | - |
778 | }executed 125 times by 1 test: end of block else if (c == QLatin1Char(' ')TRUE | evaluated 211 times by 1 test | FALSE | evaluated 375 times by 1 test |
) { | 125-375 |
779 | result.append(item); | - |
780 | item.clear(); | - |
781 | }executed 211 times by 1 test: end of block else { | 211 |
782 | item.append(c); | - |
783 | }executed 375 times by 1 test: end of block | 375 |
784 | } | - |
785 | | - |
786 | returnexecuted 125 times by 1 test: return result; result;executed 125 times by 1 test: return result; | 125 |
787 | } | - |
788 | | - |
789 | | - |
790 | | - |
791 | | - |
792 | void QConfFileSettingsPrivate::initFormat() | - |
793 | { | - |
794 | extension = (TRUE | evaluated 1179 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| FALSE | evaluated 497 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
|
format == QSettings::NativeFormat)TRUE | evaluated 1179 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| FALSE | evaluated 497 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
|
? QLatin1String(".conf") : QLatin1String(".ini"); | 497-1179 |
795 | readFunc = 0; | - |
796 | writeFunc = 0; | - |
797 | | - |
798 | | - |
799 | | - |
800 | caseSensitivity = IniCaseSensitivity; | - |
801 | | - |
802 | | - |
803 | if (format > QSettings::IniFormatTRUE | evaluated 176 times by 1 test | FALSE | evaluated 1500 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 176-1500 |
804 | QMutexLocker locker(&settingsGlobalMutex); | - |
805 | const CustomFormatVector *customFormatVector = customFormatVectorFunc(); | - |
806 | | - |
807 | int i = (int)format - (int)QSettings::CustomFormat1; | - |
808 | if (i >= 0TRUE | evaluated 176 times by 1 test | FALSE | never evaluated |
&& i < customFormatVector->size()TRUE | evaluated 175 times by 1 test | FALSE | evaluated 1 time by 1 test |
) { | 0-176 |
809 | QConfFileCustomFormat info = customFormatVector->at(i); | - |
810 | extension = info.extension; | - |
811 | readFunc = info.readFunc; | - |
812 | writeFunc = info.writeFunc; | - |
813 | caseSensitivity = info.caseSensitivity; | - |
814 | }executed 175 times by 1 test: end of block | 175 |
815 | }executed 176 times by 1 test: end of block | 176 |
816 | }executed 1676 times by 31 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 1676 |
817 | | - |
818 | void QConfFileSettingsPrivate::initAccess() | - |
819 | { | - |
820 | if (confFiles[spec]TRUE | evaluated 1676 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | never evaluated |
) { | 0-1676 |
821 | if (format > QSettings::IniFormatTRUE | evaluated 176 times by 1 test | FALSE | evaluated 1500 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 176-1500 |
822 | if (!readFuncTRUE | evaluated 1 time by 1 test | FALSE | evaluated 175 times by 1 test |
) | 1-175 |
823 | setStatus(QSettings::AccessError);executed 1 time by 1 test: setStatus(QSettings::AccessError); | 1 |
824 | }executed 176 times by 1 test: end of block | 176 |
825 | }executed 1676 times by 31 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 1676 |
826 | | - |
827 | sync(); | - |
828 | }executed 1676 times by 31 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 1676 |
829 | static inline int pathHashKey(QSettings::Format format, QSettings::Scope scope) | - |
830 | { | - |
831 | returnexecuted 3453 times by 7 tests: return int((uint(format) << 1) | uint(scope == QSettings::SystemScope)); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
int((uint(format) << 1) | uint(scope == QSettings::SystemScope));executed 3453 times by 7 tests: return int((uint(format) << 1) | uint(scope == QSettings::SystemScope)); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| 3453 |
832 | } | - |
833 | | - |
834 | | - |
835 | static QString make_user_path() | - |
836 | { | - |
837 | static constexpr QChar sep = QLatin1Char('/'); | - |
838 | returnexecuted 7 times by 7 tests: return QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + sep; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + sep;executed 7 times by 7 tests: return QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + sep; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| 7 |
839 | | - |
840 | } | - |
841 | | - |
842 | | - |
843 | static void initDefaultPaths(QMutexLocker *locker) | - |
844 | { | - |
845 | PathHash *pathHash = pathHashFunc(); | - |
846 | | - |
847 | locker->unlock(); | - |
848 | | - |
849 | | - |
850 | | - |
851 | | - |
852 | | - |
853 | | - |
854 | QString systemPath = QLibraryInfo::location(QLibraryInfo::SettingsPath) + QLatin1Char('/'); | - |
855 | | - |
856 | locker->relock(); | - |
857 | if (pathHash->isEmpty()TRUE | evaluated 7 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| FALSE | never evaluated |
) { | 0-7 |
858 | const QString userPath = make_user_path(); | - |
859 | pathHash->insert(pathHashKey(QSettings::IniFormat, QSettings::UserScope), userPath); | - |
860 | pathHash->insert(pathHashKey(QSettings::IniFormat, QSettings::SystemScope), systemPath); | - |
861 | | - |
862 | pathHash->insert(pathHashKey(QSettings::NativeFormat, QSettings::UserScope), userPath); | - |
863 | pathHash->insert(pathHashKey(QSettings::NativeFormat, QSettings::SystemScope), systemPath); | - |
864 | | - |
865 | | - |
866 | }executed 7 times by 7 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| 7 |
867 | }executed 7 times by 7 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| 7 |
868 | | - |
869 | static QString getPath(QSettings::Format format, QSettings::Scope scope) | - |
870 | { | - |
871 | ((!((int)QSettings::NativeFormat == 0)) ? qt_assert("(int)QSettings::NativeFormat == 0",__FILE__,1099) : qt_noop()); | - |
872 | ((!((int)QSettings::IniFormat == 1)) ? qt_assert("(int)QSettings::IniFormat == 1",__FILE__,1100) : qt_noop()); | - |
873 | | - |
874 | QMutexLocker locker(&settingsGlobalMutex); | - |
875 | PathHash *pathHash = pathHashFunc(); | - |
876 | if (pathHash->isEmpty()TRUE | evaluated 6 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QTextFormat
- tst_languageChange
| FALSE | evaluated 2743 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
|
) | 6-2743 |
877 | initDefaultPaths(&locker);executed 6 times by 6 tests: initDefaultPaths(&locker); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QTextFormat
- tst_languageChange
| 6 |
878 | | - |
879 | QString result = pathHash->value(pathHashKey(format, scope)); | - |
880 | if (!result.isEmpty()TRUE | evaluated 2641 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| FALSE | evaluated 108 times by 1 test |
) | 108-2641 |
881 | returnexecuted 2641 times by 7 tests: return result; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
result;executed 2641 times by 7 tests: return result; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| 2641 |
882 | | - |
883 | | - |
884 | returnexecuted 108 times by 1 test: return pathHash->value(pathHashKey(QSettings::IniFormat, scope)); pathHash->value(pathHashKey(QSettings::IniFormat, scope));executed 108 times by 1 test: return pathHash->value(pathHashKey(QSettings::IniFormat, scope)); | 108 |
885 | } | - |
886 | | - |
887 | QConfFileSettingsPrivate::QConfFileSettingsPrivate(QSettings::Format format, | - |
888 | QSettings::Scope scope, | - |
889 | const QString &organization, | - |
890 | const QString &application) | - |
891 | : QSettingsPrivate(format, scope, organization, application), | - |
892 | nextPosition(0x40000000) | - |
893 | { | - |
894 | int i; | - |
895 | initFormat(); | - |
896 | | - |
897 | QString org = organization; | - |
898 | if (org.isEmpty()TRUE | evaluated 8 times by 1 test | FALSE | evaluated 1420 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
|
) { | 8-1420 |
899 | setStatus(QSettings::AccessError); | - |
900 | org = QLatin1String("Unknown Organization"); | - |
901 | }executed 8 times by 1 test: end of block | 8 |
902 | | - |
903 | QString appFile = org + QDir::separator() + application + extension; | - |
904 | QString orgFile = org + extension; | - |
905 | | - |
906 | if (scope == QSettings::UserScopeTRUE | evaluated 1321 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| FALSE | evaluated 107 times by 1 test |
) { | 107-1321 |
907 | QString userPath = getPath(format, QSettings::UserScope); | - |
908 | if (!application.isEmpty()TRUE | evaluated 256 times by 2 testsEvaluated by:- tst_QSettings
- tst_QTextFormat
| FALSE | evaluated 1065 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 256-1065 |
909 | confFiles[F_User | F_Application].reset(QConfFile::fromName(userPath + appFile, true));executed 256 times by 2 tests: confFiles[F_User | F_Application].reset(QConfFile::fromName(userPath + appFile, true)); Executed by:- tst_QSettings
- tst_QTextFormat
| 256 |
910 | confFiles[F_User | F_Organization].reset(QConfFile::fromName(userPath + orgFile, true)); | - |
911 | }executed 1321 times by 7 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| 1321 |
912 | | - |
913 | QString systemPath = getPath(format, QSettings::SystemScope); | - |
914 | if (!application.isEmpty()TRUE | evaluated 298 times by 2 testsEvaluated by:- tst_QSettings
- tst_QTextFormat
| FALSE | evaluated 1130 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 298-1130 |
915 | confFiles[F_System | F_Application].reset(QConfFile::fromName(systemPath + appFile, false));executed 298 times by 2 tests: confFiles[F_System | F_Application].reset(QConfFile::fromName(systemPath + appFile, false)); Executed by:- tst_QSettings
- tst_QTextFormat
| 298 |
916 | confFiles[F_System | F_Organization].reset(QConfFile::fromName(systemPath + orgFile, false)); | - |
917 | | - |
918 | for (i = 0; i < NumConfFilesTRUE | evaluated 2772 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| FALSE | never evaluated |
; ++i) { | 0-2772 |
919 | if (confFiles[i]TRUE | evaluated 1428 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| FALSE | evaluated 1344 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 1344-1428 |
920 | spec = i; | - |
921 | break;executed 1428 times by 7 tests: break; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| 1428 |
922 | } | - |
923 | }executed 1344 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 1344 |
924 | | - |
925 | initAccess(); | - |
926 | }executed 1428 times by 7 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| 1428 |
927 | | - |
928 | QConfFileSettingsPrivate::QConfFileSettingsPrivate(const QString &fileName, | - |
929 | QSettings::Format format) | - |
930 | : QSettingsPrivate(format), | - |
931 | nextPosition(0x40000000) | - |
932 | { | - |
933 | initFormat(); | - |
934 | | - |
935 | confFiles[0].reset(QConfFile::fromName(fileName, true)); | - |
936 | | - |
937 | initAccess(); | - |
938 | }executed 248 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| 248 |
939 | | - |
940 | QConfFileSettingsPrivate::~QConfFileSettingsPrivate() | - |
941 | { | - |
942 | QMutexLocker locker(&settingsGlobalMutex); | - |
943 | ConfFileHash *usedHash = usedHashFunc(); | - |
944 | ConfFileCache *unusedCache = unusedCacheFunc(); | - |
945 | | - |
946 | for (int i = 0; i < NumConfFilesTRUE | evaluated 6704 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 1676 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
; ++i) { | 1676-6704 |
947 | if (confFiles[i] && !confFiles[i]->ref.deref()TRUE | evaluated 3336 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 215 times by 1 test |
) { | 215-3336 |
948 | if (confFiles[i]->size == 0TRUE | evaluated 2282 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
| FALSE | evaluated 1054 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 1054-2282 |
949 | delete confFiles[i].take(); | - |
950 | }executed 2282 times by 7 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
else { | 2282 |
951 | if (usedHashTRUE | evaluated 1054 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | never evaluated |
) | 0-1054 |
952 | usedHash->remove(confFiles[i]->name);executed 1054 times by 30 tests: usedHash->remove(confFiles[i]->name); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 1054 |
953 | if (unusedCacheTRUE | evaluated 1054 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | never evaluated |
) { | 0-1054 |
954 | try { | - |
955 | | - |
956 | unusedCache->insert(confFiles[i]->name, confFiles[i].data(), | - |
957 | 10 + (confFiles[i]->originalKeys.size() / 4)); | - |
958 | confFiles[i].take(); | - |
959 | }executed 1054 times by 30 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
catch (...) { | 1054 |
960 | | - |
961 | delete confFiles[i].take(); | - |
962 | } never executed: end of block | 0 |
963 | } else { | - |
964 | | - |
965 | delete confFiles[i].take(); | - |
966 | } never executed: end of block | 0 |
967 | } | - |
968 | } | - |
969 | | - |
970 | confFiles[i].take(); | - |
971 | }executed 6704 times by 31 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 6704 |
972 | }executed 1676 times by 31 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 1676 |
973 | | - |
974 | void QConfFileSettingsPrivate::remove(const QString &key) | - |
975 | { | - |
976 | QConfFile *confFile = confFiles[spec].data(); | - |
977 | if (!confFileTRUE | never evaluated | FALSE | evaluated 263 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
|
) | 0-263 |
978 | return; never executed: return; | 0 |
979 | | - |
980 | QSettingsKey theKey(key, caseSensitivity); | - |
981 | QSettingsKey prefix(key + QLatin1Char('/'), caseSensitivity); | - |
982 | QMutexLocker locker(&confFile->mutex); | - |
983 | | - |
984 | ensureSectionParsed(confFile, theKey); | - |
985 | ensureSectionParsed(confFile, prefix); | - |
986 | | - |
987 | ParsedSettingsMap::iterator i = confFile->addedKeys.lowerBound(prefix); | - |
988 | while (i != confFile->addedKeys.end()TRUE | evaluated 25 times by 1 test | FALSE | evaluated 250 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
|
&& i.key().startsWith(prefix)TRUE | evaluated 12 times by 1 test | FALSE | evaluated 13 times by 1 test |
) | 12-250 |
989 | i = confFile->addedKeys.erase(i);executed 12 times by 1 test: i = confFile->addedKeys.erase(i); | 12 |
990 | confFile->addedKeys.remove(theKey); | - |
991 | | - |
992 | ParsedSettingsMap::const_iterator j = const_cast<const ParsedSettingsMap *>(&confFile->originalKeys)->lowerBound(prefix); | - |
993 | while (j != confFile->originalKeys.constEnd()TRUE | evaluated 767 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| FALSE | evaluated 247 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
|
&& j.key().startsWith(prefix)TRUE | evaluated 751 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| FALSE | evaluated 16 times by 1 test |
) { | 16-767 |
994 | confFile->removedKeys.insert(j.key(), QVariant()); | - |
995 | ++j; | - |
996 | }executed 751 times by 3 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| 751 |
997 | if (confFile->originalKeys.contains(theKey)TRUE | evaluated 5 times by 1 test | FALSE | evaluated 258 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
|
) | 5-258 |
998 | confFile->removedKeys.insert(theKey, QVariant());executed 5 times by 1 test: confFile->removedKeys.insert(theKey, QVariant()); | 5 |
999 | }executed 263 times by 3 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| 263 |
1000 | | - |
1001 | void QConfFileSettingsPrivate::set(const QString &key, const QVariant &value) | - |
1002 | { | - |
1003 | QConfFile *confFile = confFiles[spec].data(); | - |
1004 | if (!confFileTRUE | never evaluated | FALSE | evaluated 2444 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 0-2444 |
1005 | return; never executed: return; | 0 |
1006 | | - |
1007 | QSettingsKey theKey(key, caseSensitivity, nextPosition++); | - |
1008 | QMutexLocker locker(&confFile->mutex); | - |
1009 | confFile->removedKeys.remove(theKey); | - |
1010 | confFile->addedKeys.insert(theKey, value); | - |
1011 | }executed 2444 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 2444 |
1012 | | - |
1013 | bool QConfFileSettingsPrivate::get(const QString &key, QVariant *value) const | - |
1014 | { | - |
1015 | QSettingsKey theKey(key, caseSensitivity); | - |
1016 | ParsedSettingsMap::const_iterator j; | - |
1017 | bool found = false; | - |
1018 | | - |
1019 | for (int i = 0; i < NumConfFilesTRUE | evaluated 117684 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 23081 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QTextFormat
- ...
|
; ++i) { | 23081-117684 |
1020 | if (QConfFile *confFile = confFiles[i].data()TRUE | evaluated 47110 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 70574 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 47110-70574 |
1021 | QMutexLocker locker(&confFile->mutex); | - |
1022 | | - |
1023 | if (!confFile->addedKeys.isEmpty()TRUE | evaluated 723 times by 1 test | FALSE | evaluated 46387 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 723-46387 |
1024 | j = confFile->addedKeys.constFind(theKey); | - |
1025 | found = (j != confFile->addedKeys.constEnd()); | - |
1026 | }executed 723 times by 1 test: end of block | 723 |
1027 | if (!foundTRUE | evaluated 46509 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 601 times by 1 test |
) { | 601-46509 |
1028 | ensureSectionParsed(confFile, theKey); | - |
1029 | j = confFile->originalKeys.constFind(theKey); | - |
1030 | found = (j != confFile->originalKeys.constEnd()TRUE | evaluated 22818 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 23691 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QTextFormat
- ...
|
| 22818-23691 |
1031 | && !confFile->removedKeys.contains(theKey)TRUE | evaluated 22813 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 5 times by 1 test |
); | 5-22813 |
1032 | }executed 46509 times by 30 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 46509 |
1033 | | - |
1034 | if (foundTRUE | evaluated 23414 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 23696 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QTextFormat
- ...
|
&& valueTRUE | evaluated 23295 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 119 times by 1 test |
) | 119-23696 |
1035 | *executed 23295 times by 28 tests: *value = *j; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
value = *j;executed 23295 times by 28 tests: *value = *j; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 23295 |
1036 | | - |
1037 | if (foundTRUE | evaluated 23414 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 23696 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QTextFormat
- ...
|
) | 23414-23696 |
1038 | returnexecuted 23414 times by 28 tests: return true; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
true;executed 23414 times by 28 tests: return true; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 23414 |
1039 | if (!fallbacksTRUE | evaluated 24 times by 1 test | FALSE | evaluated 23672 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QTextFormat
- ...
|
) | 24-23672 |
1040 | break;executed 24 times by 1 test: break; | 24 |
1041 | }executed 23672 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QTextFormat
- ...
| 23672 |
1042 | }executed 94246 times by 30 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 94246 |
1043 | returnexecuted 23105 times by 29 tests: return false; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QTextFormat
- ...
false;executed 23105 times by 29 tests: return false; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QTextFormat
- ...
| 23105 |
1044 | } | - |
1045 | | - |
1046 | QStringList QConfFileSettingsPrivate::children(const QString &prefix, ChildSpec spec) const | - |
1047 | { | - |
1048 | QStringList result; | - |
1049 | ParsedSettingsMap::const_iterator j; | - |
1050 | | - |
1051 | QSettingsKey thePrefix(prefix, caseSensitivity); | - |
1052 | int startPos = prefix.size(); | - |
1053 | | - |
1054 | for (int i = 0; i < NumConfFilesTRUE | evaluated 4144 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| FALSE | evaluated 764 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
|
; ++i) { | 764-4144 |
1055 | if (QConfFile *confFile = confFiles[i].data()TRUE | evaluated 1805 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| FALSE | evaluated 2339 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
|
) { | 1805-2339 |
1056 | QMutexLocker locker(&confFile->mutex); | - |
1057 | | - |
1058 | if (thePrefix.isEmpty()TRUE | evaluated 1321 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| FALSE | evaluated 484 times by 1 test |
) { | 484-1321 |
1059 | ensureAllSectionsParsed(confFile); | - |
1060 | }executed 1321 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
else { | 1321 |
1061 | ensureSectionParsed(confFile, thePrefix); | - |
1062 | }executed 484 times by 1 test: end of block | 484 |
1063 | | - |
1064 | j = const_cast<const ParsedSettingsMap *>( | - |
1065 | &confFile->originalKeys)->lowerBound( thePrefix); | - |
1066 | while (j != confFile->originalKeys.constEnd()TRUE | evaluated 33448 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| FALSE | evaluated 1649 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
|
&& j.key().startsWith(thePrefix)TRUE | evaluated 33292 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| FALSE | evaluated 156 times by 1 test |
) { | 156-33448 |
1067 | if (!confFile->removedKeys.contains(j.key())TRUE | evaluated 33286 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| FALSE | evaluated 6 times by 1 test |
) | 6-33286 |
1068 | processChild(j.key().originalCaseKey().midRef(startPos), spec, result);executed 33286 times by 28 tests: processChild(j.key().originalCaseKey().midRef(startPos), spec, result); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| 33286 |
1069 | ++j; | - |
1070 | }executed 33292 times by 28 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| 33292 |
1071 | | - |
1072 | j = const_cast<const ParsedSettingsMap *>( | - |
1073 | &confFile->addedKeys)->lowerBound(thePrefix); | - |
1074 | while (j != confFile->addedKeys.constEnd()TRUE | evaluated 404 times by 1 test | FALSE | evaluated 1768 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
|
&& j.key().startsWith(thePrefix)TRUE | evaluated 367 times by 1 test | FALSE | evaluated 37 times by 1 test |
) { | 37-1768 |
1075 | processChild(j.key().originalCaseKey().midRef(startPos), spec, result); | - |
1076 | ++j; | - |
1077 | }executed 367 times by 1 test: end of block | 367 |
1078 | | - |
1079 | if (!fallbacksTRUE | evaluated 292 times by 1 test | FALSE | evaluated 1513 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
|
) | 292-1513 |
1080 | break;executed 292 times by 1 test: break; | 292 |
1081 | }executed 1513 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| 1513 |
1082 | }executed 3852 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| 3852 |
1083 | std::sort(result.begin(), result.end()); | - |
1084 | result.erase(std::unique(result.begin(), result.end()), | - |
1085 | result.end()); | - |
1086 | returnexecuted 1056 times by 29 tests: return result; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
result;executed 1056 times by 29 tests: return result; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| 1056 |
1087 | } | - |
1088 | | - |
1089 | void QConfFileSettingsPrivate::clear() | - |
1090 | { | - |
1091 | QConfFile *confFile = confFiles[spec].data(); | - |
1092 | if (!confFileTRUE | never evaluated | FALSE | evaluated 16 times by 1 test |
) | 0-16 |
1093 | return; never executed: return; | 0 |
1094 | | - |
1095 | QMutexLocker locker(&confFile->mutex); | - |
1096 | ensureAllSectionsParsed(confFile); | - |
1097 | confFile->addedKeys.clear(); | - |
1098 | confFile->removedKeys = confFile->originalKeys; | - |
1099 | }executed 16 times by 1 test: end of block | 16 |
1100 | | - |
1101 | void QConfFileSettingsPrivate::sync() | - |
1102 | { | - |
1103 | | - |
1104 | | - |
1105 | | - |
1106 | for (int i = 0; i < NumConfFilesTRUE | evaluated 9228 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 2307 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
; ++i) { | 2307-9228 |
1107 | QConfFile *confFile = confFiles[i].data(); | - |
1108 | if (confFileTRUE | evaluated 5102 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 4126 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 4126-5102 |
1109 | QMutexLocker locker(&confFile->mutex); | - |
1110 | syncConfFile(i); | - |
1111 | }executed 5102 times by 31 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 5102 |
1112 | }executed 9228 times by 31 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 9228 |
1113 | }executed 2307 times by 31 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 2307 |
1114 | | - |
1115 | void QConfFileSettingsPrivate::flush() | - |
1116 | { | - |
1117 | sync(); | - |
1118 | }executed 567 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 567 |
1119 | | - |
1120 | QString QConfFileSettingsPrivate::fileName() const | - |
1121 | { | - |
1122 | QConfFile *confFile = confFiles[spec].data(); | - |
1123 | if (!confFileTRUE | never evaluated | FALSE | evaluated 27 times by 1 test |
) | 0-27 |
1124 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
1125 | returnexecuted 27 times by 1 test: return confFile->name; confFile->name;executed 27 times by 1 test: return confFile->name; | 27 |
1126 | } | - |
1127 | | - |
1128 | bool QConfFileSettingsPrivate::isWritable() const | - |
1129 | { | - |
1130 | if (format > QSettings::IniFormatTRUE | evaluated 12 times by 1 test | FALSE | evaluated 9 times by 1 test |
&& !writeFuncTRUE | evaluated 1 time by 1 test | FALSE | evaluated 11 times by 1 test |
) | 1-12 |
1131 | returnexecuted 1 time by 1 test: return false; false;executed 1 time by 1 test: return false; | 1 |
1132 | | - |
1133 | QConfFile *confFile = confFiles[spec].data(); | - |
1134 | if (!confFileTRUE | never evaluated | FALSE | evaluated 20 times by 1 test |
) | 0-20 |
1135 | return never executed: return false; false;never executed: return false; | 0 |
1136 | | - |
1137 | returnexecuted 20 times by 1 test: return confFile->isWritable(); confFile->isWritable();executed 20 times by 1 test: return confFile->isWritable(); | 20 |
1138 | } | - |
1139 | | - |
1140 | void QConfFileSettingsPrivate::syncConfFile(int confFileNo) | - |
1141 | { | - |
1142 | QConfFile *confFile = confFiles[confFileNo].data(); | - |
1143 | bool readOnly = confFile->addedKeys.isEmpty()TRUE | evaluated 4646 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 456 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
&& confFile->removedKeys.isEmpty()TRUE | evaluated 4535 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 111 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
|
; | 111-4646 |
1144 | bool ok; | - |
1145 | | - |
1146 | | - |
1147 | | - |
1148 | | - |
1149 | | - |
1150 | if (readOnlyTRUE | evaluated 4535 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 567 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
&& confFile->size > 0TRUE | evaluated 828 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 3707 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 567-4535 |
1151 | QFileInfo fileInfo(confFile->name); | - |
1152 | if (confFile->size == fileInfo.size()TRUE | evaluated 783 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 45 times by 1 test |
&& confFile->timeStamp == fileInfo.lastModified()TRUE | evaluated 783 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
| FALSE | never evaluated |
) | 0-783 |
1153 | return;executed 783 times by 7 tests: return; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QSettings
- tst_languageChange
| 783 |
1154 | }executed 45 times by 1 test: end of block | 45 |
1155 | QLockFile lockFile(confFile->name + QLatin1String(".lock")); | - |
1156 | | - |
1157 | if (!readOnlyTRUE | evaluated 567 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 3752 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 567-3752 |
1158 | if (!confFile->isWritable()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 565 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
| 2-565 |
1159 | | - |
1160 | || !lockFile.lock()TRUE | never evaluated | FALSE | evaluated 565 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
| 0-565 |
1161 | | - |
1162 | ) { | - |
1163 | setStatus(QSettings::AccessError); | - |
1164 | return;executed 2 times by 1 test: return; | 2 |
1165 | } | - |
1166 | }executed 565 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 565 |
1167 | | - |
1168 | | - |
1169 | | - |
1170 | | - |
1171 | | - |
1172 | QFileInfo fileInfo(confFile->name); | - |
1173 | bool mustReadFile = true; | - |
1174 | bool createFile = !fileInfo.exists(); | - |
1175 | | - |
1176 | if (!readOnlyTRUE | evaluated 565 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 3752 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) | 565-3752 |
1177 | mustReadFile = (confFile->size != fileInfo.size()TRUE | evaluated 1 time by 1 test | FALSE | evaluated 564 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
executed 565 times by 6 tests: mustReadFile = (confFile->size != fileInfo.size() || (confFile->size != 0 && confFile->timeStamp != fileInfo.lastModified())); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 1-565 |
1178 | || (confFile->size != 0TRUE | evaluated 341 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 223 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
|
&& confFile->timeStamp != fileInfo.lastModified()TRUE | never evaluated | FALSE | evaluated 341 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
));executed 565 times by 6 tests: mustReadFile = (confFile->size != fileInfo.size() || (confFile->size != 0 && confFile->timeStamp != fileInfo.lastModified())); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 0-565 |
1179 | | - |
1180 | if (mustReadFileTRUE | evaluated 3753 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 564 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 564-3753 |
1181 | confFile->unparsedIniSections.clear(); | - |
1182 | confFile->originalKeys.clear(); | - |
1183 | | - |
1184 | QFile file(confFile->name); | - |
1185 | if (!createFileTRUE | evaluated 848 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 2905 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
|
&& !file.open(QFile::ReadOnly)TRUE | never evaluated | FALSE | evaluated 848 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 0-2905 |
1186 | setStatus(QSettings::AccessError); | - |
1187 | return; never executed: return; | 0 |
1188 | } | - |
1189 | | - |
1190 | | - |
1191 | | - |
1192 | | - |
1193 | | - |
1194 | if (file.isReadable()TRUE | evaluated 848 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 2905 times by 7 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_QTextFormat
- tst_languageChange
|
&& fileInfo.size() != 0TRUE | evaluated 309 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 539 times by 2 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
|
) { | 309-2905 |
1195 | | - |
1196 | | - |
1197 | | - |
1198 | | - |
1199 | | - |
1200 | { | - |
1201 | if (format <= QSettings::IniFormatTRUE | evaluated 258 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 51 times by 1 test |
) { | 51-258 |
1202 | QByteArray data = file.readAll(); | - |
1203 | ok = readIniFile(data, &confFile->unparsedIniSections); | - |
1204 | }executed 258 times by 30 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
else { | 258 |
1205 | if (readFuncTRUE | evaluated 51 times by 1 test | FALSE | never evaluated |
) { | 0-51 |
1206 | QSettings::SettingsMap tempNewKeys; | - |
1207 | ok = readFunc(file, tempNewKeys); | - |
1208 | | - |
1209 | if (okTRUE | evaluated 50 times by 1 test | FALSE | evaluated 1 time by 1 test |
) { | 1-50 |
1210 | QSettings::SettingsMap::const_iterator i = tempNewKeys.constBegin(); | - |
1211 | while (i != tempNewKeys.constEnd()TRUE | evaluated 408 times by 1 test | FALSE | evaluated 50 times by 1 test |
) { | 50-408 |
1212 | confFile->originalKeys.insert(QSettingsKey(i.key(), | - |
1213 | caseSensitivity), | - |
1214 | i.value()); | - |
1215 | ++i; | - |
1216 | }executed 408 times by 1 test: end of block | 408 |
1217 | }executed 50 times by 1 test: end of block | 50 |
1218 | }executed 51 times by 1 test: end of block else { | 51 |
1219 | ok = false; | - |
1220 | } never executed: end of block | 0 |
1221 | } | - |
1222 | } | - |
1223 | | - |
1224 | if (!okTRUE | evaluated 1 time by 1 test | FALSE | evaluated 308 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) | 1-308 |
1225 | setStatus(QSettings::FormatError);executed 1 time by 1 test: setStatus(QSettings::FormatError); | 1 |
1226 | }executed 309 times by 30 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 309 |
1227 | | - |
1228 | confFile->size = fileInfo.size(); | - |
1229 | confFile->timeStamp = fileInfo.lastModified(); | - |
1230 | }executed 3753 times by 31 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 3753 |
1231 | | - |
1232 | | - |
1233 | | - |
1234 | | - |
1235 | | - |
1236 | if (!readOnlyTRUE | evaluated 565 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 3752 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 565-3752 |
1237 | ensureAllSectionsParsed(confFile); | - |
1238 | ParsedSettingsMap mergedKeys = confFile->mergedKeyMap(); | - |
1239 | | - |
1240 | | - |
1241 | | - |
1242 | | - |
1243 | | - |
1244 | | - |
1245 | { | - |
1246 | | - |
1247 | QSaveFile sf(confFile->name); | - |
1248 | | - |
1249 | | - |
1250 | | - |
1251 | if (!sf.open(QIODevice::WriteOnly)TRUE | never evaluated | FALSE | evaluated 565 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 0-565 |
1252 | setStatus(QSettings::AccessError); | - |
1253 | ok = false; | - |
1254 | } never executed: end of block else if (format <= QSettings::IniFormatTRUE | evaluated 485 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 80 times by 1 test |
) { | 0-485 |
1255 | ok = writeIniFile(sf, mergedKeys); | - |
1256 | }executed 485 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
else { | 485 |
1257 | if (writeFuncTRUE | evaluated 79 times by 1 test | FALSE | evaluated 1 time by 1 test |
) { | 1-79 |
1258 | QSettings::SettingsMap tempOriginalKeys; | - |
1259 | | - |
1260 | ParsedSettingsMap::const_iterator i = mergedKeys.constBegin(); | - |
1261 | while (i != mergedKeys.constEnd()TRUE | evaluated 418 times by 1 test | FALSE | evaluated 79 times by 1 test |
) { | 79-418 |
1262 | tempOriginalKeys.insert(i.key(), i.value()); | - |
1263 | ++i; | - |
1264 | }executed 418 times by 1 test: end of block | 418 |
1265 | ok = writeFunc(sf, tempOriginalKeys); | - |
1266 | }executed 79 times by 1 test: end of block else { | 79 |
1267 | ok = false; | - |
1268 | }executed 1 time by 1 test: end of block | 1 |
1269 | } | - |
1270 | | - |
1271 | if (okTRUE | evaluated 562 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 3 times by 1 test |
) | 3-562 |
1272 | ok = sf.commit();executed 562 times by 6 tests: ok = sf.commit(); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 562 |
1273 | | - |
1274 | } | - |
1275 | | - |
1276 | if (okTRUE | evaluated 562 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 3 times by 1 test |
) { | 3-562 |
1277 | confFile->unparsedIniSections.clear(); | - |
1278 | confFile->originalKeys = mergedKeys; | - |
1279 | confFile->addedKeys.clear(); | - |
1280 | confFile->removedKeys.clear(); | - |
1281 | | - |
1282 | QFileInfo fileInfo(confFile->name); | - |
1283 | confFile->size = fileInfo.size(); | - |
1284 | confFile->timeStamp = fileInfo.lastModified(); | - |
1285 | | - |
1286 | | - |
1287 | if (createFileTRUE | evaluated 115 times by 1 test | FALSE | evaluated 447 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 115-447 |
1288 | QFile::Permissions perms = fileInfo.permissions() | QFile::ReadOwner | QFile::WriteOwner; | - |
1289 | if (!confFile->userPermsTRUE | evaluated 32 times by 1 test | FALSE | evaluated 83 times by 1 test |
) | 32-83 |
1290 | perms |= QFile::ReadGroup | QFile::ReadOther;executed 32 times by 1 test: perms |= QFile::ReadGroup | QFile::ReadOther; | 32 |
1291 | QFile(confFile->name).setPermissions(perms); | - |
1292 | }executed 115 times by 1 test: end of block | 115 |
1293 | }executed 562 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
else { | 562 |
1294 | setStatus(QSettings::AccessError); | - |
1295 | }executed 3 times by 1 test: end of block | 3 |
1296 | } | - |
1297 | }executed 4317 times by 31 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 4317 |
1298 | | - |
1299 | enum { Space = 0x1, Special = 0x2 }; | - |
1300 | | - |
1301 | static const char charTraits[256] = | - |
1302 | { | - |
1303 | | - |
1304 | | - |
1305 | | - |
1306 | 0, 0, 0, 0, 0, 0, 0, 0, 0, Space, Space | Special, 0, 0, Space | Special, 0, 0, | - |
1307 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - |
1308 | Space, 0, Special, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - |
1309 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Special, 0, Special, 0, 0, | - |
1310 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - |
1311 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Special, 0, 0, 0, | - |
1312 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - |
1313 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - |
1314 | | - |
1315 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - |
1316 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - |
1317 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - |
1318 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - |
1319 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - |
1320 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - |
1321 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - |
1322 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 | - |
1323 | }; | - |
1324 | | - |
1325 | bool QConfFileSettingsPrivate::readIniLine(const QByteArray &data, int &dataPos, | - |
1326 | int &lineStart, int &lineLen, int &equalsPos) | - |
1327 | { | - |
1328 | int dataLen = data.length(); | - |
1329 | bool inQuotes = false; | - |
1330 | | - |
1331 | equalsPos = -1; | - |
1332 | | - |
1333 | lineStart = dataPos; | - |
1334 | while (lineStart < dataLenTRUE | evaluated 165094 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 9326 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
&& (TRUE | evaluated 95639 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 69455 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
charTraits[uint(uchar(data.at(lineStart)))] & Space)TRUE | evaluated 95639 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 69455 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) | 9326-165094 |
1335 | ++executed 95639 times by 30 tests: ++lineStart; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
lineStart;executed 95639 times by 30 tests: ++lineStart; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 95639 |
1336 | | - |
1337 | int i = lineStart; | - |
1338 | while (i < dataLenTRUE | evaluated 141419 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 9346 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 9346-141419 |
1339 | while (!(charTraits[uint(uchar(data.at(i)))] & Special)TRUE | evaluated 1114455 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 141384 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 141384-1114455 |
1340 | if (++TRUE | evaluated 35 times by 1 test | FALSE | evaluated 1114420 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
i == dataLenTRUE | evaluated 35 times by 1 test | FALSE | evaluated 1114420 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) | 35-1114420 |
1341 | gotoexecuted 35 times by 1 test: goto break_out_of_outer_loop; break_out_of_outer_loop;executed 35 times by 1 test: goto break_out_of_outer_loop; | 35 |
1342 | }executed 1114420 times by 30 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 1114420 |
1343 | | - |
1344 | char ch = data.at(i++); | - |
1345 | if (ch == '='TRUE | evaluated 60374 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 81010 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 60374-81010 |
1346 | if (!inQuotesTRUE | evaluated 60372 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 2 times by 1 test |
&& equalsPos == -1TRUE | evaluated 60372 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | never evaluated |
) | 0-60372 |
1347 | equalsPos = i - 1;executed 60372 times by 29 tests: equalsPos = i - 1; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 60372 |
1348 | }executed 60374 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
else if (ch == '\n'TRUE | evaluated 69404 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 11606 times by 5 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
- tst_selftests - unknown status
|
|| ch == '\r'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 11604 times by 5 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
- tst_selftests - unknown status
|
) { | 2-69404 |
1349 | if (i == lineStart + 1TRUE | evaluated 6 times by 1 test | FALSE | evaluated 69400 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 6-69400 |
1350 | ++lineStart; | - |
1351 | }executed 6 times by 1 test: end of block else if (!inQuotesTRUE | evaluated 69396 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 4 times by 1 test |
) { | 4-69396 |
1352 | --i; | - |
1353 | gotoexecuted 69396 times by 30 tests: goto break_out_of_outer_loop; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
break_out_of_outer_loop;executed 69396 times by 30 tests: goto break_out_of_outer_loop; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 69396 |
1354 | } | - |
1355 | }executed 10 times by 1 test: end of block else if (ch == '\\'TRUE | evaluated 11480 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 124 times by 2 testsEvaluated by:- tst_QSettings
- tst_selftests - unknown status
|
) { | 10-11480 |
1356 | if (i < dataLenTRUE | evaluated 11476 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 4 times by 1 test |
) { | 4-11476 |
1357 | char ch = data.at(i++); | - |
1358 | if (i < dataLenTRUE | evaluated 11472 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 4 times by 1 test |
) { | 4-11472 |
1359 | char ch2 = data.at(i); | - |
1360 | | - |
1361 | if ((ch == '\n'TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11462 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
&& ch2 == '\r'TRUE | evaluated 4 times by 1 test | FALSE | evaluated 6 times by 1 test |
) || (ch == '\r'TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11458 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
&& ch2 == '\n'TRUE | evaluated 6 times by 1 test | FALSE | evaluated 4 times by 1 test |
)) | 4-11462 |
1362 | ++executed 10 times by 1 test: ++i; i;executed 10 times by 1 test: ++i; | 10 |
1363 | }executed 11472 times by 4 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 11472 |
1364 | }executed 11476 times by 4 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 11476 |
1365 | }executed 11480 times by 4 tests: end of block Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
else if (ch == '"'TRUE | evaluated 112 times by 2 testsEvaluated by:- tst_QSettings
- tst_selftests - unknown status
| FALSE | evaluated 12 times by 1 test |
) { | 12-11480 |
1366 | inQuotes = !inQuotes; | - |
1367 | }executed 112 times by 2 tests: end of block Executed by:- tst_QSettings
- tst_selftests - unknown status
else { | 112 |
1368 | ((!(ch == ';')) ? qt_assert("ch == ';'",__FILE__,1605) : qt_noop()); | - |
1369 | | - |
1370 | if (i == lineStart + 1TRUE | evaluated 8 times by 1 test | FALSE | evaluated 4 times by 1 test |
) { | 4-8 |
1371 | char ch; | - |
1372 | while (i < dataLenTRUE | evaluated 26 times by 1 test | FALSE | evaluated 4 times by 1 test |
&& (((TRUE | evaluated 22 times by 1 test | FALSE | evaluated 4 times by 1 test |
ch = data.at(i)) != '\n')TRUE | evaluated 22 times by 1 test | FALSE | evaluated 4 times by 1 test |
&& ch != '\r'TRUE | evaluated 22 times by 1 test | FALSE | never evaluated |
)) | 0-26 |
1373 | ++executed 22 times by 1 test: ++i; i;executed 22 times by 1 test: ++i; | 22 |
1374 | lineStart = i; | - |
1375 | }executed 8 times by 1 test: end of block else if (!inQuotesTRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
) { | 0-8 |
1376 | --i; | - |
1377 | gotoexecuted 4 times by 1 test: goto break_out_of_outer_loop; break_out_of_outer_loop;executed 4 times by 1 test: goto break_out_of_outer_loop; | 4 |
1378 | } | - |
1379 | }executed 8 times by 1 test: end of block | 8 |
1380 | } | - |
1381 | | - |
1382 | break_out_of_outer_loop:code before this statement executed 9346 times by 30 tests: break_out_of_outer_loop: Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 9346 |
1383 | dataPos = i; | - |
1384 | lineLen = i - lineStart; | - |
1385 | returnexecuted 78781 times by 30 tests: return lineLen > 0; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
lineLen > 0;executed 78781 times by 30 tests: return lineLen > 0; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 78781 |
1386 | } | - |
1387 | | - |
1388 | | - |
1389 | | - |
1390 | | - |
1391 | | - |
1392 | | - |
1393 | bool QConfFileSettingsPrivate::readIniFile(const QByteArray &data, | - |
1394 | UnparsedSettingsMap *unparsedIniSections) | - |
1395 | { | - |
1396 | QString currentSection; | - |
1397 | int currentSectionStart = 0; | - |
1398 | int dataPos = 0; | - |
1399 | int lineStart; | - |
1400 | int lineLen; | - |
1401 | int equalsPos; | - |
1402 | int position = 0; | - |
1403 | int sectionPosition = 0; | - |
1404 | bool ok = true; | - |
1405 | | - |
1406 | | - |
1407 | | - |
1408 | const uchar *dd = (const uchar *)data.constData(); | - |
1409 | if (data.size() >= 3TRUE | evaluated 256 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 2 times by 1 test |
&& dd[0] == 0xefTRUE | evaluated 1 time by 1 test | FALSE | evaluated 255 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
&& dd[1] == 0xbbTRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
&& dd[2] == 0xbfTRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) { | 0-256 |
1410 | iniCodec = QTextCodec::codecForName("UTF-8"); | - |
1411 | dataPos = 3; | - |
1412 | }executed 1 time by 1 test: end of block | 1 |
1413 | | - |
1414 | | - |
1415 | while (readIniLine(data, dataPos, lineStart, lineLen, equalsPos)TRUE | evaluated 39173 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 258 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 258-39173 |
1416 | char ch = data.at(lineStart); | - |
1417 | if (ch == '['TRUE | evaluated 8868 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 30305 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 8868-30305 |
1418 | { QByteArray §ionData = (*unparsedIniSections)[QSettingsKey(currentSection, IniCaseSensitivity, sectionPosition)]; if (!sectionData.isEmpty()TRUE | never evaluated | FALSE | evaluated 8868 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) sectionData.append('\n');never executed: sectionData.append('\n'); sectionData += data.mid(currentSectionStart, lineStart - currentSectionStart); sectionPosition = ++position; }; | 0-8868 |
1419 | | - |
1420 | | - |
1421 | QByteArray iniSection; | - |
1422 | int idx = data.indexOf(']', lineStart); | - |
1423 | if (idx == -1TRUE | never evaluated | FALSE | evaluated 8868 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
|| idx >= lineStart + lineLenTRUE | never evaluated | FALSE | evaluated 8868 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 0-8868 |
1424 | ok = false; | - |
1425 | iniSection = data.mid(lineStart + 1, lineLen - 1); | - |
1426 | } never executed: end of block else { | 0 |
1427 | iniSection = data.mid(lineStart + 1, idx - lineStart - 1); | - |
1428 | }executed 8868 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 8868 |
1429 | | - |
1430 | iniSection = iniSection.trimmed(); | - |
1431 | | - |
1432 | if (qstricmp(iniSection.constData(), "general") == 0TRUE | evaluated 48 times by 1 test | FALSE | evaluated 8820 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 48-8820 |
1433 | currentSection.clear(); | - |
1434 | }executed 48 times by 1 test: end of block else { | 48 |
1435 | if (qstricmp(iniSection.constData(), "%general") == 0TRUE | never evaluated | FALSE | evaluated 8820 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 0-8820 |
1436 | currentSection = QLatin1String(iniSection.constData() + 1); | - |
1437 | } never executed: end of block else { | 0 |
1438 | currentSection.clear(); | - |
1439 | iniUnescapedKey(iniSection, 0, iniSection.size(), currentSection); | - |
1440 | }executed 8820 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 8820 |
1441 | currentSection += QLatin1Char('/'); | - |
1442 | }executed 8820 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 8820 |
1443 | currentSectionStart = dataPos; | - |
1444 | }executed 8868 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 8868 |
1445 | ++position; | - |
1446 | }executed 39173 times by 30 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 39173 |
1447 | | - |
1448 | ((!(lineStart == data.length())) ? qt_assert("lineStart == data.length()",__FILE__,1696) : qt_noop()); | - |
1449 | { QByteArray §ionData = (*unparsedIniSections)[QSettingsKey(currentSection, IniCaseSensitivity, sectionPosition)]; if (!sectionData.isEmpty()TRUE | never evaluated | FALSE | evaluated 258 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) sectionData.append('\n');never executed: sectionData.append('\n'); sectionData += data.mid(currentSectionStart, lineStart - currentSectionStart); sectionPosition = ++position; }; | 0-258 |
1450 | | - |
1451 | returnexecuted 258 times by 30 tests: return ok; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
ok;executed 258 times by 30 tests: return ok; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 258 |
1452 | | - |
1453 | | - |
1454 | } | - |
1455 | | - |
1456 | bool QConfFileSettingsPrivate::readIniSection(const QSettingsKey §ion, const QByteArray &data, | - |
1457 | ParsedSettingsMap *settingsMap, QTextCodec *codec) | - |
1458 | { | - |
1459 | QStringList strListValue; | - |
1460 | bool sectionIsLowercase = (section == section.originalCaseKey()); | - |
1461 | int equalsPos; | - |
1462 | | - |
1463 | bool ok = true; | - |
1464 | int dataPos = 0; | - |
1465 | int lineStart; | - |
1466 | int lineLen; | - |
1467 | int position = section.originalKeyPosition(); | - |
1468 | | - |
1469 | while (readIniLine(data, dataPos, lineStart, lineLen, equalsPos)TRUE | evaluated 30278 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 9072 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 9072-30278 |
1470 | char ch = data.at(lineStart); | - |
1471 | ((!(ch != '[')) ? qt_assert("ch != '['",__FILE__,1719) : qt_noop()); | - |
1472 | | - |
1473 | if (equalsPos == -1TRUE | evaluated 106 times by 3 testsEvaluated by:- tst_QIcon
- tst_QSettings
- tst_selftests - unknown status
| FALSE | evaluated 30172 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 106-30172 |
1474 | if (ch != ';'TRUE | evaluated 106 times by 3 testsEvaluated by:- tst_QIcon
- tst_QSettings
- tst_selftests - unknown status
| FALSE | never evaluated |
) | 0-106 |
1475 | ok = false;executed 106 times by 3 tests: ok = false; Executed by:- tst_QIcon
- tst_QSettings
- tst_selftests - unknown status
| 106 |
1476 | continue;executed 106 times by 3 tests: continue; Executed by:- tst_QIcon
- tst_QSettings
- tst_selftests - unknown status
| 106 |
1477 | } | - |
1478 | | - |
1479 | int keyEnd = equalsPos; | - |
1480 | while (keyEnd > lineStartTRUE | evaluated 30176 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | never evaluated |
&& ((TRUE | evaluated 3 times by 1 test | FALSE | evaluated 30173 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
ch = data.at(keyEnd - 1)) == ' 'TRUE | evaluated 3 times by 1 test | FALSE | evaluated 30173 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
|| ch == '\t'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 30172 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
)) | 0-30176 |
1481 | --executed 4 times by 1 test: --keyEnd; keyEnd;executed 4 times by 1 test: --keyEnd; | 4 |
1482 | int valueStart = equalsPos + 1; | - |
1483 | | - |
1484 | QString key = section.originalCaseKey(); | - |
1485 | bool keyIsLowercase = (iniUnescapedKey(data, lineStart, keyEnd, key)TRUE | evaluated 462 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 29710 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
&& sectionIsLowercaseTRUE | evaluated 462 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | never evaluated |
); | 0-29710 |
1486 | | - |
1487 | QString strValue; | - |
1488 | strValue.reserve(lineLen - (valueStart - lineStart)); | - |
1489 | bool isStringList = iniUnescapedStringList(data, valueStart, lineStart + lineLen, | - |
1490 | strValue, strListValue, codec); | - |
1491 | QVariant variant; | - |
1492 | if (isStringListTRUE | evaluated 77 times by 28 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 30095 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 77-30095 |
1493 | variant = stringListToVariantList(strListValue); | - |
1494 | }executed 77 times by 28 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
else { | 77 |
1495 | variant = stringToVariant(strValue); | - |
1496 | }executed 30095 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 30095 |
1497 | | - |
1498 | | - |
1499 | | - |
1500 | | - |
1501 | | - |
1502 | | - |
1503 | settingsMap->insert(QSettingsKey(key, keyIsLowercase ? Qt::CaseSensitive | - |
1504 | : IniCaseSensitivity, | - |
1505 | position), | - |
1506 | variant); | - |
1507 | ++position; | - |
1508 | }executed 30172 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 30172 |
1509 | | - |
1510 | returnexecuted 9072 times by 30 tests: return ok; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
ok;executed 9072 times by 30 tests: return ok; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 9072 |
1511 | } | - |
1512 | | - |
1513 | class QSettingsIniKey : public QString | - |
1514 | { | - |
1515 | public: | - |
1516 | inline QSettingsIniKey() : position(-1) {} never executed: end of block | 0 |
1517 | inline QSettingsIniKey(const QString &str, int pos = -1) : QString(str), position(pos) {}executed 3005 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 3005 |
1518 | | - |
1519 | int position; | - |
1520 | }; | - |
1521 | template<> class QTypeInfo<QSettingsIniKey > { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QSettingsIniKey)>sizeof(void*)), isPointer = false, isIntegral = QtPrivate::is_integral< QSettingsIniKey >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QSettingsIniKey) }; static inline const char *name() { return "QSettingsIniKey"; } }; | - |
1522 | | - |
1523 | static bool operator<(const QSettingsIniKey &k1, const QSettingsIniKey &k2) | - |
1524 | { | - |
1525 | if (k1.position != k2.positionTRUE | never evaluated | FALSE | evaluated 11534 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 0-11534 |
1526 | return never executed: return k1.position < k2.position; k1.position < k2.position;never executed: return k1.position < k2.position; | 0 |
1527 | returnexecuted 11534 times by 6 tests: return static_cast<const QString &>(k1) < static_cast<const QString &>(k2); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
static_cast<const QString &>(k1) < static_cast<const QString &>(k2);executed 11534 times by 6 tests: return static_cast<const QString &>(k1) < static_cast<const QString &>(k2); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 11534 |
1528 | } | - |
1529 | | - |
1530 | typedef QMap<QSettingsIniKey, QVariant> IniKeyMap; | - |
1531 | | - |
1532 | struct QSettingsIniSection | - |
1533 | { | - |
1534 | int position; | - |
1535 | IniKeyMap keyMap; | - |
1536 | | - |
1537 | inline QSettingsIniSection() : position(-1) {}executed 422 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 422 |
1538 | }; | - |
1539 | | - |
1540 | typedef QMap<QString, QSettingsIniSection> IniMap; | - |
1541 | | - |
1542 | | - |
1543 | | - |
1544 | | - |
1545 | | - |
1546 | bool QConfFileSettingsPrivate::writeIniFile(QIODevice &device, const ParsedSettingsMap &map) | - |
1547 | { | - |
1548 | IniMap iniMap; | - |
1549 | IniMap::const_iterator i; | - |
1550 | | - |
1551 | | - |
1552 | | - |
1553 | | - |
1554 | const char eol = '\n'; | - |
1555 | | - |
1556 | | - |
1557 | for (ParsedSettingsMap::const_iterator j = map.constBegin(); j != map.constEnd()TRUE | evaluated 2583 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 485 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
; ++j) { | 485-2583 |
1558 | QString section; | - |
1559 | QSettingsIniKey key(j.key().originalCaseKey(), j.key().originalKeyPosition()); | - |
1560 | int slashPos; | - |
1561 | | - |
1562 | if ((TRUE | evaluated 2068 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 515 times by 1 test |
slashPos = key.indexOf(QLatin1Char('/'))) != -1TRUE | evaluated 2068 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 515 times by 1 test |
) { | 515-2068 |
1563 | section = key.left(slashPos); | - |
1564 | key.remove(0, slashPos + 1); | - |
1565 | }executed 2068 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 2068 |
1566 | | - |
1567 | QSettingsIniSection &iniSection = iniMap[section]; | - |
1568 | | - |
1569 | | - |
1570 | if (uint(key.position) < uint(iniSection.position)TRUE | never evaluated | FALSE | evaluated 2583 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 0-2583 |
1571 | iniSection.position = key.position; never executed: iniSection.position = key.position; | 0 |
1572 | iniSection.keyMap[key] = j.value(); | - |
1573 | }executed 2583 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 2583 |
1574 | | - |
1575 | const int sectionCount = iniMap.size(); | - |
1576 | QVector<QSettingsIniKey> sections; | - |
1577 | sections.reserve(sectionCount); | - |
1578 | for (i = iniMap.constBegin(); i != iniMap.constEnd()TRUE | evaluated 422 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 485 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
; ++i) | 422-485 |
1579 | sections.append(QSettingsIniKey(i.key(), i.value().position));executed 422 times by 6 tests: sections.append(QSettingsIniKey(i.key(), i.value().position)); Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 422 |
1580 | std::sort(sections.begin(), sections.end()); | - |
1581 | | - |
1582 | bool writeError = false; | - |
1583 | for (int j = 0; !writeErrorTRUE | evaluated 907 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | never evaluated |
&& j < sectionCountTRUE | evaluated 422 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 485 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
; ++j) { | 0-907 |
1584 | i = iniMap.constFind(sections.at(j)); | - |
1585 | ((!(i != iniMap.constEnd())) ? qt_assert("i != iniMap.constEnd()",__FILE__,1833) : qt_noop()); | - |
1586 | | - |
1587 | QByteArray realSection; | - |
1588 | | - |
1589 | iniEscapedKey(i.key(), realSection); | - |
1590 | | - |
1591 | if (realSection.isEmpty()TRUE | evaluated 99 times by 1 test | FALSE | evaluated 323 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 99-323 |
1592 | realSection = "[General]"; | - |
1593 | }executed 99 times by 1 test: end of block else if (qstricmp(realSection.constData(), "general") == 0TRUE | evaluated 3 times by 1 test | FALSE | evaluated 320 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 3-320 |
1594 | realSection = "[%General]"; | - |
1595 | }executed 3 times by 1 test: end of block else { | 3 |
1596 | realSection.prepend('['); | - |
1597 | realSection.append(']'); | - |
1598 | }executed 320 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 320 |
1599 | | - |
1600 | if (j != 0TRUE | evaluated 47 times by 4 testsEvaluated by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 375 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) | 47-375 |
1601 | realSection.prepend(eol);executed 47 times by 4 tests: realSection.prepend(eol); Executed by:- tst_QColorDialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 47 |
1602 | realSection += eol; | - |
1603 | | - |
1604 | device.write(realSection); | - |
1605 | | - |
1606 | const IniKeyMap &ents = i.value().keyMap; | - |
1607 | for (IniKeyMap::const_iterator j = ents.constBegin(); j != ents.constEnd()TRUE | evaluated 2583 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 422 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
; ++j) { | 422-2583 |
1608 | QByteArray block; | - |
1609 | iniEscapedKey(j.key(), block); | - |
1610 | block += '='; | - |
1611 | | - |
1612 | const QVariant &value = j.value(); | - |
1613 | | - |
1614 | | - |
1615 | | - |
1616 | | - |
1617 | | - |
1618 | | - |
1619 | if (value.type() == QVariant::StringListTRUE | evaluated 489 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 2094 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
| 489-2094 |
1620 | || (value.type() == QVariant::ListTRUE | evaluated 39 times by 1 test | FALSE | evaluated 2055 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
&& value.toList().size() != 1TRUE | evaluated 35 times by 1 test | FALSE | evaluated 4 times by 1 test |
)) { | 4-2055 |
1621 | iniEscapedStringList(variantListToStringList(value.toList()), block, iniCodec); | - |
1622 | }executed 524 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
else { | 524 |
1623 | iniEscapedString(variantToString(value), block, iniCodec); | - |
1624 | }executed 2059 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 2059 |
1625 | block += eol; | - |
1626 | if (device.write(block) == -1TRUE | never evaluated | FALSE | evaluated 2583 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 0-2583 |
1627 | writeError = true; | - |
1628 | break; never executed: break; | 0 |
1629 | } | - |
1630 | }executed 2583 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 2583 |
1631 | }executed 422 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 422 |
1632 | returnexecuted 485 times by 6 tests: return !writeError; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
!writeError;executed 485 times by 6 tests: return !writeError; Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 485 |
1633 | } | - |
1634 | | - |
1635 | void QConfFileSettingsPrivate::ensureAllSectionsParsed(QConfFile *confFile) const | - |
1636 | { | - |
1637 | UnparsedSettingsMap::const_iterator i = confFile->unparsedIniSections.constBegin(); | - |
1638 | const UnparsedSettingsMap::const_iterator end = confFile->unparsedIniSections.constEnd(); | - |
1639 | | - |
1640 | for (; i != endTRUE | evaluated 8949 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| FALSE | evaluated 1902 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
; ++i) { | 1902-8949 |
1641 | if (!QConfFileSettingsPrivate::readIniSection(i.key(), i.value(), &confFile->originalKeys, iniCodec)TRUE | evaluated 28 times by 3 testsEvaluated by:- tst_QIcon
- tst_QSettings
- tst_selftests - unknown status
| FALSE | evaluated 8921 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) | 28-8921 |
1642 | setStatus(QSettings::FormatError);executed 28 times by 3 tests: setStatus(QSettings::FormatError); Executed by:- tst_QIcon
- tst_QSettings
- tst_selftests - unknown status
| 28 |
1643 | }executed 8949 times by 30 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 8949 |
1644 | confFile->unparsedIniSections.clear(); | - |
1645 | }executed 1902 times by 30 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 1902 |
1646 | | - |
1647 | void QConfFileSettingsPrivate::ensureSectionParsed(QConfFile *confFile, | - |
1648 | const QSettingsKey &key) const | - |
1649 | { | - |
1650 | if (confFile->unparsedIniSections.isEmpty()TRUE | evaluated 47315 times by 29 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QTextFormat
- ...
| FALSE | evaluated 204 times by 3 testsEvaluated by:- tst_QColorDialog
- tst_QSettings
- tst_languageChange
|
) | 204-47315 |
1651 | return;executed 47315 times by 29 tests: return; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QTextFormat
- ...
| 47315 |
1652 | | - |
1653 | UnparsedSettingsMap::iterator i; | - |
1654 | | - |
1655 | int indexOfSlash = key.indexOf(QLatin1Char('/')); | - |
1656 | if (indexOfSlash != -1TRUE | evaluated 140 times by 3 testsEvaluated by:- tst_QColorDialog
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 64 times by 1 test |
) { | 64-140 |
1657 | i = confFile->unparsedIniSections.upperBound(key); | - |
1658 | if (i == confFile->unparsedIniSections.begin()TRUE | evaluated 6 times by 1 test | FALSE | evaluated 134 times by 3 testsEvaluated by:- tst_QColorDialog
- tst_QSettings
- tst_languageChange
|
) | 6-134 |
1659 | return;executed 6 times by 1 test: return; | 6 |
1660 | --i; | - |
1661 | if (i.key().isEmpty()TRUE | evaluated 21 times by 1 test | FALSE | evaluated 113 times by 3 testsEvaluated by:- tst_QColorDialog
- tst_QSettings
- tst_languageChange
|
|| !key.startsWith(i.key())TRUE | evaluated 54 times by 3 testsEvaluated by:- tst_QColorDialog
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 59 times by 3 testsEvaluated by:- tst_QColorDialog
- tst_QSettings
- tst_languageChange
|
) | 21-113 |
1662 | return;executed 75 times by 3 tests: return; Executed by:- tst_QColorDialog
- tst_QSettings
- tst_languageChange
| 75 |
1663 | }executed 59 times by 3 tests: end of block Executed by:- tst_QColorDialog
- tst_QSettings
- tst_languageChange
else { | 59 |
1664 | i = confFile->unparsedIniSections.begin(); | - |
1665 | if (i == confFile->unparsedIniSections.end()TRUE | never evaluated | FALSE | evaluated 64 times by 1 test |
|| !i.key().isEmpty()TRUE | never evaluated | FALSE | evaluated 64 times by 1 test |
) | 0-64 |
1666 | return; never executed: return; | 0 |
1667 | }executed 64 times by 1 test: end of block | 64 |
1668 | | - |
1669 | if (!QConfFileSettingsPrivate::readIniSection(i.key(), i.value(), &confFile->originalKeys, iniCodec)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 122 times by 3 testsEvaluated by:- tst_QColorDialog
- tst_QSettings
- tst_languageChange
|
) | 1-122 |
1670 | setStatus(QSettings::FormatError);executed 1 time by 1 test: setStatus(QSettings::FormatError); | 1 |
1671 | confFile->unparsedIniSections.erase(i); | - |
1672 | }executed 123 times by 3 tests: end of block Executed by:- tst_QColorDialog
- tst_QSettings
- tst_languageChange
| 123 |
1673 | QSettings::QSettings(const QString &organization, const QString &application, QObject *parent) | - |
1674 | : QObject(*QSettingsPrivate::create(NativeFormat, UserScope, organization, application), | - |
1675 | parent) | - |
1676 | { | - |
1677 | }executed 50 times by 2 tests: end of block Executed by:- tst_QSettings
- tst_QTextFormat
| 50 |
1678 | QSettings::QSettings(Scope scope, const QString &organization, const QString &application, | - |
1679 | QObject *parent) | - |
1680 | : QObject(*QSettingsPrivate::create(NativeFormat, scope, organization, application), parent) | - |
1681 | { | - |
1682 | }executed 1040 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 1040 |
1683 | QSettings::QSettings(Format format, Scope scope, const QString &organization, | - |
1684 | const QString &application, QObject *parent) | - |
1685 | : QObject(*QSettingsPrivate::create(format, scope, organization, application), parent) | - |
1686 | { | - |
1687 | }executed 333 times by 1 test: end of block | 333 |
1688 | QSettings::QSettings(const QString &fileName, Format format, QObject *parent) | - |
1689 | : QObject(*QSettingsPrivate::create(fileName, format), parent) | - |
1690 | { | - |
1691 | }executed 248 times by 29 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| 248 |
1692 | QSettings::QSettings(QObject *parent) | - |
1693 | : QObject(*QSettingsPrivate::create(globalDefaultFormat, UserScope, | - |
1694 | | - |
1695 | | - |
1696 | | - |
1697 | | - |
1698 | | - |
1699 | QCoreApplication::organizationName().isEmpty() | - |
1700 | ? QCoreApplication::organizationDomain() | - |
1701 | : QCoreApplication::organizationName() | - |
1702 | | - |
1703 | , QCoreApplication::applicationName()), | - |
1704 | parent) | - |
1705 | { | - |
1706 | }executed 5 times by 1 test: end of block | 5 |
1707 | QSettings::~QSettings() | - |
1708 | { | - |
1709 | QSettingsPrivate * const d = d_func(); | - |
1710 | if (d->pendingChangesTRUE | evaluated 563 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| FALSE | evaluated 1113 times by 31 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 563-1113 |
1711 | try { | - |
1712 | d->flush(); | - |
1713 | }executed 563 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
catch (...) { | 563 |
1714 | ; | - |
1715 | } never executed: end of block | 0 |
1716 | } | - |
1717 | }executed 1676 times by 31 tests: end of block Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 1676 |
1718 | void QSettings::clear() | - |
1719 | { | - |
1720 | QSettingsPrivate * const d = d_func(); | - |
1721 | d->clear(); | - |
1722 | d->requestUpdate(); | - |
1723 | }executed 15 times by 1 test: end of block | 15 |
1724 | void QSettings::sync() | - |
1725 | { | - |
1726 | QSettingsPrivate * const d = d_func(); | - |
1727 | d->sync(); | - |
1728 | }executed 64 times by 1 test: end of block | 64 |
1729 | QString QSettings::fileName() const | - |
1730 | { | - |
1731 | const QSettingsPrivate * const d = d_func(); | - |
1732 | returnexecuted 27 times by 1 test: return d->fileName(); d->fileName();executed 27 times by 1 test: return d->fileName(); | 27 |
1733 | } | - |
1734 | QSettings::Format QSettings::format() const | - |
1735 | { | - |
1736 | const QSettingsPrivate * const d = d_func(); | - |
1737 | returnexecuted 30 times by 1 test: return d->format; d->format;executed 30 times by 1 test: return d->format; | 30 |
1738 | } | - |
1739 | QSettings::Scope QSettings::scope() const | - |
1740 | { | - |
1741 | const QSettingsPrivate * const d = d_func(); | - |
1742 | returnexecuted 28 times by 1 test: return d->scope; d->scope;executed 28 times by 1 test: return d->scope; | 28 |
1743 | } | - |
1744 | QString QSettings::organizationName() const | - |
1745 | { | - |
1746 | const QSettingsPrivate * const d = d_func(); | - |
1747 | returnexecuted 32 times by 1 test: return d->organizationName; d->organizationName;executed 32 times by 1 test: return d->organizationName; | 32 |
1748 | } | - |
1749 | QString QSettings::applicationName() const | - |
1750 | { | - |
1751 | const QSettingsPrivate * const d = d_func(); | - |
1752 | returnexecuted 24 times by 1 test: return d->applicationName; d->applicationName;executed 24 times by 1 test: return d->applicationName; | 24 |
1753 | } | - |
1754 | void QSettings::setIniCodec(QTextCodec *codec) | - |
1755 | { | - |
1756 | QSettingsPrivate * const d = d_func(); | - |
1757 | d->iniCodec = codec; | - |
1758 | } never executed: end of block | 0 |
1759 | void QSettings::setIniCodec(const char *codecName) | - |
1760 | { | - |
1761 | QSettingsPrivate * const d = d_func(); | - |
1762 | if (QTextCodec *codec = QTextCodec::codecForName(codecName)TRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
) | 0-6 |
1763 | d->iniCodec = codec;executed 6 times by 1 test: d->iniCodec = codec; | 6 |
1764 | }executed 6 times by 1 test: end of block | 6 |
1765 | QTextCodec *QSettings::iniCodec() const | - |
1766 | { | - |
1767 | const QSettingsPrivate * const d = d_func(); | - |
1768 | return never executed: return d->iniCodec; d->iniCodec;never executed: return d->iniCodec; | 0 |
1769 | } | - |
1770 | QSettings::Status QSettings::status() const | - |
1771 | { | - |
1772 | const QSettingsPrivate * const d = d_func(); | - |
1773 | returnexecuted 99 times by 1 test: return d->status; d->status;executed 99 times by 1 test: return d->status; | 99 |
1774 | } | - |
1775 | void QSettings::beginGroup(const QString &prefix) | - |
1776 | { | - |
1777 | QSettingsPrivate * const d = d_func(); | - |
1778 | d->beginGroupOrArray(QSettingsGroup(d->normalizedKey(prefix))); | - |
1779 | }executed 1346 times by 6 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
- tst_selftests - unknown status
| 1346 |
1780 | void QSettings::endGroup() | - |
1781 | { | - |
1782 | QSettingsPrivate * const d = d_func(); | - |
1783 | if (d->groupStack.isEmpty()TRUE | evaluated 14 times by 1 test | FALSE | evaluated 848 times by 4 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
- tst_selftests - unknown status
|
) { | 14-848 |
1784 | QMessageLogger(__FILE__, 2911, __PRETTY_FUNCTION__).warning("QSettings::endGroup: No matching beginGroup()"); | - |
1785 | return;executed 14 times by 1 test: return; | 14 |
1786 | } | - |
1787 | | - |
1788 | QSettingsGroup group = d->groupStack.pop(); | - |
1789 | int len = group.toString().size(); | - |
1790 | if (len > 0TRUE | evaluated 805 times by 4 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
- tst_selftests - unknown status
| FALSE | evaluated 43 times by 1 test |
) | 43-805 |
1791 | d->groupPrefix.truncate(d->groupPrefix.size() - (len + 1));executed 805 times by 4 tests: d->groupPrefix.truncate(d->groupPrefix.size() - (len + 1)); Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
- tst_selftests - unknown status
| 805 |
1792 | | - |
1793 | if (group.isArray()TRUE | evaluated 4 times by 1 test | FALSE | evaluated 844 times by 4 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
- tst_selftests - unknown status
|
) | 4-844 |
1794 | QMessageLogger(__FILE__, 2921, __PRETTY_FUNCTION__).warning("QSettings::endGroup: Expected endArray() instead");executed 4 times by 1 test: QMessageLogger(__FILE__, 2921, __PRETTY_FUNCTION__).warning("QSettings::endGroup: Expected endArray() instead"); | 4 |
1795 | }executed 848 times by 4 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
- tst_selftests - unknown status
| 848 |
1796 | | - |
1797 | | - |
1798 | | - |
1799 | | - |
1800 | | - |
1801 | | - |
1802 | QString QSettings::group() const | - |
1803 | { | - |
1804 | const QSettingsPrivate * const d = d_func(); | - |
1805 | returnexecuted 227 times by 3 tests: return d->groupPrefix.left(d->groupPrefix.size() - 1); Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
d->groupPrefix.left(d->groupPrefix.size() - 1);executed 227 times by 3 tests: return d->groupPrefix.left(d->groupPrefix.size() - 1); Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| 227 |
1806 | } | - |
1807 | int QSettings::beginReadArray(const QString &prefix) | - |
1808 | { | - |
1809 | QSettingsPrivate * const d = d_func(); | - |
1810 | d->beginGroupOrArray(QSettingsGroup(d->normalizedKey(prefix), false)); | - |
1811 | returnexecuted 20 times by 1 test: return value(QLatin1String("size")).toInt(); value(QLatin1String("size")).toInt();executed 20 times by 1 test: return value(QLatin1String("size")).toInt(); | 20 |
1812 | } | - |
1813 | void QSettings::beginWriteArray(const QString &prefix, int size) | - |
1814 | { | - |
1815 | QSettingsPrivate * const d = d_func(); | - |
1816 | d->beginGroupOrArray(QSettingsGroup(d->normalizedKey(prefix), size < 0)); | - |
1817 | | - |
1818 | if (size < 0TRUE | evaluated 12 times by 1 test | FALSE | evaluated 8 times by 1 test |
) | 8-12 |
1819 | remove(QLatin1String("size"));executed 12 times by 1 test: remove(QLatin1String("size")); | 12 |
1820 | else | - |
1821 | setValue(QLatin1String("size"), size);executed 8 times by 1 test: setValue(QLatin1String("size"), size); | 8 |
1822 | } | - |
1823 | | - |
1824 | | - |
1825 | | - |
1826 | | - |
1827 | | - |
1828 | | - |
1829 | | - |
1830 | void QSettings::endArray() | - |
1831 | { | - |
1832 | QSettingsPrivate * const d = d_func(); | - |
1833 | if (d->groupStack.isEmpty()TRUE | never evaluated | FALSE | evaluated 44 times by 1 test |
) { | 0-44 |
1834 | QMessageLogger(__FILE__, 3004, __PRETTY_FUNCTION__).warning("QSettings::endArray: No matching beginArray()"); | - |
1835 | return; never executed: return; | 0 |
1836 | } | - |
1837 | | - |
1838 | QSettingsGroup group = d->groupStack.top(); | - |
1839 | int len = group.toString().size(); | - |
1840 | d->groupStack.pop(); | - |
1841 | if (len > 0TRUE | evaluated 44 times by 1 test | FALSE | never evaluated |
) | 0-44 |
1842 | d->groupPrefix.truncate(d->groupPrefix.size() - (len + 1));executed 44 times by 1 test: d->groupPrefix.truncate(d->groupPrefix.size() - (len + 1)); | 44 |
1843 | | - |
1844 | if (group.arraySizeGuess() != -1TRUE | evaluated 12 times by 1 test | FALSE | evaluated 32 times by 1 test |
) | 12-32 |
1845 | setValue(group.name() + QLatin1String("/size"), group.arraySizeGuess());executed 12 times by 1 test: setValue(group.name() + QLatin1String("/size"), group.arraySizeGuess()); | 12 |
1846 | | - |
1847 | if (!group.isArray()TRUE | evaluated 8 times by 1 test | FALSE | evaluated 36 times by 1 test |
) | 8-36 |
1848 | QMessageLogger(__FILE__, 3018, __PRETTY_FUNCTION__).warning("QSettings::endArray: Expected endGroup() instead");executed 8 times by 1 test: QMessageLogger(__FILE__, 3018, __PRETTY_FUNCTION__).warning("QSettings::endArray: Expected endGroup() instead"); | 8 |
1849 | }executed 44 times by 1 test: end of block | 44 |
1850 | void QSettings::setArrayIndex(int i) | - |
1851 | { | - |
1852 | QSettingsPrivate * const d = d_func(); | - |
1853 | if (d->groupStack.isEmpty()TRUE | never evaluated | FALSE | evaluated 148 times by 1 test |
|| !d->groupStack.top().isArray()TRUE | evaluated 20 times by 1 test | FALSE | evaluated 128 times by 1 test |
) { | 0-148 |
1854 | QMessageLogger(__FILE__, 3033, __PRETTY_FUNCTION__).warning("QSettings::setArrayIndex: Missing beginArray()"); | - |
1855 | return;executed 20 times by 1 test: return; | 20 |
1856 | } | - |
1857 | | - |
1858 | QSettingsGroup &top = d->groupStack.top(); | - |
1859 | int len = top.toString().size(); | - |
1860 | top.setArrayIndex(qMax(i, 0)); | - |
1861 | d->groupPrefix.replace(d->groupPrefix.size() - len - 1, len, top.toString()); | - |
1862 | }executed 128 times by 1 test: end of block | 128 |
1863 | QStringList QSettings::allKeys() const | - |
1864 | { | - |
1865 | const QSettingsPrivate * const d = d_func(); | - |
1866 | returnexecuted 233 times by 27 tests: return d->children(d->groupPrefix, QSettingsPrivate::AllKeys); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
d->children(d->groupPrefix, QSettingsPrivate::AllKeys);executed 233 times by 27 tests: return d->children(d->groupPrefix, QSettingsPrivate::AllKeys); Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- tst_QToolButton
- ...
| 233 |
1867 | } | - |
1868 | QStringList QSettings::childKeys() const | - |
1869 | { | - |
1870 | const QSettingsPrivate * const d = d_func(); | - |
1871 | returnexecuted 104 times by 1 test: return d->children(d->groupPrefix, QSettingsPrivate::ChildKeys); d->children(d->groupPrefix, QSettingsPrivate::ChildKeys);executed 104 times by 1 test: return d->children(d->groupPrefix, QSettingsPrivate::ChildKeys); | 104 |
1872 | } | - |
1873 | QStringList QSettings::childGroups() const | - |
1874 | { | - |
1875 | const QSettingsPrivate * const d = d_func(); | - |
1876 | returnexecuted 719 times by 7 tests: return d->children(d->groupPrefix, QSettingsPrivate::ChildGroups); Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
- tst_qdbusxml2cpp - unknown status
- tst_selftests - unknown status
d->children(d->groupPrefix, QSettingsPrivate::ChildGroups);executed 719 times by 7 tests: return d->children(d->groupPrefix, QSettingsPrivate::ChildGroups); Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
- tst_qdbusxml2cpp - unknown status
- tst_selftests - unknown status
| 719 |
1877 | } | - |
1878 | bool QSettings::isWritable() const | - |
1879 | { | - |
1880 | const QSettingsPrivate * const d = d_func(); | - |
1881 | returnexecuted 21 times by 1 test: return d->isWritable(); d->isWritable();executed 21 times by 1 test: return d->isWritable(); | 21 |
1882 | } | - |
1883 | void QSettings::setValue(const QString &key, const QVariant &value) | - |
1884 | { | - |
1885 | QSettingsPrivate * const d = d_func(); | - |
1886 | if (key.isEmpty()TRUE | evaluated 1 time by 1 test | FALSE | evaluated 2444 times by 6 testsEvaluated by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
|
) { | 1-2444 |
1887 | QMessageLogger(__FILE__, 3150, __PRETTY_FUNCTION__).warning("QSettings::setValue: Empty key passed"); | - |
1888 | return;executed 1 time by 1 test: return; | 1 |
1889 | } | - |
1890 | QString k = d->actualKey(key); | - |
1891 | d->set(k, value); | - |
1892 | d->requestUpdate(); | - |
1893 | }executed 2444 times by 6 tests: end of block Executed by:- tst_QColorDialog
- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QSettings
- tst_languageChange
| 2444 |
1894 | void QSettings::remove(const QString &key) | - |
1895 | { | - |
1896 | QSettingsPrivate * const d = d_func(); | - |
1897 | | - |
1898 | | - |
1899 | | - |
1900 | | - |
1901 | QString theKey = d->normalizedKey(key); | - |
1902 | if (theKey.isEmpty()TRUE | evaluated 112 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| FALSE | evaluated 152 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
|
) | 112-152 |
1903 | theKey = group();executed 112 times by 3 tests: theKey = group(); Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| 112 |
1904 | else | - |
1905 | theKey.prepend(d->groupPrefix);executed 152 times by 3 tests: theKey.prepend(d->groupPrefix); Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| 152 |
1906 | | - |
1907 | if (theKey.isEmpty()TRUE | evaluated 1 time by 1 test | FALSE | evaluated 263 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
|
) { | 1-263 |
1908 | d->clear(); | - |
1909 | }executed 1 time by 1 test: end of block else { | 1 |
1910 | d->remove(theKey); | - |
1911 | }executed 263 times by 3 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| 263 |
1912 | d->requestUpdate(); | - |
1913 | }executed 264 times by 3 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSettings
| 264 |
1914 | bool QSettings::contains(const QString &key) const | - |
1915 | { | - |
1916 | const QSettingsPrivate * const d = d_func(); | - |
1917 | QString k = d->actualKey(key); | - |
1918 | returnexecuted 218 times by 1 test: return d->get(k, 0); d->get(k, 0);executed 218 times by 1 test: return d->get(k, 0); | 218 |
1919 | } | - |
1920 | void QSettings::setFallbacksEnabled(bool b) | - |
1921 | { | - |
1922 | QSettingsPrivate * const d = d_func(); | - |
1923 | d->fallbacks = !!b; | - |
1924 | }executed 58 times by 1 test: end of block | 58 |
1925 | bool QSettings::fallbacksEnabled() const | - |
1926 | { | - |
1927 | const QSettingsPrivate * const d = d_func(); | - |
1928 | returnexecuted 34 times by 1 test: return d->fallbacks; d->fallbacks;executed 34 times by 1 test: return d->fallbacks; | 34 |
1929 | } | - |
1930 | | - |
1931 | | - |
1932 | | - |
1933 | | - |
1934 | | - |
1935 | bool QSettings::event(QEvent *event) | - |
1936 | { | - |
1937 | QSettingsPrivate * const d = d_func(); | - |
1938 | if (event->type() == QEvent::UpdateRequestTRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
) { | 0-4 |
1939 | d->update(); | - |
1940 | returnexecuted 4 times by 1 test: return true; true;executed 4 times by 1 test: return true; | 4 |
1941 | } | - |
1942 | return never executed: return QObject::event(event); QObject::event(event);never executed: return QObject::event(event); | 0 |
1943 | } | - |
1944 | QVariant QSettings::value(const QString &key, const QVariant &defaultValue) const | - |
1945 | { | - |
1946 | const QSettingsPrivate * const d = d_func(); | - |
1947 | if (key.isEmpty()TRUE | evaluated 1 time by 1 test | FALSE | evaluated 46301 times by 30 testsEvaluated by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
|
) { | 1-46301 |
1948 | QMessageLogger(__FILE__, 3286, __PRETTY_FUNCTION__).warning("QSettings::value: Empty key passed"); | - |
1949 | returnexecuted 1 time by 1 test: return QVariant(); QVariant();executed 1 time by 1 test: return QVariant(); | 1 |
1950 | } | - |
1951 | QVariant result = defaultValue; | - |
1952 | QString k = d->actualKey(key); | - |
1953 | d->get(k, &result); | - |
1954 | returnexecuted 46301 times by 30 tests: return result; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
result;executed 46301 times by 30 tests: return result; Executed by:- tst_QAbstractItemView
- tst_QAccessibility
- tst_QCalendarWidget
- tst_QColorDialog
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QDateTimeEdit
- tst_QErrorMessage
- tst_QFileDialog2
- tst_QFileIconProvider
- tst_QFileSystemModel
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QIcon
- tst_QLabel
- tst_QLineEdit
- tst_QMessageBox
- tst_QPlainTextEdit
- tst_QPrinter
- tst_QSettings
- tst_QSidebar
- tst_QStyle
- tst_QStyleSheetStyle
- tst_QSystemTrayIcon
- tst_QTextEdit
- ...
| 46301 |
1955 | } | - |
1956 | void QSettings::setDefaultFormat(Format format) | - |
1957 | { | - |
1958 | globalDefaultFormat = format; | - |
1959 | }executed 2 times by 1 test: end of block | 2 |
1960 | QSettings::Format QSettings::defaultFormat() | - |
1961 | { | - |
1962 | returnexecuted 2 times by 1 test: return globalDefaultFormat; globalDefaultFormat;executed 2 times by 1 test: return globalDefaultFormat; | 2 |
1963 | } | - |
1964 | void QSettings::setSystemIniPath(const QString &dir) | - |
1965 | { | - |
1966 | setPath(IniFormat, SystemScope, dir); | - |
1967 | | - |
1968 | setPath(NativeFormat, SystemScope, dir); | - |
1969 | | - |
1970 | }executed 140 times by 1 test: end of block | 140 |
1971 | | - |
1972 | | - |
1973 | | - |
1974 | | - |
1975 | | - |
1976 | | - |
1977 | | - |
1978 | void QSettings::setUserIniPath(const QString &dir) | - |
1979 | { | - |
1980 | setPath(IniFormat, UserScope, dir); | - |
1981 | | - |
1982 | setPath(NativeFormat, UserScope, dir); | - |
1983 | | - |
1984 | }executed 140 times by 1 test: end of block | 140 |
1985 | void QSettings::setPath(Format format, Scope scope, const QString &path) | - |
1986 | { | - |
1987 | QMutexLocker locker(&settingsGlobalMutex); | - |
1988 | PathHash *pathHash = pathHashFunc(); | - |
1989 | if (pathHash->isEmpty()TRUE | evaluated 1 time by 1 test | FALSE | evaluated 567 times by 1 test |
) | 1-567 |
1990 | initDefaultPaths(&locker);executed 1 time by 1 test: initDefaultPaths(&locker); | 1 |
1991 | pathHash->insert(pathHashKey(format, scope), path + QDir::separator()); | - |
1992 | }executed 568 times by 1 test: end of block | 568 |
1993 | QSettings::Format QSettings::registerFormat(const QString &extension, ReadFunc readFunc, | - |
1994 | WriteFunc writeFunc, | - |
1995 | Qt::CaseSensitivity caseSensitivity) | - |
1996 | { | - |
1997 | | - |
1998 | ((!(caseSensitivity == Qt::CaseSensitive)) ? qt_assert("caseSensitivity == Qt::CaseSensitive",__FILE__,3475) : qt_noop()); | - |
1999 | | - |
2000 | | - |
2001 | QMutexLocker locker(&settingsGlobalMutex); | - |
2002 | CustomFormatVector *customFormatVector = customFormatVectorFunc(); | - |
2003 | int index = customFormatVector->size(); | - |
2004 | if (index == 16TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
) | 0-3 |
2005 | return never executed: return QSettings::InvalidFormat; QSettings::InvalidFormat;never executed: return QSettings::InvalidFormat; | 0 |
2006 | | - |
2007 | QConfFileCustomFormat info; | - |
2008 | info.extension = QLatin1Char('.') + extension; | - |
2009 | info.readFunc = readFunc; | - |
2010 | info.writeFunc = writeFunc; | - |
2011 | info.caseSensitivity = caseSensitivity; | - |
2012 | customFormatVector->append(info); | - |
2013 | | - |
2014 | returnexecuted 3 times by 1 test: return QSettings::Format((int)QSettings::CustomFormat1 + index); QSettings::Format((int)QSettings::CustomFormat1 + index);executed 3 times by 1 test: return QSettings::Format((int)QSettings::CustomFormat1 + index); | 3 |
2015 | } | - |
2016 | | - |
2017 | | - |
| | |