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